From 9551711dd0cfb832cecd9e1935fa36d1c8503c88 Mon Sep 17 00:00:00 2001 From: XueMoMo Date: Thu, 20 Jun 2024 03:28:21 +0000 Subject: [PATCH] deploy: fe16820c126daa3081a8af014fe43461ff9a9696 --- 404.html | 2 +- .../9tteE3g5JFHN-eqhT1zD3/_buildManifest.js | 1 - .../_nWlRQzeL2BXe7BkBSE1p/_buildManifest.js | 1 + .../_ssgManifest.js | 0 _next/static/chunks/1168.5234faca9ff0c76f.js | 1 + _next/static/chunks/1217.0c6b0c028e5e405e.js | 1 + _next/static/chunks/1236.db367b245c91a5dc.js | 1 + _next/static/chunks/1511.6b601a7bfeadaf90.js | 1 + _next/static/chunks/1515.0850b00c6fa04455.js | 1 + _next/static/chunks/1543.75b0930045e35b08.js | 1 + _next/static/chunks/1629.19cbd3cb174a2684.js | 1 + _next/static/chunks/1740-0372e0e4f0fc8f8e.js | 1 + _next/static/chunks/1748.d00051dbdf4829c8.js | 1 + _next/static/chunks/1767.0614b14efffd81bc.js | 1 + _next/static/chunks/190-6c159eb307c9114b.js | 5 - _next/static/chunks/1957.2dca44381f77f58c.js | 1 + _next/static/chunks/1987.251463382c3c25d8.js | 1 + _next/static/chunks/2049.8d59212265d88c6f.js | 1 + _next/static/chunks/206.3b9605ea60904456.js | 6 + _next/static/chunks/212.910fcdd4443ee55e.js | 1 - _next/static/chunks/219-545492dcf7b093f9.js | 112 - _next/static/chunks/2193.f7e35a31c2b7168b.js | 54 + _next/static/chunks/2306.19f5026646eb15bf.js | 1 + _next/static/chunks/2343.1881298161a51c92.js | 1191 ++++++ _next/static/chunks/254.6175bbde91840276.js | 1 - _next/static/chunks/2803-bc4e4dbb3ad91ce2.js | 5 + _next/static/chunks/2820.f5dc0c6ebbf1f99a.js | 1 + _next/static/chunks/3176.6407aad5f59c9bf2.js | 1 + _next/static/chunks/3230.3ca586db3bd43c58.js | 1 + _next/static/chunks/3268.32c758e32c96cb87.js | 1 + _next/static/chunks/3290.cdd9db11e64761f1.js | 1 + _next/static/chunks/353.634da5a5b828de69.js | 1 + _next/static/chunks/3616.7a162e679bc40820.js | 1 + _next/static/chunks/3654.88d43d8437eb1154.js | 1 + _next/static/chunks/3704.d78ab8186eb10465.js | 1 + _next/static/chunks/377.85d9313875bffcfe.js | 1 - _next/static/chunks/3962.643d09c97b5b093d.js | 1 + _next/static/chunks/4335.89cfa6f61787ec4e.js | 1 + _next/static/chunks/441.ff1a637d66cd1909.js | 1 + _next/static/chunks/4464.771a35c485788fca.js | 1 + _next/static/chunks/4855.5b7df21c89b7d898.js | 1 + _next/static/chunks/505-cda1db134b50858c.js | 1 - _next/static/chunks/5058.c4fd7f5795ab8d79.js | 1 + _next/static/chunks/5343.e03a12b416825096.js | 1191 ++++++ _next/static/chunks/5577.c975f7821a3b42f6.js | 1 + _next/static/chunks/5962.491fd75c3af3a139.js | 1191 ++++++ _next/static/chunks/6060.8d33816111284aef.js | 1 + _next/static/chunks/6314-7170427719c42432.js | 25 + _next/static/chunks/6419.5cc6754bcd79a773.js | 1 + _next/static/chunks/6426.e603f579e6575af2.js | 1 + ...6057682755.js => 6457.691b3e3e7a377887.js} | 6 +- _next/static/chunks/649.6b189c4a483666e3.js | 1 + _next/static/chunks/65.f5339a3032631594.js | 1 - _next/static/chunks/6538.c787f7f865d6621e.js | 1 + _next/static/chunks/6738.44a232c68f82e284.js | 1 + _next/static/chunks/6933.8e73dd9abe9d8901.js | 1 + _next/static/chunks/7045.dff662388c9e4170.js | 1191 ++++++ _next/static/chunks/723.298da848a5f4cef5.js | 27 - _next/static/chunks/7434.89358516bfff70af.js | 1 + _next/static/chunks/758-c45e7b463131dabd.js | 9 - _next/static/chunks/7743.c89af59110d42f70.js | 1 + _next/static/chunks/8028.56be45912326156f.js | 1 + _next/static/chunks/806.b8ad402b3d2590ab.js | 1 + _next/static/chunks/8108.0b7f7c109301a935.js | 1 + _next/static/chunks/8122.5005b17bac05db78.js | 1 + _next/static/chunks/8128-85b1b9ef3dbba538.js | 1323 ++++++ _next/static/chunks/829.2352d98da124ef01.js | 1 + _next/static/chunks/8343-cf612740feaee460.js | 6 + _next/static/chunks/8353.fd17c78a5bd34711.js | 1 + ...422dca1e69.js => 8377-9a72461298eb61b5.js} | 2 +- _next/static/chunks/840.0daec667528d748f.js | 19 - _next/static/chunks/8425.8057f495efa90ea2.js | 1 + _next/static/chunks/8496.9597837c5c2e44c5.js | 1 + _next/static/chunks/8688.f0840c2e2ca06783.js | 1191 ++++++ _next/static/chunks/8755.93b9a033f8e01ff4.js | 1 + _next/static/chunks/9016.3abe81143599065c.js | 1 + _next/static/chunks/9254.8c6bb3ef6210929c.js | 1 + _next/static/chunks/9307.52d3da8e16643fa1.js | 1 + _next/static/chunks/9353.b0a71cab79fe600c.js | 1 + _next/static/chunks/94-0f40f05ae469b832.js | 25 - _next/static/chunks/9478.f1a9d6a1ce64b78e.js | 1 + _next/static/chunks/9488.b326a6f0bbf48482.js | 1 + _next/static/chunks/96.fbe6c36718bc80c6.js | 1 + _next/static/chunks/960.3374657bbda7c4de.js | 1 - _next/static/chunks/974.e7f53dc718cfb23c.js | 1 - _next/static/chunks/9771.ba6214c3a0523cb0.js | 1 + _next/static/chunks/985.5eba68e106530036.js | 1 + _next/static/chunks/9893.f64cf7950ef2c1af.js | 1 + .../chunks/9e6acbcb-876141bbf05d0e3f.js | 1 - .../chunks/9e6acbcb-ef697bd681a7b6d1.js | 1 + .../chunks/a075cb68-4d417ce1a9af9cd7.js | 1 + .../chunks/abfc1a8b-27e9e20cc47dc494.js | 1 + .../chunks/abfc1a8b-46ace5f838f364ef.js | 1 - .../chunks/app/_not-found-15455a0ec2553e8d.js | 1 + .../chunks/app/_not-found-b0fbf3546bf78667.js | 1 - .../app/blobtx/page-2d8891b9b7a9863c.js | 1 + .../app/blobtx/page-651fd2493b642328.js | 1 - .../chunks/app/layout-72846f9907e05423.js | 1 + .../chunks/app/layout-c05a33264d7e2922.js | 1 - .../chunks/app/page-a144af1a332fa439.js | 1 + .../chunks/app/page-ccf73b6f5e98328a.js | 1 - .../chunks/bc0d5f4b-39d13d169cc3c920.js | 3677 ----------------- ...8cc962.js => e436f588-eb0fd937446b8a06.js} | 4 +- .../chunks/f342ebe4.7472b73452e5649a.js | 17 + .../chunks/f923c8e2-3adf627add7d119b.js | 1 + .../chunks/f923c8e2-94b5756997ef721a.js | 1 - ...b8c58.js => framework-80ef52d29d0c23c7.js} | 2 +- _next/static/chunks/main-0f313fb8eb1320f1.js | 1 - .../chunks/main-app-2e7b197ae280a8b0.js | 1 - .../chunks/main-app-30e3fea17933c8d6.js | 1 + _next/static/chunks/main-d3b6984221107998.js | 1 + .../chunks/pages/_app-73581d91c8f0560a.js | 1 - .../chunks/pages/_app-cc18faf99b498922.js | 1 + .../chunks/pages/_error-81de0fcb21d5a82e.js | 1 + .../chunks/pages/_error-d40016da94d3e766.js | 1 - .../static/chunks/webpack-c6600eb2fa5d79e2.js | 1 + .../static/chunks/webpack-cb1e4453265e08f2.js | 1 - _next/static/css/490811ad7b382a6d.css | 3 - _next/static/css/5b18b6a5b2a27393.css | 3 + _next/static/css/b6501bb98401d848.css | 1 + blobtx.html | 2 +- blobtx.txt | 21 +- index.html | 2 +- index.txt | 23 +- 124 files changed, 7500 insertions(+), 3928 deletions(-) delete mode 100644 _next/static/9tteE3g5JFHN-eqhT1zD3/_buildManifest.js create mode 100644 _next/static/_nWlRQzeL2BXe7BkBSE1p/_buildManifest.js rename _next/static/{9tteE3g5JFHN-eqhT1zD3 => _nWlRQzeL2BXe7BkBSE1p}/_ssgManifest.js (100%) create mode 100644 _next/static/chunks/1168.5234faca9ff0c76f.js create mode 100644 _next/static/chunks/1217.0c6b0c028e5e405e.js create mode 100644 _next/static/chunks/1236.db367b245c91a5dc.js create mode 100644 _next/static/chunks/1511.6b601a7bfeadaf90.js create mode 100644 _next/static/chunks/1515.0850b00c6fa04455.js create mode 100644 _next/static/chunks/1543.75b0930045e35b08.js create mode 100644 _next/static/chunks/1629.19cbd3cb174a2684.js create mode 100644 _next/static/chunks/1740-0372e0e4f0fc8f8e.js create mode 100644 _next/static/chunks/1748.d00051dbdf4829c8.js create mode 100644 _next/static/chunks/1767.0614b14efffd81bc.js delete mode 100644 _next/static/chunks/190-6c159eb307c9114b.js create mode 100644 _next/static/chunks/1957.2dca44381f77f58c.js create mode 100644 _next/static/chunks/1987.251463382c3c25d8.js create mode 100644 _next/static/chunks/2049.8d59212265d88c6f.js create mode 100644 _next/static/chunks/206.3b9605ea60904456.js delete mode 100644 _next/static/chunks/212.910fcdd4443ee55e.js delete mode 100644 _next/static/chunks/219-545492dcf7b093f9.js create mode 100644 _next/static/chunks/2193.f7e35a31c2b7168b.js create mode 100644 _next/static/chunks/2306.19f5026646eb15bf.js create mode 100644 _next/static/chunks/2343.1881298161a51c92.js delete mode 100644 _next/static/chunks/254.6175bbde91840276.js create mode 100644 _next/static/chunks/2803-bc4e4dbb3ad91ce2.js create mode 100644 _next/static/chunks/2820.f5dc0c6ebbf1f99a.js create mode 100644 _next/static/chunks/3176.6407aad5f59c9bf2.js create mode 100644 _next/static/chunks/3230.3ca586db3bd43c58.js create mode 100644 _next/static/chunks/3268.32c758e32c96cb87.js create mode 100644 _next/static/chunks/3290.cdd9db11e64761f1.js create mode 100644 _next/static/chunks/353.634da5a5b828de69.js create mode 100644 _next/static/chunks/3616.7a162e679bc40820.js create mode 100644 _next/static/chunks/3654.88d43d8437eb1154.js create mode 100644 _next/static/chunks/3704.d78ab8186eb10465.js delete mode 100644 _next/static/chunks/377.85d9313875bffcfe.js create mode 100644 _next/static/chunks/3962.643d09c97b5b093d.js create mode 100644 _next/static/chunks/4335.89cfa6f61787ec4e.js create mode 100644 _next/static/chunks/441.ff1a637d66cd1909.js create mode 100644 _next/static/chunks/4464.771a35c485788fca.js create mode 100644 _next/static/chunks/4855.5b7df21c89b7d898.js delete mode 100644 _next/static/chunks/505-cda1db134b50858c.js create mode 100644 _next/static/chunks/5058.c4fd7f5795ab8d79.js create mode 100644 _next/static/chunks/5343.e03a12b416825096.js create mode 100644 _next/static/chunks/5577.c975f7821a3b42f6.js create mode 100644 _next/static/chunks/5962.491fd75c3af3a139.js create mode 100644 _next/static/chunks/6060.8d33816111284aef.js create mode 100644 _next/static/chunks/6314-7170427719c42432.js create mode 100644 _next/static/chunks/6419.5cc6754bcd79a773.js create mode 100644 _next/static/chunks/6426.e603f579e6575af2.js rename _next/static/chunks/{289.a25cdf6057682755.js => 6457.691b3e3e7a377887.js} (76%) create mode 100644 _next/static/chunks/649.6b189c4a483666e3.js delete mode 100644 _next/static/chunks/65.f5339a3032631594.js create mode 100644 _next/static/chunks/6538.c787f7f865d6621e.js create mode 100644 _next/static/chunks/6738.44a232c68f82e284.js create mode 100644 _next/static/chunks/6933.8e73dd9abe9d8901.js create mode 100644 _next/static/chunks/7045.dff662388c9e4170.js delete mode 100644 _next/static/chunks/723.298da848a5f4cef5.js create mode 100644 _next/static/chunks/7434.89358516bfff70af.js delete mode 100644 _next/static/chunks/758-c45e7b463131dabd.js create mode 100644 _next/static/chunks/7743.c89af59110d42f70.js create mode 100644 _next/static/chunks/8028.56be45912326156f.js create mode 100644 _next/static/chunks/806.b8ad402b3d2590ab.js create mode 100644 _next/static/chunks/8108.0b7f7c109301a935.js create mode 100644 _next/static/chunks/8122.5005b17bac05db78.js create mode 100644 _next/static/chunks/8128-85b1b9ef3dbba538.js create mode 100644 _next/static/chunks/829.2352d98da124ef01.js create mode 100644 _next/static/chunks/8343-cf612740feaee460.js create mode 100644 _next/static/chunks/8353.fd17c78a5bd34711.js rename _next/static/chunks/{801-64c49d422dca1e69.js => 8377-9a72461298eb61b5.js} (66%) delete mode 100644 _next/static/chunks/840.0daec667528d748f.js create mode 100644 _next/static/chunks/8425.8057f495efa90ea2.js create mode 100644 _next/static/chunks/8496.9597837c5c2e44c5.js create mode 100644 _next/static/chunks/8688.f0840c2e2ca06783.js create mode 100644 _next/static/chunks/8755.93b9a033f8e01ff4.js create mode 100644 _next/static/chunks/9016.3abe81143599065c.js create mode 100644 _next/static/chunks/9254.8c6bb3ef6210929c.js create mode 100644 _next/static/chunks/9307.52d3da8e16643fa1.js create mode 100644 _next/static/chunks/9353.b0a71cab79fe600c.js delete mode 100644 _next/static/chunks/94-0f40f05ae469b832.js create mode 100644 _next/static/chunks/9478.f1a9d6a1ce64b78e.js create mode 100644 _next/static/chunks/9488.b326a6f0bbf48482.js create mode 100644 _next/static/chunks/96.fbe6c36718bc80c6.js delete mode 100644 _next/static/chunks/960.3374657bbda7c4de.js delete mode 100644 _next/static/chunks/974.e7f53dc718cfb23c.js create mode 100644 _next/static/chunks/9771.ba6214c3a0523cb0.js create mode 100644 _next/static/chunks/985.5eba68e106530036.js create mode 100644 _next/static/chunks/9893.f64cf7950ef2c1af.js delete mode 100644 _next/static/chunks/9e6acbcb-876141bbf05d0e3f.js create mode 100644 _next/static/chunks/9e6acbcb-ef697bd681a7b6d1.js create mode 100644 _next/static/chunks/a075cb68-4d417ce1a9af9cd7.js create mode 100644 _next/static/chunks/abfc1a8b-27e9e20cc47dc494.js delete mode 100644 _next/static/chunks/abfc1a8b-46ace5f838f364ef.js create mode 100644 _next/static/chunks/app/_not-found-15455a0ec2553e8d.js delete mode 100644 _next/static/chunks/app/_not-found-b0fbf3546bf78667.js create mode 100644 _next/static/chunks/app/blobtx/page-2d8891b9b7a9863c.js delete mode 100644 _next/static/chunks/app/blobtx/page-651fd2493b642328.js create mode 100644 _next/static/chunks/app/layout-72846f9907e05423.js delete mode 100644 _next/static/chunks/app/layout-c05a33264d7e2922.js create mode 100644 _next/static/chunks/app/page-a144af1a332fa439.js delete mode 100644 _next/static/chunks/app/page-ccf73b6f5e98328a.js delete mode 100644 _next/static/chunks/bc0d5f4b-39d13d169cc3c920.js rename _next/static/chunks/{9261979e-fc3d52d36c8cc962.js => e436f588-eb0fd937446b8a06.js} (99%) create mode 100644 _next/static/chunks/f342ebe4.7472b73452e5649a.js create mode 100644 _next/static/chunks/f923c8e2-3adf627add7d119b.js delete mode 100644 _next/static/chunks/f923c8e2-94b5756997ef721a.js rename _next/static/chunks/{framework-f780fd9bae3b8c58.js => framework-80ef52d29d0c23c7.js} (99%) delete mode 100644 _next/static/chunks/main-0f313fb8eb1320f1.js delete mode 100644 _next/static/chunks/main-app-2e7b197ae280a8b0.js create mode 100644 _next/static/chunks/main-app-30e3fea17933c8d6.js create mode 100644 _next/static/chunks/main-d3b6984221107998.js delete mode 100644 _next/static/chunks/pages/_app-73581d91c8f0560a.js create mode 100644 _next/static/chunks/pages/_app-cc18faf99b498922.js create mode 100644 _next/static/chunks/pages/_error-81de0fcb21d5a82e.js delete mode 100644 _next/static/chunks/pages/_error-d40016da94d3e766.js create mode 100644 _next/static/chunks/webpack-c6600eb2fa5d79e2.js delete mode 100644 _next/static/chunks/webpack-cb1e4453265e08f2.js delete mode 100644 _next/static/css/490811ad7b382a6d.css create mode 100644 _next/static/css/5b18b6a5b2a27393.css create mode 100644 _next/static/css/b6501bb98401d848.css diff --git a/404.html b/404.html index de51bc8..ceb0e92 100644 --- a/404.html +++ b/404.html @@ -1 +1 @@ -404: This page could not be found.EthDA

404

This page could not be found.

\ No newline at end of file +EthDA \ No newline at end of file diff --git a/_next/static/9tteE3g5JFHN-eqhT1zD3/_buildManifest.js b/_next/static/9tteE3g5JFHN-eqhT1zD3/_buildManifest.js deleted file mode 100644 index f278e89..0000000 --- a/_next/static/9tteE3g5JFHN-eqhT1zD3/_buildManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__BUILD_MANIFEST={__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/_error":["static/chunks/pages/_error-d40016da94d3e766.js"],sortedPages:["/_app","/_error"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/_next/static/_nWlRQzeL2BXe7BkBSE1p/_buildManifest.js b/_next/static/_nWlRQzeL2BXe7BkBSE1p/_buildManifest.js new file mode 100644 index 0000000..0192aa7 --- /dev/null +++ b/_next/static/_nWlRQzeL2BXe7BkBSE1p/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST={__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/_error":["static/chunks/pages/_error-81de0fcb21d5a82e.js"],sortedPages:["/_app","/_error"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/_next/static/9tteE3g5JFHN-eqhT1zD3/_ssgManifest.js b/_next/static/_nWlRQzeL2BXe7BkBSE1p/_ssgManifest.js similarity index 100% rename from _next/static/9tteE3g5JFHN-eqhT1zD3/_ssgManifest.js rename to _next/static/_nWlRQzeL2BXe7BkBSE1p/_ssgManifest.js diff --git a/_next/static/chunks/1168.5234faca9ff0c76f.js b/_next/static/chunks/1168.5234faca9ff0c76f.js new file mode 100644 index 0000000..2f45acc --- /dev/null +++ b/_next/static/chunks/1168.5234faca9ff0c76f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1168],{31168:function(t,o,s){s.r(o),s.d(o,{default:function(){return r}});var r='data:image/svg+xml,'}}]); \ No newline at end of file diff --git a/_next/static/chunks/1217.0c6b0c028e5e405e.js b/_next/static/chunks/1217.0c6b0c028e5e405e.js new file mode 100644 index 0000000..83083de --- /dev/null +++ b/_next/static/chunks/1217.0c6b0c028e5e405e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1217],{81217:function(e,a,t){t.d(a,{offchainLookup:function(){return offchainLookup},offchainLookupSignature:function(){return p}});var r=t(17781),s=t(78113),n=t(25049),o=t(97749);let OffchainLookupError=class OffchainLookupError extends n.G{constructor({callbackSelector:e,cause:a,data:t,extraData:r,sender:s,urls:n}){super(a.shortMessage||"An error occurred while fetching for an offchain result.",{cause:a,metaMessages:[...a.metaMessages||[],a.metaMessages?.length?"":[],"Offchain Gateway Call:",n&&[" Gateway URL(s):",...n.map(e=>` ${(0,o.Gr)(e)}`)],` Sender: ${s}`,` Data: ${t}`,` Callback selector: ${e}`,` Extra data: ${r}`].flat()}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupError"})}};let OffchainLookupResponseMalformedError=class OffchainLookupResponseMalformedError extends n.G{constructor({result:e,url:a}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${(0,o.Gr)(a)}`,`Response: ${(0,s.P)(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupResponseMalformedError"})}};let OffchainLookupSenderMismatchError=class OffchainLookupSenderMismatchError extends n.G{constructor({sender:e,to:a}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${a}`,`OffchainLookup sender address: ${e}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupSenderMismatchError"})}};var c=t(74677),i=t(83638),f=t(49239),u=t(63861),l=t(20935),d=t(79338);let p="0x556f1830",h={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]};async function offchainLookup(e,{blockNumber:a,blockTag:t,data:s,to:n}){let{args:o}=(0,i.p)({data:s,abi:[h]}),[c,d,p,m,y]=o,{ccipRead:b}=e,w=b&&"function"==typeof b?.request?b.request:ccipRequest;try{if(!(0,u.E)(n,c))throw new OffchainLookupSenderMismatchError({sender:c,to:n});let s=await w({data:p,sender:c,urls:d}),{data:o}=await (0,r.R)(e,{blockNumber:a,blockTag:t,data:(0,l.zo)([m,(0,f.E)([{type:"bytes"},{type:"bytes"}],[s,y])]),to:n});return o}catch(e){throw new OffchainLookupError({callbackSelector:m,cause:e,data:s,extraData:y,sender:c,urls:d})}}async function ccipRequest({data:e,sender:a,urls:t}){let r=Error("An unknown error occurred.");for(let n=0;n0?Utility_charat(k,--S):0,_--,10===A&&(_=1,E--),A}function next(){return A=S2||token(A)>3?"":" "}function escaping(t,r){for(var n;--r&&next()&&!(A<48)&&!(A>102)&&(!(A>57)||!(A<65))&&(!(A>70)||!(A<97)););return n=S+(r<6&&32==peek()&&32==next()),Utility_substr(k,t,n)}function delimiter(t){for(;next();)switch(A){case t:return S;case 34:case 39:34!==t&&39!==t&&delimiter(A);break;case 40:41===t&&delimiter(t);break;case 92:next()}return S}function commenter(t,r){for(;next();)if(t+A===57)break;else if(t+A===84&&47===peek())break;return"/*"+Utility_substr(k,r,S-1)+"*"+v(47===t?t:next())}function identifier(t){for(;!token(peek());)next();return Utility_substr(k,t,S)}function serialize(t,r){for(var n="",o=0;o6)switch(Utility_charat(t,r+1)){case 109:if(45!==Utility_charat(t,r+4))break;case 102:return replace(t,/(.+:)(.+)-([^]+)/,"$1"+d+"$2-$3$1"+u+(108==Utility_charat(t,r+3)?"$3":"$2-$3"))+t;case 115:return~indexof(t,"stretch",0)?prefix(replace(t,"stretch","fill-available"),r,n)+t:t}break;case 5152:case 5920:return replace(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,n,o,i,a,u,d){return c+n+":"+o+d+(i?c+n+"-span:"+(a?u:+u-+o)+d:"")+t});case 4949:if(121===Utility_charat(t,r+6))return replace(t,":",":"+d)+t;break;case 6444:switch(Utility_charat(t,45===Utility_charat(t,14)?18:11)){case 120:return replace(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+d+(45===Utility_charat(t,14)?"inline-":"")+"box$3$1"+d+"$2$3$1"+c+"$2box$3")+t;case 100:return replace(t,":",":"+c)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return replace(t,"scroll-","scroll-snap-")+t}return t}function middleware(t){var r=t.length;return function(n,o,i,a){for(var c="",u=0;u-1&&!t.return)switch(t.type){case g:t.return=prefix(t.value,t.length,n);return;case b:return serialize([copy(t,{value:replace(t.value,"@","@"+d)})],o);case m:if(t.length)return Utility_combine(n=t.props,function(r){switch(match(r,o=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":lift(copy(t,{props:[replace(r,/:(read-\w+)/,":"+u+"$1")]})),lift(copy(t,{props:[r]})),w(t,{props:filter(n,o)});break;case"::placeholder":lift(copy(t,{props:[replace(r,/:(plac\w+)/,":"+d+"input-$1")]})),lift(copy(t,{props:[replace(r,/:(plac\w+)/,":"+u+"$1")]})),lift(copy(t,{props:[replace(r,/:(plac\w+)/,c+"input-$1")]})),lift(copy(t,{props:[r]})),w(t,{props:filter(n,o)})}return""})}}function compile(t){return dealloc(parse("",null,null,null,[""],t=alloc(t),0,[0],t))}function parse(t,r,n,o,i,a,c,u,d){for(var f=0,m=0,g=c,b=0,w=0,E=0,_=1,P=1,A=1,k=0,C="",T=i,N=a,H=o,D=C;P;)switch(E=k,k=next()){case 40:if(108!=E&&58==Utility_charat(D,g-1)){-1!=indexof(D+=replace(delimit(k),"&","&\f"),"&\f",y(f?u[f-1]:0))&&(A=-1);break}case 34:case 39:case 91:D+=delimit(k);break;case 9:case 10:case 13:case 32:D+=whitespace(E);break;case 92:D+=escaping(S-1,7);continue;case 47:switch(peek()){case 42:case 47:Utility_append(comment(commenter(next(),S),r,n,d),d);break;default:D+="/"}break;case 123*_:u[f++]=Utility_strlen(D)*A;case 125*_:case 59:case 0:switch(k){case 0:case 125:P=0;case 59+m:-1==A&&(D=replace(D,/\f/g,"")),w>0&&Utility_strlen(D)-g&&Utility_append(w>32?declaration(D+";",o,n,g-1,d):declaration(replace(D," ","")+";",o,n,g-2,d),d);break;case 59:D+=";";default:if(Utility_append(H=ruleset(D,r,n,f,m,i,u,C,T=[],N=[],g,a),a),123===k){if(0===m)parse(D,r,H,H,T,a,g,u,N);else switch(99===b&&110===Utility_charat(D,3)?100:b){case 100:case 108:case 109:case 115:parse(t,H,H,o&&Utility_append(ruleset(t,H,H,0,0,i,u,C,i,T=[],g,N),N),i,N,g,u,o?T:N);break;default:parse(D,H,H,H,[""],N,0,u,N)}}}f=m=w=0,_=A=1,C=D="",g=c;break;case 58:g=1+Utility_strlen(D),w=E;default:if(_<1){if(123==k)--_;else if(125==k&&0==_++&&125==prev())continue}switch(D+=v(k),k*_){case 38:A=m>0?1:(D+="\f",-1);break;case 44:u[f++]=(Utility_strlen(D)-1)*A,A=1;break;case 64:45===peek()&&(D+=delimit(next())),b=peek(),m=g=Utility_strlen(C=D+=identifier(S)),k++;break;case 45:45===E&&2==Utility_strlen(D)&&(_=0)}}return a}function ruleset(t,r,n,o,i,a,c,u,d,f,g,b){for(var v=i-1,w=0===i?a:[""],E=w.length,_=0,P=0,S=0;_0?w[A]+" "+k:replace(k,/&\f/g,w[A])).trim())&&(d[S++]=C);return node(t,r,n,0===i?m:u,d,f,g,b)}function comment(t,r,n,o){return node(t,r,n,f,v(Tokenizer_char()),Utility_substr(t,2,-2),0,o)}function declaration(t,r,n,o,i){return node(t,r,n,g,Utility_substr(t,0,o),Utility_substr(t,o+1,-1),o,i)}var C={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},T=n(28070),N=void 0!==T&&void 0!==T.env&&(T.env.REACT_APP_SC_ATTR||T.env.SC_ATTR)||"data-styled",H="active",D="data-styled-version",F="6.1.8",U="/*!sc*/\n",G="undefined"!=typeof window&&"HTMLElement"in window,V=!!("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==T&&void 0!==T.env&&void 0!==T.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==T.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==T.env.REACT_APP_SC_DISABLE_SPEEDY&&T.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==T&&void 0!==T.env&&void 0!==T.env.SC_DISABLE_SPEEDY&&""!==T.env.SC_DISABLE_SPEEDY&&"false"!==T.env.SC_DISABLE_SPEEDY&&T.env.SC_DISABLE_SPEEDY),q=Object.freeze([]),W=Object.freeze({});function I(t,r,n){return void 0===n&&(n=W),t.theme!==n.theme&&t.theme||r||n.theme}var K=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Z=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Y=/(^-|-$)/g;function R(t){return t.replace(Z,"-").replace(Y,"")}var J=/(a)(d)/gi,j=function(t){return String.fromCharCode(t+(t>25?39:97))};function x(t){var r,n="";for(r=Math.abs(t);r>52;r=r/52|0)n=j(r%52)+n;return(j(r%52)+n).replace(J,"$1-$2")}var Q,M=function(t,r){for(var n=r.length;n;)t=33*t^r.charCodeAt(--n);return t},$=function(t){return M(5381,t)};function z(t){return x($(t)>>>0)}function B(t){return t.displayName||t.name||"Component"}function L(t){return"string"==typeof t}var ee="function"==typeof Symbol&&Symbol.for,et=ee?Symbol.for("react.memo"):60115,er=ee?Symbol.for("react.forward_ref"):60112,en={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},eo={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ei={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ea=((Q={})[er]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Q[et]=ei,Q);function X(t){return("type"in t&&t.type.$$typeof)===et?ei:"$$typeof"in t?ea[t.$$typeof]:en}var es=Object.defineProperty,el=Object.getOwnPropertyNames,ec=Object.getOwnPropertySymbols,eu=Object.getOwnPropertyDescriptor,ed=Object.getPrototypeOf,ef=Object.prototype;function oe(t,r,n){if("string"!=typeof r){if(ef){var o=ed(r);o&&o!==ef&&oe(t,o,n)}var i=el(r);ec&&(i=i.concat(ec(r)));for(var a=X(t),c=X(r),u=0;u0?" Args: ".concat(r.join(", ")):""))}var eh=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,i=o;t>=i;)if((i<<=1)<0)throw he(16,"".concat(t));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var a=o;a=this.length||0===this.groupSizes[t])return r;for(var n=this.groupSizes[t],o=this.indexOfGroup(t),i=o+n,a=o;a=0){var n=document.createTextNode(r);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t0&&(d+="".concat(t,","))}),o+="".concat(c).concat(u,'{content:"').concat(d,'"}').concat(U)}}})(i);return o}(o)})}return e.registerId=function(t){return ge(t)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(__assign(__assign({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){var t,r,n;return this.tag||(this.tag=(r=(t=this.options).useCSSOMInjection,n=t.target,new eh(t.isServer?new ex(n):r?new ev(n):new ew(n))))},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(ge(t),this.names.has(t))this.names.get(t).add(r);else{var n=new Set;n.add(r),this.names.set(t,n)}},e.prototype.insertRules=function(t,r,n){this.registerName(t,r),this.getTag().insertRules(ge(t),n)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(ge(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),eP=/&/g,eS=/^\s*\/\/.*$/gm;function je(t,r){return t.map(function(t){return"rule"===t.type&&(t.value="".concat(r," ").concat(t.value),t.value=t.value.replaceAll(",",",".concat(r," ")),t.props=t.props.map(function(t){return"".concat(r," ").concat(t)})),Array.isArray(t.children)&&"@keyframes"!==t.type&&(t.children=je(t.children,r)),t})}function xe(t){var r,n,o,i=void 0===t?W:t,a=i.options,c=void 0===a?W:a,u=i.plugins,d=void 0===u?q:u,l=function(t,o,i){return i.startsWith(n)&&i.endsWith(n)&&i.replaceAll(n,"").length>0?".".concat(r):t},f=d.slice();f.push(function(t){t.type===m&&t.value.includes("&")&&(t.props[0]=t.props[0].replace(eP,n).replace(o,l))}),c.prefix&&f.push(prefixer),f.push(stringify);var p=function(t,i,a,u){void 0===i&&(i=""),void 0===a&&(a=""),void 0===u&&(u="&"),r=u,n=i,o=RegExp("\\".concat(n,"\\b"),"g");var d=t.replace(eS,""),m=compile(a||i?"".concat(a," ").concat(i," { ").concat(d," }"):d);c.namespace&&(m=je(m,c.namespace));var g=[];return serialize(m,middleware(f.concat(rulesheet(function(t){return g.push(t)})))),g};return p.hash=d.length?d.reduce(function(t,r){return r.name||he(15),M(t,r.name)},5381).toString():"",p}var eA=new e$,ek=xe(),eI=o.createContext({shouldForwardProp:void 0,styleSheet:eA,stylis:ek}),eC=(eI.Consumer,o.createContext(void 0));function Be(){return(0,o.useContext)(eI)}function Le(t){var r=(0,o.useState)(t.stylisPlugins),n=r[0],i=r[1],c=Be().styleSheet,u=(0,o.useMemo)(function(){var r=c;return t.sheet?r=t.sheet:t.target&&(r=r.reconstructWithOptions({target:t.target},!1)),t.disableCSSOMInjection&&(r=r.reconstructWithOptions({useCSSOMInjection:!1})),r},[t.disableCSSOMInjection,t.sheet,t.target,c]),d=(0,o.useMemo)(function(){return xe({options:{namespace:t.namespace,prefix:t.enableVendorPrefixes},plugins:n})},[t.enableVendorPrefixes,t.namespace,n]);(0,o.useEffect)(function(){a()(n,t.stylisPlugins)||i(t.stylisPlugins)},[t.stylisPlugins]);var f=(0,o.useMemo)(function(){return{shouldForwardProp:t.shouldForwardProp,styleSheet:u,stylis:d}},[t.shouldForwardProp,u,d]);return o.createElement(eI.Provider,{value:f},o.createElement(eC.Provider,{value:d},t.children))}var eB=function(){function e(t,r){var n=this;this.inject=function(t,r){void 0===r&&(r=ek);var o=n.name+r.hash;t.hasNameForId(n.id,o)||t.insertRules(n.id,o,r(n.rules,o,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,ue(this,function(){throw he(12,String(n.name))})}return e.prototype.getName=function(t){return void 0===t&&(t=ek),this.name+t.hash},e}();function We(t){for(var r="",n=0;n="A"&&o<="Z"?r+="-"+o.toLowerCase():r+=o}return r.startsWith("ms-")?"-"+r:r}var qe=function(t){return null==t||!1===t||""===t},He=function(t){var r=[];for(var n in t){var o=t[n];t.hasOwnProperty(n)&&!qe(o)&&(Array.isArray(o)&&o.isCss||re(o)?r.push("".concat(We(n),":"),o,";"):ce(o)?r.push.apply(r,__spreadArray(__spreadArray(["".concat(n," {")],He(o),!1),["}"],!1)):r.push("".concat(We(n),": ").concat(null==o||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in C||n.startsWith("--")?String(o).trim():"".concat(o,"px"),";")))}return r};function Ue(t,r,n,o){return qe(t)?[]:se(t)?[".".concat(t.styledComponentId)]:re(t)?!re(t)||t.prototype&&t.prototype.isReactComponent||!r?[t]:Ue(t(r),r,n,o):t instanceof eB?n?(t.inject(n,o),[t.getName(o)]):[t]:ce(t)?He(t):Array.isArray(t)?Array.prototype.concat.apply(q,t.map(function(t){return Ue(t,r,n,o)})):[t.toString()]}function Je(t){for(var r=0;r>>0);if(!r.hasNameForId(this.componentId,a)){var c=n(i,".".concat(a),void 0,this.componentId);r.insertRules(this.componentId,a,c)}o=ie(o,a),this.staticRulesId=a}}else{for(var u=M(this.baseHash,n.hash),d="",f=0;f>>0);r.hasNameForId(this.componentId,b)||r.insertRules(this.componentId,b,n(d,".".concat(b),void 0,this.componentId)),o=ie(o,b)}}return o},e}(),eR=o.createContext(void 0);eR.Consumer;var eL={};function rt(t,r,n){var i,a,c,u,d=se(t),f=!L(t),m=r.attrs,g=void 0===m?q:m,b=r.componentId,y=void 0===b?(i=r.displayName,a=r.parentComponentId,eL[c="string"!=typeof i?"sc":R(i)]=(eL[c]||0)+1,u="".concat(c,"-").concat(z(F+c+eL[c])),a?"".concat(a,"-").concat(u):u):b,v=r.displayName,w=void 0===v?L(t)?"styled.".concat(t):"Styled(".concat(B(t),")"):v,E=r.displayName&&r.componentId?"".concat(R(r.displayName),"-").concat(r.componentId):r.componentId||y,_=d&&t.attrs?t.attrs.concat(g).filter(Boolean):g,P=r.shouldForwardProp;if(d&&t.shouldForwardProp){var S=t.shouldForwardProp;if(r.shouldForwardProp){var A=r.shouldForwardProp;P=function(t,r){return S(t,r)&&A(t,r)}}else P=S}var k=new eO(n,E,d?t.componentStyle:void 0);function O(t,r){return function(t,r,n){var i,a=t.attrs,c=t.componentStyle,u=t.defaultProps,d=t.foldedComponentIds,f=t.styledComponentId,m=t.target,g=o.useContext(eR),b=Be(),y=t.shouldForwardProp||b.shouldForwardProp,v=I(r,g,u)||W,w=function(t,r,n){for(var o,i=__assign(__assign({},r),{className:void 0,theme:n}),a=0;a2&&e$.registerId(this.componentId+t),this.removeStyles(t,n),this.createStyles(t,r,n,o)}}(),function(){function e(){var t=this;this._emitSheetCSS=function(){var r=t.instance.toString(),o=n.nc,i=ae([o&&'nonce="'.concat(o,'"'),"".concat(N,'="true"'),"".concat(D,'="').concat(F,'"')].filter(Boolean)," ");return"")},this.getStyleTags=function(){if(t.sealed)throw he(2);return t._emitSheetCSS()},this.getStyleElement=function(){if(t.sealed)throw he(2);var r,i=((r={})[N]="",r[D]=F,r.dangerouslySetInnerHTML={__html:t.instance.toString()},r),a=n.nc;return a&&(i.nonce=a),[o.createElement("style",__assign({},i,{key:"sc-0-0"}))]},this.seal=function(){t.sealed=!0},this.instance=new e$({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(t){if(this.sealed)throw he(2);return o.createElement(Le,{sheet:this.instance},t)},e.prototype.interleaveWithNodeStream=function(t){throw he(3)}}()},42770:function(t,r,n){"use strict";n.d(r,{qo:function(){return m},Gn:function(){return Common}});var o,i,a,c,u,d,f,m,g,b,y,v,w,E,_=n(94433),P=n(61900),create_buffer=(t,r)=>P.Buffer.from(t,r);function defineCrc(t,r){let result=(t,n)=>r(create_buffer(t),n)>>>0;return result.signed=(t,n)=>r(create_buffer(t),n),result.unsigned=result,result.model=t,result}defineCrc("crc1",(t,r=0)=>{let n=~~r,o=0;for(let r=0;r{let n=~~r;for(let r=0;r{let n=~~r;for(let r=0;r{let n=~~r;for(let r=0;r{let n=~~r;for(let r=0;r>8)&65535;return n});let T=[0,4129,8258,12387,16516,20645,24774,28903,33032,37161,41290,45419,49548,53677,57806,61935,4657,528,12915,8786,21173,17044,29431,25302,37689,33560,45947,41818,54205,50076,62463,58334,9314,13379,1056,5121,25830,29895,17572,21637,42346,46411,34088,38153,58862,62927,50604,54669,13907,9842,5649,1584,30423,26358,22165,18100,46939,42874,38681,34616,63455,59390,55197,51132,18628,22757,26758,30887,2112,6241,10242,14371,51660,55789,59790,63919,35144,39273,43274,47403,23285,19156,31415,27286,6769,2640,14899,10770,56317,52188,64447,60318,39801,35672,47931,43802,27814,31879,19684,23749,11298,15363,3168,7233,60846,64911,52716,56781,44330,48395,36200,40265,32407,28342,24277,20212,15891,11826,7761,3696,65439,61374,57309,53244,48923,44858,40793,36728,37256,33193,45514,41451,53516,49453,61774,57711,4224,161,12482,8419,20484,16421,28742,24679,33721,37784,41979,46042,49981,54044,58239,62302,689,4752,8947,13010,16949,21012,25207,29270,46570,42443,38312,34185,62830,58703,54572,50445,13538,9411,5280,1153,29798,25671,21540,17413,42971,47098,34713,38840,59231,63358,50973,55100,9939,14066,1681,5808,26199,30326,17941,22068,55628,51565,63758,59695,39368,35305,47498,43435,22596,18533,30726,26663,6336,2273,14466,10403,52093,56156,60223,64286,35833,39896,43963,48026,19061,23124,27191,31254,2801,6864,10931,14994,64814,60687,56684,52557,48554,44427,40424,36297,31782,27655,23652,19525,15522,11395,7392,3265,61215,65342,53085,57212,44955,49082,36825,40952,28183,32310,20053,24180,11923,16050,3793,7920];"undefined"!=typeof Int32Array&&(T=new Int32Array(T)),defineCrc("ccitt",(t,r)=>{let n=void 0!==r?~~r:65535;for(let r=0;r>8^t[r])&255]^n<<8)&65535;return n});let N=[0,49345,49537,320,49921,960,640,49729,50689,1728,1920,51009,1280,50625,50305,1088,52225,3264,3456,52545,3840,53185,52865,3648,2560,51905,52097,2880,51457,2496,2176,51265,55297,6336,6528,55617,6912,56257,55937,6720,7680,57025,57217,8e3,56577,7616,7296,56385,5120,54465,54657,5440,55041,6080,5760,54849,53761,4800,4992,54081,4352,53697,53377,4160,61441,12480,12672,61761,13056,62401,62081,12864,13824,63169,63361,14144,62721,13760,13440,62529,15360,64705,64897,15680,65281,16320,16e3,65089,64001,15040,15232,64321,14592,63937,63617,14400,10240,59585,59777,10560,60161,11200,10880,59969,60929,11968,12160,61249,11520,60865,60545,11328,58369,9408,9600,58689,9984,59329,59009,9792,8704,58049,58241,9024,57601,8640,8320,57409,40961,24768,24960,41281,25344,41921,41601,25152,26112,42689,42881,26432,42241,26048,25728,42049,27648,44225,44417,27968,44801,28608,28288,44609,43521,27328,27520,43841,26880,43457,43137,26688,30720,47297,47489,31040,47873,31680,31360,47681,48641,32448,32640,48961,32e3,48577,48257,31808,46081,29888,30080,46401,30464,47041,46721,30272,29184,45761,45953,29504,45313,29120,28800,45121,20480,37057,37249,20800,37633,21440,21120,37441,38401,22208,22400,38721,21760,38337,38017,21568,39937,23744,23936,40257,24320,40897,40577,24128,23040,39617,39809,23360,39169,22976,22656,38977,34817,18624,18816,35137,19200,35777,35457,19008,19968,36545,36737,20288,36097,19904,19584,35905,17408,33985,34177,17728,34561,18368,18048,34369,33281,17088,17280,33601,16640,33217,32897,16448];"undefined"!=typeof Int32Array&&(N=new Int32Array(N)),defineCrc("crc-16-modbus",(t,r)=>{let n=void 0!==r?~~r:65535;for(let r=0;r>8)&65535;return n}),defineCrc("xmodem",(t,r)=>{let n=void 0!==r?~~r:0;for(let r=0;r>>8&255;o^=255&t[r],o^=o>>>4,n=n<<8&65535^o^(o=o<<5&65535)^(o=o<<7&65535)}return n});let H=[0,4489,8978,12955,17956,22445,25910,29887,35912,40385,44890,48851,51820,56293,59774,63735,4225,264,13203,8730,22181,18220,30135,25662,40137,36160,49115,44626,56045,52068,63999,59510,8450,12427,528,5017,26406,30383,17460,21949,44362,48323,36440,40913,60270,64231,51324,55797,12675,8202,4753,792,30631,26158,21685,17724,48587,44098,40665,36688,64495,60006,55549,51572,16900,21389,24854,28831,1056,5545,10034,14011,52812,57285,60766,64727,34920,39393,43898,47859,21125,17164,29079,24606,5281,1320,14259,9786,57037,53060,64991,60502,39145,35168,48123,43634,25350,29327,16404,20893,9506,13483,1584,6073,61262,65223,52316,56789,43370,47331,35448,39921,29575,25102,20629,16668,13731,9258,5809,1848,65487,60998,56541,52564,47595,43106,39673,35696,33800,38273,42778,46739,49708,54181,57662,61623,2112,6601,11090,15067,20068,24557,28022,31999,38025,34048,47003,42514,53933,49956,61887,57398,6337,2376,15315,10842,24293,20332,32247,27774,42250,46211,34328,38801,58158,62119,49212,53685,10562,14539,2640,7129,28518,32495,19572,24061,46475,41986,38553,34576,62383,57894,53437,49460,14787,10314,6865,2904,32743,28270,23797,19836,50700,55173,58654,62615,32808,37281,41786,45747,19012,23501,26966,30943,3168,7657,12146,16123,54925,50948,62879,58390,37033,33056,46011,41522,23237,19276,31191,26718,7393,3432,16371,11898,59150,63111,50204,54677,41258,45219,33336,37809,27462,31439,18516,23005,11618,15595,3696,8185,63375,58886,54429,50452,45483,40994,37561,33584,31687,27214,22741,18780,15843,11370,7921,3960];"undefined"!=typeof Int32Array&&(H=new Int32Array(H)),defineCrc("kermit",(t,r)=>{let n=void 0!==r?~~r:0;for(let r=0;r>8)&65535;return n});let D=[0,8801531,9098509,825846,9692897,1419802,1651692,10452759,10584377,2608578,2839604,11344079,3303384,11807523,12104405,4128302,12930697,4391538,5217156,13227903,5679208,13690003,14450021,5910942,6606768,14844747,15604413,6837830,16197969,7431594,8256604,16494759,840169,9084178,8783076,18463,10434312,1670131,1434117,9678590,11358416,2825259,2590173,10602790,4109873,12122826,11821884,3289031,13213536,5231515,4409965,12912278,5929345,14431610,13675660,5693559,6823513,15618722,14863188,6588335,16513208,8238147,7417269,16212302,1680338,10481449,9664223,1391140,9061683,788936,36926,8838341,12067563,4091408,3340262,11844381,2868234,11372785,10555655,2579964,14478683,5939616,5650518,13661357,5180346,13190977,12967607,4428364,8219746,16457881,16234863,7468436,15633027,6866552,6578062,14816117,1405499,9649856,10463030,1698765,8819930,55329,803287,9047340,11858690,3325945,4072975,12086004,2561507,10574104,11387118,2853909,13647026,5664841,5958079,14460228,4446803,12949160,13176670,5194661,7454091,16249200,16476294,8201341,14834538,6559633,6852199,15647388,3360676,11864927,12161705,4185682,10527045,2551230,2782280,11286707,9619101,1346150,1577872,10379115,73852,8875143,9172337,899466,16124205,7357910,8182816,16421083,6680524,14918455,15678145,6911546,5736468,13747439,14507289,5968354,12873461,4334094,5159928,13170435,4167245,12180150,11879232,3346363,11301036,2767959,2532769,10545498,10360692,1596303,1360505,9604738,913813,9157998,8856728,92259,16439492,8164415,7343561,16138546,6897189,15692510,14936872,6662099,5986813,14488838,13733104,5750795,13156124,5174247,4352529,12855018,2810998,11315341,10498427,2522496,12124823,4148844,3397530,11901793,9135439,862644,110658,8912057,1606574,10407765,9590435,1317464,15706879,6940164,6651890,14889737,8145950,16384229,16161043,7394792,5123014,13133629,12910283,4370992,14535975,5997020,5707818,13718737,2504095,10516836,11329682,2796649,11916158,3383173,4130419,12143240,8893606,129117,876971,9121104,1331783,9576124,10389322,1625009,14908182,6633453,6925851,15721184,7380471,16175372,16402682,8127489,4389423,12891860,13119266,5137369,13704398,5722165,6015427,14517560];"undefined"!=typeof Int32Array&&(D=new Int32Array(D)),defineCrc("crc-24",(t,r)=>{let n=void 0!==r?~~r:11994318;for(let r=0;r>16^t[r])&255]^n<<8)&16777215;return n});let F=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];"undefined"!=typeof Int32Array&&(F=new Int32Array(F));var U=defineCrc("crc-32",(t,r)=>{let n=0===r?0:-1^~~r;for(let r=0;r>>8;return -1^n});let G=[0,79764919,159529838,222504665,319059676,398814059,445009330,507990021,638119352,583659535,797628118,726387553,890018660,835552979,1015980042,944750013,1276238704,1221641927,1167319070,1095957929,1595256236,1540665371,1452775106,1381403509,1780037320,1859660671,1671105958,1733955601,2031960084,2111593891,1889500026,1952343757,2552477408,2632100695,2443283854,2506133561,2334638140,2414271883,2191915858,2254759653,3190512472,3135915759,3081330742,3009969537,2905550212,2850959411,2762807018,2691435357,3560074640,3505614887,3719321342,3648080713,3342211916,3287746299,3467911202,3396681109,4063920168,4143685023,4223187782,4286162673,3779000052,3858754371,3904687514,3967668269,881225847,809987520,1023691545,969234094,662832811,591600412,771767749,717299826,311336399,374308984,453813921,533576470,25881363,88864420,134795389,214552010,2023205639,2086057648,1897238633,1976864222,1804852699,1867694188,1645340341,1724971778,1587496639,1516133128,1461550545,1406951526,1302016099,1230646740,1142491917,1087903418,2896545431,2825181984,2770861561,2716262478,3215044683,3143675388,3055782693,3001194130,2326604591,2389456536,2200899649,2280525302,2578013683,2640855108,2418763421,2498394922,3769900519,3832873040,3912640137,3992402750,4088425275,4151408268,4197601365,4277358050,3334271071,3263032808,3476998961,3422541446,3585640067,3514407732,3694837229,3640369242,1762451694,1842216281,1619975040,1682949687,2047383090,2127137669,1938468188,2001449195,1325665622,1271206113,1183200824,1111960463,1543535498,1489069629,1434599652,1363369299,622672798,568075817,748617968,677256519,907627842,853037301,1067152940,995781531,51762726,131386257,177728840,240578815,269590778,349224269,429104020,491947555,4046411278,4126034873,4172115296,4234965207,3794477266,3874110821,3953728444,4016571915,3609705398,3555108353,3735388376,3664026991,3290680682,3236090077,3449943556,3378572211,3174993278,3120533705,3032266256,2961025959,2923101090,2868635157,2813903052,2742672763,2604032198,2683796849,2461293480,2524268063,2284983834,2364738477,2175806836,2238787779,1569362073,1498123566,1409854455,1355396672,1317987909,1246755826,1192025387,1137557660,2072149281,2135122070,1912620623,1992383480,1753615357,1816598090,1627664531,1707420964,295390185,358241886,404320391,483945776,43990325,106832002,186451547,266083308,932423249,861060070,1041341759,986742920,613929101,542559546,756411363,701822548,3316196985,3244833742,3425377559,3370778784,3601682597,3530312978,3744426955,3689838204,3819031489,3881883254,3928223919,4007849240,4037393693,4100235434,4180117107,4259748804,2310601993,2373574846,2151335527,2231098320,2596047829,2659030626,2470359227,2550115596,2947551409,2876312838,2788305887,2733848168,3165939309,3094707162,3040238851,2985771188];"undefined"!=typeof Int32Array&&(G=new Int32Array(G)),defineCrc("crc-32-mpeg",(t,r)=>{let n=void 0!==r?~~r:4294967295;for(let r=0;r>24^t[r])&255]^n<<8;return n});let V=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];"undefined"!=typeof Int32Array&&(V=new Int32Array(V)),defineCrc("jam",(t,r=-1)=>{let n=0===r?0:~~r;for(let r=0;r>>8;return n});var q=n(68495);let W={mainnet:{name:"mainnet",chainId:1,networkId:1,defaultHardfork:"shanghai",consensus:{type:"pow",algorithm:"ethash",ethash:{}},comment:"The Ethereum main chain",url:"https://ethstats.net/",genesis:{gasLimit:5e3,difficulty:17179869184,nonce:"0x0000000000000042",extraData:"0x11bbe8db4e347b4e8c937c1c8370e4b5ed33adb3db69cbdb7a38e1e50b1b82fa"},hardforks:[{name:"chainstart",block:0,forkHash:"0xfc64ec04"},{name:"homestead",block:115e4,forkHash:"0x97c2c34c"},{name:"dao",block:192e4,forkHash:"0x91d1f948"},{name:"tangerineWhistle",block:2463e3,forkHash:"0x7a64da13"},{name:"spuriousDragon",block:2675e3,forkHash:"0x3edd5b10"},{name:"byzantium",block:437e4,forkHash:"0xa00bc324"},{name:"constantinople",block:728e4,forkHash:"0x668db0af"},{name:"petersburg",block:728e4,forkHash:"0x668db0af"},{name:"istanbul",block:9069e3,forkHash:"0x879d6e30"},{name:"muirGlacier",block:92e5,forkHash:"0xe029e991"},{name:"berlin",block:12244e3,forkHash:"0x0eb440f6"},{name:"london",block:12965e3,forkHash:"0xb715077d"},{name:"arrowGlacier",block:13773e3,forkHash:"0x20c327fc"},{name:"grayGlacier",block:1505e4,forkHash:"0xf0afd0e3"},{name:"paris",ttd:"58750000000000000000000",block:15537394,forkHash:"0xf0afd0e3"},{name:"mergeForkIdTransition",block:null,forkHash:null},{name:"shanghai",block:null,timestamp:"1681338455",forkHash:"0xdce96c2d"},{name:"cancun",block:null,forkHash:null}],bootstrapNodes:[{ip:"18.138.108.67",port:30303,id:"d860a01f9722d78051619d1e2351aba3f43f943f6f00718d1b9baa4101932a1f5011f16bb2b1bb35db20d6fe28fa0bf09636d26a87d31de9ec6203eeedb1f666",location:"ap-southeast-1-001",comment:"bootnode-aws-ap-southeast-1-001"},{ip:"3.209.45.79",port:30303,id:"22a8232c3abc76a16ae9d6c3b164f98775fe226f0917b0ca871128a74a8e9630b458460865bab457221f1d448dd9791d24c4e5d88786180ac185df813a68d4de",location:"us-east-1-001",comment:"bootnode-aws-us-east-1-001"},{ip:"65.108.70.101",port:30303,id:"2b252ab6a1d0f971d9722cb839a42cb81db019ba44c08754628ab4a823487071b5695317c8ccd085219c3a03af063495b2f1da8d18218da2d6a82981b45e6ffc",location:"eu-west-1-001",comment:"bootnode-hetzner-hel"},{ip:"157.90.35.166",port:30303,id:"4aeb4ab6c14b23e2c4cfdce879c04b0748a20d8e9b59e25ded2a08143e265c6c25936e74cbc8e641e3312ca288673d91f2f93f8e277de3cfa444ecdaaf982052",location:"eu-central-1-001",comment:"bootnode-hetzner-fsn"}],dnsNetworks:["enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.mainnet.ethdisco.net"]},goerli:{name:"goerli",chainId:5,networkId:5,defaultHardfork:"shanghai",consensus:{type:"poa",algorithm:"clique",clique:{period:15,epoch:3e4}},comment:"Cross-client PoA test network",url:"https://github.com/goerli/testnet",genesis:{timestamp:"0x5c51a607",gasLimit:10485760,difficulty:1,nonce:"0x0000000000000000",extraData:"0x22466c6578692069732061207468696e6722202d204166726900000000000000e0a2bd4258d2768837baa26a28fe71dc079f84c70000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"},hardforks:[{name:"chainstart",block:0,forkHash:"0xa3f5ab08"},{name:"homestead",block:0,forkHash:"0xa3f5ab08"},{name:"tangerineWhistle",block:0,forkHash:"0xa3f5ab08"},{name:"spuriousDragon",block:0,forkHash:"0xa3f5ab08"},{name:"byzantium",block:0,forkHash:"0xa3f5ab08"},{name:"constantinople",block:0,forkHash:"0xa3f5ab08"},{name:"petersburg",block:0,forkHash:"0xa3f5ab08"},{name:"istanbul",block:1561651,forkHash:"0xc25efa5c"},{name:"berlin",block:4460644,forkHash:"0x757a1c47"},{name:"london",block:5062605,forkHash:"0xb8c6299d"},{name:"paris",ttd:"10790000",block:7382819,forkHash:"0xb8c6299d"},{name:"mergeForkIdTransition",block:null,forkHash:null},{name:"shanghai",block:null,timestamp:"1678832736",forkHash:"0xf9843abf"},{name:"cancun",block:null,forkHash:null}],bootstrapNodes:[{ip:"51.141.78.53",port:30303,id:"011f758e6552d105183b1761c5e2dea0111bc20fd5f6422bc7f91e0fabbec9a6595caf6239b37feb773dddd3f87240d99d859431891e4a642cf2a0a9e6cbb98a",location:"",comment:"Upstream bootnode 1"},{ip:"13.93.54.137",port:30303,id:"176b9417f511d05b6b2cf3e34b756cf0a7096b3094572a8f6ef4cdcb9d1f9d00683bf0f83347eebdf3b81c3521c2332086d9592802230bf528eaf606a1d9677b",location:"",comment:"Upstream bootnode 2"},{ip:"94.237.54.114",port:30313,id:"46add44b9f13965f7b9875ac6b85f016f341012d84f975377573800a863526f4da19ae2c620ec73d11591fa9510e992ecc03ad0751f53cc02f7c7ed6d55c7291",location:"",comment:"Upstream bootnode 3"},{ip:"18.218.250.66",port:30313,id:"b5948a2d3e9d486c4d75bf32713221c2bd6cf86463302339299bd227dc2e276cd5a1c7ca4f43a0e9122fe9af884efed563bd2a1fd28661f3b5f5ad7bf1de5949",location:"",comment:"Upstream bootnode 4"},{ip:"3.11.147.67",port:30303,id:"a61215641fb8714a373c80edbfa0ea8878243193f57c96eeb44d0bc019ef295abd4e044fd619bfc4c59731a73fb79afe84e9ab6da0c743ceb479cbb6d263fa91",location:"",comment:"Ethereum Foundation bootnode"},{ip:"51.15.116.226",port:30303,id:"a869b02cec167211fb4815a82941db2e7ed2936fd90e78619c53eb17753fcf0207463e3419c264e2a1dd8786de0df7e68cf99571ab8aeb7c4e51367ef186b1dd",location:"",comment:"Goerli Initiative bootnode"},{ip:"51.15.119.157",port:30303,id:"807b37ee4816ecf407e9112224494b74dd5933625f655962d892f2f0f02d7fbbb3e2a94cf87a96609526f30c998fd71e93e2f53015c558ffc8b03eceaf30ee33",location:"",comment:"Goerli Initiative bootnode"},{ip:"51.15.119.157",port:40303,id:"a59e33ccd2b3e52d578f1fbd70c6f9babda2650f0760d6ff3b37742fdcdfdb3defba5d56d315b40c46b70198c7621e63ffa3f987389c7118634b0fefbbdfa7fd",location:"",comment:"Goerli Initiative bootnode"}],dnsNetworks:["enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.goerli.ethdisco.net"]},sepolia:{name:"sepolia",chainId:11155111,networkId:11155111,defaultHardfork:"shanghai",consensus:{type:"pow",algorithm:"ethash",ethash:{}},comment:"PoW test network to replace Ropsten",url:"https://github.com/ethereum/go-ethereum/pull/23730",genesis:{timestamp:"0x6159af19",gasLimit:3e7,difficulty:131072,nonce:"0x0000000000000000",extraData:"0x5365706f6c69612c20417468656e732c204174746963612c2047726565636521"},hardforks:[{name:"chainstart",block:0,forkHash:"0xfe3366e7"},{name:"homestead",block:0,forkHash:"0xfe3366e7"},{name:"tangerineWhistle",block:0,forkHash:"0xfe3366e7"},{name:"spuriousDragon",block:0,forkHash:"0xfe3366e7"},{name:"byzantium",block:0,forkHash:"0xfe3366e7"},{name:"constantinople",block:0,forkHash:"0xfe3366e7"},{name:"petersburg",block:0,forkHash:"0xfe3366e7"},{name:"istanbul",block:0,forkHash:"0xfe3366e7"},{name:"muirGlacier",block:0,forkHash:"0xfe3366e7"},{name:"berlin",block:0,forkHash:"0xfe3366e7"},{name:"london",block:0,forkHash:"0xfe3366e7"},{name:"paris",ttd:"17000000000000000",block:1450409,forkHash:"0xfe3366e7"},{name:"mergeForkIdTransition",block:1735371,forkHash:"0xb96cbd13"},{name:"shanghai",block:null,timestamp:"1677557088",forkHash:"0xf7f9bc08"},{name:"cancun",block:null,forkHash:null}],bootstrapNodes:[{ip:"18.168.182.86",port:30303,id:"9246d00bc8fd1742e5ad2428b80fc4dc45d786283e05ef6edbd9002cbc335d40998444732fbe921cb88e1d2c73d1b1de53bae6a2237996e9bfe14f871baf7066",location:"",comment:"geth"},{ip:"52.14.151.177",port:30303,id:"ec66ddcf1a974950bd4c782789a7e04f8aa7110a72569b6e65fcd51e937e74eed303b1ea734e4d19cfaec9fbff9b6ee65bf31dcb50ba79acce9dd63a6aca61c7",location:"",comment:"besu"},{ip:"165.22.196.173",port:30303,id:"ce970ad2e9daa9e14593de84a8b49da3d54ccfdf83cbc4fe519cb8b36b5918ed4eab087dedd4a62479b8d50756b492d5f762367c8d20329a7854ec01547568a6",location:"",comment:"EF"},{ip:"65.108.95.67",port:30303,id:"075503b13ed736244896efcde2a992ec0b451357d46cb7a8132c0384721742597fc8f0d91bbb40bb52e7d6e66728d36a1fda09176294e4a30cfac55dcce26bc6",location:"",comment:"lodestar"}],dnsNetworks:["enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.sepolia.ethdisco.net"]},holesky:{name:"holesky",chainId:17e3,networkId:17e3,defaultHardfork:"paris",consensus:{type:"pos",algorithm:"casper"},comment:"PoS test network to replace Goerli",url:"https://github.com/eth-clients/holesky/",genesis:{baseFeePerGas:"0x3B9ACA00",difficulty:"0x01",extraData:"0x",gasLimit:"0x17D7840",nonce:"0x0000000000001234",timestamp:"0x65156994"},hardforks:[{name:"chainstart",block:0,forkHash:"0xc61a6098"},{name:"homestead",block:0,forkHash:"0xc61a6098"},{name:"tangerineWhistle",block:0,forkHash:"0xc61a6098"},{name:"spuriousDragon",block:0,forkHash:"0xc61a6098"},{name:"byzantium",block:0,forkHash:"0xc61a6098"},{name:"constantinople",block:0,forkHash:"0xc61a6098"},{name:"petersburg",block:0,forkHash:"0xc61a6098"},{name:"istanbul",block:0,forkHash:"0xc61a6098"},{name:"muirGlacier",block:0,forkHash:"0xc61a6098"},{name:"berlin",block:0,forkHash:"0xc61a6098"},{name:"london",block:0,forkHash:"0xc61a6098"},{name:"paris",ttd:"0",block:0,forkHash:"0xc61a6098"},{name:"mergeForkIdTransition",block:0,forkHash:"0xc61a6098"},{name:"shanghai",block:null,timestamp:"1696000704",forkHash:"0xfd4f016b"},{name:"cancun",block:null,forkHash:null}],bootstrapNodes:[{ip:"146.190.13.128",port:30303,id:"ac906289e4b7f12df423d654c5a962b6ebe5b3a74cc9e06292a85221f9a64a6f1cfdd6b714ed6dacef51578f92b34c60ee91e9ede9c7f8fadc4d347326d95e2b",location:"",comment:"bootnode 1"},{ip:"178.128.136.233",port:30303,id:"a3435a0155a3e837c02f5e7f5662a2f1fbc25b48e4dc232016e1c51b544cb5b4510ef633ea3278c0e970fa8ad8141e2d4d0f9f95456c537ff05fdf9b31c15072",location:"",comment:"bootnode 2"}],dnsNetworks:["enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.holesky.ethdisco.net"]}};(o=m||(m={}))[o.Mainnet=1]="Mainnet",o[o.Goerli=5]="Goerli",o[o.Sepolia=11155111]="Sepolia",o[o.Holesky=17e3]="Holesky",m.Mainnet,_.N$,(0,_.nr)("0xd7f8974fb5ac78d9ac099b9ad5018bedc2ce0a72dad1827a1709da30580f0544"),m.Goerli,_.N$,(0,_.nr)("0x5d6cded585e73c4e322c30c2f782a336316f17dd85a4863b9d838d2d4b8b3008"),m.Sepolia,_.N$,(0,_.nr)("0x5eb6e371a698b8d68f665192350ffcecbbbf322916f4b51bd79bb6887da3f494"),m.Holesky,_.N$,(0,_.nr)("0x69d8c9d72f6fa4ad42d4702b433707212f90db395eb54dc20bc85de253788783"),(i=g||(g={})).Chainstart="chainstart",i.Homestead="homestead",i.Dao="dao",i.TangerineWhistle="tangerineWhistle",i.SpuriousDragon="spuriousDragon",i.Byzantium="byzantium",i.Constantinople="constantinople",i.Petersburg="petersburg",i.Istanbul="istanbul",i.MuirGlacier="muirGlacier",i.Berlin="berlin",i.London="london",i.ArrowGlacier="arrowGlacier",i.GrayGlacier="grayGlacier",i.MergeForkIdTransition="mergeForkIdTransition",i.Paris="paris",i.Shanghai="shanghai",i.Cancun="cancun",(a=b||(b={})).ProofOfStake="pos",a.ProofOfWork="pow",a.ProofOfAuthority="poa",(c=y||(y={})).Ethash="ethash",c.Clique="clique",c.Casper="casper",(u=v||(v={})).PolygonMainnet="polygon-mainnet",u.PolygonMumbai="polygon-mumbai",u.ArbitrumOne="arbitrum-one",u.xDaiChain="x-dai-chain",u.OptimisticKovan="optimistic-kovan",u.OptimisticEthereum="optimistic-ethereum",(d=w||(w={})).Draft="draft",d.Review="review",d.Final="final";let K={1153:{comment:"Transient storage opcodes",url:"https://eips.ethereum.org/EIPS/eip-1153",status:w.Review,minimumHardfork:g.Chainstart,requiredEIPs:[],gasPrices:{tstore:{v:100,d:"Base fee of the TSTORE opcode"},tload:{v:100,d:"Base fee of the TLOAD opcode"}}},1559:{comment:"Fee market change for ETH 1.0 chain",url:"https://eips.ethereum.org/EIPS/eip-1559",status:w.Final,minimumHardfork:g.Berlin,requiredEIPs:[2930],gasConfig:{baseFeeMaxChangeDenominator:{v:8,d:"Maximum base fee change denominator"},elasticityMultiplier:{v:2,d:"Maximum block gas target elasticity"},initialBaseFee:{v:1e9,d:"Initial base fee on first EIP1559 block"}}},2315:{comment:"Simple subroutines for the EVM",url:"https://eips.ethereum.org/EIPS/eip-2315",status:w.Draft,minimumHardfork:g.Istanbul,requiredEIPs:[],gasPrices:{beginsub:{v:2,d:"Base fee of the BEGINSUB opcode"},returnsub:{v:5,d:"Base fee of the RETURNSUB opcode"},jumpsub:{v:10,d:"Base fee of the JUMPSUB opcode"}}},2565:{comment:"ModExp gas cost",url:"https://eips.ethereum.org/EIPS/eip-2565",status:w.Final,minimumHardfork:g.Byzantium,requiredEIPs:[],gasPrices:{modexpGquaddivisor:{v:3,d:"Gquaddivisor from modexp precompile for gas calculation"}}},2718:{comment:"Typed Transaction Envelope",url:"https://eips.ethereum.org/EIPS/eip-2718",status:w.Final,minimumHardfork:g.Chainstart,requiredEIPs:[]},2929:{comment:"Gas cost increases for state access opcodes",url:"https://eips.ethereum.org/EIPS/eip-2929",status:w.Final,minimumHardfork:g.Chainstart,requiredEIPs:[],gasPrices:{coldsload:{v:2100,d:"Gas cost of the first read of storage from a given location (per transaction)"},coldaccountaccess:{v:2600,d:"Gas cost of the first read of a given address (per transaction)"},warmstorageread:{v:100,d:"Gas cost of reading storage locations which have already loaded 'cold'"},sstoreCleanGasEIP2200:{v:2900,d:"Once per SSTORE operation from clean non-zero to something else"},sstoreNoopGasEIP2200:{v:100,d:"Once per SSTORE operation if the value doesn't change"},sstoreDirtyGasEIP2200:{v:100,d:"Once per SSTORE operation if a dirty value is changed"},sstoreInitRefundEIP2200:{v:19900,d:"Once per SSTORE operation for resetting to the original zero value"},sstoreCleanRefundEIP2200:{v:4900,d:"Once per SSTORE operation for resetting to the original non-zero value"},call:{v:0,d:"Base fee of the CALL opcode"},callcode:{v:0,d:"Base fee of the CALLCODE opcode"},delegatecall:{v:0,d:"Base fee of the DELEGATECALL opcode"},staticcall:{v:0,d:"Base fee of the STATICCALL opcode"},balance:{v:0,d:"Base fee of the BALANCE opcode"},extcodesize:{v:0,d:"Base fee of the EXTCODESIZE opcode"},extcodecopy:{v:0,d:"Base fee of the EXTCODECOPY opcode"},extcodehash:{v:0,d:"Base fee of the EXTCODEHASH opcode"},sload:{v:0,d:"Base fee of the SLOAD opcode"},sstore:{v:0,d:"Base fee of the SSTORE opcode"}}},2930:{comment:"Optional access lists",url:"https://eips.ethereum.org/EIPS/eip-2930",status:w.Final,minimumHardfork:g.Istanbul,requiredEIPs:[2718,2929],gasPrices:{accessListStorageKeyCost:{v:1900,d:"Gas cost per storage key in an Access List transaction"},accessListAddressCost:{v:2400,d:"Gas cost per storage key in an Access List transaction"}}},3074:{comment:"AUTH and AUTHCALL opcodes",url:"https://eips.ethereum.org/EIPS/eip-3074",status:w.Review,minimumHardfork:g.London,requiredEIPs:[],gasPrices:{auth:{v:3100,d:"Gas cost of the AUTH opcode"},authcall:{v:0,d:"Gas cost of the AUTHCALL opcode"},authcallValueTransfer:{v:6700,d:"Paid for CALL when the value transfer is non-zero"}}},3198:{comment:"BASEFEE opcode",url:"https://eips.ethereum.org/EIPS/eip-3198",status:w.Final,minimumHardfork:g.London,requiredEIPs:[],gasPrices:{basefee:{v:2,d:"Gas cost of the BASEFEE opcode"}}},3529:{comment:"Reduction in refunds",url:"https://eips.ethereum.org/EIPS/eip-3529",status:w.Final,minimumHardfork:g.Berlin,requiredEIPs:[2929],gasConfig:{maxRefundQuotient:{v:5,d:"Maximum refund quotient; max tx refund is min(tx.gasUsed/maxRefundQuotient, tx.gasRefund)"}},gasPrices:{selfdestructRefund:{v:0,d:"Refunded following a selfdestruct operation"},sstoreClearRefundEIP2200:{v:4800,d:"Once per SSTORE operation for clearing an originally existing storage slot"}}},3540:{comment:"EVM Object Format (EOF) v1",url:"https://eips.ethereum.org/EIPS/eip-3540",status:w.Review,minimumHardfork:g.London,requiredEIPs:[3541]},3541:{comment:"Reject new contracts starting with the 0xEF byte",url:"https://eips.ethereum.org/EIPS/eip-3541",status:w.Final,minimumHardfork:g.Berlin,requiredEIPs:[]},3554:{comment:"Difficulty Bomb Delay to December 1st 2021",url:"https://eips.ethereum.org/EIPS/eip-3554",status:w.Final,minimumHardfork:g.MuirGlacier,requiredEIPs:[],pow:{difficultyBombDelay:{v:95e5,d:"the amount of blocks to delay the difficulty bomb with"}}},3607:{comment:"Reject transactions from senders with deployed code",url:"https://eips.ethereum.org/EIPS/eip-3607",status:w.Final,minimumHardfork:g.Chainstart,requiredEIPs:[]},3651:{comment:"Warm COINBASE",url:"https://eips.ethereum.org/EIPS/eip-3651",status:w.Review,minimumHardfork:g.London,requiredEIPs:[2929]},3670:{comment:"EOF - Code Validation",url:"https://eips.ethereum.org/EIPS/eip-3670",status:"Review",minimumHardfork:g.London,requiredEIPs:[3540],gasConfig:{},gasPrices:{},vm:{},pow:{}},3675:{comment:"Upgrade consensus to Proof-of-Stake",url:"https://eips.ethereum.org/EIPS/eip-3675",status:w.Final,minimumHardfork:g.London,requiredEIPs:[]},3855:{comment:"PUSH0 instruction",url:"https://eips.ethereum.org/EIPS/eip-3855",status:w.Review,minimumHardfork:g.Chainstart,requiredEIPs:[],gasPrices:{push0:{v:2,d:"Base fee of the PUSH0 opcode"}}},3860:{comment:"Limit and meter initcode",url:"https://eips.ethereum.org/EIPS/eip-3860",status:w.Review,minimumHardfork:g.SpuriousDragon,requiredEIPs:[],gasPrices:{initCodeWordCost:{v:2,d:"Gas to pay for each word (32 bytes) of initcode when creating a contract"}},vm:{maxInitCodeSize:{v:49152,d:"Maximum length of initialization code when creating a contract"}}},4345:{comment:"Difficulty Bomb Delay to June 2022",url:"https://eips.ethereum.org/EIPS/eip-4345",status:w.Final,minimumHardfork:g.London,requiredEIPs:[],pow:{difficultyBombDelay:{v:107e5,d:"the amount of blocks to delay the difficulty bomb with"}}},4399:{comment:"Supplant DIFFICULTY opcode with PREVRANDAO",url:"https://eips.ethereum.org/EIPS/eip-4399",status:w.Review,minimumHardfork:g.London,requiredEIPs:[],gasPrices:{prevrandao:{v:2,d:"Base fee of the PREVRANDAO opcode (previously DIFFICULTY)"}}},4788:{comment:"Beacon block root in the EVM",url:"https://eips.ethereum.org/EIPS/eip-4788",status:w.Draft,minimumHardfork:g.Cancun,requiredEIPs:[],gasPrices:{},vm:{historicalRootsLength:{v:8191,d:"The modulo parameter of the beaconroot ring buffer in the beaconroot statefull precompile"}}},4844:{comment:"Shard Blob Transactions",url:"https://eips.ethereum.org/EIPS/eip-4844",status:w.Draft,minimumHardfork:g.Paris,requiredEIPs:[1559,2718,2930,4895],gasConfig:{blobGasPerBlob:{v:131072,d:"The base fee for blob gas per blob"},targetBlobGasPerBlock:{v:393216,d:"The target blob gas consumed per block"},maxblobGasPerBlock:{v:786432,d:"The max blob gas allowable per block"},blobGasPriceUpdateFraction:{v:3338477,d:"The denominator used in the exponential when calculating a blob gas price"}},gasPrices:{simpleGasPerBlob:{v:12e3,d:"The basic gas fee for each blob"},minBlobGasPrice:{v:1,d:"The minimum fee per blob gas"},kzgPointEvaluationGasPrecompilePrice:{v:5e4,d:"The fee associated with the point evaluation precompile"},blobhash:{v:3,d:"Base fee of the BLOBHASH opcode"}},sharding:{blobCommitmentVersionKzg:{v:1,d:"The number indicated a versioned hash is a KZG commitment"},fieldElementsPerBlob:{v:4096,d:"The number of field elements allowed per blob"}}},4895:{comment:"Beacon chain push withdrawals as operations",url:"https://eips.ethereum.org/EIPS/eip-4895",status:w.Review,minimumHardfork:g.Paris,requiredEIPs:[]},5133:{comment:"Delaying Difficulty Bomb to mid-September 2022",url:"https://eips.ethereum.org/EIPS/eip-5133",status:w.Draft,minimumHardfork:g.GrayGlacier,requiredEIPs:[],pow:{difficultyBombDelay:{v:114e5,d:"the amount of blocks to delay the difficulty bomb with"}}},5656:{comment:"MCOPY - Memory copying instruction",url:"https://eips.ethereum.org/EIPS/eip-5656",status:w.Draft,minimumHardfork:g.Shanghai,requiredEIPs:[],gasPrices:{mcopy:{v:3,d:"Base fee of the MCOPY opcode"}}},6780:{comment:"SELFDESTRUCT only in same transaction",url:"https://eips.ethereum.org/EIPS/eip-6780",status:w.Draft,minimumHardfork:g.London,requiredEIPs:[]},7516:{comment:"BLOBBASEFEE opcode",url:"https://eips.ethereum.org/EIPS/eip-7516",status:w.Draft,minimumHardfork:g.Paris,requiredEIPs:[4844],gasPrices:{blobbasefee:{v:2,d:"Gas cost of the BLOBBASEFEE opcode"}}}};(f=E||(E={})).Draft="draft",f.Review="review",f.Final="final";let Z={chainstart:{name:"chainstart",comment:"Start of the Ethereum main chain",url:"",status:E.Final,gasConfig:{minGasLimit:{v:5e3,d:"Minimum the gas limit may ever be"},gasLimitBoundDivisor:{v:1024,d:"The bound divisor of the gas limit, used in update calculations"},maxRefundQuotient:{v:2,d:"Maximum refund quotient; max tx refund is min(tx.gasUsed/maxRefundQuotient, tx.gasRefund)"}},gasPrices:{base:{v:2,d:"Gas base cost, used e.g. for ChainID opcode (Istanbul)"},exp:{v:10,d:"Base fee of the EXP opcode"},expByte:{v:10,d:"Times ceil(log256(exponent)) for the EXP instruction"},keccak256:{v:30,d:"Base fee of the SHA3 opcode"},keccak256Word:{v:6,d:"Once per word of the SHA3 operation's data"},sload:{v:50,d:"Base fee of the SLOAD opcode"},sstoreSet:{v:2e4,d:"Once per SSTORE operation if the zeroness changes from zero"},sstoreReset:{v:5e3,d:"Once per SSTORE operation if the zeroness does not change from zero"},sstoreRefund:{v:15e3,d:"Once per SSTORE operation if the zeroness changes to zero"},jumpdest:{v:1,d:"Base fee of the JUMPDEST opcode"},log:{v:375,d:"Base fee of the LOG opcode"},logData:{v:8,d:"Per byte in a LOG* operation's data"},logTopic:{v:375,d:"Multiplied by the * of the LOG*, per LOG transaction. e.g. LOG0 incurs 0 * c_txLogTopicGas, LOG4 incurs 4 * c_txLogTopicGas"},create:{v:32e3,d:"Base fee of the CREATE opcode"},call:{v:40,d:"Base fee of the CALL opcode"},callStipend:{v:2300,d:"Free gas given at beginning of call"},callValueTransfer:{v:9e3,d:"Paid for CALL when the value transfor is non-zero"},callNewAccount:{v:25e3,d:"Paid for CALL when the destination address didn't exist prior"},selfdestructRefund:{v:24e3,d:"Refunded following a selfdestruct operation"},memory:{v:3,d:"Times the address of the (highest referenced byte in memory + 1). NOTE: referencing happens on read, write and in instructions such as RETURN and CALL"},quadCoeffDiv:{v:512,d:"Divisor for the quadratic particle of the memory cost equation"},createData:{v:200,d:""},tx:{v:21e3,d:"Per transaction. NOTE: Not payable on data of calls between transactions"},txCreation:{v:32e3,d:"The cost of creating a contract via tx"},txDataZero:{v:4,d:"Per byte of data attached to a transaction that equals zero. NOTE: Not payable on data of calls between transactions"},txDataNonZero:{v:68,d:"Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions"},copy:{v:3,d:"Multiplied by the number of 32-byte words that are copied (round up) for any *COPY operation and added"},ecRecover:{v:3e3,d:""},sha256:{v:60,d:""},sha256Word:{v:12,d:""},ripemd160:{v:600,d:""},ripemd160Word:{v:120,d:""},identity:{v:15,d:""},identityWord:{v:3,d:""},stop:{v:0,d:"Base fee of the STOP opcode"},add:{v:3,d:"Base fee of the ADD opcode"},mul:{v:5,d:"Base fee of the MUL opcode"},sub:{v:3,d:"Base fee of the SUB opcode"},div:{v:5,d:"Base fee of the DIV opcode"},sdiv:{v:5,d:"Base fee of the SDIV opcode"},mod:{v:5,d:"Base fee of the MOD opcode"},smod:{v:5,d:"Base fee of the SMOD opcode"},addmod:{v:8,d:"Base fee of the ADDMOD opcode"},mulmod:{v:8,d:"Base fee of the MULMOD opcode"},signextend:{v:5,d:"Base fee of the SIGNEXTEND opcode"},lt:{v:3,d:"Base fee of the LT opcode"},gt:{v:3,d:"Base fee of the GT opcode"},slt:{v:3,d:"Base fee of the SLT opcode"},sgt:{v:3,d:"Base fee of the SGT opcode"},eq:{v:3,d:"Base fee of the EQ opcode"},iszero:{v:3,d:"Base fee of the ISZERO opcode"},and:{v:3,d:"Base fee of the AND opcode"},or:{v:3,d:"Base fee of the OR opcode"},xor:{v:3,d:"Base fee of the XOR opcode"},not:{v:3,d:"Base fee of the NOT opcode"},byte:{v:3,d:"Base fee of the BYTE opcode"},address:{v:2,d:"Base fee of the ADDRESS opcode"},balance:{v:20,d:"Base fee of the BALANCE opcode"},origin:{v:2,d:"Base fee of the ORIGIN opcode"},caller:{v:2,d:"Base fee of the CALLER opcode"},callvalue:{v:2,d:"Base fee of the CALLVALUE opcode"},calldataload:{v:3,d:"Base fee of the CALLDATALOAD opcode"},calldatasize:{v:2,d:"Base fee of the CALLDATASIZE opcode"},calldatacopy:{v:3,d:"Base fee of the CALLDATACOPY opcode"},codesize:{v:2,d:"Base fee of the CODESIZE opcode"},codecopy:{v:3,d:"Base fee of the CODECOPY opcode"},gasprice:{v:2,d:"Base fee of the GASPRICE opcode"},extcodesize:{v:20,d:"Base fee of the EXTCODESIZE opcode"},extcodecopy:{v:20,d:"Base fee of the EXTCODECOPY opcode"},blockhash:{v:20,d:"Base fee of the BLOCKHASH opcode"},coinbase:{v:2,d:"Base fee of the COINBASE opcode"},timestamp:{v:2,d:"Base fee of the TIMESTAMP opcode"},number:{v:2,d:"Base fee of the NUMBER opcode"},difficulty:{v:2,d:"Base fee of the DIFFICULTY opcode"},gaslimit:{v:2,d:"Base fee of the GASLIMIT opcode"},pop:{v:2,d:"Base fee of the POP opcode"},mload:{v:3,d:"Base fee of the MLOAD opcode"},mstore:{v:3,d:"Base fee of the MSTORE opcode"},mstore8:{v:3,d:"Base fee of the MSTORE8 opcode"},sstore:{v:0,d:"Base fee of the SSTORE opcode"},jump:{v:8,d:"Base fee of the JUMP opcode"},jumpi:{v:10,d:"Base fee of the JUMPI opcode"},pc:{v:2,d:"Base fee of the PC opcode"},msize:{v:2,d:"Base fee of the MSIZE opcode"},gas:{v:2,d:"Base fee of the GAS opcode"},push:{v:3,d:"Base fee of the PUSH opcode"},dup:{v:3,d:"Base fee of the DUP opcode"},swap:{v:3,d:"Base fee of the SWAP opcode"},callcode:{v:40,d:"Base fee of the CALLCODE opcode"},return:{v:0,d:"Base fee of the RETURN opcode"},invalid:{v:0,d:"Base fee of the INVALID opcode"},selfdestruct:{v:0,d:"Base fee of the SELFDESTRUCT opcode"}},vm:{stackLimit:{v:1024,d:"Maximum size of VM stack allowed"},callCreateDepth:{v:1024,d:"Maximum depth of call/create stack"},maxExtraDataSize:{v:32,d:"Maximum size extra data may be after Genesis"}},pow:{minimumDifficulty:{v:131072,d:"The minimum that the difficulty may ever be"},difficultyBoundDivisor:{v:2048,d:"The bound divisor of the difficulty, used in the update calculations"},durationLimit:{v:13,d:"The decision boundary on the blocktime duration used to determine whether difficulty should go up or not"},epochDuration:{v:3e4,d:"Duration between proof-of-work epochs"},timebombPeriod:{v:1e5,d:"Exponential difficulty timebomb period"},minerReward:{v:BigInt("5000000000000000000"),d:"the amount a miner get rewarded for mining a block"},difficultyBombDelay:{v:0,d:"the amount of blocks to delay the difficulty bomb with"}}},homestead:{name:"homestead",comment:"Homestead hardfork with protocol and network changes",url:"https://eips.ethereum.org/EIPS/eip-606",status:E.Final,gasPrices:{delegatecall:{v:40,d:"Base fee of the DELEGATECALL opcode"}}},dao:{name:"dao",comment:"DAO rescue hardfork",url:"https://eips.ethereum.org/EIPS/eip-779",status:E.Final},tangerineWhistle:{name:"tangerineWhistle",comment:"Hardfork with gas cost changes for IO-heavy operations",url:"https://eips.ethereum.org/EIPS/eip-608",status:E.Final,gasPrices:{sload:{v:200,d:"Once per SLOAD operation"},call:{v:700,d:"Once per CALL operation & message call transaction"},extcodesize:{v:700,d:"Base fee of the EXTCODESIZE opcode"},extcodecopy:{v:700,d:"Base fee of the EXTCODECOPY opcode"},balance:{v:400,d:"Base fee of the BALANCE opcode"},delegatecall:{v:700,d:"Base fee of the DELEGATECALL opcode"},callcode:{v:700,d:"Base fee of the CALLCODE opcode"},selfdestruct:{v:5e3,d:"Base fee of the SELFDESTRUCT opcode"}}},spuriousDragon:{name:"spuriousDragon",comment:"HF with EIPs for simple replay attack protection, EXP cost increase, state trie clearing, contract code size limit",url:"https://eips.ethereum.org/EIPS/eip-607",status:E.Final,gasPrices:{expByte:{v:50,d:"Times ceil(log256(exponent)) for the EXP instruction"}},vm:{maxCodeSize:{v:24576,d:"Maximum length of contract code"}}},byzantium:{name:"byzantium",comment:"Hardfork with new precompiles, instructions and other protocol changes",url:"https://eips.ethereum.org/EIPS/eip-609",status:E.Final,gasPrices:{modexpGquaddivisor:{v:20,d:"Gquaddivisor from modexp precompile for gas calculation"},ecAdd:{v:500,d:"Gas costs for curve addition precompile"},ecMul:{v:4e4,d:"Gas costs for curve multiplication precompile"},ecPairing:{v:1e5,d:"Base gas costs for curve pairing precompile"},ecPairingWord:{v:8e4,d:"Gas costs regarding curve pairing precompile input length"},revert:{v:0,d:"Base fee of the REVERT opcode"},staticcall:{v:700,d:"Base fee of the STATICCALL opcode"},returndatasize:{v:2,d:"Base fee of the RETURNDATASIZE opcode"},returndatacopy:{v:3,d:"Base fee of the RETURNDATACOPY opcode"}},pow:{minerReward:{v:BigInt("3000000000000000000"),d:"the amount a miner get rewarded for mining a block"},difficultyBombDelay:{v:3e6,d:"the amount of blocks to delay the difficulty bomb with"}}},constantinople:{name:"constantinople",comment:"Postponed hardfork including EIP-1283 (SSTORE gas metering changes)",url:"https://eips.ethereum.org/EIPS/eip-1013",status:E.Final,gasPrices:{netSstoreNoopGas:{v:200,d:"Once per SSTORE operation if the value doesn't change"},netSstoreInitGas:{v:2e4,d:"Once per SSTORE operation from clean zero"},netSstoreCleanGas:{v:5e3,d:"Once per SSTORE operation from clean non-zero"},netSstoreDirtyGas:{v:200,d:"Once per SSTORE operation from dirty"},netSstoreClearRefund:{v:15e3,d:"Once per SSTORE operation for clearing an originally existing storage slot"},netSstoreResetRefund:{v:4800,d:"Once per SSTORE operation for resetting to the original non-zero value"},netSstoreResetClearRefund:{v:19800,d:"Once per SSTORE operation for resetting to the original zero value"},shl:{v:3,d:"Base fee of the SHL opcode"},shr:{v:3,d:"Base fee of the SHR opcode"},sar:{v:3,d:"Base fee of the SAR opcode"},extcodehash:{v:400,d:"Base fee of the EXTCODEHASH opcode"},create2:{v:32e3,d:"Base fee of the CREATE2 opcode"}},pow:{minerReward:{v:BigInt("2000000000000000000"),d:"The amount a miner gets rewarded for mining a block"},difficultyBombDelay:{v:5e6,d:"the amount of blocks to delay the difficulty bomb with"}}},petersburg:{name:"petersburg",comment:"Aka constantinopleFix, removes EIP-1283, activate together with or after constantinople",url:"https://eips.ethereum.org/EIPS/eip-1716",status:E.Final,gasPrices:{netSstoreNoopGas:{v:null,d:"Removed along EIP-1283"},netSstoreInitGas:{v:null,d:"Removed along EIP-1283"},netSstoreCleanGas:{v:null,d:"Removed along EIP-1283"},netSstoreDirtyGas:{v:null,d:"Removed along EIP-1283"},netSstoreClearRefund:{v:null,d:"Removed along EIP-1283"},netSstoreResetRefund:{v:null,d:"Removed along EIP-1283"},netSstoreResetClearRefund:{v:null,d:"Removed along EIP-1283"}}},istanbul:{name:"istanbul",comment:"HF targeted for December 2019 following the Constantinople/Petersburg HF",url:"https://eips.ethereum.org/EIPS/eip-1679",status:E.Final,gasConfig:{},gasPrices:{blake2Round:{v:1,d:"Gas cost per round for the Blake2 F precompile"},ecAdd:{v:150,d:"Gas costs for curve addition precompile"},ecMul:{v:6e3,d:"Gas costs for curve multiplication precompile"},ecPairing:{v:45e3,d:"Base gas costs for curve pairing precompile"},ecPairingWord:{v:34e3,d:"Gas costs regarding curve pairing precompile input length"},txDataNonZero:{v:16,d:"Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions"},sstoreSentryGasEIP2200:{v:2300,d:"Minimum gas required to be present for an SSTORE call, not consumed"},sstoreNoopGasEIP2200:{v:800,d:"Once per SSTORE operation if the value doesn't change"},sstoreDirtyGasEIP2200:{v:800,d:"Once per SSTORE operation if a dirty value is changed"},sstoreInitGasEIP2200:{v:2e4,d:"Once per SSTORE operation from clean zero to non-zero"},sstoreInitRefundEIP2200:{v:19200,d:"Once per SSTORE operation for resetting to the original zero value"},sstoreCleanGasEIP2200:{v:5e3,d:"Once per SSTORE operation from clean non-zero to something else"},sstoreCleanRefundEIP2200:{v:4200,d:"Once per SSTORE operation for resetting to the original non-zero value"},sstoreClearRefundEIP2200:{v:15e3,d:"Once per SSTORE operation for clearing an originally existing storage slot"},balance:{v:700,d:"Base fee of the BALANCE opcode"},extcodehash:{v:700,d:"Base fee of the EXTCODEHASH opcode"},chainid:{v:2,d:"Base fee of the CHAINID opcode"},selfbalance:{v:5,d:"Base fee of the SELFBALANCE opcode"},sload:{v:800,d:"Base fee of the SLOAD opcode"}}},muirGlacier:{name:"muirGlacier",comment:"HF to delay the difficulty bomb",url:"https://eips.ethereum.org/EIPS/eip-2384",status:E.Final,pow:{difficultyBombDelay:{v:9e6,d:"the amount of blocks to delay the difficulty bomb with"}}},berlin:{name:"berlin",comment:"HF targeted for July 2020 following the Muir Glacier HF",url:"https://eips.ethereum.org/EIPS/eip-2070",status:E.Final,eips:[2565,2929,2718,2930]},london:{name:"london",comment:"HF targeted for July 2021 following the Berlin fork",url:"https://github.com/ethereum/eth1.0-specs/blob/master/network-upgrades/mainnet-upgrades/london.md",status:E.Final,eips:[1559,3198,3529,3541]},arrowGlacier:{name:"arrowGlacier",comment:"HF to delay the difficulty bomb",url:"https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/arrow-glacier.md",status:E.Final,eips:[4345]},grayGlacier:{name:"grayGlacier",comment:"Delaying the difficulty bomb to Mid September 2022",url:"https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/gray-glacier.md",status:E.Final,eips:[5133]},paris:{name:"paris",comment:"Hardfork to upgrade the consensus mechanism to Proof-of-Stake",url:"https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/merge.md",status:E.Final,consensus:{type:"pos",algorithm:"casper",casper:{}},eips:[3675,4399]},mergeForkIdTransition:{name:"mergeForkIdTransition",comment:"Pre-merge hardfork to fork off non-upgraded clients",url:"https://eips.ethereum.org/EIPS/eip-3675",status:E.Final,eips:[]},shanghai:{name:"shanghai",comment:"Next feature hardfork after the merge hardfork having withdrawals, warm coinbase, push0, limit/meter initcode",url:"https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/shanghai.md",status:E.Final,eips:[3651,3855,3860,4895]},cancun:{name:"cancun",comment:"Next feature hardfork after shanghai, includes proto-danksharding EIP 4844 blobs (still WIP hence not for production use), transient storage opcodes, parent beacon block root availability in EVM, selfdestruct only in same transaction, and blob base fee opcode",url:"https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/cancun.md",status:E.Final,eips:[1153,4844,4788,5656,6780,7516]}};function formatNonce(t){return t&&"0x0"!==t?(0,_.Lo)(t)?"0x"+(0,_.MT)(t).padStart(16,"0"):"0x"+t.padStart(16,"0"):"0x0000000000000000"}function parseGethParams(t,r=!0){let{name:n,config:o,difficulty:i,mixHash:a,gasLimit:c,coinbase:u,baseFeePerGas:d,excessBlobGas:f}=t,{extraData:m,timestamp:b,nonce:y}=t,v=Number(b),{chainId:w}=o;if(""===m&&(m="0x"),(0,_.Lo)(b)||(b=(0,_.I4)(parseInt(b))),18!==y.length&&(y=formatNonce(y)),o.eip155Block!==o.eip158Block)throw Error("EIP155 block number must equal EIP 158 block number since both are part of SpuriousDragon hardfork and the client only supports activating the full hardfork");let E={name:n,chainId:w,networkId:w,genesis:{timestamp:b,gasLimit:c,difficulty:i,nonce:y,extraData:m,mixHash:a,coinbase:u,baseFeePerGas:d,excessBlobGas:f},hardfork:void 0,hardforks:[],bootstrapNodes:[],consensus:void 0!==o.clique?{type:"poa",algorithm:"clique",clique:{period:o.clique.period??o.clique.blockperiodseconds,epoch:o.clique.epoch??o.clique.epochlength}}:{type:"pow",algorithm:"ethash",ethash:{}}},P={[g.Homestead]:{name:"homesteadBlock"},[g.Dao]:{name:"daoForkBlock"},[g.TangerineWhistle]:{name:"eip150Block"},[g.SpuriousDragon]:{name:"eip155Block"},[g.Byzantium]:{name:"byzantiumBlock"},[g.Constantinople]:{name:"constantinopleBlock"},[g.Petersburg]:{name:"petersburgBlock"},[g.Istanbul]:{name:"istanbulBlock"},[g.MuirGlacier]:{name:"muirGlacierBlock"},[g.Berlin]:{name:"berlinBlock"},[g.London]:{name:"londonBlock"},[g.MergeForkIdTransition]:{name:"mergeForkBlock",postMerge:r},[g.Shanghai]:{name:"shanghaiTime",postMerge:!0,isTimestamp:!0},[g.Cancun]:{name:"cancunTime",postMerge:!0,isTimestamp:!0}},S=Object.keys(P).reduce((t,r)=>(t[P[r].name]=r,t),{}),A=Object.keys(o).filter(t=>void 0!==S[t]&&void 0!==o[t]&&null!==o[t]);for(let t of(E.hardforks=A.map(t=>({name:S[t],block:!0===P[S[t]].isTimestamp||"number"!=typeof o[t]?null:o[t],timestamp:!0===P[S[t]].isTimestamp&&"number"==typeof o[t]?o[t]:void 0})).filter(t=>null!==t.block||void 0!==t.timestamp),E.hardforks))t.timestamp===v&&(t.timestamp=0);if(E.hardforks.sort(function(t,r){return(t.block??1/0)-(r.block??1/0)}),E.hardforks.sort(function(t,r){return(t.timestamp??v)-(r.timestamp??v)}),void 0!==o.terminalTotalDifficulty){let t={name:g.Paris,ttd:o.terminalTotalDifficulty,block:null},r=E.hardforks.findIndex(t=>P[t.name]?.postMerge===!0);-1!==r?E.hardforks.splice(r,0,t):E.hardforks.push(t)}let k=E.hardforks.length>0?E.hardforks.slice(-1)[0]:void 0;return E.hardfork=k?.name,E.hardforks.unshift({name:g.Chainstart,block:0}),E}function parseGethGenesis(t,r,n){try{let o=["config","difficulty","gasLimit","nonce","alloc"];if(o.some(r=>!(r in t))){let r=o.filter(r=>!(r in t));throw Error(`Invalid format, expected geth genesis field "${r}" missing`)}return void 0!==r&&(t.name=r),parseGethParams(t,n)}catch(t){throw Error(`Error parsing parameters file: ${t.message}`)}}let Common=class Common{constructor(t){this._eips=[],this._paramsCache={},this._activatedEIPsCache=[],this.events=new q.EventEmitter,this._customChains=t.customChains??[],this._chainParams=this.setChain(t.chain),this.DEFAULT_HARDFORK=this._chainParams.defaultHardfork??g.Shanghai,this.HARDFORK_CHANGES=this.hardforks().map(t=>[t.name,Z[t.name]]),this._hardfork=this.DEFAULT_HARDFORK,void 0!==t.hardfork&&this.setHardfork(t.hardfork),t.eips&&this.setEIPs(t.eips),0===Object.keys(this._paramsCache).length&&(this._buildParamsCache(),this._buildActivatedEIPsCache())}static custom(t,r={}){let n=r.baseChain??"mainnet",o={...Common._getChainParams(n)};if(o.name="custom-chain","string"!=typeof t)return new Common({chain:{...o,...t},...r});if(t===v.PolygonMainnet)return Common.custom({name:v.PolygonMainnet,chainId:137,networkId:137},r);if(t===v.PolygonMumbai)return Common.custom({name:v.PolygonMumbai,chainId:80001,networkId:80001},r);if(t===v.ArbitrumOne)return Common.custom({name:v.ArbitrumOne,chainId:42161,networkId:42161},r);if(t===v.xDaiChain)return Common.custom({name:v.xDaiChain,chainId:100,networkId:100},r);if(t===v.OptimisticKovan)return Common.custom({name:v.OptimisticKovan,chainId:69,networkId:69},{hardfork:g.Berlin,...r});if(t===v.OptimisticEthereum)return Common.custom({name:v.OptimisticEthereum,chainId:10,networkId:10},{hardfork:g.Berlin,...r});throw Error(`Custom chain ${t} not supported`)}static fromGethGenesis(t,{chain:r,eips:n,genesisHash:o,hardfork:i,mergeForkIdPostMerge:a}){let c=parseGethGenesis(t,r,a),u=new Common({chain:c.name??"custom",customChains:[c],eips:n,hardfork:i??c.hardfork});return void 0!==o&&u.setForkHashes(o),u}static isSupportedChainId(t){let r=this.getInitializedChains();return!!r.names[t.toString()]}static _getChainParams(t,r){let n=this.getInitializedChains(r);if("number"==typeof t||"bigint"==typeof t){if(t=t.toString(),n.names[t]){let r=n.names[t];return n[r]}throw Error(`Chain with ID ${t} not supported`)}if(void 0!==n[t])return n[t];throw Error(`Chain with name ${t} not supported`)}setChain(t){if("number"==typeof t||"bigint"==typeof t||"string"==typeof t)this._chainParams=Common._getChainParams(t,this._customChains);else if("object"==typeof t){if(this._customChains.length>0)throw Error("Chain must be a string, number, or bigint when initialized with customChains passed in");for(let r of["networkId","genesis","hardforks","bootstrapNodes"])if(!(r in t))throw Error(`Missing required chain parameter: ${r}`);this._chainParams=t}else throw Error("Wrong input format");for(let t of this.hardforks())if(void 0===t.block)throw Error("Hardfork cannot have undefined block number");return this._chainParams}setHardfork(t){let r=!1;for(let n of this.HARDFORK_CHANGES)n[0]===t&&(this._hardfork!==t&&(this._hardfork=t,this._buildParamsCache(),this._buildActivatedEIPsCache(),this.events.emit("hardforkChanged",t)),r=!0);if(!r)throw Error(`Hardfork with name ${t} not supported`)}getHardforkBy(t){let{blockNumber:r,timestamp:n,td:o}=t;r=(0,_.Fy)(r,_.qT.BigInt),o=(0,_.Fy)(o,_.qT.BigInt),n=(0,_.Fy)(n,_.qT.BigInt);let i=this.hardforks().filter(t=>null!==t.block||null!==t.ttd&&void 0!==t.ttd||void 0!==t.timestamp),a=i.findIndex(t=>null!==t.ttd&&void 0!==t.ttd),c=i.slice(a+1).findIndex(t=>null!==t.ttd&&void 0!==t.ttd);if(c>=0)throw Error("More than one merge hardforks found with ttd specified");let u=i.findIndex(t=>void 0!==r&&null!==t.block&&BigInt(t.block)>r||void 0!==n&&void 0!==t.timestamp&&t.timestamp>n);if(-1===u)u=i.length;else if(0===u)throw Error("Must have at least one hardfork at block 0");if(void 0===n){let t=i.slice(0,u).reverse().findIndex(t=>null!==t.block||void 0!==t.ttd);u-=t}if(null===i[u-=1].block&&void 0===i[u].timestamp)(null==o||BigInt(i[u].ttd)>o)&&(u-=1);else if(a>=0&&null!=o){if(u>=a&&BigInt(i[a].ttd)>o)throw Error("Maximum HF determined by total difficulty is lower than the block number HF");if(uMath.max(Number(r.timestamp??"0"),t),0);if(t>n)throw Error("Maximum HF determined by timestamp is lower than the block number/ttd HF");let r=i.slice(u+1).reduce((t,r)=>Math.min(Number(r.timestamp??n),t),Number(n));if(r=n}activeOnBlock(t){return this.hardforkIsActiveOnBlock(null,t)}hardforkGteHardfork(t,r){t=t??this._hardfork;let n=this.hardforks(),o=-1,i=-1,a=0;for(let c of n)c.name===t&&(o=a),c.name===r&&(i=a),a+=1;return o>=i&&-1!==i}gteHardfork(t){return this.hardforkGteHardfork(null,t)}hardforkBlock(t){t=t??this._hardfork;let r=this._getHardfork(t)?.block;return null==r?null:BigInt(r)}hardforkTimestamp(t){t=t??this._hardfork;let r=this._getHardfork(t)?.timestamp;return null==r?null:BigInt(r)}eipBlock(t){for(let r of this.HARDFORK_CHANGES){let n=r[1];if("eips"in n&&n.eips.includes(t))return this.hardforkBlock(r[0])}return null}hardforkTTD(t){t=t??this._hardfork;let r=this._getHardfork(t)?.ttd;return null==r?null:BigInt(r)}nextHardforkBlockOrTimestamp(t){t=t??this._hardfork;let r=this.hardforks(),n=r.findIndex(r=>r.name===t);if(t===g.Paris&&(n-=1),n<0)return null;let o=r[n].timestamp??r[n].block;o=null!=o?Number(o):null;let i=r.slice(n+1).find(t=>{let r=t.timestamp??t.block;return r=null!=r?Number(r):null,t.name!==g.Paris&&null!=r&&r!==o});if(void 0===i)return null;let a=i.timestamp??i.block;return null==a?null:BigInt(a)}_calcForkHash(t,r){let n=new Uint8Array(0),o=0;for(let r of this.hardforks()){let{block:i,timestamp:a,name:c}=r,u=a??i;if("number"==typeof(u=null!==u?Number(u):null)&&0!==u&&u!==o&&c!==g.Paris){let t=(0,_.nr)("0x"+u.toString(16).padStart(16,"0"));n=(0,_.eV)(n,t),o=u}if(r.name===t)break}let i=(0,_.eV)(r,n),a=(0,_.ci)((0,_.sO)(U(i)>>>0));return a}forkHash(t,r){t=t??this._hardfork;let n=this._getHardfork(t);if(null===n||n?.block===null&&n?.timestamp===void 0&&n?.ttd===void 0)throw Error("No fork hash calculation possible for future hardfork");if(n?.forkHash!==null&&n?.forkHash!==void 0)return n.forkHash;if(!r)throw Error("genesisHash required for forkHash calculation");return this._calcForkHash(t,r)}hardforkForForkHash(t){let r=this.hardforks().filter(r=>r.forkHash===t);return r.length>=1?r[r.length-1]:null}setForkHashes(t){for(let r of this.hardforks()){let n=r.timestamp??r.block;(null===r.forkHash||void 0===r.forkHash)&&(null!=n||void 0!==r.ttd)&&(r.forkHash=this.forkHash(r.name,t))}}genesis(){return this._chainParams.genesis}hardforks(){return this._chainParams.hardforks}bootstrapNodes(){return this._chainParams.bootstrapNodes}dnsNetworks(){return this._chainParams.dnsNetworks}hardfork(){return this._hardfork}chainId(){return BigInt(this._chainParams.chainId)}chainName(){return this._chainParams.name}networkId(){return BigInt(this._chainParams.networkId)}eips(){return this._eips}consensusType(){let t;let r=this.hardfork();for(let n of this.HARDFORK_CHANGES)if("consensus"in n[1]&&(t=n[1].consensus.type),n[0]===r)break;return t??this._chainParams.consensus.type}consensusAlgorithm(){let t;let r=this.hardfork();for(let n of this.HARDFORK_CHANGES)if("consensus"in n[1]&&(t=n[1].consensus.algorithm),n[0]===r)break;return t??this._chainParams.consensus.algorithm}consensusConfig(){let t;let r=this.hardfork();for(let n of this.HARDFORK_CHANGES){if("consensus"in n[1]){let r=n[1],o=r.consensus.algorithm;t=r.consensus[o]}if(n[0]===r)break}return t??this._chainParams.consensus[this.consensusAlgorithm()]??{}}copy(){let t=Object.assign(Object.create(Object.getPrototypeOf(this)),this);return t.events=new q.EventEmitter,t}static getInitializedChains(t){let r={};for(let[t,n]of Object.entries(m))r[n]=t.toLowerCase();let n={...W};if(t)for(let o of t){let{name:t}=o;r[o.chainId.toString()]=t,n[t]=o}return n.names=r,n}}},39321:function(t,r,n){"use strict";function encode(t){if(Array.isArray(t)){let r=[],n=0;for(let o=0;ot.length)throw Error("invalid RLP (safeSlice): end slice of Uint8Array out-of-bounds");return t.slice(r,n)}function decodeLength(t){if(0===t[0])throw Error("invalid RLP: extra zeros");return parseHexByte(bytesToHex(t))}function encodeLength(t,r){if(t<56)return Uint8Array.from([t+r]);let n=numberToHex(t),o=n.length/2,i=numberToHex(r+55+o);return Uint8Array.from(hexToBytes(i+n))}function decode(t,r=!1){if(null==t||0===t.length)return Uint8Array.from([]);let n=toBytes(t),o=_decode(n);if(r)return o;if(0!==o.remainder.length)throw Error("invalid RLP: remainder must be zero");return o.data}function _decode(t){let r,n,o,i,a;let c=[],u=t[0];if(u<=127)return{data:t.slice(0,1),remainder:t.slice(1)};if(u<=183){if(r=u-127,o=128===u?Uint8Array.from([]):safeSlice(t,1,r),2===r&&o[0]<128)throw Error("invalid RLP encoding: invalid prefix, single byte < 0x80 are not prefixed");return{data:o,remainder:t.slice(r)}}if(u<=191){if(n=u-182,t.length-1t.length)throw Error("invalid RLP: total length is larger than the data");for(i=safeSlice(t,n,o);i.length;)a=_decode(i),c.push(a.data),i=a.remainder;return{data:c,remainder:t.slice(o)}}}n.d(r,{yH:function(){return i}});let o=Array.from({length:256},(t,r)=>r.toString(16).padStart(2,"0"));function bytesToHex(t){let r="";for(let n=0;nt+r.length,0),n=new Uint8Array(r);for(let r=0,o=0;r=2&&"0"===t[0]&&"x"===t[1]}function stripHexPrefix(t){return"string"!=typeof t?t:isHexPrefixed(t)?t.slice(2):t}function toBytes(t){if(t instanceof Uint8Array)return t;if("string"==typeof t)return isHexPrefixed(t)?hexToBytes(padToEven(stripHexPrefix(t))):utf8ToBytes(t);if("number"==typeof t||"bigint"==typeof t)return t?hexToBytes(numberToHex(t)):Uint8Array.from([]);if(null==t)return Uint8Array.from([]);throw Error("toBytes: received unsupported type "+typeof t)}let i={encode,decode}},35848:function(t,r,n){"use strict";n.d(r,{fx:function(){return eip4844Transaction_BlobEIP4844Transaction}});var o,i,a,c,u=n(39321),d=n(94433),f=n(42770);function isAccessListBytes(t){if(0===t.length)return!0;let r=t[0];return!!Array.isArray(r)}function isAccessList(t){return!isAccessListBytes(t)}function checkMaxInitCodeSize(t,r){let n=t.param("vm","maxInitCodeSize");if(n&&BigInt(r)>n)throw Error(`the initcode size of this transaction is too large: it is ${r} while the max is ${t.param("vm","maxInitCodeSize")}`)}(o=a||(a={}))[o.EIP155ReplayProtection=155]="EIP155ReplayProtection",o[o.EIP1559FeeMarket=1559]="EIP1559FeeMarket",o[o.EIP2718TypedTransaction=2718]="EIP2718TypedTransaction",o[o.EIP2930AccessLists=2930]="EIP2930AccessLists",(i=c||(c={}))[i.Legacy=0]="Legacy",i[i.AccessListEIP2930=1]="AccessListEIP2930",i[i.FeeMarketEIP1559=2]="FeeMarketEIP1559",i[i.BlobEIP4844=3]="BlobEIP4844";let util_AccessLists=class util_AccessLists{static getAccessListData(t){let r,n;if(isAccessList(t)){r=t;let o=[];for(let r=0;r0?new d.kL(y):void 0,this.value=(0,d.v3)((0,d.O0)(""===a?"0x":a)),this.data=(0,d.O0)(""===c?"0x":c),this.v=v.length>0?(0,d.v3)(v):void 0,this.r=w.length>0?(0,d.v3)(w):void 0,this.s=E.length>0?(0,d.v3)(E):void 0,this._validateCannotExceedMaxInteger({value:this.value,r:this.r,s:this.s}),this._validateCannotExceedMaxInteger({gasLimit:this.gasLimit},64),this._validateCannotExceedMaxInteger({nonce:this.nonce},64,!0);let _=void 0===this.to||null===this.to,P=r.allowUnlimitedInitCodeSize??!1,S=r.common??this._getCommon();_&&S.isActivatedEIP(3860)&&!1===P&&checkMaxInitCodeSize(S,this.data.length)}get type(){return this._type}supports(t){return this.activeCapabilities.includes(t)}getValidationErrors(){let t=[];return this.isSigned()&&!this.verifySignature()&&t.push("Invalid Signature"),this.getBaseFee()>this.gasLimit&&t.push(`gasLimit is too low. given ${this.gasLimit}, need at least ${this.getBaseFee()}`),t}isValid(){let t=this.getValidationErrors();return 0===t.length}getBaseFee(){let t=this.common.param("gasPrices","tx"),r=this.getDataFee();if(t&&(r+=t),this.common.gteHardfork("homestead")&&this.toCreationAddress()){let t=this.common.param("gasPrices","txCreation");t&&(r+=t)}return r}getDataFee(){let t=this.common.param("gasPrices","txDataZero"),r=this.common.param("gasPrices","txDataNonZero"),n=d.N$;for(let o=0;o-1&&this.activeCapabilities.splice(t,1)}return f}toJSON(){return{type:(0,d.Z4)(BigInt(this.type)),nonce:(0,d.Z4)(this.nonce),gasLimit:(0,d.Z4)(this.gasLimit),to:void 0!==this.to?this.to.toString():void 0,value:(0,d.Z4)(this.value),data:(0,d.ci)(this.data),v:void 0!==this.v?(0,d.Z4)(this.v):void 0,r:void 0!==this.r?(0,d.Z4)(this.r):void 0,s:void 0!==this.s?(0,d.Z4)(this.s):void 0}}_getCommon(t,r){if(void 0===r)return t?.copy()??new f.Gn({chain:this.DEFAULT_CHAIN});{let n=(0,d.v3)((0,d.O0)(r));if(t){if(t.chainId()!==n){let t=this._errorMsg("The chain ID does not match the chain ID of Common");throw Error(t)}return t.copy()}return f.Gn.isSupportedChainId(n)?new f.Gn({chain:n}):f.Gn.custom({name:"custom-chain",networkId:n,chainId:n},{baseChain:this.DEFAULT_CHAIN})}}_validateCannotExceedMaxInteger(t,r=256,n=!1){for(let[o,i]of Object.entries(t))switch(r){case 64:if(n){if(void 0!==i&&i>=d.np){let t=this._errorMsg(`${o} cannot equal or exceed MAX_UINT64 (2^64-1), given ${i}`);throw Error(t)}}else if(void 0!==i&&i>d.np){let t=this._errorMsg(`${o} cannot exceed MAX_UINT64 (2^64-1), given ${i}`);throw Error(t)}break;case 256:if(n){if(void 0!==i&&i>=d.E2){let t=this._errorMsg(`${o} cannot equal or exceed MAX_INTEGER (2^256-1), given ${i}`);throw Error(t)}}else if(void 0!==i&&i>d.E2){let t=this._errorMsg(`${o} cannot exceed MAX_INTEGER (2^256-1), given ${i}`);throw Error(t)}break;default:{let t=this._errorMsg("unimplemented bits value");throw Error(t)}}}static _validateNotArray(t){let r=["nonce","gasPrice","gasLimit","to","value","data","v","r","s","type","baseFee","maxFeePerGas","chainId"];for(let[n,o]of Object.entries(t))if(r.includes(n)&&Array.isArray(o))throw Error(`${n} cannot be an array`)}_getSharedErrorPostfix(){let t="";try{t=this.isSigned()?(0,d.ci)(this.hash()):"not available (unsigned)"}catch(r){t="error"}let r="";try{r=this.isSigned().toString()}catch(r){t="error"}let n="";try{n=this.common.hardfork()}catch(t){n="error"}return`tx type=${this.type} hash=${t} nonce=${this.nonce} value=${this.value} signed=${r} hf=${n}`}};var m=n(78589);function errorMsg(t,r){return`${r} (${t.errorStr()})`}function getDataFee(t,r){if(t.cache.dataFee&&t.cache.dataFee.hardfork===t.common.hardfork())return t.cache.dataFee.value;let n=baseTransaction_BaseTransaction.prototype.getDataFee.bind(t)()+(r??0n);return Object.isFrozen(t)&&(t.cache.dataFee={value:n,hardfork:t.common.hardfork()}),n}function hash(t){if(!t.isSigned()){let r=errorMsg(t,"Cannot call hash method if transaction is not signed");throw Error(r)}return Object.isFrozen(t)?(t.cache.hash||(t.cache.hash=(0,m.wn)(t.serialize())),t.cache.hash):(0,m.wn)(t.serialize())}function validateHighS(t){let{s:r}=t;if(t.common.gteHardfork("homestead")&&void 0!==r&&r>d.Sr){let r=errorMsg(t,"Invalid Signature: s-values greater than secp256k1n/2 are considered invalid");throw Error(r)}}function getSenderPublicKey(t){if(void 0!==t.cache.senderPubKey)return t.cache.senderPubKey;let r=t.getMessageToVerifySignature(),{v:n,r:o,s:i}=t;validateHighS(t);try{let c=(0,d.Js)(r,n,(0,d.XD)(o),(0,d.XD)(i),t.supports(a.EIP155ReplayProtection)?t.common.chainId():void 0);return Object.isFrozen(t)&&(t.cache.senderPubKey=c),c}catch(n){let r=errorMsg(t,"Invalid Signature");throw Error(r)}}function getHashedMessageToSign(t){return(0,m.wn)(t.getMessageToSign())}function serialize(t,r){return(0,d.eV)(util_txTypeBytes(t.type),u.yH.encode(r??t.raw()))}function validateYParity(t){let{v:r}=t;if(void 0!==r&&r!==d.N$&&r!==d.jm){let r=errorMsg(t,"The y-parity of the transaction should either be 0 or 1");throw Error(r)}}function eip2930_getDataFee(t){return getDataFee(t,BigInt(util_AccessLists.getDataFeeEIP2930(t.accessList,t.common)))}function getUpfrontCost(t,r){let n=t.maxPriorityFeePerGas,o=t.maxFeePerGas-r;return t.gasLimit*((n{let a;if(!(t.length===r.length&&r.length===n.length))throw Error("Number of blobVersionedHashes, blobs, and commitments not all equal");if(0===t.length)throw Error("Invalid transaction with empty blobs");try{a=d.V7.verifyBlobKzgProofBatch(r,n,o)}catch(t){throw Error(`KZG verification of blobs fail with error=${t}`)}if(!a)throw Error("KZG proof cannot be verified from blobs/commitments");for(let r=0;rd.E2){let t=this._errorMsg("gasLimit * maxFeePerGas cannot exceed MAX_INTEGER (2^256-1)");throw Error(t)}if(this.maxFeePerGas(0,d.O0)(t)),validateYParity(this),validateHighS(this),this.blobVersionedHashes)){if(32!==r.length){let t=this._errorMsg("versioned hash is invalid length");throw Error(t)}if(BigInt(r[0])!==this.common.param("sharding","blobCommitmentVersionKzg")){let t=this._errorMsg("versioned hash does not start with KZG commitment version");throw Error(t)}}if(this.blobVersionedHashes.length>16777216){let t=this._errorMsg("tx can contain at most 16777216 blobs");throw Error(t)}this.blobs=t.blobs?.map(t=>d.O0(t)),this.kzgCommitments=t.kzgCommitments?.map(t=>d.O0(t)),this.kzgProofs=t.kzgProofs?.map(t=>d.O0(t));let m=r?.freeze??!0;m&&Object.freeze(this)}static fromTxData(t,r){if(void 0!==t.blobsData){if(void 0!==t.blobs)throw Error("cannot have both raw blobs data and encoded blobs in constructor");if(void 0!==t.kzgCommitments)throw Error("cannot have both raw blobs data and KZG commitments in constructor");if(void 0!==t.blobVersionedHashes)throw Error("cannot have both raw blobs data and versioned hashes in constructor");if(void 0!==t.kzgProofs)throw Error("cannot have both raw blobs data and KZG proofs in constructor");t.blobs=(0,d.KR)(t.blobsData.reduce((t,r)=>t+r)),t.kzgCommitments=(0,d.PS)(t.blobs),t.blobVersionedHashes=(0,d.CW)(t.kzgCommitments),t.kzgProofs=(0,d.y9)(t.blobs,t.kzgCommitments)}return new eip4844Transaction_BlobEIP4844Transaction(t,r)}static minimalFromNetworkWrapper(t,r){let n=eip4844Transaction_BlobEIP4844Transaction.fromTxData({...t,blobs:void 0,kzgCommitments:void 0,kzgProofs:void 0},r);return n}static fromSerializedTx(t,r={}){if(!1===(0,d.hD)(t.subarray(0,1),util_txTypeBytes(c.BlobEIP4844)))throw Error(`Invalid serialized tx input: not an EIP-4844 transaction (wrong tx type, expected: ${c.BlobEIP4844}, received: ${(0,d.ci)(t.subarray(0,1))}`);let n=u.yH.decode(t.subarray(1));if(!Array.isArray(n))throw Error("Invalid serialized tx input: must be array");return eip4844Transaction_BlobEIP4844Transaction.fromValuesArray(n,r)}static fromValuesArray(t,r={}){if(11!==t.length&&14!==t.length)throw Error("Invalid EIP-4844 transaction. Only expecting 11 values (for unsigned tx) or 14 values (for signed tx).");let[n,o,i,a,c,u,f,m,g,b,y,v,w,E]=t;return this._validateNotArray({chainId:n,v}),(0,d.jY)({nonce:o,maxPriorityFeePerGas:i,maxFeePerGas:a,gasLimit:c,value:f,maxFeePerBlobGas:b,v,r:w,s:E}),new eip4844Transaction_BlobEIP4844Transaction({chainId:(0,d.v3)(n),nonce:o,maxPriorityFeePerGas:i,maxFeePerGas:a,gasLimit:c,to:u,value:f,data:m,accessList:g??[],maxFeePerBlobGas:b,blobVersionedHashes:y,v:void 0!==v?(0,d.v3)(v):void 0,r:w,s:E},r)}static fromSerializedBlobTxNetworkWrapper(t,r){if(!r||!r.common)throw Error("common instance required to validate versioned hashes");if(!1===(0,d.hD)(t.subarray(0,1),util_txTypeBytes(c.BlobEIP4844)))throw Error(`Invalid serialized tx input: not an EIP-4844 transaction (wrong tx type, expected: ${c.BlobEIP4844}, received: ${(0,d.ci)(t.subarray(0,1))}`);let n=u.yH.decode(t.subarray(1));if(4!==n.length)throw Error("Expected 4 values in the deserialized network transaction");let[o,i,a,f]=n,m=eip4844Transaction_BlobEIP4844Transaction.fromValuesArray(o,{...r,freeze:!1});if(void 0===m.to)throw Error("BlobEIP4844Transaction can not be send without a valid `to`");let g=Number(r.common.param("sharding","blobCommitmentVersionKzg"));validateBlobTransactionNetworkWrapper(m.blobVersionedHashes,i,a,f,g),m.blobs=i,m.kzgCommitments=a,m.kzgProofs=f;let b=r?.freeze??!0;return b&&Object.freeze(m),m}getDataFee(){return eip2930_getDataFee(this)}getUpfrontCost(t=d.N$){return getUpfrontCost(this,t)}raw(){return[(0,d.XD)(this.chainId),(0,d.XD)(this.nonce),(0,d.XD)(this.maxPriorityFeePerGas),(0,d.XD)(this.maxFeePerGas),(0,d.XD)(this.gasLimit),void 0!==this.to?this.to.bytes:new Uint8Array(0),(0,d.XD)(this.value),this.data,this.accessList,(0,d.XD)(this.maxFeePerBlobGas),this.blobVersionedHashes,void 0!==this.v?(0,d.XD)(this.v):new Uint8Array(0),void 0!==this.r?(0,d.XD)(this.r):new Uint8Array(0),void 0!==this.s?(0,d.XD)(this.s):new Uint8Array(0)]}serialize(){return serialize(this)}serializeNetworkWrapper(){if(void 0===this.blobs||void 0===this.kzgCommitments||void 0===this.kzgProofs)throw Error("cannot serialize network wrapper without blobs, KZG commitments and KZG proofs provided");return serialize(this,[this.raw(),this.blobs,this.kzgCommitments,this.kzgProofs])}getMessageToSign(){return serialize(this,this.raw().slice(0,11))}getHashedMessageToSign(){return getHashedMessageToSign(this)}hash(){return hash(this)}getMessageToVerifySignature(){return this.getHashedMessageToSign()}getSenderPublicKey(){return getSenderPublicKey(this)}toJSON(){let t=util_AccessLists.getAccessListJSON(this.accessList),r=super.toJSON();return{...r,chainId:(0,d.Z4)(this.chainId),maxPriorityFeePerGas:(0,d.Z4)(this.maxPriorityFeePerGas),maxFeePerGas:(0,d.Z4)(this.maxFeePerGas),accessList:t,maxFeePerBlobGas:(0,d.Z4)(this.maxFeePerBlobGas),blobVersionedHashes:this.blobVersionedHashes.map(t=>(0,d.ci)(t))}}_processSignature(t,r,n){let o={...this.txOptions,common:this.common};return eip4844Transaction_BlobEIP4844Transaction.fromTxData({chainId:this.chainId,nonce:this.nonce,maxPriorityFeePerGas:this.maxPriorityFeePerGas,maxFeePerGas:this.maxFeePerGas,gasLimit:this.gasLimit,to:this.to,value:this.value,data:this.data,accessList:this.accessList,v:t-d.Ym,r:(0,d.v3)(r),s:(0,d.v3)(n),maxFeePerBlobGas:this.maxFeePerBlobGas,blobVersionedHashes:this.blobVersionedHashes,blobs:this.blobs,kzgCommitments:this.kzgCommitments,kzgProofs:this.kzgProofs},o)}errorStr(){return this._getSharedErrorPostfix()+` maxFeePerGas=${this.maxFeePerGas} maxPriorityFeePerGas=${this.maxPriorityFeePerGas}`}_errorMsg(t){return errorMsg(this,t)}numBlobs(){return this.blobVersionedHashes.length}}},94433:function(t,r,n){"use strict";n.d(r,{kL:function(){return address_Address},N$:function(){return ep},jm:function(){return em},Ym:function(){return eb},E2:function(){return ef},np:function(){return ed},Sr:function(){return eh},qT:function(){return d},Z4:function(){return bytes_bigIntToHex},XD:function(){return bytes_bigIntToUnpaddedBytes},PS:function(){return blobsToCommitments},y9:function(){return blobsToProofs},v3:function(){return bytes_bytesToBigInt},ci:function(){return bytes_bytesToHex},CW:function(){return commitmentsToVersionedHashes},h$:function(){return computeVersionedHash},eV:function(){return bytes_concatBytes},Js:function(){return ecrecover},v4:function(){return ecsign},hD:function(){return es.hD},KR:function(){return getBlobs},nr:function(){return bytes_hexToBytes},sO:function(){return intToBytes},I4:function(){return intToHex},Lo:function(){return internal_isHexPrefixed},V7:function(){return eE},fB:function(){return ew},V_:function(){return bytes_setLengthLeft},MT:function(){return internal_stripHexPrefix},O0:function(){return bytes_toBytes},Fy:function(){return types_toType},_K:function(){return unpadBytes},jY:function(){return validateNoLeadingZeroes}});var o,i,a,c,u,d,f={};n.r(f),n.d(f,{dQ:function(){return bitMask},ci:function(){return utils_bytesToHex},bytesToNumberBE:function(){return utils_bytesToNumberBE},ty:function(){return bytesToNumberLE},eV:function(){return utils_concatBytes},n$:function(){return createHmacDrbg},ql:function(){return utils_ensureBytes},hexToBytes:function(){return hexToBytes},tL:function(){return utils_numberToBytesBE},S5:function(){return numberToBytesLE},FF:function(){return utils_validateObject}});var m=n(91072),g=n(68209);function setBigUint64(t,r,n,o){if("function"==typeof t.setBigUint64)return t.setBigUint64(r,n,o);let i=BigInt(32),a=BigInt(4294967295),c=Number(n>>i&a),u=Number(n&a),d=o?4:0,f=o?0:4;t.setUint32(r+d,c,o),t.setUint32(r+f,u,o)}let SHA2=class SHA2 extends g.kb{constructor(t,r,n,o){super(),this.blockLen=t,this.outputLen=r,this.padOffset=n,this.isLE=o,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=(0,g.GL)(this.buffer)}update(t){m.ZP.exists(this);let{view:r,buffer:n,blockLen:o}=this;t=(0,g.O0)(t);let i=t.length;for(let a=0;ao-a&&(this.process(n,0),a=0);for(let t=a;tf.length)throw Error("_sha2: outputLen bigger than state");for(let t=0;tt&r^~t&n,Maj=(t,r,n)=>t&r^t&n^r&n,b=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),y=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),v=new Uint32Array(64);let SHA256=class SHA256 extends SHA2{constructor(){super(64,32,8,!1),this.A=0|y[0],this.B=0|y[1],this.C=0|y[2],this.D=0|y[3],this.E=0|y[4],this.F=0|y[5],this.G=0|y[6],this.H=0|y[7]}get(){let{A:t,B:r,C:n,D:o,E:i,F:a,G:c,H:u}=this;return[t,r,n,o,i,a,c,u]}set(t,r,n,o,i,a,c,u){this.A=0|t,this.B=0|r,this.C=0|n,this.D=0|o,this.E=0|i,this.F=0|a,this.G=0|c,this.H=0|u}process(t,r){for(let n=0;n<16;n++,r+=4)v[n]=t.getUint32(r,!1);for(let t=16;t<64;t++){let r=v[t-15],n=v[t-2],o=(0,g.np)(r,7)^(0,g.np)(r,18)^r>>>3,i=(0,g.np)(n,17)^(0,g.np)(n,19)^n>>>10;v[t]=i+v[t-7]+o+v[t-16]|0}let{A:n,B:o,C:i,D:a,E:c,F:u,G:d,H:f}=this;for(let t=0;t<64;t++){let r=(0,g.np)(c,6)^(0,g.np)(c,11)^(0,g.np)(c,25),m=f+r+Chi(c,u,d)+b[t]+v[t]|0,y=(0,g.np)(n,2)^(0,g.np)(n,13)^(0,g.np)(n,22),w=y+Maj(n,o,i)|0;f=d,d=u,u=c,c=a+m|0,a=i,i=o,o=n,n=m+w|0}n=n+this.A|0,o=o+this.B|0,i=i+this.C|0,a=a+this.D|0,c=c+this.E|0,u=u+this.F|0,d=d+this.G|0,f=f+this.H|0,this.set(n,o,i,a,c,u,d,f)}roundClean(){v.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}};let SHA224=class SHA224 extends SHA256{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}};let w=(0,g.hE)(()=>new SHA256);(0,g.hE)(()=>new SHA224),BigInt(0);let E=BigInt(1),_=BigInt(2),u8a=t=>t instanceof Uint8Array,P=Array.from({length:256},(t,r)=>r.toString(16).padStart(2,"0"));function utils_bytesToHex(t){if(!u8a(t))throw Error("Uint8Array expected");let r="";for(let n=0;nt+r.length,0)),n=0;return t.forEach(t=>{if(!u8a(t))throw Error("Uint8Array expected");r.set(t,n),n+=t.length}),r}let bitMask=t=>(_<new Uint8Array(t),u8fr=t=>Uint8Array.from(t);function createHmacDrbg(t,r,n){if("number"!=typeof t||t<2)throw Error("hashLen must be a number");if("number"!=typeof r||r<2)throw Error("qByteLen must be a number");if("function"!=typeof n)throw Error("hmacFn must be a function");let o=u8n(t),i=u8n(t),a=0,reset=()=>{o.fill(1),i.fill(0),a=0},h=(...t)=>n(i,o,...t),reseed=(t=u8n())=>{i=h(u8fr([0]),t),o=h(),0!==t.length&&(i=h(u8fr([1]),t),o=h())},gen=()=>{if(a++>=1e3)throw Error("drbg: tried 1000 values");let t=0,n=[];for(;t{let n;for(reset(),reseed(t);!(n=r(gen()));)reseed();return reset(),n}}let S={bigint:t=>"bigint"==typeof t,function:t=>"function"==typeof t,boolean:t=>"boolean"==typeof t,string:t=>"string"==typeof t,isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,r)=>r.Fp.isValid(t),hash:t=>"function"==typeof t&&Number.isSafeInteger(t.outputLen)};function utils_validateObject(t,r,n={}){let checkField=(r,n,o)=>{let i=S[n];if("function"!=typeof i)throw Error(`Invalid validator "${n}", expected function`);let a=t[r];if((!o||void 0!==a)&&!i(a,t))throw Error(`Invalid param ${String(r)}=${a} (${typeof a}), expected ${n}`)};for(let[t,n]of Object.entries(r))checkField(t,n,!1);for(let[t,r]of Object.entries(n))checkField(t,r,!0);return t}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let A=BigInt(0),k=BigInt(1),C=BigInt(2),T=BigInt(3),N=BigInt(4),H=BigInt(5),D=BigInt(8);function modular_mod(t,r){let n=t%r;return n>=A?n:r+n}function pow(t,r,n){if(n<=A||r 0");if(n===k)return A;let o=k;for(;r>A;)r&k&&(o=o*t%n),t=t*t%n,r>>=k;return o}function pow2(t,r,n){let o=t;for(;r-- >A;)o*=o,o%=n;return o}function invert(t,r){if(t===A||r<=A)throw Error(`invert: expected positive integers, got n=${t} mod=${r}`);let n=modular_mod(t,r),o=r,i=A,a=k,c=k,u=A;for(;n!==A;){let t=o/n,r=o%n,d=i-c*t,f=a-u*t;o=n,n=r,i=c,a=u,c=d,u=f}let d=o;if(d!==k)throw Error("invert: does not exist");return modular_mod(i,r)}function tonelliShanks(t){let r,n,o;let i=(t-k)/C;for(r=t-k,n=0;r%C===A;r/=C,n++);for(o=C;o(t[r]="function",t),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return utils_validateObject(t,r)}function FpPow(t,r,n){if(n 0");if(n===A)return t.ONE;if(n===k)return r;let o=t.ONE,i=r;for(;n>A;)n&k&&(o=t.mul(o,i)),i=t.sqr(i),n>>=k;return o}function FpInvertBatch(t,r){let n=Array(r.length),o=r.reduce((r,o,i)=>t.is0(o)?r:(n[i]=r,t.mul(r,o)),t.ONE),i=t.inv(o);return r.reduceRight((r,o,i)=>t.is0(o)?r:(n[i]=t.mul(r,n[i]),t.mul(r,o)),i),n}function nLength(t,r){let n=void 0!==r?r:t.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function Field(t,r,n=!1,o={}){if(t<=A)throw Error(`Expected Fp ORDER > 0, got ${t}`);let{nBitLength:i,nByteLength:a}=nLength(t,r);if(a>2048)throw Error("Field lengths over 2048 bytes are not supported");let c=FpSqrt(t),u=Object.freeze({ORDER:t,BITS:i,BYTES:a,MASK:bitMask(i),ZERO:A,ONE:k,create:r=>modular_mod(r,t),isValid:r=>{if("bigint"!=typeof r)throw Error(`Invalid field element: expected bigint, got ${typeof r}`);return A<=r&&rt===A,isOdd:t=>(t&k)===k,neg:r=>modular_mod(-r,t),eql:(t,r)=>t===r,sqr:r=>modular_mod(r*r,t),add:(r,n)=>modular_mod(r+n,t),sub:(r,n)=>modular_mod(r-n,t),mul:(r,n)=>modular_mod(r*n,t),pow:(t,r)=>FpPow(u,t,r),div:(r,n)=>modular_mod(r*invert(n,t),t),sqrN:t=>t*t,addN:(t,r)=>t+r,subN:(t,r)=>t-r,mulN:(t,r)=>t*r,inv:r=>invert(r,t),sqrt:o.sqrt||(t=>c(u,t)),invertBatch:t=>FpInvertBatch(u,t),cmov:(t,r,n)=>n?r:t,toBytes:t=>n?numberToBytesLE(t,a):utils_numberToBytesBE(t,a),fromBytes:t=>{if(t.length!==a)throw Error(`Fp.fromBytes: expected ${a}, got ${t.length}`);return n?bytesToNumberLE(t):utils_bytesToNumberBE(t)}});return Object.freeze(u)}function hashToPrivateScalar(t,r,n=!1){t=utils_ensureBytes("privateHash",t);let o=t.length,i=nLength(r).nByteLength+8;if(i<24||o1024)throw Error(`hashToPrivateScalar: expected ${i}-1024 bytes of input, got ${o}`);let a=n?bytesToNumberLE(t):utils_bytesToNumberBE(t);return modular_mod(a,r-k)+k}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let U=BigInt(0),G=BigInt(1);function wNAF(t,r){let constTimeNegate=(t,r)=>{let n=r.negate();return t?n:r},opts=t=>({windows:Math.ceil(r/t)+1,windowSize:2**(t-1)});return{constTimeNegate,unsafeLadder(r,n){let o=t.ZERO,i=r;for(;n>U;)n&G&&(o=o.add(i)),i=i.double(),n>>=G;return o},precomputeWindow(t,r){let{windows:n,windowSize:o}=opts(r),i=[],a=t,c=a;for(let t=0;t>=m,i>a&&(i-=f,o+=G);let g=r+Math.abs(i)-1,b=t%2!=0,y=i<0;0===i?u=u.add(constTimeNegate(b,n[r])):c=c.add(constTimeNegate(y,n[g]))}return{p:c,f:u}},wNAFCached(t,r,n,o){let i=t._WINDOW_SIZE||1,a=r.get(t);return a||(a=this.precomputeWindow(t,i),1!==i&&r.set(t,o(a))),this.wNAF(i,a,n)}}}function validateBasic(t){return validateField(t.Fp),utils_validateObject(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...nLength(t.n,t.nBitLength),...t,p:t.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function validatePointOpts(t){let r=validateBasic(t);utils_validateObject(r,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});let{endo:n,Fp:o,a:i}=r;if(n){if(!o.eql(i,o.ZERO))throw Error("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("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...r})}let{bytesToNumberBE:V,hexToBytes:q}=f,W={Err:class extends Error{constructor(t=""){super(t)}},_parseInt(t){let{Err:r}=W;if(t.length<2||2!==t[0])throw new r("Invalid signature integer tag");let n=t[1],o=t.subarray(2,n+2);if(!n||o.length!==n)throw new r("Invalid signature integer: wrong length");if(128&o[0])throw new r("Invalid signature integer: negative");if(0===o[0]&&!(128&o[1]))throw new r("Invalid signature integer: unnecessary leading zero");return{d:V(o),l:t.subarray(n+2)}},toSig(t){let{Err:r}=W,n="string"==typeof t?q(t):t;if(!(n instanceof Uint8Array))throw Error("ui8a expected");let o=n.length;if(o<2||48!=n[0])throw new r("Invalid signature tag");if(n[1]!==o-2)throw new r("Invalid signature: incorrect length");let{d:i,l:a}=W._parseInt(n.subarray(2)),{d:c,l:u}=W._parseInt(a);if(u.length)throw new r("Invalid signature: left bytes after parsing");return{r:i,s:c}},hexFromSig(t){let slice=t=>8&Number.parseInt(t[0],16)?"00"+t:t,h=t=>{let r=t.toString(16);return 1&r.length?`0${r}`:r},r=slice(h(t.s)),n=slice(h(t.r)),o=r.length/2,i=n.length/2,a=h(o),c=h(i);return`30${h(i+o+4)}02${c}${n}02${a}${r}`}},K=BigInt(0),Z=BigInt(1),Y=(BigInt(2),BigInt(3));function weierstrassPoints(t){let r=validatePointOpts(t),{Fp:n}=r,o=r.toBytes||((t,r,o)=>{let i=r.toAffine();return utils_concatBytes(Uint8Array.from([4]),n.toBytes(i.x),n.toBytes(i.y))}),i=r.fromBytes||(t=>{let r=t.subarray(1),o=n.fromBytes(r.subarray(0,n.BYTES)),i=n.fromBytes(r.subarray(n.BYTES,2*n.BYTES));return{x:o,y:i}});function weierstrassEquation(t){let{a:o,b:i}=r,a=n.sqr(t),c=n.mul(a,t);return n.add(n.add(c,n.mul(t,o)),i)}if(!n.eql(n.sqr(r.Gy),weierstrassEquation(r.Gx)))throw Error("bad generator point: equation left != right");function isWithinCurveOrder(t){return"bigint"==typeof t&&Kn.eql(t,n.ZERO);return is0(r)&&is0(o)?Point.ZERO:new Point(r,o,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(t){let r=n.invertBatch(t.map(t=>t.pz));return t.map((t,n)=>t.toAffine(r[n])).map(Point.fromAffine)}static fromHex(t){let r=Point.fromAffine(i(utils_ensureBytes("pointHex",t)));return r.assertValidity(),r}static fromPrivateKey(t){return Point.BASE.multiply(normPrivateKeyToScalar(t))}_setWindowSize(t){this._WINDOW_SIZE=t,a.delete(this)}assertValidity(){if(this.is0()){if(r.allowInfinityPoint)return;throw Error("bad point: ZERO")}let{x:t,y:o}=this.toAffine();if(!n.isValid(t)||!n.isValid(o))throw Error("bad point: x or y not FE");let i=n.sqr(o),a=weierstrassEquation(t);if(!n.eql(i,a))throw Error("bad point: equation left != right");if(!this.isTorsionFree())throw Error("bad point: not in prime-order subgroup")}hasEvenY(){let{y:t}=this.toAffine();if(n.isOdd)return!n.isOdd(t);throw Error("Field doesn't support isOdd")}equals(t){assertPrjPoint(t);let{px:r,py:o,pz:i}=this,{px:a,py:c,pz:u}=t,d=n.eql(n.mul(r,u),n.mul(a,i)),f=n.eql(n.mul(o,u),n.mul(c,i));return d&&f}negate(){return new Point(this.px,n.neg(this.py),this.pz)}double(){let{a:t,b:o}=r,i=n.mul(o,Y),{px:a,py:c,pz:u}=this,d=n.ZERO,f=n.ZERO,m=n.ZERO,g=n.mul(a,a),b=n.mul(c,c),y=n.mul(u,u),v=n.mul(a,c);return v=n.add(v,v),m=n.mul(a,u),m=n.add(m,m),d=n.mul(t,m),f=n.mul(i,y),f=n.add(d,f),d=n.sub(b,f),f=n.add(b,f),f=n.mul(d,f),d=n.mul(v,d),m=n.mul(i,m),y=n.mul(t,y),v=n.sub(g,y),v=n.mul(t,v),v=n.add(v,m),m=n.add(g,g),g=n.add(m,g),g=n.add(g,y),g=n.mul(g,v),f=n.add(f,g),y=n.mul(c,u),y=n.add(y,y),g=n.mul(y,v),d=n.sub(d,g),m=n.mul(y,b),m=n.add(m,m),new Point(d,f,m=n.add(m,m))}add(t){assertPrjPoint(t);let{px:o,py:i,pz:a}=this,{px:c,py:u,pz:d}=t,f=n.ZERO,m=n.ZERO,g=n.ZERO,b=r.a,y=n.mul(r.b,Y),v=n.mul(o,c),w=n.mul(i,u),E=n.mul(a,d),_=n.add(o,i),P=n.add(c,u);_=n.mul(_,P),P=n.add(v,w),_=n.sub(_,P),P=n.add(o,a);let S=n.add(c,d);return P=n.mul(P,S),S=n.add(v,E),P=n.sub(P,S),S=n.add(i,a),f=n.add(u,d),S=n.mul(S,f),f=n.add(w,E),S=n.sub(S,f),g=n.mul(b,P),f=n.mul(y,E),g=n.add(f,g),f=n.sub(w,g),g=n.add(w,g),m=n.mul(f,g),w=n.add(v,v),w=n.add(w,v),E=n.mul(b,E),P=n.mul(y,P),w=n.add(w,E),E=n.sub(v,E),E=n.mul(b,E),P=n.add(P,E),v=n.mul(w,P),m=n.add(m,v),v=n.mul(S,P),f=n.mul(_,f),f=n.sub(f,v),v=n.mul(_,w),g=n.mul(S,g),new Point(f,m,g=n.add(g,v))}subtract(t){return this.add(t.negate())}is0(){return this.equals(Point.ZERO)}wNAF(t){return u.wNAFCached(this,a,t,t=>{let r=n.invertBatch(t.map(t=>t.pz));return t.map((t,n)=>t.toAffine(r[n])).map(Point.fromAffine)})}multiplyUnsafe(t){let o=Point.ZERO;if(t===K)return o;if(assertGE(t),t===Z)return this;let{endo:i}=r;if(!i)return u.unsafeLadder(this,t);let{k1neg:a,k1:c,k2neg:d,k2:f}=i.splitScalar(t),m=o,g=o,b=this;for(;c>K||f>K;)c&Z&&(m=m.add(b)),f&Z&&(g=g.add(b)),b=b.double(),c>>=Z,f>>=Z;return a&&(m=m.negate()),d&&(g=g.negate()),g=new Point(n.mul(g.px,i.beta),g.py,g.pz),m.add(g)}multiply(t){let o,i;assertGE(t);let{endo:a}=r;if(a){let{k1neg:r,k1:c,k2neg:d,k2:f}=a.splitScalar(t),{p:m,f:g}=this.wNAF(c),{p:b,f:y}=this.wNAF(f);m=u.constTimeNegate(r,m),b=u.constTimeNegate(d,b),b=new Point(n.mul(b.px,a.beta),b.py,b.pz),o=m.add(b),i=g.add(y)}else{let{p:r,f:n}=this.wNAF(t);o=r,i=n}return Point.normalizeZ([o,i])[0]}multiplyAndAddUnsafe(t,r,n){let o=Point.BASE,mul=(t,r)=>r!==K&&r!==Z&&t.equals(o)?t.multiply(r):t.multiplyUnsafe(r),i=mul(this,r).add(mul(t,n));return i.is0()?void 0:i}toAffine(t){let{px:r,py:o,pz:i}=this,a=this.is0();null==t&&(t=a?n.ONE:n.inv(i));let c=n.mul(r,t),u=n.mul(o,t),d=n.mul(i,t);if(a)return{x:n.ZERO,y:n.ZERO};if(!n.eql(d,n.ONE))throw Error("invZ was invalid");return{x:c,y:u}}isTorsionFree(){let{h:t,isTorsionFree:n}=r;if(t===Z)return!0;if(n)return n(Point,this);throw Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h:t,clearCofactor:n}=r;return t===Z?this:n?n(Point,this):this.multiplyUnsafe(r.h)}toRawBytes(t=!0){return this.assertValidity(),o(Point,this,t)}toHex(t=!0){return utils_bytesToHex(this.toRawBytes(t))}};Point.BASE=new Point(r.Gx,r.Gy,n.ONE),Point.ZERO=new Point(n.ZERO,n.ONE,n.ZERO);let c=r.nBitLength,u=wNAF(Point,r.endo?Math.ceil(c/2):c);return{CURVE:r,ProjectivePoint:Point,normPrivateKeyToScalar,weierstrassEquation,isWithinCurveOrder}}function validateOpts(t){let r=validateBasic(t);return utils_validateObject(r,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...r})}function weierstrass(t){let r=validateOpts(t),{Fp:n,n:o}=r,i=n.BYTES+1,a=2*n.BYTES+1;function isValidFieldElement(t){return Kutils_bytesToHex(utils_numberToBytesBE(t,r.nByteLength));function isBiggerThanHalfOrder(t){let r=o>>Z;return t>r}function normalizeS(t){return isBiggerThanHalfOrder(t)?modN(-t):t}let slcNum=(t,r,n)=>utils_bytesToNumberBE(t.slice(r,n));let Signature=class Signature{constructor(t,r,n){this.r=t,this.s=r,this.recovery=n,this.assertValidity()}static fromCompact(t){let n=r.nByteLength;return new Signature(slcNum(t=utils_ensureBytes("compactSignature",t,2*n),0,n),slcNum(t,n,2*n))}static fromDER(t){let{r,s:n}=W.toSig(utils_ensureBytes("DER",t));return new Signature(r,n)}assertValidity(){if(!f(this.r))throw Error("r must be 0 < r < CURVE.n");if(!f(this.s))throw Error("s must be 0 < s < CURVE.n")}addRecoveryBit(t){return new Signature(this.r,this.s,t)}recoverPublicKey(t){let{r:i,s:a,recovery:u}=this,d=g(utils_ensureBytes("msgHash",t));if(null==u||![0,1,2,3].includes(u))throw Error("recovery id invalid");let f=2===u||3===u?i+r.n:i;if(f>=n.ORDER)throw Error("recovery id 2 or 3 invalid");let m=(1&u)==0?"02":"03",b=c.fromHex(m+numToNByteStr(f)),y=invert(f,o),v=modN(-d*y),w=modN(a*y),E=c.BASE.multiplyAndAddUnsafe(b,v,w);if(!E)throw Error("point at infinify");return E.assertValidity(),E}hasHighS(){return isBiggerThanHalfOrder(this.s)}normalizeS(){return this.hasHighS()?new Signature(this.r,modN(-this.s),this.recovery):this}toDERRawBytes(){return hexToBytes(this.toDERHex())}toDERHex(){return W.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return hexToBytes(this.toCompactHex())}toCompactHex(){return numToNByteStr(this.r)+numToNByteStr(this.s)}};function getPublicKey(t,r=!0){return c.fromPrivateKey(t).toRawBytes(r)}function isProbPub(t){let r=t instanceof Uint8Array,n="string"==typeof t,o=(r||n)&&t.length;return r?o===i||o===a:n?o===2*i||o===2*a:t instanceof c}function getSharedSecret(t,r,n=!0){if(isProbPub(t))throw Error("first arg must be private key");if(!isProbPub(r))throw Error("second arg must be public key");let o=c.fromHex(r);return o.multiply(u(t)).toRawBytes(n)}let m=r.bits2int||function(t){let n=utils_bytesToNumberBE(t),o=8*t.length-r.nBitLength;return o>0?n>>BigInt(o):n},g=r.bits2int_modN||function(t){return modN(m(t))},b=bitMask(r.nBitLength);function int2octets(t){if("bigint"!=typeof t)throw Error("bigint expected");if(!(K<=t&&tt in a))throw Error("sign() legacy options not supported");let{hash:d,randomBytes:b}=r,{lowS:v,prehash:w,extraEntropy:E}=a;null==v&&(v=!0),t=utils_ensureBytes("msgHash",t),w&&(t=utils_ensureBytes("prehashed msgHash",d(t)));let _=g(t),P=u(i),S=[int2octets(P),int2octets(_)];if(null!=E){let t=!0===E?b(n.BYTES):E;S.push(utils_ensureBytes("extraEntropy",t,n.BYTES))}let A=utils_concatBytes(...S);return{seed:A,k2sig:function(t){let r=m(t);if(!f(r))return;let n=invert(r,o),i=c.BASE.multiply(r).toAffine(),a=modN(i.x);if(a===K)return;let u=modN(n*modN(_+a*P));if(u===K)return;let d=(i.x===a?0:2)|Number(i.y&Z),g=u;return v&&isBiggerThanHalfOrder(u)&&(g=normalizeS(u),d^=1),new Signature(a,g,d)}}}let y={lowS:r.lowS,prehash:!1},v={lowS:r.lowS,prehash:!1};function sign(t,n,o=y){let{seed:i,k2sig:a}=prepSig(t,n,o),c=createHmacDrbg(r.hash.outputLen,r.nByteLength,r.hmac);return c(i,a)}function verify(t,n,i,a=v){let u,d;if(n=utils_ensureBytes("msgHash",n),i=utils_ensureBytes("publicKey",i),"strict"in a)throw Error("options.strict was renamed to lowS");let{lowS:f,prehash:m}=a;try{if("string"==typeof t||t instanceof Uint8Array)try{d=Signature.fromDER(t)}catch(r){if(!(r instanceof W.Err))throw r;d=Signature.fromCompact(t)}else if("object"==typeof t&&"bigint"==typeof t.r&&"bigint"==typeof t.s){let{r,s:n}=t;d=new Signature(r,n)}else throw Error("PARSE");u=c.fromHex(i)}catch(t){if("PARSE"===t.message)throw Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(f&&d.hasHighS())return!1;m&&(n=r.hash(n));let{r:b,s:y}=d,w=g(n),E=invert(y,o),_=modN(w*E),P=modN(b*E),S=c.BASE.multiplyAndAddUnsafe(u,_,P)?.toAffine();if(!S)return!1;let A=modN(S.x);return A===b}return c.BASE._setWindowSize(8),{CURVE:r,getPublicKey,getSharedSecret,sign,verify,ProjectivePoint:c,Signature,utils:{isValidPrivateKey(t){try{return u(t),!0}catch(t){return!1}},normPrivateKeyToScalar:u,randomPrivateKey:()=>{let t=r.randomBytes(n.BYTES+8),i=hashToPrivateScalar(t,o);return utils_numberToBytesBE(i,r.nByteLength)},precompute:(t=8,r=c.BASE)=>(r._setWindowSize(t),r.multiply(BigInt(3)),r)}}}BigInt(4);let HMAC=class HMAC extends g.kb{constructor(t,r){super(),this.finished=!1,this.destroyed=!1,m.ZP.hash(t);let n=(0,g.O0)(r);if(this.iHash=t.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 o=this.blockLen,i=new Uint8Array(o);i.set(n.length>o?t.create().update(n).digest():n);for(let t=0;tnew HMAC(t,r).update(n).digest();/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function getHash(t){return{hash:t,hmac:(r,...n)=>hmac(t,r,(0,g.eV)(...n)),randomBytes:g.O6}}function createCurve(t,r){let create=r=>weierstrass({...t,...getHash(r)});return Object.freeze({...create(r),create})}hmac.create=(t,r)=>new HMAC(t,r);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let J=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),Q=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),ee=BigInt(1),et=BigInt(2),divNearest=(t,r)=>(t+r/et)/r;function sqrtMod(t){let r=BigInt(3),n=BigInt(6),o=BigInt(11),i=BigInt(22),a=BigInt(23),c=BigInt(44),u=BigInt(88),d=t*t*t%J,f=d*d*t%J,m=pow2(f,r,J)*f%J,g=pow2(m,r,J)*f%J,b=pow2(g,et,J)*d%J,y=pow2(b,o,J)*b%J,v=pow2(y,i,J)*y%J,w=pow2(v,c,J)*v%J,E=pow2(w,u,J)*w%J,_=pow2(E,c,J)*v%J,P=pow2(_,r,J)*f%J,S=pow2(P,a,J)*y%J,A=pow2(S,n,J)*d%J,k=pow2(A,et,J);if(!er.eql(er.sqr(k),t))throw Error("Cannot find square root");return k}let er=Field(J,void 0,void 0,{sqrt:sqrtMod}),en=createCurve({a:BigInt(0),b:BigInt(7),Fp:er,n:Q,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:t=>{let r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-ee*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),o=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=BigInt("0x100000000000000000000000000000000"),a=divNearest(r*t,Q),c=divNearest(-n*t,Q),u=modular_mod(t-a*r-c*o,Q),d=modular_mod(-a*n-c*r,Q),f=u>i,m=d>i;if(f&&(u=Q-u),m&&(d=Q-d),u>i||d>i)throw Error("splitScalar: Endomorphism failed, k="+t);return{k1neg:f,k1:u,k2neg:m,k2:d}}}},w),eo=BigInt(0),fe=t=>"bigint"==typeof t&&eot.charCodeAt(0)));n=concatBytes(r,r),ei[t]=n}return sha256(concatBytes(n,...r))}let modP=t=>mod(t,J),modN=t=>mod(t,Q),ea=en.ProjectivePoint;var es=n(17070);function internal_isHexPrefixed(t){if("string"!=typeof t)throw Error(`[isHexPrefixed] input must be type 'string', received type ${typeof t}`);return"0"===t[0]&&"x"===t[1]}let internal_stripHexPrefix=t=>{if("string"!=typeof t)throw Error(`[stripHexPrefix] input must be type 'string', received ${typeof t}`);return internal_isHexPrefixed(t)?t.slice(2):t};function padToEven(t){let r=t;if("string"!=typeof r)throw Error(`[padToEven] value must be type 'string', received ${typeof r}`);return r.length%2&&(r=`0${r}`),r}function internal_isHexString(t,r){return"string"==typeof t&&!!t.match(/^0x[0-9A-Fa-f]*$/)&&(void 0===r||!(r>0)||t.length===2+2*r)}let helpers_assertIsBytes=function(t){if(!(t instanceof Uint8Array)){let r=`This method only supports Uint8Array but input was: ${t}`;throw Error(r)}},helpers_assertIsString=function(t){if("string"!=typeof t){let r=`This method only supports strings but input was: ${t}`;throw Error(r)}},el=BigInt(0),unprefixedHexToBytes=t=>{if("0x"!==t.slice(0,2))return(0,es.nr)(padToEven(t));throw Error("hex string is prefixed with 0x, should be unprefixed")},ec=Array.from({length:256},(t,r)=>r.toString(16).padStart(2,"0")),bytes_bytesToHex=t=>{let r="0x";if(void 0===t||0===t.length)return r;for(let n of t)r+=ec[n];return r},eu=[];for(let t=0;t<=65535;t++)eu[t]=BigInt(t);let bytes_bytesToBigInt=t=>{let r=bytes_bytesToHex(t);return"0x"===r?el:4===r.length?eu[t[0]]:6===r.length?eu[256*t[0]+t[1]]:BigInt(r)},bytes_hexToBytes=t=>{if("string"!=typeof t)throw Error(`hex argument type ${typeof t} must be of type string`);if(!t.startsWith("0x"))throw Error(`prefixed hex input should start with 0x, got ${t.substring(0,2)}`);(t=t.slice(2)).length%2!=0&&(t=padToEven(t));let r=t.length/2,n=new Uint8Array(r);for(let o=0;o{if(!Number.isSafeInteger(t)||t<0)throw Error(`Received an invalid integer type: ${t}`);return`0x${t.toString(16)}`},intToBytes=t=>{let r=intToHex(t);return bytes_hexToBytes(r)},bigIntToBytes=t=>bytes_toBytes("0x"+padToEven(t.toString(16))),bytes_zeros=t=>new Uint8Array(t),setLength=(t,r,n)=>n?t.length(helpers_assertIsBytes(t),setLength(t,r,!1)),stripZeros=t=>{let r=t[0];for(;t.length>0&&"0"===r.toString();)r=(t=t.slice(1))[0];return t},unpadBytes=t=>(helpers_assertIsBytes(t),stripZeros(t)),bytes_toBytes=t=>{if(null==t)return new Uint8Array;if(Array.isArray(t)||t instanceof Uint8Array)return Uint8Array.from(t);if("string"==typeof t){if(!internal_isHexString(t))throw Error(`Cannot convert string to Uint8Array. toBytes only supports 0x-prefixed hex strings and this string was given: ${t}`);return bytes_hexToBytes(t)}if("number"==typeof t)return intToBytes(t);if("bigint"==typeof t){if(t{for(let[r,n]of Object.entries(t))if(void 0!==n&&n.length>0&&0===n[0])throw Error(`${r} cannot have leading zeroes, received: ${bytes_bytesToHex(n)}`)},bytes_bigIntToHex=t=>"0x"+t.toString(16),bytes_bigIntToUnpaddedBytes=t=>unpadBytes(bigIntToBytes(t)),bytes_concatBytes=(...t)=>{if(1===t.length)return t[0];let r=t.reduce((t,r)=>t+r.length,0),n=new Uint8Array(r);for(let r=0,o=0;r=ep&&t<=r}toString(){return bytes_bytesToHex(this.bytes)}toBytes(){return new Uint8Array(this.bytes)}};function types_toType(t,r){if(null===t)return null;if(void 0===t)return;if("string"!=typeof t||internal_isHexString(t)){if("number"==typeof t&&!Number.isSafeInteger(t))throw Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)")}else throw Error(`A string must be provided with a 0x-prefix, given: ${t}`);let n=bytes_toBytes(t);switch(r){case d.Uint8Array:return n;case d.BigInt:return bytes_bytesToBigInt(n);case d.Number:{let t=bytes_bytesToBigInt(n);if(t>BigInt(Number.MAX_SAFE_INTEGER))throw Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return Number(t)}case d.PrefixedHexString:return bytes_bytesToHex(n);default:throw Error("unknown outputType")}}function ecsign(t,r,n){let o=en.sign(t,r),i=o.toCompactRawBytes(),a=i.slice(0,32),c=i.slice(32,64),u=void 0===n?BigInt(o.recovery+27):BigInt(o.recovery+35)+BigInt(n)*eg;return{r:a,s:c,v:u}}function calculateSigRecovery(t,r){return t===ep||t===em?t:void 0===r?t-eb:t-(r*eg+BigInt(35))}function isValidSigRecovery(t){return t===ep||t===em}(o=c||(c={})).String="string",o.Bytes="view",o.Number="number",(i=u||(u={})).String="string",i.Bytes="view",i.JSON="json",(a=d||(d={}))[a.Number=0]="Number",a[a.BigInt=1]="BigInt",a[a.Uint8Array=2]="Uint8Array",a[a.PrefixedHexString=3]="PrefixedHexString";let ecrecover=function(t,r,n,o,i){let a=bytes_concatBytes(bytes_setLengthLeft(n,32),bytes_setLengthLeft(o,32)),c=calculateSigRecovery(r,i);if(!isValidSigRecovery(c))throw Error("Invalid signature v value");let u=en.Signature.fromCompact(a).addRecoveryBit(Number(c)),d=u.recoverPublicKey(t);return d.toRawBytes(!1).slice(1)};n(68495);let ex=(0,es.gn)(w);function kzgNotLoaded(){throw Error("kzg library not loaded")}let eE={loadTrustedSetup:kzgNotLoaded,blobToKzgCommitment:kzgNotLoaded,computeBlobKzgProof:kzgNotLoaded,verifyKzgProof:kzgNotLoaded,verifyBlobKzgProofBatch:kzgNotLoaded};function get_padded(t,r){let n=new Uint8Array(131072*r).fill(0);return n.set(t),n[t.byteLength]=128,n}function get_blob(t){let r=new Uint8Array(131072);for(let n=0;n<4096;n++){let o=new Uint8Array(32);o.set(t.subarray(31*n,(n+1)*31),0),r.set(o,32*n)}return r}let getBlobs=t=>{let r=(0,es.iY)(t),n=r.byteLength;if(0===n)throw Error("invalid blob data");if(n>262143)throw Error("blob data is too large");let o=Math.ceil(n/131072),i=get_padded(r,o),a=[];for(let t=0;t{let r=[];for(let n of t)r.push(eE.blobToKzgCommitment(n));return r},blobsToProofs=(t,r)=>{let n=t.map((t,n)=>eE.computeBlobKzgProof(t,r[n]));return n},computeVersionedHash=(t,r)=>{let n=new Uint8Array(32);return n.set([r],0),n.set(ex(t).subarray(1),1),n},commitmentsToVersionedHashes=t=>{let r=[];for(let n of t)r.push(computeVersionedHash(n,1));return r}},91072:function(t,r,n){"use strict";function number(t){if(!Number.isSafeInteger(t)||t<0)throw Error(`Wrong positive integer: ${t}`)}function bool(t){if("boolean"!=typeof t)throw Error(`Expected boolean, not ${t}`)}function bytes(t,...r){if(!(t instanceof Uint8Array))throw Error("Expected Uint8Array");if(r.length>0&&!r.includes(t.length))throw Error(`Expected Uint8Array of length ${r}, not of length=${t.length}`)}function hash(t){if("function"!=typeof t||"function"!=typeof t.create)throw Error("Hash should be wrapped by utils.wrapConstructor");number(t.outputLen),number(t.blockLen)}function exists(t,r=!0){if(t.destroyed)throw Error("Hash instance has been destroyed");if(r&&t.finished)throw Error("Hash#digest() has already been called")}function output(t,r){bytes(t);let n=r.outputLen;if(t.lengtht instanceof Uint8Array,u32=t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4)),createView=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),rotr=(t,r)=>t<<32-r|t>>>r,i=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];if(!i)throw Error("Non little-endian hardware is not supported");function hexToBytes(t){if("string"!=typeof t)throw Error("hex string expected, got "+typeof t);let r=t.length;if(r%2)throw Error("padded hex string expected, got unpadded hex of length "+r);let n=new Uint8Array(r/2);for(let r=0;rt+r.length,0)),n=0;return t.forEach(t=>{if(!u8a(t))throw Error("Uint8Array expected");r.set(t,n),n+=t.length}),r}Array.from({length:256},(t,r)=>r.toString(16).padStart(2,"0"));let Hash=class Hash{clone(){return this._cloneInto()}};function wrapConstructor(t){let hashC=r=>t().update(toBytes(r)).digest(),r=t();return hashC.outputLen=r.outputLen,hashC.blockLen=r.blockLen,hashC.create=()=>t(),hashC}function wrapXOFConstructorWithOpts(t){let hashC=(r,n)=>t(n).update(toBytes(r)).digest(),r=t({});return hashC.outputLen=r.outputLen,hashC.blockLen=r.blockLen,hashC.create=r=>t(r),hashC}function randomBytes(t=32){if(o&&"function"==typeof o.getRandomValues)return o.getRandomValues(new Uint8Array(t));throw Error("crypto.getRandomValues must be defined")}},73758:function(t,r,n){"use strict";let o;function _extends(){return(_extends=Object.assign?Object.assign.bind():function(t){for(var r=1;rt.forEach(t=>$6ed0406888f73fc4$var$setRef(t,r))}function $6ed0406888f73fc4$export$c7b2cbe3552a0d05(...t){return(0,i.useCallback)($6ed0406888f73fc4$export$43e446d32b3d21af(...t),t)}function $c512c27ab02ef895$export$50c7b4e9d9f19c1(t,r=[]){let n=[];function $c512c27ab02ef895$export$fd42f52fd3ae1109(r,o){let a=(0,i.createContext)(o),c=n.length;function Provider(r){let{scope:n,children:o,...u}=r,d=(null==n?void 0:n[t][c])||a,f=(0,i.useMemo)(()=>u,Object.values(u));return(0,i.createElement)(d.Provider,{value:f},o)}function useContext(n,u){let d=(null==u?void 0:u[t][c])||a,f=(0,i.useContext)(d);if(f)return f;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${r}\``)}return n=[...n,o],Provider.displayName=r+"Provider",[Provider,useContext]}let createScope=()=>{let r=n.map(t=>(0,i.createContext)(t));return function(n){let o=(null==n?void 0:n[t])||r;return(0,i.useMemo)(()=>({[`__scope${t}`]:{...n,[t]:o}}),[n,o])}};return createScope.scopeName=t,[$c512c27ab02ef895$export$fd42f52fd3ae1109,$c512c27ab02ef895$var$composeContextScopes(createScope,...r)]}function $c512c27ab02ef895$var$composeContextScopes(...t){let r=t[0];if(1===t.length)return r;let createScope1=()=>{let n=t.map(t=>({useScope:t(),scopeName:t.scopeName}));return function(t){let o=n.reduce((r,{useScope:n,scopeName:o})=>{let i=n(t),a=i[`__scope${o}`];return{...r,...a}},{});return(0,i.useMemo)(()=>({[`__scope${r.scopeName}`]:o}),[o])}};return createScope1.scopeName=r.scopeName,createScope1}function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(t){let r=(0,i.useRef)(t);return(0,i.useEffect)(()=>{r.current=t}),(0,i.useMemo)(()=>(...t)=>{var n;return null===(n=r.current)||void 0===n?void 0:n.call(r,...t)},[])}function $71cd76cc60e0454e$export$6f32135080cb4c3({prop:t,defaultProp:r,onChange:n=()=>{}}){let[o,a]=$71cd76cc60e0454e$var$useUncontrolledState({defaultProp:r,onChange:n}),c=void 0!==t,u=c?t:o,d=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(n),f=(0,i.useCallback)(r=>{if(c){let n="function"==typeof r?r(t):r;n!==t&&d(n)}else a(r)},[c,t,a,d]);return[u,f]}function $71cd76cc60e0454e$var$useUncontrolledState({defaultProp:t,onChange:r}){let n=(0,i.useState)(t),[o]=n,a=(0,i.useRef)(o),c=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(r);return(0,i.useEffect)(()=>{a.current!==o&&(c(o),a.current=o)},[o,a,c]),n}var c=n(1568);let u=(0,i.forwardRef)((t,r)=>{let{children:n,...o}=t,a=i.Children.toArray(n),c=a.find($5e63c961fc1ce211$var$isSlottable);if(c){let t=c.props.children,n=a.map(r=>r!==c?r:i.Children.count(t)>1?i.Children.only(null):(0,i.isValidElement)(t)?t.props.children:null);return(0,i.createElement)(d,_extends({},o,{ref:r}),(0,i.isValidElement)(t)?(0,i.cloneElement)(t,void 0,n):null)}return(0,i.createElement)(d,_extends({},o,{ref:r}),n)});u.displayName="Slot";let d=(0,i.forwardRef)((t,r)=>{let{children:n,...o}=t;return(0,i.isValidElement)(n)?(0,i.cloneElement)(n,{...$5e63c961fc1ce211$var$mergeProps(o,n.props),ref:r?$6ed0406888f73fc4$export$43e446d32b3d21af(r,n.ref):n.ref}):i.Children.count(n)>1?i.Children.only(null):null});d.displayName="SlotClone";let $5e63c961fc1ce211$export$d9f1ccf0bdb05d45=({children:t})=>(0,i.createElement)(i.Fragment,null,t);function $5e63c961fc1ce211$var$isSlottable(t){return(0,i.isValidElement)(t)&&t.type===$5e63c961fc1ce211$export$d9f1ccf0bdb05d45}function $5e63c961fc1ce211$var$mergeProps(t,r){let n={...r};for(let o in r){let i=t[o],a=r[o],c=/^on[A-Z]/.test(o);c?i&&a?n[o]=(...t)=>{a(...t),i(...t)}:i&&(n[o]=i):"style"===o?n[o]={...i,...a}:"className"===o&&(n[o]=[i,a].filter(Boolean).join(" "))}return{...t,...n}}let f=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((t,r)=>{let n=(0,i.forwardRef)((t,n)=>{let{asChild:o,...a}=t,c=o?u:r;return(0,i.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,i.createElement)(c,_extends({},a,{ref:n}))});return n.displayName=`Primitive.${r}`,{...t,[r]:n}},{});function $8927f6f2acc4f386$export$6d1a0317bde7de7f(t,r){t&&(0,c.flushSync)(()=>t.dispatchEvent(r))}function $e02a7d9cb1dc128c$export$c74125a8e3af6bb2(t){let r=t+"CollectionProvider",[n,o]=$c512c27ab02ef895$export$50c7b4e9d9f19c1(r),[a,c]=n(r,{collectionRef:{current:null},itemMap:new Map}),d=t+"CollectionSlot",f=i.forwardRef((t,r)=>{let{scope:n,children:o}=t,a=c(d,n),f=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(r,a.collectionRef);return i.createElement(u,{ref:f},o)}),m=t+"CollectionItemSlot",g="data-radix-collection-item",b=i.forwardRef((t,r)=>{let{scope:n,children:o,...a}=t,d=i.useRef(null),f=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(r,d),b=c(m,n);return i.useEffect(()=>(b.itemMap.set(d,{ref:d,...a}),()=>void b.itemMap.delete(d))),i.createElement(u,{[g]:"",ref:f},o)});return[{Provider:t=>{let{scope:r,children:n}=t,o=i.useRef(null),c=i.useRef(new Map).current;return i.createElement(a,{scope:r,itemMap:c,collectionRef:o},n)},Slot:f,ItemSlot:b},function(r){let n=c(t+"CollectionConsumer",r),o=i.useCallback(()=>{let t=n.collectionRef.current;if(!t)return[];let r=Array.from(t.querySelectorAll(`[${g}]`)),o=Array.from(n.itemMap.values()),i=o.sort((t,n)=>r.indexOf(t.ref.current)-r.indexOf(n.ref.current));return i},[n.collectionRef,n.itemMap]);return o},o]}let m=(0,i.createContext)(void 0);function $f631663db3294ace$export$b39126d51d94e6f3(t){let r=(0,i.useContext)(m);return t||r||"ltr"}function $addc16e1bbe58fd0$export$3a72a57244d6e765(t,r=null==globalThis?void 0:globalThis.document){let n=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(t);(0,i.useEffect)(()=>{let handleKeyDown=t=>{"Escape"===t.key&&n(t)};return r.addEventListener("keydown",handleKeyDown),()=>r.removeEventListener("keydown",handleKeyDown)},[n,r])}let g="dismissableLayer.update",b=(0,i.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),y=(0,i.forwardRef)((t,r)=>{var n;let{disableOutsidePointerEvents:a=!1,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:m,onDismiss:y,...v}=t,w=(0,i.useContext)(b),[E,_]=(0,i.useState)(null),P=null!==(n=null==E?void 0:E.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,S]=(0,i.useState)({}),A=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(r,t=>_(t)),k=Array.from(w.layers),[C]=[...w.layersWithOutsidePointerEventsDisabled].slice(-1),T=k.indexOf(C),N=E?k.indexOf(E):-1,H=w.layersWithOutsidePointerEventsDisabled.size>0,D=N>=T,F=$5cb92bef7577960e$var$usePointerDownOutside(t=>{let r=t.target,n=[...w.branches].some(t=>t.contains(r));!D||n||(null==u||u(t),null==m||m(t),t.defaultPrevented||null==y||y())},P),U=$5cb92bef7577960e$var$useFocusOutside(t=>{let r=t.target,n=[...w.branches].some(t=>t.contains(r));n||(null==d||d(t),null==m||m(t),t.defaultPrevented||null==y||y())},P);return $addc16e1bbe58fd0$export$3a72a57244d6e765(t=>{let r=N===w.layers.size-1;r&&(null==c||c(t),!t.defaultPrevented&&y&&(t.preventDefault(),y()))},P),(0,i.useEffect)(()=>{if(E)return a&&(0===w.layersWithOutsidePointerEventsDisabled.size&&(o=P.body.style.pointerEvents,P.body.style.pointerEvents="none"),w.layersWithOutsidePointerEventsDisabled.add(E)),w.layers.add(E),$5cb92bef7577960e$var$dispatchUpdate(),()=>{a&&1===w.layersWithOutsidePointerEventsDisabled.size&&(P.body.style.pointerEvents=o)}},[E,P,a,w]),(0,i.useEffect)(()=>()=>{E&&(w.layers.delete(E),w.layersWithOutsidePointerEventsDisabled.delete(E),$5cb92bef7577960e$var$dispatchUpdate())},[E,w]),(0,i.useEffect)(()=>{let handleUpdate=()=>S({});return document.addEventListener(g,handleUpdate),()=>document.removeEventListener(g,handleUpdate)},[]),(0,i.createElement)(f.div,_extends({},v,{ref:A,style:{pointerEvents:H?D?"auto":"none":void 0,...t.style},onFocusCapture:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onFocusCapture,U.onFocusCapture),onBlurCapture:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onBlurCapture,U.onBlurCapture),onPointerDownCapture:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onPointerDownCapture,F.onPointerDownCapture)}))});function $5cb92bef7577960e$var$usePointerDownOutside(t,r=null==globalThis?void 0:globalThis.document){let n=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(t),o=(0,i.useRef)(!1),a=(0,i.useRef)(()=>{});return(0,i.useEffect)(()=>{let handlePointerDown=t=>{if(t.target&&!o.current){let o={originalEvent:t};function handleAndDispatchPointerDownOutsideEvent(){$5cb92bef7577960e$var$handleAndDispatchCustomEvent("dismissableLayer.pointerDownOutside",n,o,{discrete:!0})}"touch"===t.pointerType?(r.removeEventListener("click",a.current),a.current=handleAndDispatchPointerDownOutsideEvent,r.addEventListener("click",a.current,{once:!0})):handleAndDispatchPointerDownOutsideEvent()}else r.removeEventListener("click",a.current);o.current=!1},t=window.setTimeout(()=>{r.addEventListener("pointerdown",handlePointerDown)},0);return()=>{window.clearTimeout(t),r.removeEventListener("pointerdown",handlePointerDown),r.removeEventListener("click",a.current)}},[r,n]),{onPointerDownCapture:()=>o.current=!0}}function $5cb92bef7577960e$var$useFocusOutside(t,r=null==globalThis?void 0:globalThis.document){let n=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(t),o=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{let handleFocus=t=>{t.target&&!o.current&&$5cb92bef7577960e$var$handleAndDispatchCustomEvent("dismissableLayer.focusOutside",n,{originalEvent:t},{discrete:!1})};return r.addEventListener("focusin",handleFocus),()=>r.removeEventListener("focusin",handleFocus)},[r,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function $5cb92bef7577960e$var$dispatchUpdate(){let t=new CustomEvent(g);document.dispatchEvent(t)}function $5cb92bef7577960e$var$handleAndDispatchCustomEvent(t,r,n,{discrete:o}){let i=n.originalEvent.target,a=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});r&&i.addEventListener(t,r,{once:!0}),o?$8927f6f2acc4f386$export$6d1a0317bde7de7f(i,a):i.dispatchEvent(a)}let v=0;function $3db38b7d1fb3fe6a$export$b7ece24a22aeda8c(){(0,i.useEffect)(()=>{var t,r;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(t=n[0])&&void 0!==t?t:$3db38b7d1fb3fe6a$var$createFocusGuard()),document.body.insertAdjacentElement("beforeend",null!==(r=n[1])&&void 0!==r?r:$3db38b7d1fb3fe6a$var$createFocusGuard()),v++,()=>{1===v&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),v--}},[])}function $3db38b7d1fb3fe6a$var$createFocusGuard(){let t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",t}let w="focusScope.autoFocusOnMount",E="focusScope.autoFocusOnUnmount",_={bubbles:!1,cancelable:!0},P=(0,i.forwardRef)((t,r)=>{let{loop:n=!1,trapped:o=!1,onMountAutoFocus:a,onUnmountAutoFocus:c,...u}=t,[d,m]=(0,i.useState)(null),g=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(a),b=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(c),y=(0,i.useRef)(null),v=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(r,t=>m(t)),P=(0,i.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,i.useEffect)(()=>{if(o){function handleFocusIn(t){if(P.paused||!d)return;let r=t.target;d.contains(r)?y.current=r:$d3863c46a17e8a28$var$focus(y.current,{select:!0})}function handleFocusOut(t){if(P.paused||!d)return;let r=t.relatedTarget;null===r||d.contains(r)||$d3863c46a17e8a28$var$focus(y.current,{select:!0})}function handleMutations(t){let r=document.activeElement;if(r===document.body)for(let r of t)r.removedNodes.length>0&&$d3863c46a17e8a28$var$focus(d)}document.addEventListener("focusin",handleFocusIn),document.addEventListener("focusout",handleFocusOut);let t=new MutationObserver(handleMutations);return d&&t.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",handleFocusIn),document.removeEventListener("focusout",handleFocusOut),t.disconnect()}}},[o,d,P.paused]),(0,i.useEffect)(()=>{if(d){S.add(P);let t=document.activeElement,r=d.contains(t);if(!r){let r=new CustomEvent(w,_);d.addEventListener(w,g),d.dispatchEvent(r),r.defaultPrevented||($d3863c46a17e8a28$var$focusFirst($d3863c46a17e8a28$var$removeLinks($d3863c46a17e8a28$var$getTabbableCandidates(d)),{select:!0}),document.activeElement===t&&$d3863c46a17e8a28$var$focus(d))}return()=>{d.removeEventListener(w,g),setTimeout(()=>{let r=new CustomEvent(E,_);d.addEventListener(E,b),d.dispatchEvent(r),r.defaultPrevented||$d3863c46a17e8a28$var$focus(null!=t?t:document.body,{select:!0}),d.removeEventListener(E,b),S.remove(P)},0)}}},[d,g,b,P]);let A=(0,i.useCallback)(t=>{if(!n&&!o||P.paused)return;let r="Tab"===t.key&&!t.altKey&&!t.ctrlKey&&!t.metaKey,i=document.activeElement;if(r&&i){let r=t.currentTarget,[o,a]=$d3863c46a17e8a28$var$getTabbableEdges(r),c=o&&a;c?t.shiftKey||i!==a?t.shiftKey&&i===o&&(t.preventDefault(),n&&$d3863c46a17e8a28$var$focus(a,{select:!0})):(t.preventDefault(),n&&$d3863c46a17e8a28$var$focus(o,{select:!0})):i===r&&t.preventDefault()}},[n,o,P.paused]);return(0,i.createElement)(f.div,_extends({tabIndex:-1},u,{ref:v,onKeyDown:A}))});function $d3863c46a17e8a28$var$focusFirst(t,{select:r=!1}={}){let n=document.activeElement;for(let o of t)if($d3863c46a17e8a28$var$focus(o,{select:r}),document.activeElement!==n)return}function $d3863c46a17e8a28$var$getTabbableEdges(t){let r=$d3863c46a17e8a28$var$getTabbableCandidates(t),n=$d3863c46a17e8a28$var$findVisible(r,t),o=$d3863c46a17e8a28$var$findVisible(r.reverse(),t);return[n,o]}function $d3863c46a17e8a28$var$getTabbableCandidates(t){let r=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>{let r="INPUT"===t.tagName&&"hidden"===t.type;return t.disabled||t.hidden||r?NodeFilter.FILTER_SKIP:t.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)r.push(n.currentNode);return r}function $d3863c46a17e8a28$var$findVisible(t,r){for(let n of t)if(!$d3863c46a17e8a28$var$isHidden(n,{upTo:r}))return n}function $d3863c46a17e8a28$var$isHidden(t,{upTo:r}){if("hidden"===getComputedStyle(t).visibility)return!0;for(;t&&(void 0===r||t!==r);){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1}function $d3863c46a17e8a28$var$isSelectableInput(t){return t instanceof HTMLInputElement&&"select"in t}function $d3863c46a17e8a28$var$focus(t,{select:r=!1}={}){if(t&&t.focus){let n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&$d3863c46a17e8a28$var$isSelectableInput(t)&&r&&t.select()}}let S=$d3863c46a17e8a28$var$createFocusScopesStack();function $d3863c46a17e8a28$var$createFocusScopesStack(){let t=[];return{add(r){let n=t[0];r!==n&&(null==n||n.pause()),(t=$d3863c46a17e8a28$var$arrayRemove(t,r)).unshift(r)},remove(r){var n;null===(n=(t=$d3863c46a17e8a28$var$arrayRemove(t,r))[0])||void 0===n||n.resume()}}}function $d3863c46a17e8a28$var$arrayRemove(t,r){let n=[...t],o=n.indexOf(r);return -1!==o&&n.splice(o,1),n}function $d3863c46a17e8a28$var$removeLinks(t){return t.filter(t=>"A"!==t.tagName)}let A=(null==globalThis?void 0:globalThis.document)?i.useLayoutEffect:()=>{},k=a["useId".toString()]||(()=>void 0),C=0;function $1746a345f3d73bb7$export$f680877a34711e37(t){let[r,n]=i.useState(k());return A(()=>{t||n(t=>null!=t?t:String(C++))},[t]),t||(r?`radix-${r}`:"")}let T=["top","right","bottom","left"],N=Math.min,H=Math.max,D=Math.round,F=Math.floor,createCoords=t=>({x:t,y:t}),U={left:"right",right:"left",bottom:"top",top:"bottom"},G={start:"end",end:"start"};function floating_ui_utils_evaluate(t,r){return"function"==typeof t?t(r):t}function floating_ui_utils_getSide(t){return t.split("-")[0]}function floating_ui_utils_getAlignment(t){return t.split("-")[1]}function getOppositeAxis(t){return"x"===t?"y":"x"}function getAxisLength(t){return"y"===t?"height":"width"}function floating_ui_utils_getSideAxis(t){return["top","bottom"].includes(floating_ui_utils_getSide(t))?"y":"x"}function floating_ui_utils_getAlignmentSides(t,r,n){void 0===n&&(n=!1);let o=floating_ui_utils_getAlignment(t),i=getOppositeAxis(floating_ui_utils_getSideAxis(t)),a=getAxisLength(i),c="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return r.reference[a]>r.floating[a]&&(c=getOppositePlacement(c)),[c,getOppositePlacement(c)]}function getExpandedPlacements(t){let r=getOppositePlacement(t);return[floating_ui_utils_getOppositeAlignmentPlacement(t),r,floating_ui_utils_getOppositeAlignmentPlacement(r)]}function floating_ui_utils_getOppositeAlignmentPlacement(t){return t.replace(/start|end/g,t=>G[t])}function getSideList(t,r,n){let o=["left","right"],i=["right","left"];switch(t){case"top":case"bottom":if(n)return r?i:o;return r?o:i;case"left":case"right":return r?["top","bottom"]:["bottom","top"];default:return[]}}function getOppositeAxisPlacements(t,r,n,o){let i=floating_ui_utils_getAlignment(t),a=getSideList(floating_ui_utils_getSide(t),"start"===n,o);return i&&(a=a.map(t=>t+"-"+i),r&&(a=a.concat(a.map(floating_ui_utils_getOppositeAlignmentPlacement)))),a}function getOppositePlacement(t){return t.replace(/left|right|bottom|top/g,t=>U[t])}function expandPaddingObject(t){return{top:0,right:0,bottom:0,left:0,...t}}function floating_ui_utils_getPaddingObject(t){return"number"!=typeof t?expandPaddingObject(t):{top:t,right:t,bottom:t,left:t}}function floating_ui_utils_rectToClientRect(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function computeCoordsFromPlacement(t,r,n){let o,{reference:i,floating:a}=t,c=floating_ui_utils_getSideAxis(r),u=getOppositeAxis(floating_ui_utils_getSideAxis(r)),d=getAxisLength(u),f=floating_ui_utils_getSide(r),m="y"===c,g=i.x+i.width/2-a.width/2,b=i.y+i.height/2-a.height/2,y=i[d]/2-a[d]/2;switch(f){case"top":o={x:g,y:i.y-a.height};break;case"bottom":o={x:g,y:i.y+i.height};break;case"right":o={x:i.x+i.width,y:b};break;case"left":o={x:i.x-a.width,y:b};break;default:o={x:i.x,y:i.y}}switch(floating_ui_utils_getAlignment(r)){case"start":o[u]-=y*(n&&m?-1:1);break;case"end":o[u]+=y*(n&&m?-1:1)}return o}let computePosition=async(t,r,n)=>{let{placement:o="bottom",strategy:i="absolute",middleware:a=[],platform:c}=n,u=a.filter(Boolean),d=await (null==c.isRTL?void 0:c.isRTL(r)),f=await c.getElementRects({reference:t,floating:r,strategy:i}),{x:m,y:g}=computeCoordsFromPlacement(f,o,d),b=o,y={},v=0;for(let n=0;nt[r]>=0)}async function convertValueToCoords(t,r){let{placement:n,platform:o,elements:i}=t,a=await (null==o.isRTL?void 0:o.isRTL(i.floating)),c=floating_ui_utils_getSide(n),u=floating_ui_utils_getAlignment(n),d="y"===floating_ui_utils_getSideAxis(n),f=["left","top"].includes(c)?-1:1,m=a&&d?-1:1,g=floating_ui_utils_evaluate(r,t),{mainAxis:b,crossAxis:y,alignmentAxis:v}="number"==typeof g?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...g};return u&&"number"==typeof v&&(y="end"===u?-1*v:v),d?{x:y*m,y:b*f}:{x:b*f,y:y*m}}function getNodeName(t){return isNode(t)?(t.nodeName||"").toLowerCase():"#document"}function getWindow(t){var r;return(null==t||null==(r=t.ownerDocument)?void 0:r.defaultView)||window}function getDocumentElement(t){var r;return null==(r=(isNode(t)?t.ownerDocument:t.document)||window.document)?void 0:r.documentElement}function isNode(t){return t instanceof Node||t instanceof getWindow(t).Node}function isElement(t){return t instanceof Element||t instanceof getWindow(t).Element}function isHTMLElement(t){return t instanceof HTMLElement||t instanceof getWindow(t).HTMLElement}function isShadowRoot(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof getWindow(t).ShadowRoot)}function isOverflowElement(t){let{overflow:r,overflowX:n,overflowY:o,display:i}=floating_ui_utils_dom_getComputedStyle(t);return/auto|scroll|overlay|hidden|clip/.test(r+o+n)&&!["inline","contents"].includes(i)}function isTableElement(t){return["table","td","th"].includes(getNodeName(t))}function isContainingBlock(t){let r=isWebKit(),n=floating_ui_utils_dom_getComputedStyle(t);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!r&&!!n.backdropFilter&&"none"!==n.backdropFilter||!r&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(t=>(n.willChange||"").includes(t))||["paint","layout","strict","content"].some(t=>(n.contain||"").includes(t))}function getContainingBlock(t){let r=getParentNode(t);for(;isHTMLElement(r)&&!isLastTraversableNode(r);){if(isContainingBlock(r))return r;r=getParentNode(r)}return null}function isWebKit(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode(t){return["html","body","#document"].includes(getNodeName(t))}function floating_ui_utils_dom_getComputedStyle(t){return getWindow(t).getComputedStyle(t)}function getNodeScroll(t){return isElement(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function getParentNode(t){if("html"===getNodeName(t))return t;let r=t.assignedSlot||t.parentNode||isShadowRoot(t)&&t.host||getDocumentElement(t);return isShadowRoot(r)?r.host:r}function getNearestOverflowAncestor(t){let r=getParentNode(t);return isLastTraversableNode(r)?t.ownerDocument?t.ownerDocument.body:t.body:isHTMLElement(r)&&isOverflowElement(r)?r:getNearestOverflowAncestor(r)}function getOverflowAncestors(t,r,n){var o;void 0===r&&(r=[]),void 0===n&&(n=!0);let i=getNearestOverflowAncestor(t),a=i===(null==(o=t.ownerDocument)?void 0:o.body),c=getWindow(i);return a?r.concat(c,c.visualViewport||[],isOverflowElement(i)?i:[],c.frameElement&&n?getOverflowAncestors(c.frameElement):[]):r.concat(i,getOverflowAncestors(i,[],n))}function getCssDimensions(t){let r=floating_ui_utils_dom_getComputedStyle(t),n=parseFloat(r.width)||0,o=parseFloat(r.height)||0,i=isHTMLElement(t),a=i?t.offsetWidth:n,c=i?t.offsetHeight:o,u=D(n)!==a||D(o)!==c;return u&&(n=a,o=c),{width:n,height:o,$:u}}function unwrapElement(t){return isElement(t)?t:t.contextElement}function getScale(t){let r=unwrapElement(t);if(!isHTMLElement(r))return createCoords(1);let n=r.getBoundingClientRect(),{width:o,height:i,$:a}=getCssDimensions(r),c=(a?D(n.width):n.width)/o,u=(a?D(n.height):n.height)/i;return c&&Number.isFinite(c)||(c=1),u&&Number.isFinite(u)||(u=1),{x:c,y:u}}let V=createCoords(0);function getVisualOffsets(t){let r=getWindow(t);return isWebKit()&&r.visualViewport?{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}:V}function shouldAddVisualOffsets(t,r,n){return void 0===r&&(r=!1),!!n&&(!r||n===getWindow(t))&&r}function getBoundingClientRect(t,r,n,o){void 0===r&&(r=!1),void 0===n&&(n=!1);let i=t.getBoundingClientRect(),a=unwrapElement(t),c=createCoords(1);r&&(o?isElement(o)&&(c=getScale(o)):c=getScale(t));let u=shouldAddVisualOffsets(a,n,o)?getVisualOffsets(a):createCoords(0),d=(i.left+u.x)/c.x,f=(i.top+u.y)/c.y,m=i.width/c.x,g=i.height/c.y;if(a){let t=getWindow(a),r=o&&isElement(o)?getWindow(o):o,n=t.frameElement;for(;n&&o&&r!==t;){let t=getScale(n),r=n.getBoundingClientRect(),o=floating_ui_utils_dom_getComputedStyle(n),i=r.left+(n.clientLeft+parseFloat(o.paddingLeft))*t.x,a=r.top+(n.clientTop+parseFloat(o.paddingTop))*t.y;d*=t.x,f*=t.y,m*=t.x,g*=t.y,d+=i,f+=a,n=getWindow(n).frameElement}}return floating_ui_utils_rectToClientRect({width:m,height:g,x:d,y:f})}function convertOffsetParentRelativeRectToViewportRelativeRect(t){let{rect:r,offsetParent:n,strategy:o}=t,i=isHTMLElement(n),a=getDocumentElement(n);if(n===a)return r;let c={scrollLeft:0,scrollTop:0},u=createCoords(1),d=createCoords(0);if((i||!i&&"fixed"!==o)&&(("body"!==getNodeName(n)||isOverflowElement(a))&&(c=getNodeScroll(n)),isHTMLElement(n))){let t=getBoundingClientRect(n);u=getScale(n),d.x=t.x+n.clientLeft,d.y=t.y+n.clientTop}return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-c.scrollLeft*u.x+d.x,y:r.y*u.y-c.scrollTop*u.y+d.y}}function getClientRects(t){return Array.from(t.getClientRects())}function getWindowScrollBarX(t){return getBoundingClientRect(getDocumentElement(t)).left+getNodeScroll(t).scrollLeft}function getDocumentRect(t){let r=getDocumentElement(t),n=getNodeScroll(t),o=t.ownerDocument.body,i=H(r.scrollWidth,r.clientWidth,o.scrollWidth,o.clientWidth),a=H(r.scrollHeight,r.clientHeight,o.scrollHeight,o.clientHeight),c=-n.scrollLeft+getWindowScrollBarX(t),u=-n.scrollTop;return"rtl"===floating_ui_utils_dom_getComputedStyle(o).direction&&(c+=H(r.clientWidth,o.clientWidth)-i),{width:i,height:a,x:c,y:u}}function getViewportRect(t,r){let n=getWindow(t),o=getDocumentElement(t),i=n.visualViewport,a=o.clientWidth,c=o.clientHeight,u=0,d=0;if(i){a=i.width,c=i.height;let t=isWebKit();(!t||t&&"fixed"===r)&&(u=i.offsetLeft,d=i.offsetTop)}return{width:a,height:c,x:u,y:d}}function getInnerBoundingClientRect(t,r){let n=getBoundingClientRect(t,!0,"fixed"===r),o=n.top+t.clientTop,i=n.left+t.clientLeft,a=isHTMLElement(t)?getScale(t):createCoords(1),c=t.clientWidth*a.x,u=t.clientHeight*a.y,d=i*a.x,f=o*a.y;return{width:c,height:u,x:d,y:f}}function getClientRectFromClippingAncestor(t,r,n){let o;if("viewport"===r)o=getViewportRect(t,n);else if("document"===r)o=getDocumentRect(getDocumentElement(t));else if(isElement(r))o=getInnerBoundingClientRect(r,n);else{let n=getVisualOffsets(t);o={...r,x:r.x-n.x,y:r.y-n.y}}return floating_ui_utils_rectToClientRect(o)}function hasFixedPositionAncestor(t,r){let n=getParentNode(t);return!(n===r||!isElement(n)||isLastTraversableNode(n))&&("fixed"===floating_ui_utils_dom_getComputedStyle(n).position||hasFixedPositionAncestor(n,r))}function getClippingElementAncestors(t,r){let n=r.get(t);if(n)return n;let o=getOverflowAncestors(t,[],!1).filter(t=>isElement(t)&&"body"!==getNodeName(t)),i=null,a="fixed"===floating_ui_utils_dom_getComputedStyle(t).position,c=a?getParentNode(t):t;for(;isElement(c)&&!isLastTraversableNode(c);){let r=floating_ui_utils_dom_getComputedStyle(c),n=isContainingBlock(c);n||"fixed"!==r.position||(i=null);let u=a?!n&&!i:!n&&"static"===r.position&&!!i&&["absolute","fixed"].includes(i.position)||isOverflowElement(c)&&!n&&hasFixedPositionAncestor(t,c);u?o=o.filter(t=>t!==c):i=r,c=getParentNode(c)}return r.set(t,o),o}function getClippingRect(t){let{element:r,boundary:n,rootBoundary:o,strategy:i}=t,a="clippingAncestors"===n?getClippingElementAncestors(r,this._c):[].concat(n),c=[...a,o],u=c[0],d=c.reduce((t,n)=>{let o=getClientRectFromClippingAncestor(r,n,i);return t.top=H(o.top,t.top),t.right=N(o.right,t.right),t.bottom=N(o.bottom,t.bottom),t.left=H(o.left,t.left),t},getClientRectFromClippingAncestor(r,u,i));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function getDimensions(t){let{width:r,height:n}=getCssDimensions(t);return{width:r,height:n}}function getRectRelativeToOffsetParent(t,r,n){let o=isHTMLElement(r),i=getDocumentElement(r),a="fixed"===n,c=getBoundingClientRect(t,!0,a,r),u={scrollLeft:0,scrollTop:0},d=createCoords(0);if(o||!o&&!a){if(("body"!==getNodeName(r)||isOverflowElement(i))&&(u=getNodeScroll(r)),o){let t=getBoundingClientRect(r,!0,a,r);d.x=t.x+r.clientLeft,d.y=t.y+r.clientTop}else i&&(d.x=getWindowScrollBarX(i))}return{x:c.left+u.scrollLeft-d.x,y:c.top+u.scrollTop-d.y,width:c.width,height:c.height}}function getTrueOffsetParent(t,r){return isHTMLElement(t)&&"fixed"!==floating_ui_utils_dom_getComputedStyle(t).position?r?r(t):t.offsetParent:null}function getOffsetParent(t,r){let n=getWindow(t);if(!isHTMLElement(t))return n;let o=getTrueOffsetParent(t,r);for(;o&&isTableElement(o)&&"static"===floating_ui_utils_dom_getComputedStyle(o).position;)o=getTrueOffsetParent(o,r);return o&&("html"===getNodeName(o)||"body"===getNodeName(o)&&"static"===floating_ui_utils_dom_getComputedStyle(o).position&&!isContainingBlock(o))?n:o||getContainingBlock(t)||n}let getElementRects=async function(t){let{reference:r,floating:n,strategy:o}=t,i=this.getOffsetParent||getOffsetParent,a=this.getDimensions;return{reference:getRectRelativeToOffsetParent(r,await i(n),o),floating:{x:0,y:0,...await a(n)}}};function isRTL(t){return"rtl"===floating_ui_utils_dom_getComputedStyle(t).direction}let q={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement:getDocumentElement,getClippingRect,getOffsetParent,getElementRects,getClientRects,getDimensions,getScale,isElement:isElement,isRTL};function observeMove(t,r){let n,o=null,i=getDocumentElement(t);function cleanup(){clearTimeout(n),o&&o.disconnect(),o=null}function refresh(a,c){void 0===a&&(a=!1),void 0===c&&(c=1),cleanup();let{left:u,top:d,width:f,height:m}=t.getBoundingClientRect();if(a||r(),!f||!m)return;let g=F(d),b=F(i.clientWidth-(u+f)),y=F(i.clientHeight-(d+m)),v=F(u),w={rootMargin:-g+"px "+-b+"px "+-y+"px "+-v+"px",threshold:H(0,N(1,c))||1},E=!0;function handleObserve(t){let r=t[0].intersectionRatio;if(r!==c){if(!E)return refresh();r?refresh(!1,r):n=setTimeout(()=>{refresh(!1,1e-7)},100)}E=!1}try{o=new IntersectionObserver(handleObserve,{...w,root:i.ownerDocument})}catch(t){o=new IntersectionObserver(handleObserve,w)}o.observe(t)}return refresh(!0),cleanup}function autoUpdate(t,r,n,o){let i;void 0===o&&(o={});let{ancestorScroll:a=!0,ancestorResize:c=!0,elementResize:u="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:f=!1}=o,m=unwrapElement(t),g=a||c?[...m?getOverflowAncestors(m):[],...getOverflowAncestors(r)]:[];g.forEach(t=>{a&&t.addEventListener("scroll",n,{passive:!0}),c&&t.addEventListener("resize",n)});let b=m&&d?observeMove(m,n):null,y=-1,v=null;u&&(v=new ResizeObserver(t=>{let[o]=t;o&&o.target===m&&v&&(v.unobserve(r),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{v&&v.observe(r)})),n()}),m&&!f&&v.observe(m),v.observe(r));let w=f?getBoundingClientRect(t):null;function frameLoop(){let r=getBoundingClientRect(t);w&&(r.x!==w.x||r.y!==w.y||r.width!==w.width||r.height!==w.height)&&n(),w=r,i=requestAnimationFrame(frameLoop)}return f&&frameLoop(),n(),()=>{g.forEach(t=>{a&&t.removeEventListener("scroll",n),c&&t.removeEventListener("resize",n)}),b&&b(),v&&v.disconnect(),v=null,f&&cancelAnimationFrame(i)}}let floating_ui_dom_arrow=t=>({name:"arrow",options:t,async fn(r){let{x:n,y:o,placement:i,rects:a,platform:c,elements:u,middlewareData:d}=r,{element:f,padding:m=0}=floating_ui_utils_evaluate(t,r)||{};if(null==f)return{};let g=floating_ui_utils_getPaddingObject(m),b={x:n,y:o},y=getOppositeAxis(floating_ui_utils_getSideAxis(i)),v=getAxisLength(y),w=await c.getDimensions(f),E="y"===y,_=E?"clientHeight":"clientWidth",P=a.reference[v]+a.reference[y]-b[y]-a.floating[v],S=b[y]-a.reference[y],A=await (null==c.getOffsetParent?void 0:c.getOffsetParent(f)),k=A?A[_]:0;k&&await (null==c.isElement?void 0:c.isElement(A))||(k=u.floating[_]||a.floating[v]);let C=k/2-w[v]/2-1,T=N(g[E?"top":"left"],C),D=N(g[E?"bottom":"right"],C),F=k-w[v]-D,U=k/2-w[v]/2+(P/2-S/2),G=H(T,N(U,F)),V=!d.arrow&&null!=floating_ui_utils_getAlignment(i)&&U!=G&&a.reference[v]/2-(U{let o=new Map,i={platform:q,...n},a={...i.platform,_c:o};return computePosition(t,r,{...i,platform:a})},floating_ui_react_dom_arrow=t=>{function isRef(t){return({}).hasOwnProperty.call(t,"current")}return{name:"arrow",options:t,fn(r){let{element:n,padding:o}="function"==typeof t?t(r):t;return n&&isRef(n)?null!=n.current?floating_ui_dom_arrow({element:n.current,padding:o}).fn(r):{}:n?floating_ui_dom_arrow({element:n,padding:o}).fn(r):{}}}};var W="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;function deepEqual(t,r){let n,o,i;if(t===r)return!0;if(typeof t!=typeof r)return!1;if("function"==typeof t&&t.toString()===r.toString())return!0;if(t&&r&&"object"==typeof t){if(Array.isArray(t)){if((n=t.length)!==r.length)return!1;for(o=n;0!=o--;)if(!deepEqual(t[o],r[o]))return!1;return!0}if((n=(i=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!({}).hasOwnProperty.call(r,i[o]))return!1;for(o=n;0!=o--;){let n=i[o];if(("_owner"!==n||!t.$$typeof)&&!deepEqual(t[n],r[n]))return!1}return!0}return t!=t&&r!=r}function getDPR(t){if("undefined"==typeof window)return 1;let r=t.ownerDocument.defaultView||window;return r.devicePixelRatio||1}function roundByDPR(t,r){let n=getDPR(t);return Math.round(r*n)/n}function useLatestRef(t){let r=i.useRef(t);return W(()=>{r.current=t}),r}function useFloating(t){void 0===t&&(t={});let{placement:r="bottom",strategy:n="absolute",middleware:o=[],platform:a,elements:{reference:u,floating:d}={},transform:f=!0,whileElementsMounted:m,open:g}=t,[b,y]=i.useState({x:0,y:0,strategy:n,placement:r,middlewareData:{},isPositioned:!1}),[v,w]=i.useState(o);deepEqual(v,o)||w(o);let[E,_]=i.useState(null),[P,S]=i.useState(null),A=i.useCallback(t=>{t!==N.current&&(N.current=t,_(t))},[]),k=i.useCallback(t=>{t!==H.current&&(H.current=t,S(t))},[]),C=u||E,T=d||P,N=i.useRef(null),H=i.useRef(null),D=i.useRef(b),F=null!=m,U=useLatestRef(m),G=useLatestRef(a),V=i.useCallback(()=>{if(!N.current||!H.current)return;let t={placement:r,strategy:n,middleware:v};G.current&&(t.platform=G.current),floating_ui_dom_computePosition(N.current,H.current,t).then(t=>{let r={...t,isPositioned:!0};q.current&&!deepEqual(D.current,r)&&(D.current=r,c.flushSync(()=>{y(r)}))})},[v,r,n,G]);W(()=>{!1===g&&D.current.isPositioned&&(D.current.isPositioned=!1,y(t=>({...t,isPositioned:!1})))},[g]);let q=i.useRef(!1);W(()=>(q.current=!0,()=>{q.current=!1}),[]),W(()=>{if(C&&(N.current=C),T&&(H.current=T),C&&T){if(U.current)return U.current(C,T,V);V()}},[C,T,V,U,F]);let K=i.useMemo(()=>({reference:N,floating:H,setReference:A,setFloating:k}),[A,k]),Z=i.useMemo(()=>({reference:C,floating:T}),[C,T]),Y=i.useMemo(()=>{let t={position:n,left:0,top:0};if(!Z.floating)return t;let r=roundByDPR(Z.floating,b.x),o=roundByDPR(Z.floating,b.y);return f?{...t,transform:"translate("+r+"px, "+o+"px)",...getDPR(Z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:r,top:o}},[n,f,Z.floating,b.x,b.y]);return i.useMemo(()=>({...b,update:V,refs:K,elements:Z,floatingStyles:Y}),[b,V,K,Z,Y])}let K=(0,i.forwardRef)((t,r)=>{let{children:n,width:o=10,height:a=5,...c}=t;return(0,i.createElement)(f.svg,_extends({},c,{ref:r,width:o,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),t.asChild?n:(0,i.createElement)("polygon",{points:"0,0 30,0 15,10"}))});function $db6c3485150b8e66$export$1ab7ae714698c4b8(t){let[r,n]=(0,i.useState)(void 0);return A(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});let r=new ResizeObserver(r=>{let o,i;if(!Array.isArray(r)||!r.length)return;let a=r[0];if("borderBoxSize"in a){let t=a.borderBoxSize,r=Array.isArray(t)?t[0]:t;o=r.inlineSize,i=r.blockSize}else o=t.offsetWidth,i=t.offsetHeight;n({width:o,height:i})});return r.observe(t,{box:"border-box"}),()=>r.unobserve(t)}n(void 0)},[t]),r}let Z="Popper",[Y,J]=$c512c27ab02ef895$export$50c7b4e9d9f19c1(Z),[Q,ee]=Y(Z),et=(0,i.forwardRef)((t,r)=>{let{__scopePopper:n,virtualRef:o,...a}=t,c=ee("PopperAnchor",n),u=(0,i.useRef)(null),d=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(r,u);return(0,i.useEffect)(()=>{c.onAnchorChange((null==o?void 0:o.current)||u.current)}),o?null:(0,i.createElement)(f.div,_extends({},a,{ref:d}))}),er="PopperContent",[en,eo]=Y(er),ei=(0,i.forwardRef)((t,r)=>{var n,o,a,c,u,d,m,g,b,y,v,w,E,_;let{__scopePopper:P,side:S="bottom",sideOffset:k=0,align:C="center",alignOffset:T=0,arrowPadding:D=0,avoidCollisions:F=!0,collisionBoundary:U=[],collisionPadding:G=0,sticky:V="partial",hideWhenDetached:q=!1,updatePositionStrategy:W="optimized",onPlaced:K,...Z}=t,Y=ee(er,P),[J,Q]=(0,i.useState)(null),et=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(r,t=>Q(t)),[eo,ei]=(0,i.useState)(null),ea=$db6c3485150b8e66$export$1ab7ae714698c4b8(eo),es=null!==(n=null==ea?void 0:ea.width)&&void 0!==n?n:0,el=null!==(o=null==ea?void 0:ea.height)&&void 0!==o?o:0,ec="number"==typeof G?G:{top:0,right:0,bottom:0,left:0,...G},eu=Array.isArray(U)?U:[U],ed=eu.length>0,ef={padding:ec,boundary:eu.filter($cf1ac5d9fe0e8206$var$isNotNull),altBoundary:ed},{refs:eh,floatingStyles:ep,placement:em,isPositioned:eg,middlewareData:eb}=useFloating({strategy:"fixed",placement:S+("center"!==C?"-"+C:""),whileElementsMounted:(...t)=>{let r=autoUpdate(...t,{animationFrame:"always"===W});return r},elements:{reference:Y.anchor},middleware:[{name:"offset",options:b={mainAxis:k+el,alignmentAxis:T},async fn(t){var r,n;let{x:o,y:i,placement:a,middlewareData:c}=t,u=await convertValueToCoords(t,b);return a===(null==(r=c.offset)?void 0:r.placement)&&null!=(n=c.arrow)&&n.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:a}}}},F&&{name:"shift",options:v={mainAxis:!0,crossAxis:!1,limiter:"partial"===V?(void 0===y&&(y={}),{options:y,fn(t){let{x:r,y:n,placement:o,rects:i,middlewareData:a}=t,{offset:c=0,mainAxis:u=!0,crossAxis:d=!0}=floating_ui_utils_evaluate(y,t),f={x:r,y:n},m=floating_ui_utils_getSideAxis(o),g=getOppositeAxis(m),b=f[g],v=f[m],w=floating_ui_utils_evaluate(c,t),E="number"==typeof w?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(u){let t="y"===g?"height":"width",r=i.reference[g]-i.floating[t]+E.mainAxis,n=i.reference[g]+i.reference[t]-E.mainAxis;bn&&(b=n)}if(d){var _,P;let t="y"===g?"width":"height",r=["top","left"].includes(floating_ui_utils_getSide(o)),n=i.reference[m]-i.floating[t]+(r&&(null==(_=a.offset)?void 0:_[m])||0)+(r?0:E.crossAxis),c=i.reference[m]+i.reference[t]+(r?0:(null==(P=a.offset)?void 0:P[m])||0)-(r?E.crossAxis:0);vc&&(v=c)}return{[g]:b,[m]:v}}}):void 0,...ef},async fn(t){let{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:c={fn:t=>{let{x:r,y:n}=t;return{x:r,y:n}}},...u}=floating_ui_utils_evaluate(v,t),d={x:r,y:n},f=await detectOverflow(t,u),m=floating_ui_utils_getSideAxis(floating_ui_utils_getSide(o)),g=getOppositeAxis(m),b=d[g],y=d[m];if(i){let t=b+f["y"===g?"top":"left"],r=b-f["y"===g?"bottom":"right"];b=H(t,N(b,r))}if(a){let t="y"===m?"top":"left",r="y"===m?"bottom":"right",n=y+f[t],o=y-f[r];y=H(n,N(y,o))}let w=c.fn({...t,[g]:b,[m]:y});return{...w,data:{x:w.x-r,y:w.y-n}}}},F&&{name:"flip",options:w={...ef},async fn(t){var r,n,o,i,a;let{placement:c,middlewareData:u,rects:d,initialPlacement:f,platform:m,elements:g}=t,{mainAxis:b=!0,crossAxis:y=!0,fallbackPlacements:v,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:_="none",flipAlignment:P=!0,...S}=floating_ui_utils_evaluate(w,t);if(null!=(r=u.arrow)&&r.alignmentOffset)return{};let A=floating_ui_utils_getSide(c),k=floating_ui_utils_getSide(f)===f,C=await (null==m.isRTL?void 0:m.isRTL(g.floating)),T=v||(k||!P?[getOppositePlacement(f)]:getExpandedPlacements(f));v||"none"===_||T.push(...getOppositeAxisPlacements(f,P,_,C));let N=[f,...T],H=await detectOverflow(t,S),D=[],F=(null==(n=u.flip)?void 0:n.overflows)||[];if(b&&D.push(H[A]),y){let t=floating_ui_utils_getAlignmentSides(c,d,C);D.push(H[t[0]],H[t[1]])}if(F=[...F,{placement:c,overflows:D}],!D.every(t=>t<=0)){let t=((null==(o=u.flip)?void 0:o.index)||0)+1,r=N[t];if(r)return{data:{index:t,overflows:F},reset:{placement:r}};let n=null==(i=F.filter(t=>t.overflows[0]<=0).sort((t,r)=>t.overflows[1]-r.overflows[1])[0])?void 0:i.placement;if(!n)switch(E){case"bestFit":{let t=null==(a=F.map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,r)=>t+r,0)]).sort((t,r)=>t[1]-r[1])[0])?void 0:a[0];t&&(n=t);break}case"initialPlacement":n=f}if(c!==n)return{reset:{placement:n}}}return{}}},{name:"size",options:E={...ef,apply:({elements:t,rects:r,availableWidth:n,availableHeight:o})=>{let{width:i,height:a}=r.reference,c=t.floating.style;c.setProperty("--radix-popper-available-width",`${n}px`),c.setProperty("--radix-popper-available-height",`${o}px`),c.setProperty("--radix-popper-anchor-width",`${i}px`),c.setProperty("--radix-popper-anchor-height",`${a}px`)}},async fn(t){let r,n;let{placement:o,rects:i,platform:a,elements:c}=t,{apply:u=()=>{},...d}=floating_ui_utils_evaluate(E,t),f=await detectOverflow(t,d),m=floating_ui_utils_getSide(o),g=floating_ui_utils_getAlignment(o),b="y"===floating_ui_utils_getSideAxis(o),{width:y,height:v}=i.floating;"top"===m||"bottom"===m?(r=m,n=g===(await (null==a.isRTL?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(n=m,r="end"===g?"top":"bottom");let w=v-f[r],_=y-f[n],P=!t.middlewareData.shift,S=w,A=_;if(b){let t=y-f.left-f.right;A=g||P?N(_,t):t}else{let t=v-f.top-f.bottom;S=g||P?N(w,t):t}if(P&&!g){let t=H(f.left,0),r=H(f.right,0),n=H(f.top,0),o=H(f.bottom,0);b?A=y-2*(0!==t||0!==r?t+r:H(f.left,f.right)):S=v-2*(0!==n||0!==o?n+o:H(f.top,f.bottom))}await u({...t,availableWidth:A,availableHeight:S});let k=await a.getDimensions(c.floating);return y!==k.width||v!==k.height?{reset:{rects:!0}}:{}}},eo&&floating_ui_react_dom_arrow({element:eo,padding:D}),$cf1ac5d9fe0e8206$var$transformOrigin({arrowWidth:es,arrowHeight:el}),q&&{name:"hide",options:_={strategy:"referenceHidden",...ef},async fn(t){let{rects:r}=t,{strategy:n="referenceHidden",...o}=floating_ui_utils_evaluate(_,t);switch(n){case"referenceHidden":{let n=await detectOverflow(t,{...o,elementContext:"reference"}),i=getSideOffsets(n,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:isAnySideFullyClipped(i)}}}case"escaped":{let n=await detectOverflow(t,{...o,altBoundary:!0}),i=getSideOffsets(n,r.floating);return{data:{escapedOffsets:i,escaped:isAnySideFullyClipped(i)}}}default:return{}}}}]}),[ey,ev]=$cf1ac5d9fe0e8206$var$getSideAndAlignFromPlacement(em),ew=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(K);A(()=>{eg&&(null==ew||ew())},[eg,ew]);let ex=null===(a=eb.arrow)||void 0===a?void 0:a.x,eE=null===(c=eb.arrow)||void 0===c?void 0:c.y,e_=(null===(u=eb.arrow)||void 0===u?void 0:u.centerOffset)!==0,[e$,eP]=(0,i.useState)();return A(()=>{J&&eP(window.getComputedStyle(J).zIndex)},[J]),(0,i.createElement)("div",{ref:eh.setFloating,"data-radix-popper-content-wrapper":"",style:{...ep,transform:eg?ep.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:e$,"--radix-popper-transform-origin":[null===(d=eb.transformOrigin)||void 0===d?void 0:d.x,null===(m=eb.transformOrigin)||void 0===m?void 0:m.y].join(" ")},dir:t.dir},(0,i.createElement)(en,{scope:P,placedSide:ey,onArrowChange:ei,arrowX:ex,arrowY:eE,shouldHideArrow:e_},(0,i.createElement)(f.div,_extends({"data-side":ey,"data-align":ev},Z,{ref:et,style:{...Z.style,animation:eg?void 0:"none",opacity:null!==(g=eb.hide)&&void 0!==g&&g.referenceHidden?0:void 0}}))))}),ea={top:"bottom",right:"left",bottom:"top",left:"right"},es=(0,i.forwardRef)(function(t,r){let{__scopePopper:n,...o}=t,a=eo("PopperArrow",n),c=ea[a.placedSide];return(0,i.createElement)("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0}},(0,i.createElement)(K,_extends({},o,{ref:r,style:{...o.style,display:"block"}})))});function $cf1ac5d9fe0e8206$var$isNotNull(t){return null!==t}let $cf1ac5d9fe0e8206$var$transformOrigin=t=>({name:"transformOrigin",options:t,fn(r){var n,o,i,a,c;let{placement:u,rects:d,middlewareData:f}=r,m=(null===(n=f.arrow)||void 0===n?void 0:n.centerOffset)!==0,g=m?0:t.arrowWidth,b=m?0:t.arrowHeight,[y,v]=$cf1ac5d9fe0e8206$var$getSideAndAlignFromPlacement(u),w={start:"0%",center:"50%",end:"100%"}[v],E=(null!==(o=null===(i=f.arrow)||void 0===i?void 0:i.x)&&void 0!==o?o:0)+g/2,_=(null!==(a=null===(c=f.arrow)||void 0===c?void 0:c.y)&&void 0!==a?a:0)+b/2,P="",S="";return"bottom"===y?(P=m?w:`${E}px`,S=`${-b}px`):"top"===y?(P=m?w:`${E}px`,S=`${d.floating.height+b}px`):"right"===y?(P=`${-b}px`,S=m?w:`${_}px`):"left"===y&&(P=`${d.floating.width+b}px`,S=m?w:`${_}px`),{data:{x:P,y:S}}}});function $cf1ac5d9fe0e8206$var$getSideAndAlignFromPlacement(t){let[r,n="center"]=t.split("-");return[r,n]}let $cf1ac5d9fe0e8206$export$be92b6f5f03c0fe9=t=>{let{__scopePopper:r,children:n}=t,[o,a]=(0,i.useState)(null);return(0,i.createElement)(Q,{scope:r,anchor:o,onAnchorChange:a},n)},el=(0,i.forwardRef)((t,r)=>{var n;let{container:o=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...a}=t;return o?c.createPortal((0,i.createElement)(f.div,_extends({},a,{ref:r})),o):null});function $fe963b355347cc68$export$3e6543de14f8614f(t,r){return(0,i.useReducer)((t,n)=>{let o=r[t][n];return null!=o?o:t},t)}let $921a889cee6df7e8$export$99c2b779aa4e8b8b=t=>{let{present:r,children:n}=t,o=$921a889cee6df7e8$var$usePresence(r),a="function"==typeof n?n({present:o.isPresent}):i.Children.only(n),c=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(o.ref,a.ref),u="function"==typeof n;return u||o.isPresent?(0,i.cloneElement)(a,{ref:c}):null};function $921a889cee6df7e8$var$usePresence(t){let[r,n]=(0,i.useState)(),o=(0,i.useRef)({}),a=(0,i.useRef)(t),u=(0,i.useRef)("none"),d=t?"mounted":"unmounted",[f,m]=$fe963b355347cc68$export$3e6543de14f8614f(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,i.useEffect)(()=>{let t=$921a889cee6df7e8$var$getAnimationName(o.current);u.current="mounted"===f?t:"none"},[f]),A(()=>{let r=o.current,n=a.current,i=n!==t;if(i){let o=u.current,i=$921a889cee6df7e8$var$getAnimationName(r);t?m("MOUNT"):"none"===i||(null==r?void 0:r.display)==="none"?m("UNMOUNT"):n&&o!==i?m("ANIMATION_OUT"):m("UNMOUNT"),a.current=t}},[t,m]),A(()=>{if(r){let handleAnimationEnd=t=>{let n=$921a889cee6df7e8$var$getAnimationName(o.current),i=n.includes(t.animationName);t.target===r&&i&&(0,c.flushSync)(()=>m("ANIMATION_END"))},handleAnimationStart=t=>{t.target===r&&(u.current=$921a889cee6df7e8$var$getAnimationName(o.current))};return r.addEventListener("animationstart",handleAnimationStart),r.addEventListener("animationcancel",handleAnimationEnd),r.addEventListener("animationend",handleAnimationEnd),()=>{r.removeEventListener("animationstart",handleAnimationStart),r.removeEventListener("animationcancel",handleAnimationEnd),r.removeEventListener("animationend",handleAnimationEnd)}}m("ANIMATION_END")},[r,m]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:(0,i.useCallback)(t=>{t&&(o.current=getComputedStyle(t)),n(t)},[])}}function $921a889cee6df7e8$var$getAnimationName(t){return(null==t?void 0:t.animationName)||"none"}$921a889cee6df7e8$export$99c2b779aa4e8b8b.displayName="Presence";let ec="rovingFocusGroup.onEntryFocus",eu={bubbles:!1,cancelable:!0},ed="RovingFocusGroup",[ef,eh,ep]=$e02a7d9cb1dc128c$export$c74125a8e3af6bb2(ed),[em,eg]=$c512c27ab02ef895$export$50c7b4e9d9f19c1(ed,[ep]),[eb,ey]=em(ed),ev=(0,i.forwardRef)((t,r)=>(0,i.createElement)(ef.Provider,{scope:t.__scopeRovingFocusGroup},(0,i.createElement)(ef.Slot,{scope:t.__scopeRovingFocusGroup},(0,i.createElement)(ew,_extends({},t,{ref:r}))))),ew=(0,i.forwardRef)((t,r)=>{let{__scopeRovingFocusGroup:n,orientation:o,loop:a=!1,dir:c,currentTabStopId:u,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:m,onEntryFocus:g,...b}=t,y=(0,i.useRef)(null),v=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(r,y),w=$f631663db3294ace$export$b39126d51d94e6f3(c),[E=null,_]=$71cd76cc60e0454e$export$6f32135080cb4c3({prop:u,defaultProp:d,onChange:m}),[P,S]=(0,i.useState)(!1),A=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(g),k=eh(n),C=(0,i.useRef)(!1),[T,N]=(0,i.useState)(0);return(0,i.useEffect)(()=>{let t=y.current;if(t)return t.addEventListener(ec,A),()=>t.removeEventListener(ec,A)},[A]),(0,i.createElement)(eb,{scope:n,orientation:o,dir:w,loop:a,currentTabStopId:E,onItemFocus:(0,i.useCallback)(t=>_(t),[_]),onItemShiftTab:(0,i.useCallback)(()=>S(!0),[]),onFocusableItemAdd:(0,i.useCallback)(()=>N(t=>t+1),[]),onFocusableItemRemove:(0,i.useCallback)(()=>N(t=>t-1),[])},(0,i.createElement)(f.div,_extends({tabIndex:P||0===T?-1:0,"data-orientation":o},b,{ref:v,style:{outline:"none",...t.style},onMouseDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onMouseDown,()=>{C.current=!0}),onFocus:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onFocus,t=>{let r=!C.current;if(t.target===t.currentTarget&&r&&!P){let r=new CustomEvent(ec,eu);if(t.currentTarget.dispatchEvent(r),!r.defaultPrevented){let t=k().filter(t=>t.focusable),r=t.find(t=>t.active),n=t.find(t=>t.id===E),o=[r,n,...t].filter(Boolean),i=o.map(t=>t.ref.current);$d7bdfb9eb0fdf311$var$focusFirst(i)}}C.current=!1}),onBlur:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onBlur,()=>S(!1))})))}),ex=(0,i.forwardRef)((t,r)=>{let{__scopeRovingFocusGroup:n,focusable:o=!0,active:a=!1,tabStopId:c,...u}=t,d=$1746a345f3d73bb7$export$f680877a34711e37(),m=c||d,g=ey("RovingFocusGroupItem",n),b=g.currentTabStopId===m,y=eh(n),{onFocusableItemAdd:v,onFocusableItemRemove:w}=g;return(0,i.useEffect)(()=>{if(o)return v(),()=>w()},[o,v,w]),(0,i.createElement)(ef.ItemSlot,{scope:n,id:m,focusable:o,active:a},(0,i.createElement)(f.span,_extends({tabIndex:b?0:-1,"data-orientation":g.orientation},u,{ref:r,onMouseDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onMouseDown,t=>{o?g.onItemFocus(m):t.preventDefault()}),onFocus:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onFocus,()=>g.onItemFocus(m)),onKeyDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onKeyDown,t=>{if("Tab"===t.key&&t.shiftKey){g.onItemShiftTab();return}if(t.target!==t.currentTarget)return;let r=$d7bdfb9eb0fdf311$var$getFocusIntent(t,g.orientation,g.dir);if(void 0!==r){t.preventDefault();let n=y().filter(t=>t.focusable),o=n.map(t=>t.ref.current);if("last"===r)o.reverse();else if("prev"===r||"next"===r){"prev"===r&&o.reverse();let n=o.indexOf(t.currentTarget);o=g.loop?$d7bdfb9eb0fdf311$var$wrapArray(o,n+1):o.slice(n+1)}setTimeout(()=>$d7bdfb9eb0fdf311$var$focusFirst(o))}})})))}),eE={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function $d7bdfb9eb0fdf311$var$getDirectionAwareKey(t,r){return"rtl"!==r?t:"ArrowLeft"===t?"ArrowRight":"ArrowRight"===t?"ArrowLeft":t}function $d7bdfb9eb0fdf311$var$getFocusIntent(t,r,n){let o=$d7bdfb9eb0fdf311$var$getDirectionAwareKey(t.key,n);if(!("vertical"===r&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===r&&["ArrowUp","ArrowDown"].includes(o)))return eE[o]}function $d7bdfb9eb0fdf311$var$focusFirst(t){let r=document.activeElement;for(let n of t)if(n===r||(n.focus(),document.activeElement!==r))return}function $d7bdfb9eb0fdf311$var$wrapArray(t,r){return t.map((n,o)=>t[(r+o)%t.length])}var e_=new WeakMap,e$=new WeakMap,eP={},eS=0,unwrapHost=function(t){return t&&(t.host||unwrapHost(t.parentNode))},applyAttributeToOthers=function(t,r,n,o){var i=(Array.isArray(t)?t:[t]).map(function(t){if(r.contains(t))return t;var n=unwrapHost(t);return n&&r.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",r,". Doing nothing"),null)}).filter(function(t){return!!t});eP[n]||(eP[n]=new WeakMap);var a=eP[n],c=[],u=new Set,d=new Set(i),keep=function(t){!t||u.has(t)||(u.add(t),keep(t.parentNode))};i.forEach(keep);var deep=function(t){!t||d.has(t)||Array.prototype.forEach.call(t.children,function(t){if(u.has(t))deep(t);else{var r=t.getAttribute(o),i=null!==r&&"false"!==r,d=(e_.get(t)||0)+1,f=(a.get(t)||0)+1;e_.set(t,d),a.set(t,f),c.push(t),1===d&&i&&e$.set(t,!0),1===f&&t.setAttribute(n,"true"),i||t.setAttribute(o,"true")}})};return deep(r),u.clear(),eS++,function(){c.forEach(function(t){var r=e_.get(t)-1,i=a.get(t)-1;e_.set(t,r),a.set(t,i),r||(e$.has(t)||t.removeAttribute(o),e$.delete(t)),i||t.removeAttribute(n)}),--eS||(e_=new WeakMap,e_=new WeakMap,e$=new WeakMap,eP={})}},hideOthers=function(t,r,n){void 0===n&&(n="data-aria-hidden");var o=Array.from(Array.isArray(t)?t:[t]),i=r||("undefined"==typeof document?null:(Array.isArray(t)?t[0]:t).ownerDocument.body);return i?(o.push.apply(o,Array.from(i.querySelectorAll("[aria-live]"))),applyAttributeToOthers(o,i,n,"aria-hidden")):function(){return null}},eA=n(90701),ek=n(96948),eI=n(11901),eC=(0,n(22771)._)(),nothing=function(){},eB=i.forwardRef(function(t,r){var n=i.useRef(null),o=i.useState({onScrollCapture:nothing,onWheelCapture:nothing,onTouchMoveCapture:nothing}),a=o[0],c=o[1],u=t.forwardProps,d=t.children,f=t.className,m=t.removeScrollBar,g=t.enabled,b=t.shards,y=t.sideCar,v=t.noIsolation,w=t.inert,E=t.allowPinchZoom,_=t.as,P=void 0===_?"div":_,S=(0,eA._T)(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),A=(0,eI.q)([n,r]),k=(0,eA.pi)((0,eA.pi)({},S),a);return i.createElement(i.Fragment,null,g&&i.createElement(y,{sideCar:eC,removeScrollBar:m,shards:b,noIsolation:v,inert:w,setCallbacks:c,allowPinchZoom:!!E,lockRef:n}),u?i.cloneElement(i.Children.only(d),(0,eA.pi)((0,eA.pi)({},k),{ref:A})):i.createElement(P,(0,eA.pi)({},k,{className:f,ref:A}),d))});eB.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},eB.classNames={fullWidth:ek.zi,zeroRight:ek.pF};var eT=n(79201),eO=n(4126),eR=n(55758),eL=!1;if("undefined"!=typeof window)try{var eN=Object.defineProperty({},"passive",{get:function(){return eL=!0,!0}});window.addEventListener("test",eN,eN),window.removeEventListener("test",eN,eN)}catch(t){eL=!1}var eH=!!eL&&{passive:!1},elementCanBeScrolled=function(t,r){var n=window.getComputedStyle(t);return"hidden"!==n[r]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==t.tagName&&"visible"===n[r])},locationCouldBeScrolled=function(t,r){var n=r;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),elementCouldBeScrolled(t,n)){var o=getScrollVariables(t,n);if(o[1]>o[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},elementCouldBeScrolled=function(t,r){return"v"===t?elementCanBeScrolled(r,"overflowY"):elementCanBeScrolled(r,"overflowX")},getScrollVariables=function(t,r){return"v"===t?[r.scrollTop,r.scrollHeight,r.clientHeight]:[r.scrollLeft,r.scrollWidth,r.clientWidth]},handleScroll=function(t,r,n,o,i){var a,c=(a=window.getComputedStyle(r).direction,"h"===t&&"rtl"===a?-1:1),u=c*o,d=n.target,f=r.contains(d),m=!1,g=u>0,b=0,y=0;do{var v=getScrollVariables(t,d),w=v[0],E=v[1]-v[2]-c*w;(w||E)&&elementCouldBeScrolled(t,d)&&(b+=E,y+=w),d=d.parentNode}while(!f&&d!==document.body||f&&(r.contains(d)||r===d));return g&&(i&&0===b||!i&&u>b)?m=!0:!g&&(i&&0===y||!i&&-u>y)&&(m=!0),m},getTouchXY=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},getDeltaXY=function(t){return[t.deltaX,t.deltaY]},extractRef=function(t){return t&&"current"in t?t.current:t},eD=0,eF=[];function RemoveScrollSideCar(t){var r=i.useRef([]),n=i.useRef([0,0]),o=i.useRef(),a=i.useState(eD++)[0],c=i.useState(function(){return(0,eR.Ws)()})[0],u=i.useRef(t);i.useEffect(function(){u.current=t},[t]),i.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(a));var r=(0,eA.ev)([t.lockRef.current],(t.shards||[]).map(extractRef),!0).filter(Boolean);return r.forEach(function(t){return t.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),r.forEach(function(t){return t.classList.remove("allow-interactivity-".concat(a))})}}},[t.inert,t.lockRef.current,t.shards]);var d=i.useCallback(function(t,r){if("touches"in t&&2===t.touches.length)return!u.current.allowPinchZoom;var i,a=getTouchXY(t),c=n.current,d="deltaX"in t?t.deltaX:c[0]-a[0],f="deltaY"in t?t.deltaY:c[1]-a[1],m=t.target,g=Math.abs(d)>Math.abs(f)?"h":"v";if("touches"in t&&"h"===g&&"range"===m.type)return!1;var b=locationCouldBeScrolled(g,m);if(!b)return!0;if(b?i=g:(i="v"===g?"h":"v",b=locationCouldBeScrolled(g,m)),!b)return!1;if(!o.current&&"changedTouches"in t&&(d||f)&&(o.current=i),!i)return!0;var y=o.current||i;return handleScroll(y,r,t,"h"===y?d:f,!0)},[]),f=i.useCallback(function(t){if(eF.length&&eF[eF.length-1]===c){var n="deltaY"in t?getDeltaXY(t):getTouchXY(t),o=r.current.filter(function(r){var o;return r.name===t.type&&r.target===t.target&&(o=r.delta)[0]===n[0]&&o[1]===n[1]})[0];if(o&&o.should){t.cancelable&&t.preventDefault();return}if(!o){var i=(u.current.shards||[]).map(extractRef).filter(Boolean).filter(function(r){return r.contains(t.target)});(i.length>0?d(t,i[0]):!u.current.noIsolation)&&t.cancelable&&t.preventDefault()}}},[]),m=i.useCallback(function(t,n,o,i){var a={name:t,delta:n,target:o,should:i};r.current.push(a),setTimeout(function(){r.current=r.current.filter(function(t){return t!==a})},1)},[]),g=i.useCallback(function(t){n.current=getTouchXY(t),o.current=void 0},[]),b=i.useCallback(function(r){m(r.type,getDeltaXY(r),r.target,d(r,t.lockRef.current))},[]),y=i.useCallback(function(r){m(r.type,getTouchXY(r),r.target,d(r,t.lockRef.current))},[]);i.useEffect(function(){return eF.push(c),t.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:y}),document.addEventListener("wheel",f,eH),document.addEventListener("touchmove",f,eH),document.addEventListener("touchstart",g,eH),function(){eF=eF.filter(function(t){return t!==c}),document.removeEventListener("wheel",f,eH),document.removeEventListener("touchmove",f,eH),document.removeEventListener("touchstart",g,eH)}},[]);var v=t.removeScrollBar,w=t.inert;return i.createElement(i.Fragment,null,w?i.createElement(c,{styles:"\n .block-interactivity-".concat(a," {pointer-events: none;}\n .allow-interactivity-").concat(a," {pointer-events: all;}\n")}):null,v?i.createElement(eO.jp,{gapMode:"margin"}):null)}var eM=(0,eT.L)(eC,RemoveScrollSideCar),eU=i.forwardRef(function(t,r){return i.createElement(eB,(0,eA.pi)({},t,{ref:r,sideCar:eM}))});eU.classNames=eB.classNames;let ez=["Enter"," "],eG=["ArrowUp","PageDown","End"],eV=["ArrowDown","PageUp","Home",...eG],eq={ltr:[...ez,"ArrowRight"],rtl:[...ez,"ArrowLeft"]},eW={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ej="Menu",[eK,eZ,eY]=$e02a7d9cb1dc128c$export$c74125a8e3af6bb2(ej),[eX,eJ]=$c512c27ab02ef895$export$50c7b4e9d9f19c1(ej,[eY,J,eg]),eQ=J(),e0=eg(),[e1,e2]=eX(ej),[e3,e4]=eX(ej),e5=(0,i.forwardRef)((t,r)=>{let{__scopeMenu:n,...o}=t,a=eQ(n);return(0,i.createElement)(et,_extends({},a,o,{ref:r}))}),e6="MenuPortal",[e8,e7]=eX(e6,{forceMount:void 0}),e9="MenuContent",[te,tt]=eX(e9),tr=(0,i.forwardRef)((t,r)=>{let n=e7(e9,t.__scopeMenu),{forceMount:o=n.forceMount,...a}=t,c=e2(e9,t.__scopeMenu),u=e4(e9,t.__scopeMenu);return(0,i.createElement)(eK.Provider,{scope:t.__scopeMenu},(0,i.createElement)($921a889cee6df7e8$export$99c2b779aa4e8b8b,{present:o||c.open},(0,i.createElement)(eK.Slot,{scope:t.__scopeMenu},u.modal?(0,i.createElement)(tn,_extends({},a,{ref:r})):(0,i.createElement)(to,_extends({},a,{ref:r})))))}),tn=(0,i.forwardRef)((t,r)=>{let n=e2(e9,t.__scopeMenu),o=(0,i.useRef)(null),a=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(r,o);return(0,i.useEffect)(()=>{let t=o.current;if(t)return hideOthers(t)},[]),(0,i.createElement)(ti,_extends({},t,{ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onFocusOutside,t=>t.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),to=(0,i.forwardRef)((t,r)=>{let n=e2(e9,t.__scopeMenu);return(0,i.createElement)(ti,_extends({},t,{ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),ti=(0,i.forwardRef)((t,r)=>{let{__scopeMenu:n,loop:o=!1,trapFocus:a,onOpenAutoFocus:c,onCloseAutoFocus:d,disableOutsidePointerEvents:f,onEntryFocus:m,onEscapeKeyDown:g,onPointerDownOutside:b,onFocusOutside:v,onInteractOutside:w,onDismiss:E,disableOutsideScroll:_,...S}=t,A=e2(e9,n),k=e4(e9,n),C=eQ(n),T=e0(n),N=eZ(n),[H,D]=(0,i.useState)(null),F=(0,i.useRef)(null),U=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(r,F,A.onContentChange),G=(0,i.useRef)(0),V=(0,i.useRef)(""),q=(0,i.useRef)(0),W=(0,i.useRef)(null),K=(0,i.useRef)("right"),Z=(0,i.useRef)(0),Y=_?eU:i.Fragment,J=_?{as:u,allowPinchZoom:!0}:void 0,handleTypeaheadSearch=t=>{var r,n;let o=V.current+t,i=N().filter(t=>!t.disabled),a=document.activeElement,c=null===(r=i.find(t=>t.ref.current===a))||void 0===r?void 0:r.textValue,u=i.map(t=>t.textValue),d=$6cc32821e9371a1c$var$getNextMatch(u,o,c),f=null===(n=i.find(t=>t.textValue===d))||void 0===n?void 0:n.ref.current;!function updateSearch(t){V.current=t,window.clearTimeout(G.current),""!==t&&(G.current=window.setTimeout(()=>updateSearch(""),1e3))}(o),f&&setTimeout(()=>f.focus())};(0,i.useEffect)(()=>()=>window.clearTimeout(G.current),[]),$3db38b7d1fb3fe6a$export$b7ece24a22aeda8c();let Q=(0,i.useCallback)(t=>{var r,n;let o=K.current===(null===(r=W.current)||void 0===r?void 0:r.side);return o&&$6cc32821e9371a1c$var$isPointerInGraceArea(t,null===(n=W.current)||void 0===n?void 0:n.area)},[]);return(0,i.createElement)(te,{scope:n,searchRef:V,onItemEnter:(0,i.useCallback)(t=>{Q(t)&&t.preventDefault()},[Q]),onItemLeave:(0,i.useCallback)(t=>{var r;Q(t)||(null===(r=F.current)||void 0===r||r.focus(),D(null))},[Q]),onTriggerLeave:(0,i.useCallback)(t=>{Q(t)&&t.preventDefault()},[Q]),pointerGraceTimerRef:q,onPointerGraceIntentChange:(0,i.useCallback)(t=>{W.current=t},[])},(0,i.createElement)(Y,J,(0,i.createElement)(P,{asChild:!0,trapped:a,onMountAutoFocus:$e42e1063c40fb3ef$export$b9ecd428b558ff10(c,t=>{var r;t.preventDefault(),null===(r=F.current)||void 0===r||r.focus()}),onUnmountAutoFocus:d},(0,i.createElement)(y,{asChild:!0,disableOutsidePointerEvents:f,onEscapeKeyDown:g,onPointerDownOutside:b,onFocusOutside:v,onInteractOutside:w,onDismiss:E},(0,i.createElement)(ev,_extends({asChild:!0},T,{dir:k.dir,orientation:"vertical",loop:o,currentTabStopId:H,onCurrentTabStopIdChange:D,onEntryFocus:$e42e1063c40fb3ef$export$b9ecd428b558ff10(m,t=>{k.isUsingKeyboardRef.current||t.preventDefault()})}),(0,i.createElement)(ei,_extends({role:"menu","aria-orientation":"vertical","data-state":$6cc32821e9371a1c$var$getOpenState(A.open),"data-radix-menu-content":"",dir:k.dir},C,S,{ref:U,style:{outline:"none",...S.style},onKeyDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(S.onKeyDown,t=>{let r=t.target,n=r.closest("[data-radix-menu-content]")===t.currentTarget,o=t.ctrlKey||t.altKey||t.metaKey,i=1===t.key.length;n&&("Tab"===t.key&&t.preventDefault(),!o&&i&&handleTypeaheadSearch(t.key));let a=F.current;if(t.target!==a||!eV.includes(t.key))return;t.preventDefault();let c=N().filter(t=>!t.disabled),u=c.map(t=>t.ref.current);eG.includes(t.key)&&u.reverse(),$6cc32821e9371a1c$var$focusFirst(u)}),onBlur:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onBlur,t=>{t.currentTarget.contains(t.target)||(window.clearTimeout(G.current),V.current="")}),onPointerMove:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onPointerMove,$6cc32821e9371a1c$var$whenMouse(t=>{let r=t.target,n=Z.current!==t.clientX;if(t.currentTarget.contains(r)&&n){let r=t.clientX>Z.current?"right":"left";K.current=r,Z.current=t.clientX}}))})))))))}),ta=(0,i.forwardRef)((t,r)=>{let{__scopeMenu:n,...o}=t;return(0,i.createElement)(f.div,_extends({role:"group"},o,{ref:r}))}),ts=(0,i.forwardRef)((t,r)=>{let{__scopeMenu:n,...o}=t;return(0,i.createElement)(f.div,_extends({},o,{ref:r}))}),tl="MenuItem",tc="menu.itemSelect",tu=(0,i.forwardRef)((t,r)=>{let{disabled:n=!1,onSelect:o,...a}=t,c=(0,i.useRef)(null),u=e4(tl,t.__scopeMenu),d=tt(tl,t.__scopeMenu),f=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(r,c),m=(0,i.useRef)(!1);return(0,i.createElement)(td,_extends({},a,{ref:f,disabled:n,onClick:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onClick,()=>{let t=c.current;if(!n&&t){let r=new CustomEvent(tc,{bubbles:!0,cancelable:!0});t.addEventListener(tc,t=>null==o?void 0:o(t),{once:!0}),$8927f6f2acc4f386$export$6d1a0317bde7de7f(t,r),r.defaultPrevented?m.current=!1:u.onClose()}}),onPointerDown:r=>{var n;null===(n=t.onPointerDown)||void 0===n||n.call(t,r),m.current=!0},onPointerUp:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onPointerUp,t=>{var r;m.current||null===(r=t.currentTarget)||void 0===r||r.click()}),onKeyDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onKeyDown,t=>{let r=""!==d.searchRef.current;!n&&(!r||" "!==t.key)&&ez.includes(t.key)&&(t.currentTarget.click(),t.preventDefault())})}))}),td=(0,i.forwardRef)((t,r)=>{let{__scopeMenu:n,disabled:o=!1,textValue:a,...c}=t,u=tt(tl,n),d=e0(n),m=(0,i.useRef)(null),g=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(r,m),[b,y]=(0,i.useState)(!1),[v,w]=(0,i.useState)("");return(0,i.useEffect)(()=>{let t=m.current;if(t){var r;w((null!==(r=t.textContent)&&void 0!==r?r:"").trim())}},[c.children]),(0,i.createElement)(eK.ItemSlot,{scope:n,disabled:o,textValue:null!=a?a:v},(0,i.createElement)(ex,_extends({asChild:!0},d,{focusable:!o}),(0,i.createElement)(f.div,_extends({role:"menuitem","data-highlighted":b?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0},c,{ref:g,onPointerMove:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onPointerMove,$6cc32821e9371a1c$var$whenMouse(t=>{if(o)u.onItemLeave(t);else if(u.onItemEnter(t),!t.defaultPrevented){let r=t.currentTarget;r.focus()}})),onPointerLeave:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onPointerLeave,$6cc32821e9371a1c$var$whenMouse(t=>u.onItemLeave(t))),onFocus:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onFocus,()=>y(!0)),onBlur:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onBlur,()=>y(!1))}))))}),tf=(0,i.forwardRef)((t,r)=>{let{checked:n=!1,onCheckedChange:o,...a}=t;return(0,i.createElement)(ty,{scope:t.__scopeMenu,checked:n},(0,i.createElement)(tu,_extends({role:"menuitemcheckbox","aria-checked":$6cc32821e9371a1c$var$isIndeterminate(n)?"mixed":n},a,{ref:r,"data-state":$6cc32821e9371a1c$var$getCheckedState(n),onSelect:$e42e1063c40fb3ef$export$b9ecd428b558ff10(a.onSelect,()=>null==o?void 0:o(!!$6cc32821e9371a1c$var$isIndeterminate(n)||!n),{checkForDefaultPrevented:!1})})))}),[th,tp]=eX("MenuRadioGroup",{value:void 0,onValueChange:()=>{}}),tm=(0,i.forwardRef)((t,r)=>{let{value:n,onValueChange:o,...a}=t,c=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(o);return(0,i.createElement)(th,{scope:t.__scopeMenu,value:n,onValueChange:c},(0,i.createElement)(ta,_extends({},a,{ref:r})))}),tg=(0,i.forwardRef)((t,r)=>{let{value:n,...o}=t,a=tp("MenuRadioItem",t.__scopeMenu),c=n===a.value;return(0,i.createElement)(ty,{scope:t.__scopeMenu,checked:c},(0,i.createElement)(tu,_extends({role:"menuitemradio","aria-checked":c},o,{ref:r,"data-state":$6cc32821e9371a1c$var$getCheckedState(c),onSelect:$e42e1063c40fb3ef$export$b9ecd428b558ff10(o.onSelect,()=>{var t;return null===(t=a.onValueChange)||void 0===t?void 0:t.call(a,n)},{checkForDefaultPrevented:!1})})))}),tb="MenuItemIndicator",[ty,tv]=eX(tb,{checked:!1}),tw=(0,i.forwardRef)((t,r)=>{let{__scopeMenu:n,forceMount:o,...a}=t,c=tv(tb,n);return(0,i.createElement)($921a889cee6df7e8$export$99c2b779aa4e8b8b,{present:o||$6cc32821e9371a1c$var$isIndeterminate(c.checked)||!0===c.checked},(0,i.createElement)(f.span,_extends({},a,{ref:r,"data-state":$6cc32821e9371a1c$var$getCheckedState(c.checked)})))}),tx=(0,i.forwardRef)((t,r)=>{let{__scopeMenu:n,...o}=t;return(0,i.createElement)(f.div,_extends({role:"separator","aria-orientation":"horizontal"},o,{ref:r}))}),tE=((t,r)=>{let{__scopeMenu:n,...o}=t,a=eQ(n);return(0,i.createElement)(es,_extends({},a,o,{ref:r}))},"MenuSub"),[t_,t$]=eX(tE),tP="MenuSubTrigger",tS=(0,i.forwardRef)((t,r)=>{let n=e2(tP,t.__scopeMenu),o=e4(tP,t.__scopeMenu),a=t$(tP,t.__scopeMenu),c=tt(tP,t.__scopeMenu),u=(0,i.useRef)(null),{pointerGraceTimerRef:d,onPointerGraceIntentChange:f}=c,m={__scopeMenu:t.__scopeMenu},g=(0,i.useCallback)(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return(0,i.useEffect)(()=>g,[g]),(0,i.useEffect)(()=>{let t=d.current;return()=>{window.clearTimeout(t),f(null)}},[d,f]),(0,i.createElement)(e5,_extends({asChild:!0},m),(0,i.createElement)(td,_extends({id:a.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":a.contentId,"data-state":$6cc32821e9371a1c$var$getOpenState(n.open)},t,{ref:$6ed0406888f73fc4$export$43e446d32b3d21af(r,a.onTriggerChange),onClick:r=>{var o;null===(o=t.onClick)||void 0===o||o.call(t,r),t.disabled||r.defaultPrevented||(r.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onPointerMove,$6cc32821e9371a1c$var$whenMouse(r=>{c.onItemEnter(r),r.defaultPrevented||t.disabled||n.open||u.current||(c.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{n.onOpenChange(!0),g()},100))})),onPointerLeave:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onPointerLeave,$6cc32821e9371a1c$var$whenMouse(t=>{var r,o;g();let i=null===(r=n.content)||void 0===r?void 0:r.getBoundingClientRect();if(i){let r=null===(o=n.content)||void 0===o?void 0:o.dataset.side,a="right"===r,u=i[a?"left":"right"],f=i[a?"right":"left"];c.onPointerGraceIntentChange({area:[{x:t.clientX+(a?-5:5),y:t.clientY},{x:u,y:i.top},{x:f,y:i.top},{x:f,y:i.bottom},{x:u,y:i.bottom}],side:r}),window.clearTimeout(d.current),d.current=window.setTimeout(()=>c.onPointerGraceIntentChange(null),300)}else{if(c.onTriggerLeave(t),t.defaultPrevented)return;c.onPointerGraceIntentChange(null)}})),onKeyDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onKeyDown,r=>{let i=""!==c.searchRef.current;if(!t.disabled&&(!i||" "!==r.key)&&eq[o.dir].includes(r.key)){var a;n.onOpenChange(!0),null===(a=n.content)||void 0===a||a.focus(),r.preventDefault()}})})))}),tA=(0,i.forwardRef)((t,r)=>{let n=e7(e9,t.__scopeMenu),{forceMount:o=n.forceMount,...a}=t,c=e2(e9,t.__scopeMenu),u=e4(e9,t.__scopeMenu),d=t$("MenuSubContent",t.__scopeMenu),f=(0,i.useRef)(null),m=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(r,f);return(0,i.createElement)(eK.Provider,{scope:t.__scopeMenu},(0,i.createElement)($921a889cee6df7e8$export$99c2b779aa4e8b8b,{present:o||c.open},(0,i.createElement)(eK.Slot,{scope:t.__scopeMenu},(0,i.createElement)(ti,_extends({id:d.contentId,"aria-labelledby":d.triggerId},a,{ref:m,align:"start",side:"rtl"===u.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:t=>{var r;u.isUsingKeyboardRef.current&&(null===(r=f.current)||void 0===r||r.focus()),t.preventDefault()},onCloseAutoFocus:t=>t.preventDefault(),onFocusOutside:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onFocusOutside,t=>{t.target!==d.trigger&&c.onOpenChange(!1)}),onEscapeKeyDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onEscapeKeyDown,t=>{u.onClose(),t.preventDefault()}),onKeyDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onKeyDown,t=>{let r=t.currentTarget.contains(t.target),n=eW[u.dir].includes(t.key);if(r&&n){var o;c.onOpenChange(!1),null===(o=d.trigger)||void 0===o||o.focus(),t.preventDefault()}})})))))});function $6cc32821e9371a1c$var$getOpenState(t){return t?"open":"closed"}function $6cc32821e9371a1c$var$isIndeterminate(t){return"indeterminate"===t}function $6cc32821e9371a1c$var$getCheckedState(t){return $6cc32821e9371a1c$var$isIndeterminate(t)?"indeterminate":t?"checked":"unchecked"}function $6cc32821e9371a1c$var$focusFirst(t){let r=document.activeElement;for(let n of t)if(n===r||(n.focus(),document.activeElement!==r))return}function $6cc32821e9371a1c$var$wrapArray(t,r){return t.map((n,o)=>t[(r+o)%t.length])}function $6cc32821e9371a1c$var$getNextMatch(t,r,n){let o=r.length>1&&Array.from(r).every(t=>t===r[0]),i=o?r[0]:r,a=n?t.indexOf(n):-1,c=$6cc32821e9371a1c$var$wrapArray(t,Math.max(a,0)),u=1===i.length;u&&(c=c.filter(t=>t!==n));let d=c.find(t=>t.toLowerCase().startsWith(i.toLowerCase()));return d!==n?d:void 0}function $6cc32821e9371a1c$var$isPointInPolygon(t,r){let{x:n,y:o}=t,i=!1;for(let t=0,a=r.length-1;to!=f>o&&n<(d-c)*(o-u)/(f-u)+c;m&&(i=!i)}return i}function $6cc32821e9371a1c$var$isPointerInGraceArea(t,r){if(!r)return!1;let n={x:t.clientX,y:t.clientY};return $6cc32821e9371a1c$var$isPointInPolygon(n,r)}function $6cc32821e9371a1c$var$whenMouse(t){return r=>"mouse"===r.pointerType?t(r):void 0}let $6cc32821e9371a1c$export$be92b6f5f03c0fe9=t=>{let{__scopeMenu:r,open:n=!1,children:o,dir:a,onOpenChange:c,modal:u=!0}=t,d=eQ(r),[f,m]=(0,i.useState)(null),g=(0,i.useRef)(!1),b=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(c),y=$f631663db3294ace$export$b39126d51d94e6f3(a);return(0,i.useEffect)(()=>{let handleKeyDown=()=>{g.current=!0,document.addEventListener("pointerdown",handlePointer,{capture:!0,once:!0}),document.addEventListener("pointermove",handlePointer,{capture:!0,once:!0})},handlePointer=()=>g.current=!1;return document.addEventListener("keydown",handleKeyDown,{capture:!0}),()=>{document.removeEventListener("keydown",handleKeyDown,{capture:!0}),document.removeEventListener("pointerdown",handlePointer,{capture:!0}),document.removeEventListener("pointermove",handlePointer,{capture:!0})}},[]),(0,i.createElement)($cf1ac5d9fe0e8206$export$be92b6f5f03c0fe9,d,(0,i.createElement)(e1,{scope:r,open:n,onOpenChange:b,content:f,onContentChange:m},(0,i.createElement)(e3,{scope:r,onClose:(0,i.useCallback)(()=>b(!1),[b]),isUsingKeyboardRef:g,dir:y,modal:u},o)))},$6cc32821e9371a1c$export$602eac185826482c=t=>{let{__scopeMenu:r,forceMount:n,children:o,container:a}=t,c=e2(e6,r);return(0,i.createElement)(e8,{scope:r,forceMount:n},(0,i.createElement)($921a889cee6df7e8$export$99c2b779aa4e8b8b,{present:n||c.open},(0,i.createElement)(el,{asChild:!0,container:a},o)))},$6cc32821e9371a1c$export$d7a01e11500dfb6f=t=>{let{__scopeMenu:r,children:n,open:o=!1,onOpenChange:a}=t,c=e2(tE,r),u=eQ(r),[d,f]=(0,i.useState)(null),[m,g]=(0,i.useState)(null),b=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(a);return(0,i.useEffect)(()=>(!1===c.open&&b(!1),()=>b(!1)),[c.open,b]),(0,i.createElement)($cf1ac5d9fe0e8206$export$be92b6f5f03c0fe9,u,(0,i.createElement)(e1,{scope:r,open:o,onOpenChange:b,content:m,onContentChange:g},(0,i.createElement)(t_,{scope:r,contentId:$1746a345f3d73bb7$export$f680877a34711e37(),triggerId:$1746a345f3d73bb7$export$f680877a34711e37(),trigger:d,onTriggerChange:f},n)))},tk="DropdownMenu",[tI,tC]=$c512c27ab02ef895$export$50c7b4e9d9f19c1(tk,[eJ]),tB=eJ(),[tT,tO]=tI(tk),tR=(0,i.forwardRef)((t,r)=>{let{__scopeDropdownMenu:n,disabled:o=!1,...a}=t,c=tO("DropdownMenuTrigger",n),u=tB(n);return(0,i.createElement)(e5,_extends({asChild:!0},u),(0,i.createElement)(f.button,_extends({type:"button",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":c.open?"open":"closed","data-disabled":o?"":void 0,disabled:o},a,{ref:$6ed0406888f73fc4$export$43e446d32b3d21af(r,c.triggerRef),onPointerDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onPointerDown,t=>{o||0!==t.button||!1!==t.ctrlKey||(c.onOpenToggle(),c.open||t.preventDefault())}),onKeyDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onKeyDown,t=>{!o&&(["Enter"," "].includes(t.key)&&c.onOpenToggle(),"ArrowDown"===t.key&&c.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(t.key)&&t.preventDefault())})})))}),tL=(0,i.forwardRef)((t,r)=>{let{__scopeDropdownMenu:n,...o}=t,a=tO("DropdownMenuContent",n),c=tB(n),u=(0,i.useRef)(!1);return(0,i.createElement)(tr,_extends({id:a.contentId,"aria-labelledby":a.triggerId},c,o,{ref:r,onCloseAutoFocus:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onCloseAutoFocus,t=>{var r;u.current||null===(r=a.triggerRef.current)||void 0===r||r.focus(),u.current=!1,t.preventDefault()}),onInteractOutside:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onInteractOutside,t=>{let r=t.detail.originalEvent,n=0===r.button&&!0===r.ctrlKey,o=2===r.button||n;(!a.modal||o)&&(u.current=!0)}),style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),tN=(0,i.forwardRef)((t,r)=>{let{__scopeDropdownMenu:n,...o}=t,a=tB(n);return(0,i.createElement)(ta,_extends({},a,o,{ref:r}))}),tH=(0,i.forwardRef)((t,r)=>{let{__scopeDropdownMenu:n,...o}=t,a=tB(n);return(0,i.createElement)(ts,_extends({},a,o,{ref:r}))}),tD=(0,i.forwardRef)((t,r)=>{let{__scopeDropdownMenu:n,...o}=t,a=tB(n);return(0,i.createElement)(tu,_extends({},a,o,{ref:r}))}),tF=(0,i.forwardRef)((t,r)=>{let{__scopeDropdownMenu:n,...o}=t,a=tB(n);return(0,i.createElement)(tf,_extends({},a,o,{ref:r}))}),tM=(0,i.forwardRef)((t,r)=>{let{__scopeDropdownMenu:n,...o}=t,a=tB(n);return(0,i.createElement)(tm,_extends({},a,o,{ref:r}))}),tU=(0,i.forwardRef)((t,r)=>{let{__scopeDropdownMenu:n,...o}=t,a=tB(n);return(0,i.createElement)(tg,_extends({},a,o,{ref:r}))}),tz=(0,i.forwardRef)((t,r)=>{let{__scopeDropdownMenu:n,...o}=t,a=tB(n);return(0,i.createElement)(tw,_extends({},a,o,{ref:r}))}),tG=(0,i.forwardRef)((t,r)=>{let{__scopeDropdownMenu:n,...o}=t,a=tB(n);return(0,i.createElement)(tx,_extends({},a,o,{ref:r}))}),tV=(0,i.forwardRef)((t,r)=>{let{__scopeDropdownMenu:n,...o}=t,a=tB(n);return(0,i.createElement)(tS,_extends({},a,o,{ref:r}))}),tq=(0,i.forwardRef)((t,r)=>{let{__scopeDropdownMenu:n,...o}=t,a=tB(n);return(0,i.createElement)(tA,_extends({},a,o,{ref:r,style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),$d08ef79370b62062$export$be92b6f5f03c0fe9=t=>{let{__scopeDropdownMenu:r,children:n,dir:o,open:a,defaultOpen:c,onOpenChange:u,modal:d=!0}=t,f=tB(r),m=(0,i.useRef)(null),[g=!1,b]=$71cd76cc60e0454e$export$6f32135080cb4c3({prop:a,defaultProp:c,onChange:u});return(0,i.createElement)(tT,{scope:r,triggerId:$1746a345f3d73bb7$export$f680877a34711e37(),triggerRef:m,contentId:$1746a345f3d73bb7$export$f680877a34711e37(),open:g,onOpenChange:b,onOpenToggle:(0,i.useCallback)(()=>b(t=>!t),[b]),modal:d},(0,i.createElement)($6cc32821e9371a1c$export$be92b6f5f03c0fe9,_extends({},f,{open:g,onOpenChange:b,dir:o,modal:d}),n))},tW=tR,$d08ef79370b62062$export$602eac185826482c=t=>{let{__scopeDropdownMenu:r,...n}=t,o=tB(r);return(0,i.createElement)($6cc32821e9371a1c$export$602eac185826482c,_extends({},o,n))},tj=tL,tK=tN,tZ=tH,tY=tD,tX=tF,tJ=tM,tQ=tU,t0=tz,t1=tG,$d08ef79370b62062$export$d7a01e11500dfb6f=t=>{let{__scopeDropdownMenu:r,children:n,open:o,onOpenChange:a,defaultOpen:c}=t,u=tB(r),[d=!1,f]=$71cd76cc60e0454e$export$6f32135080cb4c3({prop:o,defaultProp:c,onChange:a});return(0,i.createElement)($6cc32821e9371a1c$export$d7a01e11500dfb6f,_extends({},u,{open:d,onOpenChange:f}),n)},t2=tV,t3=tq},45489:function(t,r,n){"use strict";function _tagged_template_literal(t,r){return r||(r=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(r)}}))}n.d(r,{_:function(){return _tagged_template_literal}})},78589:function(t,r,n){"use strict";n.d(r,{wn:function(){return N}});var o=n(91072);let i=BigInt(4294967296-1),a=BigInt(32);function fromBig(t,r=!1){return r?{h:Number(t&i),l:Number(t>>a&i)}:{h:0|Number(t>>a&i),l:0|Number(t&i)}}function split(t,r=!1){let n=new Uint32Array(t.length),o=new Uint32Array(t.length);for(let i=0;iBigInt(t>>>0)<>>0),shrSH:(t,r,n)=>t>>>n,shrSL:(t,r,n)=>t<<32-n|r>>>n,rotrSH:(t,r,n)=>t>>>n|r<<32-n,rotrSL:(t,r,n)=>t<<32-n|r>>>n,rotrBH:(t,r,n)=>t<<64-n|r>>>n-32,rotrBL:(t,r,n)=>t>>>n-32|r<<64-n,rotr32H:(t,r)=>r,rotr32L:(t,r)=>t,rotlSH:(t,r,n)=>t<>>32-n,rotlSL:(t,r,n)=>r<>>32-n,rotlBH:(t,r,n)=>r<>>64-n,rotlBL:(t,r,n)=>t<>>64-n,add:function(t,r,n,o){let i=(r>>>0)+(o>>>0);return{h:t+n+(i/4294967296|0)|0,l:0|i}},add3L:(t,r,n)=>(t>>>0)+(r>>>0)+(n>>>0),add3H:(t,r,n,o)=>r+n+o+(t/4294967296|0)|0,add4L:(t,r,n,o)=>(t>>>0)+(r>>>0)+(n>>>0)+(o>>>0),add4H:(t,r,n,o,i)=>r+n+o+i+(t/4294967296|0)|0,add5H:(t,r,n,o,i,a)=>r+n+o+i+a+(t/4294967296|0)|0,add5L:(t,r,n,o,i)=>(t>>>0)+(r>>>0)+(n>>>0)+(o>>>0)+(i>>>0)},u=n(68209);let[d,f,m]=[[],[],[]],g=BigInt(0),b=BigInt(1),y=BigInt(2),v=BigInt(7),w=BigInt(256),E=BigInt(113);for(let t=0,r=b,n=1,o=0;t<24;t++){[n,o]=[o,(2*n+3*o)%5],d.push(2*(5*o+n)),f.push((t+1)*(t+2)/2%64);let i=g;for(let t=0;t<7;t++)(r=(r<>v)*E)%w)&y&&(i^=b<<(b<n>32?c.rotlBH(t,r,n):c.rotlSH(t,r,n),rotlL=(t,r,n)=>n>32?c.rotlBL(t,r,n):c.rotlSL(t,r,n);function keccakP(t,r=24){let n=new Uint32Array(10);for(let o=24-r;o<24;o++){for(let r=0;r<10;r++)n[r]=t[r]^t[r+10]^t[r+20]^t[r+30]^t[r+40];for(let r=0;r<10;r+=2){let o=(r+8)%10,i=(r+2)%10,a=n[i],c=n[i+1],u=rotlH(a,c,1)^n[o],d=rotlL(a,c,1)^n[o+1];for(let n=0;n<50;n+=10)t[r+n]^=u,t[r+n+1]^=d}let r=t[2],i=t[3];for(let n=0;n<24;n++){let o=f[n],a=rotlH(r,i,o),c=rotlL(r,i,o),u=d[n];r=t[u],i=t[u+1],t[u]=a,t[u+1]=c}for(let r=0;r<50;r+=10){for(let o=0;o<10;o++)n[o]=t[r+o];for(let o=0;o<10;o++)t[r+o]^=~n[(o+2)%10]&n[(o+4)%10]}t[0]^=_[o],t[1]^=P[o]}n.fill(0)}let Keccak=class Keccak extends u.kb{constructor(t,r,n,i=!1,a=24){if(super(),this.blockLen=t,this.suffix=r,this.outputLen=n,this.enableXOF=i,this.rounds=a,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,o.ZP.number(n),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,u.Jq)(this.state)}keccak(){keccakP(this.state32,this.rounds),this.posOut=0,this.pos=0}update(t){o.ZP.exists(this);let{blockLen:r,state:n}=this;t=(0,u.O0)(t);let i=t.length;for(let o=0;o=n&&this.keccak();let a=Math.min(n-this.posOut,i-o);t.set(r.subarray(this.posOut,this.posOut+a),o),this.posOut+=a,o+=a}return t}xofInto(t){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return o.ZP.number(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(o.ZP.output(t,this),this.finished)throw Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){let{blockLen:r,suffix:n,outputLen:o,rounds:i,enableXOF:a}=this;return t||(t=new Keccak(r,n,o,a,i)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=i,t.suffix=n,t.outputLen=o,t.enableXOF=a,t.destroyed=this.destroyed,t}};let gen=(t,r,n)=>(0,u.hE)(()=>new Keccak(r,t,n));gen(6,144,28),gen(6,136,32),gen(6,104,48),gen(6,72,64);let S=gen(1,144,28),A=gen(1,136,32),k=gen(1,104,48),C=gen(1,72,64),genShake=(t,r,n)=>(0,u.gz)((o={})=>new Keccak(r,t,void 0===o.dkLen?n:o.dkLen,!0));genShake(31,168,16),genShake(31,136,32);var T=n(17070);(0,T.gn)(S);let N=(()=>{let t=(0,T.gn)(A);return t.create=A.create,t})();(0,T.gn)(k),(0,T.gn)(C)},17070:function(t,r,n){"use strict";n.d(r,{gn:function(){return wrapHash},hD:function(){return equalsBytes},iY:function(){return i.iY},nr:function(){return hexToBytes}});var o=n(91072),i=n(68209);function hexToBytes(t){let r=t.startsWith("0x")?t.substring(2):t;return(0,i.nr)(r)}function equalsBytes(t,r){if(t.length!==r.length)return!1;for(let n=0;n(o.ZP.bytes(r),t(r))}o.ZP.bool,o.ZP.bytes,(()=>{let t="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,r="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);return r&&!t?r("crypto"):void 0})()},25997:function(t,r,n){"use strict";function createClassUtils(t){let r=createClassMap(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=t;return{getClassGroupId:function(t){let n=t.split("-");return""===n[0]&&1!==n.length&&n.shift(),getGroupRecursive(n,r)||getGroupIdForArbitraryProperty(t)},getConflictingClassGroupIds:function(t,r){let i=n[t]||[];return r&&o[t]?[...i,...o[t]]:i}}}function getGroupRecursive(t,r){if(0===t.length)return r.classGroupId;let n=t[0],o=r.nextPart.get(n),i=o?getGroupRecursive(t.slice(1),o):void 0;if(i)return i;if(0===r.validators.length)return;let a=t.join("-");return r.validators.find(({validator:t})=>t(a))?.classGroupId}n.d(r,{m6:function(){return w}});let o=/^\[(.+)\]$/;function getGroupIdForArbitraryProperty(t){if(o.test(t)){let r=o.exec(t)[1],n=r?.substring(0,r.indexOf(":"));if(n)return"arbitrary.."+n}}function createClassMap(t){let{theme:r,prefix:n}=t,o={nextPart:new Map,validators:[]},i=getPrefixedClassGroupEntries(Object.entries(t.classGroups),n);return i.forEach(([t,n])=>{processClassesRecursively(n,o,t,r)}),o}function processClassesRecursively(t,r,n,o){t.forEach(t=>{if("string"==typeof t){let o=""===t?r:getPart(r,t);o.classGroupId=n;return}if("function"==typeof t){if(isThemeGetter(t)){processClassesRecursively(t(o),r,n,o);return}r.validators.push({validator:t,classGroupId:n});return}Object.entries(t).forEach(([t,i])=>{processClassesRecursively(i,getPart(r,t),n,o)})})}function getPart(t,r){let n=t;return r.split("-").forEach(t=>{n.nextPart.has(t)||n.nextPart.set(t,{nextPart:new Map,validators:[]}),n=n.nextPart.get(t)}),n}function isThemeGetter(t){return t.isThemeGetter}function getPrefixedClassGroupEntries(t,r){return r?t.map(([t,n])=>{let o=n.map(t=>"string"==typeof t?r+t:"object"==typeof t?Object.fromEntries(Object.entries(t).map(([t,n])=>[r+t,n])):t);return[t,o]}):t}function createLruCache(t){if(t<1)return{get:()=>void 0,set:()=>{}};let r=0,n=new Map,o=new Map;function update(i,a){n.set(i,a),++r>t&&(r=0,o=n,n=new Map)}return{get(t){let r=n.get(t);return void 0!==r?r:void 0!==(r=o.get(t))?(update(t,r),r):void 0},set(t,r){n.has(t)?n.set(t,r):update(t,r)}}}function createSplitModifiers(t){let r=t.separator,n=1===r.length,o=r[0],i=r.length;return function(t){let a;let c=[],u=0,d=0;for(let f=0;fd?a-d:void 0;return{modifiers:c,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:b}}}function sortModifiers(t){if(t.length<=1)return t;let r=[],n=[];return t.forEach(t=>{let o="["===t[0];o?(r.push(...n.sort(),t),n=[]):n.push(t)}),r.push(...n.sort()),r}function createConfigUtils(t){return{cache:createLruCache(t.cacheSize),splitModifiers:createSplitModifiers(t),...createClassUtils(t)}}let i=/\s+/;function mergeClassList(t,r){let{splitModifiers:n,getClassGroupId:o,getConflictingClassGroupIds:a}=r,c=new Set;return t.trim().split(i).map(t=>{let{modifiers:r,hasImportantModifier:i,baseClassName:a,maybePostfixModifierPosition:c}=n(t),u=o(c?a.substring(0,c):a),d=!!c;if(!u){if(!c||!(u=o(a)))return{isTailwindClass:!1,originalClassName:t};d=!1}let f=sortModifiers(r).join(":");return{isTailwindClass:!0,modifierId:i?f+"!":f,classGroupId:u,originalClassName:t,hasPostfixModifier:d}}).reverse().filter(t=>{if(!t.isTailwindClass)return!0;let{modifierId:r,classGroupId:n,hasPostfixModifier:o}=t,i=r+n;return!c.has(i)&&(c.add(i),a(n,o).forEach(t=>c.add(r+t)),!0)}).reverse().map(t=>t.originalClassName).join(" ")}function twJoin(){let t,r,n=0,o="";for(;nr(t),t());return o=(n=createConfigUtils(u)).cache.get,i=n.cache.set,a=tailwindMerge,tailwindMerge(c)}function tailwindMerge(t){let r=o(t);if(r)return r;let a=mergeClassList(t,n);return i(t,a),a}return function(){return a(twJoin.apply(null,arguments))}}function fromTheme(t){let themeGetter=r=>r[t]||[];return themeGetter.isThemeGetter=!0,themeGetter}let a=/^\[(?:([a-z-]+):)?(.+)\]$/i,c=/^\d+\/\d+$/,u=new Set(["px","full","screen"]),d=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,f=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,m=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,g=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,b=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function isLength(t){return isNumber(t)||u.has(t)||c.test(t)}function isArbitraryLength(t){return getIsArbitraryValue(t,"length",isLengthOnly)}function isNumber(t){return!!t&&!Number.isNaN(Number(t))}function isArbitraryNumber(t){return getIsArbitraryValue(t,"number",isNumber)}function isInteger(t){return!!t&&Number.isInteger(Number(t))}function isPercent(t){return t.endsWith("%")&&isNumber(t.slice(0,-1))}function isArbitraryValue(t){return a.test(t)}function isTshirtSize(t){return d.test(t)}let y=new Set(["length","size","percentage"]);function isArbitrarySize(t){return getIsArbitraryValue(t,y,isNever)}function isArbitraryPosition(t){return getIsArbitraryValue(t,"position",isNever)}let v=new Set(["image","url"]);function isArbitraryImage(t){return getIsArbitraryValue(t,v,isImage)}function isArbitraryShadow(t){return getIsArbitraryValue(t,"",isShadow)}function isAny(){return!0}function getIsArbitraryValue(t,r,n){let o=a.exec(t);return!!o&&(o[1]?"string"==typeof r?o[1]===r:r.has(o[1]):n(o[2]))}function isLengthOnly(t){return f.test(t)&&!m.test(t)}function isNever(){return!1}function isShadow(t){return g.test(t)}function isImage(t){return b.test(t)}function getDefaultConfig(){let t=fromTheme("colors"),r=fromTheme("spacing"),n=fromTheme("blur"),o=fromTheme("brightness"),i=fromTheme("borderColor"),a=fromTheme("borderRadius"),c=fromTheme("borderSpacing"),u=fromTheme("borderWidth"),d=fromTheme("contrast"),f=fromTheme("grayscale"),m=fromTheme("hueRotate"),g=fromTheme("invert"),b=fromTheme("gap"),y=fromTheme("gradientColorStops"),v=fromTheme("gradientColorStopPositions"),w=fromTheme("inset"),E=fromTheme("margin"),_=fromTheme("opacity"),P=fromTheme("padding"),S=fromTheme("saturate"),A=fromTheme("scale"),k=fromTheme("sepia"),C=fromTheme("skew"),T=fromTheme("space"),N=fromTheme("translate"),getOverscroll=()=>["auto","contain","none"],getOverflow=()=>["auto","hidden","clip","visible","scroll"],getSpacingWithAutoAndArbitrary=()=>["auto",isArbitraryValue,r],getSpacingWithArbitrary=()=>[isArbitraryValue,r],getLengthWithEmptyAndArbitrary=()=>["",isLength,isArbitraryLength],getNumberWithAutoAndArbitrary=()=>["auto",isNumber,isArbitraryValue],getPositions=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],getLineStyles=()=>["solid","dashed","dotted","double","none"],getBlendModes=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],getAlign=()=>["start","end","center","between","around","evenly","stretch"],getZeroAndEmpty=()=>["","0",isArbitraryValue],getBreaks=()=>["auto","avoid","all","avoid-page","page","left","right","column"],getNumber=()=>[isNumber,isArbitraryNumber],getNumberAndArbitrary=()=>[isNumber,isArbitraryValue];return{cacheSize:500,separator:":",theme:{colors:[isAny],spacing:[isLength,isArbitraryLength],blur:["none","",isTshirtSize,isArbitraryValue],brightness:getNumber(),borderColor:[t],borderRadius:["none","","full",isTshirtSize,isArbitraryValue],borderSpacing:getSpacingWithArbitrary(),borderWidth:getLengthWithEmptyAndArbitrary(),contrast:getNumber(),grayscale:getZeroAndEmpty(),hueRotate:getNumberAndArbitrary(),invert:getZeroAndEmpty(),gap:getSpacingWithArbitrary(),gradientColorStops:[t],gradientColorStopPositions:[isPercent,isArbitraryLength],inset:getSpacingWithAutoAndArbitrary(),margin:getSpacingWithAutoAndArbitrary(),opacity:getNumber(),padding:getSpacingWithArbitrary(),saturate:getNumber(),scale:getNumber(),sepia:getZeroAndEmpty(),skew:getNumberAndArbitrary(),space:getSpacingWithArbitrary(),translate:getSpacingWithArbitrary()},classGroups:{aspect:[{aspect:["auto","square","video",isArbitraryValue]}],container:["container"],columns:[{columns:[isTshirtSize]}],"break-after":[{"break-after":getBreaks()}],"break-before":[{"break-before":getBreaks()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...getPositions(),isArbitraryValue]}],overflow:[{overflow:getOverflow()}],"overflow-x":[{"overflow-x":getOverflow()}],"overflow-y":[{"overflow-y":getOverflow()}],overscroll:[{overscroll:getOverscroll()}],"overscroll-x":[{"overscroll-x":getOverscroll()}],"overscroll-y":[{"overscroll-y":getOverscroll()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",isInteger,isArbitraryValue]}],basis:[{basis:getSpacingWithAutoAndArbitrary()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",isArbitraryValue]}],grow:[{grow:getZeroAndEmpty()}],shrink:[{shrink:getZeroAndEmpty()}],order:[{order:["first","last","none",isInteger,isArbitraryValue]}],"grid-cols":[{"grid-cols":[isAny]}],"col-start-end":[{col:["auto",{span:["full",isInteger,isArbitraryValue]},isArbitraryValue]}],"col-start":[{"col-start":getNumberWithAutoAndArbitrary()}],"col-end":[{"col-end":getNumberWithAutoAndArbitrary()}],"grid-rows":[{"grid-rows":[isAny]}],"row-start-end":[{row:["auto",{span:[isInteger,isArbitraryValue]},isArbitraryValue]}],"row-start":[{"row-start":getNumberWithAutoAndArbitrary()}],"row-end":[{"row-end":getNumberWithAutoAndArbitrary()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",isArbitraryValue]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",isArbitraryValue]}],gap:[{gap:[b]}],"gap-x":[{"gap-x":[b]}],"gap-y":[{"gap-y":[b]}],"justify-content":[{justify:["normal",...getAlign()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...getAlign(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...getAlign(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[P]}],px:[{px:[P]}],py:[{py:[P]}],ps:[{ps:[P]}],pe:[{pe:[P]}],pt:[{pt:[P]}],pr:[{pr:[P]}],pb:[{pb:[P]}],pl:[{pl:[P]}],m:[{m:[E]}],mx:[{mx:[E]}],my:[{my:[E]}],ms:[{ms:[E]}],me:[{me:[E]}],mt:[{mt:[E]}],mr:[{mr:[E]}],mb:[{mb:[E]}],ml:[{ml:[E]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",isArbitraryValue,r]}],"min-w":[{"min-w":[isArbitraryValue,r,"min","max","fit"]}],"max-w":[{"max-w":[isArbitraryValue,r,"none","full","min","max","fit","prose",{screen:[isTshirtSize]},isTshirtSize]}],h:[{h:[isArbitraryValue,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[isArbitraryValue,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[isArbitraryValue,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[isArbitraryValue,r,"auto","min","max","fit"]}],"font-size":[{text:["base",isTshirtSize,isArbitraryLength]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",isArbitraryNumber]}],"font-family":[{font:[isAny]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",isArbitraryValue]}],"line-clamp":[{"line-clamp":["none",isNumber,isArbitraryNumber]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",isLength,isArbitraryValue]}],"list-image":[{"list-image":["none",isArbitraryValue]}],"list-style-type":[{list:["none","disc","decimal",isArbitraryValue]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[_]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[_]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...getLineStyles(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",isLength,isArbitraryLength]}],"underline-offset":[{"underline-offset":["auto",isLength,isArbitraryValue]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:getSpacingWithArbitrary()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",isArbitraryValue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",isArbitraryValue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[_]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...getPositions(),isArbitraryPosition]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",isArbitrarySize]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},isArbitraryImage]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[y]}],"gradient-via":[{via:[y]}],"gradient-to":[{to:[y]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[u]}],"border-w-x":[{"border-x":[u]}],"border-w-y":[{"border-y":[u]}],"border-w-s":[{"border-s":[u]}],"border-w-e":[{"border-e":[u]}],"border-w-t":[{"border-t":[u]}],"border-w-r":[{"border-r":[u]}],"border-w-b":[{"border-b":[u]}],"border-w-l":[{"border-l":[u]}],"border-opacity":[{"border-opacity":[_]}],"border-style":[{border:[...getLineStyles(),"hidden"]}],"divide-x":[{"divide-x":[u]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[u]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[_]}],"divide-style":[{divide:getLineStyles()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...getLineStyles()]}],"outline-offset":[{"outline-offset":[isLength,isArbitraryValue]}],"outline-w":[{outline:[isLength,isArbitraryLength]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:getLengthWithEmptyAndArbitrary()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[_]}],"ring-offset-w":[{"ring-offset":[isLength,isArbitraryLength]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",isTshirtSize,isArbitraryShadow]}],"shadow-color":[{shadow:[isAny]}],opacity:[{opacity:[_]}],"mix-blend":[{"mix-blend":getBlendModes()}],"bg-blend":[{"bg-blend":getBlendModes()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[o]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",isTshirtSize,isArbitraryValue]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[g]}],saturate:[{saturate:[S]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[_]}],"backdrop-saturate":[{"backdrop-saturate":[S]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",isArbitraryValue]}],duration:[{duration:getNumberAndArbitrary()}],ease:[{ease:["linear","in","out","in-out",isArbitraryValue]}],delay:[{delay:getNumberAndArbitrary()}],animate:[{animate:["none","spin","ping","pulse","bounce",isArbitraryValue]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[A]}],"scale-x":[{"scale-x":[A]}],"scale-y":[{"scale-y":[A]}],rotate:[{rotate:[isInteger,isArbitraryValue]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",isArbitraryValue]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",isArbitraryValue]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":getSpacingWithArbitrary()}],"scroll-mx":[{"scroll-mx":getSpacingWithArbitrary()}],"scroll-my":[{"scroll-my":getSpacingWithArbitrary()}],"scroll-ms":[{"scroll-ms":getSpacingWithArbitrary()}],"scroll-me":[{"scroll-me":getSpacingWithArbitrary()}],"scroll-mt":[{"scroll-mt":getSpacingWithArbitrary()}],"scroll-mr":[{"scroll-mr":getSpacingWithArbitrary()}],"scroll-mb":[{"scroll-mb":getSpacingWithArbitrary()}],"scroll-ml":[{"scroll-ml":getSpacingWithArbitrary()}],"scroll-p":[{"scroll-p":getSpacingWithArbitrary()}],"scroll-px":[{"scroll-px":getSpacingWithArbitrary()}],"scroll-py":[{"scroll-py":getSpacingWithArbitrary()}],"scroll-ps":[{"scroll-ps":getSpacingWithArbitrary()}],"scroll-pe":[{"scroll-pe":getSpacingWithArbitrary()}],"scroll-pt":[{"scroll-pt":getSpacingWithArbitrary()}],"scroll-pr":[{"scroll-pr":getSpacingWithArbitrary()}],"scroll-pb":[{"scroll-pb":getSpacingWithArbitrary()}],"scroll-pl":[{"scroll-pl":getSpacingWithArbitrary()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",isArbitraryValue]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[isLength,isArbitraryLength,isArbitraryNumber]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}let w=createTailwindMerge(getDefaultConfig)},1318:function(t,r,n){"use strict";n.d(r,{bt:function(){return parseTransaction}});var o=n(17496),i=n(14332),a=n(12e3),c=n(68836),u=n(79338),d=n(44963),f=n(83587),m=n(12729),g=n(25049),b=n(50614),y=n(21279),v=n(51104),w=n(25986);function fromRlp(t,r="hex"){let n=(()=>{if("string"==typeof t){if(t.length>3&&t.length%2!=0)throw new b.P9(t);return(0,v.nr)(t)}return t})(),o=(0,y.q)(n,{recursiveReadLimit:Number.POSITIVE_INFINITY}),i=fromRlpCursor(o,r);return i}function fromRlpCursor(t,r="hex"){if(0===t.bytes.length)return"hex"===r?(0,w.ci)(t.bytes):t.bytes;let n=t.readByte();if(n<128&&t.decrementPosition(1),n<192){let o=readLength(t,n,128),i=t.readBytes(o);return"hex"===r?(0,w.ci)(i):i}let o=readLength(t,n,192);return readList(t,o,r)}function readLength(t,r,n){if(128===n&&r<128)return 1;if(r<=n+55)return r-n;if(r===n+55+1)return t.readUint8();if(r===n+55+2)return t.readUint16();if(r===n+55+3)return t.readUint24();if(r===n+55+4)return t.readUint32();throw new g.G("Invalid RLP prefix")}function readList(t,r,n){let o=t.position,i=[];for(;t.position-o2n**256n-1n)throw new A.Hh({maxFeePerGas:i});if(n&&i&&n>i)throw new A.cs({maxFeePerGas:i,maxPriorityFeePerGas:n})}function assertTransactionEIP2930(t){let{chainId:r,maxPriorityFeePerGas:n,gasPrice:i,maxFeePerGas:c,to:u}=t;if(r<=0)throw new S.hJ({chainId:r});if(u&&!(0,a.U)(u))throw new o.b({address:u});if(n||c)throw new g.G("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(i&&i>2n**256n-1n)throw new A.Hh({maxFeePerGas:i})}function assertTransactionLegacy(t){let{chainId:r,maxPriorityFeePerGas:n,gasPrice:i,maxFeePerGas:c,to:u,accessList:d}=t;if(u&&!(0,a.U)(u))throw new o.b({address:u});if(void 0!==r&&r<=0)throw new S.hJ({chainId:r});if(n||c)throw new g.G("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(i&&i>2n**256n-1n)throw new A.Hh({maxFeePerGas:i});if(d)throw new g.G("`accessList` is not a valid Legacy Transaction attribute.")}function getSerializedTransactionType(t){let r=(0,k.p5)(t,0,1);if("0x03"===r)return"eip4844";if("0x02"===r)return"eip1559";if("0x01"===r)return"eip2930";if("0x"!==r&&(0,m.ly)(r)>=192)return"legacy";throw new i.DU({serializedType:r})}function parseTransaction(t){let r=getSerializedTransactionType(t);return"eip1559"===r?parseTransactionEIP1559(t):"eip2930"===r?parseTransactionEIP2930(t):"eip4844"===r?parseTransactionEIP4844(t):parseTransactionLegacy(t)}function parseTransactionEIP4844(t){let r=toTransactionArray(t),n=4===r.length,o=n?r[0]:r,a=n?r.slice(1):[],[d,f,g,b,y,v,w,E,_,P,S,A,k,C]=o,[T,N,H]=a;if(!(11===o.length||14===o.length))throw new i.XZ({attributes:{chainId:d,nonce:f,maxPriorityFeePerGas:g,maxFeePerGas:b,gas:y,to:v,value:w,data:E,accessList:_,...o.length>9?{v:A,r:k,s:C}:{}},serializedTransaction:t,type:"eip4844"});let D={blobVersionedHashes:S,chainId:(0,m.ly)(d),type:"eip4844"};(0,u.v)(v)&&"0x"!==v&&(D.to=v),(0,u.v)(y)&&"0x"!==y&&(D.gas=(0,m.y_)(y)),(0,u.v)(E)&&"0x"!==E&&(D.data=E),(0,u.v)(f)&&"0x"!==f&&(D.nonce=(0,m.ly)(f)),(0,u.v)(w)&&"0x"!==w&&(D.value=(0,m.y_)(w)),(0,u.v)(P)&&"0x"!==P&&(D.maxFeePerBlobGas=(0,m.y_)(P)),(0,u.v)(b)&&"0x"!==b&&(D.maxFeePerGas=(0,m.y_)(b)),(0,u.v)(g)&&"0x"!==g&&(D.maxPriorityFeePerGas=(0,m.y_)(g)),0!==_.length&&"0x"!==_&&(D.accessList=parseAccessList(_)),T&&N&&H&&(D.sidecars=(0,c.j)({blobs:T,commitments:N,proofs:H})),assertTransactionEIP4844(D);let F=14===o.length?parseEIP155Signature(o):void 0;return{...F,...D}}function parseTransactionEIP1559(t){let r=toTransactionArray(t),[n,o,a,c,d,f,g,b,y,v,w,E]=r;if(!(9===r.length||12===r.length))throw new i.XZ({attributes:{chainId:n,nonce:o,maxPriorityFeePerGas:a,maxFeePerGas:c,gas:d,to:f,value:g,data:b,accessList:y,...r.length>9?{v,r:w,s:E}:{}},serializedTransaction:t,type:"eip1559"});let _={chainId:(0,m.ly)(n),type:"eip1559"};(0,u.v)(f)&&"0x"!==f&&(_.to=f),(0,u.v)(d)&&"0x"!==d&&(_.gas=(0,m.y_)(d)),(0,u.v)(b)&&"0x"!==b&&(_.data=b),(0,u.v)(o)&&"0x"!==o&&(_.nonce=(0,m.ly)(o)),(0,u.v)(g)&&"0x"!==g&&(_.value=(0,m.y_)(g)),(0,u.v)(c)&&"0x"!==c&&(_.maxFeePerGas=(0,m.y_)(c)),(0,u.v)(a)&&"0x"!==a&&(_.maxPriorityFeePerGas=(0,m.y_)(a)),0!==y.length&&"0x"!==y&&(_.accessList=parseAccessList(y)),assertTransactionEIP1559(_);let P=12===r.length?parseEIP155Signature(r):void 0;return{...P,..._}}function parseTransactionEIP2930(t){let r=toTransactionArray(t),[n,o,a,c,d,f,g,b,y,v,w]=r;if(!(8===r.length||11===r.length))throw new i.XZ({attributes:{chainId:n,nonce:o,gasPrice:a,gas:c,to:d,value:f,data:g,accessList:b,...r.length>8?{v:y,r:v,s:w}:{}},serializedTransaction:t,type:"eip2930"});let E={chainId:(0,m.ly)(n),type:"eip2930"};(0,u.v)(d)&&"0x"!==d&&(E.to=d),(0,u.v)(c)&&"0x"!==c&&(E.gas=(0,m.y_)(c)),(0,u.v)(g)&&"0x"!==g&&(E.data=g),(0,u.v)(o)&&"0x"!==o&&(E.nonce=(0,m.ly)(o)),(0,u.v)(f)&&"0x"!==f&&(E.value=(0,m.y_)(f)),(0,u.v)(a)&&"0x"!==a&&(E.gasPrice=(0,m.y_)(a)),0!==b.length&&"0x"!==b&&(E.accessList=parseAccessList(b)),assertTransactionEIP2930(E);let _=11===r.length?parseEIP155Signature(r):void 0;return{..._,...E}}function parseTransactionLegacy(t){let r=fromRlp(t,"hex"),[n,o,a,c,d,f,g,b,y]=r;if(!(6===r.length||9===r.length))throw new i.XZ({attributes:{nonce:n,gasPrice:o,gas:a,to:c,value:d,data:f,...r.length>6?{v:g,r:b,s:y}:{}},serializedTransaction:t,type:"legacy"});let v={type:"legacy"};if((0,u.v)(c)&&"0x"!==c&&(v.to=c),(0,u.v)(a)&&"0x"!==a&&(v.gas=(0,m.y_)(a)),(0,u.v)(f)&&"0x"!==f&&(v.data=f),(0,u.v)(n)&&"0x"!==n&&(v.nonce=(0,m.ly)(n)),(0,u.v)(d)&&"0x"!==d&&(v.value=(0,m.y_)(d)),(0,u.v)(o)&&"0x"!==o&&(v.gasPrice=(0,m.y_)(o)),assertTransactionLegacy(v),6===r.length)return v;let w=(0,u.v)(g)&&"0x"!==g?(0,m.y_)(g):0n;if("0x"===y&&"0x"===b)return w>0&&(v.chainId=Number(w)),v;let E=Number((w-35n)/2n);if(E>0)v.chainId=E;else if(27n!==w&&28n!==w)throw new i.vl({v:w});return v.v=w,v.s=y,v.r=b,v.yParity=w%2n===0n?1:0,v}function toTransactionArray(t){return fromRlp(`0x${t.slice(4)}`,"hex")}function parseAccessList(t){let r=[];for(let n=0;nisHash(t)?t:(0,f.f)(t))})}return r}function parseEIP155Signature(t){let r=t.slice(-3),n="0x"===r[0]||0n===(0,m.y_)(r[0])?27n:28n;return{r:(0,d.gc)(r[1],{size:32}),s:(0,d.gc)(r[2],{size:32}),v:n,yParity:27n===n?0:1}}},85579:function(t,r,n){"use strict";n.d(r,{f:function(){return parseEther}});var o=n(88173);function parseUnits(t,r){let[n,o="0"]=t.split("."),i=n.startsWith("-");if(i&&(n=n.slice(1)),o=o.replace(/(0+)$/,""),0===r)1===Math.round(Number(`.${o}`))&&(n=`${BigInt(n)+1n}`),o="";else if(o.length>r){let[t,i,a]=[o.slice(0,r-1),o.slice(r-1,r),o.slice(r)],c=Math.round(Number(`${i}.${a}`));(o=c>9?`${BigInt(t)+BigInt(1)}0`.padStart(t.length+1,"0"):`${t}${c}`).length>r&&(o=o.slice(1),n=`${BigInt(n)+1n}`),o=o.slice(0,r)}else o=o.padEnd(r,"0");return BigInt(`${i?"-":""}${n}${o}`)}function parseEther(t,r="wei"){return parseUnits(t,o.ez[r])}},22749:function(t,r,n){"use strict";n.d(r,{p:function(){return useWalletClient}});var o=n(30606),i=n(37933),a=n(25986);async function addChain(t,{chain:r}){let{id:n,name:o,nativeCurrency:i,rpcUrls:c,blockExplorers:u}=r;await t.request({method:"wallet_addEthereumChain",params:[{chainId:(0,a.eC)(n),chainName:o,nativeCurrency:i,rpcUrls:c.default.http,blockExplorerUrls:u?Object.values(u).map(({url:t})=>t):void 0}]},{retryCount:0})}var c=n(11747),u=n(66789),d=n(64946),f=n(75121);function assertCurrentChain({chain:t,currentChainId:r}){if(!t)throw new f.Bk;if(r!==t.id)throw new f.Yl({chain:t,currentChainId:r})}var m=n(96469),g=n(14332),b=n(20636);function getTransactionError(t,{docsPath:r,...n}){let o=(()=>{let r=(0,b.k)(t,n);return r instanceof m.cj?t:r})();return new g.mk(o,{docsPath:r,...n})}var y=n(18909),v=n(66404),w=n(15538),E=n(56720),_=n(44474),P=n(15286);async function sendTransaction(t,r){let{account:n=t.account,chain:o=t.chain,accessList:a,blobs:c,data:f,gas:m,gasPrice:g,maxFeePerBlobGas:b,maxFeePerGas:S,maxPriorityFeePerGas:A,nonce:k,to:C,value:T,...N}=r;if(!n)throw new d.o({docsPath:"/docs/actions/wallet/sendTransaction"});let H=(0,u.T)(n);try{let n;if((0,E.F)(r),null!==o&&(n=await (0,w.s)(t,i.L,"getChainId")({}),assertCurrentChain({currentChainId:n,chain:o})),"local"===H.type){let r=await (0,w.s)(t,_.Z,"prepareTransactionRequest")({account:H,accessList:a,blobs:c,chain:o,chainId:n,data:f,gas:m,gasPrice:g,maxFeePerBlobGas:b,maxFeePerGas:S,maxPriorityFeePerGas:A,nonce:k,parameters:[..._.Q,"sidecars"],to:C,value:T,...N}),i=o?.serializers?.transaction,u=await H.signTransaction(r,{serializer:i});return await (0,w.s)(t,P.p,"sendRawTransaction")({serializedTransaction:u})}let u=t.chain?.formatters?.transactionRequest?.format,d=u||v.tG,D=d({...(0,y.K)(N,{format:u}),accessList:a,blobs:c,data:f,from:H.address,gas:m,gasPrice:g,maxFeePerBlobGas:b,maxFeePerGas:S,maxPriorityFeePerGas:A,nonce:k,to:C,value:T});return await t.request({method:"eth_sendTransaction",params:[D]},{retryCount:0})}catch(t){throw getTransactionError(t,{...r,account:H,chain:r.chain||void 0})}}function deployContract(t,r){let{abi:n,args:o,bytecode:i,...a}=r,u=(0,c.w)({abi:n,args:o,bytecode:i});return sendTransaction(t,{...a,data:u})}var S=n(69183);async function getAddresses(t){if(t.account?.type==="local")return[t.account.address];let r=await t.request({method:"eth_accounts"});return r.map(t=>(0,S.x)(t))}async function getPermissions(t){let r=await t.request({method:"wallet_getPermissions"});return r}async function requestAddresses(t){let r=await t.request({method:"eth_requestAccounts"},{retryCount:0});return r.map(t=>(0,S.K)(t))}async function requestPermissions(t,r){return t.request({method:"wallet_requestPermissions",params:[r]},{retryCount:0})}var A=n(80142);async function signTransaction(t,r){let{account:n=t.account,chain:o=t.chain,...c}=r;if(!n)throw new d.o({docsPath:"/docs/actions/wallet/signTransaction"});let f=(0,u.T)(n);(0,E.F)({account:f,...r});let m=await (0,w.s)(t,i.L,"getChainId")({});null!==o&&assertCurrentChain({currentChainId:m,chain:o});let g=o?.formatters||t.chain?.formatters,b=g?.transactionRequest?.format||v.tG;return"local"===f.type?f.signTransaction({...c,chainId:m},{serializer:t.chain?.serializers?.transaction}):await t.request({method:"eth_signTransaction",params:[{...b(c),chainId:(0,a.eC)(m),from:f.address}]},{retryCount:0})}var k=n(44405);async function signTypedData(t,r){let{account:n=t.account,domain:o,message:i,primaryType:a}=r;if(!n)throw new d.o({docsPath:"/docs/actions/wallet/signTypedData"});let c=(0,u.T)(n),f={EIP712Domain:(0,k.cj)({domain:o}),...r.types};if((0,k.iC)({domain:o,message:i,primaryType:a,types:f}),"local"===c.type)return c.signTypedData({domain:o,message:i,primaryType:a,types:f});let m=(0,k.H6)({domain:o,message:i,primaryType:a,types:f});return t.request({method:"eth_signTypedData_v4",params:[c.address,m]},{retryCount:0})}async function switchChain(t,{id:r}){await t.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,a.eC)(r)}]},{retryCount:0})}async function watchAsset(t,r){let n=await t.request({method:"wallet_watchAsset",params:r},{retryCount:0});return n}var C=n(94120);async function writeContract(t,r){let{abi:n,address:o,args:i,dataSuffix:a,functionName:c,...u}=r,d=(0,C.R)({abi:n,args:i,functionName:c});return(0,w.s)(t,sendTransaction,"sendTransaction")({data:`${d}${a?a.replace("0x",""):""}`,to:o,...u})}function walletActions(t){return{addChain:r=>addChain(t,r),deployContract:r=>deployContract(t,r),getAddresses:()=>getAddresses(t),getChainId:()=>(0,i.L)(t),getPermissions:()=>getPermissions(t),prepareTransactionRequest:r=>(0,_.Z)(t,r),requestAddresses:()=>requestAddresses(t),requestPermissions:r=>requestPermissions(t,r),sendRawTransaction:r=>(0,P.p)(t,r),sendTransaction:r=>sendTransaction(t,r),signMessage:r=>(0,A.l)(t,r),signTransaction:r=>signTransaction(t,r),signTypedData:r=>signTypedData(t,r),switchChain:r=>switchChain(t,r),watchAsset:r=>watchAsset(t,r),writeContract:r=>writeContract(t,r)}}var T=n(80667);async function getWalletClient(t,r={}){let n=await (0,T.e)(t,r);return n.extend(walletActions),n.extend(walletActions)}var N=n(60415);function getWalletClientQueryOptions(t,r={}){return{gcTime:0,async queryFn({queryKey:n}){let{connector:o}=r,{connectorUid:i,scopeKey:a,...c}=n[1];return getWalletClient(t,{...c,connector:o})},queryKey:getWalletClientQueryKey(r)}}function getWalletClientQueryKey(t={}){let{connector:r,...n}=t;return["walletClient",{...(0,N.OP)(n),connectorUid:r?.uid}]}var H=n(94488),D=n(21862),F=n(77290),U=n(85540),G=n(577);function useWalletClient(t={}){let{query:r={},...n}=t,i=(0,G.Z)(n),a=(0,o.NL)(),{address:c,connector:u,status:d}=(0,F.m)({config:i}),f=(0,U.x)({config:i}),{queryKey:m,...g}=getWalletClientQueryOptions(i,{...t,chainId:t.chainId??f,connector:t.connector??u}),b=!!("disconnected"!==d&&(r.enabled??!0)),y=(0,H.useRef)(c);return(0,H.useEffect)(()=>{let t=y.current;!c&&t?(a.removeQueries({queryKey:m}),y.current=void 0):c!==t&&(a.invalidateQueries({queryKey:m}),y.current=c)},[c,a]),(0,D.aM)({...r,...g,queryKey:m,enabled:b,staleTime:Number.POSITIVE_INFINITY})}}}]); \ No newline at end of file diff --git a/_next/static/chunks/1748.d00051dbdf4829c8.js b/_next/static/chunks/1748.d00051dbdf4829c8.js new file mode 100644 index 0000000..6863b62 --- /dev/null +++ b/_next/static/chunks/1748.d00051dbdf4829c8.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1748],{71748:function(t,h,l){l.r(h),l.d(h,{default:function(){return a}});var a='data:image/svg+xml,'}}]); \ No newline at end of file diff --git a/_next/static/chunks/1767.0614b14efffd81bc.js b/_next/static/chunks/1767.0614b14efffd81bc.js new file mode 100644 index 0000000..7ab4db5 --- /dev/null +++ b/_next/static/chunks/1767.0614b14efffd81bc.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1767],{61767:function(l,a,c){c.r(a),c.d(a,{default:function(){return s}});var s='data:image/svg+xml,'}}]); \ No newline at end of file diff --git a/_next/static/chunks/190-6c159eb307c9114b.js b/_next/static/chunks/190-6c159eb307c9114b.js deleted file mode 100644 index 5cb3ee2..0000000 --- a/_next/static/chunks/190-6c159eb307c9114b.js +++ /dev/null @@ -1,5 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[190],{4667:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return addLocale}}),r(60583);let addLocale=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&o(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,o=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>o,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{o=!0,t.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(e)}})}function getDynamicProps(e){let[t,r]=i.version.split(".",2),n=parseInt(t,10),o=parseInt(r,10);return n>18||18===n&&o>=3?{fetchPriority:e}:{fetchpriority:e}}let g=(0,i.forwardRef)((e,t)=>{let{src:r,srcSet:n,sizes:o,height:a,width:l,decoding:u,className:s,style:c,fetchPriority:f,placeholder:d,loading:p,unoptimized:g,fill:m,onLoadRef:h,onLoadingCompleteRef:y,setBlurComplete:b,setShowAltText:v,onLoad:_,onError:P,...S}=e;return i.default.createElement("img",{...S,...getDynamicProps(f),loading:p,width:l,height:a,decoding:u,"data-nimg":m?"fill":"1",className:s,style:c,sizes:o,srcSet:n,src:r,ref:(0,i.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(P&&(e.src=e.src),e.complete&&handleLoading(e,d,h,y,b,g))},[r,d,h,y,b,P,g,t]),onLoad:e=>{let t=e.currentTarget;handleLoading(t,d,h,y,b,g)},onError:e=>{v(!0),"empty"!==d&&b(!0),P&&P(e)}})});function ImagePreload(e){let{isAppRouter:t,imgAttributes:r}=e,n={as:"image",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,...getDynamicProps(r.fetchPriority)};return t&&a.default.preload?(a.default.preload(r.src,n),null):i.default.createElement(l.default,null,i.default.createElement("link",{key:"__nimg-"+r.src+r.srcSet+r.sizes,rel:"preload",href:r.srcSet?void 0:r.src,...n}))}let m=(0,i.forwardRef)((e,t)=>{let r=(0,i.useContext)(f.RouterContext),n=(0,i.useContext)(c.ImageConfigContext),o=(0,i.useMemo)(()=>{let e=p||n||s.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),r=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:r}},[n]),{onLoad:a,onLoadingComplete:l}=e,m=(0,i.useRef)(a);(0,i.useEffect)(()=>{m.current=a},[a]);let h=(0,i.useRef)(l);(0,i.useEffect)(()=>{h.current=l},[l]);let[y,b]=(0,i.useState)(!1),[v,_]=(0,i.useState)(!1),{props:P,meta:S}=(0,u.getImgProps)(e,{defaultLoader:d.default,imgConf:o,blurComplete:y,showAltText:v});return i.default.createElement(i.default.Fragment,null,i.default.createElement(g,{...P,unoptimized:S.unoptimized,placeholder:S.placeholder,fill:S.fill,onLoadRef:m,onLoadingCompleteRef:h,setBlurComplete:b,setShowAltText:_,ref:t}),S.priority?i.default.createElement(ImagePreload,{isAppRouter:!r,imgAttributes:P}):null)});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},32063:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return b}});let n=r(97295),o=n._(r(34270)),i=r(28898),a=r(96778),l=r(96685),u=r(27505),s=r(4667),c=r(58958),f=r(78111),d=r(19590),p=r(40161),g=r(64945),m=r(98411),h=new Set;function prefetch(e,t,r,n,o,i){if(!i&&!(0,a.isLocalURL)(t))return;if(!n.bypassPrefetchedCheck){let o=void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0,i=t+"%"+r+"%"+o;if(h.has(i))return;h.add(i)}let l=i?e.prefetch(t,o):e.prefetch(t,r,n);Promise.resolve(l).catch(e=>{})}function isModifiedEvent(e){let t=e.currentTarget,r=t.getAttribute("target");return r&&"_self"!==r||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}function linkClicked(e,t,r,n,i,l,u,s,c,f){let{nodeName:d}=e.currentTarget,p="A"===d.toUpperCase();if(p&&(isModifiedEvent(e)||!c&&!(0,a.isLocalURL)(r)))return;e.preventDefault();let navigate=()=>{let e=null==u||u;"beforePopState"in t?t[i?"replace":"push"](r,n,{shallow:l,locale:s,scroll:e}):t[i?"replace":"push"](n||r,{forceOptimisticNavigation:!f,scroll:e})};c?o.default.startTransition(navigate):navigate()}function formatStringOrUrl(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let y=o.default.forwardRef(function(e,t){let r,n;let{href:a,as:l,children:h,prefetch:y=null,passHref:b,replace:v,shallow:_,scroll:P,locale:S,onClick:O,onMouseEnter:R,onTouchStart:w,legacyBehavior:E=!1,...j}=e;r=h,E&&("string"==typeof r||"number"==typeof r)&&(r=o.default.createElement("a",null,r));let x=o.default.useContext(c.RouterContext),C=o.default.useContext(f.AppRouterContext),M=null!=x?x:C,I=!x,N=!1!==y,k=null===y?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,{href:U,as:L}=o.default.useMemo(()=>{if(!x){let e=formatStringOrUrl(a);return{href:e,as:l?formatStringOrUrl(l):e}}let[e,t]=(0,i.resolveHref)(x,a,!0);return{href:e,as:l?(0,i.resolveHref)(x,l):t||e}},[x,a,l]),z=o.default.useRef(U),A=o.default.useRef(L);E&&(n=o.default.Children.only(r));let T=E?n&&"object"==typeof n&&n.ref:t,[D,W,F]=(0,d.useIntersection)({rootMargin:"200px"}),B=o.default.useCallback(e=>{(A.current!==L||z.current!==U)&&(F(),A.current=L,z.current=U),D(e),T&&("function"==typeof T?T(e):"object"==typeof T&&(T.current=e))},[L,T,U,F,D]);o.default.useEffect(()=>{M&&W&&N&&prefetch(M,U,L,{locale:S},{kind:k},I)},[L,U,W,S,N,null==x?void 0:x.locale,M,I,k]);let q={ref:B,onClick(e){E||"function"!=typeof O||O(e),E&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),M&&!e.defaultPrevented&&linkClicked(e,M,U,L,v,_,P,S,I,N)},onMouseEnter(e){E||"function"!=typeof R||R(e),E&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),M&&(N||!I)&&prefetch(M,U,L,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:k},I)},onTouchStart(e){E||"function"!=typeof w||w(e),E&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),M&&(N||!I)&&prefetch(M,U,L,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:k},I)}};if((0,u.isAbsoluteUrl)(L))q.href=L;else if(!E||b||"a"===n.type&&!("href"in n.props)){let e=void 0!==S?S:null==x?void 0:x.locale,t=(null==x?void 0:x.isLocaleDomain)&&(0,p.getDomainLocale)(L,e,null==x?void 0:x.locales,null==x?void 0:x.domainLocales);q.href=t||(0,g.addBasePath)((0,s.addLocale)(L,e,null==x?void 0:x.defaultLocale))}return E?o.default.cloneElement(n,q):o.default.createElement("a",{...j,...q},r)}),b=y;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},23592:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{requestIdleCallback:function(){return r},cancelIdleCallback:function(){return n}});let r="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},n="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},28898:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return resolveHref}});let n=r(64779),o=r(96685),i=r(54534),a=r(27505),l=r(60583),u=r(96778),s=r(50045),c=r(24155);function resolveHref(e,t,r){let f;let d="string"==typeof t?t:(0,o.formatWithValidation)(t),p=d.match(/^[a-zA-Z]{1,}:\/\//),g=p?d.slice(p[0].length):d,m=g.split("?",1);if((m[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+d+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,a.normalizeRepeatedSlashes)(g);d=(p?p[0]:"")+t}if(!(0,u.isLocalURL)(d))return r?[d]:d;try{f=new URL(d.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){f=new URL("/","http://n")}try{let e=new URL(d,f);e.pathname=(0,l.normalizePathTrailingSlash)(e.pathname);let t="";if((0,s.isDynamicRoute)(e.pathname)&&e.searchParams&&r){let r=(0,n.searchParamsToUrlQuery)(e.searchParams),{result:a,params:l}=(0,c.interpolateAs)(e.pathname,e.pathname,r);a&&(t=(0,o.formatWithValidation)({pathname:a,hash:e.hash,query:(0,i.omit)(r,l)}))}let a=e.origin===f.origin?e.href.slice(e.origin.length):e.href;return r?[a,t||a]:a}catch(e){return r?[d]:d}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},19590:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return useIntersection}});let n=r(34270),o=r(23592),i="function"==typeof IntersectionObserver,a=new Map,l=[];function createObserver(e){let t;let r={root:e.root||null,margin:e.rootMargin||""},n=l.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=a.get(n)))return t;let o=new Map,i=new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e);return t={id:r,observer:i,elements:o},l.push(r),a.set(r,t),t}function observe(e,t,r){let{id:n,observer:o,elements:i}=createObserver(r);return i.set(e,t),o.observe(e),function(){if(i.delete(e),o.unobserve(e),0===i.size){o.disconnect(),a.delete(n);let e=l.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&l.splice(e,1)}}}function useIntersection(e){let{rootRef:t,rootMargin:r,disabled:a}=e,l=a||!i,[u,s]=(0,n.useState)(!1),c=(0,n.useRef)(null),f=(0,n.useCallback)(e=>{c.current=e},[]);(0,n.useEffect)(()=>{if(i){if(l||u)return;let e=c.current;if(e&&e.tagName){let n=observe(e,e=>e&&s(e),{root:null==t?void 0:t.current,rootMargin:r});return n}}else if(!u){let e=(0,o.requestIdleCallback)(()=>s(!0));return()=>(0,o.cancelIdleCallback)(e)}},[l,r,t,u,c.current]);let d=(0,n.useCallback)(()=>{s(!1)},[]);return[f,u,d]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9095:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return i}});let n=r(97295),o=n._(r(34270)),i=o.default.createContext({})},68408:function(e,t){"use strict";function isInAmpMode(e){let{ampFirst:t=!1,hybrid:r=!1,hasQuery:n=!1}=void 0===e?{}:e;return t||r&&n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return isInAmpMode}})},47264:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return escapeStringRegexp}});let r=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function escapeStringRegexp(e){return r.test(e)?e.replace(n,"\\$&"):e}},51130:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return getImgProps}}),r(55474);let n=r(78366),o=r(89354);function isStaticRequire(e){return void 0!==e.default}function isStaticImageData(e){return void 0!==e.src}function isStaticImport(e){return"object"==typeof e&&(isStaticRequire(e)||isStaticImageData(e))}function getInt(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function getWidths(e,t,r){let{deviceSizes:n,allSizes:o}=e;if(r){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(r);n)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:o.filter(t=>t>=n[0]*e),kind:"w"}}return{widths:o,kind:"w"}}if("number"!=typeof t)return{widths:n,kind:"w"};let i=[...new Set([t,2*t].map(e=>o.find(t=>t>=e)||o[o.length-1]))];return{widths:i,kind:"x"}}function generateImgAttrs(e){let{config:t,src:r,unoptimized:n,width:o,quality:i,sizes:a,loader:l}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:u,kind:s}=getWidths(t,o,a),c=u.length-1;return{sizes:a||"w"!==s?a:"100vw",srcSet:u.map((e,n)=>l({config:t,src:r,quality:i,width:e})+" "+("w"===s?e:n+1)+s).join(", "),src:l({config:t,src:r,quality:i,width:u[c]})}}function getImgProps(e,t){let r,i,a,{src:l,sizes:u,unoptimized:s=!1,priority:c=!1,loading:f,className:d,quality:p,width:g,height:m,fill:h=!1,style:y,onLoad:b,onLoadingComplete:v,placeholder:_="empty",blurDataURL:P,fetchPriority:S,layout:O,objectFit:R,objectPosition:w,lazyBoundary:E,lazyRoot:j,...x}=e,{imgConf:C,showAltText:M,blurComplete:I,defaultLoader:N}=t,k=C||o.imageConfigDefault;if("allSizes"in k)r=k;else{let e=[...k.deviceSizes,...k.imageSizes].sort((e,t)=>e-t),t=k.deviceSizes.sort((e,t)=>e-t);r={...k,allSizes:e,deviceSizes:t}}let U=x.loader||N;delete x.loader,delete x.srcSet;let L="__next_img_default"in U;if(L){if("custom"===r.loader)throw Error('Image with src "'+l+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=U;U=t=>{let{config:r,...n}=t;return e(n)}}if(O){"fill"===O&&(h=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[O];e&&(y={...y,...e});let t={responsive:"100vw",fill:"100vw"}[O];t&&!u&&(u=t)}let z="",A=getInt(g),T=getInt(m);if(isStaticImport(l)){let e=isStaticRequire(l)?l.default:l;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(i=e.blurWidth,a=e.blurHeight,P=P||e.blurDataURL,z=e.src,!h){if(A||T){if(A&&!T){let t=A/e.width;T=Math.round(e.height*t)}else if(!A&&T){let t=T/e.height;A=Math.round(e.width*t)}}else A=e.width,T=e.height}}let D=!c&&("lazy"===f||void 0===f);(!(l="string"==typeof l?l:z)||l.startsWith("data:")||l.startsWith("blob:"))&&(s=!0,D=!1),r.unoptimized&&(s=!0),L&&l.endsWith(".svg")&&!r.dangerouslyAllowSVG&&(s=!0),c&&(S="high");let W=getInt(p),F=Object.assign(h?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:R,objectPosition:w}:{},M?{}:{color:"transparent"},y),B=I||"empty"===_?null:"blur"===_?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:A,heightInt:T,blurWidth:i,blurHeight:a,blurDataURL:P||"",objectFit:F.objectFit})+'")':'url("'+_+'")',q=B?{backgroundSize:F.objectFit||"cover",backgroundPosition:F.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:B}:{},G=generateImgAttrs({config:r,src:l,unoptimized:s,width:A,quality:W,sizes:u,loader:U}),K={...x,loading:D?"lazy":f,fetchPriority:S,width:A,height:T,decoding:"async",className:d,style:{...F,...q},sizes:G.sizes,srcSet:G.srcSet,src:G.src},H={unoptimized:s,priority:c,placeholder:_,fill:h};return{props:K,meta:H}}},21086:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{defaultHead:function(){return defaultHead},default:function(){return f}});let n=r(97295),o=r(3589),i=o._(r(34270)),a=n._(r(49728)),l=r(9095),u=r(50451),s=r(68408);function defaultHead(e){void 0===e&&(e=!1);let t=[i.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(i.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function onlyReactElement(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===i.default.Fragment?e.concat(i.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}r(55474);let c=["name","httpEquiv","charSet","itemProp"];function unique(){let e=new Set,t=new Set,r=new Set,n={};return o=>{let i=!0,a=!1;if(o.key&&"number"!=typeof o.key&&o.key.indexOf("$")>0){a=!0;let t=o.key.slice(o.key.indexOf("$")+1);e.has(t)?i=!1:e.add(t)}switch(o.type){case"title":case"base":t.has(o.type)?i=!1:t.add(o.type);break;case"meta":for(let e=0,t=c.length;e{let n=e.key||t;if(!r&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,i.default.cloneElement(e,t)}return i.default.cloneElement(e,{key:n})})}function Head(e){let{children:t}=e,r=(0,i.useContext)(l.AmpStateContext),n=(0,i.useContext)(u.HeadManagerContext);return i.default.createElement(a.default,{reduceComponentsToState:reduceComponents,headManager:n,inAmpMode:(0,s.isInAmpMode)(r)},t)}let f=Head;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},78366:function(e,t){"use strict";function getImageBlurSvg(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:o,blurDataURL:i,objectFit:a}=e,l=n?40*n:t,u=o?40*o:r,s=l&&u?"viewBox='0 0 "+l+" "+u+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+s+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(s?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+i+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return getImageBlurSvg}})},86764:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return a}});let n=r(97295),o=n._(r(34270)),i=r(89354),a=o.default.createContext(i.imageConfigDefault)},89354:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});let r=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",remotePatterns:[],unoptimized:!1}},165:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{unstable_getImgProps:function(){return unstable_getImgProps},default:function(){return u}});let n=r(97295),o=r(51130),i=r(55474),a=r(24673),l=n._(r(31015)),unstable_getImgProps=e=>{(0,i.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");let{props:t}=(0,o.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}},u=a.Image},31015:function(e,t){"use strict";function defaultLoader(e){let{config:t,src:r,width:n,quality:o}=e;return t.path+"?url="+encodeURIComponent(r)+"&w="+n+"&q="+(o||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),defaultLoader.__next_img_default=!0;let r=defaultLoader},58958:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return i}});let n=r(97295),o=n._(r(34270)),i=o.default.createContext(null)},96685:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{formatUrl:function(){return formatUrl},urlObjectKeys:function(){return a},formatWithValidation:function(){return formatWithValidation}});let n=r(3589),o=n._(r(64779)),i=/https?|ftp|gopher|file/;function formatUrl(e){let{auth:t,hostname:r}=e,n=e.protocol||"",a=e.pathname||"",l=e.hash||"",u=e.query||"",s=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?s=t+e.host:r&&(s=t+(~r.indexOf(":")?"["+r+"]":r),e.port&&(s+=":"+e.port)),u&&"object"==typeof u&&(u=String(o.urlQueryToSearchParams(u)));let c=e.search||u&&"?"+u||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||i.test(n))&&!1!==s?(s="//"+(s||""),a&&"/"!==a[0]&&(a="/"+a)):s||(s=""),l&&"#"!==l[0]&&(l="#"+l),c&&"?"!==c[0]&&(c="?"+c),""+n+s+(a=a.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+l}let a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function formatWithValidation(e){return formatUrl(e)}},50045:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});let n=r(79011),o=r(25738)},24155:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return interpolateAs}});let n=r(70415),o=r(73268);function interpolateAs(e,t,r){let i="",a=(0,o.getRouteRegex)(e),l=a.groups,u=(t!==e?(0,n.getRouteMatcher)(a)(t):"")||r;i=e;let s=Object.keys(l);return s.every(e=>{let t=u[e]||"",{repeat:r,optional:n}=l[e],o="["+(r?"...":"")+e+"]";return n&&(o=(t?"":"/")+"["+o+"]"),r&&!Array.isArray(t)&&(t=[t]),(n||e in u)&&(i=i.replace(o,r?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(i=""),{params:s,result:i}}},25738:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return isDynamicRoute}});let r=/\/\[[^/]+?\](?=\/|$)/;function isDynamicRoute(e){return r.test(e)}},96778:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return isLocalURL}});let n=r(27505),o=r(24119);function isLocalURL(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},54534:function(e,t){"use strict";function omit(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return omit}})},64779:function(e,t){"use strict";function searchParamsToUrlQuery(e){let t={};return e.forEach((e,r)=>{void 0===t[r]?t[r]=e:Array.isArray(t[r])?t[r].push(e):t[r]=[t[r],e]}),t}function stringifyUrlQueryParam(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function urlQueryToSearchParams(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[r,n]=e;Array.isArray(n)?n.forEach(e=>t.append(r,stringifyUrlQueryParam(e))):t.set(r,stringifyUrlQueryParam(n))}),t}function assign(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,r)=>e.append(r,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{searchParamsToUrlQuery:function(){return searchParamsToUrlQuery},urlQueryToSearchParams:function(){return urlQueryToSearchParams},assign:function(){return assign}})},70415:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return getRouteMatcher}});let n=r(27505);function getRouteMatcher(e){let{re:t,groups:r}=e;return e=>{let o=t.exec(e);if(!o)return!1;let decode=e=>{try{return decodeURIComponent(e)}catch(e){throw new n.DecodeError("failed to decode param")}},i={};return Object.keys(r).forEach(e=>{let t=r[e],n=o[t.pos];void 0!==n&&(i[e]=~n.indexOf("/")?n.split("/").map(e=>decode(e)):t.repeat?[decode(n)]:decode(n))}),i}}},73268:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getRouteRegex:function(){return getRouteRegex},getNamedRouteRegex:function(){return getNamedRouteRegex},getNamedMiddlewareRegex:function(){return getNamedMiddlewareRegex}});let n=r(82957),o=r(47264),i=r(42932);function parseParameter(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let r=e.startsWith("...");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}function getParametrizedRoute(e){let t=(0,i.removeTrailingSlash)(e).slice(1).split("/"),r={},a=1;return{parameterizedRoute:t.map(e=>{let t=n.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),i=e.match(/\[((?:\[.*\])|.+)\]/);if(t&&i){let{key:e,optional:n,repeat:l}=parseParameter(i[1]);return r[e]={pos:a++,repeat:l,optional:n},"/"+(0,o.escapeStringRegexp)(t)+"([^/]+?)"}if(!i)return"/"+(0,o.escapeStringRegexp)(e);{let{key:e,repeat:t,optional:n}=parseParameter(i[1]);return r[e]={pos:a++,repeat:t,optional:n},t?n?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:r}}function getRouteRegex(e){let{parameterizedRoute:t,groups:r}=getParametrizedRoute(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:r}}function buildGetSafeRouteKey(){let e=0;return()=>{let t="",r=++e;for(;r>0;)t+=String.fromCharCode(97+(r-1)%26),r=Math.floor((r-1)/26);return t}}function getSafeKeyFromSegment(e){let{getSafeRouteKey:t,segment:r,routeKeys:n,keyPrefix:o}=e,{key:i,optional:a,repeat:l}=parseParameter(r),u=i.replace(/\W/g,"");o&&(u=""+o+u);let s=!1;return(0===u.length||u.length>30)&&(s=!0),isNaN(parseInt(u.slice(0,1)))||(s=!0),s&&(u=t()),o?n[u]=""+o+i:n[u]=""+i,l?a?"(?:/(?<"+u+">.+?))?":"/(?<"+u+">.+?)":"/(?<"+u+">[^/]+?)"}function getNamedParametrizedRoute(e,t){let r=(0,i.removeTrailingSlash)(e).slice(1).split("/"),a=buildGetSafeRouteKey(),l={};return{namedParameterizedRoute:r.map(e=>{let r=n.INTERCEPTION_ROUTE_MARKERS.some(t=>e.startsWith(t)),i=e.match(/\[((?:\[.*\])|.+)\]/);return r&&i?getSafeKeyFromSegment({getSafeRouteKey:a,segment:i[1],routeKeys:l,keyPrefix:t?"nxtI":void 0}):i?getSafeKeyFromSegment({getSafeRouteKey:a,segment:i[1],routeKeys:l,keyPrefix:t?"nxtP":void 0}):"/"+(0,o.escapeStringRegexp)(e)}).join(""),routeKeys:l}}function getNamedRouteRegex(e,t){let r=getNamedParametrizedRoute(e,t);return{...getRouteRegex(e),namedRegex:"^"+r.namedParameterizedRoute+"(?:/)?$",routeKeys:r.routeKeys}}function getNamedMiddlewareRegex(e,t){let{parameterizedRoute:r}=getParametrizedRoute(e),{catchAll:n=!0}=t;if("/"===r)return{namedRegex:"^/"+(n?".*":"")+"$"};let{namedParameterizedRoute:o}=getNamedParametrizedRoute(e,!1);return{namedRegex:"^"+o+(n?"(?:(/.*)?)":"")+"$"}}},79011:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return getSortedRoutes}});let UrlNode=class UrlNode{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let r=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&r.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');r.unshift(t)}return null!==this.restSlugName&&r.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&r.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),r}_insert(e,t,r){if(0===e.length){this.placeholder=!1;return}if(r)throw Error("Catch-all must be the last part of the URL.");let n=e[0];if(n.startsWith("[")&&n.endsWith("]")){let o=n.slice(1,-1),i=!1;if(o.startsWith("[")&&o.endsWith("]")&&(o=o.slice(1,-1),i=!0),o.startsWith("...")&&(o=o.substring(3),r=!0),o.startsWith("[")||o.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+o+"').");if(o.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+o+"').");function handleSlug(e,r){if(null!==e&&e!==r)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+r+"').");t.forEach(e=>{if(e===r)throw Error('You cannot have the same slug name "'+r+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===n.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+r+'" differ only by non-word symbols within a single dynamic path')}),t.push(r)}if(r){if(i){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');handleSlug(this.optionalRestSlugName,o),this.optionalRestSlugName=o,n="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');handleSlug(this.restSlugName,o),this.restSlugName=o,n="[...]"}}else{if(i)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');handleSlug(this.slugName,o),this.slugName=o,n="[]"}}this.children.has(n)||this.children.set(n,new UrlNode),this.children.get(n)._insert(e.slice(1),t,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}};function getSortedRoutes(e){let t=new UrlNode;return e.forEach(e=>t.insert(e)),t.smoosh()}},49728:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return SideEffect}});let n=r(34270),o=n.useLayoutEffect,i=n.useEffect;function SideEffect(e){let{headManager:t,reduceComponentsToState:r}=e;function emitChange(){if(t&&t.mountedInstances){let o=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(o,e))}}return o(()=>{var r;return null==t||null==(r=t.mountedInstances)||r.add(e.children),()=>{var r;null==t||null==(r=t.mountedInstances)||r.delete(e.children)}}),o(()=>(t&&(t._pendingUpdate=emitChange),()=>{t&&(t._pendingUpdate=emitChange)})),i(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},27505:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{WEB_VITALS:function(){return r},execOnce:function(){return execOnce},isAbsoluteUrl:function(){return isAbsoluteUrl},getLocationOrigin:function(){return getLocationOrigin},getURL:function(){return getURL},getDisplayName:function(){return getDisplayName},isResSent:function(){return isResSent},normalizeRepeatedSlashes:function(){return normalizeRepeatedSlashes},loadGetInitialProps:function(){return loadGetInitialProps},SP:function(){return o},ST:function(){return i},DecodeError:function(){return DecodeError},NormalizeError:function(){return NormalizeError},PageNotFoundError:function(){return PageNotFoundError},MissingStaticPage:function(){return MissingStaticPage},MiddlewareNotFoundError:function(){return MiddlewareNotFoundError},stringifyError:function(){return stringifyError}});let r=["CLS","FCP","FID","INP","LCP","TTFB"];function execOnce(e){let t,r=!1;return function(){for(var n=arguments.length,o=Array(n),i=0;in.test(e);function getLocationOrigin(){let{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function getURL(){let{href:e}=window.location,t=getLocationOrigin();return e.substring(t.length)}function getDisplayName(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function isResSent(e){return e.finished||e.headersSent}function normalizeRepeatedSlashes(e){let t=e.split("?"),r=t[0];return r.replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function loadGetInitialProps(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await loadGetInitialProps(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&isResSent(r))return n;if(!n){let t='"'+getDisplayName(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.';throw Error(t)}return n}let o="undefined"!=typeof performance,i=o&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);let DecodeError=class DecodeError extends Error{};let NormalizeError=class NormalizeError extends Error{};let PageNotFoundError=class PageNotFoundError extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}};let MissingStaticPage=class MissingStaticPage extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}};let MiddlewareNotFoundError=class MiddlewareNotFoundError extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}};function stringifyError(e){return JSON.stringify({message:e.message,stack:e.stack})}},55474:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return warnOnce}});let warnOnce=e=>{}},15167:function(e,t,r){e.exports=r(165)},82307:function(e,t,r){e.exports=r(32063)},75475:function(e,t,r){e.exports=r(13345)},46908:function(e,t,r){"use strict";r.d(t,{w_:function(){return GenIcon}});var n=r(34270),o={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},i=n.createContext&&n.createContext(o),__assign=function(){return(__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function Tree2Element(e){return e&&e.map(function(e,t){return n.createElement(e.tag,__assign({key:t},e.attr),Tree2Element(e.child))})}function GenIcon(e){return function(t){return n.createElement(IconBase,__assign({attr:__assign({},e.attr)},t),Tree2Element(e.child))}}function IconBase(e){var elem=function(t){var r,o=e.attr,i=e.size,a=e.title,l=__rest(e,["attr","size","title"]),u=i||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),n.createElement("svg",__assign({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,o,l,{className:r,style:__assign(__assign({color:e.color||t.color},t.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),a&&n.createElement("title",null,a),e.children)};return void 0!==i?n.createElement(i.Consumer,null,function(e){return elem(e)}):elem(o)}},43359:function(e,t){var r;/*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/!function(){"use strict";var n={}.hasOwnProperty;function classNames(){for(var e="",t=0;tclass Keccak extends a{constructor(t,i,n,a,o){super(o),this._rate=t,this._capacity=i,this._delimitedSuffix=n,this._hashBitLength=a,this._options=o,this._state=new e,this._state.initialize(t,i),this._finalized=!1}_transform(e,t,i){let n=null;try{this.update(e,t)}catch(e){n=e}i(n)}_flush(e){let t=null;try{this.push(this.digest())}catch(e){t=e}e(t)}update(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw TypeError("Data must be a string or a buffer");if(this._finalized)throw Error("Digest already called");return n.isBuffer(e)||(e=n.from(e,t)),this._state.absorb(e),this}digest(e){if(this._finalized)throw Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let t=this._state.squeeze(this._hashBitLength/8);return void 0!==e&&(t=t.toString(e)),this._resetState(),t}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let e=new Keccak(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}},44843:function(e,t,i){var n=i(61900).Buffer;let{Transform:a}=i(72157);e.exports=e=>class Shake extends a{constructor(t,i,n,a){super(a),this._rate=t,this._capacity=i,this._delimitedSuffix=n,this._options=a,this._state=new e,this._state.initialize(t,i),this._finalized=!1}_transform(e,t,i){let n=null;try{this.update(e,t)}catch(e){n=e}i(n)}_flush(){}_read(e){this.push(this.squeeze(e))}update(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw TypeError("Data must be a string or a buffer");if(this._finalized)throw Error("Squeeze already called");return n.isBuffer(e)||(e=n.from(e,t)),this._state.absorb(e),this}squeeze(e,t){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let i=this._state.squeeze(e);return void 0!==t&&(i=i.toString(t)),i}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let e=new Shake(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}},70512:function(e,t){let i=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];t.p1600=function(e){for(let t=0;t<24;++t){let n=e[0]^e[10]^e[20]^e[30]^e[40],a=e[1]^e[11]^e[21]^e[31]^e[41],o=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],l=e[4]^e[14]^e[24]^e[34]^e[44],h=e[5]^e[15]^e[25]^e[35]^e[45],u=e[6]^e[16]^e[26]^e[36]^e[46],f=e[7]^e[17]^e[27]^e[37]^e[47],c=e[8]^e[18]^e[28]^e[38]^e[48],d=e[9]^e[19]^e[29]^e[39]^e[49],p=c^(o<<1|s>>>31),_=d^(s<<1|o>>>31),b=e[0]^p,g=e[1]^_,y=e[10]^p,w=e[11]^_,m=e[20]^p,v=e[21]^_,S=e[30]^p,E=e[31]^_,R=e[40]^p,k=e[41]^_;p=n^(l<<1|h>>>31),_=a^(h<<1|l>>>31);let T=e[2]^p,C=e[3]^_,B=e[12]^p,x=e[13]^_,M=e[22]^p,L=e[23]^_,P=e[32]^p,I=e[33]^_,N=e[42]^p,O=e[43]^_;p=o^(u<<1|f>>>31),_=s^(f<<1|u>>>31);let A=e[4]^p,D=e[5]^_,W=e[14]^p,j=e[15]^_,q=e[24]^p,z=e[25]^_,U=e[34]^p,F=e[35]^_,H=e[44]^p,K=e[45]^_;p=l^(c<<1|d>>>31),_=h^(d<<1|c>>>31);let G=e[6]^p,V=e[7]^_,Y=e[16]^p,J=e[17]^_,Q=e[26]^p,X=e[27]^_,Z=e[36]^p,$=e[37]^_,ee=e[46]^p,et=e[47]^_;p=u^(n<<1|a>>>31),_=f^(a<<1|n>>>31);let er=e[8]^p,ei=e[9]^_,en=e[18]^p,ea=e[19]^_,eo=e[28]^p,es=e[29]^_,el=e[38]^p,eh=e[39]^_,eu=e[48]^p,ef=e[49]^_,ec=w<<4|y>>>28,ed=y<<4|w>>>28,ep=m<<3|v>>>29,e_=v<<3|m>>>29,eb=E<<9|S>>>23,eg=S<<9|E>>>23,ey=R<<18|k>>>14,ew=k<<18|R>>>14,em=T<<1|C>>>31,ev=C<<1|T>>>31,eS=x<<12|B>>>20,eE=B<<12|x>>>20,eR=M<<10|L>>>22,ek=L<<10|M>>>22,eT=I<<13|P>>>19,eC=P<<13|I>>>19,eB=N<<2|O>>>30,ex=O<<2|N>>>30,eM=D<<30|A>>>2,eL=A<<30|D>>>2,eP=W<<6|j>>>26,eI=j<<6|W>>>26,eN=z<<11|q>>>21,eO=q<<11|z>>>21,eA=U<<15|F>>>17,eD=F<<15|U>>>17,eW=K<<29|H>>>3,ej=H<<29|K>>>3,eq=G<<28|V>>>4,ez=V<<28|G>>>4,eU=J<<23|Y>>>9,eF=Y<<23|J>>>9,eH=Q<<25|X>>>7,eK=X<<25|Q>>>7,eG=Z<<21|$>>>11,eV=$<<21|Z>>>11,eY=et<<24|ee>>>8,eJ=ee<<24|et>>>8,eQ=er<<27|ei>>>5,eX=ei<<27|er>>>5,eZ=en<<20|ea>>>12,e$=ea<<20|en>>>12,e0=es<<7|eo>>>25,e1=eo<<7|es>>>25,e2=el<<8|eh>>>24,e3=eh<<8|el>>>24,e4=eu<<14|ef>>>18,e8=ef<<14|eu>>>18;e[0]=b^~eS&eN,e[1]=g^~eE&eO,e[10]=eq^~eZ&ep,e[11]=ez^~e$&e_,e[20]=em^~eP&eH,e[21]=ev^~eI&eK,e[30]=eQ^~ec&eR,e[31]=eX^~ed&ek,e[40]=eM^~eU&e0,e[41]=eL^~eF&e1,e[2]=eS^~eN&eG,e[3]=eE^~eO&eV,e[12]=eZ^~ep&eT,e[13]=e$^~e_&eC,e[22]=eP^~eH&e2,e[23]=eI^~eK&e3,e[32]=ec^~eR&eA,e[33]=ed^~ek&eD,e[42]=eU^~e0&eb,e[43]=eF^~e1&eg,e[4]=eN^~eG&e4,e[5]=eO^~eV&e8,e[14]=ep^~eT&eW,e[15]=e_^~eC&ej,e[24]=eH^~e2&ey,e[25]=eK^~e3&ew,e[34]=eR^~eA&eY,e[35]=ek^~eD&eJ,e[44]=e0^~eb&eB,e[45]=e1^~eg&ex,e[6]=eG^~e4&b,e[7]=eV^~e8&g,e[16]=eT^~eW&eq,e[17]=eC^~ej&ez,e[26]=e2^~ey&em,e[27]=e3^~ew&ev,e[36]=eA^~eY&eQ,e[37]=eD^~eJ&eX,e[46]=eb^~eB&eM,e[47]=eg^~ex&eL,e[8]=e4^~b&eS,e[9]=e8^~g&eE,e[18]=eW^~eq&eZ,e[19]=ej^~ez&e$,e[28]=ey^~em&eP,e[29]=ew^~ev&eI,e[38]=eY^~eQ&ec,e[39]=eJ^~eX&ed,e[48]=eB^~eM&eU,e[49]=ex^~eL&eF,e[0]^=i[2*t],e[1]^=i[2*t+1]}}},64555:function(e,t,i){var n=i(61900).Buffer;let a=i(70512);function Keccak(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}Keccak.prototype.initialize=function(e,t){for(let e=0;e<50;++e)this.state[e]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1},Keccak.prototype.absorb=function(e){for(let t=0;t>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(a.p1600(this.state),this.count=0);return t},Keccak.prototype.copy=function(e){for(let t=0;t<50;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing},e.exports=Keccak},7505:function(e){"use strict";function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var t={};function createErrorType(e,i,n){function getMessage(e,t,n){return"string"==typeof i?i:i(e,t,n)}n||(n=Error);var a=function(e){function NodeError(t,i,n){return e.call(this,getMessage(t,i,n))||this}return _inheritsLoose(NodeError,e),NodeError}(n);a.prototype.name=n.name,a.prototype.code=e,t[e]=a}function oneOf(e,t){if(!Array.isArray(e))return"of ".concat(t," ").concat(String(e));var i=e.length;return(e=e.map(function(e){return String(e)}),i>2)?"one of ".concat(t," ").concat(e.slice(0,i-1).join(", "),", or ")+e[i-1]:2===i?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}function startsWith(e,t,i){return e.substr(!i||i<0?0:+i,t.length)===t}function endsWith(e,t,i){return(void 0===i||i>e.length)&&(i=e.length),e.substring(i-t.length,i)===t}function includes(e,t,i){return"number"!=typeof i&&(i=0),!(i+t.length>e.length)&&-1!==e.indexOf(t,i)}createErrorType("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),createErrorType("ERR_INVALID_ARG_TYPE",function(e,t,i){if("string"==typeof t&&startsWith(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be",endsWith(e," argument"))a="The ".concat(e," ").concat(n," ").concat(oneOf(t,"type"));else{var n,a,o=includes(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(o," ").concat(n," ").concat(oneOf(t,"type"))}return a+". Received type ".concat(typeof i)},TypeError),createErrorType("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),createErrorType("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),createErrorType("ERR_STREAM_PREMATURE_CLOSE","Premature close"),createErrorType("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),createErrorType("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),createErrorType("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end"),createErrorType("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),createErrorType("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},4678:function(e,t,i){"use strict";var n=i(28070),a=Object.keys||function(e){var t=[];for(var i in e)t.push(i);return t};e.exports=Duplex;var o=i(85948),s=i(46236);i(89790)(Duplex,o);for(var l=a(s.prototype),h=0;h0){if("string"==typeof t||l.objectMode||Object.getPrototypeOf(t)===f.prototype||(t=_uint8ArrayToBuffer(t)),n)l.endEmitted?S(e,new v):addChunk(e,l,t,!0);else if(l.ended)S(e,new w);else{if(l.destroyed)return!1;l.reading=!1,l.decoder&&!i?(t=l.decoder.write(t),l.objectMode||0!==t.length?addChunk(e,l,t,!1):maybeReadMore(e,l)):addChunk(e,l,t,!1)}}else n||(l.reading=!1,maybeReadMore(e,l));return!l.ended&&(l.length=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function howMuchToRead(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=computeNewHighWaterMark(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function onEofChunk(e,t){if(a("onEofChunk"),!t.ended){if(t.decoder){var i=t.decoder.end();i&&i.length&&(t.buffer.push(i),t.length+=t.objectMode?1:i.length)}t.ended=!0,t.sync?emitReadable(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,emitReadable_(e)))}}function emitReadable(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,h.nextTick(emitReadable_,e))}function emitReadable_(e){var t=e._readableState;a("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,flow(e)}function maybeReadMore(e,t){t.readingMore||(t.readingMore=!0,h.nextTick(maybeReadMore_,e,t))}function maybeReadMore_(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function nReadingNextTick(e){a("readable nexttick read 0"),e.read(0)}function resume(e,t){t.resumeScheduled||(t.resumeScheduled=!0,h.nextTick(resume_,e,t))}function resume_(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),flow(e),t.flowing&&!t.reading&&e.read(0)}function flow(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function fromList(e,t){var i;return 0===t.length?null:(t.objectMode?i=t.buffer.shift():!e||e>=t.length?(i=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):i=t.buffer.consume(e,t.decoder),i)}function endReadable(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,h.nextTick(endReadableNT,t,e))}function endReadableNT(e,t){if(a("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var i=t._writableState;(!i||i.autoDestroy&&i.finished)&&t.destroy()}}function indexOf(e,t){for(var i=0,n=e.length;i=i.highWaterMark:i.length>0)||i.ended))return a("read: emitReadable",i.length,i.ended),0===i.length&&i.ended?endReadable(this):emitReadable(this),null;if(0===(e=howMuchToRead(e,i))&&i.ended)return 0===i.length&&endReadable(this),null;var o=i.needReadable;return a("need readable",o),(0===i.length||i.length-e0?fromList(e,i):null)?(i.needReadable=i.length<=i.highWaterMark,e=0):(i.length-=e,i.awaitDrain=0),0===i.length&&(i.ended||(i.needReadable=!0),n!==e&&i.ended&&endReadable(this)),null!==t&&this.emit("data",t),t},Readable.prototype._read=function(e){S(this,new m("_read()"))},Readable.prototype.pipe=function(e,t){var i=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,a("pipe count=%d opts=%j",n.pipesCount,t);var o=t&&!1===t.end||e===h.stdout||e===h.stderr?unpipe:onend;function onunpipe(e,t){a("onunpipe"),e===i&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,cleanup())}function onend(){a("onend"),e.end()}n.endEmitted?h.nextTick(o):i.once("end",o),e.on("unpipe",onunpipe);var s=pipeOnDrain(i);e.on("drain",s);var l=!1;function cleanup(){a("cleanup"),e.removeListener("close",onclose),e.removeListener("finish",onfinish),e.removeListener("drain",s),e.removeListener("error",onerror),e.removeListener("unpipe",onunpipe),i.removeListener("end",onend),i.removeListener("end",unpipe),i.removeListener("data",ondata),l=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&s()}function ondata(t){a("ondata");var o=e.write(t);a("dest.write",o),!1===o&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==indexOf(n.pipes,e))&&!l&&(a("false write response, pause",n.awaitDrain),n.awaitDrain++),i.pause())}function onerror(t){a("onerror",t),unpipe(),e.removeListener("error",onerror),0===EElistenerCount(e,"error")&&S(e,t)}function onclose(){e.removeListener("finish",onfinish),unpipe()}function onfinish(){a("onfinish"),e.removeListener("close",onclose),unpipe()}function unpipe(){a("unpipe"),i.unpipe(e)}return i.on("data",ondata),prependListener(e,"error",onerror),e.once("close",onclose),e.once("finish",onfinish),e.emit("pipe",i),n.flowing||(a("pipe resume"),i.resume()),e},Readable.prototype.unpipe=function(e){var t=this._readableState,i={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,i)),this;if(!e){var n=t.pipes,a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==n.flowing&&this.resume()):"readable"!==e||n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,a("on readable",n.length,n.reading),n.length?emitReadable(this):n.reading||h.nextTick(nReadingNextTick,this)),i},Readable.prototype.addListener=Readable.prototype.on,Readable.prototype.removeListener=function(e,t){var i=u.prototype.removeListener.call(this,e,t);return"readable"===e&&h.nextTick(updateReadableListening,this),i},Readable.prototype.removeAllListeners=function(e){var t=u.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&h.nextTick(updateReadableListening,this),t},Readable.prototype.resume=function(){var e=this._readableState;return e.flowing||(a("resume"),e.flowing=!e.readableListening,resume(this,e)),e.paused=!1,this},Readable.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},Readable.prototype.wrap=function(e){var t=this,i=this._readableState,n=!1;for(var o in e.on("end",function(){if(a("wrapped end"),i.decoder&&!i.ended){var e=i.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(o){a("wrapped data"),i.decoder&&(o=i.decoder.write(o)),(!i.objectMode||null!=o)&&(i.objectMode||o&&o.length)&&(t.push(o)||(n=!0,e.pause()))}),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var s=0;s-1))throw new v(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(Writable.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Writable.prototype._write=function(e,t,i){i(new _("_write()"))},Writable.prototype._writev=null,Writable.prototype.end=function(e,t,i){var n=this._writableState;return"function"==typeof e?(i=e,e=null,t=null):"function"==typeof t&&(i=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||endWritable(this,n,i),this},Object.defineProperty(Writable.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(Writable.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),Writable.prototype.destroy=f.destroy,Writable.prototype._undestroy=f.undestroy,Writable.prototype._destroy=function(e,t){t(e)}},97946:function(e,t,i){"use strict";var n,a=i(28070);function _defineProperty(e,t,i){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==typeof t?t:String(t)}function _toPrimitive(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var o=i(93896),s=Symbol("lastResolve"),l=Symbol("lastReject"),h=Symbol("error"),u=Symbol("ended"),f=Symbol("lastPromise"),c=Symbol("handlePromise"),d=Symbol("stream");function createIterResult(e,t){return{value:e,done:t}}function readAndResolve(e){var t=e[s];if(null!==t){var i=e[d].read();null!==i&&(e[f]=null,e[s]=null,e[l]=null,t(createIterResult(i,!1)))}}function onReadable(e){a.nextTick(readAndResolve,e)}function wrapForNext(e,t){return function(i,n){e.then(function(){if(t[u]){i(createIterResult(void 0,!0));return}t[c](i,n)},n)}}var p=Object.getPrototypeOf(function(){}),_=Object.setPrototypeOf((_defineProperty(n={get stream(){return this[d]},next:function(){var e,t=this,i=this[h];if(null!==i)return Promise.reject(i);if(this[u])return Promise.resolve(createIterResult(void 0,!0));if(this[d].destroyed)return new Promise(function(e,i){a.nextTick(function(){t[h]?i(t[h]):e(createIterResult(void 0,!0))})});var n=this[f];if(n)e=new Promise(wrapForNext(n,this));else{var o=this[d].read();if(null!==o)return Promise.resolve(createIterResult(o,!1));e=new Promise(this[c])}return this[f]=e,e}},Symbol.asyncIterator,function(){return this}),_defineProperty(n,"return",function(){var e=this;return new Promise(function(t,i){e[d].destroy(null,function(e){if(e){i(e);return}t(createIterResult(void 0,!0))})})}),n),p);e.exports=function(e){var t,i=Object.create(_,(_defineProperty(t={},d,{value:e,writable:!0}),_defineProperty(t,s,{value:null,writable:!0}),_defineProperty(t,l,{value:null,writable:!0}),_defineProperty(t,h,{value:null,writable:!0}),_defineProperty(t,u,{value:e._readableState.endEmitted,writable:!0}),_defineProperty(t,c,{value:function(e,t){var n=i[d].read();n?(i[f]=null,i[s]=null,i[l]=null,e(createIterResult(n,!1))):(i[s]=e,i[l]=t)},writable:!0}),t));return i[f]=null,o(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=i[l];null!==t&&(i[f]=null,i[s]=null,i[l]=null,t(e)),i[h]=e;return}var n=i[s];null!==n&&(i[f]=null,i[s]=null,i[l]=null,n(createIterResult(void 0,!0))),i[u]=!0}),e.on("readable",onReadable.bind(null,i)),i}},15037:function(e,t,i){"use strict";function ownKeys(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function _objectSpread(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,i=""+t.data;t=t.next;)i+=e+t.data;return i}},{key:"concat",value:function(e){if(0===this.length)return n.alloc(0);for(var t=n.allocUnsafe(e>>>0),i=this.head,a=0;i;)copyBuffer(i.data,t,a),a+=i.data.length,i=i.next;return t}},{key:"consume",value:function(e,t){var i;return ea.length?a.length:e;if(o===a.length?n+=a:n+=a.slice(0,e),0==(e-=o)){o===a.length?(++i,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=a.slice(o));break}++i}return this.length-=i,n}},{key:"_getBuffer",value:function(e){var t=n.allocUnsafe(e),i=this.head,a=1;for(i.data.copy(t),e-=i.data.length;i=i.next;){var o=i.data,s=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,s),0==(e-=s)){s===o.length?(++a,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(s));break}++a}return this.length-=a,t}},{key:o,value:function(e,t){return a(this,_objectSpread(_objectSpread({},t),{},{depth:0,customInspect:!1}))}}]),BufferList}()},53179:function(e,t,i){"use strict";var n=i(28070);function destroy(e,t){var i=this,a=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return a||o?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(emitErrorNT,this,e)):n.nextTick(emitErrorNT,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?i._writableState?i._writableState.errorEmitted?n.nextTick(emitCloseNT,i):(i._writableState.errorEmitted=!0,n.nextTick(emitErrorAndCloseNT,i,e)):n.nextTick(emitErrorAndCloseNT,i,e):t?(n.nextTick(emitCloseNT,i),t(e)):n.nextTick(emitCloseNT,i)})),this}function emitErrorAndCloseNT(e,t){emitErrorNT(e,t),emitCloseNT(e)}function emitCloseNT(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function undestroy(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function emitErrorNT(e,t){e.emit("error",t)}function errorOrDestroy(e,t){var i=e._readableState,n=e._writableState;i&&i.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}e.exports={destroy:destroy,undestroy:undestroy,errorOrDestroy:errorOrDestroy}},93896:function(e,t,i){"use strict";var n=i(7505).q.ERR_STREAM_PREMATURE_CLOSE;function once(e){var t=!1;return function(){if(!t){t=!0;for(var i=arguments.length,n=Array(i),a=0;a0,function(t){e||(e=t),t&&s.forEach(call),o||(s.forEach(call),a(e))})});return i.reduce(pipe)}e.exports=pipeline},80077:function(e,t,i){"use strict";var n=i(7505).q.ERR_INVALID_OPT_VALUE;function highWaterMarkFrom(e,t,i){return null!=e.highWaterMark?e.highWaterMark:t?e[i]:null}function getHighWaterMark(e,t,i,a){var o=highWaterMarkFrom(t,a,i);if(null!=o){if(!(isFinite(o)&&Math.floor(o)===o)||o<0)throw new n(a?i:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}e.exports={getHighWaterMark:getHighWaterMark}},84985:function(e,t,i){e.exports=i(68495).EventEmitter},72157:function(e,t,i){(t=e.exports=i(85948)).Stream=t,t.Readable=t,t.Writable=i(46236),t.Duplex=i(4678),t.Transform=i(95206),t.PassThrough=i(1733),t.finished=i(93896),t.pipeline=i(41456)},40413:function(e,t,i){/*! safe-buffer. MIT License. Feross Aboukhadijeh */var n=i(61900),a=n.Buffer;function copyProps(e,t){for(var i in e)t[i]=e[i]}function SafeBuffer(e,t,i){return a(e,t,i)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=n:(copyProps(n,t),t.Buffer=SafeBuffer),SafeBuffer.prototype=Object.create(a.prototype),copyProps(a,SafeBuffer),SafeBuffer.from=function(e,t,i){if("number"==typeof e)throw TypeError("Argument must not be a number");return a(e,t,i)},SafeBuffer.alloc=function(e,t,i){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=a(e);return void 0!==t?"string"==typeof i?n.fill(t,i):n.fill(t):n.fill(0),n},SafeBuffer.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return a(e)},SafeBuffer.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},46518:function(e,t,i){var n=i(40413).Buffer;function Hash(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}Hash.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=n.from(e,t));for(var i=this._block,a=this._blockSize,o=e.length,s=this._len,l=0;l=this._finalSize&&(this._update(this._block),this._block.fill(0));var i=8*this._len;if(i<=4294967295)this._block.writeUInt32BE(i,this._blockSize-4);else{var n=(4294967295&i)>>>0,a=(i-n)/4294967296;this._block.writeUInt32BE(a,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},Hash.prototype._update=function(){throw Error("_update must be implemented by subclass")},e.exports=Hash},21670:function(e,t,i){var n=e.exports=function(e){var t=n[e=e.toLowerCase()];if(!t)throw Error(e+" is not supported (we accept pull requests)");return new t};n.sha=i(10330),n.sha1=i(15706),n.sha224=i(75933),n.sha256=i(5725),n.sha384=i(41377),n.sha512=i(38234)},10330:function(e,t,i){var n=i(89790),a=i(46518),o=i(40413).Buffer,s=[1518500249,1859775393,-1894007588,-899497514],l=Array(80);function Sha(){this.init(),this._w=l,a.call(this,64,56)}function rotl5(e){return e<<5|e>>>27}function rotl30(e){return e<<30|e>>>2}function ft(e,t,i,n){return 0===e?t&i|~t&n:2===e?t&i|t&n|i&n:t^i^n}n(Sha,a),Sha.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},Sha.prototype._update=function(e){for(var t=this._w,i=0|this._a,n=0|this._b,a=0|this._c,o=0|this._d,l=0|this._e,h=0;h<16;++h)t[h]=e.readInt32BE(4*h);for(;h<80;++h)t[h]=t[h-3]^t[h-8]^t[h-14]^t[h-16];for(var u=0;u<80;++u){var f=~~(u/20),c=rotl5(i)+ft(f,n,a,o)+l+t[u]+s[f]|0;l=o,o=a,a=rotl30(n),n=i,i=c}this._a=i+this._a|0,this._b=n+this._b|0,this._c=a+this._c|0,this._d=o+this._d|0,this._e=l+this._e|0},Sha.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=Sha},15706:function(e,t,i){var n=i(89790),a=i(46518),o=i(40413).Buffer,s=[1518500249,1859775393,-1894007588,-899497514],l=Array(80);function Sha1(){this.init(),this._w=l,a.call(this,64,56)}function rotl1(e){return e<<1|e>>>31}function rotl5(e){return e<<5|e>>>27}function rotl30(e){return e<<30|e>>>2}function ft(e,t,i,n){return 0===e?t&i|~t&n:2===e?t&i|t&n|i&n:t^i^n}n(Sha1,a),Sha1.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},Sha1.prototype._update=function(e){for(var t=this._w,i=0|this._a,n=0|this._b,a=0|this._c,o=0|this._d,l=0|this._e,h=0;h<16;++h)t[h]=e.readInt32BE(4*h);for(;h<80;++h)t[h]=rotl1(t[h-3]^t[h-8]^t[h-14]^t[h-16]);for(var u=0;u<80;++u){var f=~~(u/20),c=rotl5(i)+ft(f,n,a,o)+l+t[u]+s[f]|0;l=o,o=a,a=rotl30(n),n=i,i=c}this._a=i+this._a|0,this._b=n+this._b|0,this._c=a+this._c|0,this._d=o+this._d|0,this._e=l+this._e|0},Sha1.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=Sha1},75933:function(e,t,i){var n=i(89790),a=i(5725),o=i(46518),s=i(40413).Buffer,l=Array(64);function Sha224(){this.init(),this._w=l,o.call(this,64,56)}n(Sha224,a),Sha224.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},Sha224.prototype._hash=function(){var e=s.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=Sha224},5725:function(e,t,i){var n=i(89790),a=i(46518),o=i(40413).Buffer,s=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],l=Array(64);function Sha256(){this.init(),this._w=l,a.call(this,64,56)}function ch(e,t,i){return i^e&(t^i)}function maj(e,t,i){return e&t|i&(e|t)}function sigma0(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function sigma1(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function gamma0(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function gamma1(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}n(Sha256,a),Sha256.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},Sha256.prototype._update=function(e){for(var t=this._w,i=0|this._a,n=0|this._b,a=0|this._c,o=0|this._d,l=0|this._e,h=0|this._f,u=0|this._g,f=0|this._h,c=0;c<16;++c)t[c]=e.readInt32BE(4*c);for(;c<64;++c)t[c]=gamma1(t[c-2])+t[c-7]+gamma0(t[c-15])+t[c-16]|0;for(var d=0;d<64;++d){var p=f+sigma1(l)+ch(l,h,u)+s[d]+t[d]|0,_=sigma0(i)+maj(i,n,a)|0;f=u,u=h,h=l,l=o+p|0,o=a,a=n,n=i,i=p+_|0}this._a=i+this._a|0,this._b=n+this._b|0,this._c=a+this._c|0,this._d=o+this._d|0,this._e=l+this._e|0,this._f=h+this._f|0,this._g=u+this._g|0,this._h=f+this._h|0},Sha256.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=Sha256},41377:function(e,t,i){var n=i(89790),a=i(38234),o=i(46518),s=i(40413).Buffer,l=Array(160);function Sha384(){this.init(),this._w=l,o.call(this,128,112)}n(Sha384,a),Sha384.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},Sha384.prototype._hash=function(){var e=s.allocUnsafe(48);function writeInt64BE(t,i,n){e.writeInt32BE(t,n),e.writeInt32BE(i,n+4)}return writeInt64BE(this._ah,this._al,0),writeInt64BE(this._bh,this._bl,8),writeInt64BE(this._ch,this._cl,16),writeInt64BE(this._dh,this._dl,24),writeInt64BE(this._eh,this._el,32),writeInt64BE(this._fh,this._fl,40),e},e.exports=Sha384},38234:function(e,t,i){var n=i(89790),a=i(46518),o=i(40413).Buffer,s=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],l=Array(160);function Sha512(){this.init(),this._w=l,a.call(this,128,112)}function sigma0(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function sigma1(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function Gamma0(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function Gamma0l(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function Gamma1(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function Gamma1l(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function getCarry(e,t){return e>>>0>>0?1:0}n(Sha512,a),Sha512.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},Sha512.prototype._update=function(e){for(var t=this._w,i=0|this._ah,n=0|this._bh,a=0|this._ch,o=0|this._dh,l=0|this._eh,h=0|this._fh,u=0|this._gh,f=0|this._hh,c=0|this._al,d=0|this._bl,p=0|this._cl,_=0|this._dl,b=0|this._el,g=0|this._fl,y=0|this._gl,w=0|this._hl,m=0;m<32;m+=2)t[m]=e.readInt32BE(4*m),t[m+1]=e.readInt32BE(4*m+4);for(;m<160;m+=2){var v=t[m-30],S=t[m-30+1],E=Gamma0(v,S),R=Gamma0l(S,v),k=Gamma1(v=t[m-4],S=t[m-4+1]),T=Gamma1l(S,v),C=t[m-14],B=t[m-14+1],x=t[m-32],M=t[m-32+1],L=R+B|0,P=E+C+getCarry(L,R)|0;P=(P=P+k+getCarry(L=L+T|0,T)|0)+x+getCarry(L=L+M|0,M)|0,t[m]=P,t[m+1]=L}for(var I=0;I<160;I+=2){P=t[I],L=t[I+1];var N,O,A,D,W,j,q,z,U,F,H=(N=i)&(O=n)|a&(N|O),K=(A=c)&(D=d)|p&(A|D),G=sigma0(i,c),V=sigma0(c,i),Y=sigma1(l,b),J=sigma1(b,l),Q=s[I],X=s[I+1],Z=(W=l,j=h,(q=u)^W&(j^q)),$=(z=b,U=g,(F=y)^z&(U^F)),ee=w+J|0,et=f+Y+getCarry(ee,w)|0;et=(et=(et=et+Z+getCarry(ee=ee+$|0,$)|0)+Q+getCarry(ee=ee+X|0,X)|0)+P+getCarry(ee=ee+L|0,L)|0;var er=V+K|0,ei=G+H+getCarry(er,V)|0;f=u,w=y,u=h,y=g,h=l,g=b,l=o+et+getCarry(b=_+ee|0,_)|0,o=a,_=p,a=n,p=d,n=i,d=c,i=et+ei+getCarry(c=ee+er|0,ee)|0}this._al=this._al+c|0,this._bl=this._bl+d|0,this._cl=this._cl+p|0,this._dl=this._dl+_|0,this._el=this._el+b|0,this._fl=this._fl+g|0,this._gl=this._gl+y|0,this._hl=this._hl+w|0,this._ah=this._ah+i+getCarry(this._al,c)|0,this._bh=this._bh+n+getCarry(this._bl,d)|0,this._ch=this._ch+a+getCarry(this._cl,p)|0,this._dh=this._dh+o+getCarry(this._dl,_)|0,this._eh=this._eh+l+getCarry(this._el,b)|0,this._fh=this._fh+h+getCarry(this._fl,g)|0,this._gh=this._gh+u+getCarry(this._gl,y)|0,this._hh=this._hh+f+getCarry(this._hl,w)|0},Sha512.prototype._hash=function(){var e=o.allocUnsafe(64);function writeInt64BE(t,i,n){e.writeInt32BE(t,n),e.writeInt32BE(i,n+4)}return writeInt64BE(this._ah,this._al,0),writeInt64BE(this._bh,this._bl,8),writeInt64BE(this._ch,this._cl,16),writeInt64BE(this._dh,this._dl,24),writeInt64BE(this._eh,this._el,32),writeInt64BE(this._fh,this._fl,40),writeInt64BE(this._gh,this._gl,48),writeInt64BE(this._hh,this._hl,56),e},e.exports=Sha512},66393:function(e,t,i){"use strict";var n=i(40413).Buffer,a=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function _normalizeEncoding(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function normalizeEncoding(e){var t=_normalizeEncoding(e);if("string"!=typeof t&&(n.isEncoding===a||!a(e)))throw Error("Unknown encoding: "+e);return t||e}function StringDecoder(e){var t;switch(this.encoding=normalizeEncoding(e),this.encoding){case"utf16le":this.text=utf16Text,this.end=utf16End,t=4;break;case"utf8":this.fillLast=utf8FillLast,t=4;break;case"base64":this.text=base64Text,this.end=base64End,t=3;break;default:this.write=simpleWrite,this.end=simpleEnd;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function utf8CheckByte(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function utf8CheckIncomplete(e,t,i){var n=t.length-1;if(n=0?(a>0&&(e.lastNeed=a-1),a):--n=0?(a>0&&(e.lastNeed=a-2),a):--n=0?(a>0&&(2===a?a=0:e.lastNeed=a-3),a):0}function utf8CheckExtraBytes(e,t,i){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function utf8FillLast(e){var t=this.lastTotal-this.lastNeed,i=utf8CheckExtraBytes(this,e,t);return void 0!==i?i:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function utf8Text(e,t){var i=utf8CheckIncomplete(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=i;var n=e.length-(i-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function utf8End(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function utf16Text(e,t){if((e.length-t)%2==0){var i=e.toString("utf16le",t);if(i){var n=i.charCodeAt(i.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],i.slice(0,-1)}return i}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function utf16End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var i=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,i)}return t}function base64Text(e,t){var i=(e.length-t)%3;return 0===i?e.toString("base64",t):(this.lastNeed=3-i,this.lastTotal=3,1===i?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-i))}function base64End(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function simpleWrite(e){return e.toString(this.encoding)}function simpleEnd(e){return e&&e.length?this.write(e):""}t.s=StringDecoder,StringDecoder.prototype.write=function(e){var t,i;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";i=this.lastNeed,this.lastNeed=0}else i=0;return iZ?new u.MobileRelayUI(e):new R.WalletLinkRelayUI(e)),X={linkAPIUrl:l,version:W.LIB_VERSION,darkMode:!!e.darkMode,headlessMode:!!e.headlessMode,uiConstructor:K,storage:this._storage,relayEventManager:this._relayEventManager,diagnosticLogger:this._diagnosticLogger,reloadOnDisconnect:this._reloadOnDisconnect,enableMobileWalletLink:e.enableMobileWalletLink};if(this._relay=Z?new c.MobileRelay(X):new U.WalletLinkRelay(X),this.setAppInfo(e.appName,e.appLogoUrl),e.headlessMode)return;this._relay.attachUI()}makeWeb3Provider(e="",t=1){let n=this.walletExtension;if(n)return this.isCipherProvider(n)||n.setProviderInfo(e,t),!1===this._reloadOnDisconnect&&"function"==typeof n.disableReloadOnDisconnect&&n.disableReloadOnDisconnect(),n;let i=this.coinbaseBrowser;if(i)return i;let s=this._relay;if(!s||!this._relayEventManager||!this._storage)throw Error("Relay not initialized, should never happen");return e||s.setConnectDisabled(!0),new l.CoinbaseWalletProvider({relayProvider:()=>Promise.resolve(s),relayEventManager:this._relayEventManager,storage:this._storage,jsonRpcUrl:e,chainId:t,qrUrl:this.getQrUrl(),diagnosticLogger:this._diagnosticLogger,overrideIsMetaMask:this._overrideIsMetaMask,overrideIsCoinbaseWallet:this._overrideIsCoinbaseWallet,overrideIsCoinbaseBrowser:this._overrideIsCoinbaseBrowser})}setAppInfo(e,t){var n;this._appName=e||"DApp",this._appLogoUrl=t||(0,o.getFavicon)();let i=this.walletExtension;i?this.isCipherProvider(i)||i.setAppInfo(this._appName,this._appLogoUrl):null===(n=this._relay)||void 0===n||n.setAppInfo(this._appName,this._appLogoUrl)}disconnect(){var e;let t=this===null||void 0===this?void 0:this.walletExtension;t?t.close():null===(e=this._relay)||void 0===e||e.resetAndReload()}getQrUrl(){var e,t;return null!==(t=null===(e=this._relay)||void 0===e?void 0:e.getQRCodeUrl())&&void 0!==t?t:null}getCoinbaseWalletLogo(e,t=240){return(0,i.walletLogo)(e,t)}get walletExtension(){var e;return null!==(e=window.coinbaseWalletExtension)&&void 0!==e?e:window.walletLinkExtension}get coinbaseBrowser(){var e,t;try{let n=null!==(e=window.ethereum)&&void 0!==e?e:null===(t=window.top)||void 0===t?void 0:t.ethereum;if(!n)return;if("isCoinbaseBrowser"in n&&n.isCoinbaseBrowser)return n;return}catch(e){return}}isCipherProvider(e){return"boolean"==typeof e.isCipher&&e.isCipher}};t.CoinbaseWalletSDK=CoinbaseWalletSDK,CoinbaseWalletSDK.VERSION=W.LIB_VERSION},5652:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.walletLogo=void 0,t.walletLogo=(e,t)=>{let n;switch(e){case"standard":default:return n=t,`data:image/svg+xml,%3Csvg width='${t}' height='${n}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `;case"circle":return n=t,`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${t}' height='${n}' viewBox='0 0 999.81 999.81'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052fe;%7D.cls-2%7Bfill:%23fefefe;%7D.cls-3%7Bfill:%230152fe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M655-115.9h56c.83,1.59,2.36.88,3.56,1a478,478,0,0,1,75.06,10.42C891.4-81.76,978.33-32.58,1049.19,44q116.7,126,131.94,297.61c.38,4.14-.34,8.53,1.78,12.45v59c-1.58.84-.91,2.35-1,3.56a482.05,482.05,0,0,1-10.38,74.05c-24,106.72-76.64,196.76-158.83,268.93s-178.18,112.82-287.2,122.6c-4.83.43-9.86-.25-14.51,1.77H654c-1-1.68-2.69-.91-4.06-1a496.89,496.89,0,0,1-105.9-18.59c-93.54-27.42-172.78-77.59-236.91-150.94Q199.34,590.1,184.87,426.58c-.47-5.19.25-10.56-1.77-15.59V355c1.68-1,.91-2.7,1-4.06a498.12,498.12,0,0,1,18.58-105.9c26-88.75,72.64-164.9,140.6-227.57q126-116.27,297.21-131.61C645.32-114.57,650.35-113.88,655-115.9Zm377.92,500c0-192.44-156.31-349.49-347.56-350.15-194.13-.68-350.94,155.13-352.29,347.42-1.37,194.55,155.51,352.1,348.56,352.47C876.15,734.23,1032.93,577.84,1032.93,384.11Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-2' d='M1032.93,384.11c0,193.73-156.78,350.12-351.29,349.74-193-.37-349.93-157.92-348.56-352.47C334.43,189.09,491.24,33.28,685.37,34,876.62,34.62,1032.94,191.67,1032.93,384.11ZM683,496.81q43.74,0,87.48,0c15.55,0,25.32-9.72,25.33-25.21q0-87.48,0-175c0-15.83-9.68-25.46-25.59-25.46H595.77c-15.88,0-25.57,9.64-25.58,25.46q0,87.23,0,174.45c0,16.18,9.59,25.7,25.84,25.71Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-3' d='M683,496.81H596c-16.25,0-25.84-9.53-25.84-25.71q0-87.23,0-174.45c0-15.82,9.7-25.46,25.58-25.46H770.22c15.91,0,25.59,9.63,25.59,25.46q0,87.47,0,175c0,15.49-9.78,25.2-25.33,25.21Q726.74,496.84,683,496.81Z' transform='translate(-183.1 115.9)'/%3E%3C/svg%3E`;case"text":return n=(.1*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${n}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogo":return n=(.25*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${n}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;case"textLight":return n=(.1*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${n}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogoLight":return n=(.25*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${n}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`}}},20277:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LINK_API_URL=void 0,t.LINK_API_URL="https://www.walletlink.org"},39930:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.errorValues=t.standardErrorCodes=void 0,t.standardErrorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901,unsupportedChain:4902}},t.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."},4902:{standard:"EIP-3085",message:"Unrecognized chain ID."}}},35321:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.standardErrors=void 0;let i=n(39930),s=n(38298);function getEthJsonRpcError(e,t){let[n,i]=parseOpts(t);return new EthereumRpcError(e,n||(0,s.getMessageFromCode)(e),i)}function getEthProviderError(e,t){let[n,i]=parseOpts(t);return new EthereumProviderError(e,n||(0,s.getMessageFromCode)(e),i)}function parseOpts(e){if(e){if("string"==typeof e)return[e];if("object"==typeof e&&!Array.isArray(e)){let{message:t,data:n}=e;if(t&&"string"!=typeof t)throw Error("Must specify string message.");return[t||void 0,n]}}return[]}t.standardErrors={rpc:{parse:e=>getEthJsonRpcError(i.standardErrorCodes.rpc.parse,e),invalidRequest:e=>getEthJsonRpcError(i.standardErrorCodes.rpc.invalidRequest,e),invalidParams:e=>getEthJsonRpcError(i.standardErrorCodes.rpc.invalidParams,e),methodNotFound:e=>getEthJsonRpcError(i.standardErrorCodes.rpc.methodNotFound,e),internal:e=>getEthJsonRpcError(i.standardErrorCodes.rpc.internal,e),server:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw Error("Ethereum RPC Server errors must provide single object argument.");let{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw Error('"code" must be an integer such that: -32099 <= code <= -32005');return getEthJsonRpcError(t,e)},invalidInput:e=>getEthJsonRpcError(i.standardErrorCodes.rpc.invalidInput,e),resourceNotFound:e=>getEthJsonRpcError(i.standardErrorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>getEthJsonRpcError(i.standardErrorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>getEthJsonRpcError(i.standardErrorCodes.rpc.transactionRejected,e),methodNotSupported:e=>getEthJsonRpcError(i.standardErrorCodes.rpc.methodNotSupported,e),limitExceeded:e=>getEthJsonRpcError(i.standardErrorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>getEthProviderError(i.standardErrorCodes.provider.userRejectedRequest,e),unauthorized:e=>getEthProviderError(i.standardErrorCodes.provider.unauthorized,e),unsupportedMethod:e=>getEthProviderError(i.standardErrorCodes.provider.unsupportedMethod,e),disconnected:e=>getEthProviderError(i.standardErrorCodes.provider.disconnected,e),chainDisconnected:e=>getEthProviderError(i.standardErrorCodes.provider.chainDisconnected,e),unsupportedChain:e=>getEthProviderError(i.standardErrorCodes.provider.unsupportedChain,e),custom:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw Error("Ethereum Provider custom errors must provide single object argument.");let{code:t,message:n,data:i}=e;if(!n||"string"!=typeof n)throw Error('"message" must be a nonempty string');return new EthereumProviderError(t,n,i)}}};let EthereumRpcError=class EthereumRpcError extends Error{constructor(e,t,n){if(!Number.isInteger(e))throw Error('"code" must be an integer.');if(!t||"string"!=typeof t)throw Error('"message" must be a nonempty string.');super(t),this.code=e,void 0!==n&&(this.data=n)}};let EthereumProviderError=class EthereumProviderError extends EthereumRpcError{constructor(e,t,n){if(!isValidEthProviderCode(e))throw Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,n)}};function isValidEthProviderCode(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}},42082:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.standardErrors=t.standardErrorCodes=t.serializeError=t.getMessageFromCode=t.getErrorCode=void 0;let i=n(39930);Object.defineProperty(t,"standardErrorCodes",{enumerable:!0,get:function(){return i.standardErrorCodes}});let s=n(35321);Object.defineProperty(t,"standardErrors",{enumerable:!0,get:function(){return s.standardErrors}});let o=n(14572);Object.defineProperty(t,"serializeError",{enumerable:!0,get:function(){return o.serializeError}});let a=n(38298);Object.defineProperty(t,"getErrorCode",{enumerable:!0,get:function(){return a.getErrorCode}}),Object.defineProperty(t,"getMessageFromCode",{enumerable:!0,get:function(){return a.getMessageFromCode}})},14572:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializeError=void 0;let i=n(21507),s=n(11563),o=n(39930),a=n(38298);function serializeError(e,t){let n=(0,a.serialize)(getErrorObject(e),{shouldIncludeStack:!0}),i=new URL("https://docs.cloud.coinbase.com/wallet-sdk/docs/errors");i.searchParams.set("version",s.LIB_VERSION),i.searchParams.set("code",n.code.toString());let o=getMethod(n.data,t);return o&&i.searchParams.set("method",o),i.searchParams.set("message",n.message),Object.assign(Object.assign({},n),{docUrl:i.href})}function getErrorObject(e){return"string"==typeof e?{message:e,code:o.standardErrorCodes.rpc.internal}:(0,i.isErrorResponse)(e)?Object.assign(Object.assign({},e),{message:e.errorMessage,code:e.errorCode,data:{method:e.method}}):e}function getMethod(e,t){let n=null==e?void 0:e.method;if(n)return n;if(void 0===t);else if("string"==typeof t)return t;else if(!Array.isArray(t))return t.method;else if(t.length>0)return t[0].method}t.serializeError=serializeError},38298:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serialize=t.getErrorCode=t.isValidCode=t.getMessageFromCode=t.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;let i=n(39930),s="Unspecified error message.";function getMessageFromCode(e,n=s){if(e&&Number.isInteger(e)){let n=e.toString();if(hasKey(i.errorValues,n))return i.errorValues[n].message;if(e>=-32099&&e<=-32e3)return t.JSON_RPC_SERVER_ERROR_MESSAGE}return n}function isValidCode(e){if(!Number.isInteger(e))return!1;let t=e.toString();return!!(i.errorValues[t]||e>=-32099&&e<=-32e3)}function getErrorCode(e){var t;return"number"==typeof e?e:isErrorWithCode(e)?null!==(t=e.code)&&void 0!==t?t:e.errorCode:void 0}function isErrorWithCode(e){return"object"==typeof e&&null!==e&&("number"==typeof e.code||"number"==typeof e.errorCode)}function serialize(e,{shouldIncludeStack:t=!1}={}){let n={};return e&&"object"==typeof e&&!Array.isArray(e)&&hasKey(e,"code")&&isValidCode(e.code)?(n.code=e.code,e.message&&"string"==typeof e.message?(n.message=e.message,hasKey(e,"data")&&(n.data=e.data)):(n.message=getMessageFromCode(n.code),n.data={originalError:assignOriginalError(e)})):(n.code=i.standardErrorCodes.rpc.internal,n.message=hasStringProperty(e,"message")?e.message:s,n.data={originalError:assignOriginalError(e)}),t&&(n.stack=hasStringProperty(e,"stack")?e.stack:void 0),n}function assignOriginalError(e){return e&&"object"==typeof e&&!Array.isArray(e)?Object.assign({},e):e}function hasKey(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function hasStringProperty(e,t){return"object"==typeof e&&null!==e&&t in e&&"string"==typeof e[t]}t.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.",t.getMessageFromCode=getMessageFromCode,t.isValidCode=isValidCode,t.getErrorCode=getErrorCode,t.serialize=serialize},14534:function(e,t){"use strict";var n,i;function OpaqueType(){return e=>e}function IntNumber(e){return Math.floor(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.ProviderType=t.RegExpString=t.IntNumber=t.BigIntString=t.AddressString=t.HexString=t.OpaqueType=void 0,t.OpaqueType=OpaqueType,t.HexString=OpaqueType(),t.AddressString=OpaqueType(),t.BigIntString=OpaqueType(),t.IntNumber=IntNumber,t.RegExpString=OpaqueType(),(i=n||(t.ProviderType=n={})).CoinbaseWallet="CoinbaseWallet",i.MetaMask="MetaMask",i.Unselected=""},8994:function(e,t,n){"use strict";var i=n(61900).Buffer,s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isMobileWeb=t.getLocation=t.isInIFrame=t.createQrUrl=t.getFavicon=t.range=t.isBigNumber=t.ensureParsedJSONObject=t.ensureBN=t.ensureRegExpString=t.ensureIntNumber=t.ensureBuffer=t.ensureAddressString=t.ensureEvenLengthHexString=t.ensureHexString=t.isHexString=t.prepend0x=t.strip0x=t.has0xPrefix=t.hexStringFromIntNumber=t.intNumberFromHexString=t.bigIntStringFromBN=t.hexStringFromBuffer=t.hexStringToUint8Array=t.uint8ArrayToHex=t.randomBytesHex=void 0;let o=s(n(60079)),a=n(42082),l=n(14534),c=/^[0-9]*$/,u=/^[a-f0-9]*$/;function randomBytesHex(e){return uint8ArrayToHex(crypto.getRandomValues(new Uint8Array(e)))}function uint8ArrayToHex(e){return[...e].map(e=>e.toString(16).padStart(2,"0")).join("")}function hexStringToUint8Array(e){return new Uint8Array(e.match(/.{1,2}/g).map(e=>parseInt(e,16)))}function hexStringFromBuffer(e,t=!1){let n=e.toString("hex");return(0,l.HexString)(t?`0x${n}`:n)}function bigIntStringFromBN(e){return(0,l.BigIntString)(e.toString(10))}function intNumberFromHexString(e){return(0,l.IntNumber)(new o.default(ensureEvenLengthHexString(e,!1),16).toNumber())}function hexStringFromIntNumber(e){return(0,l.HexString)(`0x${new o.default(e).toString(16)}`)}function has0xPrefix(e){return e.startsWith("0x")||e.startsWith("0X")}function strip0x(e){return has0xPrefix(e)?e.slice(2):e}function prepend0x(e){return has0xPrefix(e)?`0x${e.slice(2)}`:`0x${e}`}function isHexString(e){if("string"!=typeof e)return!1;let t=strip0x(e).toLowerCase();return u.test(t)}function ensureHexString(e,t=!1){if("string"==typeof e){let n=strip0x(e).toLowerCase();if(u.test(n))return(0,l.HexString)(t?`0x${n}`:n)}throw a.standardErrors.rpc.invalidParams(`"${String(e)}" is not a hexadecimal string`)}function ensureEvenLengthHexString(e,t=!1){let n=ensureHexString(e,!1);return n.length%2==1&&(n=(0,l.HexString)(`0${n}`)),t?(0,l.HexString)(`0x${n}`):n}function ensureAddressString(e){if("string"==typeof e){let t=strip0x(e).toLowerCase();if(isHexString(t)&&40===t.length)return(0,l.AddressString)(prepend0x(t))}throw a.standardErrors.rpc.invalidParams(`Invalid Ethereum address: ${String(e)}`)}function ensureBuffer(e){if(i.isBuffer(e))return e;if("string"==typeof e){if(isHexString(e)){let t=ensureEvenLengthHexString(e,!1);return i.from(t,"hex")}return i.from(e,"utf8")}throw a.standardErrors.rpc.invalidParams(`Not binary data: ${String(e)}`)}function ensureIntNumber(e){if("number"==typeof e&&Number.isInteger(e))return(0,l.IntNumber)(e);if("string"==typeof e){if(c.test(e))return(0,l.IntNumber)(Number(e));if(isHexString(e))return(0,l.IntNumber)(new o.default(ensureEvenLengthHexString(e,!1),16).toNumber())}throw a.standardErrors.rpc.invalidParams(`Not an integer: ${String(e)}`)}function ensureRegExpString(e){if(e instanceof RegExp)return(0,l.RegExpString)(e.toString());throw a.standardErrors.rpc.invalidParams(`Not a RegExp: ${String(e)}`)}function ensureBN(e){if(null!==e&&(o.default.isBN(e)||isBigNumber(e)))return new o.default(e.toString(10),10);if("number"==typeof e)return new o.default(ensureIntNumber(e));if("string"==typeof e){if(c.test(e))return new o.default(e,10);if(isHexString(e))return new o.default(ensureEvenLengthHexString(e,!1),16)}throw a.standardErrors.rpc.invalidParams(`Not an integer: ${String(e)}`)}function ensureParsedJSONObject(e){if("string"==typeof e)return JSON.parse(e);if("object"==typeof e)return e;throw a.standardErrors.rpc.invalidParams(`Not a JSON string or an object: ${String(e)}`)}function isBigNumber(e){if(null==e||"function"!=typeof e.constructor)return!1;let{constructor:t}=e;return"function"==typeof t.config&&"number"==typeof t.EUCLID}function range(e,t){return Array.from({length:t-e},(t,n)=>e+n)}function getFavicon(){let e=document.querySelector('link[sizes="192x192"]')||document.querySelector('link[sizes="180x180"]')||document.querySelector('link[rel="icon"]')||document.querySelector('link[rel="shortcut icon"]'),{protocol:t,host:n}=document.location,i=e?e.getAttribute("href"):null;return!i||i.startsWith("javascript:")||i.startsWith("vbscript:")?null:i.startsWith("http://")||i.startsWith("https://")||i.startsWith("data:")?i:i.startsWith("//")?t+i:`${t}//${n}${i}`}function createQrUrl(e,t,n,i,s,o){let a=new URLSearchParams({[i?"parent-id":"id"]:e,secret:t,server:n,v:s,chainId:o.toString()}).toString(),l=`${n}/#/link?${a}`;return l}function isInIFrame(){try{return null!==window.frameElement}catch(e){return!1}}function getLocation(){try{if(isInIFrame()&&window.top)return window.top.location;return window.location}catch(e){return window.location}}function isMobileWeb(){var e;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(null===(e=null==window?void 0:window.navigator)||void 0===e?void 0:e.userAgent)}t.randomBytesHex=randomBytesHex,t.uint8ArrayToHex=uint8ArrayToHex,t.hexStringToUint8Array=hexStringToUint8Array,t.hexStringFromBuffer=hexStringFromBuffer,t.bigIntStringFromBN=bigIntStringFromBN,t.intNumberFromHexString=intNumberFromHexString,t.hexStringFromIntNumber=hexStringFromIntNumber,t.has0xPrefix=has0xPrefix,t.strip0x=strip0x,t.prepend0x=prepend0x,t.isHexString=isHexString,t.ensureHexString=ensureHexString,t.ensureEvenLengthHexString=ensureEvenLengthHexString,t.ensureAddressString=ensureAddressString,t.ensureBuffer=ensureBuffer,t.ensureIntNumber=ensureIntNumber,t.ensureRegExpString=ensureRegExpString,t.ensureBN=ensureBN,t.ensureParsedJSONObject=ensureParsedJSONObject,t.isBigNumber=isBigNumber,t.range=range,t.getFavicon=getFavicon,t.createQrUrl=createQrUrl,t.isInIFrame=isInIFrame,t.getLocation=getLocation,t.isMobileWeb=isMobileWeb},30206:function(e,t,n){"use strict";let i=n(46196),s=n(57286);n(46196),n(57286),t.default=i.CoinbaseWalletSDK,"undefined"!=typeof window&&(window.CoinbaseWalletSDK=i.CoinbaseWalletSDK,window.CoinbaseWalletProvider=s.CoinbaseWalletProvider,window.WalletLink=i.CoinbaseWalletSDK,window.WalletLinkProvider=s.CoinbaseWalletProvider)},25717:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Cipher=void 0;let i=n(8994);let Cipher=class Cipher{constructor(e){this.secret=e}async encrypt(e){let t=this.secret;if(64!==t.length)throw Error("secret must be 256 bits");let n=crypto.getRandomValues(new Uint8Array(12)),s=await crypto.subtle.importKey("raw",(0,i.hexStringToUint8Array)(t),{name:"aes-gcm"},!1,["encrypt","decrypt"]),o=new TextEncoder,a=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:n},s,o.encode(e)),l=a.slice(a.byteLength-16),c=a.slice(0,a.byteLength-16),u=new Uint8Array(l),v=new Uint8Array(c),R=new Uint8Array([...n,...u,...v]);return(0,i.uint8ArrayToHex)(R)}async decrypt(e){let t=this.secret;if(64!==t.length)throw Error("secret must be 256 bits");return new Promise((n,s)=>{!async function(){let o=await crypto.subtle.importKey("raw",(0,i.hexStringToUint8Array)(t),{name:"aes-gcm"},!1,["encrypt","decrypt"]),a=(0,i.hexStringToUint8Array)(e),l=a.slice(0,12),c=a.slice(12,28),u=a.slice(28),v=new Uint8Array([...u,...c]),R={name:"AES-GCM",iv:new Uint8Array(l)};try{let e=await window.crypto.subtle.decrypt(R,o,v),t=new TextDecoder;n(t.decode(e))}catch(e){s(e)}}()})}};t.Cipher=Cipher},87641:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScopedLocalStorage=void 0;let ScopedLocalStorage=class ScopedLocalStorage{constructor(e){this.scope=e}setItem(e,t){localStorage.setItem(this.scopedKey(e),t)}getItem(e){return localStorage.getItem(this.scopedKey(e))}removeItem(e){localStorage.removeItem(this.scopedKey(e))}clear(){let e=this.scopedKey(""),t=[];for(let n=0;nlocalStorage.removeItem(e))}scopedKey(e){return`${this.scope}:${e}`}};t.ScopedLocalStorage=ScopedLocalStorage},73828:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default='@namespace svg "http://www.w3.org/2000/svg";.-cbwsdk-css-reset,.-cbwsdk-css-reset *{animation:none;animation-delay:0;animation-direction:normal;animation-duration:0;animation-fill-mode:none;animation-iteration-count:1;animation-name:none;animation-play-state:running;animation-timing-function:ease;backface-visibility:visible;background:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position:0 0;background-position-x:0;background-position-y:0;background-repeat:repeat;background-size:auto auto;border:0;border-style:none;border-width:medium;border-color:inherit;border-bottom:0;border-bottom-color:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-style:none;border-bottom-width:medium;border-collapse:separate;border-image:none;border-left:0;border-left-color:inherit;border-left-style:none;border-left-width:medium;border-radius:0;border-right:0;border-right-color:inherit;border-right-style:none;border-right-width:medium;border-spacing:0;border-top:0;border-top-color:inherit;border-top-left-radius:0;border-top-right-radius:0;border-top-style:none;border-top-width:medium;box-shadow:none;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:inherit;columns:auto;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-rule-color:currentColor;column-rule-style:none;column-rule-width:none;column-span:1;column-width:auto;counter-increment:none;counter-reset:none;direction:ltr;empty-cells:show;float:none;font:normal;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;height:auto;hyphens:none;letter-spacing:normal;line-height:normal;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;margin:0;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;opacity:1;orphans:0;outline:0;outline-color:invert;outline-style:none;outline-width:medium;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;pointer-events:auto;position:static;quotes:"\\201C" "\\201D" "\\2018" "\\2019";tab-size:8;table-layout:auto;text-align:inherit;text-align-last:auto;text-decoration:none;text-decoration-color:inherit;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-shadow:none;text-transform:none;transform:none;transform-style:flat;transition:none;transition-delay:0s;transition-duration:0s;transition-property:none;transition-timing-function:ease;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:0;word-spacing:normal;z-index:auto}.-cbwsdk-css-reset strong{font-weight:bold}.-cbwsdk-css-reset *{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;line-height:1}.-cbwsdk-css-reset [class*=container]{margin:0;padding:0}.-cbwsdk-css-reset style{display:none}'},26222:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.injectCssReset=void 0;let s=i(n(73828));function injectCssReset(){let e=document.createElement("style");e.type="text/css",e.appendChild(document.createTextNode(s.default)),document.documentElement.appendChild(e)}t.injectCssReset=injectCssReset},57286:function(e,t,n){"use strict";var i=n(61900).Buffer,s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoinbaseWalletProvider=void 0;let o=s(n(60079)),a=n(71100),l=n(42082),c=n(8994),u=n(51241),v=n(73505),R=n(66269),U=n(21507),W=s(n(8834)),J=n(33564),Q=n(78126),Z=n(34128),K="DefaultChainId",X="DefaultJsonRpcUrl";let CoinbaseWalletProvider=class CoinbaseWalletProvider extends a.EventEmitter{constructor(e){var t,n;super(),this._filterPolyfill=new Q.FilterPolyfill(this),this._subscriptionManager=new Z.SubscriptionManager(this),this._relay=null,this._addresses=[],this.hasMadeFirstChainChangedEmission=!1,this.setProviderInfo=this.setProviderInfo.bind(this),this.updateProviderInfo=this.updateProviderInfo.bind(this),this.getChainId=this.getChainId.bind(this),this.setAppInfo=this.setAppInfo.bind(this),this.enable=this.enable.bind(this),this.close=this.close.bind(this),this.send=this.send.bind(this),this.sendAsync=this.sendAsync.bind(this),this.request=this.request.bind(this),this._setAddresses=this._setAddresses.bind(this),this.scanQRCode=this.scanQRCode.bind(this),this.genericRequest=this.genericRequest.bind(this),this._chainIdFromOpts=e.chainId,this._jsonRpcUrlFromOpts=e.jsonRpcUrl,this._overrideIsMetaMask=e.overrideIsMetaMask,this._relayProvider=e.relayProvider,this._storage=e.storage,this._relayEventManager=e.relayEventManager,this.diagnostic=e.diagnosticLogger,this.reloadOnDisconnect=!0,this.isCoinbaseWallet=null===(t=e.overrideIsCoinbaseWallet)||void 0===t||t,this.isCoinbaseBrowser=null!==(n=e.overrideIsCoinbaseBrowser)&&void 0!==n&&n,this.qrUrl=e.qrUrl;let i=this.getChainId(),s=(0,c.prepend0x)(i.toString(16));this.emit("connect",{chainIdStr:s});let o=this._storage.getItem(v.LOCAL_STORAGE_ADDRESSES_KEY);if(o){let e=o.split(" ");""!==e[0]&&(this._addresses=e.map(e=>(0,c.ensureAddressString)(e)),this.emit("accountsChanged",e))}this._subscriptionManager.events.on("notification",e=>{this.emit("message",{type:e.method,data:e.params})}),this._isAuthorized()&&this.initializeRelay(),window.addEventListener("message",e=>{var t;if(e.origin===location.origin&&e.source===window&&"walletLinkMessage"===e.data.type&&"dappChainSwitched"===e.data.data.action){let n=e.data.data.chainId,i=null!==(t=e.data.data.jsonRpcUrl)&&void 0!==t?t:this.jsonRpcUrl;this.updateProviderInfo(i,Number(n))}})}get selectedAddress(){return this._addresses[0]||void 0}get networkVersion(){return this.getChainId().toString(10)}get chainId(){return(0,c.prepend0x)(this.getChainId().toString(16))}get isWalletLink(){return!0}get isMetaMask(){return this._overrideIsMetaMask}get host(){return this.jsonRpcUrl}get connected(){return!0}isConnected(){return!0}get jsonRpcUrl(){var e;return null!==(e=this._storage.getItem(X))&&void 0!==e?e:this._jsonRpcUrlFromOpts}set jsonRpcUrl(e){this._storage.setItem(X,e)}disableReloadOnDisconnect(){this.reloadOnDisconnect=!1}setProviderInfo(e,t){this.isCoinbaseBrowser||(this._chainIdFromOpts=t,this._jsonRpcUrlFromOpts=e),this.updateProviderInfo(this.jsonRpcUrl,this.getChainId())}updateProviderInfo(e,t){this.jsonRpcUrl=e;let n=this.getChainId();this._storage.setItem(K,t.toString(10));let i=(0,c.ensureIntNumber)(t)!==n;(i||!this.hasMadeFirstChainChangedEmission)&&(this.emit("chainChanged",this.getChainId()),this.hasMadeFirstChainChangedEmission=!0)}async watchAsset(e,t,n,i,s,o){let a=await this.initializeRelay(),l=await a.watchAsset(e,t,n,i,s,null==o?void 0:o.toString()).promise;return!(0,U.isErrorResponse)(l)&&!!l.result}async addEthereumChain(e,t,n,i,s,o){var a,l;if((0,c.ensureIntNumber)(e)===this.getChainId())return!1;let u=await this.initializeRelay(),v=u.inlineAddEthereumChain(e.toString());this._isAuthorized()||v||await u.requestEthereumAccounts().promise;let R=await u.addEthereumChain(e.toString(),t,s,n,i,o).promise;return!(0,U.isErrorResponse)(R)&&((null===(a=R.result)||void 0===a?void 0:a.isApproved)===!0&&this.updateProviderInfo(t[0],e),(null===(l=R.result)||void 0===l?void 0:l.isApproved)===!0)}async switchEthereumChain(e){let t=await this.initializeRelay(),n=await t.switchEthereumChain(e.toString(10),this.selectedAddress||void 0).promise;if((0,U.isErrorResponse)(n)){if(!n.errorCode)return;if(n.errorCode===l.standardErrorCodes.provider.unsupportedChain)throw l.standardErrors.provider.unsupportedChain();throw l.standardErrors.provider.custom({message:n.errorMessage,code:n.errorCode})}let i=n.result;i.isApproved&&i.rpcUrl.length>0&&this.updateProviderInfo(i.rpcUrl,e)}setAppInfo(e,t){this.initializeRelay().then(n=>n.setAppInfo(e,t))}async enable(){var e;return(null===(e=this.diagnostic)||void 0===e||e.log(J.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::enable",addresses_length:this._addresses.length,sessionIdHash:this._relay?R.Session.hash(this._relay.session.id):void 0}),this._isAuthorized())?[...this._addresses]:await this.send("eth_requestAccounts")}async close(){let e=await this.initializeRelay();e.resetAndReload()}send(e,t){try{let n=this._send(e,t);if(n instanceof Promise)return n.catch(t=>{throw(0,l.serializeError)(t,e)})}catch(t){throw(0,l.serializeError)(t,e)}}_send(e,t){if("string"==typeof e){let n=Array.isArray(t)?t:void 0!==t?[t]:[];return this._sendRequestAsync({jsonrpc:"2.0",id:0,method:e,params:n}).then(e=>e.result)}return"function"==typeof t?this._sendAsync(e,t):Array.isArray(e)?e.map(e=>this._sendRequest(e)):this._sendRequest(e)}async sendAsync(e,t){try{return this._sendAsync(e,t).catch(t=>{throw(0,l.serializeError)(t,e)})}catch(t){return Promise.reject((0,l.serializeError)(t,e))}}async _sendAsync(e,t){if("function"!=typeof t)throw Error("callback is required");if(Array.isArray(e)){this._sendMultipleRequestsAsync(e).then(e=>t(null,e)).catch(e=>t(e,null));return}return this._sendRequestAsync(e).then(e=>t(null,e)).catch(e=>t(e,null))}async request(e){try{return this._request(e).catch(t=>{throw(0,l.serializeError)(t,e.method)})}catch(t){return Promise.reject((0,l.serializeError)(t,e.method))}}async _request(e){if(!e||"object"!=typeof e||Array.isArray(e))throw l.standardErrors.rpc.invalidRequest({message:"Expected a single, non-array, object argument.",data:e});let{method:t,params:n}=e;if("string"!=typeof t||0===t.length)throw l.standardErrors.rpc.invalidRequest({message:"'args.method' must be a non-empty string.",data:e});if(void 0!==n&&!Array.isArray(n)&&("object"!=typeof n||null===n))throw l.standardErrors.rpc.invalidRequest({message:"'args.params' must be an object or array if provided.",data:e});let i=void 0===n?[]:n,s=this._relayEventManager.makeRequestId(),o=await this._sendRequestAsync({method:t,params:i,jsonrpc:"2.0",id:s});return o.result}async scanQRCode(e){let t=await this.initializeRelay(),n=await t.scanQRCode((0,c.ensureRegExpString)(e)).promise;if((0,U.isErrorResponse)(n))throw(0,l.serializeError)(n.errorMessage,"scanQRCode");if("string"!=typeof n.result)throw(0,l.serializeError)("result was not a string","scanQRCode");return n.result}async genericRequest(e,t){let n=await this.initializeRelay(),i=await n.genericRequest(e,t).promise;if((0,U.isErrorResponse)(i))throw(0,l.serializeError)(i.errorMessage,"generic");if("string"!=typeof i.result)throw(0,l.serializeError)("result was not a string","generic");return i.result}async connectAndSignIn(e){var t;let n;null===(t=this.diagnostic)||void 0===t||t.log(J.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::connectAndSignIn",sessionIdHash:this._relay?R.Session.hash(this._relay.session.id):void 0});try{let t=await this.initializeRelay();if(!(t instanceof u.MobileRelay))throw Error("connectAndSignIn is only supported on mobile");if(n=await t.connectAndSignIn(e).promise,(0,U.isErrorResponse)(n))throw Error(n.errorMessage)}catch(e){if("string"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw l.standardErrors.provider.userRejectedRequest("User denied account authorization");throw e}if(!n.result)throw Error("accounts received is empty");let{accounts:i}=n.result;return this._setAddresses(i),this.isCoinbaseBrowser||await this.switchEthereumChain(this.getChainId()),n.result}async selectProvider(e){let t=await this.initializeRelay(),n=await t.selectProvider(e).promise;if((0,U.isErrorResponse)(n))throw(0,l.serializeError)(n.errorMessage,"selectProvider");if("string"!=typeof n.result)throw(0,l.serializeError)("result was not a string","selectProvider");return n.result}supportsSubscriptions(){return!1}subscribe(){throw Error("Subscriptions are not supported")}unsubscribe(){throw Error("Subscriptions are not supported")}disconnect(){return!0}_sendRequest(e){let t={jsonrpc:"2.0",id:e.id},{method:n}=e;if(t.result=this._handleSynchronousMethods(e),void 0===t.result)throw Error(`Coinbase Wallet does not support calling ${n} synchronously without a callback. Please provide a callback parameter to call ${n} asynchronously.`);return t}_setAddresses(e,t){if(!Array.isArray(e))throw Error("addresses is not an array");let n=e.map(e=>(0,c.ensureAddressString)(e));JSON.stringify(n)!==JSON.stringify(this._addresses)&&(this._addresses=n,this.emit("accountsChanged",this._addresses),this._storage.setItem(v.LOCAL_STORAGE_ADDRESSES_KEY,n.join(" ")))}_sendRequestAsync(e){return new Promise((t,n)=>{try{let i=this._handleSynchronousMethods(e);if(void 0!==i)return t({jsonrpc:"2.0",id:e.id,result:i});let s=this._handleAsynchronousFilterMethods(e);if(void 0!==s){s.then(n=>t(Object.assign(Object.assign({},n),{id:e.id}))).catch(e=>n(e));return}let o=this._handleSubscriptionMethods(e);if(void 0!==o){o.then(n=>t({jsonrpc:"2.0",id:e.id,result:n.result})).catch(e=>n(e));return}}catch(e){return n(e)}this._handleAsynchronousMethods(e).then(n=>n&&t(Object.assign(Object.assign({},n),{id:e.id}))).catch(e=>n(e))})}_sendMultipleRequestsAsync(e){return Promise.all(e.map(e=>this._sendRequestAsync(e)))}_handleSynchronousMethods(e){let{method:t}=e,n=e.params||[];switch(t){case"eth_accounts":return this._eth_accounts();case"eth_coinbase":return this._eth_coinbase();case"eth_uninstallFilter":return this._eth_uninstallFilter(n);case"net_version":return this._net_version();case"eth_chainId":return this._eth_chainId();default:return}}async _handleAsynchronousMethods(e){let{method:t}=e,n=e.params||[];switch(t){case"eth_requestAccounts":return this._eth_requestAccounts();case"eth_sign":return this._eth_sign(n);case"eth_ecRecover":return this._eth_ecRecover(n);case"personal_sign":return this._personal_sign(n);case"personal_ecRecover":return this._personal_ecRecover(n);case"eth_signTransaction":return this._eth_signTransaction(n);case"eth_sendRawTransaction":return this._eth_sendRawTransaction(n);case"eth_sendTransaction":return this._eth_sendTransaction(n);case"eth_signTypedData_v1":return this._eth_signTypedData_v1(n);case"eth_signTypedData_v2":return this._throwUnsupportedMethodError();case"eth_signTypedData_v3":return this._eth_signTypedData_v3(n);case"eth_signTypedData_v4":case"eth_signTypedData":return this._eth_signTypedData_v4(n);case"cbWallet_arbitrary":return this._cbwallet_arbitrary(n);case"wallet_addEthereumChain":return this._wallet_addEthereumChain(n);case"wallet_switchEthereumChain":return this._wallet_switchEthereumChain(n);case"wallet_watchAsset":return this._wallet_watchAsset(n)}let i=await this.initializeRelay();return i.makeEthereumJSONRPCRequest(e,this.jsonRpcUrl).catch(t=>{var n;throw(t.code===l.standardErrorCodes.rpc.methodNotFound||t.code===l.standardErrorCodes.rpc.methodNotSupported)&&(null===(n=this.diagnostic)||void 0===n||n.log(J.EVENTS.METHOD_NOT_IMPLEMENTED,{method:e.method,sessionIdHash:this._relay?R.Session.hash(this._relay.session.id):void 0})),t})}_handleAsynchronousFilterMethods(e){let{method:t}=e,n=e.params||[];switch(t){case"eth_newFilter":return this._eth_newFilter(n);case"eth_newBlockFilter":return this._eth_newBlockFilter();case"eth_newPendingTransactionFilter":return this._eth_newPendingTransactionFilter();case"eth_getFilterChanges":return this._eth_getFilterChanges(n);case"eth_getFilterLogs":return this._eth_getFilterLogs(n)}}_handleSubscriptionMethods(e){switch(e.method){case"eth_subscribe":case"eth_unsubscribe":return this._subscriptionManager.handleRequest(e)}}_isKnownAddress(e){try{let t=(0,c.ensureAddressString)(e),n=this._addresses.map(e=>(0,c.ensureAddressString)(e));return n.includes(t)}catch(e){}return!1}_ensureKnownAddress(e){var t;if(!this._isKnownAddress(e))throw null===(t=this.diagnostic)||void 0===t||t.log(J.EVENTS.UNKNOWN_ADDRESS_ENCOUNTERED),Error("Unknown Ethereum address")}_prepareTransactionParams(e){let t=e.from?(0,c.ensureAddressString)(e.from):this.selectedAddress;if(!t)throw Error("Ethereum address is unavailable");this._ensureKnownAddress(t);let n=e.to?(0,c.ensureAddressString)(e.to):null,s=null!=e.value?(0,c.ensureBN)(e.value):new o.default(0),a=e.data?(0,c.ensureBuffer)(e.data):i.alloc(0),l=null!=e.nonce?(0,c.ensureIntNumber)(e.nonce):null,u=null!=e.gasPrice?(0,c.ensureBN)(e.gasPrice):null,v=null!=e.maxFeePerGas?(0,c.ensureBN)(e.maxFeePerGas):null,R=null!=e.maxPriorityFeePerGas?(0,c.ensureBN)(e.maxPriorityFeePerGas):null,U=null!=e.gas?(0,c.ensureBN)(e.gas):null,W=e.chainId?(0,c.ensureIntNumber)(e.chainId):this.getChainId();return{fromAddress:t,toAddress:n,weiValue:s,data:a,nonce:l,gasPriceInWei:u,maxFeePerGas:v,maxPriorityFeePerGas:R,gasLimit:U,chainId:W}}_isAuthorized(){return this._addresses.length>0}_requireAuthorization(){if(!this._isAuthorized())throw l.standardErrors.provider.unauthorized({})}_throwUnsupportedMethodError(){throw l.standardErrors.provider.unsupportedMethod({})}async _signEthereumMessage(e,t,n,i){this._ensureKnownAddress(t);try{let s=await this.initializeRelay(),o=await s.signEthereumMessage(e,t,n,i).promise;if((0,U.isErrorResponse)(o))throw Error(o.errorMessage);return{jsonrpc:"2.0",id:0,result:o.result}}catch(e){if("string"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw l.standardErrors.provider.userRejectedRequest("User denied message signature");throw e}}async _ethereumAddressFromSignedMessage(e,t,n){let i=await this.initializeRelay(),s=await i.ethereumAddressFromSignedMessage(e,t,n).promise;if((0,U.isErrorResponse)(s))throw Error(s.errorMessage);return{jsonrpc:"2.0",id:0,result:s.result}}_eth_accounts(){return[...this._addresses]}_eth_coinbase(){return this.selectedAddress||null}_net_version(){return this.getChainId().toString(10)}_eth_chainId(){return(0,c.hexStringFromIntNumber)(this.getChainId())}getChainId(){let e=this._storage.getItem(K);if(!e)return(0,c.ensureIntNumber)(this._chainIdFromOpts);let t=parseInt(e,10);return(0,c.ensureIntNumber)(t)}async _eth_requestAccounts(){var e;let t;if(null===(e=this.diagnostic)||void 0===e||e.log(J.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::_eth_requestAccounts",addresses_length:this._addresses.length,sessionIdHash:this._relay?R.Session.hash(this._relay.session.id):void 0}),this._isAuthorized())return Promise.resolve({jsonrpc:"2.0",id:0,result:this._addresses});try{let e=await this.initializeRelay();if(t=await e.requestEthereumAccounts().promise,(0,U.isErrorResponse)(t))throw Error(t.errorMessage)}catch(e){if("string"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw l.standardErrors.provider.userRejectedRequest("User denied account authorization");throw e}if(!t.result)throw Error("accounts received is empty");return this._setAddresses(t.result),this.isCoinbaseBrowser||await this.switchEthereumChain(this.getChainId()),{jsonrpc:"2.0",id:0,result:this._addresses}}_eth_sign(e){this._requireAuthorization();let t=(0,c.ensureAddressString)(e[0]),n=(0,c.ensureBuffer)(e[1]);return this._signEthereumMessage(n,t,!1)}_eth_ecRecover(e){let t=(0,c.ensureBuffer)(e[0]),n=(0,c.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(t,n,!1)}_personal_sign(e){this._requireAuthorization();let t=(0,c.ensureBuffer)(e[0]),n=(0,c.ensureAddressString)(e[1]);return this._signEthereumMessage(t,n,!0)}_personal_ecRecover(e){let t=(0,c.ensureBuffer)(e[0]),n=(0,c.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(t,n,!0)}async _eth_signTransaction(e){this._requireAuthorization();let t=this._prepareTransactionParams(e[0]||{});try{let e=await this.initializeRelay(),n=await e.signEthereumTransaction(t).promise;if((0,U.isErrorResponse)(n))throw Error(n.errorMessage);return{jsonrpc:"2.0",id:0,result:n.result}}catch(e){if("string"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw l.standardErrors.provider.userRejectedRequest("User denied transaction signature");throw e}}async _eth_sendRawTransaction(e){let t=(0,c.ensureBuffer)(e[0]),n=await this.initializeRelay(),i=await n.submitEthereumTransaction(t,this.getChainId()).promise;if((0,U.isErrorResponse)(i))throw Error(i.errorMessage);return{jsonrpc:"2.0",id:0,result:i.result}}async _eth_sendTransaction(e){this._requireAuthorization();let t=this._prepareTransactionParams(e[0]||{});try{let e=await this.initializeRelay(),n=await e.signAndSubmitEthereumTransaction(t).promise;if((0,U.isErrorResponse)(n))throw Error(n.errorMessage);return{jsonrpc:"2.0",id:0,result:n.result}}catch(e){if("string"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw l.standardErrors.provider.userRejectedRequest("User denied transaction signature");throw e}}async _eth_signTypedData_v1(e){this._requireAuthorization();let t=(0,c.ensureParsedJSONObject)(e[0]),n=(0,c.ensureAddressString)(e[1]);this._ensureKnownAddress(n);let i=W.default.hashForSignTypedDataLegacy({data:t}),s=JSON.stringify(t,null,2);return this._signEthereumMessage(i,n,!1,s)}async _eth_signTypedData_v3(e){this._requireAuthorization();let t=(0,c.ensureAddressString)(e[0]),n=(0,c.ensureParsedJSONObject)(e[1]);this._ensureKnownAddress(t);let i=W.default.hashForSignTypedData_v3({data:n}),s=JSON.stringify(n,null,2);return this._signEthereumMessage(i,t,!1,s)}async _eth_signTypedData_v4(e){this._requireAuthorization();let t=(0,c.ensureAddressString)(e[0]),n=(0,c.ensureParsedJSONObject)(e[1]);this._ensureKnownAddress(t);let i=W.default.hashForSignTypedData_v4({data:n}),s=JSON.stringify(n,null,2);return this._signEthereumMessage(i,t,!1,s)}async _cbwallet_arbitrary(e){let t=e[0],n=e[1];if("string"!=typeof n)throw Error("parameter must be a string");if("object"!=typeof t||null===t)throw Error("parameter must be an object");let i=await this.genericRequest(t,n);return{jsonrpc:"2.0",id:0,result:i}}async _wallet_addEthereumChain(e){var t,n,i,s;let o=e[0];if((null===(t=o.rpcUrls)||void 0===t?void 0:t.length)===0)return{jsonrpc:"2.0",id:0,error:{code:2,message:"please pass in at least 1 rpcUrl"}};if(!o.chainName||""===o.chainName.trim())throw l.standardErrors.rpc.invalidParams("chainName is a required field");if(!o.nativeCurrency)throw l.standardErrors.rpc.invalidParams("nativeCurrency is a required field");let a=parseInt(o.chainId,16),c=await this.addEthereumChain(a,null!==(n=o.rpcUrls)&&void 0!==n?n:[],null!==(i=o.blockExplorerUrls)&&void 0!==i?i:[],o.chainName,null!==(s=o.iconUrls)&&void 0!==s?s:[],o.nativeCurrency);return c?{jsonrpc:"2.0",id:0,result:null}:{jsonrpc:"2.0",id:0,error:{code:2,message:"unable to add ethereum chain"}}}async _wallet_switchEthereumChain(e){let t=e[0];return await this.switchEthereumChain(parseInt(t.chainId,16)),{jsonrpc:"2.0",id:0,result:null}}async _wallet_watchAsset(e){let t=Array.isArray(e)?e[0]:e;if(!t.type)throw l.standardErrors.rpc.invalidParams("Type is required");if((null==t?void 0:t.type)!=="ERC20")throw l.standardErrors.rpc.invalidParams(`Asset of type '${t.type}' is not supported`);if(!(null==t?void 0:t.options))throw l.standardErrors.rpc.invalidParams("Options are required");if(!(null==t?void 0:t.options.address))throw l.standardErrors.rpc.invalidParams("Address is required");let n=this.getChainId(),{address:i,symbol:s,image:o,decimals:a}=t.options,c=await this.watchAsset(t.type,i,s,a,o,n);return{jsonrpc:"2.0",id:0,result:c}}_eth_uninstallFilter(e){let t=(0,c.ensureHexString)(e[0]);return this._filterPolyfill.uninstallFilter(t)}async _eth_newFilter(e){let t=e[0],n=await this._filterPolyfill.newFilter(t);return{jsonrpc:"2.0",id:0,result:n}}async _eth_newBlockFilter(){let e=await this._filterPolyfill.newBlockFilter();return{jsonrpc:"2.0",id:0,result:e}}async _eth_newPendingTransactionFilter(){let e=await this._filterPolyfill.newPendingTransactionFilter();return{jsonrpc:"2.0",id:0,result:e}}_eth_getFilterChanges(e){let t=(0,c.ensureHexString)(e[0]);return this._filterPolyfill.getFilterChanges(t)}_eth_getFilterLogs(e){let t=(0,c.ensureHexString)(e[0]);return this._filterPolyfill.getFilterLogs(t)}initializeRelay(){return this._relay?Promise.resolve(this._relay):this._relayProvider().then(e=>(e.setAccountsCallback((e,t)=>this._setAddresses(e,t)),e.setChainCallback((e,t)=>{this.updateProviderInfo(t,parseInt(e,10))}),e.setDappDefaultChainCallback(this._chainIdFromOpts),this._relay=e,e))}};t.CoinbaseWalletProvider=CoinbaseWalletProvider},33564:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EVENTS=void 0,t.EVENTS={STARTED_CONNECTING:"walletlink_sdk.started.connecting",CONNECTED_STATE_CHANGE:"walletlink_sdk.connected",DISCONNECTED:"walletlink_sdk.disconnected",METADATA_DESTROYED:"walletlink_sdk_metadata_destroyed",LINKED:"walletlink_sdk.linked",FAILURE:"walletlink_sdk.generic_failure",SESSION_CONFIG_RECEIVED:"walletlink_sdk.session_config_event_received",ETH_ACCOUNTS_STATE:"walletlink_sdk.eth_accounts_state",SESSION_STATE_CHANGE:"walletlink_sdk.session_state_change",UNLINKED_ERROR_STATE:"walletlink_sdk.unlinked_error_state",SKIPPED_CLEARING_SESSION:"walletlink_sdk.skipped_clearing_session",GENERAL_ERROR:"walletlink_sdk.general_error",WEB3_REQUEST:"walletlink_sdk.web3.request",WEB3_REQUEST_PUBLISHED:"walletlink_sdk.web3.request_published",WEB3_RESPONSE:"walletlink_sdk.web3.response",METHOD_NOT_IMPLEMENTED:"walletlink_sdk.method_not_implemented",UNKNOWN_ADDRESS_ENCOUNTERED:"walletlink_sdk.unknown_address_encountered"}},78126:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filterFromParam=t.FilterPolyfill=void 0;let i=n(14534),s=n(8994),o={jsonrpc:"2.0",id:0};let FilterPolyfill=class FilterPolyfill{constructor(e){this.logFilters=new Map,this.blockFilters=new Set,this.pendingTransactionFilters=new Set,this.cursors=new Map,this.timeouts=new Map,this.nextFilterId=(0,i.IntNumber)(1),this.REQUEST_THROTTLE_INTERVAL=1e3,this.lastFetchTimestamp=new Date(0),this.resolvers=[],this.provider=e}async newFilter(e){let t=filterFromParam(e),n=this.makeFilterId(),i=await this.setInitialCursorPosition(n,t.fromBlock);return console.info(`Installing new log filter(${n}):`,t,"initial cursor position:",i),this.logFilters.set(n,t),this.setFilterTimeout(n),(0,s.hexStringFromIntNumber)(n)}async newBlockFilter(){let e=this.makeFilterId(),t=await this.setInitialCursorPosition(e,"latest");return console.info(`Installing new block filter (${e}) with initial cursor position:`,t),this.blockFilters.add(e),this.setFilterTimeout(e),(0,s.hexStringFromIntNumber)(e)}async newPendingTransactionFilter(){let e=this.makeFilterId(),t=await this.setInitialCursorPosition(e,"latest");return console.info(`Installing new block filter (${e}) with initial cursor position:`,t),this.pendingTransactionFilters.add(e),this.setFilterTimeout(e),(0,s.hexStringFromIntNumber)(e)}uninstallFilter(e){let t=(0,s.intNumberFromHexString)(e);return console.info(`Uninstalling filter (${t})`),this.deleteFilter(t),!0}getFilterChanges(e){let t=(0,s.intNumberFromHexString)(e);return(this.timeouts.has(t)&&this.setFilterTimeout(t),this.logFilters.has(t))?this.getLogFilterChanges(t):this.blockFilters.has(t)?this.getBlockFilterChanges(t):this.pendingTransactionFilters.has(t)?this.getPendingTransactionFilterChanges(t):Promise.resolve(filterNotFoundError())}async getFilterLogs(e){let t=(0,s.intNumberFromHexString)(e),n=this.logFilters.get(t);return n?this.sendAsyncPromise(Object.assign(Object.assign({},o),{method:"eth_getLogs",params:[paramFromFilter(n)]})):filterNotFoundError()}makeFilterId(){return(0,i.IntNumber)(++this.nextFilterId)}sendAsyncPromise(e){return new Promise((t,n)=>{this.provider.sendAsync(e,(e,i)=>e?n(e):Array.isArray(i)||null==i?n(Error(`unexpected response received: ${JSON.stringify(i)}`)):void t(i))})}deleteFilter(e){console.info(`Deleting filter (${e})`),this.logFilters.delete(e),this.blockFilters.delete(e),this.pendingTransactionFilters.delete(e),this.cursors.delete(e),this.timeouts.delete(e)}async getLogFilterChanges(e){let t=this.logFilters.get(e),n=this.cursors.get(e);if(!n||!t)return filterNotFoundError();let a=await this.getCurrentBlockHeight(),l="latest"===t.toBlock?a:t.toBlock;if(n>a||n>Number(t.toBlock))return emptyResult();console.info(`Fetching logs from ${n} to ${l} for filter ${e}`);let c=await this.sendAsyncPromise(Object.assign(Object.assign({},o),{method:"eth_getLogs",params:[paramFromFilter(Object.assign(Object.assign({},t),{fromBlock:n,toBlock:l}))]}));if(Array.isArray(c.result)){let t=c.result.map(e=>(0,s.intNumberFromHexString)(e.blockNumber||"0x0")),o=Math.max(...t);if(o&&o>n){let t=(0,i.IntNumber)(o+1);console.info(`Moving cursor position for filter (${e}) from ${n} to ${t}`),this.cursors.set(e,t)}}return c}async getBlockFilterChanges(e){let t=this.cursors.get(e);if(!t)return filterNotFoundError();let n=await this.getCurrentBlockHeight();if(t>n)return emptyResult();console.info(`Fetching blocks from ${t} to ${n} for filter (${e})`);let a=(await Promise.all((0,s.range)(t,n+1).map(e=>this.getBlockHashByNumber((0,i.IntNumber)(e))))).filter(e=>!!e),l=(0,i.IntNumber)(t+a.length);return console.info(`Moving cursor position for filter (${e}) from ${t} to ${l}`),this.cursors.set(e,l),Object.assign(Object.assign({},o),{result:a})}async getPendingTransactionFilterChanges(e){return Promise.resolve(emptyResult())}async setInitialCursorPosition(e,t){let n=await this.getCurrentBlockHeight(),i="number"==typeof t&&t>n?t:n;return this.cursors.set(e,i),i}setFilterTimeout(e){let t=this.timeouts.get(e);t&&window.clearTimeout(t);let n=window.setTimeout(()=>{console.info(`Filter (${e}) timed out`),this.deleteFilter(e)},3e5);this.timeouts.set(e,n)}async getCurrentBlockHeight(){let e=new Date;if(e.getTime()-this.lastFetchTimestamp.getTime()>this.REQUEST_THROTTLE_INTERVAL){this.lastFetchTimestamp=e;let t=await this._getCurrentBlockHeight();this.currentBlockHeight=t,this.resolvers.forEach(e=>e(t)),this.resolvers=[]}return this.currentBlockHeight?this.currentBlockHeight:new Promise(e=>this.resolvers.push(e))}async _getCurrentBlockHeight(){let{result:e}=await this.sendAsyncPromise(Object.assign(Object.assign({},o),{method:"eth_blockNumber",params:[]}));return(0,s.intNumberFromHexString)((0,s.ensureHexString)(e))}async getBlockHashByNumber(e){let t=await this.sendAsyncPromise(Object.assign(Object.assign({},o),{method:"eth_getBlockByNumber",params:[(0,s.hexStringFromIntNumber)(e),!1]}));return t.result&&"string"==typeof t.result.hash?(0,s.ensureHexString)(t.result.hash):null}};function filterFromParam(e){return{fromBlock:intBlockHeightFromHexBlockHeight(e.fromBlock),toBlock:intBlockHeightFromHexBlockHeight(e.toBlock),addresses:void 0===e.address?null:Array.isArray(e.address)?e.address:[e.address],topics:e.topics||[]}}function paramFromFilter(e){let t={fromBlock:hexBlockHeightFromIntBlockHeight(e.fromBlock),toBlock:hexBlockHeightFromIntBlockHeight(e.toBlock),topics:e.topics};return null!==e.addresses&&(t.address=e.addresses),t}function intBlockHeightFromHexBlockHeight(e){if(void 0===e||"latest"===e||"pending"===e)return"latest";if("earliest"===e)return(0,i.IntNumber)(0);if((0,s.isHexString)(e))return(0,s.intNumberFromHexString)(e);throw Error(`Invalid block option: ${String(e)}`)}function hexBlockHeightFromIntBlockHeight(e){return"latest"===e?e:(0,s.hexStringFromIntNumber)(e)}function filterNotFoundError(){return Object.assign(Object.assign({},o),{error:{code:-32e3,message:"filter not found"}})}function emptyResult(){return Object.assign(Object.assign({},o),{result:[]})}t.FilterPolyfill=FilterPolyfill,t.filterFromParam=filterFromParam},34128:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SubscriptionManager=void 0;let i=n(18477),s=n(85712),noop=()=>{};let SubscriptionManager=class SubscriptionManager{constructor(e){let t=new i.PollingBlockTracker({provider:e,pollingInterval:15e3,setSkipCacheFlag:!0}),{events:n,middleware:o}=s({blockTracker:t,provider:e});this.events=n,this.subscriptionMiddleware=o}async handleRequest(e){let t={};return await this.subscriptionMiddleware(e,t,noop,noop),t}destroy(){this.subscriptionMiddleware.destroy()}};t.SubscriptionManager=SubscriptionManager},73505:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RelayAbstract=t.APP_VERSION_KEY=t.LOCAL_STORAGE_ADDRESSES_KEY=t.WALLET_USER_NAME_KEY=void 0;let i=n(42082);t.WALLET_USER_NAME_KEY="walletUsername",t.LOCAL_STORAGE_ADDRESSES_KEY="Addresses",t.APP_VERSION_KEY="AppVersion";let RelayAbstract=class RelayAbstract{async makeEthereumJSONRPCRequest(e,t){if(!t)throw Error("Error: No jsonRpcUrl provided");return window.fetch(t,{method:"POST",body:JSON.stringify(e),mode:"cors",headers:{"Content-Type":"application/json"}}).then(e=>e.json()).then(t=>{if(!t)throw i.standardErrors.rpc.parse({});let{error:n}=t;if(n)throw(0,i.serializeError)(n,e.method);return t})}};t.RelayAbstract=RelayAbstract},38468:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RelayEventManager=void 0;let i=n(8994);let RelayEventManager=class RelayEventManager{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%2147483647;let e=this._nextRequestId,t=(0,i.prepend0x)(e.toString(16)),n=this.callbacks.get(t);return n&&this.callbacks.delete(t),e}};t.RelayEventManager=RelayEventManager},66269:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Session=void 0;let i=n(21670),s=n(8994),o="session:id",a="session:secret",l="session:linked";let Session=class Session{constructor(e,t,n,o){this._storage=e,this._id=t||(0,s.randomBytesHex)(16),this._secret=n||(0,s.randomBytesHex)(32),this._key=new i.sha256().update(`${this._id}, ${this._secret} WalletLink`).digest("hex"),this._linked=!!o}static load(e){let t=e.getItem(o),n=e.getItem(l),i=e.getItem(a);return t&&i?new Session(e,t,i,"1"===n):null}static hash(e){return new i.sha256().update(e).digest("hex")}get id(){return this._id}get secret(){return this._secret}get key(){return this._key}get linked(){return this._linked}set linked(e){this._linked=e,this.persistLinked()}save(){return this._storage.setItem(o,this._id),this._storage.setItem(a,this._secret),this.persistLinked(),this}persistLinked(){this._storage.setItem(l,this._linked?"1":"0")}};t.Session=Session},51241:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MobileRelay=void 0;let i=n(8994),s=n(61786),o=n(67537);let MobileRelay=class MobileRelay extends s.WalletLinkRelay{constructor(e){var t;super(e),this._enableMobileWalletLink=null!==(t=e.enableMobileWalletLink)&&void 0!==t&&t}requestEthereumAccounts(){return this._enableMobileWalletLink?super.requestEthereumAccounts():{promise:new Promise(()=>{let e=(0,i.getLocation)();e.href=`https://go.cb-w.com/dapp?cb_url=${encodeURIComponent(e.href)}`}),cancel:()=>{}}}publishWeb3RequestEvent(e,t){if(super.publishWeb3RequestEvent(e,t),!(this._enableMobileWalletLink&&this.ui instanceof o.MobileRelayUI))return;let n=!1;switch(t.method){case"requestEthereumAccounts":case"connectAndSignIn":n=!0,this.ui.openCoinbaseWalletDeeplink(this.getQRCodeUrl());break;case"switchEthereumChain":return;default:n=!0,this.ui.openCoinbaseWalletDeeplink()}n&&window.addEventListener("blur",()=>{window.addEventListener("focus",()=>{this.connection.checkUnseenEvents()},{once:!0})},{once:!0})}handleWeb3ResponseMessage(e){super.handleWeb3ResponseMessage(e)}connectAndSignIn(e){if(!this._enableMobileWalletLink)throw Error("connectAndSignIn is supported only when enableMobileWalletLink is on");return this.sendRequest({method:"connectAndSignIn",params:{appName:this.appName,appLogoUrl:this.appLogoUrl,domain:window.location.hostname,aud:window.location.href,version:"1",type:"eip4361",nonce:e.nonce,iat:new Date().toISOString(),chainId:`eip155:${this.dappDefaultChain}`,statement:e.statement,resources:e.resources}})}};t.MobileRelay=MobileRelay},67537:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MobileRelayUI=void 0;let i=n(37059);let MobileRelayUI=class MobileRelayUI{constructor(e){this.attached=!1,this.darkMode=!1,this.redirectDialog=new i.RedirectDialog,this.darkMode=e.darkMode}attach(){if(this.attached)throw Error("Coinbase Wallet SDK UI is already attached");this.redirectDialog.attach(),this.attached=!0}setConnected(e){}redirectToCoinbaseWallet(e){let t=new URL("https://go.cb-w.com/walletlink");t.searchParams.append("redirect_url",window.location.href),e&&t.searchParams.append("wl_url",e);let n=document.createElement("a");n.target="cbw-opener",n.href=t.href,n.rel="noreferrer noopener",n.click()}openCoinbaseWalletDeeplink(e){this.redirectDialog.present({title:"Redirecting to Coinbase Wallet...",buttonText:"Open",darkMode:this.darkMode,onButtonClick:()=>{this.redirectToCoinbaseWallet(e)}}),setTimeout(()=>{this.redirectToCoinbaseWallet(e)},99)}showConnecting(e){return()=>{this.redirectDialog.clear()}}hideRequestEthereumAccounts(){this.redirectDialog.clear()}requestEthereumAccounts(){}addEthereumChain(){}watchAsset(){}selectProvider(){}switchEthereumChain(){}signEthereumMessage(){}signEthereumTransaction(){}submitEthereumTransaction(){}ethereumAddressFromSignedMessage(){}reloadUI(){}setStandalone(){}setConnectDisabled(){}inlineAccountsResponse(){return!1}inlineAddEthereumChain(){return!1}inlineWatchAsset(){return!1}inlineSwitchEthereumChain(){return!1}isStandalone(){return!1}};t.MobileRelayUI=MobileRelayUI},61786:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WalletLinkRelay=void 0;let i=n(42082),s=n(14534),o=n(8994),a=n(33564),l=n(73505),c=n(66269),u=n(29798),v=n(21507),R=n(11170);let WalletLinkRelay=class WalletLinkRelay extends l.RelayAbstract{constructor(e){var t;super(),this.accountsCallback=null,this.chainCallbackParams={chainId:"",jsonRpcUrl:""},this.chainCallback=null,this.dappDefaultChain=1,this.appName="",this.appLogoUrl=null,this.linkedUpdated=e=>{var t;this.isLinked=e;let n=this.storage.getItem(l.LOCAL_STORAGE_ADDRESSES_KEY);if(e&&(this.session.linked=e),this.isUnlinkedErrorState=!1,n){let i=n.split(" "),s="true"===this.storage.getItem("IsStandaloneSigning");if(""!==i[0]&&!e&&this.session.linked&&!s){this.isUnlinkedErrorState=!0;let e=this.getSessionIdHash();null===(t=this.diagnostic)||void 0===t||t.log(a.EVENTS.UNLINKED_ERROR_STATE,{sessionIdHash:e})}}},this.metadataUpdated=(e,t)=>{this.storage.setItem(e,t)},this.chainUpdated=(e,t)=>{(this.chainCallbackParams.chainId!==e||this.chainCallbackParams.jsonRpcUrl!==t)&&(this.chainCallbackParams={chainId:e,jsonRpcUrl:t},this.chainCallback&&this.chainCallback(e,t))},this.accountUpdated=e=>{this.accountsCallback&&this.accountsCallback([e]),WalletLinkRelay.accountRequestCallbackIds.size>0&&(Array.from(WalletLinkRelay.accountRequestCallbackIds.values()).forEach(t=>{this.invokeCallback(Object.assign(Object.assign({},{type:"WEB3_RESPONSE",id:t,response:{method:"requestEthereumAccounts",result:[e]}}),{id:t}))}),WalletLinkRelay.accountRequestCallbackIds.clear())},this.connectedUpdated=e=>{this.ui.setConnected(e)},this.resetAndReload=this.resetAndReload.bind(this),this.linkAPIUrl=e.linkAPIUrl,this.storage=e.storage,this.options=e;let{session:n,ui:i,connection:s}=this.subscribe();this._session=n,this.connection=s,this.relayEventManager=e.relayEventManager,this.diagnostic=e.diagnosticLogger,this._reloadOnDisconnect=null===(t=e.reloadOnDisconnect)||void 0===t||t,this.ui=i}subscribe(){let e=c.Session.load(this.storage)||new c.Session(this.storage).save(),{linkAPIUrl:t,diagnostic:n}=this,i=new u.WalletLinkConnection({session:e,linkAPIUrl:t,diagnostic:n,listener:this}),{version:s,darkMode:o}=this.options,a=this.options.uiConstructor({linkAPIUrl:t,version:s,darkMode:o,session:e});return i.connect(),{session:e,ui:a,connection:i}}attachUI(){this.ui.attach()}resetAndReload(){Promise.race([this.connection.setSessionMetadata("__destroyed","1"),new Promise(e=>setTimeout(()=>e(null),1e3))]).then(()=>{var e,t;let n=this.ui.isStandalone();null===(e=this.diagnostic)||void 0===e||e.log(a.EVENTS.SESSION_STATE_CHANGE,{method:"relay::resetAndReload",sessionMetadataChange:"__destroyed, 1",sessionIdHash:this.getSessionIdHash()}),this.connection.destroy();let i=c.Session.load(this.storage);if((null==i?void 0:i.id)===this._session.id?this.storage.clear():i&&(null===(t=this.diagnostic)||void 0===t||t.log(a.EVENTS.SKIPPED_CLEARING_SESSION,{sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:c.Session.hash(i.id)})),this._reloadOnDisconnect){this.ui.reloadUI();return}this.accountsCallback&&this.accountsCallback([],!0);let{session:s,ui:o,connection:l}=this.subscribe();this._session=s,this.connection=l,this.ui=o,n&&this.ui.setStandalone&&this.ui.setStandalone(!0),this.options.headlessMode||this.attachUI()}).catch(e=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(a.EVENTS.FAILURE,{method:"relay::resetAndReload",message:`failed to reset and reload with ${e}`,sessionIdHash:this.getSessionIdHash()})})}setAppInfo(e,t){this.appName=e,this.appLogoUrl=t}getStorageItem(e){return this.storage.getItem(e)}get session(){return this._session}setStorageItem(e,t){this.storage.setItem(e,t)}signEthereumMessage(e,t,n,i){return this.sendRequest({method:"signEthereumMessage",params:{message:(0,o.hexStringFromBuffer)(e,!0),address:t,addPrefix:n,typedDataJson:i||null}})}ethereumAddressFromSignedMessage(e,t,n){return this.sendRequest({method:"ethereumAddressFromSignedMessage",params:{message:(0,o.hexStringFromBuffer)(e,!0),signature:(0,o.hexStringFromBuffer)(t,!0),addPrefix:n}})}signEthereumTransaction(e){return this.sendRequest({method:"signEthereumTransaction",params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:(0,o.bigIntStringFromBN)(e.weiValue),data:(0,o.hexStringFromBuffer)(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?(0,o.bigIntStringFromBN)(e.gasPriceInWei):null,maxFeePerGas:e.gasPriceInWei?(0,o.bigIntStringFromBN)(e.gasPriceInWei):null,maxPriorityFeePerGas:e.gasPriceInWei?(0,o.bigIntStringFromBN)(e.gasPriceInWei):null,gasLimit:e.gasLimit?(0,o.bigIntStringFromBN)(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(e){return this.sendRequest({method:"signEthereumTransaction",params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:(0,o.bigIntStringFromBN)(e.weiValue),data:(0,o.hexStringFromBuffer)(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?(0,o.bigIntStringFromBN)(e.gasPriceInWei):null,maxFeePerGas:e.maxFeePerGas?(0,o.bigIntStringFromBN)(e.maxFeePerGas):null,maxPriorityFeePerGas:e.maxPriorityFeePerGas?(0,o.bigIntStringFromBN)(e.maxPriorityFeePerGas):null,gasLimit:e.gasLimit?(0,o.bigIntStringFromBN)(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!0}})}submitEthereumTransaction(e,t){return this.sendRequest({method:"submitEthereumTransaction",params:{signedTransaction:(0,o.hexStringFromBuffer)(e,!0),chainId:t}})}scanQRCode(e){return this.sendRequest({method:"scanQRCode",params:{regExp:e}})}getQRCodeUrl(){return(0,o.createQrUrl)(this._session.id,this._session.secret,this.linkAPIUrl,!1,this.options.version,this.dappDefaultChain)}genericRequest(e,t){return this.sendRequest({method:"generic",params:{action:t,data:e}})}sendGenericMessage(e){return this.sendRequest(e)}sendRequest(e){let t=null,n=(0,o.randomBytesHex)(8),cancel=i=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,e.method,i),null==t||t()},i=new Promise((i,s)=>{this.ui.isStandalone()||(t=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:cancel,onResetConnection:this.resetAndReload})),this.relayEventManager.callbacks.set(n,e=>{if(null==t||t(),(0,v.isErrorResponse)(e))return s(Error(e.errorMessage));i(e)}),this.ui.isStandalone()?this.sendRequestStandalone(n,e):this.publishWeb3RequestEvent(n,e)});return{promise:i,cancel}}setConnectDisabled(e){this.ui.setConnectDisabled(e)}setAccountsCallback(e){this.accountsCallback=e}setChainCallback(e){this.chainCallback=e}setDappDefaultChainCallback(e){this.dappDefaultChain=e,this.ui instanceof R.WalletLinkRelayUI&&this.ui.setChainId(e)}publishWeb3RequestEvent(e,t){var n;let i={type:"WEB3_REQUEST",id:e,request:t},s=c.Session.load(this.storage);null===(n=this.diagnostic)||void 0===n||n.log(a.EVENTS.WEB3_REQUEST,{eventId:i.id,method:`relay::${t.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:s?c.Session.hash(s.id):"",isSessionMismatched:((null==s?void 0:s.id)!==this._session.id).toString()}),this.publishEvent("Web3Request",i,!0).then(e=>{var n;null===(n=this.diagnostic)||void 0===n||n.log(a.EVENTS.WEB3_REQUEST_PUBLISHED,{eventId:i.id,method:`relay::${t.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:s?c.Session.hash(s.id):"",isSessionMismatched:((null==s?void 0:s.id)!==this._session.id).toString()})}).catch(e=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:i.id,response:{method:t.method,errorMessage:e.message}})})}publishWeb3RequestCanceledEvent(e){this.publishEvent("Web3RequestCanceled",{type:"WEB3_REQUEST_CANCELED",id:e},!1).then()}publishEvent(e,t,n){return this.connection.publishEvent(e,t,n)}handleWeb3ResponseMessage(e){var t;let{response:n}=e;if(null===(t=this.diagnostic)||void 0===t||t.log(a.EVENTS.WEB3_RESPONSE,{eventId:e.id,method:`relay::${n.method}`,sessionIdHash:this.getSessionIdHash()}),"requestEthereumAccounts"===n.method){WalletLinkRelay.accountRequestCallbackIds.forEach(t=>this.invokeCallback(Object.assign(Object.assign({},e),{id:t}))),WalletLinkRelay.accountRequestCallbackIds.clear();return}this.invokeCallback(e)}handleErrorResponse(e,t,n,s){var o;let a=null!==(o=null==n?void 0:n.message)&&void 0!==o?o:(0,i.getMessageFromCode)(s);this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:e,response:{method:t,errorMessage:a,errorCode:s}})}invokeCallback(e){let t=this.relayEventManager.callbacks.get(e.id);t&&(t(e.response),this.relayEventManager.callbacks.delete(e.id))}requestEthereumAccounts(){let e={method:"requestEthereumAccounts",params:{appName:this.appName,appLogoUrl:this.appLogoUrl||null}},t=(0,o.randomBytesHex)(8),cancel=n=>{this.publishWeb3RequestCanceledEvent(t),this.handleErrorResponse(t,e.method,n)},n=new Promise((n,s)=>{if(this.relayEventManager.callbacks.set(t,e=>{if(this.ui.hideRequestEthereumAccounts(),(0,v.isErrorResponse)(e))return s(Error(e.errorMessage));n(e)}),this.ui.inlineAccountsResponse())this.ui.requestEthereumAccounts({onCancel:cancel,onAccounts:e=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:t,response:{method:"requestEthereumAccounts",result:e}})}});else{let e=i.standardErrors.provider.userRejectedRequest("User denied account authorization");this.ui.requestEthereumAccounts({onCancel:()=>cancel(e)})}WalletLinkRelay.accountRequestCallbackIds.add(t),this.ui.inlineAccountsResponse()||this.ui.isStandalone()||this.publishWeb3RequestEvent(t,e)});return{promise:n,cancel}}selectProvider(e){let t=(0,o.randomBytesHex)(8),n=new Promise((n,i)=>{this.relayEventManager.callbacks.set(t,e=>{if((0,v.isErrorResponse)(e))return i(Error(e.errorMessage));n(e)}),this.ui.selectProvider&&this.ui.selectProvider({onApprove:e=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:t,response:{method:"selectProvider",result:e}})},onCancel:e=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:t,response:{method:"selectProvider",result:s.ProviderType.Unselected}})},providerOptions:e})});return{cancel:e=>{this.publishWeb3RequestCanceledEvent(t),this.handleErrorResponse(t,"selectProvider",e)},promise:n}}watchAsset(e,t,n,i,s,a){let l={method:"watchAsset",params:{type:e,options:{address:t,symbol:n,decimals:i,image:s},chainId:a}},c=null,u=(0,o.randomBytesHex)(8),cancel=e=>{this.publishWeb3RequestCanceledEvent(u),this.handleErrorResponse(u,l.method,e),null==c||c()};this.ui.inlineWatchAsset()||(c=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:cancel,onResetConnection:this.resetAndReload}));let R=new Promise((o,R)=>{this.relayEventManager.callbacks.set(u,e=>{if(null==c||c(),(0,v.isErrorResponse)(e))return R(Error(e.errorMessage));o(e)}),this.ui.inlineWatchAsset()&&this.ui.watchAsset({onApprove:()=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:u,response:{method:"watchAsset",result:!0}})},onCancel:e=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:u,response:{method:"watchAsset",result:!1}})},type:e,address:t,symbol:n,decimals:i,image:s,chainId:a}),this.ui.inlineWatchAsset()||this.ui.isStandalone()||this.publishWeb3RequestEvent(u,l)});return{cancel,promise:R}}addEthereumChain(e,t,n,i,s,a){let l={method:"addEthereumChain",params:{chainId:e,rpcUrls:t,blockExplorerUrls:i,chainName:s,iconUrls:n,nativeCurrency:a}},c=null,u=(0,o.randomBytesHex)(8),cancel=e=>{this.publishWeb3RequestCanceledEvent(u),this.handleErrorResponse(u,l.method,e),null==c||c()};this.ui.inlineAddEthereumChain(e)||(c=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:cancel,onResetConnection:this.resetAndReload}));let R=new Promise((t,n)=>{this.relayEventManager.callbacks.set(u,e=>{if(null==c||c(),(0,v.isErrorResponse)(e))return n(Error(e.errorMessage));t(e)}),this.ui.inlineAddEthereumChain(e)&&this.ui.addEthereumChain({onCancel:e=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:u,response:{method:"addEthereumChain",result:{isApproved:!1,rpcUrl:""}}})},onApprove:e=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:u,response:{method:"addEthereumChain",result:{isApproved:!0,rpcUrl:e}}})},chainId:l.params.chainId,rpcUrls:l.params.rpcUrls,blockExplorerUrls:l.params.blockExplorerUrls,chainName:l.params.chainName,iconUrls:l.params.iconUrls,nativeCurrency:l.params.nativeCurrency}),this.ui.inlineAddEthereumChain(e)||this.ui.isStandalone()||this.publishWeb3RequestEvent(u,l)});return{promise:R,cancel}}switchEthereumChain(e,t){let n={method:"switchEthereumChain",params:Object.assign({chainId:e},{address:t})},s=(0,o.randomBytesHex)(8),a=new Promise((t,o)=>{this.relayEventManager.callbacks.set(s,e=>(0,v.isErrorResponse)(e)&&e.errorCode?o(i.standardErrors.provider.custom({code:e.errorCode,message:"Unrecognized chain ID. Try adding the chain using addEthereumChain first."})):(0,v.isErrorResponse)(e)?o(Error(e.errorMessage)):void t(e)),this.ui.switchEthereumChain({onCancel:t=>{var n;if(t){let o=null!==(n=(0,i.getErrorCode)(t))&&void 0!==n?n:i.standardErrorCodes.provider.unsupportedChain;this.handleErrorResponse(s,"switchEthereumChain",t instanceof Error?t:i.standardErrors.provider.unsupportedChain(e),o)}else this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:s,response:{method:"switchEthereumChain",result:{isApproved:!1,rpcUrl:""}}})},onApprove:e=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:s,response:{method:"switchEthereumChain",result:{isApproved:!0,rpcUrl:e}}})},chainId:n.params.chainId,address:n.params.address}),this.ui.inlineSwitchEthereumChain()||this.ui.isStandalone()||this.publishWeb3RequestEvent(s,n)});return{promise:a,cancel:e=>{this.publishWeb3RequestCanceledEvent(s),this.handleErrorResponse(s,n.method,e)}}}inlineAddEthereumChain(e){return this.ui.inlineAddEthereumChain(e)}getSessionIdHash(){return c.Session.hash(this._session.id)}sendRequestStandalone(e,t){let _cancel=n=>{this.handleErrorResponse(e,t.method,n)},onSuccess=t=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:e,response:t})};switch(t.method){case"signEthereumMessage":this.ui.signEthereumMessage({request:t,onSuccess,onCancel:_cancel});break;case"signEthereumTransaction":this.ui.signEthereumTransaction({request:t,onSuccess,onCancel:_cancel});break;case"submitEthereumTransaction":this.ui.submitEthereumTransaction({request:t,onSuccess,onCancel:_cancel});break;case"ethereumAddressFromSignedMessage":this.ui.ethereumAddressFromSignedMessage({request:t,onSuccess});break;default:_cancel()}}};t.WalletLinkRelay=WalletLinkRelay,WalletLinkRelay.accountRequestCallbackIds=new Set},29798:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WalletLinkConnection=void 0;let i=n(14534),s=n(25717),o=n(33564),a=n(73505),l=n(66269),c=n(88251),u=n(30098);let WalletLinkConnection=class WalletLinkConnection{constructor({session:e,linkAPIUrl:t,listener:n,diagnostic:v,WebSocketClass:R=WebSocket}){this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=(0,i.IntNumber)(1),this._connected=!1,this._linked=!1,this.shouldFetchUnseenEventsOnConnect=!1,this.requestResolutions=new Map,this.handleSessionMetadataUpdated=e=>{if(!e)return;let t=new Map([["__destroyed",this.handleDestroyed],["EthereumAddress",this.handleAccountUpdated],["WalletUsername",this.handleWalletUsernameUpdated],["AppVersion",this.handleAppVersionUpdated],["ChainId",t=>e.JsonRpcUrl&&this.handleChainUpdated(t,e.JsonRpcUrl)]]);t.forEach((t,n)=>{let i=e[n];void 0!==i&&t(i)})},this.handleDestroyed=e=>{var t,n;"1"===e&&(null===(t=this.listener)||void 0===t||t.resetAndReload(),null===(n=this.diagnostic)||void 0===n||n.log(o.EVENTS.METADATA_DESTROYED,{alreadyDestroyed:this.isDestroyed,sessionIdHash:l.Session.hash(this.session.id)}))},this.handleAccountUpdated=async e=>{var t,n;try{let n=await this.cipher.decrypt(e);null===(t=this.listener)||void 0===t||t.accountUpdated(n)}catch(e){null===(n=this.diagnostic)||void 0===n||n.log(o.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"selectedAddress"})}},this.handleMetadataUpdated=async(e,t)=>{var n,i;try{let i=await this.cipher.decrypt(t);null===(n=this.listener)||void 0===n||n.metadataUpdated(e,i)}catch(t){null===(i=this.diagnostic)||void 0===i||i.log(o.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:e})}},this.handleWalletUsernameUpdated=async e=>{this.handleMetadataUpdated(a.WALLET_USER_NAME_KEY,e)},this.handleAppVersionUpdated=async e=>{this.handleMetadataUpdated(a.APP_VERSION_KEY,e)},this.handleChainUpdated=async(e,t)=>{var n,i;try{let i=await this.cipher.decrypt(e),s=await this.cipher.decrypt(t);null===(n=this.listener)||void 0===n||n.chainUpdated(i,s)}catch(e){null===(i=this.diagnostic)||void 0===i||i.log(o.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"chainId|jsonRpcUrl"})}},this.session=e,this.cipher=new s.Cipher(e.secret),this.diagnostic=v,this.listener=n;let U=new u.WalletLinkWebSocket(`${t}/rpc`,R);U.setConnectionStateListener(async t=>{var n;null===(n=this.diagnostic)||void 0===n||n.log(o.EVENTS.CONNECTED_STATE_CHANGE,{state:t,sessionIdHash:l.Session.hash(e.id)});let i=!1;switch(t){case u.ConnectionState.DISCONNECTED:if(!this.destroyed){let connect=async()=>{await new Promise(e=>setTimeout(e,5e3)),this.destroyed||U.connect().catch(()=>{connect()})};connect()}break;case u.ConnectionState.CONNECTED:try{await this.authenticate(),this.sendIsLinked(),this.sendGetSessionConfig(),i=!0}catch(e){}this.updateLastHeartbeat(),setInterval(()=>{this.heartbeat()},1e4),this.shouldFetchUnseenEventsOnConnect&&this.fetchUnseenEventsAPI();case u.ConnectionState.CONNECTING:}this.connected!==i&&(this.connected=i)}),U.setIncomingDataListener(t=>{var n,i,s;switch(t.type){case"Heartbeat":this.updateLastHeartbeat();return;case"IsLinkedOK":case"Linked":{let i="IsLinkedOK"===t.type?t.linked:void 0;null===(n=this.diagnostic)||void 0===n||n.log(o.EVENTS.LINKED,{sessionIdHash:l.Session.hash(e.id),linked:i,type:t.type,onlineGuests:t.onlineGuests}),this.linked=i||t.onlineGuests>0;break}case"GetSessionConfigOK":case"SessionConfigUpdated":null===(i=this.diagnostic)||void 0===i||i.log(o.EVENTS.SESSION_CONFIG_RECEIVED,{sessionIdHash:l.Session.hash(e.id),metadata_keys:t&&t.metadata?Object.keys(t.metadata):void 0}),this.handleSessionMetadataUpdated(t.metadata);break;case"Event":this.handleIncomingEvent(t)}void 0!==t.id&&(null===(s=this.requestResolutions.get(t.id))||void 0===s||s(t))}),this.ws=U,this.http=new c.WalletLinkHTTP(t,e.id,e.key)}connect(){var e;if(this.destroyed)throw Error("instance is destroyed");null===(e=this.diagnostic)||void 0===e||e.log(o.EVENTS.STARTED_CONNECTING,{sessionIdHash:l.Session.hash(this.session.id)}),this.ws.connect()}destroy(){var e;this.destroyed=!0,this.ws.disconnect(),null===(e=this.diagnostic)||void 0===e||e.log(o.EVENTS.DISCONNECTED,{sessionIdHash:l.Session.hash(this.session.id)}),this.listener=void 0}get isDestroyed(){return this.destroyed}get connected(){return this._connected}set connected(e){var t,n;this._connected=e,e&&(null===(t=this.onceConnected)||void 0===t||t.call(this)),null===(n=this.listener)||void 0===n||n.connectedUpdated(e)}setOnceConnected(e){return new Promise(t=>{this.connected?e().then(t):this.onceConnected=()=>{e().then(t),this.onceConnected=void 0}})}get linked(){return this._linked}set linked(e){var t,n;this._linked=e,e&&(null===(t=this.onceLinked)||void 0===t||t.call(this)),null===(n=this.listener)||void 0===n||n.linkedUpdated(e)}setOnceLinked(e){return new Promise(t=>{this.linked?e().then(t):this.onceLinked=()=>{e().then(t),this.onceLinked=void 0}})}async handleIncomingEvent(e){var t,n;if("Event"===e.type&&"Web3Response"===e.event)try{let n=await this.cipher.decrypt(e.data),i=JSON.parse(n);if("WEB3_RESPONSE"!==i.type)return;null===(t=this.listener)||void 0===t||t.handleWeb3ResponseMessage(i)}catch(e){null===(n=this.diagnostic)||void 0===n||n.log(o.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"incomingEvent"})}}async checkUnseenEvents(){if(!this.connected){this.shouldFetchUnseenEventsOnConnect=!0;return}await new Promise(e=>setTimeout(e,250));try{await this.fetchUnseenEventsAPI()}catch(e){console.error("Unable to check for unseen events",e)}}async fetchUnseenEventsAPI(){this.shouldFetchUnseenEventsOnConnect=!1;let e=await this.http.fetchUnseenEvents();e.forEach(e=>this.handleIncomingEvent(e))}async setSessionMetadata(e,t){let n={type:"SetSessionConfig",id:(0,i.IntNumber)(this.nextReqId++),sessionId:this.session.id,metadata:{[e]:t}};return this.setOnceConnected(async()=>{let e=await this.makeRequest(n);if("Fail"===e.type)throw Error(e.error||"failed to set session metadata")})}async publishEvent(e,t,n=!1){let s=await this.cipher.encrypt(JSON.stringify(Object.assign(Object.assign({},t),{origin:location.origin,relaySource:window.coinbaseWalletExtension?"injected_sdk":"sdk"}))),o={type:"PublishEvent",id:(0,i.IntNumber)(this.nextReqId++),sessionId:this.session.id,event:e,data:s,callWebhook:n};return this.setOnceLinked(async()=>{let e=await this.makeRequest(o);if("Fail"===e.type)throw Error(e.error||"failed to publish event");return e.eventId})}sendData(e){this.ws.sendData(JSON.stringify(e))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>2e4){this.ws.disconnect();return}try{this.ws.sendData("h")}catch(e){}}async makeRequest(e,t=6e4){let n;let i=e.id;return this.sendData(e),Promise.race([new Promise((e,s)=>{n=window.setTimeout(()=>{s(Error(`request ${i} timed out`))},t)}),new Promise(e=>{this.requestResolutions.set(i,t=>{clearTimeout(n),e(t),this.requestResolutions.delete(i)})})])}async authenticate(){let e={type:"HostSession",id:(0,i.IntNumber)(this.nextReqId++),sessionId:this.session.id,sessionKey:this.session.key},t=await this.makeRequest(e);if("Fail"===t.type)throw Error(t.error||"failed to authentcate")}sendIsLinked(){let e={type:"IsLinked",id:(0,i.IntNumber)(this.nextReqId++),sessionId:this.session.id};this.sendData(e)}sendGetSessionConfig(){let e={type:"GetSessionConfig",id:(0,i.IntNumber)(this.nextReqId++),sessionId:this.session.id};this.sendData(e)}};t.WalletLinkConnection=WalletLinkConnection},88251:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WalletLinkHTTP=void 0;let WalletLinkHTTP=class WalletLinkHTTP{constructor(e,t,n){this.linkAPIUrl=e,this.sessionId=t;let i=`${t}:${n}`;this.auth=`Basic ${btoa(i)}`}async markUnseenEventsAsSeen(e){return Promise.all(e.map(e=>fetch(`${this.linkAPIUrl}/events/${e.eventId}/seen`,{method:"POST",headers:{Authorization:this.auth}}))).catch(e=>console.error("Unabled to mark event as failed:",e))}async fetchUnseenEvents(){var e;let t=await fetch(`${this.linkAPIUrl}/events?unseen=true`,{headers:{Authorization:this.auth}});if(t.ok){let{events:n,error:i}=await t.json();if(i)throw Error(`Check unseen events failed: ${i}`);let s=null!==(e=null==n?void 0:n.filter(e=>"Web3Response"===e.event).map(e=>({type:"Event",sessionId:this.sessionId,eventId:e.id,event:e.event,data:e.data})))&&void 0!==e?e:[];return this.markUnseenEventsAsSeen(s),s}throw Error(`Check unseen events failed: ${t.status}`)}};t.WalletLinkHTTP=WalletLinkHTTP},30098:function(e,t){"use strict";var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.WalletLinkWebSocket=t.ConnectionState=void 0,(i=n||(t.ConnectionState=n={}))[i.DISCONNECTED=0]="DISCONNECTED",i[i.CONNECTING=1]="CONNECTING",i[i.CONNECTED=2]="CONNECTED";let WalletLinkWebSocket=class WalletLinkWebSocket{setConnectionStateListener(e){this.connectionStateListener=e}setIncomingDataListener(e){this.incomingDataListener=e}constructor(e,t=WebSocket){this.WebSocketClass=t,this.webSocket=null,this.pendingData=[],this.url=e.replace(/^http/,"ws")}async connect(){if(this.webSocket)throw Error("webSocket object is not null");return new Promise((e,t)=>{var i;let s;try{this.webSocket=s=new this.WebSocketClass(this.url)}catch(e){t(e);return}null===(i=this.connectionStateListener)||void 0===i||i.call(this,n.CONNECTING),s.onclose=e=>{var i;this.clearWebSocket(),t(Error(`websocket error ${e.code}: ${e.reason}`)),null===(i=this.connectionStateListener)||void 0===i||i.call(this,n.DISCONNECTED)},s.onopen=t=>{var i;if(e(),null===(i=this.connectionStateListener)||void 0===i||i.call(this,n.CONNECTED),this.pendingData.length>0){let e=[...this.pendingData];e.forEach(e=>this.sendData(e)),this.pendingData=[]}},s.onmessage=e=>{var t,n;if("h"===e.data)null===(t=this.incomingDataListener)||void 0===t||t.call(this,{type:"Heartbeat"});else try{let t=JSON.parse(e.data);null===(n=this.incomingDataListener)||void 0===n||n.call(this,t)}catch(e){}}})}disconnect(){var e;let{webSocket:t}=this;if(t){this.clearWebSocket(),null===(e=this.connectionStateListener)||void 0===e||e.call(this,n.DISCONNECTED),this.connectionStateListener=void 0,this.incomingDataListener=void 0;try{t.close()}catch(e){}}}sendData(e){let{webSocket:t}=this;if(!t){this.pendingData.push(e),this.connect();return}t.send(e)}clearWebSocket(){let{webSocket:e}=this;e&&(this.webSocket=null,e.onclose=null,e.onerror=null,e.onmessage=null,e.onopen=null)}};t.WalletLinkWebSocket=WalletLinkWebSocket},21507:function(e,t){"use strict";function isErrorResponse(e){return void 0!==e.errorMessage}Object.defineProperty(t,"__esModule",{value:!0}),t.isErrorResponse=void 0,t.isErrorResponse=isErrorResponse},11170:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WalletLinkRelayUI=void 0;let i=n(26222),s=n(92242),o=n(96937);let WalletLinkRelayUI=class WalletLinkRelayUI{constructor(e){this.standalone=null,this.attached=!1,this.snackbar=new o.Snackbar({darkMode:e.darkMode}),this.linkFlow=new s.LinkFlow({darkMode:e.darkMode,version:e.version,sessionId:e.session.id,sessionSecret:e.session.secret,linkAPIUrl:e.linkAPIUrl,isParentConnection:!1})}attach(){if(this.attached)throw Error("Coinbase Wallet SDK UI is already attached");let e=document.documentElement,t=document.createElement("div");t.className="-cbwsdk-css-reset",e.appendChild(t),this.linkFlow.attach(t),this.snackbar.attach(t),this.attached=!0,(0,i.injectCssReset)()}setConnected(e){this.linkFlow.setConnected(e)}setChainId(e){this.linkFlow.setChainId(e)}setConnectDisabled(e){this.linkFlow.setConnectDisabled(e)}addEthereumChain(){}watchAsset(){}switchEthereumChain(){}requestEthereumAccounts(e){this.linkFlow.open({onCancel:e.onCancel})}hideRequestEthereumAccounts(){this.linkFlow.close()}signEthereumMessage(){}signEthereumTransaction(){}submitEthereumTransaction(){}ethereumAddressFromSignedMessage(){}showConnecting(e){let t;return t=e.isUnlinkedErrorState?{autoExpand:!0,message:"Connection lost",menuItems:[{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:e.onResetConnection}]}:{message:"Confirm on phone",menuItems:[{isRed:!0,info:"Cancel transaction",svgWidth:"11",svgHeight:"11",path:"M10.3711 1.52346L9.21775 0.370117L5.37109 4.21022L1.52444 0.370117L0.371094 1.52346L4.2112 5.37012L0.371094 9.21677L1.52444 10.3701L5.37109 6.53001L9.21775 10.3701L10.3711 9.21677L6.53099 5.37012L10.3711 1.52346Z",defaultFillRule:"inherit",defaultClipRule:"inherit",onClick:e.onCancel},{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:e.onResetConnection}]},this.snackbar.presentItem(t)}reloadUI(){document.location.reload()}inlineAccountsResponse(){return!1}inlineAddEthereumChain(){return!1}inlineWatchAsset(){return!1}inlineSwitchEthereumChain(){return!1}setStandalone(e){this.standalone=e}isStandalone(){var e;return null!==(e=this.standalone)&&void 0!==e&&e}};t.WalletLinkRelayUI=WalletLinkRelayUI},96712:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=".-cbwsdk-css-reset .-cbwsdk-connect-content{height:430px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-connect-content.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-header{display:flex;align-items:center;justify-content:space-between;margin:0 0 30px}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading{font-style:normal;font-weight:500;font-size:28px;line-height:36px;margin:0}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-layout{display:flex;flex-direction:row}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-left{margin-right:30px;display:flex;flex-direction:column;justify-content:space-between}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-right{flex:25%;margin-right:34px}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-wrapper{width:220px;height:220px;border-radius:12px;display:flex;justify-content:center;align-items:center;background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light{background-color:rgba(255,255,255,.95)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light>p{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark{background-color:rgba(10,11,13,.9)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark>p{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting>p{font-size:12px;font-weight:bold;margin-top:16px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app{border-radius:8px;font-size:14px;line-height:20px;padding:12px;width:339px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.light{background:#eef0f3;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.dark{background:#1e2025;color:#8a919e}.-cbwsdk-css-reset .-cbwsdk-cancel-button{-webkit-appearance:none;border:none;background:none;cursor:pointer;padding:0;margin:0}.-cbwsdk-css-reset .-cbwsdk-cancel-button-x{position:relative;display:block;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-wallet-steps{padding:0 0 0 16px;margin:0;width:100%;list-style:decimal}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item{list-style-type:decimal;display:list-item;font-style:normal;font-weight:400;font-size:16px;line-height:24px;margin-top:20px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item-wrapper{display:flex;align-items:center}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-pad-left{margin-left:6px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon{display:flex;border-radius:50%;height:24px;width:24px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.light{background:#0052ff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.dark{background:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item{align-items:center;display:flex;flex-direction:row;padding:16px 24px;gap:12px;cursor:pointer;border-radius:100px;font-weight:600}.-cbwsdk-css-reset .-cbwsdk-connect-item.light{background:#f5f8ff;color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark{background:#001033;color:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item-copy-wrapper{margin:0 4px 0 8px}.-cbwsdk-css-reset .-cbwsdk-connect-item-title{margin:0 0 0;font-size:16px;line-height:24px;font-weight:500}.-cbwsdk-css-reset .-cbwsdk-connect-item-description{font-weight:400;font-size:14px;line-height:20px;margin:0}"},66562:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoinbaseWalletSteps=t.ConnectContent=void 0;let s=i(n(1534)),o=n(36146),a=n(8994),l=n(11563),c=n(25861),u=n(88343),v=n(6067),R=n(56106),U=n(72955),W=i(n(96712)),J={title:"Coinbase Wallet app",description:"Connect with your self-custody wallet",steps:CoinbaseWalletSteps},makeIconColor=e=>"light"===e?"#FFFFFF":"#0A0B0D";function ConnectContent(e){let{theme:t}=e,n=(0,a.createQrUrl)(e.sessionId,e.sessionSecret,e.linkAPIUrl,e.isParentConnection,e.version,e.chainId),i=J.steps;return(0,o.h)("div",{"data-testid":"connect-content",className:(0,s.default)("-cbwsdk-connect-content",t)},(0,o.h)("style",null,W.default),(0,o.h)("div",{className:"-cbwsdk-connect-content-header"},(0,o.h)("h2",{className:(0,s.default)("-cbwsdk-connect-content-heading",t)},"Scan to connect with our mobile app"),e.onCancel&&(0,o.h)("button",{type:"button",className:"-cbwsdk-cancel-button",onClick:e.onCancel},(0,o.h)(c.CloseIcon,{fill:"light"===t?"#0A0B0D":"#FFFFFF"}))),(0,o.h)("div",{className:"-cbwsdk-connect-content-layout"},(0,o.h)("div",{className:"-cbwsdk-connect-content-column-left"},(0,o.h)(ConnectItem,{title:J.title,description:J.description,theme:t})),(0,o.h)("div",{className:"-cbwsdk-connect-content-column-right"},(0,o.h)("div",{className:"-cbwsdk-connect-content-qr-wrapper"},(0,o.h)(R.QRCode,{content:n,width:200,height:200,fgColor:"#000",bgColor:"transparent"}),(0,o.h)("input",{type:"hidden",name:"cbw-cbwsdk-version",value:l.LIB_VERSION}),(0,o.h)("input",{type:"hidden",value:n})),(0,o.h)(i,{theme:t}),!e.isConnected&&(0,o.h)("div",{"data-testid":"connecting-spinner",className:(0,s.default)("-cbwsdk-connect-content-qr-connecting",t)},(0,o.h)(U.Spinner,{size:36,color:"dark"===t?"#FFF":"#000"}),(0,o.h)("p",null,"Connecting...")))))}function ConnectItem({title:e,description:t,theme:n}){return(0,o.h)("div",{className:(0,s.default)("-cbwsdk-connect-item",n)},(0,o.h)("div",null,(0,o.h)(u.CoinbaseWalletRound,null)),(0,o.h)("div",{className:"-cbwsdk-connect-item-copy-wrapper"},(0,o.h)("h3",{className:"-cbwsdk-connect-item-title"},e),(0,o.h)("p",{className:"-cbwsdk-connect-item-description"},t)))}function CoinbaseWalletSteps({theme:e}){return(0,o.h)("ol",{className:"-cbwsdk-wallet-steps"},(0,o.h)("li",{className:(0,s.default)("-cbwsdk-wallet-steps-item",e)},(0,o.h)("div",{className:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase Wallet app")),(0,o.h)("li",{className:(0,s.default)("-cbwsdk-wallet-steps-item",e)},(0,o.h)("div",{className:"-cbwsdk-wallet-steps-item-wrapper"},(0,o.h)("span",null,"Tap ",(0,o.h)("strong",null,"Scan")," "),(0,o.h)("span",{className:(0,s.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",e)},(0,o.h)(v.QRCodeIcon,{fill:makeIconColor(e)})))))}t.ConnectContent=ConnectContent,t.CoinbaseWalletSteps=CoinbaseWalletSteps},22386:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=".-cbwsdk-css-reset .-cbwsdk-connect-dialog{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.light{background-color:rgba(0,0,0,.5)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.dark{background-color:rgba(50,53,61,.4)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box{display:flex;position:relative;flex-direction:column;transform:scale(1);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box-hidden{opacity:0;transform:scale(0.85)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container{display:block}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container-hidden{display:none}"},92455:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectDialog=void 0;let s=i(n(1534)),o=n(36146),a=n(52700),l=n(66562),c=n(20722),u=i(n(22386));t.ConnectDialog=e=>{let{isOpen:t,darkMode:n}=e,[i,v]=(0,a.useState)(!t),[R,U]=(0,a.useState)(!t);(0,a.useEffect)(()=>{let e=[window.setTimeout(()=>{U(!t)},10)];return t?v(!1):e.push(window.setTimeout(()=>{v(!0)},360)),()=>{e.forEach(window.clearTimeout)}},[t]);let W=n?"dark":"light";return(0,o.h)("div",{class:(0,s.default)("-cbwsdk-connect-dialog-container",i&&"-cbwsdk-connect-dialog-container-hidden")},(0,o.h)("style",null,u.default),(0,o.h)("div",{class:(0,s.default)("-cbwsdk-connect-dialog-backdrop",W,R&&"-cbwsdk-connect-dialog-backdrop-hidden")}),(0,o.h)("div",{class:"-cbwsdk-connect-dialog"},(0,o.h)("div",{class:(0,s.default)("-cbwsdk-connect-dialog-box",R&&"-cbwsdk-connect-dialog-box-hidden")},e.connectDisabled?null:(0,o.h)(l.ConnectContent,{theme:W,version:e.version,sessionId:e.sessionId,sessionSecret:e.sessionSecret,linkAPIUrl:e.linkAPIUrl,isConnected:e.isConnected,isParentConnection:e.isParentConnection,chainId:e.chainId,onCancel:e.onCancel}),(0,o.h)(c.TryExtensionContent,{theme:W}))))}},92242:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinkFlow=void 0;let i=n(36146),s=n(92455);let LinkFlow=class LinkFlow{constructor(e){this.connected=!1,this.chainId=1,this.isOpen=!1,this.onCancel=null,this.root=null,this.connectDisabled=!1,this.darkMode=e.darkMode,this.version=e.version,this.sessionId=e.sessionId,this.sessionSecret=e.sessionSecret,this.linkAPIUrl=e.linkAPIUrl,this.isParentConnection=e.isParentConnection}attach(e){this.root=document.createElement("div"),this.root.className="-cbwsdk-link-flow-root",e.appendChild(this.root),this.render()}setConnected(e){this.connected!==e&&(this.connected=e,this.render())}setChainId(e){this.chainId!==e&&(this.chainId=e,this.render())}detach(){var e;this.root&&((0,i.render)(null,this.root),null===(e=this.root.parentElement)||void 0===e||e.removeChild(this.root))}setConnectDisabled(e){this.connectDisabled=e}open(e){this.isOpen=!0,this.onCancel=e.onCancel,this.render()}close(){this.isOpen=!1,this.onCancel=null,this.render()}render(){this.root&&(0,i.render)((0,i.h)(s.ConnectDialog,{darkMode:this.darkMode,version:this.version,sessionId:this.sessionId,sessionSecret:this.sessionSecret,linkAPIUrl:this.linkAPIUrl,isOpen:this.isOpen,isConnected:this.connected,isParentConnection:this.isParentConnection,chainId:this.chainId,onCancel:this.onCancel,connectDisabled:this.connectDisabled}),this.root)}};t.LinkFlow=LinkFlow},56106:function(e,t,n){"use strict";var i=n(61900).Buffer,s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.QRCode=void 0;let o=n(36146),a=n(52700),l=s(n(84988));t.QRCode=e=>{let[t,n]=(0,a.useState)("");return(0,a.useEffect)(()=>{var t,s;let o=new l.default({content:e.content,background:e.bgColor||"#ffffff",color:e.fgColor||"#000000",container:"svg",ecl:"M",width:null!==(t=e.width)&&void 0!==t?t:256,height:null!==(s=e.height)&&void 0!==s?s:256,padding:0,image:e.image}),a=i.from(o.svg(),"utf8").toString("base64");n(`data:image/svg+xml;base64,${a}`)},[e.bgColor,e.content,e.fgColor,e.height,e.image,e.width]),t?(0,o.h)("img",{src:t,alt:"QR Code"}):null}},53350:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=".-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s;background-color:rgba(10,11,13,.5)}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box{display:block;position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);padding:20px;border-radius:8px;background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box p{display:block;font-weight:400;font-size:14px;line-height:20px;padding-bottom:12px;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box button{appearance:none;border:none;background:none;color:#0052ff;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark{background-color:#0a0b0d;color:#fff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark button{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light{background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light button{color:#0052ff}"},37059:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RedirectDialog=void 0;let s=i(n(1534)),o=n(36146),a=n(26222),l=n(7046),c=i(n(53350));let RedirectDialog=class RedirectDialog{constructor(){this.root=null}attach(){let e=document.documentElement;this.root=document.createElement("div"),this.root.className="-cbwsdk-css-reset",e.appendChild(this.root),(0,a.injectCssReset)()}present(e){this.render(e)}clear(){this.render(null)}render(e){this.root&&((0,o.render)(null,this.root),e&&(0,o.render)((0,o.h)(RedirectDialogContent,Object.assign({},e,{onDismiss:()=>{this.clear()}})),this.root))}};t.RedirectDialog=RedirectDialog;let RedirectDialogContent=({title:e,buttonText:t,darkMode:n,onButtonClick:i,onDismiss:a})=>(0,o.h)(l.SnackbarContainer,{darkMode:n},(0,o.h)("div",{class:"-cbwsdk-redirect-dialog"},(0,o.h)("style",null,c.default),(0,o.h)("div",{class:"-cbwsdk-redirect-dialog-backdrop",onClick:a}),(0,o.h)("div",{class:(0,s.default)("-cbwsdk-redirect-dialog-box",n?"dark":"light")},(0,o.h)("p",null,e),(0,o.h)("button",{onClick:i},t))))},11218:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=".-cbwsdk-css-reset .-gear-container{margin-left:16px !important;margin-right:9px !important;display:flex;align-items:center;justify-content:center;width:24px;height:24px;transition:opacity .25s}.-cbwsdk-css-reset .-gear-container *{user-select:none}.-cbwsdk-css-reset .-gear-container svg{opacity:0;position:absolute}.-cbwsdk-css-reset .-gear-icon{height:12px;width:12px;z-index:10000}.-cbwsdk-css-reset .-cbwsdk-snackbar{align-items:flex-end;display:flex;flex-direction:column;position:fixed;right:0;top:0;z-index:2147483647}.-cbwsdk-css-reset .-cbwsdk-snackbar *{user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance{display:flex;flex-direction:column;margin:8px 16px 0 16px;overflow:visible;text-align:left;transform:translateX(0);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header:hover .-gear-container svg{opacity:1}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header{display:flex;align-items:center;background:#fff;overflow:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-cblogo{margin:8px 8px 8px 8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-message{color:#000;font-size:13px;line-height:1.5;user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu{background:#fff;transition:opacity .25s ease-in-out,transform .25s linear,visibility 0s;visibility:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;opacity:0;flex-direction:column;padding-left:8px;padding-right:8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:last-child{margin-bottom:8px !important}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover{background:#f5f7f8;border-radius:6px;transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover span{color:#050f19;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover svg path{fill:#000;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item{visibility:inherit;height:35px;margin-top:8px;margin-bottom:0;display:flex;flex-direction:row;align-items:center;padding:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item *{visibility:inherit;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover{background:rgba(223,95,103,.2);transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover svg path{fill:#df5f67;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover span{color:#df5f67;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-info{color:#aaa;font-size:13px;margin:0 8px 0 32px;position:absolute}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-hidden{opacity:0;text-align:left;transform:translateX(25%);transition:opacity .5s linear}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-expanded .-cbwsdk-snackbar-instance-menu{opacity:1;display:flex;transform:translateY(8px);visibility:visible}"},96937:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SnackbarInstance=t.SnackbarContainer=t.Snackbar=void 0;let s=i(n(1534)),o=n(36146),a=n(52700),l=i(n(11218));let Snackbar=class Snackbar{constructor(e){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=e.darkMode}attach(e){this.root=document.createElement("div"),this.root.className="-cbwsdk-snackbar-root",e.appendChild(this.root),this.render()}presentItem(e){let t=this.nextItemKey++;return this.items.set(t,e),this.render(),()=>{this.items.delete(t),this.render()}}clear(){this.items.clear(),this.render()}render(){this.root&&(0,o.render)((0,o.h)("div",null,(0,o.h)(t.SnackbarContainer,{darkMode:this.darkMode},Array.from(this.items.entries()).map(([e,n])=>(0,o.h)(t.SnackbarInstance,Object.assign({},n,{key:e}))))),this.root)}};t.Snackbar=Snackbar,t.SnackbarContainer=e=>(0,o.h)("div",{class:(0,s.default)("-cbwsdk-snackbar-container")},(0,o.h)("style",null,l.default),(0,o.h)("div",{class:"-cbwsdk-snackbar"},e.children)),t.SnackbarInstance=({autoExpand:e,message:t,menuItems:n})=>{let[i,l]=(0,a.useState)(!0),[c,u]=(0,a.useState)(null!=e&&e);return(0,a.useEffect)(()=>{let e=[window.setTimeout(()=>{l(!1)},1),window.setTimeout(()=>{u(!0)},1e4)];return()=>{e.forEach(window.clearTimeout)}}),(0,o.h)("div",{class:(0,s.default)("-cbwsdk-snackbar-instance",i&&"-cbwsdk-snackbar-instance-hidden",c&&"-cbwsdk-snackbar-instance-expanded")},(0,o.h)("div",{class:"-cbwsdk-snackbar-instance-header",onClick:()=>{u(!c)}},(0,o.h)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+",class:"-cbwsdk-snackbar-instance-header-cblogo"})," ",(0,o.h)("div",{class:"-cbwsdk-snackbar-instance-header-message"},t),(0,o.h)("div",{class:"-gear-container"},!c&&(0,o.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("circle",{cx:"12",cy:"12",r:"12",fill:"#F5F7F8"})),(0,o.h)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=",class:"-gear-icon",title:"Expand"}))),n&&n.length>0&&(0,o.h)("div",{class:"-cbwsdk-snackbar-instance-menu"},n.map((e,t)=>(0,o.h)("div",{class:(0,s.default)("-cbwsdk-snackbar-instance-menu-item",e.isRed&&"-cbwsdk-snackbar-instance-menu-item-is-red"),onClick:e.onClick,key:t},(0,o.h)("svg",{width:e.svgWidth,height:e.svgHeight,viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("path",{"fill-rule":e.defaultFillRule,"clip-rule":e.defaultClipRule,d:e.path,fill:"#AAAAAA"})),(0,o.h)("span",{class:(0,s.default)("-cbwsdk-snackbar-instance-menu-item-info",e.isRed&&"-cbwsdk-snackbar-instance-menu-item-info-is-red")},e.info)))))}},7046:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,s)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),s(n(96937),t)},65601:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=".-cbwsdk-css-reset .-cbwsdk-spinner{display:inline-block}.-cbwsdk-css-reset .-cbwsdk-spinner svg{display:inline-block;animation:2s linear infinite -cbwsdk-spinner-svg}.-cbwsdk-css-reset .-cbwsdk-spinner svg circle{animation:1.9s ease-in-out infinite both -cbwsdk-spinner-circle;display:block;fill:rgba(0,0,0,0);stroke-dasharray:283;stroke-dashoffset:280;stroke-linecap:round;stroke-width:10px;transform-origin:50% 50%}@keyframes -cbwsdk-spinner-svg{0%{transform:rotateZ(0deg)}100%{transform:rotateZ(360deg)}}@keyframes -cbwsdk-spinner-circle{0%,25%{stroke-dashoffset:280;transform:rotate(0)}50%,75%{stroke-dashoffset:75;transform:rotate(45deg)}100%{stroke-dashoffset:280;transform:rotate(360deg)}}"},72955:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Spinner=void 0;let s=n(36146),o=i(n(65601));t.Spinner=e=>{var t;let n=null!==(t=e.size)&&void 0!==t?t:64,i=e.color||"#000";return(0,s.h)("div",{class:"-cbwsdk-spinner"},(0,s.h)("style",null,o.default),(0,s.h)("svg",{viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",style:{width:n,height:n}},(0,s.h)("circle",{style:{cx:50,cy:50,r:45,stroke:i}})))}},30774:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=".-cbwsdk-css-reset .-cbwsdk-try-extension{display:flex;margin-top:12px;height:202px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-try-extension.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-column-half{flex:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading{font-style:normal;font-weight:500;font-size:25px;line-height:32px;margin:0;max-width:204px}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta{appearance:none;border:none;background:none;color:#0052ff;cursor:pointer;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.light{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.dark{color:#588af5}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-wrapper{display:flex;align-items:center;margin-top:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-icon{display:block;margin-left:4px;height:14px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list{display:flex;flex-direction:column;justify-content:center;align-items:center;margin:0;padding:0;list-style:none;height:100%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item{display:flex;align-items:center;flex-flow:nowrap;margin-top:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item:first-of-type{margin-top:0}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon-wrapper{display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon{display:flex;height:32px;width:32px;border-radius:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.light{background:#eef0f3}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.dark{background:#1e2025}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy{display:block;font-weight:400;font-size:14px;line-height:20px;padding-left:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.light{color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.dark{color:#8a919e}"},20722:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TryExtensionContent=void 0;let s=i(n(1534)),o=n(36146),a=n(52700),l=n(122),c=n(6319),u=n(92255),v=i(n(30774));function TryExtensionContent({theme:e}){let[t,n]=(0,a.useState)(!1),i=(0,a.useCallback)(()=>{window.open("https://api.wallet.coinbase.com/rpc/v2/desktop/chrome","_blank")},[]),R=(0,a.useCallback)(()=>{t?window.location.reload():(i(),n(!0))},[i,t]);return(0,o.h)("div",{class:(0,s.default)("-cbwsdk-try-extension",e)},(0,o.h)("style",null,v.default),(0,o.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,o.h)("h3",{class:(0,s.default)("-cbwsdk-try-extension-heading",e)},"Or try the Coinbase Wallet browser extension"),(0,o.h)("div",{class:"-cbwsdk-try-extension-cta-wrapper"},(0,o.h)("button",{class:(0,s.default)("-cbwsdk-try-extension-cta",e),onClick:R},t?"Refresh":"Install"),(0,o.h)("div",null,!t&&(0,o.h)(l.ArrowLeftIcon,{class:"-cbwsdk-try-extension-cta-icon",fill:"light"===e?"#0052FF":"#588AF5"})))),(0,o.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,o.h)("ul",{class:"-cbwsdk-try-extension-list"},(0,o.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,o.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,o.h)("span",{class:(0,s.default)("-cbwsdk-try-extension-list-item-icon",e)},(0,o.h)(c.LaptopIcon,{fill:"light"===e?"#0A0B0D":"#FFFFFF"}))),(0,o.h)("div",{class:(0,s.default)("-cbwsdk-try-extension-list-item-copy",e)},"Connect with dapps with just one click on your desktop browser")),(0,o.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,o.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,o.h)("span",{class:(0,s.default)("-cbwsdk-try-extension-list-item-icon",e)},(0,o.h)(u.SafeIcon,{fill:"light"===e?"#0A0B0D":"#FFFFFF"}))),(0,o.h)("div",{class:(0,s.default)("-cbwsdk-try-extension-list-item-copy",e)},"Add an additional layer of security by using a supported Ledger hardware wallet")))))}t.TryExtensionContent=TryExtensionContent},122:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowLeftIcon=void 0;let i=n(36146);function ArrowLeftIcon(e){return(0,i.h)("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},e),(0,i.h)("path",{d:"M8.60675 0.155884L7.37816 1.28209L12.7723 7.16662H0V8.83328H12.6548L6.82149 14.6666L8 15.8451L15.8201 8.02501L8.60675 0.155884Z"}))}t.ArrowLeftIcon=ArrowLeftIcon},25861:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CloseIcon=void 0;let i=n(36146);function CloseIcon(e){return(0,i.h)("svg",Object.assign({width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,i.h)("path",{d:"M13.7677 13L12.3535 14.4142L18.3535 20.4142L12.3535 26.4142L13.7677 27.8284L19.7677 21.8284L25.7677 27.8284L27.1819 26.4142L21.1819 20.4142L27.1819 14.4142L25.7677 13L19.7677 19L13.7677 13Z"}))}t.CloseIcon=CloseIcon},88343:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CoinbaseWalletRound=void 0;let i=n(36146);function CoinbaseWalletRound(e){return(0,i.h)("svg",Object.assign({width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,i.h)("circle",{cx:"14",cy:"14",r:"14",fill:"#0052FF"}),(0,i.h)("path",{d:"M23.8521 14.0003C23.8521 19.455 19.455 23.8521 14.0003 23.8521C8.54559 23.8521 4.14844 19.455 4.14844 14.0003C4.14844 8.54559 8.54559 4.14844 14.0003 4.14844C19.455 4.14844 23.8521 8.54559 23.8521 14.0003Z",fill:"white"}),(0,i.h)("path",{d:"M11.1855 12.5042C11.1855 12.0477 11.1855 11.7942 11.2835 11.642C11.3814 11.4899 11.4793 11.3377 11.6261 11.287C11.8219 11.1855 12.0178 11.1855 12.5073 11.1855H15.4934C15.983 11.1855 16.1788 11.1855 16.3746 11.287C16.5215 11.3884 16.6683 11.4899 16.7173 11.642C16.8152 11.8449 16.8152 12.0477 16.8152 12.5042V15.4965C16.8152 15.953 16.8152 16.2066 16.7173 16.3587C16.6194 16.5109 16.5215 16.663 16.3746 16.7137C16.1788 16.8152 15.983 16.8152 15.4934 16.8152H12.5073C12.0178 16.8152 11.8219 16.8152 11.6261 16.7137C11.4793 16.6123 11.3324 16.5109 11.2835 16.3587C11.1855 16.1558 11.1855 15.953 11.1855 15.4965V12.5042Z",fill:"#0052FF"}))}t.CoinbaseWalletRound=CoinbaseWalletRound},6319:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LaptopIcon=void 0;let i=n(36146);function LaptopIcon(e){return(0,i.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},e),(0,i.h)("path",{d:"M1.8001 2.2002H12.2001V9.40019H1.8001V2.2002ZM3.4001 3.8002V7.80019H10.6001V3.8002H3.4001Z"}),(0,i.h)("path",{d:"M13.4001 10.2002H0.600098C0.600098 11.0838 1.31644 11.8002 2.2001 11.8002H11.8001C12.6838 11.8002 13.4001 11.0838 13.4001 10.2002Z"}))}t.LaptopIcon=LaptopIcon},6067:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QRCodeIcon=void 0;let i=n(36146);function QRCodeIcon(e){return(0,i.h)("svg",Object.assign({width:"18",height:"18",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),(0,i.h)("path",{d:"M3 3V8.99939L5 8.99996V5H9V3H3Z"}),(0,i.h)("path",{d:"M15 21L21 21V15.0006L19 15V19L15 19V21Z"}),(0,i.h)("path",{d:"M21 9H19V5H15.0006L15 3H21V9Z"}),(0,i.h)("path",{d:"M3 15V21H8.99939L8.99996 19H5L5 15H3Z"}))}t.QRCodeIcon=QRCodeIcon},92255:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SafeIcon=void 0;let i=n(36146);function SafeIcon(e){return(0,i.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},e),(0,i.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.600098 0.600098V11.8001H13.4001V0.600098H0.600098ZM7.0001 9.2001C5.3441 9.2001 4.0001 7.8561 4.0001 6.2001C4.0001 4.5441 5.3441 3.2001 7.0001 3.2001C8.6561 3.2001 10.0001 4.5441 10.0001 6.2001C10.0001 7.8561 8.6561 9.2001 7.0001 9.2001ZM0.600098 12.6001H3.8001V13.4001H0.600098V12.6001ZM10.2001 12.6001H13.4001V13.4001H10.2001V12.6001ZM8.8001 6.2001C8.8001 7.19421 7.99421 8.0001 7.0001 8.0001C6.00598 8.0001 5.2001 7.19421 5.2001 6.2001C5.2001 5.20598 6.00598 4.4001 7.0001 4.4001C7.99421 4.4001 8.8001 5.20598 8.8001 6.2001Z"}))}t.SafeIcon=SafeIcon},12429:function(e,t,n){var i=n(61900).Buffer;let s=n(68461),o=n(60079);function elementaryName(e){if(e.startsWith("int["))return"int256"+e.slice(3);if("int"===e)return"int256";if(e.startsWith("uint["))return"uint256"+e.slice(4);if("uint"===e)return"uint256";if(e.startsWith("fixed["))return"fixed128x128"+e.slice(5);if("fixed"===e)return"fixed128x128";if(e.startsWith("ufixed["))return"ufixed128x128"+e.slice(6);else if("ufixed"===e)return"ufixed128x128";return e}function parseTypeN(e){return parseInt(/^\D+(\d+)$/.exec(e)[1],10)}function parseTypeNxM(e){var t=/^\D+(\d+)x(\d+)$/.exec(e);return[parseInt(t[1],10),parseInt(t[2],10)]}function parseTypeArray(e){var t=e.match(/(.*)\[(.*?)\]$/);return t?""===t[2]?"dynamic":parseInt(t[2],10):null}function parseNumber(e){var t=typeof e;if("string"===t)return s.isHexString(e)?new o(s.stripHexPrefix(e),16):new o(e,10);if("number"===t)return new o(e);if(e.toArray)return e;throw Error("Argument is not a number")}function encodeSingle(e,t){var n,a,l,c;if("address"===e)return encodeSingle("uint160",parseNumber(t));if("bool"===e)return encodeSingle("uint8",t?1:0);if("string"===e)return encodeSingle("bytes",new i(t,"utf8"));if(isArray(e)){if(void 0===t.length)throw Error("Not an array?");if("dynamic"!==(n=parseTypeArray(e))&&0!==n&&t.length>n)throw Error("Elements exceed array size: "+n);for(c in l=[],e=e.slice(0,e.lastIndexOf("[")),"string"==typeof t&&(t=JSON.parse(t)),t)l.push(encodeSingle(e,t[c]));if("dynamic"===n){var u=encodeSingle("uint256",t.length);l.unshift(u)}return i.concat(l)}if("bytes"===e)return t=new i(t),l=i.concat([encodeSingle("uint256",t.length),t]),t.length%32!=0&&(l=i.concat([l,s.zeros(32-t.length%32)])),l;if(e.startsWith("bytes")){if((n=parseTypeN(e))<1||n>32)throw Error("Invalid bytes width: "+n);return s.setLengthRight(t,32)}if(e.startsWith("uint")){if((n=parseTypeN(e))%8||n<8||n>256)throw Error("Invalid uint width: "+n);if((a=parseNumber(t)).bitLength()>n)throw Error("Supplied uint exceeds width: "+n+" vs "+a.bitLength());if(a<0)throw Error("Supplied uint is negative");return a.toArrayLike(i,"be",32)}else if(e.startsWith("int")){if((n=parseTypeN(e))%8||n<8||n>256)throw Error("Invalid int width: "+n);if((a=parseNumber(t)).bitLength()>n)throw Error("Supplied int exceeds width: "+n+" vs "+a.bitLength());return a.toTwos(256).toArrayLike(i,"be",32)}else if(e.startsWith("ufixed")){if(n=parseTypeNxM(e),(a=parseNumber(t))<0)throw Error("Supplied ufixed is negative");return encodeSingle("uint256",a.mul(new o(2).pow(new o(n[1]))))}else if(e.startsWith("fixed"))return n=parseTypeNxM(e),encodeSingle("int256",parseNumber(t).mul(new o(2).pow(new o(n[1]))));throw Error("Unsupported or invalid type: "+e)}function isDynamic(e){return"string"===e||"bytes"===e||"dynamic"===parseTypeArray(e)}function isArray(e){return e.lastIndexOf("]")===e.length-1}function rawEncode(e,t){var n=[],s=[],o=32*e.length;for(var a in e){var l=elementaryName(e[a]),c=encodeSingle(l,t[a]);isDynamic(l)?(n.push(encodeSingle("uint256",o)),s.push(c),o+=c.length):n.push(c)}return i.concat(n.concat(s))}function solidityPack(e,t){if(e.length!==t.length)throw Error("Number of types are not matching the values");for(var n,o,a=[],l=0;l32)throw Error("Invalid bytes width: "+n);a.push(s.setLengthRight(u,n))}else if(c.startsWith("uint")){if((n=parseTypeN(c))%8||n<8||n>256)throw Error("Invalid uint width: "+n);if((o=parseNumber(u)).bitLength()>n)throw Error("Supplied uint exceeds width: "+n+" vs "+o.bitLength());a.push(o.toArrayLike(i,"be",n/8))}else if(c.startsWith("int")){if((n=parseTypeN(c))%8||n<8||n>256)throw Error("Invalid int width: "+n);if((o=parseNumber(u)).bitLength()>n)throw Error("Supplied int exceeds width: "+n+" vs "+o.bitLength());a.push(o.toTwos(n).toArrayLike(i,"be",n/8))}else throw Error("Unsupported or invalid type: "+c)}return i.concat(a)}function soliditySHA3(e,t){return s.keccak(solidityPack(e,t))}e.exports={rawEncode,solidityPack,soliditySHA3}},8834:function(e,t,n){var i=n(61900).Buffer;let s=n(68461),o=n(12429),a={type:"object",properties:{types:{type:"object",additionalProperties:{type:"array",items:{type:"object",properties:{name:{type:"string"},type:{type:"string"}},required:["name","type"]}}},primaryType:{type:"string"},domain:{type:"object"},message:{type:"object"}},required:["types","primaryType","domain","message"]},l={encodeData(e,t,n,a=!0){let l=["bytes32"],c=[this.hashType(e,n)];if(a){let encodeField=(e,t,l)=>{if(void 0!==n[t])return["bytes32",null==l?"0x0000000000000000000000000000000000000000000000000000000000000000":s.keccak(this.encodeData(t,l,n,a))];if(void 0===l)throw Error(`missing value for field ${e} of type ${t}`);if("bytes"===t)return["bytes32",s.keccak(l)];if("string"===t)return"string"==typeof l&&(l=i.from(l,"utf8")),["bytes32",s.keccak(l)];if(t.lastIndexOf("]")===t.length-1){let n=t.slice(0,t.lastIndexOf("[")),i=l.map(t=>encodeField(e,n,t));return["bytes32",s.keccak(o.rawEncode(i.map(([e])=>e),i.map(([,e])=>e)))]}return[t,l]};for(let i of n[e]){let[e,n]=encodeField(i.name,i.type,t[i.name]);l.push(e),c.push(n)}}else for(let o of n[e]){let e=t[o.name];if(void 0!==e){if("bytes"===o.type)l.push("bytes32"),e=s.keccak(e),c.push(e);else if("string"===o.type)l.push("bytes32"),"string"==typeof e&&(e=i.from(e,"utf8")),e=s.keccak(e),c.push(e);else if(void 0!==n[o.type])l.push("bytes32"),e=s.keccak(this.encodeData(o.type,e,n,a)),c.push(e);else if(o.type.lastIndexOf("]")===o.type.length-1)throw Error("Arrays currently unimplemented in encodeData");else l.push(o.type),c.push(e)}}return o.rawEncode(l,c)},encodeType(e,t){let n="",i=this.findTypeDependencies(e,t).filter(t=>t!==e);for(let s of i=[e].concat(i.sort())){let e=t[s];if(!e)throw Error("No type definition specified: "+s);n+=s+"("+t[s].map(({name:e,type:t})=>t+" "+e).join(",")+")"}return n},findTypeDependencies(e,t,n=[]){if(e=e.match(/^\w*/)[0],n.includes(e)||void 0===t[e])return n;for(let i of(n.push(e),t[e]))for(let e of this.findTypeDependencies(i.type,t,n))n.includes(e)||n.push(e);return n},hashStruct(e,t,n,i=!0){return s.keccak(this.encodeData(e,t,n,i))},hashType(e,t){return s.keccak(this.encodeType(e,t))},sanitizeData(e){let t={};for(let n in a.properties)e[n]&&(t[n]=e[n]);return t.types&&(t.types=Object.assign({EIP712Domain:[]},t.types)),t},hash(e,t=!0){let n=this.sanitizeData(e),o=[i.from("1901","hex")];return o.push(this.hashStruct("EIP712Domain",n.domain,n.types,t)),"EIP712Domain"!==n.primaryType&&o.push(this.hashStruct(n.primaryType,n.message,n.types,t)),s.keccak(i.concat(o))}};function typedSignatureHashLegacy(e){let t=Error("Expect argument to be non-empty array");if("object"!=typeof e||!e.length)throw t;let n=e.map(function(e){return"bytes"===e.type?s.toBuffer(e.value):e.value}),i=e.map(function(e){return e.type}),a=e.map(function(e){if(!e.name)throw t;return e.type+" "+e.name});return o.soliditySHA3(["bytes32","bytes32"],[o.soliditySHA3(Array(e.length).fill("string"),a),o.soliditySHA3(i,n)])}e.exports={TYPED_MESSAGE_SCHEMA:a,TypedDataUtils:l,hashForSignTypedDataLegacy:function(e){return typedSignatureHashLegacy(e.data)},hashForSignTypedData_v3:function(e){return l.hash(e.data,!1)},hashForSignTypedData_v4:function(e){return l.hash(e.data)}}},68461:function(e,t,n){var i=n(61900).Buffer;let s=n(1525),o=n(60079);function zeros(e){return i.allocUnsafe(e).fill(0)}function setLength(e,t,n){let i=zeros(t);return(e=toBuffer(e),n)?e.length65536?(s[0]=240|(1835008&o)>>>18,s[1]=128|(258048&o)>>>12,s[2]=128|(4032&o)>>>6,s[3]=128|63&o):o>2048?(s[0]=224|(61440&o)>>>12,s[1]=128|(4032&o)>>>6,s[2]=128|63&o):o>128?(s[0]=192|(1984&o)>>>6,s[1]=128|63&o):s[0]=o,this.parsedData.push(s)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function QRCodeModel(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}QR8bitByte.prototype={getLength:function(e){return this.parsedData.length},write:function(e){for(var t=0,n=this.parsedData.length;t=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=QRCodeModel.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1)&&!(this.moduleCount<=e+n))for(var i=-1;i<=7;i++)t+i<=-1||this.moduleCount<=t+i||(0<=n&&n<=6&&(0==i||6==i)||0<=i&&i<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=i&&i<=4?this.modules[e+n][t+i]=!0:this.modules[e+n][t+i]=!1)},getBestMaskPattern:function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var i=s.getLostPoint(this);(0==n||e>i)&&(e=i,t=n)}return t},createMovieClip:function(e,t,n){var i=e.createEmptyMovieClip(t,n);this.make();for(var s=0;s>n&1)==1;this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=i}for(var n=0;n<18;n++){var i=!e&&(t>>n&1)==1;this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=i}},setupTypeInfo:function(e,t){for(var n=this.errorCorrectLevel<<3|t,i=s.getBCHTypeInfo(n),o=0;o<15;o++){var a=!e&&(i>>o&1)==1;o<6?this.modules[o][8]=a:o<8?this.modules[o+1][8]=a:this.modules[this.moduleCount-15+o][8]=a}for(var o=0;o<15;o++){var a=!e&&(i>>o&1)==1;o<8?this.modules[8][this.moduleCount-o-1]=a:o<9?this.modules[8][15-o-1+1]=a:this.modules[8][15-o-1]=a}this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var n=-1,i=this.moduleCount-1,o=7,a=0,l=this.moduleCount-1;l>0;l-=2)for(6==l&&l--;;){for(var c=0;c<2;c++)if(null==this.modules[i][l-c]){var u=!1;a>>o&1)==1),s.getMask(t,i,l-c)&&(u=!u),this.modules[i][l-c]=u,-1==--o&&(a++,o=7)}if((i+=n)<0||this.moduleCount<=i){i-=n,n=-n;break}}}},QRCodeModel.PAD0=236,QRCodeModel.PAD1=17,QRCodeModel.createData=function(e,t,n){for(var i=QRRSBlock.getRSBlocks(e,t),o=new QRBitBuffer,a=0;a8*c)throw Error("code length overflow. ("+o.getLengthInBits()+">"+8*c+")");for(o.getLengthInBits()+4<=8*c&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;!(o.getLengthInBits()>=8*c)&&(o.put(QRCodeModel.PAD0,8),!(o.getLengthInBits()>=8*c));)o.put(QRCodeModel.PAD1,8);return QRCodeModel.createBytes(o,i)},QRCodeModel.createBytes=function(e,t){for(var n=0,i=0,o=0,a=Array(t.length),l=Array(t.length),c=0;c=0?W.get(J):0}}for(var Q=0,R=0;R=0;)t^=s.G15<=0;)t^=s.G18<>>=1;return t},getPatternPosition:function(e){return s.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case i.PATTERN000:return(t+n)%2==0;case i.PATTERN001:return t%2==0;case i.PATTERN010:return n%3==0;case i.PATTERN011:return(t+n)%3==0;case i.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case i.PATTERN101:return t*n%2+t*n%3==0;case i.PATTERN110:return(t*n%2+t*n%3)%2==0;case i.PATTERN111:return(t*n%3+(t+n)%2)%2==0;default:throw Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new QRPolynomial([1],0),n=0;n5&&(n+=3+o-5)}for(var i=0;i=256;)e-=255;return o.EXP_TABLE[e]},EXP_TABLE:Array(256),LOG_TABLE:Array(256)},a=0;a<8;a++)o.EXP_TABLE[a]=1<>>7-e%8&1)==1},put:function(e,t){for(var n=0;n>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var l=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function QRCode(e){if(this.options={padding:4,width:256,height:256,typeNumber:4,color:"#000000",background:"#ffffff",ecl:"M",image:{svg:"",width:0,height:0}},"string"==typeof e&&(e={content:e}),e)for(var t in e)this.options[t]=e[t];if("string"!=typeof this.options.content)throw Error("Expected 'content' as string!");if(0===this.options.content.length)throw Error("Expected 'content' to be non-empty!");if(!(this.options.padding>=0))throw Error("Expected 'padding' value to be non-negative!");if(!(this.options.width>0)||!(this.options.height>0))throw Error("Expected 'width' or 'height' value to be higher than zero!");function _getErrorCorrectLevel(e){switch(e){case"L":return n.L;case"M":return n.M;case"Q":return n.Q;case"H":return n.H;default:throw Error("Unknwon error correction level: "+e)}}function _getTypeNumber(e,t){for(var n=_getUTF8Length(e),i=1,s=0,o=0,a=l.length;o<=a;o++){var c=l[o];if(!c)throw Error("Content too long: expected "+s+" but got "+n);switch(t){case"L":s=c[0];break;case"M":s=c[1];break;case"Q":s=c[2];break;case"H":s=c[3];break;default:throw Error("Unknwon error correction level: "+t)}if(n<=s)break;i++}if(i>l.length)throw Error("Content too long");return i}function _getUTF8Length(e){var t=encodeURI(e).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return t.length+(t.length!=e?3:0)}var i=this.options.content,s=_getTypeNumber(i,this.options.ecl),o=_getErrorCorrectLevel(this.options.ecl);this.qrcode=new QRCodeModel(s,o),this.qrcode.addData(i),this.qrcode.make()}QRCode.prototype.svg=function(e){var t=this.options||{},n=this.qrcode.modules;void 0===e&&(e={container:t.container||"svg"});for(var i=void 0===t.pretty||!!t.pretty,s=i?" ":"",o=i?"\r\n":"",a=t.width,l=t.height,c=n.length,u=a/(c+2*t.padding),v=l/(c+2*t.padding),R=void 0!==t.join&&!!t.join,U=void 0!==t.swap&&!!t.swap,W=void 0===t.xmlDeclaration||!!t.xmlDeclaration,J=void 0!==t.predefined&&!!t.predefined,Q=J?s+''+o:"",Z=s+''+o,K="",X="",Y=0;Y'+o:K+=s+''+o}R&&(K=s+'');let eo="";if(void 0!==this.options.image&&this.options.image.svg){let e=a*this.options.image.width/100,t=l*this.options.image.height/100;eo+=``+(this.options.image.svg+o)+""}var ea="";switch(e.container){case"svg":W&&(ea+=''+o),ea+=''+o+(Q+Z+K)+eo+"";break;case"svg-viewbox":W&&(ea+=''+o),ea+=''+o+(Q+Z+K)+eo+"";break;case"g":ea+=''+o+(Q+Z+K)+eo+"";break;default:ea+=(Q+Z+K+eo).replace(/^\s+/,"")}return ea},e.exports=QRCode},11563:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LIB_VERSION=void 0,t.LIB_VERSION="3.9.3"},88478:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=n(68495);function safeApply(e,t,n){try{Reflect.apply(e,t,n)}catch(e){setTimeout(()=>{throw e})}}function arrayClone(e){let t=e.length,n=Array(t);for(let i=0;i0&&([e]=t),e instanceof Error)throw e;let n=Error(`Unhandled error.${e?` (${e.message})`:""}`);throw n.context=e,n}let s=i[e];if(void 0===s)return!1;if("function"==typeof s)safeApply(s,this,t);else{let e=s.length,n=arrayClone(s);for(let i=0;i{throw e})}}function arrayClone(e){let t=e.length,n=Array(t);for(let i=0;i0&&([e]=t),e instanceof Error)throw e;let n=Error(`Unhandled error.${e?` (${e.message})`:""}`);throw n.context=e,n}let s=i[e];if(void 0===s)return!1;if("function"==typeof s)safeApply(s,this,t);else{let e=s.length,n=arrayClone(s);for(let i=0;i{var n,o;let a,l;let c=null!==(n=t.paddingRequired)&&void 0!==n&&n,u=null!==(o=t.characterSet)&&void 0!==o?o:"base64";return"base64"===u?a=String.raw`[A-Za-z0-9+\/]`:((0,s.assert)("base64url"===u),a=String.raw`[-_A-Za-z0-9]`),l=c?RegExp(`^(?:${a}{4})*(?:${a}{3}=|${a}{2}==)?$`,"u"):RegExp(`^(?:${a}{4})*(?:${a}{2,3}|${a}{3}=|${a}{2}==)?$`,"u"),(0,i.pattern)(e,l)}},56573:function(e,t,n){"use strict";var i=n(61900).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.createDataView=t.concatBytes=t.valueToBytes=t.stringToBytes=t.numberToBytes=t.signedBigIntToBytes=t.bigIntToBytes=t.hexToBytes=t.bytesToString=t.bytesToNumber=t.bytesToSignedBigInt=t.bytesToBigInt=t.bytesToHex=t.assertIsBytes=t.isBytes=void 0;let s=n(12040),o=n(99808);function getPrecomputedHexValuesBuilder(){let e=[];return()=>{if(0===e.length)for(let t=0;t<256;t++)e.push(t.toString(16).padStart(2,"0"));return e}}let a=getPrecomputedHexValuesBuilder();function isBytes(e){return e instanceof Uint8Array}function assertIsBytes(e){(0,s.assert)(isBytes(e),"Value must be a Uint8Array.")}function bytesToHex(e){if(assertIsBytes(e),0===e.length)return"0x";let t=a(),n=Array(e.length);for(let i=0;i=BigInt(0),"Value must be a non-negative bigint.");let t=e.toString(16);return hexToBytes(t)}function bigIntFits(e,t){(0,s.assert)(t>0);let n=e>>BigInt(31);return!((~e&n)+(e&~n)>>BigInt(8*t+-1))}function signedBigIntToBytes(e,t){(0,s.assert)("bigint"==typeof e,"Value must be a bigint."),(0,s.assert)("number"==typeof t,"Byte length must be a number."),(0,s.assert)(t>0,"Byte length must be greater than 0."),(0,s.assert)(bigIntFits(e,t),"Byte length is too small to represent the given value.");let n=e,i=new Uint8Array(t);for(let e=0;e>=BigInt(8);return i.reverse()}function numberToBytes(e){(0,s.assert)("number"==typeof e,"Value must be a number."),(0,s.assert)(e>=0,"Value must be a non-negative number."),(0,s.assert)(Number.isSafeInteger(e),"Value is not a safe integer. Use `bigIntToBytes` instead.");let t=e.toString(16);return hexToBytes(t)}function stringToBytes(e){return(0,s.assert)("string"==typeof e,"Value must be a string."),new TextEncoder().encode(e)}function valueToBytes(e){if("bigint"==typeof e)return bigIntToBytes(e);if("number"==typeof e)return numberToBytes(e);if("string"==typeof e)return e.startsWith("0x")?hexToBytes(e):stringToBytes(e);if(isBytes(e))return e;throw TypeError(`Unsupported value type: "${typeof e}".`)}function concatBytes(e){let t=Array(e.length),n=0;for(let i=0;ie.call(t,n,i,this))}get(e){return o(this,n,"f").get(e)}has(e){return o(this,n,"f").has(e)}keys(){return o(this,n,"f").keys()}values(){return o(this,n,"f").values()}toString(){return`FrozenMap(${this.size}) {${this.size>0?` ${[...this.entries()].map(([e,t])=>`${String(e)} => ${String(t)}`).join(", ")} `:""}}`}};t.FrozenMap=FrozenMap;let FrozenSet=class FrozenSet{constructor(e){i.set(this,void 0),s(this,i,new Set(e),"f"),Object.freeze(this)}get size(){return o(this,i,"f").size}[(i=new WeakMap,Symbol.iterator)](){return o(this,i,"f")[Symbol.iterator]()}entries(){return o(this,i,"f").entries()}forEach(e,t){return o(this,i,"f").forEach((n,i,s)=>e.call(t,n,i,this))}has(e){return o(this,i,"f").has(e)}keys(){return o(this,i,"f").keys()}values(){return o(this,i,"f").values()}toString(){return`FrozenSet(${this.size}) {${this.size>0?` ${[...this.values()].map(e=>String(e)).join(", ")} `:""}}`}};t.FrozenSet=FrozenSet,Object.freeze(FrozenMap),Object.freeze(FrozenMap.prototype),Object.freeze(FrozenSet),Object.freeze(FrozenSet.prototype)},83003:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},99808:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.remove0x=t.add0x=t.assertIsStrictHexString=t.assertIsHexString=t.isStrictHexString=t.isHexString=t.StrictHexStruct=t.HexStruct=void 0;let i=n(74828),s=n(12040);function isHexString(e){return(0,i.is)(e,t.HexStruct)}function isStrictHexString(e){return(0,i.is)(e,t.StrictHexStruct)}function assertIsHexString(e){(0,s.assert)(isHexString(e),"Value must be a hexadecimal string.")}function assertIsStrictHexString(e){(0,s.assert)(isStrictHexString(e),'Value must be a hexadecimal string, starting with "0x".')}function add0x(e){return e.startsWith("0x")?e:e.startsWith("0X")?`0x${e.substring(2)}`:`0x${e}`}function remove0x(e){return e.startsWith("0x")||e.startsWith("0X")?e.substring(2):e}t.HexStruct=(0,i.pattern)((0,i.string)(),/^(?:0x)?[0-9a-f]+$/iu),t.StrictHexStruct=(0,i.pattern)((0,i.string)(),/^0x[0-9a-f]+$/iu),t.isHexString=isHexString,t.isStrictHexString=isStrictHexString,t.assertIsHexString=assertIsHexString,t.assertIsStrictHexString=assertIsStrictHexString,t.add0x=add0x,t.remove0x=remove0x},74065:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,s)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),s(n(12040),t),s(n(51782),t),s(n(56573),t),s(n(16677),t),s(n(14039),t),s(n(9032),t),s(n(83003),t),s(n(99808),t),s(n(8268),t),s(n(40786),t),s(n(68663),t),s(n(13561),t),s(n(61761),t),s(n(42477),t),s(n(33113),t),s(n(37207),t),s(n(79765),t)},8268:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getJsonRpcIdValidator=t.assertIsJsonRpcError=t.isJsonRpcError=t.assertIsJsonRpcFailure=t.isJsonRpcFailure=t.assertIsJsonRpcSuccess=t.isJsonRpcSuccess=t.assertIsJsonRpcResponse=t.isJsonRpcResponse=t.assertIsPendingJsonRpcResponse=t.isPendingJsonRpcResponse=t.JsonRpcResponseStruct=t.JsonRpcFailureStruct=t.JsonRpcSuccessStruct=t.PendingJsonRpcResponseStruct=t.assertIsJsonRpcRequest=t.isJsonRpcRequest=t.assertIsJsonRpcNotification=t.isJsonRpcNotification=t.JsonRpcNotificationStruct=t.JsonRpcRequestStruct=t.JsonRpcParamsStruct=t.JsonRpcErrorStruct=t.JsonRpcIdStruct=t.JsonRpcVersionStruct=t.jsonrpc2=t.getJsonSize=t.isValidJson=t.JsonStruct=t.UnsafeJsonStruct=void 0;let i=n(74828),s=n(12040);function isValidJson(e){return(0,i.is)(e,t.JsonStruct)}function getJsonSize(e){(0,s.assertStruct)(e,t.JsonStruct,"Invalid JSON value");let n=JSON.stringify(e);return new TextEncoder().encode(n).byteLength}function isJsonRpcNotification(e){return(0,i.is)(e,t.JsonRpcNotificationStruct)}function assertIsJsonRpcNotification(e,n){(0,s.assertStruct)(e,t.JsonRpcNotificationStruct,"Invalid JSON-RPC notification",n)}function isJsonRpcRequest(e){return(0,i.is)(e,t.JsonRpcRequestStruct)}function assertIsJsonRpcRequest(e,n){(0,s.assertStruct)(e,t.JsonRpcRequestStruct,"Invalid JSON-RPC request",n)}function isPendingJsonRpcResponse(e){return(0,i.is)(e,t.PendingJsonRpcResponseStruct)}function assertIsPendingJsonRpcResponse(e,n){(0,s.assertStruct)(e,t.PendingJsonRpcResponseStruct,"Invalid pending JSON-RPC response",n)}function isJsonRpcResponse(e){return(0,i.is)(e,t.JsonRpcResponseStruct)}function assertIsJsonRpcResponse(e,n){(0,s.assertStruct)(e,t.JsonRpcResponseStruct,"Invalid JSON-RPC response",n)}function isJsonRpcSuccess(e){return(0,i.is)(e,t.JsonRpcSuccessStruct)}function assertIsJsonRpcSuccess(e,n){(0,s.assertStruct)(e,t.JsonRpcSuccessStruct,"Invalid JSON-RPC success response",n)}function isJsonRpcFailure(e){return(0,i.is)(e,t.JsonRpcFailureStruct)}function assertIsJsonRpcFailure(e,n){(0,s.assertStruct)(e,t.JsonRpcFailureStruct,"Invalid JSON-RPC failure response",n)}function isJsonRpcError(e){return(0,i.is)(e,t.JsonRpcErrorStruct)}function assertIsJsonRpcError(e,n){(0,s.assertStruct)(e,t.JsonRpcErrorStruct,"Invalid JSON-RPC error",n)}function getJsonRpcIdValidator(e){let{permitEmptyString:t,permitFractions:n,permitNull:i}=Object.assign({permitEmptyString:!0,permitFractions:!1,permitNull:!0},e);return e=>!!("number"==typeof e&&(n||Number.isInteger(e))||"string"==typeof e&&(t||e.length>0)||i&&null===e)}t.UnsafeJsonStruct=(0,i.union)([(0,i.literal)(null),(0,i.boolean)(),(0,i.define)("finite number",e=>(0,i.is)(e,(0,i.number)())&&Number.isFinite(e)),(0,i.string)(),(0,i.array)((0,i.lazy)(()=>t.UnsafeJsonStruct)),(0,i.record)((0,i.string)(),(0,i.lazy)(()=>t.UnsafeJsonStruct))]),t.JsonStruct=(0,i.define)("Json",(e,n)=>{function checkStruct(e,t){let i=t.validator(e,n),s=[...i];return!(s.length>0)||s}try{let n=checkStruct(e,t.UnsafeJsonStruct);if(!0!==n)return n;return checkStruct(JSON.parse(JSON.stringify(e)),t.UnsafeJsonStruct)}catch(e){if(e instanceof RangeError)return"Circular reference detected";return!1}}),t.isValidJson=isValidJson,t.getJsonSize=getJsonSize,t.jsonrpc2="2.0",t.JsonRpcVersionStruct=(0,i.literal)(t.jsonrpc2),t.JsonRpcIdStruct=(0,i.nullable)((0,i.union)([(0,i.number)(),(0,i.string)()])),t.JsonRpcErrorStruct=(0,i.object)({code:(0,i.integer)(),message:(0,i.string)(),data:(0,i.optional)(t.JsonStruct),stack:(0,i.optional)((0,i.string)())}),t.JsonRpcParamsStruct=(0,i.optional)((0,i.union)([(0,i.record)((0,i.string)(),t.JsonStruct),(0,i.array)(t.JsonStruct)])),t.JsonRpcRequestStruct=(0,i.object)({id:t.JsonRpcIdStruct,jsonrpc:t.JsonRpcVersionStruct,method:(0,i.string)(),params:t.JsonRpcParamsStruct}),t.JsonRpcNotificationStruct=(0,i.omit)(t.JsonRpcRequestStruct,["id"]),t.isJsonRpcNotification=isJsonRpcNotification,t.assertIsJsonRpcNotification=assertIsJsonRpcNotification,t.isJsonRpcRequest=isJsonRpcRequest,t.assertIsJsonRpcRequest=assertIsJsonRpcRequest,t.PendingJsonRpcResponseStruct=(0,i.object)({id:t.JsonRpcIdStruct,jsonrpc:t.JsonRpcVersionStruct,result:(0,i.optional)((0,i.unknown)()),error:(0,i.optional)(t.JsonRpcErrorStruct)}),t.JsonRpcSuccessStruct=(0,i.object)({id:t.JsonRpcIdStruct,jsonrpc:t.JsonRpcVersionStruct,result:t.JsonStruct}),t.JsonRpcFailureStruct=(0,i.object)({id:t.JsonRpcIdStruct,jsonrpc:t.JsonRpcVersionStruct,error:t.JsonRpcErrorStruct}),t.JsonRpcResponseStruct=(0,i.union)([t.JsonRpcSuccessStruct,t.JsonRpcFailureStruct]),t.isPendingJsonRpcResponse=isPendingJsonRpcResponse,t.assertIsPendingJsonRpcResponse=assertIsPendingJsonRpcResponse,t.isJsonRpcResponse=isJsonRpcResponse,t.assertIsJsonRpcResponse=assertIsJsonRpcResponse,t.isJsonRpcSuccess=isJsonRpcSuccess,t.assertIsJsonRpcSuccess=assertIsJsonRpcSuccess,t.isJsonRpcFailure=isJsonRpcFailure,t.assertIsJsonRpcFailure=assertIsJsonRpcFailure,t.isJsonRpcError=isJsonRpcError,t.assertIsJsonRpcError=assertIsJsonRpcError,t.getJsonRpcIdValidator=getJsonRpcIdValidator},40786:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},68663:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createModuleLogger=t.createProjectLogger=void 0;let s=i(n(39781)),o=(0,s.default)("metamask");function createProjectLogger(e){return o.extend(e)}function createModuleLogger(e,t){return e.extend(t)}t.createProjectLogger=createProjectLogger,t.createModuleLogger=createModuleLogger},13561:function(e,t){"use strict";var n;function isNonEmptyArray(e){return Array.isArray(e)&&e.length>0}function isNullOrUndefined(e){return null==e}function isObject(e){return!!e&&"object"==typeof e&&!Array.isArray(e)}function isPlainObject(e){if("object"!=typeof e||null===e)return!1;try{let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}catch(e){return!1}}function isASCII(e){return 127>=e.charCodeAt(0)}function calculateStringSize(e){var n;let i=e.split("").reduce((e,t)=>isASCII(t)?e+1:e+2,0);return i+(null!==(n=e.match(t.ESCAPE_CHARACTERS_REGEXP))&&void 0!==n?n:[]).length}function calculateNumberSize(e){return e.toString().length}Object.defineProperty(t,"__esModule",{value:!0}),t.calculateNumberSize=t.calculateStringSize=t.isASCII=t.isPlainObject=t.ESCAPE_CHARACTERS_REGEXP=t.JsonSize=t.hasProperty=t.isObject=t.isNullOrUndefined=t.isNonEmptyArray=void 0,t.isNonEmptyArray=isNonEmptyArray,t.isNullOrUndefined=isNullOrUndefined,t.isObject=isObject,t.hasProperty=(e,t)=>Object.hasOwnProperty.call(e,t),(n=t.JsonSize||(t.JsonSize={}))[n.Null=4]="Null",n[n.Comma=1]="Comma",n[n.Wrapper=1]="Wrapper",n[n.True=4]="True",n[n.False=5]="False",n[n.Quote=1]="Quote",n[n.Colon=1]="Colon",n[n.Date=24]="Date",t.ESCAPE_CHARACTERS_REGEXP=/"|\\|\n|\r|\t/gu,t.isPlainObject=isPlainObject,t.isASCII=isASCII,t.calculateStringSize=calculateStringSize,t.calculateNumberSize=calculateNumberSize},61761:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToBigInt=t.hexToNumber=t.bigIntToHex=t.numberToHex=void 0;let i=n(12040),s=n(99808);t.numberToHex=e=>((0,i.assert)("number"==typeof e,"Value must be a number."),(0,i.assert)(e>=0,"Value must be a non-negative number."),(0,i.assert)(Number.isSafeInteger(e),"Value is not a safe integer. Use `bigIntToHex` instead."),(0,s.add0x)(e.toString(16))),t.bigIntToHex=e=>((0,i.assert)("bigint"==typeof e,"Value must be a bigint."),(0,i.assert)(e>=0,"Value must be a non-negative bigint."),(0,s.add0x)(e.toString(16))),t.hexToNumber=e=>{(0,s.assertIsHexString)(e);let t=parseInt(e,16);return(0,i.assert)(Number.isSafeInteger(t),"Value is not a safe integer. Use `hexToBigInt` instead."),t},t.hexToBigInt=e=>((0,s.assertIsHexString)(e),BigInt((0,s.add0x)(e)))},42477:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},33113:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.timeSince=t.inMilliseconds=t.Duration=void 0,(n=t.Duration||(t.Duration={}))[n.Millisecond=1]="Millisecond",n[n.Second=1e3]="Second",n[n.Minute=6e4]="Minute",n[n.Hour=36e5]="Hour",n[n.Day=864e5]="Day",n[n.Week=6048e5]="Week",n[n.Year=31536e6]="Year";let isNonNegativeInteger=e=>Number.isInteger(e)&&e>=0,assertIsNonNegativeInteger=(e,t)=>{if(!isNonNegativeInteger(e))throw Error(`"${t}" must be a non-negative integer. Received: "${e}".`)};function inMilliseconds(e,t){return assertIsNonNegativeInteger(e,"count"),e*t}function timeSince(e){return assertIsNonNegativeInteger(e,"timestamp"),Date.now()-e}t.inMilliseconds=inMilliseconds,t.timeSince=timeSince},37207:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},79765:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.satisfiesVersionRange=t.gtRange=t.gtVersion=t.assertIsSemVerRange=t.assertIsSemVerVersion=t.isValidSemVerRange=t.isValidSemVerVersion=t.VersionRangeStruct=t.VersionStruct=void 0;let i=n(13808),s=n(74828),o=n(12040);function isValidSemVerVersion(e){return(0,s.is)(e,t.VersionStruct)}function isValidSemVerRange(e){return(0,s.is)(e,t.VersionRangeStruct)}function assertIsSemVerVersion(e){(0,o.assertStruct)(e,t.VersionStruct)}function assertIsSemVerRange(e){(0,o.assertStruct)(e,t.VersionRangeStruct)}function gtVersion(e,t){return(0,i.gt)(e,t)}function gtRange(e,t){return(0,i.gtr)(e,t)}function satisfiesVersionRange(e,t){return(0,i.satisfies)(e,t,{includePrerelease:!0})}t.VersionStruct=(0,s.refine)((0,s.string)(),"Version",e=>null!==(0,i.valid)(e)||`Expected SemVer version, got "${e}"`),t.VersionRangeStruct=(0,s.refine)((0,s.string)(),"Version range",e=>null!==(0,i.validRange)(e)||`Expected SemVer range, got "${e}"`),t.isValidSemVerVersion=isValidSemVerVersion,t.isValidSemVerRange=isValidSemVerRange,t.assertIsSemVerVersion=assertIsSemVerVersion,t.assertIsSemVerRange=assertIsSemVerRange,t.gtVersion=gtVersion,t.gtRange=gtRange,t.satisfiesVersionRange=satisfiesVersionRange},72426:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(26058),s=n(70544),o=function(){function Mutex(){this._semaphore=new s.default(1)}return Mutex.prototype.acquire=function(){return i.__awaiter(this,void 0,void 0,function(){return i.__generator(this,function(e){switch(e.label){case 0:return[4,this._semaphore.acquire()];case 1:return[2,e.sent()[1]]}})})},Mutex.prototype.runExclusive=function(e){return this._semaphore.runExclusive(function(){return e()})},Mutex.prototype.isLocked=function(){return this._semaphore.isLocked()},Mutex.prototype.release=function(){this._semaphore.release()},Mutex}();t.default=o},70544:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(26058),s=function(){function Semaphore(e){if(this._maxConcurrency=e,this._queue=[],e<=0)throw Error("semaphore must be initialized to a positive value");this._value=e}return Semaphore.prototype.acquire=function(){var e=this,t=this.isLocked(),n=new Promise(function(t){return e._queue.push(t)});return t||this._dispatch(),n},Semaphore.prototype.runExclusive=function(e){return i.__awaiter(this,void 0,void 0,function(){var t,n,s;return i.__generator(this,function(i){switch(i.label){case 0:return[4,this.acquire()];case 1:n=(t=i.sent())[0],s=t[1],i.label=2;case 2:return i.trys.push([2,,4,5]),[4,e(n)];case 3:return[2,i.sent()];case 4:return s(),[7];case 5:return[2]}})})},Semaphore.prototype.isLocked=function(){return this._value<=0},Semaphore.prototype.release=function(){if(this._maxConcurrency>1)throw Error("this method is unavailabel on semaphores with concurrency > 1; use the scoped release returned by acquire instead");if(this._currentReleaser){var e=this._currentReleaser;this._currentReleaser=void 0,e()}},Semaphore.prototype._dispatch=function(){var e=this,t=this._queue.shift();if(t){var n=!1;this._currentReleaser=function(){n||(n=!0,e._value++,e._dispatch())},t([this._value--,this._currentReleaser])}},Semaphore}();t.default=s},65693:function(e,t,n){"use strict";t.WU=void 0;var i=n(72426);Object.defineProperty(t,"WU",{enumerable:!0,get:function(){return i.default}}),n(70544),n(98511)},98511:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.withTimeout=void 0;var i=n(26058);function withTimeout(e,t,n){var s=this;return void 0===n&&(n=Error("timeout")),{acquire:function(){return new Promise(function(o,a){return i.__awaiter(s,void 0,void 0,function(){var s,l;return i.__generator(this,function(i){switch(i.label){case 0:return s=!1,setTimeout(function(){s=!0,a(n)},t),[4,e.acquire()];case 1:return l=i.sent(),s?(Array.isArray(l)?l[1]:l)():o(l),[2]}})})})},runExclusive:function(e){return i.__awaiter(this,void 0,void 0,function(){var t,n;return i.__generator(this,function(i){switch(i.label){case 0:t=function(){},i.label=1;case 1:return i.trys.push([1,,7,8]),[4,this.acquire()];case 2:if(!Array.isArray(n=i.sent()))return[3,4];return t=n[1],[4,e(n[0])];case 3:case 5:return[2,i.sent()];case 4:return t=n,[4,e()];case 6:return[3,8];case 7:return t(),[7];case 8:return[2]}})})},release:function(){e.release()},isLocked:function(){return e.isLocked()}}}t.withTimeout=withTimeout},60079:function(e,t,n){!function(e,t){"use strict";function assert(e,t){if(!e)throw Error(t||"Assertion failed")}function inherits(e,t){e.super_=t;var TempCtor=function(){};TempCtor.prototype=t.prototype,e.prototype=new TempCtor,e.prototype.constructor=e}function BN(e,t,n){if(BN.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===t||"be"===t)&&(n=t,t=10),this._init(e||0,t||10,n||"be"))}"object"==typeof e?e.exports=BN:t.BN=BN,BN.BN=BN,BN.wordSize=26;try{i="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:n(79391).Buffer}catch(e){}function parseHex4Bits(e,t){var n=e.charCodeAt(t);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void assert(!1,"Invalid character in "+e)}function parseHexByte(e,t,n){var i=parseHex4Bits(e,n);return n-1>=t&&(i|=parseHex4Bits(e,n-1)<<4),i}function parseBase(e,t,n,i){for(var s=0,o=0,a=Math.min(e.length,n),l=t;l=49?c-49+10:c>=17?c-17+10:c,assert(c>=0&&o0?e:t},BN.min=function(e,t){return 0>e.cmp(t)?e:t},BN.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),assert(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;o-=3)s=e[o]|e[o-1]<<8|e[o-2]<<16,this.words[i]|=s<>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);else if("le"===n)for(o=0,i=0;o>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);return this._strip()},BN.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var i,s=0;s=t;s-=2)i=parseHexByte(e,t,s)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(s=(e.length-t)%2==0?t+1:t;s=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},BN.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var i=0,s=1;s<=67108863;s*=t)i++;i--,s=s/t|0;for(var o=e.length-n,a=o%i,l=Math.min(o,o-a)+n,c=0,u=n;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},BN.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{BN.prototype[Symbol.for("nodejs.util.inspect.custom")]=inspect}catch(e){BN.prototype.inspect=inspect}else BN.prototype.inspect=inspect;function inspect(){return(this.red?""}var i,s=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],o=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],a=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function toBitArray(e){for(var t=Array(e.bitLength()),n=0;n>>s&1}return t}function smallMulTo(e,t,n){n.negative=t.negative^e.negative;var i=e.length+t.length|0;n.length=i,i=i-1|0;var s=0|e.words[0],o=0|t.words[0],a=s*o,l=67108863&a,c=a/67108864|0;n.words[0]=l;for(var u=1;u>>26,R=67108863&c,U=Math.min(u,t.length-1),W=Math.max(0,u-e.length+1);W<=U;W++){var J=u-W|0;v+=(a=(s=0|e.words[J])*(o=0|t.words[W])+R)/67108864|0,R=67108863&a}n.words[u]=0|R,c=0|v}return 0!==c?n.words[u]=0|c:n.length--,n._strip()}BN.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var n,i=0,l=0,c=0;c>>24-i&16777215,(i+=2)>=26&&(i-=26,c--),n=0!==l||c!==this.length-1?s[6-v.length]+v+n:v+n}for(0!==l&&(n=l.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var R=o[e],U=a[e];n="";var W=this.clone();for(W.negative=0;!W.isZero();){var J=W.modrn(U).toString(e);n=(W=W.idivn(U)).isZero()?J+n:s[R-J.length]+J+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}assert(!1,"Base should be between 2 and 36")},BN.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&assert(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},BN.prototype.toJSON=function(){return this.toString(16,2)},i&&(BN.prototype.toBuffer=function(e,t){return this.toArrayLike(i,e,t)}),BN.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},BN.prototype.toArrayLike=function(e,t,n){this._strip();var i=this.byteLength(),s=n||Math.max(1,i);assert(i<=s,"byte array longer than desired length"),assert(s>0,"Requested array length <= 0");var o=e.allocUnsafe?e.allocUnsafe(s):new e(s);return this["_toArrayLike"+("le"===t?"LE":"BE")](o,i),o},BN.prototype._toArrayLikeLE=function(e,t){for(var n=0,i=0,s=0,o=0;s>8&255),n>16&255),6===o?(n>24&255),i=0,o=0):(i=a>>>24,o+=2)}if(n=0&&(e[n--]=a>>8&255),n>=0&&(e[n--]=a>>16&255),6===o?(n>=0&&(e[n--]=a>>24&255),i=0,o=0):(i=a>>>24,o+=2)}if(n>=0)for(e[n--]=i;n>=0;)e[n--]=0},Math.clz32?BN.prototype._countBits=function(e){return 32-Math.clz32(e)}:BN.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},BN.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return(8191&t)==0&&(n+=13,t>>>=13),(127&t)==0&&(n+=7,t>>>=7),(15&t)==0&&(n+=4,t>>>=4),(3&t)==0&&(n+=2,t>>>=2),(1&t)==0&&n++,n},BN.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},BN.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},BN.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},BN.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},BN.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},BN.prototype.iuxor=function(e){this.length>e.length?(t=this,n=e):(t=e,n=this);for(var t,n,i=0;ie.length?this.clone().ixor(e):e.clone().ixor(this)},BN.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},BN.prototype.inotn=function(e){assert("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},BN.prototype.notn=function(e){return this.clone().inotn(e)},BN.prototype.setn=function(e,t){assert("number"==typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),t?this.words[n]=this.words[n]|1<e.length?(n=this,i=e):(n=e,i=this);for(var t,n,i,s=0,o=0;o>>26;for(;0!==s&&o>>26;if(this.length=n.length,0!==s)this.words[this.length]=s,this.length++;else if(n!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},BN.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,n,i=this.iadd(e);return e.negative=1,i._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var s=this.cmp(e);if(0===s)return this.negative=0,this.length=1,this.words[0]=0,this;s>0?(t=this,n=e):(t=e,n=this);for(var o=0,a=0;a>26,this.words[a]=67108863&i;for(;0!==o&&a>26,this.words[a]=67108863&i;if(0===o&&a>>13,W=0|a[1],J=8191&W,Q=W>>>13,Z=0|a[2],K=8191&Z,X=Z>>>13,Y=0|a[3],ee=8191&Y,et=Y>>>13,er=0|a[4],en=8191&er,ei=er>>>13,es=0|a[5],eo=8191&es,ea=es>>>13,el=0|a[6],ec=8191&el,eu=el>>>13,eh=0|a[7],ed=8191&eh,ep=eh>>>13,ef=0|a[8],eg=8191&ef,em=ef>>>13,ey=0|a[9],eb=8191&ey,ev=ey>>>13,e_=0|l[0],ew=8191&e_,eE=e_>>>13,ek=0|l[1],eS=8191&ek,eM=ek>>>13,eR=0|l[2],eC=8191&eR,eI=eR>>>13,eN=0|l[3],ex=8191&eN,eA=eN>>>13,eT=0|l[4],eB=8191&eT,eP=eT>>>13,eL=0|l[5],eO=8191&eL,eF=eL>>>13,ej=0|l[6],eD=8191&ej,eH=ej>>>13,e$=0|l[7],eU=8191&e$,eV=e$>>>13,eW=0|l[8],eq=8191&eW,ez=eW>>>13,eJ=0|l[9],eG=8191&eJ,eQ=eJ>>>13;n.negative=e.negative^t.negative,n.length=19;var eZ=(u+(i=Math.imul(R,ew))|0)+((8191&(s=(s=Math.imul(R,eE))+Math.imul(U,ew)|0))<<13)|0;u=((o=Math.imul(U,eE))+(s>>>13)|0)+(eZ>>>26)|0,eZ&=67108863,i=Math.imul(J,ew),s=(s=Math.imul(J,eE))+Math.imul(Q,ew)|0,o=Math.imul(Q,eE);var eK=(u+(i=i+Math.imul(R,eS)|0)|0)+((8191&(s=(s=s+Math.imul(R,eM)|0)+Math.imul(U,eS)|0))<<13)|0;u=((o=o+Math.imul(U,eM)|0)+(s>>>13)|0)+(eK>>>26)|0,eK&=67108863,i=Math.imul(K,ew),s=(s=Math.imul(K,eE))+Math.imul(X,ew)|0,o=Math.imul(X,eE),i=i+Math.imul(J,eS)|0,s=(s=s+Math.imul(J,eM)|0)+Math.imul(Q,eS)|0,o=o+Math.imul(Q,eM)|0;var eX=(u+(i=i+Math.imul(R,eC)|0)|0)+((8191&(s=(s=s+Math.imul(R,eI)|0)+Math.imul(U,eC)|0))<<13)|0;u=((o=o+Math.imul(U,eI)|0)+(s>>>13)|0)+(eX>>>26)|0,eX&=67108863,i=Math.imul(ee,ew),s=(s=Math.imul(ee,eE))+Math.imul(et,ew)|0,o=Math.imul(et,eE),i=i+Math.imul(K,eS)|0,s=(s=s+Math.imul(K,eM)|0)+Math.imul(X,eS)|0,o=o+Math.imul(X,eM)|0,i=i+Math.imul(J,eC)|0,s=(s=s+Math.imul(J,eI)|0)+Math.imul(Q,eC)|0,o=o+Math.imul(Q,eI)|0;var eY=(u+(i=i+Math.imul(R,ex)|0)|0)+((8191&(s=(s=s+Math.imul(R,eA)|0)+Math.imul(U,ex)|0))<<13)|0;u=((o=o+Math.imul(U,eA)|0)+(s>>>13)|0)+(eY>>>26)|0,eY&=67108863,i=Math.imul(en,ew),s=(s=Math.imul(en,eE))+Math.imul(ei,ew)|0,o=Math.imul(ei,eE),i=i+Math.imul(ee,eS)|0,s=(s=s+Math.imul(ee,eM)|0)+Math.imul(et,eS)|0,o=o+Math.imul(et,eM)|0,i=i+Math.imul(K,eC)|0,s=(s=s+Math.imul(K,eI)|0)+Math.imul(X,eC)|0,o=o+Math.imul(X,eI)|0,i=i+Math.imul(J,ex)|0,s=(s=s+Math.imul(J,eA)|0)+Math.imul(Q,ex)|0,o=o+Math.imul(Q,eA)|0;var e0=(u+(i=i+Math.imul(R,eB)|0)|0)+((8191&(s=(s=s+Math.imul(R,eP)|0)+Math.imul(U,eB)|0))<<13)|0;u=((o=o+Math.imul(U,eP)|0)+(s>>>13)|0)+(e0>>>26)|0,e0&=67108863,i=Math.imul(eo,ew),s=(s=Math.imul(eo,eE))+Math.imul(ea,ew)|0,o=Math.imul(ea,eE),i=i+Math.imul(en,eS)|0,s=(s=s+Math.imul(en,eM)|0)+Math.imul(ei,eS)|0,o=o+Math.imul(ei,eM)|0,i=i+Math.imul(ee,eC)|0,s=(s=s+Math.imul(ee,eI)|0)+Math.imul(et,eC)|0,o=o+Math.imul(et,eI)|0,i=i+Math.imul(K,ex)|0,s=(s=s+Math.imul(K,eA)|0)+Math.imul(X,ex)|0,o=o+Math.imul(X,eA)|0,i=i+Math.imul(J,eB)|0,s=(s=s+Math.imul(J,eP)|0)+Math.imul(Q,eB)|0,o=o+Math.imul(Q,eP)|0;var e1=(u+(i=i+Math.imul(R,eO)|0)|0)+((8191&(s=(s=s+Math.imul(R,eF)|0)+Math.imul(U,eO)|0))<<13)|0;u=((o=o+Math.imul(U,eF)|0)+(s>>>13)|0)+(e1>>>26)|0,e1&=67108863,i=Math.imul(ec,ew),s=(s=Math.imul(ec,eE))+Math.imul(eu,ew)|0,o=Math.imul(eu,eE),i=i+Math.imul(eo,eS)|0,s=(s=s+Math.imul(eo,eM)|0)+Math.imul(ea,eS)|0,o=o+Math.imul(ea,eM)|0,i=i+Math.imul(en,eC)|0,s=(s=s+Math.imul(en,eI)|0)+Math.imul(ei,eC)|0,o=o+Math.imul(ei,eI)|0,i=i+Math.imul(ee,ex)|0,s=(s=s+Math.imul(ee,eA)|0)+Math.imul(et,ex)|0,o=o+Math.imul(et,eA)|0,i=i+Math.imul(K,eB)|0,s=(s=s+Math.imul(K,eP)|0)+Math.imul(X,eB)|0,o=o+Math.imul(X,eP)|0,i=i+Math.imul(J,eO)|0,s=(s=s+Math.imul(J,eF)|0)+Math.imul(Q,eO)|0,o=o+Math.imul(Q,eF)|0;var e2=(u+(i=i+Math.imul(R,eD)|0)|0)+((8191&(s=(s=s+Math.imul(R,eH)|0)+Math.imul(U,eD)|0))<<13)|0;u=((o=o+Math.imul(U,eH)|0)+(s>>>13)|0)+(e2>>>26)|0,e2&=67108863,i=Math.imul(ed,ew),s=(s=Math.imul(ed,eE))+Math.imul(ep,ew)|0,o=Math.imul(ep,eE),i=i+Math.imul(ec,eS)|0,s=(s=s+Math.imul(ec,eM)|0)+Math.imul(eu,eS)|0,o=o+Math.imul(eu,eM)|0,i=i+Math.imul(eo,eC)|0,s=(s=s+Math.imul(eo,eI)|0)+Math.imul(ea,eC)|0,o=o+Math.imul(ea,eI)|0,i=i+Math.imul(en,ex)|0,s=(s=s+Math.imul(en,eA)|0)+Math.imul(ei,ex)|0,o=o+Math.imul(ei,eA)|0,i=i+Math.imul(ee,eB)|0,s=(s=s+Math.imul(ee,eP)|0)+Math.imul(et,eB)|0,o=o+Math.imul(et,eP)|0,i=i+Math.imul(K,eO)|0,s=(s=s+Math.imul(K,eF)|0)+Math.imul(X,eO)|0,o=o+Math.imul(X,eF)|0,i=i+Math.imul(J,eD)|0,s=(s=s+Math.imul(J,eH)|0)+Math.imul(Q,eD)|0,o=o+Math.imul(Q,eH)|0;var e3=(u+(i=i+Math.imul(R,eU)|0)|0)+((8191&(s=(s=s+Math.imul(R,eV)|0)+Math.imul(U,eU)|0))<<13)|0;u=((o=o+Math.imul(U,eV)|0)+(s>>>13)|0)+(e3>>>26)|0,e3&=67108863,i=Math.imul(eg,ew),s=(s=Math.imul(eg,eE))+Math.imul(em,ew)|0,o=Math.imul(em,eE),i=i+Math.imul(ed,eS)|0,s=(s=s+Math.imul(ed,eM)|0)+Math.imul(ep,eS)|0,o=o+Math.imul(ep,eM)|0,i=i+Math.imul(ec,eC)|0,s=(s=s+Math.imul(ec,eI)|0)+Math.imul(eu,eC)|0,o=o+Math.imul(eu,eI)|0,i=i+Math.imul(eo,ex)|0,s=(s=s+Math.imul(eo,eA)|0)+Math.imul(ea,ex)|0,o=o+Math.imul(ea,eA)|0,i=i+Math.imul(en,eB)|0,s=(s=s+Math.imul(en,eP)|0)+Math.imul(ei,eB)|0,o=o+Math.imul(ei,eP)|0,i=i+Math.imul(ee,eO)|0,s=(s=s+Math.imul(ee,eF)|0)+Math.imul(et,eO)|0,o=o+Math.imul(et,eF)|0,i=i+Math.imul(K,eD)|0,s=(s=s+Math.imul(K,eH)|0)+Math.imul(X,eD)|0,o=o+Math.imul(X,eH)|0,i=i+Math.imul(J,eU)|0,s=(s=s+Math.imul(J,eV)|0)+Math.imul(Q,eU)|0,o=o+Math.imul(Q,eV)|0;var e6=(u+(i=i+Math.imul(R,eq)|0)|0)+((8191&(s=(s=s+Math.imul(R,ez)|0)+Math.imul(U,eq)|0))<<13)|0;u=((o=o+Math.imul(U,ez)|0)+(s>>>13)|0)+(e6>>>26)|0,e6&=67108863,i=Math.imul(eb,ew),s=(s=Math.imul(eb,eE))+Math.imul(ev,ew)|0,o=Math.imul(ev,eE),i=i+Math.imul(eg,eS)|0,s=(s=s+Math.imul(eg,eM)|0)+Math.imul(em,eS)|0,o=o+Math.imul(em,eM)|0,i=i+Math.imul(ed,eC)|0,s=(s=s+Math.imul(ed,eI)|0)+Math.imul(ep,eC)|0,o=o+Math.imul(ep,eI)|0,i=i+Math.imul(ec,ex)|0,s=(s=s+Math.imul(ec,eA)|0)+Math.imul(eu,ex)|0,o=o+Math.imul(eu,eA)|0,i=i+Math.imul(eo,eB)|0,s=(s=s+Math.imul(eo,eP)|0)+Math.imul(ea,eB)|0,o=o+Math.imul(ea,eP)|0,i=i+Math.imul(en,eO)|0,s=(s=s+Math.imul(en,eF)|0)+Math.imul(ei,eO)|0,o=o+Math.imul(ei,eF)|0,i=i+Math.imul(ee,eD)|0,s=(s=s+Math.imul(ee,eH)|0)+Math.imul(et,eD)|0,o=o+Math.imul(et,eH)|0,i=i+Math.imul(K,eU)|0,s=(s=s+Math.imul(K,eV)|0)+Math.imul(X,eU)|0,o=o+Math.imul(X,eV)|0,i=i+Math.imul(J,eq)|0,s=(s=s+Math.imul(J,ez)|0)+Math.imul(Q,eq)|0,o=o+Math.imul(Q,ez)|0;var e5=(u+(i=i+Math.imul(R,eG)|0)|0)+((8191&(s=(s=s+Math.imul(R,eQ)|0)+Math.imul(U,eG)|0))<<13)|0;u=((o=o+Math.imul(U,eQ)|0)+(s>>>13)|0)+(e5>>>26)|0,e5&=67108863,i=Math.imul(eb,eS),s=(s=Math.imul(eb,eM))+Math.imul(ev,eS)|0,o=Math.imul(ev,eM),i=i+Math.imul(eg,eC)|0,s=(s=s+Math.imul(eg,eI)|0)+Math.imul(em,eC)|0,o=o+Math.imul(em,eI)|0,i=i+Math.imul(ed,ex)|0,s=(s=s+Math.imul(ed,eA)|0)+Math.imul(ep,ex)|0,o=o+Math.imul(ep,eA)|0,i=i+Math.imul(ec,eB)|0,s=(s=s+Math.imul(ec,eP)|0)+Math.imul(eu,eB)|0,o=o+Math.imul(eu,eP)|0,i=i+Math.imul(eo,eO)|0,s=(s=s+Math.imul(eo,eF)|0)+Math.imul(ea,eO)|0,o=o+Math.imul(ea,eF)|0,i=i+Math.imul(en,eD)|0,s=(s=s+Math.imul(en,eH)|0)+Math.imul(ei,eD)|0,o=o+Math.imul(ei,eH)|0,i=i+Math.imul(ee,eU)|0,s=(s=s+Math.imul(ee,eV)|0)+Math.imul(et,eU)|0,o=o+Math.imul(et,eV)|0,i=i+Math.imul(K,eq)|0,s=(s=s+Math.imul(K,ez)|0)+Math.imul(X,eq)|0,o=o+Math.imul(X,ez)|0;var e4=(u+(i=i+Math.imul(J,eG)|0)|0)+((8191&(s=(s=s+Math.imul(J,eQ)|0)+Math.imul(Q,eG)|0))<<13)|0;u=((o=o+Math.imul(Q,eQ)|0)+(s>>>13)|0)+(e4>>>26)|0,e4&=67108863,i=Math.imul(eb,eC),s=(s=Math.imul(eb,eI))+Math.imul(ev,eC)|0,o=Math.imul(ev,eI),i=i+Math.imul(eg,ex)|0,s=(s=s+Math.imul(eg,eA)|0)+Math.imul(em,ex)|0,o=o+Math.imul(em,eA)|0,i=i+Math.imul(ed,eB)|0,s=(s=s+Math.imul(ed,eP)|0)+Math.imul(ep,eB)|0,o=o+Math.imul(ep,eP)|0,i=i+Math.imul(ec,eO)|0,s=(s=s+Math.imul(ec,eF)|0)+Math.imul(eu,eO)|0,o=o+Math.imul(eu,eF)|0,i=i+Math.imul(eo,eD)|0,s=(s=s+Math.imul(eo,eH)|0)+Math.imul(ea,eD)|0,o=o+Math.imul(ea,eH)|0,i=i+Math.imul(en,eU)|0,s=(s=s+Math.imul(en,eV)|0)+Math.imul(ei,eU)|0,o=o+Math.imul(ei,eV)|0,i=i+Math.imul(ee,eq)|0,s=(s=s+Math.imul(ee,ez)|0)+Math.imul(et,eq)|0,o=o+Math.imul(et,ez)|0;var e8=(u+(i=i+Math.imul(K,eG)|0)|0)+((8191&(s=(s=s+Math.imul(K,eQ)|0)+Math.imul(X,eG)|0))<<13)|0;u=((o=o+Math.imul(X,eQ)|0)+(s>>>13)|0)+(e8>>>26)|0,e8&=67108863,i=Math.imul(eb,ex),s=(s=Math.imul(eb,eA))+Math.imul(ev,ex)|0,o=Math.imul(ev,eA),i=i+Math.imul(eg,eB)|0,s=(s=s+Math.imul(eg,eP)|0)+Math.imul(em,eB)|0,o=o+Math.imul(em,eP)|0,i=i+Math.imul(ed,eO)|0,s=(s=s+Math.imul(ed,eF)|0)+Math.imul(ep,eO)|0,o=o+Math.imul(ep,eF)|0,i=i+Math.imul(ec,eD)|0,s=(s=s+Math.imul(ec,eH)|0)+Math.imul(eu,eD)|0,o=o+Math.imul(eu,eH)|0,i=i+Math.imul(eo,eU)|0,s=(s=s+Math.imul(eo,eV)|0)+Math.imul(ea,eU)|0,o=o+Math.imul(ea,eV)|0,i=i+Math.imul(en,eq)|0,s=(s=s+Math.imul(en,ez)|0)+Math.imul(ei,eq)|0,o=o+Math.imul(ei,ez)|0;var e7=(u+(i=i+Math.imul(ee,eG)|0)|0)+((8191&(s=(s=s+Math.imul(ee,eQ)|0)+Math.imul(et,eG)|0))<<13)|0;u=((o=o+Math.imul(et,eQ)|0)+(s>>>13)|0)+(e7>>>26)|0,e7&=67108863,i=Math.imul(eb,eB),s=(s=Math.imul(eb,eP))+Math.imul(ev,eB)|0,o=Math.imul(ev,eP),i=i+Math.imul(eg,eO)|0,s=(s=s+Math.imul(eg,eF)|0)+Math.imul(em,eO)|0,o=o+Math.imul(em,eF)|0,i=i+Math.imul(ed,eD)|0,s=(s=s+Math.imul(ed,eH)|0)+Math.imul(ep,eD)|0,o=o+Math.imul(ep,eH)|0,i=i+Math.imul(ec,eU)|0,s=(s=s+Math.imul(ec,eV)|0)+Math.imul(eu,eU)|0,o=o+Math.imul(eu,eV)|0,i=i+Math.imul(eo,eq)|0,s=(s=s+Math.imul(eo,ez)|0)+Math.imul(ea,eq)|0,o=o+Math.imul(ea,ez)|0;var e9=(u+(i=i+Math.imul(en,eG)|0)|0)+((8191&(s=(s=s+Math.imul(en,eQ)|0)+Math.imul(ei,eG)|0))<<13)|0;u=((o=o+Math.imul(ei,eQ)|0)+(s>>>13)|0)+(e9>>>26)|0,e9&=67108863,i=Math.imul(eb,eO),s=(s=Math.imul(eb,eF))+Math.imul(ev,eO)|0,o=Math.imul(ev,eF),i=i+Math.imul(eg,eD)|0,s=(s=s+Math.imul(eg,eH)|0)+Math.imul(em,eD)|0,o=o+Math.imul(em,eH)|0,i=i+Math.imul(ed,eU)|0,s=(s=s+Math.imul(ed,eV)|0)+Math.imul(ep,eU)|0,o=o+Math.imul(ep,eV)|0,i=i+Math.imul(ec,eq)|0,s=(s=s+Math.imul(ec,ez)|0)+Math.imul(eu,eq)|0,o=o+Math.imul(eu,ez)|0;var te=(u+(i=i+Math.imul(eo,eG)|0)|0)+((8191&(s=(s=s+Math.imul(eo,eQ)|0)+Math.imul(ea,eG)|0))<<13)|0;u=((o=o+Math.imul(ea,eQ)|0)+(s>>>13)|0)+(te>>>26)|0,te&=67108863,i=Math.imul(eb,eD),s=(s=Math.imul(eb,eH))+Math.imul(ev,eD)|0,o=Math.imul(ev,eH),i=i+Math.imul(eg,eU)|0,s=(s=s+Math.imul(eg,eV)|0)+Math.imul(em,eU)|0,o=o+Math.imul(em,eV)|0,i=i+Math.imul(ed,eq)|0,s=(s=s+Math.imul(ed,ez)|0)+Math.imul(ep,eq)|0,o=o+Math.imul(ep,ez)|0;var tt=(u+(i=i+Math.imul(ec,eG)|0)|0)+((8191&(s=(s=s+Math.imul(ec,eQ)|0)+Math.imul(eu,eG)|0))<<13)|0;u=((o=o+Math.imul(eu,eQ)|0)+(s>>>13)|0)+(tt>>>26)|0,tt&=67108863,i=Math.imul(eb,eU),s=(s=Math.imul(eb,eV))+Math.imul(ev,eU)|0,o=Math.imul(ev,eV),i=i+Math.imul(eg,eq)|0,s=(s=s+Math.imul(eg,ez)|0)+Math.imul(em,eq)|0,o=o+Math.imul(em,ez)|0;var tr=(u+(i=i+Math.imul(ed,eG)|0)|0)+((8191&(s=(s=s+Math.imul(ed,eQ)|0)+Math.imul(ep,eG)|0))<<13)|0;u=((o=o+Math.imul(ep,eQ)|0)+(s>>>13)|0)+(tr>>>26)|0,tr&=67108863,i=Math.imul(eb,eq),s=(s=Math.imul(eb,ez))+Math.imul(ev,eq)|0,o=Math.imul(ev,ez);var tn=(u+(i=i+Math.imul(eg,eG)|0)|0)+((8191&(s=(s=s+Math.imul(eg,eQ)|0)+Math.imul(em,eG)|0))<<13)|0;u=((o=o+Math.imul(em,eQ)|0)+(s>>>13)|0)+(tn>>>26)|0,tn&=67108863;var ti=(u+(i=Math.imul(eb,eG))|0)+((8191&(s=(s=Math.imul(eb,eQ))+Math.imul(ev,eG)|0))<<13)|0;return u=((o=Math.imul(ev,eQ))+(s>>>13)|0)+(ti>>>26)|0,ti&=67108863,c[0]=eZ,c[1]=eK,c[2]=eX,c[3]=eY,c[4]=e0,c[5]=e1,c[6]=e2,c[7]=e3,c[8]=e6,c[9]=e5,c[10]=e4,c[11]=e8,c[12]=e7,c[13]=e9,c[14]=te,c[15]=tt,c[16]=tr,c[17]=tn,c[18]=ti,0!==u&&(c[19]=u,n.length++),n};function bigMulTo(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var i=0,s=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=l,i=a,a=s}return 0!==i?n.words[o]=i:n.length--,n._strip()}function FFTM(e,t){this.x=e,this.y=t}Math.imul||(comb10MulTo=smallMulTo),BN.prototype.mulTo=function(e,t){var n,i=this.length+e.length;return 10===this.length&&10===e.length?comb10MulTo(this,e,t):i<63?smallMulTo(this,e,t):bigMulTo(this,e,t)},FFTM.prototype.makeRBT=function(e){for(var t=Array(e),n=BN.prototype._countBits(e)-1,i=0;i>=1;return i},FFTM.prototype.permute=function(e,t,n,i,s,o){for(var a=0;a>>=1)s++;return 1<>>=13,n[2*o+1]=8191&s,s>>>=13;for(o=2*t;o>=26,n+=(s/67108864|0)+(o>>>26),this.words[i]=67108863&o}return 0!==n&&(this.words[i]=n,this.length++),t?this.ineg():this},BN.prototype.muln=function(e){return this.clone().imuln(e)},BN.prototype.sqr=function(){return this.mul(this)},BN.prototype.isqr=function(){return this.imul(this.clone())},BN.prototype.pow=function(e){var t=toBitArray(e);if(0===t.length)return new BN(1);for(var n=this,i=0;i=0);var t,n=e%26,i=(e-n)/26,s=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var i,s=e%26,o=Math.min((e-s)/26,this.length),a=67108863^67108863>>>s<o)for(this.length-=o,l=0;l=0&&(0!==c||l>=i);l--){var u=0|this.words[l];this.words[l]=c<<26-s|u>>>s,c=u&a}return n&&0!==c&&(n.words[n.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},BN.prototype.ishrn=function(e,t,n){return assert(0===this.negative),this.iushrn(e,t,n)},BN.prototype.shln=function(e){return this.clone().ishln(e)},BN.prototype.ushln=function(e){return this.clone().iushln(e)},BN.prototype.shrn=function(e){return this.clone().ishrn(e)},BN.prototype.ushrn=function(e){return this.clone().iushrn(e)},BN.prototype.testn=function(e){assert("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;return!(this.length<=n)&&!!(this.words[n]&1<=0);var t=e%26,n=(e-t)/26;return(assert(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)?this:(0!==t&&n++,this.length=Math.min(n,this.length),0!==t&&(this.words[this.length-1]&=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},BN.prototype.isubn=function(e){if(assert("number"==typeof e),assert(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(l/67108864|0),this.words[i+n]=67108863&s}for(;i>26,this.words[i+n]=67108863&s;if(0===a)return this._strip();for(assert(-1===a),a=0,i=0;i>26,this.words[i]=67108863&s;return this.negative=1,this._strip()},BN.prototype._wordDiv=function(e,t){var n,i=this.length-e.length,s=this.clone(),o=e,a=0|o.words[o.length-1];0!=(i=26-this._countBits(a))&&(o=o.ushln(i),s.iushln(i),a=0|o.words[o.length-1]);var l=s.length-o.length;if("mod"!==t){(n=new BN(null)).length=l+1,n.words=Array(n.length);for(var c=0;c=0;v--){var R=(0|s.words[o.length+v])*67108864+(0|s.words[o.length+v-1]);for(R=Math.min(R/a|0,67108863),s._ishlnsubmul(o,R,v);0!==s.negative;)R--,s.negative=0,s._ishlnsubmul(o,1,v),s.isZero()||(s.negative^=1);n&&(n.words[v]=R)}return n&&n._strip(),s._strip(),"div"!==t&&0!==i&&s.iushrn(i),{div:n||null,mod:s}},BN.prototype.divmod=function(e,t,n){var i,s,o;return(assert(!e.isZero()),this.isZero())?{div:new BN(0),mod:new BN(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(i=o.div.neg()),"div"!==t&&(s=o.mod.neg(),n&&0!==s.negative&&s.iadd(e)),{div:i,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(i=o.div.neg()),{div:i,mod:o.mod}):(this.negative&e.negative)!=0?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(s=o.mod.neg(),n&&0!==s.negative&&s.isub(e)),{div:o.div,mod:s}):e.length>this.length||0>this.cmp(e)?{div:new BN(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new BN(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new BN(this.modrn(e.words[0]))}:this._wordDiv(e,t)},BN.prototype.div=function(e){return this.divmod(e,"div",!1).div},BN.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},BN.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},BN.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,i=e.ushrn(1),s=e.andln(1),o=n.cmp(i);return o<0||1===s&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},BN.prototype.modrn=function(e){var t=e<0;t&&(e=-e),assert(e<=67108863);for(var n=67108864%e,i=0,s=this.length-1;s>=0;s--)i=(n*i+(0|this.words[s]))%e;return t?-i:i},BN.prototype.modn=function(e){return this.modrn(e)},BN.prototype.idivn=function(e){var t=e<0;t&&(e=-e),assert(e<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var s=(0|this.words[i])+67108864*n;this.words[i]=s/e|0,n=s%e}return this._strip(),t?this.ineg():this},BN.prototype.divn=function(e){return this.clone().idivn(e)},BN.prototype.egcd=function(e){assert(0===e.negative),assert(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new BN(1),s=new BN(0),o=new BN(0),a=new BN(1),l=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++l;for(var c=n.clone(),u=t.clone();!t.isZero();){for(var v=0,R=1;(t.words[0]&R)==0&&v<26;++v,R<<=1);if(v>0)for(t.iushrn(v);v-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(c),s.isub(u)),i.iushrn(1),s.iushrn(1);for(var U=0,W=1;(n.words[0]&W)==0&&U<26;++U,W<<=1);if(U>0)for(n.iushrn(U);U-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(c),a.isub(u)),o.iushrn(1),a.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(o),s.isub(a)):(n.isub(t),o.isub(i),a.isub(s))}return{a:o,b:a,gcd:n.iushln(l)}},BN.prototype._invmp=function(e){assert(0===e.negative),assert(!e.isZero());var t,n=this,i=e.clone();n=0!==n.negative?n.umod(e):n.clone();for(var s=new BN(1),o=new BN(0),a=i.clone();n.cmpn(1)>0&&i.cmpn(1)>0;){for(var l=0,c=1;(n.words[0]&c)==0&&l<26;++l,c<<=1);if(l>0)for(n.iushrn(l);l-- >0;)s.isOdd()&&s.iadd(a),s.iushrn(1);for(var u=0,v=1;(i.words[0]&v)==0&&u<26;++u,v<<=1);if(u>0)for(i.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(a),o.iushrn(1);n.cmp(i)>=0?(n.isub(i),s.isub(o)):(i.isub(n),o.isub(s))}return 0>(t=0===n.cmpn(1)?s:o).cmpn(0)&&t.iadd(e),t},BN.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var i=0;t.isEven()&&n.isEven();i++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var s=t.cmp(n);if(s<0){var o=t;t=n,n=o}else if(0===s||0===n.cmpn(1))break;t.isub(n)}return n.iushln(i)},BN.prototype.invm=function(e){return this.egcd(e).a.umod(e)},BN.prototype.isEven=function(){return(1&this.words[0])==0},BN.prototype.isOdd=function(){return(1&this.words[0])==1},BN.prototype.andln=function(e){return this.words[0]&e},BN.prototype.bincn=function(e){assert("number"==typeof e);var t=e%26,n=(e-t)/26,i=1<>>26,a&=67108863,this.words[o]=a}return 0!==s&&(this.words[o]=s,this.length++),this},BN.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},BN.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return -1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)t=1;else{n&&(e=-e),assert(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;n--){var i=0|this.words[n],s=0|e.words[n];if(i!==s){is&&(t=1);break}}return t},BN.prototype.gtn=function(e){return 1===this.cmpn(e)},BN.prototype.gt=function(e){return 1===this.cmp(e)},BN.prototype.gten=function(e){return this.cmpn(e)>=0},BN.prototype.gte=function(e){return this.cmp(e)>=0},BN.prototype.ltn=function(e){return -1===this.cmpn(e)},BN.prototype.lt=function(e){return -1===this.cmp(e)},BN.prototype.lten=function(e){return 0>=this.cmpn(e)},BN.prototype.lte=function(e){return 0>=this.cmp(e)},BN.prototype.eqn=function(e){return 0===this.cmpn(e)},BN.prototype.eq=function(e){return 0===this.cmp(e)},BN.red=function(e){return new Red(e)},BN.prototype.toRed=function(e){return assert(!this.red,"Already a number in reduction context"),assert(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},BN.prototype.fromRed=function(){return assert(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},BN.prototype._forceRed=function(e){return this.red=e,this},BN.prototype.forceRed=function(e){return assert(!this.red,"Already a number in reduction context"),this._forceRed(e)},BN.prototype.redAdd=function(e){return assert(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},BN.prototype.redIAdd=function(e){return assert(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},BN.prototype.redSub=function(e){return assert(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},BN.prototype.redISub=function(e){return assert(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},BN.prototype.redShl=function(e){return assert(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},BN.prototype.redMul=function(e){return assert(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},BN.prototype.redIMul=function(e){return assert(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},BN.prototype.redSqr=function(){return assert(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},BN.prototype.redISqr=function(){return assert(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},BN.prototype.redSqrt=function(){return assert(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},BN.prototype.redInvm=function(){return assert(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},BN.prototype.redNeg=function(){return assert(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},BN.prototype.redPow=function(e){return assert(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var l={k256:null,p224:null,p192:null,p25519:null};function MPrime(e,t){this.name=e,this.p=new BN(t,16),this.n=this.p.bitLength(),this.k=new BN(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function K256(){MPrime.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function P224(){MPrime.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function P192(){MPrime.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function P25519(){MPrime.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function Red(e){if("string"==typeof e){var t=BN._prime(e);this.m=t.p,this.prime=t}else assert(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function Mont(e){Red.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new BN(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}MPrime.prototype._tmp=function(){var e=new BN(null);return e.words=Array(Math.ceil(this.n/13)),e},MPrime.prototype.ireduce=function(e){var t,n=e;do this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength();while(t>this.n);var i=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},MPrime.prototype.split=function(e,t){e.iushrn(this.n,0,t)},MPrime.prototype.imulK=function(e){return e.imul(this.k)},inherits(K256,MPrime),K256.prototype.split=function(e,t){for(var n=Math.min(e.length,9),i=0;i>>22,s=o}s>>>=22,e.words[i-10]=s,0===s&&e.length>10?e.length-=10:e.length-=9},K256.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=s,t=i}return 0!==t&&(e.words[e.length++]=t),e},BN._prime=function(e){var t;if(l[e])return l[e];if("k256"===e)t=new K256;else if("p224"===e)t=new P224;else if("p192"===e)t=new P192;else if("p25519"===e)t=new P25519;else throw Error("Unknown prime "+e);return l[e]=t,t},Red.prototype._verify1=function(e){assert(0===e.negative,"red works only with positives"),assert(e.red,"red works only with red numbers")},Red.prototype._verify2=function(e,t){assert((e.negative|t.negative)==0,"red works only with positives"),assert(e.red&&e.red===t.red,"red works only with red numbers")},Red.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(move(e,e.umod(this.m)._forceRed(this)),e)},Red.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},Red.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},Red.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},Red.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return 0>n.cmpn(0)&&n.iadd(this.m),n._forceRed(this)},Red.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return 0>n.cmpn(0)&&n.iadd(this.m),n},Red.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},Red.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},Red.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},Red.prototype.isqr=function(e){return this.imul(e,e.clone())},Red.prototype.sqr=function(e){return this.mul(e,e)},Red.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(assert(t%2==1),3===t){var n=this.m.add(new BN(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);assert(!i.isZero());var o=new BN(1).toRed(this),a=o.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new BN(2*c*c).toRed(this);0!==this.pow(c,l).cmp(a);)c.redIAdd(a);for(var u=this.pow(c,i),v=this.pow(e,i.addn(1).iushrn(1)),R=this.pow(e,i),U=s;0!==R.cmp(o);){for(var W=R,J=0;0!==W.cmp(o);J++)W=W.redSqr();assert(J=0;i--){for(var c=t.words[i],u=l-1;u>=0;u--){var v=c>>u&1;if(s!==n[0]&&(s=this.sqr(s)),0===v&&0===o){a=0;continue}o<<=1,o|=v,(4==++a||0===i&&0===u)&&(s=this.mul(s,n[o]),a=0,o=0)}l=26}return s},Red.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},Red.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},BN.mont=function(e){return new Mont(e)},inherits(Mont,Red),Mont.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},Mont.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},Mont.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),s=n.isub(i).iushrn(this.shift),o=s;return s.cmp(this.m)>=0?o=s.isub(this.m):0>s.cmpn(0)&&(o=s.iadd(this.m)),o._forceRed(this)},Mont.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new BN(0)._forceRed(this);var n=e.mul(t),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),s=n.isub(i).iushrn(this.shift),o=s;return s.cmp(this.m)>=0?o=s.isub(this.m):0>s.cmpn(0)&&(o=s.iadd(this.m)),o._forceRed(this)},Mont.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=n.nmd(e),this)},39781:function(e,t,n){let i;var s=n(28070);function useColors(){return"undefined"!=typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function formatArgs(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let n="color: "+this.color;t.splice(1,0,n,"color: inherit");let i=0,s=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(i++,"%c"===e&&(s=i))}),t.splice(s,0,n)}function save(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&void 0!==s&&"env"in s&&(e=s.env.DEBUG),e}function localstorage(){try{return localStorage}catch(e){}}t.formatArgs=formatArgs,t.save=save,t.load=load,t.useColors=useColors,t.storage=localstorage(),t.destroy=(i=!1,()=>{i||(i=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(62796)(t);let{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},62796:function(e,t,n){function setup(e){function selectColor(e){let t=0;for(let n=0;n{if("%%"===t)return"%";o++;let s=createDebug.formatters[i];if("function"==typeof s){let i=e[o];t=s.call(n,i),e.splice(o,1),o--}return t}),createDebug.formatArgs.call(n,e);let a=n.log||createDebug.log;a.apply(n,e)}return debug.namespace=e,debug.useColors=createDebug.useColors(),debug.color=createDebug.selectColor(e),debug.extend=extend,debug.destroy=createDebug.destroy,Object.defineProperty(debug,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(n!==createDebug.namespaces&&(n=createDebug.namespaces,i=createDebug.enabled(e)),i),set:e=>{s=e}}),"function"==typeof createDebug.init&&createDebug.init(debug),debug}function extend(e,t){let n=createDebug(this.namespace+(void 0===t?":":t)+e);return n.log=this.log,n}function enable(e){let t;createDebug.save(e),createDebug.namespaces=e,createDebug.names=[],createDebug.skips=[];let n=("string"==typeof e?e:"").split(/[\s,]+/),i=n.length;for(t=0;t"-"+e)].join(",");return createDebug.enable(""),e}function enabled(e){let t,n;if("*"===e[e.length-1])return!0;for(t=0,n=createDebug.skips.length;t{createDebug[t]=e[t]}),createDebug.names=[],createDebug.skips=[],createDebug.formatters={},createDebug.selectColor=selectColor,createDebug.enable(createDebug.load()),createDebug}e.exports=setup},62461:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseBlockTracker=void 0;let s=i(n(71054)),calculateSum=(e,t)=>e+t,o=["sync","latest"];let BaseBlockTracker=class BaseBlockTracker extends s.default{constructor(e){super(),this._blockResetDuration=e.blockResetDuration||2e4,this._usePastBlocks=e.usePastBlocks||!1,this._currentBlock=null,this._isRunning=!1,this._onNewListener=this._onNewListener.bind(this),this._onRemoveListener=this._onRemoveListener.bind(this),this._resetCurrentBlock=this._resetCurrentBlock.bind(this),this._setupInternalEvents()}async destroy(){this._cancelBlockResetTimeout(),await this._maybeEnd(),super.removeAllListeners()}isRunning(){return this._isRunning}getCurrentBlock(){return this._currentBlock}async getLatestBlock(){if(this._currentBlock)return this._currentBlock;let e=await new Promise(e=>this.once("latest",e));return e}removeAllListeners(e){return e?super.removeAllListeners(e):super.removeAllListeners(),this._setupInternalEvents(),this._onRemoveListener(),this}_setupInternalEvents(){this.removeListener("newListener",this._onNewListener),this.removeListener("removeListener",this._onRemoveListener),this.on("newListener",this._onNewListener),this.on("removeListener",this._onRemoveListener)}_onNewListener(e){o.includes(e)&&this._maybeStart()}_onRemoveListener(){this._getBlockTrackerEventCount()>0||this._maybeEnd()}async _maybeStart(){this._isRunning||(this._isRunning=!0,this._cancelBlockResetTimeout(),await this._start(),this.emit("_started"))}async _maybeEnd(){this._isRunning&&(this._isRunning=!1,this._setupBlockResetTimeout(),await this._end(),this.emit("_ended"))}_getBlockTrackerEventCount(){return o.map(e=>this.listenerCount(e)).reduce(calculateSum)}_shouldUseNewBlock(e){let t=this._currentBlock;if(!t)return!0;let n=hexToInt(e),i=hexToInt(t);return this._usePastBlocks&&ni}_newPotentialLatest(e){this._shouldUseNewBlock(e)&&this._setCurrentBlock(e)}_setCurrentBlock(e){let t=this._currentBlock;this._currentBlock=e,this.emit("latest",e),this.emit("sync",{oldBlock:t,newBlock:e})}_setupBlockResetTimeout(){this._cancelBlockResetTimeout(),this._blockResetTimeout=setTimeout(this._resetCurrentBlock,this._blockResetDuration),this._blockResetTimeout.unref&&this._blockResetTimeout.unref()}_cancelBlockResetTimeout(){this._blockResetTimeout&&clearTimeout(this._blockResetTimeout)}_resetCurrentBlock(){this._currentBlock=null}};function hexToInt(e){return Number.parseInt(e,16)}t.BaseBlockTracker=BaseBlockTracker},4366:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PollingBlockTracker=void 0;let s=i(n(72737)),o=i(n(60894)),a=n(62461),l=n(62315),c=(0,l.createModuleLogger)(l.projectLogger,"polling-block-tracker"),u=(0,s.default)();let PollingBlockTracker=class PollingBlockTracker extends a.BaseBlockTracker{constructor(e={}){var t;if(!e.provider)throw Error("PollingBlockTracker - no provider specified.");super(Object.assign(Object.assign({},e),{blockResetDuration:null!==(t=e.blockResetDuration)&&void 0!==t?t:e.pollingInterval})),this._provider=e.provider,this._pollingInterval=e.pollingInterval||2e4,this._retryTimeout=e.retryTimeout||this._pollingInterval/10,this._keepEventLoopActive=void 0===e.keepEventLoopActive||e.keepEventLoopActive,this._setSkipCacheFlag=e.setSkipCacheFlag||!1}async checkForLatestBlock(){return await this._updateLatestBlock(),await this.getLatestBlock()}async _start(){this._synchronize()}async _end(){}async _synchronize(){for(var e;this._isRunning;)try{await this._updateLatestBlock();let e=timeout(this._pollingInterval,!this._keepEventLoopActive);this.emit("_waitingForNextIteration"),await e}catch(i){let t=Error(`PollingBlockTracker - encountered an error while attempting to update latest block: +${null!==(e=i.stack)&&void 0!==e?e:i}`);try{this.emit("error",t)}catch(e){console.error(t)}let n=timeout(this._retryTimeout,!this._keepEventLoopActive);this.emit("_waitingForNextIteration"),await n}}async _updateLatestBlock(){let e=await this._fetchLatestBlock();this._newPotentialLatest(e)}async _fetchLatestBlock(){let e={jsonrpc:"2.0",id:u(),method:"eth_blockNumber",params:[]};this._setSkipCacheFlag&&(e.skipCache=!0),c("Making request",e);let t=await (0,o.default)(t=>this._provider.sendAsync(e,t))();if(c("Got response",t),t.error)throw Error(`PollingBlockTracker - encountered error fetching block: +${t.error.message}`);return t.result}};function timeout(e,t){return new Promise(n=>{let i=setTimeout(n,e);i.unref&&t&&i.unref()})}t.PollingBlockTracker=PollingBlockTracker},36966:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SubscribeBlockTracker=void 0;let s=i(n(72737)),o=n(62461),a=(0,s.default)();let SubscribeBlockTracker=class SubscribeBlockTracker extends o.BaseBlockTracker{constructor(e={}){if(!e.provider)throw Error("SubscribeBlockTracker - no provider specified.");super(e),this._provider=e.provider,this._subscriptionId=null}async checkForLatestBlock(){return await this.getLatestBlock()}async _start(){if(void 0===this._subscriptionId||null===this._subscriptionId)try{let e=await this._call("eth_blockNumber");this._subscriptionId=await this._call("eth_subscribe","newHeads"),this._provider.on("data",this._handleSubData.bind(this)),this._newPotentialLatest(e)}catch(e){this.emit("error",e)}}async _end(){if(null!==this._subscriptionId&&void 0!==this._subscriptionId)try{await this._call("eth_unsubscribe",this._subscriptionId),this._subscriptionId=null}catch(e){this.emit("error",e)}}_call(e,...t){return new Promise((n,i)=>{this._provider.sendAsync({id:a(),method:e,params:t,jsonrpc:"2.0"},(e,t)=>{e?i(e):n(t.result)})})}_handleSubData(e,t){var n;"eth_subscription"===t.method&&(null===(n=t.params)||void 0===n?void 0:n.subscription)===this._subscriptionId&&this._newPotentialLatest(t.params.result.number)}};t.SubscribeBlockTracker=SubscribeBlockTracker},18477:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),s(n(4366),t),s(n(36966),t)},62315:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createModuleLogger=t.projectLogger=void 0;let i=n(74065);Object.defineProperty(t,"createModuleLogger",{enumerable:!0,get:function(){return i.createModuleLogger}}),t.projectLogger=(0,i.createProjectLogger)("eth-block-tracker")},42845:function(e,t,n){let i=n(44768);let BaseFilterWithHistory=class BaseFilterWithHistory extends i{constructor(){super(),this.allResults=[]}async update(){throw Error("BaseFilterWithHistory - no update method specified")}addResults(e){this.allResults=this.allResults.concat(e),super.addResults(e)}addInitialResults(e){this.allResults=this.allResults.concat(e),super.addInitialResults(e)}getAllResults(){return this.allResults}};e.exports=BaseFilterWithHistory},44768:function(e,t,n){let i=n(71054).default;let BaseFilter=class BaseFilter extends i{constructor(){super(),this.updates=[]}async initialize(){}async update(){throw Error("BaseFilter - no update method specified")}addResults(e){this.updates=this.updates.concat(e),e.forEach(e=>this.emit("update",e))}addInitialResults(e){}getChangesAndClear(){let e=this.updates;return this.updates=[],e}};e.exports=BaseFilter},12198:function(e,t,n){let i=n(44768),s=n(96007),{incrementHexInt:o}=n(63053);let BlockFilter=class BlockFilter extends i{constructor({provider:e,params:t}){super(),this.type="block",this.provider=e}async update({oldBlock:e,newBlock:t}){let n=o(e),i=await s({provider:this.provider,fromBlock:n,toBlock:t}),a=i.map(e=>e.hash);this.addResults(a)}};e.exports=BlockFilter},96007:function(e){async function getBlocksForRange({provider:e,fromBlock:t,toBlock:n}){t||(t=n);let i=hexToInt(t),s=hexToInt(n),o=s-i+1,a=Array(o).fill().map((e,t)=>i+t).map(intToHex);return(await Promise.all(a.map(t=>query(e,"eth_getBlockByNumber",[t,!1])))).filter(e=>null!==e)}function hexToInt(e){return null==e?e:Number.parseInt(e,16)}function intToHex(e){if(null==e)return e;let t=e.toString(16);return"0x"+t}function sendAsync(e,t){return new Promise((n,i)=>{e.sendAsync(t,(e,t)=>{e?i(e):t.error?i(t.error):t.result?n(t.result):i(Error("Result was empty"))})})}async function query(e,t,n){for(let i=0;i<3;i++)try{return await sendAsync(e,{id:1,jsonrpc:"2.0",method:t,params:n})}catch(e){console.error(`provider.sendAsync failed: ${e.stack||e.message||e}`)}return null}e.exports=getBlocksForRange},63053:function(e){function minBlockRef(...e){let t=sortBlockRefs(e);return t[0]}function maxBlockRef(...e){let t=sortBlockRefs(e);return t[t.length-1]}function sortBlockRefs(e){return e.sort((e,t)=>"latest"===e||"earliest"===t?1:"latest"===t||"earliest"===e?-1:hexToInt(e)-hexToInt(t))}function bnToHex(e){return"0x"+e.toString(16)}function blockRefIsNumber(e){return e&&!["earliest","latest","pending"].includes(e)}function hexToInt(e){return null==e?e:Number.parseInt(e,16)}function incrementHexInt(e){if(null==e)return e;let t=hexToInt(e);return intToHex(t+1)}function intToHex(e){if(null==e)return e;let t=e.toString(16),n=t.length%2;return n&&(t="0"+t),"0x"+t}function unsafeRandomBytes(e){let t="0x";for(let n=0;n{if(0===s.length)return;let n=await R.acquire();try{await Promise.all(objValues(s).map(async n=>{try{await n.update({oldBlock:e,newBlock:t})}catch(e){console.error(e)}}))}catch(e){console.error(e)}n()};return W.newLogFilter=newLogFilter,W.newBlockFilter=newBlockFilter,W.newPendingTransactionFilter=newPendingTransactionFilter,W.uninstallFilter=uninstallFilterHandler,W.getFilterChanges=getFilterChanges,W.getFilterLogs=getFilterLogs,W.destroy=()=>{uninstallAllFilters()},W;async function newLogFilter(e){let n=new a({provider:t,params:e});return await installFilter(n),n}async function newBlockFilter(){let e=new l({provider:t});return await installFilter(e),e}async function newPendingTransactionFilter(){let e=new c({provider:t});return await installFilter(e),e}async function getFilterChanges(e){let t=v(e),n=s[t];if(!n)throw Error(`No filter for index "${t}"`);let i=n.getChangesAndClear();return i}async function getFilterLogs(e){let t=v(e),n=s[t];if(!n)throw Error(`No filter for index "${t}"`);let i=[];return"log"===n.type&&(i=n.getAllResults()),i}async function uninstallFilterHandler(e){let t=v(e),n=s[t],i=!!n;return i&&await uninstallFilter(t),i}async function installFilter(t){let i=objValues(s).length,o=await e.getLatestBlock();await t.initialize({currentBlock:o}),s[++n]=t,t.id=n,t.idHex=u(n);let a=objValues(s).length;return updateBlockTrackerSubs({prevFilterCount:i,newFilterCount:a}),n}async function uninstallFilter(e){let t=objValues(s).length;delete s[e];let n=objValues(s).length;updateBlockTrackerSubs({prevFilterCount:t,newFilterCount:n})}async function uninstallAllFilters(){let e=objValues(s).length;s={},updateBlockTrackerSubs({prevFilterCount:e,newFilterCount:0})}function updateBlockTrackerSubs({prevFilterCount:t,newFilterCount:n}){if(0===t&&n>0){e.on("sync",filterUpdater);return}if(t>0&&0===n){e.removeListener("sync",filterUpdater);return}}}function toFilterCreationMiddleware(e){return toAsyncRpcMiddleware(async(...t)=>{let n=await e(...t),i=u(n.id);return i})}function toAsyncRpcMiddleware(e){return s(async(t,n)=>{let i=await e.apply(null,t.params);n.result=i})}function mutexMiddlewareWrapper({mutex:e}){return t=>async(n,i,s,o)=>{let a=await e.acquire();a(),t(n,i,s,o)}}function objValues(e,t){let n=[];for(let t in e)n.push(e[t]);return n}e.exports=createEthFilterMiddleware},96993:function(e,t,n){let i=n(68024),s=n(51684),o=n(42845),{bnToHex:a,hexToInt:l,incrementHexInt:c,minBlockRef:u,blockRefIsNumber:v}=n(63053);let LogFilter=class LogFilter extends o{constructor({provider:e,params:t}){super(),this.type="log",this.ethQuery=new i(e),this.params=Object.assign({fromBlock:"latest",toBlock:"latest",address:void 0,topics:[]},t),this.params.address&&(Array.isArray(this.params.address)||(this.params.address=[this.params.address]),this.params.address=this.params.address.map(e=>e.toLowerCase()))}async initialize({currentBlock:e}){let t=this.params.fromBlock;["latest","pending"].includes(t)&&(t=e),"earliest"===t&&(t="0x0"),this.params.fromBlock=t;let n=u(this.params.toBlock,e),i=Object.assign({},this.params,{toBlock:n}),s=await this._fetchLogs(i);this.addInitialResults(s)}async update({oldBlock:e,newBlock:t}){let n;n=e?c(e):t;let i=Object.assign({},this.params,{fromBlock:n,toBlock:t}),s=await this._fetchLogs(i),o=s.filter(e=>this.matchLog(e));this.addResults(o)}async _fetchLogs(e){let t=await s(t=>this.ethQuery.getLogs(e,t))();return t}matchLog(e){if(l(this.params.fromBlock)>=l(e.blockNumber)||v(this.params.toBlock)&&l(this.params.toBlock)<=l(e.blockNumber))return!1;let t=e.address&&e.address.toLowerCase();if(this.params.address&&t&&!this.params.address.includes(t))return!1;let n=this.params.topics.every((t,n)=>{let i=e.topics[n];if(!i)return!1;i=i.toLowerCase();let s=Array.isArray(t)?t:[t],o=s.includes(null);if(o)return!0;s=s.map(e=>e.toLowerCase());let a=s.includes(i);return a});return n}};e.exports=LogFilter},85712:function(e,t,n){let i=n(71054).default,{createAsyncMiddleware:s,createScaffoldMiddleware:o}=n(93739),a=n(23838),{unsafeRandomBytes:l,incrementHexInt:c}=n(63053),u=n(96007);function createSubscriptionMiddleware({blockTracker:e,provider:t}){let n={},v=a({blockTracker:e,provider:t}),R=!1,U=new i,W=o({eth_subscribe:s(subscribe),eth_unsubscribe:s(unsubscribe)});return W.destroy=destroy,{events:U,middleware:W};async function subscribe(i,s){let o;if(R)throw Error("SubscriptionManager - attempting to use after destroying");let a=i.params[0],U=l(16);switch(a){case"newHeads":o=createSubNewHeads({subId:U});break;case"logs":let W=i.params[1],J=await v.newLogFilter(W);o=createSubFromFilter({subId:U,filter:J});break;default:throw Error(`SubscriptionManager - unsupported subscription type "${a}"`)}function createSubNewHeads({subId:n}){let i={type:a,destroy:async()=>{e.removeListener("sync",i.update)},update:async({oldBlock:e,newBlock:i})=>{let s=c(e),o=await u({provider:t,fromBlock:s,toBlock:i}),a=o.map(normalizeBlock).filter(e=>null!==e);a.forEach(e=>{_emitSubscriptionResult(n,e)})}};return e.on("sync",i.update),i}function createSubFromFilter({subId:e,filter:t}){return t.on("update",t=>_emitSubscriptionResult(e,t)),{type:a,destroy:async()=>await v.uninstallFilter(t.idHex)}}n[U]=o,s.result=U}async function unsubscribe(e,t){if(R)throw Error("SubscriptionManager - attempting to use after destroying");let i=e.params[0],s=n[i];if(!s){t.result=!1;return}delete n[i],await s.destroy(),t.result=!0}function _emitSubscriptionResult(e,t){U.emit("notification",{jsonrpc:"2.0",method:"eth_subscription",params:{subscription:e,result:t}})}function destroy(){for(let e in U.removeAllListeners(),n)n[e].destroy(),delete n[e];R=!0}}function normalizeBlock(e){return null==e?null:{hash:e.hash,parentHash:e.parentHash,sha3Uncles:e.sha3Uncles,miner:e.miner,stateRoot:e.stateRoot,transactionsRoot:e.transactionsRoot,receiptsRoot:e.receiptsRoot,logsBloom:e.logsBloom,difficulty:e.difficulty,number:e.number,gasLimit:e.gasLimit,gasUsed:e.gasUsed,nonce:e.nonce,mixHash:e.mixHash,timestamp:e.timestamp,extraData:e.extraData}}e.exports=createSubscriptionMiddleware},88058:function(e,t,n){let i=n(44768),s=n(96007),{incrementHexInt:o}=n(63053);let TxFilter=class TxFilter extends i{constructor({provider:e}){super(),this.type="tx",this.provider=e}async update({oldBlock:e}){let t=o(e),n=await s({provider:this.provider,fromBlock:t,toBlock:e}),i=[];for(let e of n)i.push(...e.transactions);this.addResults(i)}};e.exports=TxFilter},68024:function(e,t,n){let i=n(73203),s=n(72737)();function EthQuery(e){this.currentProvider=e}function generateFnFor(e){return function(){var t=[].slice.call(arguments),n=t.pop();this.sendAsync({method:e,params:t},n)}}function generateFnWithDefaultBlockFor(e,t){return function(){var n=[].slice.call(arguments),i=n.pop();n.length=1e3&&e<=4999}function stringifyReplacer(e,t){if("[Circular]"!==t)return t}t.EthereumProviderError=EthereumProviderError},80579:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.errorValues=t.errorCodes=void 0,t.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}},t.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}}},50390:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ethErrors=void 0;let i=n(733),s=n(67230),o=n(80579);function getEthJsonRpcError(e,t){let[n,o]=parseOpts(t);return new i.EthereumRpcError(e,n||s.getMessageFromCode(e),o)}function getEthProviderError(e,t){let[n,o]=parseOpts(t);return new i.EthereumProviderError(e,n||s.getMessageFromCode(e),o)}function parseOpts(e){if(e){if("string"==typeof e)return[e];if("object"==typeof e&&!Array.isArray(e)){let{message:t,data:n}=e;if(t&&"string"!=typeof t)throw Error("Must specify string message.");return[t||void 0,n]}}return[]}t.ethErrors={rpc:{parse:e=>getEthJsonRpcError(o.errorCodes.rpc.parse,e),invalidRequest:e=>getEthJsonRpcError(o.errorCodes.rpc.invalidRequest,e),invalidParams:e=>getEthJsonRpcError(o.errorCodes.rpc.invalidParams,e),methodNotFound:e=>getEthJsonRpcError(o.errorCodes.rpc.methodNotFound,e),internal:e=>getEthJsonRpcError(o.errorCodes.rpc.internal,e),server:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw Error("Ethereum RPC Server errors must provide single object argument.");let{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw Error('"code" must be an integer such that: -32099 <= code <= -32005');return getEthJsonRpcError(t,e)},invalidInput:e=>getEthJsonRpcError(o.errorCodes.rpc.invalidInput,e),resourceNotFound:e=>getEthJsonRpcError(o.errorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>getEthJsonRpcError(o.errorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>getEthJsonRpcError(o.errorCodes.rpc.transactionRejected,e),methodNotSupported:e=>getEthJsonRpcError(o.errorCodes.rpc.methodNotSupported,e),limitExceeded:e=>getEthJsonRpcError(o.errorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>getEthProviderError(o.errorCodes.provider.userRejectedRequest,e),unauthorized:e=>getEthProviderError(o.errorCodes.provider.unauthorized,e),unsupportedMethod:e=>getEthProviderError(o.errorCodes.provider.unsupportedMethod,e),disconnected:e=>getEthProviderError(o.errorCodes.provider.disconnected,e),chainDisconnected:e=>getEthProviderError(o.errorCodes.provider.chainDisconnected,e),custom:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw Error("Ethereum Provider custom errors must provide single object argument.");let{code:t,message:n,data:s}=e;if(!n||"string"!=typeof n)throw Error('"message" must be a nonempty string');return new i.EthereumProviderError(t,n,s)}}}},19484:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMessageFromCode=t.serializeError=t.EthereumProviderError=t.EthereumRpcError=t.ethErrors=t.errorCodes=void 0;let i=n(733);Object.defineProperty(t,"EthereumRpcError",{enumerable:!0,get:function(){return i.EthereumRpcError}}),Object.defineProperty(t,"EthereumProviderError",{enumerable:!0,get:function(){return i.EthereumProviderError}});let s=n(67230);Object.defineProperty(t,"serializeError",{enumerable:!0,get:function(){return s.serializeError}}),Object.defineProperty(t,"getMessageFromCode",{enumerable:!0,get:function(){return s.getMessageFromCode}});let o=n(50390);Object.defineProperty(t,"ethErrors",{enumerable:!0,get:function(){return o.ethErrors}});let a=n(80579);Object.defineProperty(t,"errorCodes",{enumerable:!0,get:function(){return a.errorCodes}})},67230:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializeError=t.isValidCode=t.getMessageFromCode=t.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;let i=n(80579),s=n(733),o=i.errorCodes.rpc.internal,a={code:o,message:getMessageFromCode(o)};function getMessageFromCode(e,n="Unspecified error message. This is a bug, please report it."){if(Number.isInteger(e)){let n=e.toString();if(hasKey(i.errorValues,n))return i.errorValues[n].message;if(e>=-32099&&e<=-32e3)return t.JSON_RPC_SERVER_ERROR_MESSAGE}return n}function isValidCode(e){if(!Number.isInteger(e))return!1;let t=e.toString();return!!(i.errorValues[t]||e>=-32099&&e<=-32e3)}function serializeError(e,{fallbackError:t=a,shouldIncludeStack:n=!1}={}){if(!t||!Number.isInteger(t.code)||"string"!=typeof t.message)throw Error("Must provide fallback error with integer number code and string message.");if(e instanceof s.EthereumRpcError)return e.serialize();let i={};if(e&&"object"==typeof e&&!Array.isArray(e)&&hasKey(e,"code")&&isValidCode(e.code))i.code=e.code,e.message&&"string"==typeof e.message?(i.message=e.message,hasKey(e,"data")&&(i.data=e.data)):(i.message=getMessageFromCode(i.code),i.data={originalError:assignOriginalError(e)});else{i.code=t.code;let n=null==e?void 0:e.message;i.message=n&&"string"==typeof n?n:t.message,i.data={originalError:assignOriginalError(e)}}let o=null==e?void 0:e.stack;return n&&e&&o&&"string"==typeof o&&(i.stack=o),i}function assignOriginalError(e){return e&&"object"==typeof e&&!Array.isArray(e)?Object.assign({},e):e}function hasKey(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.",t.getMessageFromCode=getMessageFromCode,t.isValidCode=isValidCode,t.serializeError=serializeError},19072:function(e){e.exports=stringify,stringify.default=stringify,stringify.stable=deterministicStringify,stringify.stableStringify=deterministicStringify;var t="[...]",n="[Circular]",i=[],s=[];function defaultOptions(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function stringify(e,t,n,o){void 0===o&&(o=defaultOptions()),decirc(e,"",0,[],void 0,0,o);try{a=0===s.length?JSON.stringify(e,t,n):JSON.stringify(e,replaceGetterValues(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==i.length;){var a,l=i.pop();4===l.length?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return a}function setReplace(e,t,n,o){var a=Object.getOwnPropertyDescriptor(o,n);void 0!==a.get?a.configurable?(Object.defineProperty(o,n,{value:e}),i.push([o,n,t,a])):s.push([t,n,e]):(o[n]=e,i.push([o,n,t]))}function decirc(e,i,s,o,a,l,c){if(l+=1,"object"==typeof e&&null!==e){for(u=0;uc.depthLimit||void 0!==c.edgesLimit&&s+1>c.edgesLimit){setReplace(t,e,i,a);return}if(o.push(e),Array.isArray(e))for(u=0;ut?1:0}function deterministicStringify(e,t,n,o){void 0===o&&(o=defaultOptions());var a,l=deterministicDecirc(e,"",0,[],void 0,0,o)||e;try{a=0===s.length?JSON.stringify(l,t,n):JSON.stringify(l,replaceGetterValues(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==i.length;){var c=i.pop();4===c.length?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return a}function deterministicDecirc(e,s,o,a,l,c,u){if(c+=1,"object"==typeof e&&null!==e){for(v=0;vu.depthLimit||void 0!==u.edgesLimit&&o+1>u.edgesLimit){setReplace(t,e,s,l);return}if(a.push(e),Array.isArray(e))for(v=0;v0)for(var i=0;i{try{let[s,o,a]=await JsonRpcEngine._runAllMiddleware(e,t,this._middleware);if(o)return await JsonRpcEngine._runReturnHandlers(a),i(s);return n(async e=>{try{await JsonRpcEngine._runReturnHandlers(a)}catch(t){return e(t)}return e()})}catch(e){return i(e)}}}async _handleBatch(e,t){try{let n=await Promise.all(e.map(this._promiseHandle.bind(this)));if(t)return t(null,n);return n}catch(e){if(t)return t(e);throw e}}_promiseHandle(e){return new Promise(t=>{this._handle(e,(e,n)=>{t(n)})})}async _handle(e,t){if(!e||Array.isArray(e)||"object"!=typeof e){let n=new o.EthereumRpcError(o.errorCodes.rpc.invalidRequest,`Requests must be plain objects. Received: ${typeof e}`,{request:e});return t(n,{id:void 0,jsonrpc:"2.0",error:n})}if("string"!=typeof e.method){let n=new o.EthereumRpcError(o.errorCodes.rpc.invalidRequest,`Must specify a string method. Received: ${typeof e.method}`,{request:e});return t(n,{id:e.id,jsonrpc:"2.0",error:n})}let n=Object.assign({},e),i={id:n.id,jsonrpc:n.jsonrpc},s=null;try{await this._processRequest(n,i)}catch(e){s=e}return s&&(delete i.result,i.error||(i.error=o.serializeError(s))),t(s,i)}async _processRequest(e,t){let[n,i,s]=await JsonRpcEngine._runAllMiddleware(e,t,this._middleware);if(JsonRpcEngine._checkForCompletion(e,t,i),await JsonRpcEngine._runReturnHandlers(s),n)throw n}static async _runAllMiddleware(e,t,n){let i=[],s=null,o=!1;for(let a of n)if([s,o]=await JsonRpcEngine._runMiddleware(e,t,a,i),o)break;return[s,o,i.reverse()]}static _runMiddleware(e,t,n,i){return new Promise(s=>{let end=e=>{let n=e||t.error;n&&(t.error=o.serializeError(n)),s([n,!0])};try{n(e,t,n=>{t.error?end(t.error):(n&&("function"!=typeof n&&end(new o.EthereumRpcError(o.errorCodes.rpc.internal,`JsonRpcEngine: "next" return handlers must be functions. Received "${typeof n}" for request: +${jsonify(e)}`,{request:e})),i.push(n)),s([null,!1]))},end)}catch(e){end(e)}})}static async _runReturnHandlers(e){for(let t of e)await new Promise((e,n)=>{t(t=>t?n(t):e())})}static _checkForCompletion(e,t,n){if(!("result"in t)&&!("error"in t))throw new o.EthereumRpcError(o.errorCodes.rpc.internal,`JsonRpcEngine: Response has no error or result for request: +${jsonify(e)}`,{request:e});if(!n)throw new o.EthereumRpcError(o.errorCodes.rpc.internal,`JsonRpcEngine: Nothing ended request: +${jsonify(e)}`,{request:e})}};function jsonify(e){return JSON.stringify(e,null,2)}t.JsonRpcEngine=JsonRpcEngine},2932:function(e,t){"use strict";function createAsyncMiddleware(e){return async(t,n,i,s)=>{let o;let a=new Promise(e=>{o=e}),l=null,c=!1,asyncNext=async()=>{c=!0,i(e=>{l=e,o()}),await a};try{await e(t,n,asyncNext),c?(await a,l(null)):s(null)}catch(e){l?l(e):s(e)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.createAsyncMiddleware=void 0,t.createAsyncMiddleware=createAsyncMiddleware},36360:function(e,t){"use strict";function createScaffoldMiddleware(e){return(t,n,i,s)=>{let o=e[t.method];return void 0===o?i():"function"==typeof o?o(t,n,i,s):(n.result=o,s())}}Object.defineProperty(t,"__esModule",{value:!0}),t.createScaffoldMiddleware=void 0,t.createScaffoldMiddleware=createScaffoldMiddleware},67067:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getUniqueId=void 0;let n=Math.floor(4294967295*Math.random());function getUniqueId(){return n=(n+1)%4294967295}t.getUniqueId=getUniqueId},98772:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createIdRemapMiddleware=void 0;let i=n(67067);function createIdRemapMiddleware(){return(e,t,n,s)=>{let o=e.id,a=i.getUniqueId();e.id=a,t.id=a,n(n=>{e.id=o,t.id=o,n()})}}t.createIdRemapMiddleware=createIdRemapMiddleware},93739:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),s(n(98772),t),s(n(2932),t),s(n(36360),t),s(n(67067),t),s(n(69349),t),s(n(55516),t)},55516:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeMiddleware=void 0;let i=n(69349);function mergeMiddleware(e){let t=new i.JsonRpcEngine;return e.forEach(e=>t.push(e)),t.asMiddleware()}t.mergeMiddleware=mergeMiddleware},72737:function(e){e.exports=IdIterator;function IdIterator(e){var t=(e=e||{}).max||Number.MAX_SAFE_INTEGER,n=void 0!==e.start?e.start:Math.floor(Math.random()*t);return function(){return n%=t,n++}}},23348:function(e){function parse(e){if(!((e=String(e)).length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*n;case"weeks":case"week":case"w":return 6048e5*n;case"days":case"day":case"d":return 864e5*n;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*n;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*n;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function fmtShort(e){var t=Math.abs(e);return t>=864e5?Math.round(e/864e5)+"d":t>=36e5?Math.round(e/36e5)+"h":t>=6e4?Math.round(e/6e4)+"m":t>=1e3?Math.round(e/1e3)+"s":e+"ms"}function fmtLong(e){var t=Math.abs(e);return t>=864e5?plural(e,t,864e5,"day"):t>=36e5?plural(e,t,36e5,"hour"):t>=6e4?plural(e,t,6e4,"minute"):t>=1e3?plural(e,t,1e3,"second"):e+" ms"}function plural(e,t,n,i){return Math.round(e/n)+" "+i+(t>=1.5*n?"s":"")}e.exports=function(e,t){t=t||{};var n=typeof e;if("string"===n&&e.length>0)return parse(e);if("number"===n&&isFinite(e))return t.long?fmtLong(e):fmtShort(e);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},60894:function(e){"use strict";let processFn=(e,t)=>function(){let n=t.promiseModule,i=Array(arguments.length);for(let e=0;e{t.errorFirst?i.push(function(e,i){if(t.multiArgs){let t=Array(arguments.length-1);for(let e=1;e{let n;t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},t);let filter=e=>{let match=t=>"string"==typeof t?e===t:t.test(e);return t.include?t.include.some(match):!t.exclude.some(match)};for(let i in n="function"==typeof e?function(){return t.excludeMain?e.apply(this,arguments):processFn(e,t).apply(this,arguments)}:Object.create(Object.getPrototypeOf(e)),e){let s=e[i];n[i]="function"==typeof s&&filter(i)?processFn(s,t):s}return n}},51684:function(e){"use strict";let processFn=(e,t,n,i)=>function(...s){let o=t.promiseModule;return new o((o,a)=>{t.multiArgs?s.push((...e)=>{t.errorFirst?e[0]?a(e):(e.shift(),o(e)):o(e)}):t.errorFirst?s.push((e,t)=>{e?a(e):o(t)}):s.push(o);let l=this===n?i:this;Reflect.apply(e,l,s)})},t=new WeakMap;e.exports=(e,n)=>{n={exclude:[/.+(?:Sync|Stream)$/],errorFirst:!0,promiseModule:Promise,...n};let i=typeof e;if(!(null!==e&&("object"===i||"function"===i)))throw TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${null===e?"null":i}\``);let filter=(e,i)=>{let s=t.get(e);if(s||(s={},t.set(e,s)),i in s)return s[i];let match=e=>"string"==typeof e||"symbol"==typeof i?i===e:e.test(i),o=Reflect.getOwnPropertyDescriptor(e,i),a=void 0===o||o.writable||o.configurable,l=n.include?n.include.some(match):!n.exclude.some(match),c=l&&a;return s[i]=c,c},s=new WeakMap,o=new Proxy(e,{apply(e,t,i){let a=s.get(e);if(a)return Reflect.apply(a,t,i);let l=n.excludeMain?e:processFn(e,n,o,e);return s.set(e,l),Reflect.apply(l,t,i)},get(e,t){let i=e[t];if(!filter(e,t)||i===Function.prototype[t])return i;let a=s.get(i);if(a)return a;if("function"==typeof i){let t=processFn(i,n,o,e);return s.set(i,t),t}return i}});return o}},36146:function(e,t,n){"use strict";n.r(t),n.d(t,{Component:function(){return b},Fragment:function(){return k},cloneElement:function(){return E},createContext:function(){return G},createElement:function(){return _},createRef:function(){return m},h:function(){return _},hydrate:function(){return D},isValidElement:function(){return a},options:function(){return s},render:function(){return B},toChildArray:function(){return H}});var i,s,o,a,l,c,u,v,R,U,W,J,Q={},Z=[],K=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,X=Array.isArray;function d(e,t){for(var n in t)e[n]=t[n];return e}function w(e){var t=e.parentNode;t&&t.removeChild(e)}function _(e,t,n){var s,o,a,l={};for(a in t)"key"==a?s=t[a]:"ref"==a?o=t[a]:l[a]=t[a];if(arguments.length>2&&(l.children=arguments.length>3?i.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===l[a]&&(l[a]=e.defaultProps[a]);return g(e,l,s,o,null)}function g(e,t,n,i,a){var l={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==a?++o:a,__i:-1,__u:0};return null==a&&null!=s.vnode&&s.vnode(l),l}function m(){return{current:null}}function k(e){return e.children}function b(e,t){this.props=e,this.context=t}function x(e,t){if(null==t)return e.__?x(e.__,e.__i+1):null;for(var n;tt&&l.sort(v));P.__r=0}function S(e,t,n,i,s,o,a,l,c,u,v){var R,U,W,J,K,X=i&&i.__k||Z,Y=t.length;for(n.__d=c,$(n,t,X),c=n.__d,R=0;R0?g(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s)?(s.__=e,s.__b=e.__b+1,l=L(s,n,a,v),s.__i=l,o=null,-1!==l&&(v--,(o=n[l])&&(o.__u|=131072)),null==o||null===o.__v?(-1==l&&R--,"function"!=typeof s.type&&(s.__u|=65536)):l!==a&&(l===a+1?R++:l>a?v>c-a?R+=l-a:R--:l(null!=c&&0==(131072&c.__u)?1:0))for(;a>=0||l=0){if((c=t[a])&&0==(131072&c.__u)&&s==c.key&&o===c.type)return a;a--}if(l2&&(c.children=arguments.length>3?i.call(arguments,2):n),g(e.type,c,s||e.key,o||e.ref,null)}function G(e,t){var n={__c:t="__cC"+J++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,i;return this.getChildContext||(n=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(function(e){e.__e=!0,M(e)})},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}i=Z.slice,s={__e:function(e,t,n,i){for(var s,o,a;t=t.__;)if((s=t.__c)&&!s.__)try{if((o=s.constructor)&&null!=o.getDerivedStateFromError&&(s.setState(o.getDerivedStateFromError(e)),a=s.__d),null!=s.componentDidCatch&&(s.componentDidCatch(e,i||{}),a=s.__d),a)return s.__E=s}catch(t){e=t}throw e}},o=0,a=function(e){return null!=e&&null==e.constructor},b.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),"function"==typeof e&&(e=e(d({},n),this.props)),e&&d(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),M(this))},b.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),M(this))},b.prototype.render=k,l=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,v=function(e,t){return e.__v.__b-t.__v.__b},P.__r=0,R=0,U=F(!1),W=F(!0),J=0},52700:function(e,t,n){"use strict";n.r(t),n.d(t,{useCallback:function(){return x},useContext:function(){return P},useDebugValue:function(){return V},useEffect:function(){return _},useErrorBoundary:function(){return b},useId:function(){return g},useImperativeHandle:function(){return T},useLayoutEffect:function(){return A},useMemo:function(){return q},useReducer:function(){return y},useRef:function(){return F},useState:function(){return p}});var i,s,o,a,l=n(36146),c=0,u=[],v=[],R=l.options,U=R.__b,W=R.__r,J=R.diffed,Q=R.__c,Z=R.unmount,K=R.__;function h(e,t){R.__h&&R.__h(s,e,c||t),c=0;var n=s.__H||(s.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:v}),n.__[e]}function p(e){return c=1,y(D,e)}function y(e,t,n){var o=h(i++,2);if(o.t=e,!o.__c&&(o.__=[n?n(t):D(void 0,t),function(e){var t=o.__N?o.__N[0]:o.__[0],n=o.t(t,e);t!==n&&(o.__N=[n,o.__[1]],o.__c.setState({}))}],o.__c=s,!s.u)){var f=function(e,t,n){if(!o.__c.__H)return!0;var i=o.__c.__H.__.filter(function(e){return!!e.__c});if(i.every(function(e){return!e.__N}))return!a||a.call(this,e,t,n);var s=!1;return i.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(s=!0)}}),!(!s&&o.__c.props===e)&&(!a||a.call(this,e,t,n))};s.u=!0;var a=s.shouldComponentUpdate,l=s.componentWillUpdate;s.componentWillUpdate=function(e,t,n){if(this.__e){var i=a;a=void 0,f(e,t,n),a=i}l&&l.call(this,e,t,n)},s.shouldComponentUpdate=f}return o.__N||o.__}function _(e,t){var n=h(i++,3);!R.__s&&C(n.__H,t)&&(n.__=e,n.i=t,s.__H.__h.push(n))}function A(e,t){var n=h(i++,4);!R.__s&&C(n.__H,t)&&(n.__=e,n.i=t,s.__h.push(n))}function F(e){return c=5,q(function(){return{current:e}},[])}function T(e,t,n){c=6,A(function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},null==n?n:n.concat(e))}function q(e,t){var n=h(i++,7);return C(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function x(e,t){return c=8,q(function(){return e},t)}function P(e){var t=s.context[e.__c],n=h(i++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(s)),t.props.value):e.__}function V(e,t){R.useDebugValue&&R.useDebugValue(t?t(e):e)}function b(e){var t=h(i++,10),n=p();return t.__=e,s.componentDidCatch||(s.componentDidCatch=function(e,i){t.__&&t.__(e,i),n[1](e)}),[n[0],function(){n[1](void 0)}]}function g(){var e=h(i++,11);if(!e.__){for(var t=s.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function j(){for(var e;e=u.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(z),e.__H.__h.forEach(B),e.__H.__h=[]}catch(t){e.__H.__h=[],R.__e(t,e.__v)}}R.__b=function(e){s=null,U&&U(e)},R.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),K&&K(e,t)},R.__r=function(e){W&&W(e),i=0;var t=(s=e.__c).__H;t&&(o===s?(t.__h=[],s.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=v,e.__N=e.i=void 0})):(t.__h.forEach(z),t.__h.forEach(B),t.__h=[],i=0)),o=s},R.diffed=function(e){J&&J(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==u.push(t)&&a===R.requestAnimationFrame||((a=R.requestAnimationFrame)||w)(j)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==v&&(e.__=e.__V),e.i=void 0,e.__V=v})),o=s=null},R.__c=function(e,t){t.some(function(e){try{e.__h.forEach(z),e.__h=e.__h.filter(function(e){return!e.__||B(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],R.__e(n,e.__v)}}),Q&&Q(e,t)},R.unmount=function(e){Z&&Z(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{z(e)}catch(e){t=e}}),n.__H=void 0,t&&R.__e(t,n.__v))};var X="function"==typeof requestAnimationFrame;function w(e){var t,r=function(){clearTimeout(n),X&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);X&&(t=requestAnimationFrame(r))}function z(e){var t=s,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),s=t}function B(e){var t=s;e.__c=e.__(),s=t}function C(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function D(e,t){return"function"==typeof t?t(e):t}},57503:function(e,t,n){let i=Symbol("SemVer ANY");let Comparator=class Comparator{static get ANY(){return i}constructor(e,t){if(t=s(t),e instanceof Comparator){if(!!t.loose===e.loose)return e;e=e.value}c("comparator",e=e.trim().split(/\s+/).join(" "),t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===i?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){let t=this.options.loose?o[a.COMPARATORLOOSE]:o[a.COMPARATOR],n=e.match(t);if(!n)throw TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new u(n[2],this.options.loose):this.semver=i}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===i||e===i)return!0;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Comparator))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new v(e.value,t).test(this.value):""===e.operator?""===e.value||new v(this.value,t).test(e.semver):!((t=s(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">"))}};e.exports=Comparator;let s=n(38679),{safeRe:o,t:a}=n(30563),l=n(66871),c=n(25725),u=n(18173),v=n(80358)},80358:function(e,t,n){let Range=class Range{constructor(e,t){if(t=o(t),e instanceof Range){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;return new Range(e.raw,t)}if(e instanceof a)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!isNullSet(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(1===e.length&&isAny(e[0])){this.set=[e];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){let t=(this.options.includePrerelease&&J)|(this.options.loose&&Q),n=t+":"+e,i=s.get(n);if(i)return i;let o=this.options.loose,c=o?u[v.HYPHENRANGELOOSE]:u[v.HYPHENRANGE];l("hyphen replace",e=e.replace(c,hyphenReplace(this.options.includePrerelease))),l("comparator trim",e=e.replace(u[v.COMPARATORTRIM],R)),l("tilde trim",e=e.replace(u[v.TILDETRIM],U)),l("caret trim",e=e.replace(u[v.CARETTRIM],W));let Z=e.split(" ").map(e=>parseComparator(e,this.options)).join(" ").split(/\s+/).map(e=>replaceGTE0(e,this.options));o&&(Z=Z.filter(e=>(l("loose invalid filter",e,this.options),!!e.match(u[v.COMPARATORLOOSE])))),l("range list",Z);let K=new Map,X=Z.map(e=>new a(e,this.options));for(let e of X){if(isNullSet(e))return[e];K.set(e.value,e)}K.size>1&&K.has("")&&K.delete("");let Y=[...K.values()];return s.set(n,Y),Y}intersects(e,t){if(!(e instanceof Range))throw TypeError("a Range is required");return this.set.some(n=>isSatisfiable(n,t)&&e.set.some(e=>isSatisfiable(e,t)&&n.every(n=>e.every(e=>n.intersects(e,t)))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}for(let t=0;t"<0.0.0-0"===e.value,isAny=e=>""===e.value,isSatisfiable=(e,t)=>{let n=!0,i=e.slice(),s=i.pop();for(;n&&i.length;)n=i.every(e=>s.intersects(e,t)),s=i.pop();return n},parseComparator=(e,t)=>(l("comp",e,t),l("caret",e=replaceCarets(e,t)),l("tildes",e=replaceTildes(e,t)),l("xrange",e=replaceXRanges(e,t)),l("stars",e=replaceStars(e,t)),e),isX=e=>!e||"x"===e.toLowerCase()||"*"===e,replaceTildes=(e,t)=>e.trim().split(/\s+/).map(e=>replaceTilde(e,t)).join(" "),replaceTilde=(e,t)=>{let n=t.loose?u[v.TILDELOOSE]:u[v.TILDE];return e.replace(n,(t,n,i,s,o)=>{let a;return l("tilde",e,t,n,i,s,o),isX(n)?a="":isX(i)?a=`>=${n}.0.0 <${+n+1}.0.0-0`:isX(s)?a=`>=${n}.${i}.0 <${n}.${+i+1}.0-0`:o?(l("replaceTilde pr",o),a=`>=${n}.${i}.${s}-${o} <${n}.${+i+1}.0-0`):a=`>=${n}.${i}.${s} <${n}.${+i+1}.0-0`,l("tilde return",a),a})},replaceCarets=(e,t)=>e.trim().split(/\s+/).map(e=>replaceCaret(e,t)).join(" "),replaceCaret=(e,t)=>{l("caret",e,t);let n=t.loose?u[v.CARETLOOSE]:u[v.CARET],i=t.includePrerelease?"-0":"";return e.replace(n,(t,n,s,o,a)=>{let c;return l("caret",e,t,n,s,o,a),isX(n)?c="":isX(s)?c=`>=${n}.0.0${i} <${+n+1}.0.0-0`:isX(o)?c="0"===n?`>=${n}.${s}.0${i} <${n}.${+s+1}.0-0`:`>=${n}.${s}.0${i} <${+n+1}.0.0-0`:a?(l("replaceCaret pr",a),c="0"===n?"0"===s?`>=${n}.${s}.${o}-${a} <${n}.${s}.${+o+1}-0`:`>=${n}.${s}.${o}-${a} <${n}.${+s+1}.0-0`:`>=${n}.${s}.${o}-${a} <${+n+1}.0.0-0`):(l("no pr"),c="0"===n?"0"===s?`>=${n}.${s}.${o}${i} <${n}.${s}.${+o+1}-0`:`>=${n}.${s}.${o}${i} <${n}.${+s+1}.0-0`:`>=${n}.${s}.${o} <${+n+1}.0.0-0`),l("caret return",c),c})},replaceXRanges=(e,t)=>(l("replaceXRanges",e,t),e.split(/\s+/).map(e=>replaceXRange(e,t)).join(" ")),replaceXRange=(e,t)=>{e=e.trim();let n=t.loose?u[v.XRANGELOOSE]:u[v.XRANGE];return e.replace(n,(n,i,s,o,a,c)=>{l("xRange",e,n,i,s,o,a,c);let u=isX(s),v=u||isX(o),R=v||isX(a);return"="===i&&R&&(i=""),c=t.includePrerelease?"-0":"",u?n=">"===i||"<"===i?"<0.0.0-0":"*":i&&R?(v&&(o=0),a=0,">"===i?(i=">=",v?(s=+s+1,o=0):o=+o+1,a=0):"<="===i&&(i="<",v?s=+s+1:o=+o+1),"<"===i&&(c="-0"),n=`${i+s}.${o}.${a}${c}`):v?n=`>=${s}.0.0${c} <${+s+1}.0.0-0`:R&&(n=`>=${s}.${o}.0${c} <${s}.${+o+1}.0-0`),l("xRange return",n),n})},replaceStars=(e,t)=>(l("replaceStars",e,t),e.trim().replace(u[v.STAR],"")),replaceGTE0=(e,t)=>(l("replaceGTE0",e,t),e.trim().replace(u[t.includePrerelease?v.GTE0PRE:v.GTE0],"")),hyphenReplace=e=>(t,n,i,s,o,a,l,c,u,v,R,U)=>(n=isX(i)?"":isX(s)?`>=${i}.0.0${e?"-0":""}`:isX(o)?`>=${i}.${s}.0${e?"-0":""}`:a?`>=${n}`:`>=${n}${e?"-0":""}`,c=isX(u)?"":isX(v)?`<${+u+1}.0.0-0`:isX(R)?`<${u}.${+v+1}.0-0`:U?`<=${u}.${v}.${R}-${U}`:e?`<${u}.${v}.${+R+1}-0`:`<=${c}`,`${n} ${c}`.trim()),testSet=(e,t,n)=>{for(let n=0;n0){let i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}},18173:function(e,t,n){let i=n(25725),{MAX_LENGTH:s,MAX_SAFE_INTEGER:o}=n(64251),{safeRe:a,t:l}=n(30563),c=n(38679),{compareIdentifiers:u}=n(62345);let SemVer=class SemVer{constructor(e,t){if(t=c(t),e instanceof SemVer){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>s)throw TypeError(`version is longer than ${s} characters`);i("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?a[l.LOOSE]:a[l.FULL]);if(!n)throw TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[i]&&(this.prerelease[i]++,i=-2);if(-1===i){if(t===this.prerelease.join(".")&&!1===n)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let i=[t,e];!1===n&&(i=[t]),0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};e.exports=SemVer},42782:function(e,t,n){let i=n(10755);e.exports=(e,t)=>{let n=i(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}},66871:function(e,t,n){let i=n(41062),s=n(80285),o=n(99888),a=n(63695),l=n(36409),c=n(82510);e.exports=(e,t,n,u)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return i(e,n,u);case"!=":return s(e,n,u);case">":return o(e,n,u);case">=":return a(e,n,u);case"<":return l(e,n,u);case"<=":return c(e,n,u);default:throw TypeError(`Invalid operator: ${t}`)}}},47872:function(e,t,n){let i=n(18173),s=n(10755),{safeRe:o,t:a}=n(30563);e.exports=(e,t)=>{if(e instanceof i)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){let i;let s=t.includePrerelease?o[a.COERCERTLFULL]:o[a.COERCERTL];for(;(i=s.exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&i.index+i[0].length===n.index+n[0].length||(n=i),s.lastIndex=i.index+i[1].length+i[2].length;s.lastIndex=-1}else n=e.match(t.includePrerelease?o[a.COERCEFULL]:o[a.COERCE]);if(null===n)return null;let l=n[2],c=n[3]||"0",u=n[4]||"0",v=t.includePrerelease&&n[5]?`-${n[5]}`:"",R=t.includePrerelease&&n[6]?`+${n[6]}`:"";return s(`${l}.${c}.${u}${v}${R}`,t)}},31689:function(e,t,n){let i=n(18173);e.exports=(e,t,n)=>{let s=new i(e,n),o=new i(t,n);return s.compare(o)||s.compareBuild(o)}},69114:function(e,t,n){let i=n(17817);e.exports=(e,t)=>i(e,t,!0)},17817:function(e,t,n){let i=n(18173);e.exports=(e,t,n)=>new i(e,n).compare(new i(t,n))},30336:function(e,t,n){let i=n(10755);e.exports=(e,t)=>{let n=i(e,null,!0),s=i(t,null,!0),o=n.compare(s);if(0===o)return null;let a=o>0,l=a?n:s,c=a?s:n,u=!!l.prerelease.length,v=!!c.prerelease.length;if(v&&!u)return c.patch||c.minor?l.patch?"patch":l.minor?"minor":"major":"major";let R=u?"pre":"";return n.major!==s.major?R+"major":n.minor!==s.minor?R+"minor":n.patch!==s.patch?R+"patch":"prerelease"}},41062:function(e,t,n){let i=n(17817);e.exports=(e,t,n)=>0===i(e,t,n)},99888:function(e,t,n){let i=n(17817);e.exports=(e,t,n)=>i(e,t,n)>0},63695:function(e,t,n){let i=n(17817);e.exports=(e,t,n)=>i(e,t,n)>=0},95708:function(e,t,n){let i=n(18173);e.exports=(e,t,n,s,o)=>{"string"==typeof n&&(o=s,s=n,n=void 0);try{return new i(e instanceof i?e.version:e,n).inc(t,s,o).version}catch(e){return null}}},36409:function(e,t,n){let i=n(17817);e.exports=(e,t,n)=>0>i(e,t,n)},82510:function(e,t,n){let i=n(17817);e.exports=(e,t,n)=>0>=i(e,t,n)},81705:function(e,t,n){let i=n(18173);e.exports=(e,t)=>new i(e,t).major},23894:function(e,t,n){let i=n(18173);e.exports=(e,t)=>new i(e,t).minor},80285:function(e,t,n){let i=n(17817);e.exports=(e,t,n)=>0!==i(e,t,n)},10755:function(e,t,n){let i=n(18173);e.exports=(e,t,n=!1)=>{if(e instanceof i)return e;try{return new i(e,t)}catch(e){if(!n)return null;throw e}}},7173:function(e,t,n){let i=n(18173);e.exports=(e,t)=>new i(e,t).patch},89983:function(e,t,n){let i=n(10755);e.exports=(e,t)=>{let n=i(e,t);return n&&n.prerelease.length?n.prerelease:null}},77248:function(e,t,n){let i=n(17817);e.exports=(e,t,n)=>i(t,e,n)},73387:function(e,t,n){let i=n(31689);e.exports=(e,t)=>e.sort((e,n)=>i(n,e,t))},24362:function(e,t,n){let i=n(80358);e.exports=(e,t,n)=>{try{t=new i(t,n)}catch(e){return!1}return t.test(e)}},61664:function(e,t,n){let i=n(31689);e.exports=(e,t)=>e.sort((e,n)=>i(e,n,t))},47076:function(e,t,n){let i=n(10755);e.exports=(e,t)=>{let n=i(e,t);return n?n.version:null}},13808:function(e,t,n){let i=n(30563),s=n(64251),o=n(18173),a=n(62345),l=n(10755),c=n(47076),u=n(42782),v=n(95708),R=n(30336),U=n(81705),W=n(23894),J=n(7173),Q=n(89983),Z=n(17817),K=n(77248),X=n(69114),Y=n(31689),ee=n(61664),et=n(73387),er=n(99888),en=n(36409),ei=n(41062),es=n(80285),eo=n(63695),ea=n(82510),el=n(66871),ec=n(47872),eu=n(57503),eh=n(80358),ed=n(24362),ep=n(8282),ef=n(18467),eg=n(37839),em=n(75875),ey=n(237),eb=n(58823),ev=n(16622),e_=n(94671),ew=n(39072),eE=n(914),ek=n(87778);e.exports={parse:l,valid:c,clean:u,inc:v,diff:R,major:U,minor:W,patch:J,prerelease:Q,compare:Z,rcompare:K,compareLoose:X,compareBuild:Y,sort:ee,rsort:et,gt:er,lt:en,eq:ei,neq:es,gte:eo,lte:ea,cmp:el,coerce:ec,Comparator:eu,Range:eh,satisfies:ed,toComparators:ep,maxSatisfying:ef,minSatisfying:eg,minVersion:em,validRange:ey,outside:eb,gtr:ev,ltr:e_,intersects:ew,simplifyRange:eE,subset:ek,SemVer:o,re:i.re,src:i.src,tokens:i.t,SEMVER_SPEC_VERSION:s.SEMVER_SPEC_VERSION,RELEASE_TYPES:s.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}},64251:function(e){let t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},25725:function(e,t,n){var i=n(28070);let s="object"==typeof i&&i.env&&i.env.NODE_DEBUG&&/\bsemver\b/i.test(i.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=s},62345:function(e){let t=/^[0-9]+$/,compareIdentifiers=(e,n)=>{let i=t.test(e),s=t.test(n);return i&&s&&(e=+e,n=+n),e===n?0:i&&!s?-1:s&&!i?1:ecompareIdentifiers(t,e)}},93164:function(e){let LRUCache=class LRUCache{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(void 0!==t)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){let n=this.delete(e);if(!n&&void 0!==t){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}};e.exports=LRUCache},38679:function(e){let t=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:n},30563:function(e,t,n){let{MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:s,MAX_LENGTH:o}=n(64251),a=n(25725);t=e.exports={};let l=t.re=[],c=t.safeRe=[],u=t.src=[],v=t.t={},R=0,U="[a-zA-Z0-9-]",W=[["\\s",1],["\\d",o],[U,s]],makeSafeRegex=e=>{for(let[t,n]of W)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},createToken=(e,t,n)=>{let i=makeSafeRegex(t),s=R++;a(e,s,t),v[e]=s,u[s]=t,l[s]=new RegExp(t,n?"g":void 0),c[s]=new RegExp(i,n?"g":void 0)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*"),createToken("NUMERICIDENTIFIERLOOSE","\\d+"),createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${U}*`),createToken("MAINVERSION",`(${u[v.NUMERICIDENTIFIER]})\\.(${u[v.NUMERICIDENTIFIER]})\\.(${u[v.NUMERICIDENTIFIER]})`),createToken("MAINVERSIONLOOSE",`(${u[v.NUMERICIDENTIFIERLOOSE]})\\.(${u[v.NUMERICIDENTIFIERLOOSE]})\\.(${u[v.NUMERICIDENTIFIERLOOSE]})`),createToken("PRERELEASEIDENTIFIER",`(?:${u[v.NUMERICIDENTIFIER]}|${u[v.NONNUMERICIDENTIFIER]})`),createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${u[v.NUMERICIDENTIFIERLOOSE]}|${u[v.NONNUMERICIDENTIFIER]})`),createToken("PRERELEASE",`(?:-(${u[v.PRERELEASEIDENTIFIER]}(?:\\.${u[v.PRERELEASEIDENTIFIER]})*))`),createToken("PRERELEASELOOSE",`(?:-?(${u[v.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[v.PRERELEASEIDENTIFIERLOOSE]})*))`),createToken("BUILDIDENTIFIER",`${U}+`),createToken("BUILD",`(?:\\+(${u[v.BUILDIDENTIFIER]}(?:\\.${u[v.BUILDIDENTIFIER]})*))`),createToken("FULLPLAIN",`v?${u[v.MAINVERSION]}${u[v.PRERELEASE]}?${u[v.BUILD]}?`),createToken("FULL",`^${u[v.FULLPLAIN]}$`),createToken("LOOSEPLAIN",`[v=\\s]*${u[v.MAINVERSIONLOOSE]}${u[v.PRERELEASELOOSE]}?${u[v.BUILD]}?`),createToken("LOOSE",`^${u[v.LOOSEPLAIN]}$`),createToken("GTLT","((?:<|>)?=?)"),createToken("XRANGEIDENTIFIERLOOSE",`${u[v.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),createToken("XRANGEIDENTIFIER",`${u[v.NUMERICIDENTIFIER]}|x|X|\\*`),createToken("XRANGEPLAIN",`[v=\\s]*(${u[v.XRANGEIDENTIFIER]})(?:\\.(${u[v.XRANGEIDENTIFIER]})(?:\\.(${u[v.XRANGEIDENTIFIER]})(?:${u[v.PRERELEASE]})?${u[v.BUILD]}?)?)?`),createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${u[v.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[v.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[v.XRANGEIDENTIFIERLOOSE]})(?:${u[v.PRERELEASELOOSE]})?${u[v.BUILD]}?)?)?`),createToken("XRANGE",`^${u[v.GTLT]}\\s*${u[v.XRANGEPLAIN]}$`),createToken("XRANGELOOSE",`^${u[v.GTLT]}\\s*${u[v.XRANGEPLAINLOOSE]}$`),createToken("COERCEPLAIN",`(^|[^\\d])(\\d{1,${i}})(?:\\.(\\d{1,${i}}))?(?:\\.(\\d{1,${i}}))?`),createToken("COERCE",`${u[v.COERCEPLAIN]}(?:$|[^\\d])`),createToken("COERCEFULL",u[v.COERCEPLAIN]+`(?:${u[v.PRERELEASE]})?`+`(?:${u[v.BUILD]})?`+"(?:$|[^\\d])"),createToken("COERCERTL",u[v.COERCE],!0),createToken("COERCERTLFULL",u[v.COERCEFULL],!0),createToken("LONETILDE","(?:~>?)"),createToken("TILDETRIM",`(\\s*)${u[v.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",createToken("TILDE",`^${u[v.LONETILDE]}${u[v.XRANGEPLAIN]}$`),createToken("TILDELOOSE",`^${u[v.LONETILDE]}${u[v.XRANGEPLAINLOOSE]}$`),createToken("LONECARET","(?:\\^)"),createToken("CARETTRIM",`(\\s*)${u[v.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",createToken("CARET",`^${u[v.LONECARET]}${u[v.XRANGEPLAIN]}$`),createToken("CARETLOOSE",`^${u[v.LONECARET]}${u[v.XRANGEPLAINLOOSE]}$`),createToken("COMPARATORLOOSE",`^${u[v.GTLT]}\\s*(${u[v.LOOSEPLAIN]})$|^$`),createToken("COMPARATOR",`^${u[v.GTLT]}\\s*(${u[v.FULLPLAIN]})$|^$`),createToken("COMPARATORTRIM",`(\\s*)${u[v.GTLT]}\\s*(${u[v.LOOSEPLAIN]}|${u[v.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",createToken("HYPHENRANGE",`^\\s*(${u[v.XRANGEPLAIN]})\\s+-\\s+(${u[v.XRANGEPLAIN]})\\s*$`),createToken("HYPHENRANGELOOSE",`^\\s*(${u[v.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[v.XRANGEPLAINLOOSE]})\\s*$`),createToken("STAR","(<|>)?=?\\s*\\*"),createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},16622:function(e,t,n){let i=n(58823);e.exports=(e,t,n)=>i(e,t,">",n)},39072:function(e,t,n){let i=n(80358);e.exports=(e,t,n)=>(e=new i(e,n),t=new i(t,n),e.intersects(t,n))},94671:function(e,t,n){let i=n(58823);e.exports=(e,t,n)=>i(e,t,"<",n)},18467:function(e,t,n){let i=n(18173),s=n(80358);e.exports=(e,t,n)=>{let o=null,a=null,l=null;try{l=new s(t,n)}catch(e){return null}return e.forEach(e=>{l.test(e)&&(!o||-1===a.compare(e))&&(a=new i(o=e,n))}),o}},37839:function(e,t,n){let i=n(18173),s=n(80358);e.exports=(e,t,n)=>{let o=null,a=null,l=null;try{l=new s(t,n)}catch(e){return null}return e.forEach(e=>{l.test(e)&&(!o||1===a.compare(e))&&(a=new i(o=e,n))}),o}},75875:function(e,t,n){let i=n(18173),s=n(80358),o=n(99888);e.exports=(e,t)=>{e=new s(e,t);let n=new i("0.0.0");if(e.test(n)||(n=new i("0.0.0-0"),e.test(n)))return n;n=null;for(let t=0;t{let t=new i(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!a||o(t,a))&&(a=t);break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),a&&(!n||o(n,a))&&(n=a)}return n&&e.test(n)?n:null}},58823:function(e,t,n){let i=n(18173),s=n(57503),{ANY:o}=s,a=n(80358),l=n(24362),c=n(99888),u=n(36409),v=n(82510),R=n(63695);e.exports=(e,t,n,U)=>{let W,J,Q,Z,K;switch(e=new i(e,U),t=new a(t,U),n){case">":W=c,J=v,Q=u,Z=">",K=">=";break;case"<":W=u,J=R,Q=c,Z="<",K="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(l(e,t,U))return!1;for(let n=0;n{e.semver===o&&(e=new s(">=0.0.0")),a=a||e,l=l||e,W(e.semver,a.semver,U)?a=e:Q(e.semver,l.semver,U)&&(l=e)}),a.operator===Z||a.operator===K||(!l.operator||l.operator===Z)&&J(e,l.semver)||l.operator===K&&Q(e,l.semver))return!1}return!0}},914:function(e,t,n){let i=n(24362),s=n(17817);e.exports=(e,t,n)=>{let o=[],a=null,l=null,c=e.sort((e,t)=>s(e,t,n));for(let e of c){let s=i(e,t,n);s?(l=e,a||(a=e)):(l&&o.push([a,l]),l=null,a=null)}a&&o.push([a,null]);let u=[];for(let[e,t]of o)e===t?u.push(e):t||e!==c[0]?t?e===c[0]?u.push(`<=${t}`):u.push(`${e} - ${t}`):u.push(`>=${e}`):u.push("*");let v=u.join(" || "),R="string"==typeof t.raw?t.raw:String(t);return v.length=0.0.0-0")],u=[new s(">=0.0.0")],simpleSubset=(e,t,n)=>{let i,s,v,R,U,W,J;if(e===t)return!0;if(1===e.length&&e[0].semver===o){if(1===t.length&&t[0].semver===o)return!0;e=n.includePrerelease?c:u}if(1===t.length&&t[0].semver===o){if(n.includePrerelease)return!0;t=u}let Q=new Set;for(let t of e)">"===t.operator||">="===t.operator?i=higherGT(i,t,n):"<"===t.operator||"<="===t.operator?s=lowerLT(s,t,n):Q.add(t.semver);if(Q.size>1||i&&s&&((v=l(i.semver,s.semver,n))>0||0===v&&(">="!==i.operator||"<="!==s.operator)))return null;for(let e of Q){if(i&&!a(e,String(i),n)||s&&!a(e,String(s),n))return null;for(let i of t)if(!a(e,String(i),n))return!1;return!0}let Z=!!s&&!n.includePrerelease&&!!s.semver.prerelease.length&&s.semver,K=!!i&&!n.includePrerelease&&!!i.semver.prerelease.length&&i.semver;for(let e of(Z&&1===Z.prerelease.length&&"<"===s.operator&&0===Z.prerelease[0]&&(Z=!1),t)){if(J=J||">"===e.operator||">="===e.operator,W=W||"<"===e.operator||"<="===e.operator,i){if(K&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===K.major&&e.semver.minor===K.minor&&e.semver.patch===K.patch&&(K=!1),">"===e.operator||">="===e.operator){if((R=higherGT(i,e,n))===e&&R!==i)return!1}else if(">="===i.operator&&!a(i.semver,String(e),n))return!1}if(s){if(Z&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===Z.major&&e.semver.minor===Z.minor&&e.semver.patch===Z.patch&&(Z=!1),"<"===e.operator||"<="===e.operator){if((U=lowerLT(s,e,n))===e&&U!==s)return!1}else if("<="===s.operator&&!a(s.semver,String(e),n))return!1}if(!e.operator&&(s||i)&&0!==v)return!1}return(!i||!W||!!s||0===v)&&(!s||!J||!!i||0===v)&&!K&&!Z},higherGT=(e,t,n)=>{if(!e)return t;let i=l(e.semver,t.semver,n);return i>0?e:i<0?t:">"===t.operator&&">="===e.operator?t:e},lowerLT=(e,t,n)=>{if(!e)return t;let i=l(e.semver,t.semver,n);return i<0?e:i>0?t:"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new i(e,n),t=new i(t,n);let s=!1;t:for(let i of e.set){for(let e of t.set){let t=simpleSubset(i,e,n);if(s=s||null!==t,t)continue t}if(s)return!1}return!0}},8282:function(e,t,n){let i=n(80358);e.exports=(e,t)=>new i(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "))},237:function(e,t,n){let i=n(80358);e.exports=(e,t)=>{try{return new i(e,t).range||"*"}catch(e){return null}}},73203:function(e){e.exports=extend;var t=Object.prototype.hasOwnProperty;function extend(){for(var e={},n=0;nn??(n=[e,...t()])}};function isIterable(e){return isObject(e)&&"function"==typeof e[Symbol.iterator]}function isObject(e){return"object"==typeof e&&null!=e}function isPlainObject(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function print(e){return"symbol"==typeof e?e.toString():"string"==typeof e?JSON.stringify(e):`${e}`}function shiftIterator(e){let{done:t,value:n}=e.next();return t?void 0:n}function toFailure(e,t,n,i){if(!0===e)return;!1===e?e={}:"string"==typeof e&&(e={message:e});let{path:s,branch:o}=t,{type:a}=n,{refinement:l,message:c=`Expected a value of type \`${a}\`${l?` with refinement \`${l}\``:""}, but received: \`${print(i)}\``}=e;return{value:i,type:a,refinement:l,key:s[s.length-1],path:s,branch:o,...e,message:c}}function*toFailures(e,t,n,i){for(let s of(isIterable(e)||(e=[e]),e)){let e=toFailure(s,t,n,i);e&&(yield e)}}function*run(e,t,n={}){let{path:i=[],branch:s=[e],coerce:o=!1,mask:a=!1}=n,l={path:i,branch:s};if(o&&(e=t.coercer(e,l),a&&"type"!==t.type&&isObject(t.schema)&&isObject(e)&&!Array.isArray(e)))for(let n in e)void 0===t.schema[n]&&delete e[n];let c="valid";for(let i of t.validator(e,l))i.explanation=n.message,c="not_valid",yield[i,void 0];for(let[u,v,R]of t.entries(e,l)){let t=run(v,R,{path:void 0===u?i:[...i,u],branch:void 0===u?s:[...s,v],coerce:o,mask:a,message:n.message});for(let n of t)n[0]?(c=null!=n[0].refinement?"not_refined":"not_valid",yield[n[0],void 0]):o&&(v=n[1],void 0===u?e=v:e instanceof Map?e.set(u,v):e instanceof Set?e.add(v):isObject(e)&&(void 0!==v||u in e)&&(e[u]=v))}if("not_valid"!==c)for(let i of t.refiner(e,l))i.explanation=n.message,c="not_refined",yield[i,void 0];"valid"===c&&(yield[void 0,e])}let Struct=class Struct{constructor(e){let{type:t,schema:n,validator:i,refiner:s,coercer:o=e=>e,entries:a=function*(){}}=e;this.type=t,this.schema=n,this.entries=a,this.coercer=o,i?this.validator=(e,t)=>{let n=i(e,t);return toFailures(n,t,this,e)}:this.validator=()=>[],s?this.refiner=(e,t)=>{let n=s(e,t);return toFailures(n,t,this,e)}:this.refiner=()=>[]}assert(e,t){return assert(e,this,t)}create(e,t){return create(e,this,t)}is(e){return is(e,this)}mask(e,t){return mask(e,this,t)}validate(e,t={}){return validate(e,this,t)}};function assert(e,t,n){let i=validate(e,t,{message:n});if(i[0])throw i[0]}function create(e,t,n){let i=validate(e,t,{coerce:!0,message:n});if(!i[0])return i[1];throw i[0]}function mask(e,t,n){let i=validate(e,t,{coerce:!0,mask:!0,message:n});if(!i[0])return i[1];throw i[0]}function is(e,t){let n=validate(e,t);return!n[0]}function validate(e,t,n={}){let i=run(e,t,n),s=shiftIterator(i);if(s[0]){let e=new StructError(s[0],function*(){for(let e of i)e[0]&&(yield e[0])});return[e,void 0]}{let e=s[1];return[void 0,e]}}function assign(...e){let t="type"===e[0].type,n=e.map(e=>e.schema),i=Object.assign({},...n);return t?type(i):object(i)}function define(e,t){return new Struct({type:e,schema:null,validator:t})}function deprecated(e,t){return new Struct({...e,refiner:(t,n)=>void 0===t||e.refiner(t,n),validator:(n,i)=>void 0===n||(t(n,i),e.validator(n,i))})}function dynamic(e){return new Struct({type:"dynamic",schema:null,*entries(t,n){let i=e(t,n);yield*i.entries(t,n)},validator(t,n){let i=e(t,n);return i.validator(t,n)},coercer(t,n){let i=e(t,n);return i.coercer(t,n)},refiner(t,n){let i=e(t,n);return i.refiner(t,n)}})}function lazy(e){let t;return new Struct({type:"lazy",schema:null,*entries(n,i){t??(t=e()),yield*t.entries(n,i)},validator:(n,i)=>(t??(t=e()),t.validator(n,i)),coercer:(n,i)=>(t??(t=e()),t.coercer(n,i)),refiner:(n,i)=>(t??(t=e()),t.refiner(n,i))})}function omit(e,t){let{schema:n}=e,i={...n};for(let e of t)delete i[e];return"type"===e.type?type(i):object(i)}function partial(e){let t=e instanceof Struct,n=t?{...e.schema}:{...e};for(let e in n)n[e]=optional(n[e]);return t&&"type"===e.type?type(n):object(n)}function pick(e,t){let{schema:n}=e,i={};for(let e of t)i[e]=n[e];return"type"===e.type?type(i):object(i)}function struct(e,t){return console.warn("superstruct@0.11 - The `struct` helper has been renamed to `define`."),define(e,t)}function any(){return define("any",()=>!0)}function array(e){return new Struct({type:"array",schema:e,*entries(t){if(e&&Array.isArray(t))for(let[n,i]of t.entries())yield[n,i,e]},coercer:e=>Array.isArray(e)?e.slice():e,validator:e=>Array.isArray(e)||`Expected an array value, but received: ${print(e)}`})}function bigint(){return define("bigint",e=>"bigint"==typeof e)}function boolean(){return define("boolean",e=>"boolean"==typeof e)}function date(){return define("date",e=>e instanceof Date&&!isNaN(e.getTime())||`Expected a valid \`Date\` object, but received: ${print(e)}`)}function enums(e){let t={},n=e.map(e=>print(e)).join();for(let n of e)t[n]=n;return new Struct({type:"enums",schema:t,validator:t=>e.includes(t)||`Expected one of \`${n}\`, but received: ${print(t)}`})}function func(){return define("func",e=>"function"==typeof e||`Expected a function, but received: ${print(e)}`)}function instance(e){return define("instance",t=>t instanceof e||`Expected a \`${e.name}\` instance, but received: ${print(t)}`)}function integer(){return define("integer",e=>"number"==typeof e&&!isNaN(e)&&Number.isInteger(e)||`Expected an integer, but received: ${print(e)}`)}function intersection(e){return new Struct({type:"intersection",schema:null,*entries(t,n){for(let i of e)yield*i.entries(t,n)},*validator(t,n){for(let i of e)yield*i.validator(t,n)},*refiner(t,n){for(let i of e)yield*i.refiner(t,n)}})}function literal(e){let t=print(e),n=typeof e;return new Struct({type:"literal",schema:"string"===n||"number"===n||"boolean"===n?e:null,validator:n=>n===e||`Expected the literal \`${t}\`, but received: ${print(n)}`})}function map(e,t){return new Struct({type:"map",schema:null,*entries(n){if(e&&t&&n instanceof Map)for(let[i,s]of n.entries())yield[i,i,e],yield[i,s,t]},coercer:e=>e instanceof Map?new Map(e):e,validator:e=>e instanceof Map||`Expected a \`Map\` object, but received: ${print(e)}`})}function never(){return define("never",()=>!1)}function nullable(e){return new Struct({...e,validator:(t,n)=>null===t||e.validator(t,n),refiner:(t,n)=>null===t||e.refiner(t,n)})}function number(){return define("number",e=>"number"==typeof e&&!isNaN(e)||`Expected a number, but received: ${print(e)}`)}function object(e){let t=e?Object.keys(e):[],n=never();return new Struct({type:"object",schema:e||null,*entries(i){if(e&&isObject(i)){let s=new Set(Object.keys(i));for(let n of t)s.delete(n),yield[n,i[n],e[n]];for(let e of s)yield[e,i[e],n]}},validator:e=>isObject(e)||`Expected an object, but received: ${print(e)}`,coercer:e=>isObject(e)?{...e}:e})}function optional(e){return new Struct({...e,validator:(t,n)=>void 0===t||e.validator(t,n),refiner:(t,n)=>void 0===t||e.refiner(t,n)})}function record(e,t){return new Struct({type:"record",schema:null,*entries(n){if(isObject(n))for(let i in n){let s=n[i];yield[i,i,e],yield[i,s,t]}},validator:e=>isObject(e)||`Expected an object, but received: ${print(e)}`})}function regexp(){return define("regexp",e=>e instanceof RegExp)}function set(e){return new Struct({type:"set",schema:null,*entries(t){if(e&&t instanceof Set)for(let n of t)yield[n,n,e]},coercer:e=>e instanceof Set?new Set(e):e,validator:e=>e instanceof Set||`Expected a \`Set\` object, but received: ${print(e)}`})}function string(){return define("string",e=>"string"==typeof e||`Expected a string, but received: ${print(e)}`)}function tuple(e){let t=never();return new Struct({type:"tuple",schema:null,*entries(n){if(Array.isArray(n)){let i=Math.max(e.length,n.length);for(let s=0;sArray.isArray(e)||`Expected an array, but received: ${print(e)}`})}function type(e){let t=Object.keys(e);return new Struct({type:"type",schema:e,*entries(n){if(isObject(n))for(let i of t)yield[i,n[i],e[i]]},validator:e=>isObject(e)||`Expected an object, but received: ${print(e)}`,coercer:e=>isObject(e)?{...e}:e})}function union(e){let t=e.map(e=>e.type).join(" | ");return new Struct({type:"union",schema:null,coercer(t){for(let n of e){let[e,i]=n.validate(t,{coerce:!0});if(!e)return i}return t},validator(n,i){let s=[];for(let t of e){let[...e]=run(n,t,i),[o]=e;if(!o[0])return[];for(let[t]of e)t&&s.push(t)}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${print(n)}`,...s]}})}function unknown(){return define("unknown",()=>!0)}function coerce(e,t,n){return new Struct({...e,coercer:(i,s)=>is(i,t)?e.coercer(n(i,s),s):e.coercer(i,s)})}function defaulted(e,t,n={}){return coerce(e,unknown(),e=>{let i="function"==typeof t?t():t;if(void 0===e)return i;if(!n.strict&&isPlainObject(e)&&isPlainObject(i)){let t={...e},n=!1;for(let e in i)void 0===t[e]&&(t[e]=i[e],n=!0);if(n)return t}return e})}function trimmed(e){return coerce(e,string(),e=>e.trim())}function empty(e){return refine(e,"empty",t=>{let n=getSize(t);return 0===n||`Expected an empty ${e.type} but received one with a size of \`${n}\``})}function getSize(e){return e instanceof Map||e instanceof Set?e.size:e.length}function max(e,t,n={}){let{exclusive:i}=n;return refine(e,"max",n=>i?ni?n>t:n>=t||`Expected a ${e.type} greater than ${i?"":"or equal to "}${t} but received \`${n}\``)}function nonempty(e){return refine(e,"nonempty",t=>{let n=getSize(t);return n>0||`Expected a nonempty ${e.type} but received an empty one`})}function pattern(e,t){return refine(e,"pattern",n=>t.test(n)||`Expected a ${e.type} matching \`/${t.source}/\` but received "${n}"`)}function size(e,t,n=t){let i=`Expected a ${e.type}`,s=t===n?`of \`${t}\``:`between \`${t}\` and \`${n}\``;return refine(e,"size",e=>{if("number"==typeof e||e instanceof Date)return t<=e&&e<=n||`${i} ${s} but received \`${e}\``;if(e instanceof Map||e instanceof Set){let{size:o}=e;return t<=o&&o<=n||`${i} with a size ${s} but received one with a size of \`${o}\``}{let{length:o}=e;return t<=o&&o<=n||`${i} with a length ${s} but received one with a length of \`${o}\``}})}function refine(e,t,n){return new Struct({...e,*refiner(i,s){yield*e.refiner(i,s);let o=n(i,s),a=toFailures(o,s,e,i);for(let e of a)yield{...e,refinement:t}}})}}}]); \ No newline at end of file diff --git a/_next/static/chunks/212.910fcdd4443ee55e.js b/_next/static/chunks/212.910fcdd4443ee55e.js deleted file mode 100644 index cc38c80..0000000 --- a/_next/static/chunks/212.910fcdd4443ee55e.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[212],{97227:function(e,n,a){"use strict";a.d(n,{A7:function(){return isHexString},DS:function(){return bufferToNumber},Gj:function(){return numberToArray},H3:function(){return hexToUtf8},KT:function(){return removeHexPrefix},Kb:function(){return concatBuffers},L_:function(){return addHexPrefix},OG:function(){return utf8ToHex},Pt:function(){return bufferToUtf8},QM:function(){return arrayToBuffer},VQ:function(){return arrayToNumber},ZV:function(){return utf8ToArray},Zr:function(){return utf8ToBuffer},_W:function(){return bufferToArray},bZ:function(){return getEncoding},eC:function(){return numberToHex},eP:function(){return isArrayBuffer},ek:function(){return arrayToHex},eu:function(){return hexToArray},fU:function(){return isTypedArray},gy:function(){return numberToUtf8},ii:function(){return hexToBuffer},kh:function(){return bufferToHex},ly:function(){return hexToNumber},oL:function(){return getType},oO:function(){return arrayToUtf8},pF:function(){return utf8ToNumber},w3:function(){return concatArrays},wL:function(){return removeHexLeadingZeros},xb:function(){return sanitizeHex},y$:function(){return numberToBuffer},zH:function(){return isBuffer}});var c=a(10610),R=a.n(c),J=a(75411),Z=a.n(J),Y=a(61900).Buffer;let ee="utf8";function bufferToArray(e){return new Uint8Array(e)}function bufferToHex(e,n=!1){let a=e.toString("hex");return n?addHexPrefix(a):a}function bufferToUtf8(e){return e.toString(ee)}function bufferToNumber(e){return e.readUIntBE(0,e.length)}function arrayToBuffer(e){return Z()(e)}function arrayToHex(e,n=!1){return bufferToHex(arrayToBuffer(e),n)}function arrayToUtf8(e){return bufferToUtf8(arrayToBuffer(e))}function arrayToNumber(e){return bufferToNumber(arrayToBuffer(e))}function hexToBuffer(e){return Y.from(removeHexPrefix(e),"hex")}function hexToArray(e){return bufferToArray(hexToBuffer(e))}function hexToUtf8(e){return bufferToUtf8(hexToBuffer(e))}function hexToNumber(e){return arrayToNumber(hexToArray(e))}function utf8ToBuffer(e){return Y.from(e,ee)}function utf8ToArray(e){return bufferToArray(utf8ToBuffer(e))}function utf8ToHex(e,n=!1){return bufferToHex(utf8ToBuffer(e),n)}function utf8ToNumber(e){let n=parseInt(e,10);return assert(isDefined(n),"Number can only safely store up to 53 bits"),n}function numberToBuffer(e){return binaryToBuffer(numberToBinary(e))}function numberToArray(e){return binaryToArray(numberToBinary(e))}function numberToHex(e,n){return binaryToHex(numberToBinary(e),n)}function numberToUtf8(e){return`${e}`}function numberToBinary(e){let n=(e>>>0).toString(2);return sanitizeBytes(n)}function binaryToBuffer(e){return arrayToBuffer(binaryToArray(e))}function binaryToArray(e){return new Uint8Array(splitBytes(e).map(e=>parseInt(e,2)))}function binaryToHex(e,n){return arrayToHex(binaryToArray(e),n)}function isBinaryString(e){return!!("string"==typeof e&&new RegExp(/^[01]+$/).test(e))&&e.length%8==0}function isHexString(e,n){return"string"==typeof e&&!!e.match(/^0x[0-9A-Fa-f]*$/)&&(!n||e.length===2+2*n)}function isBuffer(e){return Y.isBuffer(e)}function isTypedArray(e){return R().strict(e)&&!isBuffer(e)}function isArrayBuffer(e){return!isTypedArray(e)&&!isBuffer(e)&&void 0!==e.byteLength}function getType(e){return isBuffer(e)?"buffer":isTypedArray(e)?"typed-array":isArrayBuffer(e)?"array-buffer":Array.isArray(e)?"array":typeof e}function getEncoding(e){return isBinaryString(e)?"binary":isHexString(e)?"hex":ee}function concatBuffers(...e){let n=Y.concat(e);return n}function concatArrays(...e){let n=[];return e.forEach(e=>n=n.concat(Array.from(e))),new Uint8Array([...n])}function calcByteLength(e,n=8){let a=e%n;return a?(e-a)/n*n+n:e}function splitBytes(e,n=8){let a=sanitizeBytes(e).match(RegExp(`.{${n}}`,"gi"));return Array.from(a||[])}function sanitizeBytes(e,n=8,a="0"){return padLeft(e,calcByteLength(e.length,n),a)}function padLeft(e,n,a="0"){return padString(e,n,!0,a)}function removeHexPrefix(e){return e.replace(/^0x/,"")}function addHexPrefix(e){return e.startsWith("0x")?e:`0x${e}`}function sanitizeHex(e){return(e=sanitizeBytes(e=removeHexPrefix(e),2))&&(e=addHexPrefix(e)),e}function removeHexLeadingZeros(e){let n=e.startsWith("0x");return e=(e=removeHexPrefix(e)).startsWith("0")?e.substring(1):e,n?addHexPrefix(e):e}function isUndefined(e){return void 0===e}function isDefined(e){return!isUndefined(e)}function assert(e,n){if(!e)throw Error(n)}function padString(e,n,a,c="0"){let R=n-e.length,J=e;if(R>0){let n=c.repeat(R);J=a?n+e:e+n}return J}},89226:function(e,n,a){var c=a(28070);function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var R=a(41911),J=_interopDefault(a(20102)),Z=_interopDefault(a(37077)),Y=a(57066);function open(e){J.toString(e,{type:"terminal"}).then(console.log)}function _catch(e,n){try{var a=e()}catch(e){return n(e)}return a&&a.then?a.then(void 0,n):a}"undefined"!=typeof Symbol&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator"))),"undefined"!=typeof Symbol&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));var ee="walletconnect-wrapper",et="walletconnect-style-sheet",en="walletconnect-qrcode-modal",er="walletconnect-qrcode-text";function Header(e){return Y.createElement("div",{className:"walletconnect-modal__header"},Y.createElement("img",{src:"data:image/svg+xml,%3C?xml version='1.0' encoding='UTF-8'?%3E %3Csvg width='300px' height='185px' viewBox='0 0 300 185' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E %3C!-- Generator: Sketch 49.3 (51167) - http://www.bohemiancoding.com/sketch --%3E %3Ctitle%3EWalletConnect%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cdefs%3E%3C/defs%3E %3Cg id='Page-1' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cg id='walletconnect-logo-alt' fill='%233B99FC' fill-rule='nonzero'%3E %3Cpath d='M61.4385429,36.2562612 C110.349767,-11.6319051 189.65053,-11.6319051 238.561752,36.2562612 L244.448297,42.0196786 C246.893858,44.4140867 246.893858,48.2961898 244.448297,50.690599 L224.311602,70.406102 C223.088821,71.6033071 221.106302,71.6033071 219.883521,70.406102 L211.782937,62.4749541 C177.661245,29.0669724 122.339051,29.0669724 88.2173582,62.4749541 L79.542302,70.9685592 C78.3195204,72.1657633 76.337001,72.1657633 75.1142214,70.9685592 L54.9775265,51.2530561 C52.5319653,48.8586469 52.5319653,44.9765439 54.9775265,42.5821357 L61.4385429,36.2562612 Z M280.206339,77.0300061 L298.128036,94.5769031 C300.573585,96.9713 300.573599,100.85338 298.128067,103.247793 L217.317896,182.368927 C214.872352,184.763353 210.907314,184.76338 208.461736,182.368989 C208.461726,182.368979 208.461714,182.368967 208.461704,182.368957 L151.107561,126.214385 C150.496171,125.615783 149.504911,125.615783 148.893521,126.214385 C148.893517,126.214389 148.893514,126.214393 148.89351,126.214396 L91.5405888,182.368927 C89.095052,184.763359 85.1300133,184.763399 82.6844276,182.369014 C82.6844133,182.369 82.684398,182.368986 82.6843827,182.36897 L1.87196327,103.246785 C-0.573596939,100.852377 -0.573596939,96.9702735 1.87196327,94.5758653 L19.7936929,77.028998 C22.2392531,74.6345898 26.2042918,74.6345898 28.6498531,77.028998 L86.0048306,133.184355 C86.6162214,133.782957 87.6074796,133.782957 88.2188704,133.184355 C88.2188796,133.184346 88.2188878,133.184338 88.2188969,133.184331 L145.571,77.028998 C148.016505,74.6345347 151.981544,74.6344449 154.427161,77.028798 C154.427195,77.0288316 154.427229,77.0288653 154.427262,77.028899 L211.782164,133.184331 C212.393554,133.782932 213.384814,133.782932 213.996204,133.184331 L271.350179,77.0300061 C273.79574,74.6355969 277.760778,74.6355969 280.206339,77.0300061 Z' id='WalletConnect'%3E%3C/path%3E %3C/g%3E %3C/g%3E %3C/svg%3E",className:"walletconnect-modal__headerLogo"}),Y.createElement("p",null,"WalletConnect"),Y.createElement("div",{className:"walletconnect-modal__close__wrapper",onClick:e.onClose},Y.createElement("div",{id:"walletconnect-qrcode-close",className:"walletconnect-modal__close__icon"},Y.createElement("div",{className:"walletconnect-modal__close__line1"}),Y.createElement("div",{className:"walletconnect-modal__close__line2"}))))}function ConnectButton(e){return Y.createElement("a",{className:"walletconnect-connect__button",href:e.href,id:"walletconnect-connect-button-"+e.name,onClick:e.onClick,rel:"noopener noreferrer",style:{backgroundColor:e.color},target:"_blank"},e.name)}function WalletButton(e){var n=e.color,a=e.href,c=e.name,R=e.logo,J=e.onClick;return Y.createElement("a",{className:"walletconnect-modal__base__row",href:a,onClick:J,rel:"noopener noreferrer",target:"_blank"},Y.createElement("h3",{className:"walletconnect-modal__base__row__h3"},c),Y.createElement("div",{className:"walletconnect-modal__base__row__right"},Y.createElement("div",{className:"walletconnect-modal__base__row__right__app-icon",style:{background:"url('"+R+"') "+n,backgroundSize:"100%"}}),Y.createElement("img",{src:"data:image/svg+xml,%3Csvg width='8' height='18' viewBox='0 0 8 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.586301 0.213898C0.150354 0.552968 0.0718197 1.18124 0.41089 1.61719L5.2892 7.88931C5.57007 8.25042 5.57007 8.75608 5.2892 9.11719L0.410889 15.3893C0.071819 15.8253 0.150353 16.4535 0.586301 16.7926C1.02225 17.1317 1.65052 17.0531 1.98959 16.6172L6.86791 10.3451C7.7105 9.26174 7.7105 7.74476 6.86791 6.66143L1.98959 0.38931C1.65052 -0.0466374 1.02225 -0.125172 0.586301 0.213898Z' fill='%233C4252'/%3E %3C/svg%3E",className:"walletconnect-modal__base__row__right__caret"})))}function WalletIcon(e){var n=e.color,a=e.href,c=e.name,R=e.logo,J=e.onClick,Z=window.innerWidth<768?(c.length>8?2.5:2.7)+"vw":"inherit";return Y.createElement("a",{className:"walletconnect-connect__button__icon_anchor",href:a,onClick:J,rel:"noopener noreferrer",target:"_blank"},Y.createElement("div",{className:"walletconnect-connect__button__icon",style:{background:"url('"+R+"') "+n,backgroundSize:"100%"}}),Y.createElement("div",{style:{fontSize:Z},className:"walletconnect-connect__button__text"},c))}function LinkDisplay(e){var n=R.isAndroid(),a=Y.useState(""),c=a[0],J=a[1],Z=Y.useState(""),ee=Z[0],et=Z[1],en=Y.useState(1),eo=en[0],ei=en[1],es=ee?e.links.filter(function(e){return e.name.toLowerCase().includes(ee.toLowerCase())}):e.links,ea=e.errorMessage,ec=ee||es.length>5,eu=Math.ceil(es.length/12),el=[(eo-1)*12+1,12*eo],e_=es.length?es.filter(function(e,n){return n+1>=el[0]&&n+1<=el[1]}):[],ed=!!(!n&&eu>1),ef=void 0;function handleInput(e){J(e.target.value),clearTimeout(ef),e.target.value?ef=setTimeout(function(){et(e.target.value),ei(1)},1e3):(J(""),et(""),ei(1))}return Y.createElement("div",null,Y.createElement("p",{id:er,className:"walletconnect-qrcode__text"},n?e.text.connect_mobile_wallet:e.text.choose_preferred_wallet),!n&&Y.createElement("input",{className:"walletconnect-search__input",placeholder:"Search",value:c,onChange:handleInput}),Y.createElement("div",{className:"walletconnect-connect__buttons__wrapper"+(n?"__android":ec&&es.length?"__wrap":"")},n?Y.createElement(ConnectButton,{name:e.text.connect,color:"rgb(64, 153, 255)",href:e.uri,onClick:Y.useCallback(function(){R.saveMobileLinkInfo({name:"Unknown",href:e.uri})},[])}):e_.length?e_.map(function(n){var a=n.color,c=n.name,J=n.shortName,Z=n.logo,ee=R.formatIOSMobile(e.uri,n),et=Y.useCallback(function(){R.saveMobileLinkInfo({name:c,href:ee})},[e_]);return ec?Y.createElement(WalletIcon,{color:a,href:ee,name:J||c,logo:Z,onClick:et}):Y.createElement(WalletButton,{color:a,href:ee,name:c,logo:Z,onClick:et})}):Y.createElement(Y.Fragment,null,Y.createElement("p",null,ea.length?e.errorMessage:e.links.length&&!es.length?e.text.no_wallets_found:e.text.loading))),ed&&Y.createElement("div",{className:"walletconnect-modal__footer"},Array(eu).fill(0).map(function(e,n){var a=n+1,c=eo===a;return Y.createElement("a",{style:{margin:"auto 10px",fontWeight:c?"bold":"normal"},onClick:function(){return ei(a)}},a)})))}function Notification(e){var n=!!e.message.trim();return Y.createElement("div",{className:"walletconnect-qrcode__notification"+(n?" notification__show":"")},e.message)}var formatQRCodeImage=function(e){try{var n="";return Promise.resolve(J.toString(e,{margin:0,type:"svg"})).then(function(e){return"string"==typeof e&&(n=e.replace("0||Y.useEffect(function(){!function(){try{if(n)return Promise.resolve();ee(!0);var J=_catch(function(){var n=e.qrcodeModalOptions&&e.qrcodeModalOptions.registryUrl?e.qrcodeModalOptions.registryUrl:R.getWalletRegistryUrl();return Promise.resolve(fetch(n)).then(function(n){return Promise.resolve(n.json()).then(function(n){var J=n.listings,Z=a?"mobile":"desktop",Y=R.getMobileLinkRegistry(R.formatMobileRegistry(J,Z),c);ee(!1),eo(!0),eb(Y.length?"":e.text.no_supported_wallets),eg(Y);var et=1===Y.length;et&&(e_(R.formatIOSMobile(e.uri,Y[0])),ea(!0)),ep(et)})})},function(n){ee(!1),eo(!0),eb(e.text.something_went_wrong),console.error(n)});Promise.resolve(J&&J.then?J.then(function(){}):void 0)}catch(e){return Promise.reject(e)}}()})};getLinksIfNeeded();var ew=a?es:!es;return Y.createElement("div",{id:en,className:"walletconnect-qrcode__base animated fadeIn"},Y.createElement("div",{className:"walletconnect-modal__base"},Y.createElement(Header,{onClose:e.onClose}),ef&&es?Y.createElement("div",{className:"walletconnect-modal__single_wallet"},Y.createElement("a",{onClick:function(){return R.saveMobileLinkInfo({name:em[0].name,href:el})},href:el,rel:"noopener noreferrer",target:"_blank"},e.text.connect_with+" "+(ef?em[0].name:"")+" ›")):n||Z||!Z&&em.length?Y.createElement("div",{className:"walletconnect-modal__mobile__toggle"+(ew?" right__selected":"")},Y.createElement("div",{className:"walletconnect-modal__mobile__toggle_selector"}),a?Y.createElement(Y.Fragment,null,Y.createElement("a",{onClick:function(){return ea(!1),getLinksIfNeeded()}},e.text.mobile),Y.createElement("a",{onClick:function(){return ea(!0)}},e.text.qrcode)):Y.createElement(Y.Fragment,null,Y.createElement("a",{onClick:function(){return ea(!0)}},e.text.qrcode),Y.createElement("a",{onClick:function(){return ea(!1),getLinksIfNeeded()}},e.text.desktop))):null,Y.createElement("div",null,!es&&(n||Z||em.length)?Y.createElement(LinkDisplay,Object.assign({},ec,{links:em,errorMessage:ev})):Y.createElement(QRCodeDisplay,Object.assign({},ec)))))}var eo={de:{choose_preferred_wallet:"W\xe4hle bevorzugte Wallet",connect_mobile_wallet:"Verbinde mit Mobile Wallet",scan_qrcode_with_wallet:"Scanne den QR-code mit einer WalletConnect kompatiblen Wallet",connect:"Verbinden",qrcode:"QR-Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"In die Zwischenablage kopieren",copied_to_clipboard:"In die Zwischenablage kopiert!",connect_with:"Verbinden mit Hilfe von",loading:"Laden...",something_went_wrong:"Etwas ist schief gelaufen",no_supported_wallets:"Es gibt noch keine unterst\xfctzten Wallet",no_wallets_found:"keine Wallet gefunden"},en:{choose_preferred_wallet:"Choose your preferred wallet",connect_mobile_wallet:"Connect to Mobile Wallet",scan_qrcode_with_wallet:"Scan QR code with a WalletConnect-compatible wallet",connect:"Connect",qrcode:"QR Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"Copy to clipboard",copied_to_clipboard:"Copied to clipboard!",connect_with:"Connect with",loading:"Loading...",something_went_wrong:"Something went wrong",no_supported_wallets:"There are no supported wallets yet",no_wallets_found:"No wallets found"},es:{choose_preferred_wallet:"Elige tu billetera preferida",connect_mobile_wallet:"Conectar a billetera m\xf3vil",scan_qrcode_with_wallet:"Escanea el c\xf3digo QR con una billetera compatible con WalletConnect",connect:"Conectar",qrcode:"C\xf3digo QR",mobile:"M\xf3vil",desktop:"Desktop",copy_to_clipboard:"Copiar",copied_to_clipboard:"Copiado!",connect_with:"Conectar mediante",loading:"Cargando...",something_went_wrong:"Algo sali\xf3 mal",no_supported_wallets:"Todav\xeda no hay billeteras compatibles",no_wallets_found:"No se encontraron billeteras"},fr:{choose_preferred_wallet:"Choisissez votre portefeuille pr\xe9f\xe9r\xe9",connect_mobile_wallet:"Se connecter au portefeuille mobile",scan_qrcode_with_wallet:"Scannez le QR code avec un portefeuille compatible WalletConnect",connect:"Se connecter",qrcode:"QR Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"Copier",copied_to_clipboard:"Copi\xe9!",connect_with:"Connectez-vous \xe0 l'aide de",loading:"Chargement...",something_went_wrong:"Quelque chose a mal tourn\xe9",no_supported_wallets:"Il n'y a pas encore de portefeuilles pris en charge",no_wallets_found:"Aucun portefeuille trouv\xe9"},ko:{choose_preferred_wallet:"원하는 지갑을 선택하세요",connect_mobile_wallet:"모바일 지갑과 연결",scan_qrcode_with_wallet:"WalletConnect 지원 지갑에서 QR코드를 스캔하세요",connect:"연결",qrcode:"QR 코드",mobile:"모바일",desktop:"데스크탑",copy_to_clipboard:"클립보드에 복사",copied_to_clipboard:"클립보드에 복사되었습니다!",connect_with:"와 연결하다",loading:"로드 중...",something_went_wrong:"문제가 발생했습니다.",no_supported_wallets:"아직 지원되는 지갑이 없습니다",no_wallets_found:"지갑을 찾을 수 없습니다"},pt:{choose_preferred_wallet:"Escolha sua carteira preferida",connect_mobile_wallet:"Conectar-se \xe0 carteira m\xf3vel",scan_qrcode_with_wallet:"Ler o c\xf3digo QR com uma carteira compat\xedvel com WalletConnect",connect:"Conectar",qrcode:"C\xf3digo QR",mobile:"M\xf3vel",desktop:"Desktop",copy_to_clipboard:"Copiar",copied_to_clipboard:"Copiado!",connect_with:"Ligar por meio de",loading:"Carregamento...",something_went_wrong:"Algo correu mal",no_supported_wallets:"Ainda n\xe3o h\xe1 carteiras suportadas",no_wallets_found:"Nenhuma carteira encontrada"},zh:{choose_preferred_wallet:"选择你的钱包",connect_mobile_wallet:"连接至移动端钱包",scan_qrcode_with_wallet:"使用兼容 WalletConnect 的钱包扫描二维码",connect:"连接",qrcode:"二维码",mobile:"移动",desktop:"桌面",copy_to_clipboard:"复制到剪贴板",copied_to_clipboard:"复制到剪贴板成功!",connect_with:"通过以下方式连接",loading:"正在加载...",something_went_wrong:"出了问题",no_supported_wallets:"目前还没有支持的钱包",no_wallets_found:"没有找到钱包"},fa:{choose_preferred_wallet:"کیف پول مورد نظر خود را انتخاب کنید",connect_mobile_wallet:"به کیف پول موبایل وصل شوید",scan_qrcode_with_wallet:"کد QR را با یک کیف پول سازگار با WalletConnect اسکن کنید",connect:"اتصال",qrcode:"کد QR",mobile:"سیار",desktop:"دسکتاپ",copy_to_clipboard:"کپی به کلیپ بورد",copied_to_clipboard:"در کلیپ بورد کپی شد!",connect_with:"ارتباط با",loading:"...بارگذاری",something_went_wrong:"مشکلی پیش آمد",no_supported_wallets:"هنوز هیچ کیف پول پشتیبانی شده ای وجود ندارد",no_wallets_found:"هیچ کیف پولی پیدا نشد"}};function injectStyleSheet(){var e=R.getDocumentOrThrow(),n=e.getElementById(et);n&&e.head.removeChild(n);var a=e.createElement("style");a.setAttribute("id",et),a.innerText=':root {\n --animation-duration: 300ms;\n}\n\n@keyframes fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n\n@keyframes fadeOut {\n from {\n opacity: 1;\n }\n to {\n opacity: 0;\n }\n}\n\n.animated {\n animation-duration: var(--animation-duration);\n animation-fill-mode: both;\n}\n\n.fadeIn {\n animation-name: fadeIn;\n}\n\n.fadeOut {\n animation-name: fadeOut;\n}\n\n#walletconnect-wrapper {\n -webkit-user-select: none;\n align-items: center;\n display: flex;\n height: 100%;\n justify-content: center;\n left: 0;\n pointer-events: none;\n position: fixed;\n top: 0;\n user-select: none;\n width: 100%;\n z-index: 99999999999999;\n}\n\n.walletconnect-modal__headerLogo {\n height: 21px;\n}\n\n.walletconnect-modal__header p {\n color: #ffffff;\n font-size: 20px;\n font-weight: 600;\n margin: 0;\n align-items: flex-start;\n display: flex;\n flex: 1;\n margin-left: 5px;\n}\n\n.walletconnect-modal__close__wrapper {\n position: absolute;\n top: 0px;\n right: 0px;\n z-index: 10000;\n background: white;\n border-radius: 26px;\n padding: 6px;\n box-sizing: border-box;\n width: 26px;\n height: 26px;\n cursor: pointer;\n}\n\n.walletconnect-modal__close__icon {\n position: relative;\n top: 7px;\n right: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n transform: rotate(45deg);\n}\n\n.walletconnect-modal__close__line1 {\n position: absolute;\n width: 100%;\n border: 1px solid rgb(48, 52, 59);\n}\n\n.walletconnect-modal__close__line2 {\n position: absolute;\n width: 100%;\n border: 1px solid rgb(48, 52, 59);\n transform: rotate(90deg);\n}\n\n.walletconnect-qrcode__base {\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n background: rgba(37, 41, 46, 0.95);\n height: 100%;\n left: 0;\n pointer-events: auto;\n position: fixed;\n top: 0;\n transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);\n width: 100%;\n will-change: opacity;\n padding: 40px;\n box-sizing: border-box;\n}\n\n.walletconnect-qrcode__text {\n color: rgba(60, 66, 82, 0.6);\n font-size: 16px;\n font-weight: 600;\n letter-spacing: 0;\n line-height: 1.1875em;\n margin: 10px 0 20px 0;\n text-align: center;\n width: 100%;\n}\n\n@media only screen and (max-width: 768px) {\n .walletconnect-qrcode__text {\n font-size: 4vw;\n }\n}\n\n@media only screen and (max-width: 320px) {\n .walletconnect-qrcode__text {\n font-size: 14px;\n }\n}\n\n.walletconnect-qrcode__image {\n width: calc(100% - 30px);\n box-sizing: border-box;\n cursor: none;\n margin: 0 auto;\n}\n\n.walletconnect-qrcode__notification {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n font-size: 16px;\n padding: 16px 20px;\n border-radius: 16px;\n text-align: center;\n transition: all 0.1s ease-in-out;\n background: white;\n color: black;\n margin-bottom: -60px;\n opacity: 0;\n}\n\n.walletconnect-qrcode__notification.notification__show {\n opacity: 1;\n}\n\n@media only screen and (max-width: 768px) {\n .walletconnect-modal__header {\n height: 130px;\n }\n .walletconnect-modal__base {\n overflow: auto;\n }\n}\n\n@media only screen and (min-device-width: 415px) and (max-width: 768px) {\n #content {\n max-width: 768px;\n box-sizing: border-box;\n }\n}\n\n@media only screen and (min-width: 375px) and (max-width: 415px) {\n #content {\n max-width: 414px;\n box-sizing: border-box;\n }\n}\n\n@media only screen and (min-width: 320px) and (max-width: 375px) {\n #content {\n max-width: 375px;\n box-sizing: border-box;\n }\n}\n\n@media only screen and (max-width: 320px) {\n #content {\n max-width: 320px;\n box-sizing: border-box;\n }\n}\n\n.walletconnect-modal__base {\n -webkit-font-smoothing: antialiased;\n background: #ffffff;\n border-radius: 24px;\n box-shadow: 0 10px 50px 5px rgba(0, 0, 0, 0.4);\n font-family: ui-rounded, "SF Pro Rounded", "SF Pro Text", medium-content-sans-serif-font,\n -apple-system, BlinkMacSystemFont, ui-sans-serif, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,\n "Open Sans", "Helvetica Neue", sans-serif;\n margin-top: 41px;\n padding: 24px 24px 22px;\n pointer-events: auto;\n position: relative;\n text-align: center;\n transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);\n will-change: transform;\n overflow: visible;\n transform: translateY(-50%);\n top: 50%;\n max-width: 500px;\n margin: auto;\n}\n\n@media only screen and (max-width: 320px) {\n .walletconnect-modal__base {\n padding: 24px 12px;\n }\n}\n\n.walletconnect-modal__base .hidden {\n transform: translateY(150%);\n transition: 0.125s cubic-bezier(0.4, 0, 1, 1);\n}\n\n.walletconnect-modal__header {\n align-items: center;\n display: flex;\n height: 26px;\n left: 0;\n justify-content: space-between;\n position: absolute;\n top: -42px;\n width: 100%;\n}\n\n.walletconnect-modal__base .wc-logo {\n align-items: center;\n display: flex;\n height: 26px;\n margin-top: 15px;\n padding-bottom: 15px;\n pointer-events: auto;\n}\n\n.walletconnect-modal__base .wc-logo div {\n background-color: #3399ff;\n height: 21px;\n margin-right: 5px;\n mask-image: url("images/wc-logo.svg") center no-repeat;\n width: 32px;\n}\n\n.walletconnect-modal__base .wc-logo p {\n color: #ffffff;\n font-size: 20px;\n font-weight: 600;\n margin: 0;\n}\n\n.walletconnect-modal__base h2 {\n color: rgba(60, 66, 82, 0.6);\n font-size: 16px;\n font-weight: 600;\n letter-spacing: 0;\n line-height: 1.1875em;\n margin: 0 0 19px 0;\n text-align: center;\n width: 100%;\n}\n\n.walletconnect-modal__base__row {\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n align-items: center;\n border-radius: 20px;\n cursor: pointer;\n display: flex;\n height: 56px;\n justify-content: space-between;\n padding: 0 15px;\n position: relative;\n margin: 0px 0px 8px;\n text-align: left;\n transition: 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);\n will-change: transform;\n text-decoration: none;\n}\n\n.walletconnect-modal__base__row:hover {\n background: rgba(60, 66, 82, 0.06);\n}\n\n.walletconnect-modal__base__row:active {\n background: rgba(60, 66, 82, 0.06);\n transform: scale(0.975);\n transition: 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);\n}\n\n.walletconnect-modal__base__row__h3 {\n color: #25292e;\n font-size: 20px;\n font-weight: 700;\n margin: 0;\n padding-bottom: 3px;\n}\n\n.walletconnect-modal__base__row__right {\n align-items: center;\n display: flex;\n justify-content: center;\n}\n\n.walletconnect-modal__base__row__right__app-icon {\n border-radius: 8px;\n height: 34px;\n margin: 0 11px 2px 0;\n width: 34px;\n background-size: 100%;\n box-shadow: 0 4px 12px 0 rgba(37, 41, 46, 0.25);\n}\n\n.walletconnect-modal__base__row__right__caret {\n height: 18px;\n opacity: 0.3;\n transition: 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);\n width: 8px;\n will-change: opacity;\n}\n\n.walletconnect-modal__base__row:hover .caret,\n.walletconnect-modal__base__row:active .caret {\n opacity: 0.6;\n}\n\n.walletconnect-modal__mobile__toggle {\n width: 80%;\n display: flex;\n margin: 0 auto;\n position: relative;\n overflow: hidden;\n border-radius: 8px;\n margin-bottom: 18px;\n background: #d4d5d9;\n}\n\n.walletconnect-modal__single_wallet {\n display: flex;\n justify-content: center;\n margin-top: 7px;\n margin-bottom: 18px;\n}\n\n.walletconnect-modal__single_wallet a {\n cursor: pointer;\n color: rgb(64, 153, 255);\n font-size: 21px;\n font-weight: 800;\n text-decoration: none !important;\n margin: 0 auto;\n}\n\n.walletconnect-modal__mobile__toggle_selector {\n width: calc(50% - 8px);\n background: white;\n position: absolute;\n border-radius: 5px;\n height: calc(100% - 8px);\n top: 4px;\n transition: all 0.2s ease-in-out;\n transform: translate3d(4px, 0, 0);\n}\n\n.walletconnect-modal__mobile__toggle.right__selected .walletconnect-modal__mobile__toggle_selector {\n transform: translate3d(calc(100% + 12px), 0, 0);\n}\n\n.walletconnect-modal__mobile__toggle a {\n font-size: 12px;\n width: 50%;\n text-align: center;\n padding: 8px;\n margin: 0;\n font-weight: 600;\n z-index: 1;\n}\n\n.walletconnect-modal__footer {\n display: flex;\n justify-content: center;\n margin-top: 20px;\n}\n\n@media only screen and (max-width: 768px) {\n .walletconnect-modal__footer {\n margin-top: 5vw;\n }\n}\n\n.walletconnect-modal__footer a {\n cursor: pointer;\n color: #898d97;\n font-size: 15px;\n margin: 0 auto;\n}\n\n@media only screen and (max-width: 320px) {\n .walletconnect-modal__footer a {\n font-size: 14px;\n }\n}\n\n.walletconnect-connect__buttons__wrapper {\n max-height: 44vh;\n}\n\n.walletconnect-connect__buttons__wrapper__android {\n margin: 50% 0;\n}\n\n.walletconnect-connect__buttons__wrapper__wrap {\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n margin: 10px 0;\n}\n\n@media only screen and (min-width: 768px) {\n .walletconnect-connect__buttons__wrapper__wrap {\n margin-top: 40px;\n }\n}\n\n.walletconnect-connect__button {\n background-color: rgb(64, 153, 255);\n padding: 12px;\n border-radius: 8px;\n text-decoration: none;\n color: rgb(255, 255, 255);\n font-weight: 500;\n}\n\n.walletconnect-connect__button__icon_anchor {\n cursor: pointer;\n display: flex;\n justify-content: flex-start;\n align-items: center;\n margin: 8px;\n width: 42px;\n justify-self: center;\n flex-direction: column;\n text-decoration: none !important;\n}\n\n@media only screen and (max-width: 320px) {\n .walletconnect-connect__button__icon_anchor {\n margin: 4px;\n }\n}\n\n.walletconnect-connect__button__icon {\n border-radius: 10px;\n height: 42px;\n margin: 0;\n width: 42px;\n background-size: cover !important;\n box-shadow: 0 4px 12px 0 rgba(37, 41, 46, 0.25);\n}\n\n.walletconnect-connect__button__text {\n color: #424952;\n font-size: 2.7vw;\n text-decoration: none !important;\n padding: 0;\n margin-top: 1.8vw;\n font-weight: 600;\n}\n\n@media only screen and (min-width: 768px) {\n .walletconnect-connect__button__text {\n font-size: 16px;\n margin-top: 12px;\n }\n}\n\n.walletconnect-search__input {\n border: none;\n background: #d4d5d9;\n border-style: none;\n padding: 8px 16px;\n outline: none;\n font-style: normal;\n font-stretch: normal;\n font-size: 16px;\n font-style: normal;\n font-stretch: normal;\n line-height: normal;\n letter-spacing: normal;\n text-align: left;\n border-radius: 8px;\n width: calc(100% - 16px);\n margin: 0;\n margin-bottom: 8px;\n}\n',e.head.appendChild(a)}function renderWrapper(){var e=R.getDocumentOrThrow(),n=e.createElement("div");return n.setAttribute("id",ee),e.body.appendChild(n),n}function triggerCloseAnimation(){var e=R.getDocumentOrThrow(),n=e.getElementById(en);n&&(n.className=n.className.replace("fadeIn","fadeOut"),setTimeout(function(){var n=e.getElementById(ee);n&&e.body.removeChild(n)},300))}function getWrappedCallback(e){return function(){triggerCloseAnimation(),e&&e()}}function getText(){return eo[R.getNavigatorOrThrow().language.split("-")[0]||"en"]||eo.en}function open$1(e,n,a){injectStyleSheet();var c=renderWrapper();Y.render(Y.createElement(Modal,{text:getText(),uri:e,onClose:getWrappedCallback(n),qrcodeModalOptions:a}),c)}function close$1(){triggerCloseAnimation()}var isNode=function(){return void 0!==c&&void 0!==c.versions&&void 0!==c.versions.node};function open$2(e,n,a){console.log(e),isNode()?open(e):open$1(e,n,a)}function close$2(){isNode()||close$1()}e.exports={open:open$2,close:close$2}},7212:function(e,n,a){"use strict";a.r(n),a.d(n,{default:function(){return ef}});var c={};a.r(c),a.d(c,{decrypt:function(){return decrypt},encrypt:function(){return encrypt},generateKey:function(){return generateKey},verifyHmac:function(){return verifyHmac}});var R=a(68495),J=a.n(R),Z=a(87878),Y=a(40174),ee=a(58142),et=a(41911);let NetworkMonitor=class NetworkMonitor{constructor(){this._eventEmitters=[],"undefined"!=typeof window&&void 0!==window.addEventListener&&(window.addEventListener("online",()=>this.trigger("online")),window.addEventListener("offline",()=>this.trigger("offline")))}on(e,n){this._eventEmitters.push({event:e,callback:n})}trigger(e){let n=[];e&&(n=this._eventEmitters.filter(n=>n.event===e)),n.forEach(e=>{e.callback()})}};let en=void 0!==a.g.WebSocket?a.g.WebSocket:a(74517);let SocketTransport=class SocketTransport{constructor(e){if(this.opts=e,this._queue=[],this._events=[],this._subscriptions=[],this._protocol=e.protocol,this._version=e.version,this._url="",this._netMonitor=null,this._socket=null,this._nextSocket=null,this._subscriptions=e.subscriptions||[],this._netMonitor=e.netMonitor||new NetworkMonitor,!e.url||"string"!=typeof e.url)throw Error("Missing or invalid WebSocket url");this._url=e.url,this._netMonitor.on("online",()=>this._socketCreate())}set readyState(e){}get readyState(){return this._socket?this._socket.readyState:-1}set connecting(e){}get connecting(){return 0===this.readyState}set connected(e){}get connected(){return 1===this.readyState}set closing(e){}get closing(){return 2===this.readyState}set closed(e){}get closed(){return 3===this.readyState}open(){this._socketCreate()}close(){this._socketClose()}send(e,n,a){if(!n||"string"!=typeof n)throw Error("Missing or invalid topic field");this._socketSend({topic:n,type:"pub",payload:e,silent:!!a})}subscribe(e){this._socketSend({topic:e,type:"sub",payload:"",silent:!0})}on(e,n){this._events.push({event:e,callback:n})}_socketCreate(){if(this._nextSocket)return;let e=getWebSocketUrl(this._url,this._protocol,this._version);if(this._nextSocket=new en(e),!this._nextSocket)throw Error("Failed to create socket");this._nextSocket.onmessage=e=>this._socketReceive(e),this._nextSocket.onopen=()=>this._socketOpen(),this._nextSocket.onerror=e=>this._socketError(e),this._nextSocket.onclose=()=>{setTimeout(()=>{this._nextSocket=null,this._socketCreate()},1e3)}}_socketOpen(){this._socketClose(),this._socket=this._nextSocket,this._nextSocket=null,this._queueSubscriptions(),this._pushQueue()}_socketClose(){this._socket&&(this._socket.onclose=()=>{},this._socket.close())}_socketSend(e){let n=JSON.stringify(e);this._socket&&1===this._socket.readyState?this._socket.send(n):(this._setToQueue(e),this._socketCreate())}async _socketReceive(e){let n;try{n=JSON.parse(e.data)}catch(e){return}if(this._socketSend({topic:n.topic,type:"ack",payload:"",silent:!0}),this._socket&&1===this._socket.readyState){let e=this._events.filter(e=>"message"===e.event);e&&e.length&&e.forEach(e=>e.callback(n))}}_socketError(e){let n=this._events.filter(e=>"error"===e.event);n&&n.length&&n.forEach(n=>n.callback(e))}_queueSubscriptions(){let e=this._subscriptions;e.forEach(e=>this._queue.push({topic:e,type:"sub",payload:"",silent:!0})),this._subscriptions=this.opts.subscriptions||[]}_setToQueue(e){this._queue.push(e)}_pushQueue(){let e=this._queue;e.forEach(e=>this._socketSend(e)),this._queue=[]}};function getWebSocketUrl(e,n,a){var c,R;let J=e.startsWith("https")?e.replace("https","wss"):e.startsWith("http")?e.replace("http","ws"):e,Z=J.split("?"),Y=(0,et.isBrowser)()?{protocol:n,version:a,env:"browser",host:(null===(c=(0,et.getLocation)())||void 0===c?void 0:c.host)||""}:{protocol:n,version:a,env:(null===(R=(0,et.detectEnv)())||void 0===R?void 0:R.name)||""},ee=(0,et.appendToQueryString)((0,et.getQueryString)(Z[1]||""),Y);return Z[0]+"?"+ee}let EventManager=class EventManager{constructor(){this._eventEmitters=[]}subscribe(e){this._eventEmitters.push(e)}unsubscribe(e){this._eventEmitters=this._eventEmitters.filter(n=>n.event!==e)}trigger(e){let n,a=[];(n=(0,et.isJsonRpcRequest)(e)?e.method:(0,et.isJsonRpcResponseSuccess)(e)||(0,et.isJsonRpcResponseError)(e)?`response:${e.id}`:(0,et.isInternalEvent)(e)?e.event:"")&&(a=this._eventEmitters.filter(e=>e.event===n)),a&&a.length||(0,et.isReservedEvent)(n)||(0,et.isInternalEvent)(n)||(a=this._eventEmitters.filter(e=>"call_request"===e.event)),a.forEach(n=>{if((0,et.isJsonRpcResponseError)(e)){let a=Error(e.error.message);n.callback(a,null)}else n.callback(null,e)})}};let SessionStorage=class SessionStorage{constructor(e="walletconnect"){this.storageId=e}getSession(){let e=null,n=(0,et.getLocal)(this.storageId);return n&&(0,et.isWalletConnectSession)(n)&&(e=n),e}setSession(e){return(0,et.setLocal)(this.storageId,e),e}removeSession(){(0,et.removeLocal)(this.storageId)}};let er="abcdefghijklmnopqrstuvwxyz0123456789".split("").map(e=>`https://${e}.bridge.walletconnect.org`);function extractHostname(e){let n=e.indexOf("//")>-1?e.split("/")[2]:e.split("/")[0];return(n=n.split(":")[0]).split("?")[0]}function extractRootDomain(e){return extractHostname(e).split(".").slice(-2).join(".")}function randomBridgeIndex(){return Math.floor(Math.random()*er.length)}function selectRandomBridgeUrl(){return er[randomBridgeIndex()]}function shouldSelectRandomly(e){return"walletconnect.org"===extractRootDomain(e)}function getBridgeUrl(e){return shouldSelectRandomly(e)?selectRandomBridgeUrl():e}let Connector=class Connector{constructor(e){if(this.protocol="wc",this.version=1,this._bridge="",this._key=null,this._clientId="",this._clientMeta=null,this._peerId="",this._peerMeta=null,this._handshakeId=0,this._handshakeTopic="",this._connected=!1,this._accounts=[],this._chainId=0,this._networkId=0,this._rpcUrl="",this._eventManager=new EventManager,this._clientMeta=(0,et.getClientMeta)()||e.connectorOpts.clientMeta||null,this._cryptoLib=e.cryptoLib,this._sessionStorage=e.sessionStorage||new SessionStorage(e.connectorOpts.storageId),this._qrcodeModal=e.connectorOpts.qrcodeModal,this._qrcodeModalOptions=e.connectorOpts.qrcodeModalOptions,this._signingMethods=[...ee.SIGNING_METHODS,...e.connectorOpts.signingMethods||[]],!e.connectorOpts.bridge&&!e.connectorOpts.uri&&!e.connectorOpts.session)throw Error(ee.ERROR_MISSING_REQUIRED);e.connectorOpts.bridge&&(this.bridge=getBridgeUrl(e.connectorOpts.bridge)),e.connectorOpts.uri&&(this.uri=e.connectorOpts.uri);let n=e.connectorOpts.session||this._getStorageSession();n&&(this.session=n),this.handshakeId&&this._subscribeToSessionResponse(this.handshakeId,"Session request rejected"),this._transport=e.transport||new SocketTransport({protocol:this.protocol,version:this.version,url:this.bridge,subscriptions:[this.clientId]}),this._subscribeToInternalEvents(),this._initTransport(),e.connectorOpts.uri&&this._subscribeToSessionRequest(),e.pushServerOpts&&this._registerPushServer(e.pushServerOpts)}set bridge(e){e&&(this._bridge=e)}get bridge(){return this._bridge}set key(e){if(!e)return;let n=(0,et.convertHexToArrayBuffer)(e);this._key=n}get key(){if(this._key){let e=(0,et.convertArrayBufferToHex)(this._key,!0);return e}return""}set clientId(e){e&&(this._clientId=e)}get clientId(){let e=this._clientId;return e||(e=this._clientId=(0,et.uuid)()),this._clientId}set peerId(e){e&&(this._peerId=e)}get peerId(){return this._peerId}set clientMeta(e){}get clientMeta(){let e=this._clientMeta;return e||(e=this._clientMeta=(0,et.getClientMeta)()),e}set peerMeta(e){this._peerMeta=e}get peerMeta(){let e=this._peerMeta;return e}set handshakeTopic(e){e&&(this._handshakeTopic=e)}get handshakeTopic(){return this._handshakeTopic}set handshakeId(e){e&&(this._handshakeId=e)}get handshakeId(){return this._handshakeId}get uri(){let e=this._formatUri();return e}set uri(e){if(!e)return;let{handshakeTopic:n,bridge:a,key:c}=this._parseUri(e);this.handshakeTopic=n,this.bridge=a,this.key=c}set chainId(e){this._chainId=e}get chainId(){let e=this._chainId;return e}set networkId(e){this._networkId=e}get networkId(){let e=this._networkId;return e}set accounts(e){this._accounts=e}get accounts(){let e=this._accounts;return e}set rpcUrl(e){this._rpcUrl=e}get rpcUrl(){let e=this._rpcUrl;return e}set connected(e){}get connected(){return this._connected}set pending(e){}get pending(){return!!this._handshakeTopic}get session(){return{connected:this.connected,accounts:this.accounts,chainId:this.chainId,bridge:this.bridge,key:this.key,clientId:this.clientId,clientMeta:this.clientMeta,peerId:this.peerId,peerMeta:this.peerMeta,handshakeId:this.handshakeId,handshakeTopic:this.handshakeTopic}}set session(e){e&&(this._connected=e.connected,this.accounts=e.accounts,this.chainId=e.chainId,this.bridge=e.bridge,this.key=e.key,this.clientId=e.clientId,this.clientMeta=e.clientMeta,this.peerId=e.peerId,this.peerMeta=e.peerMeta,this.handshakeId=e.handshakeId,this.handshakeTopic=e.handshakeTopic)}on(e,n){this._eventManager.subscribe({event:e,callback:n})}off(e){this._eventManager.unsubscribe(e)}async createInstantRequest(e){this._key=await this._generateKey();let n=this._formatRequest({method:"wc_instantRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,request:this._formatRequest(e)}]});this.handshakeId=n.id,this.handshakeTopic=(0,et.uuid)(),this._eventManager.trigger({event:"display_uri",params:[this.uri]}),this.on("modal_closed",()=>{throw Error(ee.ERROR_QRCODE_MODAL_USER_CLOSED)});let endInstantRequest=()=>{this.killSession()};try{let e=await this._sendCallRequest(n);return e&&endInstantRequest(),e}catch(e){throw endInstantRequest(),e}}async connect(e){if(!this._qrcodeModal)throw Error(ee.ERROR_QRCODE_MODAL_NOT_PROVIDED);return this.connected?{chainId:this.chainId,accounts:this.accounts}:(await this.createSession(e),new Promise(async(e,n)=>{this.on("modal_closed",()=>n(Error(ee.ERROR_QRCODE_MODAL_USER_CLOSED))),this.on("connect",(a,c)=>{if(a)return n(a);e(c.params[0])})}))}async createSession(e){if(this._connected)throw Error(ee.ERROR_SESSION_CONNECTED);if(this.pending)return;this._key=await this._generateKey();let n=this._formatRequest({method:"wc_sessionRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,chainId:e&&e.chainId?e.chainId:null}]});this.handshakeId=n.id,this.handshakeTopic=(0,et.uuid)(),this._sendSessionRequest(n,"Session update rejected",{topic:this.handshakeTopic}),this._eventManager.trigger({event:"display_uri",params:[this.uri]})}approveSession(e){if(this._connected)throw Error(ee.ERROR_SESSION_CONNECTED);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";let n={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl,peerId:this.clientId,peerMeta:this.clientMeta},a={id:this.handshakeId,jsonrpc:"2.0",result:n};this._sendResponse(a),this._connected=!0,this._setStorageSession(),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})}rejectSession(e){if(this._connected)throw Error(ee.ERROR_SESSION_CONNECTED);let n=e&&e.message?e.message:ee.ERROR_SESSION_REJECTED,a=this._formatResponse({id:this.handshakeId,error:{message:n}});this._sendResponse(a),this._connected=!1,this._eventManager.trigger({event:"disconnect",params:[{message:n}]}),this._removeStorageSession()}updateSession(e){if(!this._connected)throw Error(ee.ERROR_SESSION_DISCONNECTED);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";let n={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl},a=this._formatRequest({method:"wc_sessionUpdate",params:[n]});this._sendSessionRequest(a,"Session update rejected"),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]}),this._manageStorageSession()}async killSession(e){let n=e?e.message:"Session Disconnected",a=this._formatRequest({method:"wc_sessionUpdate",params:[{approved:!1,chainId:null,networkId:null,accounts:null}]});await this._sendRequest(a),this._handleSessionDisconnect(n)}async sendTransaction(e){if(!this._connected)throw Error(ee.ERROR_SESSION_DISCONNECTED);let n=this._formatRequest({method:"eth_sendTransaction",params:[e]}),a=await this._sendCallRequest(n);return a}async signTransaction(e){if(!this._connected)throw Error(ee.ERROR_SESSION_DISCONNECTED);let n=this._formatRequest({method:"eth_signTransaction",params:[e]}),a=await this._sendCallRequest(n);return a}async signMessage(e){if(!this._connected)throw Error(ee.ERROR_SESSION_DISCONNECTED);let n=this._formatRequest({method:"eth_sign",params:e}),a=await this._sendCallRequest(n);return a}async signPersonalMessage(e){if(!this._connected)throw Error(ee.ERROR_SESSION_DISCONNECTED);let n=this._formatRequest({method:"personal_sign",params:e}),a=await this._sendCallRequest(n);return a}async signTypedData(e){if(!this._connected)throw Error(ee.ERROR_SESSION_DISCONNECTED);let n=this._formatRequest({method:"eth_signTypedData",params:e}),a=await this._sendCallRequest(n);return a}async updateChain(e){if(!this._connected)throw Error("Session currently disconnected");let n=this._formatRequest({method:"wallet_updateChain",params:[e]}),a=await this._sendCallRequest(n);return a}unsafeSend(e,n){return this._sendRequest(e,n),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:n}]}),new Promise((n,a)=>{this._subscribeToResponse(e.id,(e,c)=>{if(e){a(e);return}if(!c)throw Error(ee.ERROR_MISSING_JSON_RPC);n(c)})})}async sendCustomRequest(e,n){if(!this._connected)throw Error(ee.ERROR_SESSION_DISCONNECTED);switch(e.method){case"eth_accounts":return this.accounts;case"eth_chainId":return(0,et.convertNumberToHex)(this.chainId);case"eth_sendTransaction":case"eth_signTransaction":case"personal_sign":e.params}let a=this._formatRequest(e),c=await this._sendCallRequest(a,n);return c}approveRequest(e){if((0,et.isJsonRpcResponseSuccess)(e)){let n=this._formatResponse(e);this._sendResponse(n)}else throw Error(ee.ERROR_MISSING_RESULT)}rejectRequest(e){if((0,et.isJsonRpcResponseError)(e)){let n=this._formatResponse(e);this._sendResponse(n)}else throw Error(ee.ERROR_MISSING_ERROR)}transportClose(){this._transport.close()}async _sendRequest(e,n){let a=this._formatRequest(e),c=await this._encrypt(a),R=void 0!==(null==n?void 0:n.topic)?n.topic:this.peerId,J=JSON.stringify(c),Z=void 0!==(null==n?void 0:n.forcePushNotification)?!n.forcePushNotification:(0,et.isSilentPayload)(a);this._transport.send(J,R,Z)}async _sendResponse(e){let n=await this._encrypt(e),a=this.peerId,c=JSON.stringify(n);this._transport.send(c,a,!0)}async _sendSessionRequest(e,n,a){this._sendRequest(e,a),this._subscribeToSessionResponse(e.id,n)}_sendCallRequest(e,n){return this._sendRequest(e,n),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:n}]}),this._subscribeToCallResponse(e.id)}_formatRequest(e){if(void 0===e.method)throw Error(ee.ERROR_MISSING_METHOD);let n={id:void 0===e.id?(0,et.payloadId)():e.id,jsonrpc:"2.0",method:e.method,params:void 0===e.params?[]:e.params};return n}_formatResponse(e){if(void 0===e.id)throw Error(ee.ERROR_MISSING_ID);let n={id:e.id,jsonrpc:"2.0"};if((0,et.isJsonRpcResponseError)(e)){let a=(0,et.formatRpcError)(e.error),c=Object.assign(Object.assign(Object.assign({},n),e),{error:a});return c}if((0,et.isJsonRpcResponseSuccess)(e)){let a=Object.assign(Object.assign({},n),e);return a}throw Error(ee.ERROR_INVALID_RESPONSE)}_handleSessionDisconnect(e){this._connected||(this._qrcodeModal&&this._qrcodeModal.close(),(0,et.removeLocal)(ee.MOBILE_LINK_CHOICE_KEY)),this._connected&&(this._connected=!1),this._handshakeId&&(this._handshakeId=0),this._handshakeTopic&&(this._handshakeTopic=""),this._peerId&&(this._peerId=""),this._eventManager.trigger({event:"disconnect",params:[{message:e||"Session Disconnected"}]}),this._removeStorageSession(),this.transportClose()}_handleSessionResponse(e,n){n&&n.approved?(this._connected?(n.chainId&&(this.chainId=n.chainId),n.accounts&&(this.accounts=n.accounts),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]})):(this._connected=!0,n.chainId&&(this.chainId=n.chainId),n.accounts&&(this.accounts=n.accounts),n.peerId&&!this.peerId&&(this.peerId=n.peerId),n.peerMeta&&!this.peerMeta&&(this.peerMeta=n.peerMeta),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})),this._manageStorageSession()):this._handleSessionDisconnect(e)}async _handleIncomingMessages(e){let n;let a=[this.clientId,this.handshakeTopic];if(!a.includes(e.topic))return;try{n=JSON.parse(e.payload)}catch(e){return}let c=await this._decrypt(n);c&&this._eventManager.trigger(c)}_subscribeToSessionRequest(){this._transport.subscribe(this.handshakeTopic)}_subscribeToResponse(e,n){this.on(`response:${e}`,n)}_subscribeToSessionResponse(e,n){this._subscribeToResponse(e,(e,a)=>{if(e){this._handleSessionResponse(e.message);return}(0,et.isJsonRpcResponseSuccess)(a)?this._handleSessionResponse(n,a.result):a.error&&a.error.message?this._handleSessionResponse(a.error.message):this._handleSessionResponse(n)})}_subscribeToCallResponse(e){return new Promise((n,a)=>{this._subscribeToResponse(e,(e,c)=>{if(e){a(e);return}(0,et.isJsonRpcResponseSuccess)(c)?n(c.result):c.error&&c.error.message?a(c.error):a(Error(ee.ERROR_INVALID_RESPONSE))})})}_subscribeToInternalEvents(){this.on("display_uri",()=>{this._qrcodeModal&&this._qrcodeModal.open(this.uri,()=>{this._eventManager.trigger({event:"modal_closed",params:[]})},this._qrcodeModalOptions)}),this.on("connect",()=>{this._qrcodeModal&&this._qrcodeModal.close()}),this.on("call_request_sent",(e,n)=>{let{request:a}=n.params[0];if((0,et.isMobile)()&&this._signingMethods.includes(a.method)){let e=(0,et.getLocal)(ee.MOBILE_LINK_CHOICE_KEY);e&&(window.location.href=e.href)}}),this.on("wc_sessionRequest",(e,n)=>{e&&this._eventManager.trigger({event:"error",params:[{code:"SESSION_REQUEST_ERROR",message:e.toString()}]}),this.handshakeId=n.id,this.peerId=n.params[0].peerId,this.peerMeta=n.params[0].peerMeta;let a=Object.assign(Object.assign({},n),{method:"session_request"});this._eventManager.trigger(a)}),this.on("wc_sessionUpdate",(e,n)=>{e&&this._handleSessionResponse(e.message),this._handleSessionResponse("Session disconnected",n.params[0])})}_initTransport(){this._transport.on("message",e=>this._handleIncomingMessages(e)),this._transport.on("open",()=>this._eventManager.trigger({event:"transport_open",params:[]})),this._transport.on("close",()=>this._eventManager.trigger({event:"transport_close",params:[]})),this._transport.on("error",()=>this._eventManager.trigger({event:"transport_error",params:["Websocket connection failed"]})),this._transport.open()}_formatUri(){let e=this.protocol,n=this.handshakeTopic,a=this.version,c=encodeURIComponent(this.bridge),R=this.key,J=`${e}:${n}@${a}?bridge=${c}&key=${R}`;return J}_parseUri(e){let n=(0,et.parseWalletConnectUri)(e);if(n.protocol===this.protocol){if(!n.handshakeTopic)throw Error("Invalid or missing handshakeTopic parameter value");let e=n.handshakeTopic;if(!n.bridge)throw Error("Invalid or missing bridge url parameter value");let a=decodeURIComponent(n.bridge);if(!n.key)throw Error("Invalid or missing key parameter value");let c=n.key;return{handshakeTopic:e,bridge:a,key:c}}throw Error(ee.ERROR_INVALID_URI)}async _generateKey(){if(this._cryptoLib){let e=await this._cryptoLib.generateKey();return e}return null}async _encrypt(e){let n=this._key;if(this._cryptoLib&&n){let a=await this._cryptoLib.encrypt(e,n);return a}return null}async _decrypt(e){let n=this._key;if(this._cryptoLib&&n){let a=await this._cryptoLib.decrypt(e,n);return a}return null}_getStorageSession(){let e=null;return this._sessionStorage&&(e=this._sessionStorage.getSession()),e}_setStorageSession(){this._sessionStorage&&this._sessionStorage.setSession(this.session)}_removeStorageSession(){this._sessionStorage&&this._sessionStorage.removeSession()}_manageStorageSession(){this._connected?this._setStorageSession():this._removeStorageSession()}_registerPushServer(e){if(!e.url||"string"!=typeof e.url)throw Error("Invalid or missing pushServerOpts.url parameter value");if(!e.type||"string"!=typeof e.type)throw Error("Invalid or missing pushServerOpts.type parameter value");if(!e.token||"string"!=typeof e.token)throw Error("Invalid or missing pushServerOpts.token parameter value");let n={bridge:this.bridge,topic:this.clientId,type:e.type,token:e.token,peerName:"",language:e.language||""};this.on("connect",async(a,c)=>{if(a)throw a;if(e.peerMeta){let e=c.params[0].peerMeta.name;n.peerName=e}try{let a=await fetch(`${e.url}/new`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)}),c=await a.json();if(!c.success)throw Error("Failed to register in Push Server")}catch(e){throw Error("Failed to register in Push Server")}})}};var eo=Connector,ei=a(30837);function randomBytes(e){let n=ei.getBrowerCrypto();return n.getRandomValues(new Uint8Array(e))}let es="AES-CBC",ea="HMAC";function getAlgo(e){return e===es?{length:256,name:es}:{hash:{name:"SHA-256"},name:ea}}function getOps(e){return e===es?["encrypt","decrypt"]:["sign","verify"]}async function browserImportKey(e,n=es){return ei.getSubtleCrypto().importKey("raw",e,getAlgo(n),!0,getOps(n))}async function browserAesEncrypt(e,n,a){let c=ei.getSubtleCrypto(),R=await browserImportKey(n,es),J=await c.encrypt({iv:e,name:es},R,a);return new Uint8Array(J)}async function browserAesDecrypt(e,n,a){let c=ei.getSubtleCrypto(),R=await browserImportKey(n,es),J=await c.decrypt({iv:e,name:es},R,a);return new Uint8Array(J)}async function browser_browserHmacSha256Sign(e,n){let a=ei.getSubtleCrypto(),c=await browserImportKey(e,ea),R=await a.sign({length:256,name:ea},c,n);return new Uint8Array(R)}function aesCbcEncrypt(e,n,a){return browserAesEncrypt(e,n,a)}function aesCbcDecrypt(e,n,a){return browserAesDecrypt(e,n,a)}async function hmacSha256Sign(e,n){let a=await browser_browserHmacSha256Sign(e,n);return a}var ec=a(97227);async function generateKey(e){let n=randomBytes((e||256)/8),a=(0,et.convertBufferToArrayBuffer)(ec.QM(n));return a}async function verifyHmac(e,n){let a=ec.eu(e.data),c=ec.eu(e.iv),R=ec.eu(e.hmac),J=ec.ek(R,!1),Z=ec.w3(a,c),Y=await hmacSha256Sign(n,Z),ee=ec.ek(Y,!1);return ec.KT(J)===ec.KT(ee)}async function encrypt(e,n,a){let c=ec._W((0,et.convertArrayBufferToBuffer)(n)),R=a||await generateKey(128),J=ec._W((0,et.convertArrayBufferToBuffer)(R)),Z=ec.ek(J,!1),Y=JSON.stringify(e),ee=ec.ZV(Y),en=await aesCbcEncrypt(J,c,ee),er=ec.ek(en,!1),eo=ec.w3(en,J),ei=await hmacSha256Sign(c,eo),es=ec.ek(ei,!1);return{data:er,hmac:es,iv:Z}}async function decrypt(e,n){let a;let c=ec._W((0,et.convertArrayBufferToBuffer)(n));if(!c)throw Error("Missing key: required for decryption");let R=await verifyHmac(e,c);if(!R)return null;let J=ec.eu(e.data),Z=ec.eu(e.iv),Y=await aesCbcDecrypt(Z,c,J),ee=ec.oO(Y);try{a=JSON.parse(ee)}catch(e){return null}return a}let WalletConnect=class WalletConnect extends eo{constructor(e,n){super({cryptoLib:c,connectorOpts:e,pushServerOpts:n})}};var eu=a(89226),el=a.n(eu),e_=a(88688),ed=a(78102);let SignerConnection=class SignerConnection extends e_.XR{constructor(e){super(),this.events=new(J()),this.accounts=[],this.chainId=1,this.pending=!1,this.bridge="https://bridge.walletconnect.org",this.qrcode=!0,this.qrcodeModalOptions=void 0,this.opts=e,this.chainId=(null==e?void 0:e.chainId)||this.chainId,this.wc=this.register(e)}get connected(){return void 0!==this.wc&&this.wc.connected}get connecting(){return this.pending}get connector(){return this.wc=this.register(this.opts),this.wc}on(e,n){this.events.on(e,n)}once(e,n){this.events.once(e,n)}off(e,n){this.events.off(e,n)}removeListener(e,n){this.events.removeListener(e,n)}async open(e){if(this.connected){this.onOpen();return}return new Promise((n,a)=>{this.on("error",e=>{a(e)}),this.on("open",()=>{n()}),this.create(e)})}async close(){void 0!==this.wc&&(this.wc.connected&&this.wc.killSession(),this.onClose())}async send(e){this.wc=this.register(this.opts),this.connected||await this.open(),this.sendPayload(e).then(e=>this.events.emit("payload",e)).catch(n=>this.events.emit("payload",(0,ed.formatJsonRpcError)(e.id,n.message)))}register(e){if(this.wc)return this.wc;this.opts=e||this.opts,this.bridge=(null==e?void 0:e.connector)?e.connector.bridge:(null==e?void 0:e.bridge)||"https://bridge.walletconnect.org",this.qrcode=void 0===(null==e?void 0:e.qrcode)||!1!==e.qrcode,this.chainId=void 0!==(null==e?void 0:e.chainId)?e.chainId:this.chainId,this.qrcodeModalOptions=null==e?void 0:e.qrcodeModalOptions;let n={bridge:this.bridge,qrcodeModal:this.qrcode?el():void 0,qrcodeModalOptions:this.qrcodeModalOptions,storageId:null==e?void 0:e.storageId,signingMethods:null==e?void 0:e.signingMethods,clientMeta:null==e?void 0:e.clientMeta};if(this.wc=void 0!==(null==e?void 0:e.connector)?e.connector:new WalletConnect(n),void 0===this.wc)throw Error("Failed to register WalletConnect connector");return this.wc.accounts.length&&(this.accounts=this.wc.accounts),this.wc.chainId&&(this.chainId=this.wc.chainId),this.registerConnectorEvents(),this.wc}onOpen(e){this.pending=!1,e&&(this.wc=e),this.events.emit("open")}onClose(){this.pending=!1,this.wc&&(this.wc=void 0),this.events.emit("close")}onError(e,n="Failed or Rejected Request",a=-32e3){let c={id:e.id,jsonrpc:e.jsonrpc,error:{code:a,message:n}};return this.events.emit("payload",c),c}create(e){this.wc=this.register(this.opts),this.chainId=e||this.chainId,this.connected||this.pending||(this.pending=!0,this.registerConnectorEvents(),this.wc.createSession({chainId:this.chainId}).then(()=>this.events.emit("created")).catch(e=>this.events.emit("error",e)))}registerConnectorEvents(){this.wc=this.register(this.opts),this.wc.on("connect",e=>{var n,a;if(e){this.events.emit("error",e);return}this.accounts=(null===(n=this.wc)||void 0===n?void 0:n.accounts)||[],this.chainId=(null===(a=this.wc)||void 0===a?void 0:a.chainId)||this.chainId,this.onOpen()}),this.wc.on("disconnect",e=>{if(e){this.events.emit("error",e);return}this.onClose()}),this.wc.on("modal_closed",()=>{this.events.emit("error",Error("User closed modal"))}),this.wc.on("session_update",(e,n)=>{let{accounts:a,chainId:c}=n.params[0];(!this.accounts||a&&this.accounts!==a)&&(this.accounts=a,this.events.emit("accountsChanged",a)),(!this.chainId||c&&this.chainId!==c)&&(this.chainId=c,this.events.emit("chainChanged",c))})}async sendPayload(e){this.wc=this.register(this.opts);try{let n=await this.wc.unsafeSend(e);return this.sanitizeResponse(n)}catch(n){return this.onError(e,n.message)}}sanitizeResponse(e){return void 0!==e.error&&void 0===e.error.code?(0,ed.formatJsonRpcError)(e.id,e.error.message,e.error.data):e}};let WalletConnectProvider=class WalletConnectProvider{constructor(e){this.events=new(J()),this.rpc={infuraId:null==e?void 0:e.infuraId,custom:null==e?void 0:e.rpc},this.signer=new Z.r(new SignerConnection(e));let n=this.signer.connection.chainId||(null==e?void 0:e.chainId)||1;this.http=this.setHttpProvider(n),this.registerEventListeners()}get connected(){return this.signer.connection.connected}get connector(){return this.signer.connection.connector}get accounts(){return this.signer.connection.accounts}get chainId(){return this.signer.connection.chainId}get rpcUrl(){var e;return(null===(e=this.http)||void 0===e?void 0:e.connection).url||""}async request(e){switch(e.method){case"eth_requestAccounts":return await this.connect(),this.signer.connection.accounts;case"eth_accounts":return this.signer.connection.accounts;case"eth_chainId":return this.signer.connection.chainId}if(ee.SIGNING_METHODS.includes(e.method))return this.signer.request(e);if(void 0===this.http)throw Error(`Cannot request JSON-RPC method (${e.method}) without provided rpc url`);return this.http.request(e)}sendAsync(e,n){this.request(e).then(e=>n(null,e)).catch(e=>n(e,void 0))}async enable(){let e=await this.request({method:"eth_requestAccounts"});return e}async connect(){this.signer.connection.connected||await this.signer.connect()}async disconnect(){this.signer.connection.connected&&await this.signer.disconnect()}on(e,n){this.events.on(e,n)}once(e,n){this.events.once(e,n)}removeListener(e,n){this.events.removeListener(e,n)}off(e,n){this.events.off(e,n)}get isWalletConnect(){return!0}registerEventListeners(){this.signer.connection.on("accountsChanged",e=>{this.events.emit("accountsChanged",e)}),this.signer.connection.on("chainChanged",e=>{this.http=this.setHttpProvider(e),this.events.emit("chainChanged",e)}),this.signer.on("disconnect",()=>{this.events.emit("disconnect")})}setHttpProvider(e){let n=(0,et.getRpcUrl)(e,this.rpc);if(void 0===n)return;let a=new Z.r(new Y.k(n));return a}};var ef=WalletConnectProvider},76087:function(){},58142:function(e,n,a){"use strict";a.d(n,{ERROR_INVALID_RESPONSE:function(){return eo},ERROR_INVALID_URI:function(){return ei},ERROR_MISSING_ERROR:function(){return ee},ERROR_MISSING_ID:function(){return en},ERROR_MISSING_JSON_RPC:function(){return Z},ERROR_MISSING_METHOD:function(){return et},ERROR_MISSING_REQUIRED:function(){return er},ERROR_MISSING_RESULT:function(){return Y},ERROR_QRCODE_MODAL_NOT_PROVIDED:function(){return es},ERROR_QRCODE_MODAL_USER_CLOSED:function(){return ea},ERROR_SESSION_CONNECTED:function(){return c},ERROR_SESSION_DISCONNECTED:function(){return R},ERROR_SESSION_REJECTED:function(){return J},INFURA_NETWORKS:function(){return e_},MOBILE_LINK_CHOICE_KEY:function(){return el},RESERVED_EVENTS:function(){return ec},SIGNING_METHODS:function(){return eu}}),a(76087);let c="Session currently connected",R="Session currently disconnected",J="Session Rejected",Z="Missing JSON RPC response",Y='JSON-RPC success response must include "result" field',ee='JSON-RPC error response must include "error" field',et='JSON RPC request must have valid "method" value',en='JSON RPC request must have valid "id" value',er="Missing one of the required parameters: bridge / uri / session",eo="JSON RPC response format is invalid",ei="URI format is invalid",es="QRCode Modal not provided",ea="User close QRCode Modal",ec=["session_request","session_update","exchange_key","connect","disconnect","display_uri","modal_closed","transport_open","transport_close","transport_error"],eu=["eth_sendTransaction","eth_signTransaction","eth_sign","eth_signTypedData","eth_signTypedData_v1","eth_signTypedData_v2","eth_signTypedData_v3","eth_signTypedData_v4","personal_sign","wallet_addEthereumChain","wallet_switchEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"],el="WALLETCONNECT_DEEPLINK_CHOICE",e_={1:"mainnet",3:"ropsten",4:"rinkeby",5:"goerli",42:"kovan"}},41911:function(e,n,a){"use strict";a.r(n),a.d(n,{addHexPrefix:function(){return addHexPrefix},appendToQueryString:function(){return appendToQueryString},concatArrayBuffers:function(){return concatArrayBuffers},concatBuffers:function(){return concatBuffers},convertArrayBufferToBuffer:function(){return convertArrayBufferToBuffer},convertArrayBufferToHex:function(){return convertArrayBufferToHex},convertArrayBufferToNumber:function(){return convertArrayBufferToNumber},convertArrayBufferToUtf8:function(){return convertArrayBufferToUtf8},convertBufferToArrayBuffer:function(){return convertBufferToArrayBuffer},convertBufferToHex:function(){return convertBufferToHex},convertBufferToNumber:function(){return convertBufferToNumber},convertBufferToUtf8:function(){return convertBufferToUtf8},convertHexToArrayBuffer:function(){return convertHexToArrayBuffer},convertHexToBuffer:function(){return convertHexToBuffer},convertHexToNumber:function(){return convertHexToNumber},convertHexToUtf8:function(){return convertHexToUtf8},convertNumberToArrayBuffer:function(){return convertNumberToArrayBuffer},convertNumberToBuffer:function(){return convertNumberToBuffer},convertNumberToHex:function(){return convertNumberToHex},convertNumberToUtf8:function(){return convertNumberToUtf8},convertUtf8ToArrayBuffer:function(){return convertUtf8ToArrayBuffer},convertUtf8ToBuffer:function(){return convertUtf8ToBuffer},convertUtf8ToHex:function(){return convertUtf8ToHex},convertUtf8ToNumber:function(){return convertUtf8ToNumber},detectEnv:function(){return detectEnv},detectOS:function(){return detectOS},formatIOSMobile:function(){return formatIOSMobile},formatMobileRegistry:function(){return formatMobileRegistry},formatMobileRegistryEntry:function(){return formatMobileRegistryEntry},formatQueryString:function(){return formatQueryString},formatRpcError:function(){return formatRpcError},getClientMeta:function(){return getClientMeta},getCrypto:function(){return ea},getCryptoOrThrow:function(){return es},getDappRegistryUrl:function(){return getDappRegistryUrl},getDocument:function(){return et},getDocumentOrThrow:function(){return ee},getEncoding:function(){return getEncoding},getFromWindow:function(){return Z},getFromWindowOrThrow:function(){return Y},getInfuraRpcUrl:function(){return getInfuraRpcUrl},getLocal:function(){return getLocal},getLocalStorage:function(){return eu},getLocalStorageOrThrow:function(){return ec},getLocation:function(){return ei},getLocationOrThrow:function(){return eo},getMobileLinkRegistry:function(){return getMobileLinkRegistry},getMobileRegistryEntry:function(){return getMobileRegistryEntry},getNavigator:function(){return er},getNavigatorOrThrow:function(){return en},getQueryString:function(){return getQueryString},getRpcUrl:function(){return getRpcUrl},getType:function(){return getType},getWalletRegistryUrl:function(){return getWalletRegistryUrl},isAndroid:function(){return isAndroid},isArrayBuffer:function(){return isArrayBuffer},isBrowser:function(){return isBrowser},isBuffer:function(){return isBuffer},isEmptyArray:function(){return isEmptyArray},isEmptyString:function(){return isEmptyString},isHexString:function(){return isHexString},isIOS:function(){return isIOS},isInternalEvent:function(){return isInternalEvent},isJsonRpcRequest:function(){return isJsonRpcRequest},isJsonRpcResponseError:function(){return isJsonRpcResponseError},isJsonRpcResponseSuccess:function(){return isJsonRpcResponseSuccess},isJsonRpcSubscription:function(){return isJsonRpcSubscription},isMobile:function(){return isMobile},isNode:function(){return isNode},isReservedEvent:function(){return isReservedEvent},isSilentPayload:function(){return isSilentPayload},isTypedArray:function(){return isTypedArray},isWalletConnectSession:function(){return isWalletConnectSession},logDeprecationWarning:function(){return logDeprecationWarning},parseQueryString:function(){return parseQueryString},parseWalletConnectUri:function(){return parseWalletConnectUri},payloadId:function(){return em},promisify:function(){return promisify},removeHexLeadingZeros:function(){return removeHexLeadingZeros},removeHexPrefix:function(){return removeHexPrefix},removeLocal:function(){return removeLocal},safeJsonParse:function(){return e_},safeJsonStringify:function(){return ed},sanitizeHex:function(){return sanitizeHex},saveMobileLinkInfo:function(){return saveMobileLinkInfo},setLocal:function(){return setLocal},uuid:function(){return uuid}});var c=a(97227);function convertArrayBufferToBuffer(e){return c.QM(new Uint8Array(e))}function convertArrayBufferToUtf8(e){return c.oO(new Uint8Array(e))}function convertArrayBufferToHex(e,n){return c.ek(new Uint8Array(e),!n)}function convertArrayBufferToNumber(e){return c.VQ(new Uint8Array(e))}function concatArrayBuffers(...e){return c.eu(e.map(e=>c.ek(new Uint8Array(e))).join("")).buffer}function convertBufferToArrayBuffer(e){return c._W(e).buffer}function convertBufferToUtf8(e){return c.Pt(e)}function convertBufferToHex(e,n){return c.kh(e,!n)}function convertBufferToNumber(e){return c.DS(e)}function concatBuffers(...e){return c.Kb(...e)}function convertUtf8ToArrayBuffer(e){return c.ZV(e).buffer}function convertUtf8ToBuffer(e){return c.Zr(e)}function convertUtf8ToHex(e,n){return c.OG(e,!n)}function convertUtf8ToNumber(e){return c.pF(e)}function convertHexToBuffer(e){return c.ii(e)}function convertHexToArrayBuffer(e){return c.eu(e).buffer}function convertHexToUtf8(e){return c.H3(e)}function convertHexToNumber(e){return c.ly(e)}function convertNumberToBuffer(e){return c.y$(e)}function convertNumberToArrayBuffer(e){return c.Gj(e).buffer}function convertNumberToUtf8(e){return c.gy(e)}function convertNumberToHex(e,n){return c.eC(Number(e),!n)}var R=a(30015),J=a(1193);let Z=J.getFromWindow,Y=J.getFromWindowOrThrow,ee=J.getDocumentOrThrow,et=J.getDocument,en=J.getNavigatorOrThrow,er=J.getNavigator,eo=J.getLocationOrThrow,ei=J.getLocation,es=J.getCryptoOrThrow,ea=J.getCrypto,ec=J.getLocalStorageOrThrow,eu=J.getLocalStorage;function detectEnv(e){return(0,R.qY)(e)}function detectOS(){let e=detectEnv();return e&&e.os?e.os:void 0}function isAndroid(){let e=detectOS();return!!e&&e.toLowerCase().includes("android")}function isIOS(){let e=detectOS();return!!e&&(e.toLowerCase().includes("ios")||e.toLowerCase().includes("mac")&&navigator.maxTouchPoints>1)}function isMobile(){let e=detectOS();return!!e&&(isAndroid()||isIOS())}function isNode(){let e=detectEnv(),n=!!e&&!!e.name&&"node"===e.name.toLowerCase();return n}function isBrowser(){let e=!isNode()&&!!er();return e}var el=a(74087);let e_=el.D,ed=el.u;function setLocal(e,n){let a=ed(n),c=eu();c&&c.setItem(e,a)}function getLocal(e){let n=null,a=eu();return a&&(n=a.getItem(e)),n?e_(n):n}function removeLocal(e){let n=eu();n&&n.removeItem(e)}var ef=a(35775);function getClientMeta(){return ef.D()}var ep=a(78102),eh=a(58142);function sanitizeHex(e){return c.xb(e)}function addHexPrefix(e){return c.L_(e)}function removeHexPrefix(e){return c.KT(e)}function removeHexLeadingZeros(e){return c.wL(c.L_(e))}let em=ep.payloadId;function uuid(){let e=((e,n)=>{for(n=e="";e++<36;n+=51*e&52?(15^e?8^Math.random()*(20^e?16:4):4).toString(16):"-");return n})();return e}function logDeprecationWarning(){console.warn("DEPRECATION WARNING: This WalletConnect client library will be deprecated in favor of @walletconnect/client. Please check docs.walletconnect.org to learn more about this migration!")}function getInfuraRpcUrl(e,n){let a;let c=eh.INFURA_NETWORKS[e];return c&&(a=`https://${c}.infura.io/v3/${n}`),a}function getRpcUrl(e,n){let a;let c=getInfuraRpcUrl(e,n.infuraId);return n.custom&&n.custom[e]?a=n.custom[e]:c&&(a=c),a}function formatIOSMobile(e,n){let a=encodeURIComponent(e);return n.universalLink?`${n.universalLink}/wc?uri=${a}`:n.deepLink?`${n.deepLink}${n.deepLink.endsWith(":")?"//":"/"}wc?uri=${a}`:""}function saveMobileLinkInfo(e){let n=e.href.split("?")[0];setLocal(eh.MOBILE_LINK_CHOICE_KEY,Object.assign(Object.assign({},e),{href:n}))}function getMobileRegistryEntry(e,n){return e.filter(e=>e.name.toLowerCase().includes(n.toLowerCase()))[0]}function getMobileLinkRegistry(e,n){let a=e;return n&&(a=n.map(n=>getMobileRegistryEntry(e,n)).filter(Boolean)),a}function promisify(e,n){let promisifiedFunction=async(...a)=>new Promise((c,R)=>{e.apply(n,[...a,(e,n)=>{null==e&&R(e),c(n)}])});return promisifiedFunction}function formatRpcError(e){let n=e.message||"Failed or Rejected Request",a=-32e3;if(e&&!e.code)switch(n){case"Parse error":a=-32700;break;case"Invalid request":a=-32600;break;case"Method not found":a=-32601;break;case"Invalid params":a=-32602;break;case"Internal error":a=-32603;break;default:a=-32e3}let c={code:a,message:n};return e.data&&(c.data=e.data),c}let eg="https://registry.walletconnect.com";function getWalletRegistryUrl(){return eg+"/api/v2/wallets"}function getDappRegistryUrl(){return eg+"/api/v2/dapps"}function formatMobileRegistryEntry(e,n="mobile"){var a;return{name:e.name||"",shortName:e.metadata.shortName||"",color:e.metadata.colors.primary||"",logo:null!==(a=e.image_url.sm)&&void 0!==a?a:"",universalLink:e[n].universal||"",deepLink:e[n].native||""}}function formatMobileRegistry(e,n="mobile"){return Object.values(e).filter(e=>!!e[n].universal||!!e[n].native).map(e=>formatMobileRegistryEntry(e,n))}var ey=a(40619);function getQueryString(e){let n=-1!==e.indexOf("?")?e.indexOf("?"):void 0,a=void 0!==n?e.substr(n):"";return a}function appendToQueryString(e,n){let a=parseQueryString(e);return e=formatQueryString(a=Object.assign(Object.assign({},a),n))}function parseQueryString(e){return ey.parse(e)}function formatQueryString(e){return ey.stringify(e)}function isWalletConnectSession(e){return void 0!==e.bridge}function parseWalletConnectUri(e){let n=e.indexOf(":"),a=-1!==e.indexOf("?")?e.indexOf("?"):void 0,c=e.substring(0,n),R=e.substring(n+1,a);function parseRequiredParams(e){let n=e.split("@"),a={handshakeTopic:n[0],version:parseInt(n[1],10)};return a}let J=parseRequiredParams(R),Z=void 0!==a?e.substr(a):"";function parseQueryParams(e){let n=parseQueryString(e),a={key:n.key||"",bridge:n.bridge||""};return a}let Y=parseQueryParams(Z),ee=Object.assign(Object.assign({protocol:c},J),Y);return ee}function isEmptyString(e){return""===e||"string"==typeof e&&""===e.trim()}function isEmptyArray(e){return!(e&&e.length)}function isBuffer(e){return c.zH(e)}function isTypedArray(e){return c.fU(e)}function isArrayBuffer(e){return c.eP(e)}function getType(e){return c.oL(e)}function getEncoding(e){return c.bZ(e)}function isHexString(e,n){return c.A7(e,n)}function isJsonRpcSubscription(e){return"object"==typeof e.params}function isJsonRpcRequest(e){return void 0!==e.method}function isJsonRpcResponseSuccess(e){return void 0!==e.result}function isJsonRpcResponseError(e){return void 0!==e.error}function isInternalEvent(e){return void 0!==e.event}function isReservedEvent(e){return eh.RESERVED_EVENTS.includes(e)||e.startsWith("wc_")}function isSilentPayload(e){return!!e.method.startsWith("wc_")||!eh.SIGNING_METHODS.includes(e.method)}},37077:function(e,n,a){"use strict";var c=a(57966),R={"text/plain":"Text","text/html":"Url",default:"Text"};function format(e){var n=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,n)}function copy(e,n){var a,J,Z,Y,ee,et,en=!1;n||(n={}),a=n.debug||!1;try{if(Z=c(),Y=document.createRange(),ee=document.getSelection(),(et=document.createElement("span")).textContent=e,et.ariaHidden="true",et.style.all="unset",et.style.position="fixed",et.style.top=0,et.style.clip="rect(0, 0, 0, 0)",et.style.whiteSpace="pre",et.style.webkitUserSelect="text",et.style.MozUserSelect="text",et.style.msUserSelect="text",et.style.userSelect="text",et.addEventListener("copy",function(c){if(c.stopPropagation(),n.format){if(c.preventDefault(),void 0===c.clipboardData){a&&console.warn("unable to use e.clipboardData"),a&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var J=R[n.format]||R.default;window.clipboardData.setData(J,e)}else c.clipboardData.clearData(),c.clipboardData.setData(n.format,e)}n.onCopy&&(c.preventDefault(),n.onCopy(c.clipboardData))}),document.body.appendChild(et),Y.selectNodeContents(et),ee.addRange(Y),!document.execCommand("copy"))throw Error("copy command was unsuccessful");en=!0}catch(c){a&&console.error("unable to copy using execCommand: ",c),a&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(n.format||"text",e),n.onCopy&&n.onCopy(window.clipboardData),en=!0}catch(c){a&&console.error("unable to copy using clipboardData: ",c),a&&console.error("falling back to prompt"),J=format("message"in n?n.message:"Copy to clipboard: #{key}, Enter"),window.prompt(J,e)}}finally{ee&&("function"==typeof ee.removeRange?ee.removeRange(Y):ee.removeAllRanges()),et&&document.body.removeChild(et),Z()}return en}e.exports=copy},10610:function(e){e.exports=isTypedArray,isTypedArray.strict=isStrictTypedArray,isTypedArray.loose=isLooseTypedArray;var n=Object.prototype.toString,a={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function isTypedArray(e){return isStrictTypedArray(e)||isLooseTypedArray(e)}function isStrictTypedArray(e){return e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array}function isLooseTypedArray(e){return a[n.call(e)]}},57066:function(e,n,a){"use strict";a.r(n),a.d(n,{Children:function(){return Y},Component:function(){return c.Component},Fragment:function(){return c.Fragment},PureComponent:function(){return E},StrictMode:function(){return eh},Suspense:function(){return L},SuspenseList:function(){return M},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:function(){return ef},cloneElement:function(){return sn},createContext:function(){return c.createContext},createElement:function(){return c.createElement},createFactory:function(){return cn},createPortal:function(){return j},createRef:function(){return c.createRef},default:function(){return ey},findDOMNode:function(){return vn},flushSync:function(){return pn},forwardRef:function(){return N},hydrate:function(){return G},isElement:function(){return eg},isFragment:function(){return an},isValidElement:function(){return fn},lazy:function(){return D},memo:function(){return w},render:function(){return q},startTransition:function(){return yn},unmountComponentAtNode:function(){return hn},unstable_batchedUpdates:function(){return dn},useCallback:function(){return R.useCallback},useContext:function(){return R.useContext},useDebugValue:function(){return R.useDebugValue},useDeferredValue:function(){return _n},useEffect:function(){return R.useEffect},useErrorBoundary:function(){return R.useErrorBoundary},useId:function(){return R.useId},useImperativeHandle:function(){return R.useImperativeHandle},useInsertionEffect:function(){return em},useLayoutEffect:function(){return R.useLayoutEffect},useMemo:function(){return R.useMemo},useReducer:function(){return R.useReducer},useRef:function(){return R.useRef},useState:function(){return R.useState},useSyncExternalStore:function(){return Cn},useTransition:function(){return bn},version:function(){return ep}});var c=a(88342),R=a(75872);function g(e,n){for(var a in n)e[a]=n[a];return e}function C(e,n){for(var a in e)if("__source"!==a&&!(a in n))return!0;for(var c in n)if("__source"!==c&&e[c]!==n[c])return!0;return!1}function E(e){this.props=e}function w(e,n){function r(e){var a=this.props.ref,c=a==e.ref;return!c&&a&&(a.call?a(null):a.current=null),n?!n(this.props,e)||!c:C(this.props,e)}function u(n){return this.shouldComponentUpdate=r,(0,c.createElement)(e,n)}return u.displayName="Memo("+(e.displayName||e.name)+")",u.prototype.isReactComponent=!0,u.__f=!0,u}(E.prototype=new c.Component).isPureReactComponent=!0,E.prototype.shouldComponentUpdate=function(e,n){return C(this.props,e)||C(this.state,n)};var J=c.options.__b;c.options.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),J&&J(e)};var Z="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function N(e){function t(n){var a=g({},n);return delete a.ref,e(a,n.ref||null)}return t.$$typeof=Z,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var k=function(e,n){return null==e?null:(0,c.toChildArray)((0,c.toChildArray)(e).map(n))},Y={map:k,forEach:k,count:function(e){return e?(0,c.toChildArray)(e).length:0},only:function(e){var n=(0,c.toChildArray)(e);if(1!==n.length)throw"Children.only";return n[0]},toArray:c.toChildArray},ee=c.options.__e;c.options.__e=function(e,n,a,c){if(e.then){for(var R,J=n;J=J.__;)if((R=J.__c)&&R.__c)return null==n.__e&&(n.__e=a.__e,n.__k=a.__k),R.__c(e,n)}ee(e,n,a,c)};var et=c.options.unmount;function F(e,n,a){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(e){"function"==typeof e.__c&&e.__c()}),e.__c.__H=null),null!=(e=g({},e)).__c&&(e.__c.__P===a&&(e.__c.__P=n),e.__c=null),e.__k=e.__k&&e.__k.map(function(e){return F(e,n,a)})),e}function I(e,n,a){return e&&a&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(e){return I(e,n,a)}),e.__c&&e.__c.__P===n&&(e.__e&&a.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=a)),e}function L(){this.__u=0,this.t=null,this.__b=null}function U(e){var n=e.__.__c;return n&&n.__a&&n.__a(e)}function D(e){var n,a,R;function o(J){if(n||(n=e()).then(function(e){a=e.default||e},function(e){R=e}),R)throw R;if(!a)throw n;return(0,c.createElement)(a,J)}return o.displayName="Lazy",o.__f=!0,o}function M(){this.u=null,this.o=null}c.options.unmount=function(e){var n=e.__c;n&&n.__R&&n.__R(),n&&32&e.__u&&(e.type=null),et&&et(e)},(L.prototype=new c.Component).__c=function(e,n){var a=n.__c,c=this;null==c.t&&(c.t=[]),c.t.push(a);var R=U(c.__v),J=!1,i=function(){J||(J=!0,a.__R=null,R?R(l):l())};a.__R=i;var l=function(){if(!--c.__u){if(c.state.__a){var e,n=c.state.__a;c.__v.__k[0]=I(n,n.__c.__P,n.__c.__O)}for(c.setState({__a:c.__b=null});e=c.t.pop();)e.forceUpdate()}};c.__u++||32&n.__u||c.setState({__a:c.__b=c.__v.__k[0]}),e.then(i,i)},L.prototype.componentWillUnmount=function(){this.t=[]},L.prototype.render=function(e,n){if(this.__b){if(this.__v.__k){var a=document.createElement("div"),R=this.__v.__k[0].__c;this.__v.__k[0]=F(this.__b,a,R.__O=R.__P)}this.__b=null}var J=n.__a&&(0,c.createElement)(c.Fragment,null,e.fallback);return J&&(J.__u&=-33),[(0,c.createElement)(c.Fragment,null,n.__a?null:e.children),J]};var V=function(e,n,a){if(++a[1]===a[0]&&e.o.delete(n),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(a=e.u;a;){for(;a.length>3;)a.pop()();if(a[1]>>1,1),n.i.removeChild(e)}}),(0,c.render)((0,c.createElement)(W,{context:n.context},e.__v),n.l)}function j(e,n){var a=(0,c.createElement)(P,{__v:e,i:n});return a.containerInfo=n,a}(M.prototype=new c.Component).__a=function(e){var n=this,a=U(n.__v),c=n.o.get(e);return c[0]++,function(R){var o=function(){n.props.revealOrder?(c.push(R),V(n,e,c)):R()};a?a(o):o()}},M.prototype.render=function(e){this.u=null,this.o=new Map;var n=(0,c.toChildArray)(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&n.reverse();for(var a=n.length;a--;)this.o.set(n[a],this.u=[1,0,this.u]);return e.children},M.prototype.componentDidUpdate=M.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(n,a){V(e,a,n)})};var en="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,er=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,eo=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ei=/[A-Z0-9]/g,es="undefined"!=typeof document;function q(e,n,a){return null==n.__k&&(n.textContent=""),(0,c.render)(e,n),"function"==typeof a&&a(),e?e.__c:null}function G(e,n,a){return(0,c.hydrate)(e,n),"function"==typeof a&&a(),e?e.__c:null}c.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(c.Component.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(n){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:n})}})});var ea=c.options.event;function K(){}function Q(){return this.cancelBubble}function X(){return this.defaultPrevented}c.options.event=function(e){return ea&&(e=ea(e)),e.persist=K,e.isPropagationStopped=Q,e.isDefaultPrevented=X,e.nativeEvent=e};var ec,eu={enumerable:!1,configurable:!0,get:function(){return this.class}},el=c.options.vnode;c.options.vnode=function(e){"string"==typeof e.type&&function(e){var n=e.props,a=e.type,R={};for(var J in n){var Z=n[J];if(!("value"===J&&"defaultValue"in n&&null==Z||es&&"children"===J&&"noscript"===a||"class"===J||"className"===J)){var Y,ee=J.toLowerCase();"defaultValue"===J&&"value"in n&&null==n.value?J="value":"download"===J&&!0===Z?Z="":"ondoubleclick"===ee?J="ondblclick":"onchange"!==ee||"input"!==a&&"textarea"!==a||(Y=n.type,("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(Y))?"onfocus"===ee?J="onfocusin":"onblur"===ee?J="onfocusout":eo.test(J)?J=ee:-1===a.indexOf("-")&&er.test(J)?J=J.replace(ei,"-$&").toLowerCase():null===Z&&(Z=void 0):ee=J="oninput","oninput"===ee&&R[J=ee]&&(J="oninputCapture"),R[J]=Z}}"select"==a&&R.multiple&&Array.isArray(R.value)&&(R.value=(0,c.toChildArray)(n.children).forEach(function(e){e.props.selected=-1!=R.value.indexOf(e.props.value)})),"select"==a&&null!=R.defaultValue&&(R.value=(0,c.toChildArray)(n.children).forEach(function(e){e.props.selected=R.multiple?-1!=R.defaultValue.indexOf(e.props.value):R.defaultValue==e.props.value})),n.class&&!n.className?(R.class=n.class,Object.defineProperty(R,"className",eu)):(n.className&&!n.class||n.class&&n.className)&&(R.class=R.className=n.className),e.props=R}(e),e.$$typeof=en,el&&el(e)};var e_=c.options.__r;c.options.__r=function(e){e_&&e_(e),ec=e.__c};var ed=c.options.diffed;c.options.diffed=function(e){ed&&ed(e);var n=e.props,a=e.__e;null!=a&&"textarea"===e.type&&"value"in n&&n.value!==a.value&&(a.value=null==n.value?"":n.value),ec=null};var ef={ReactCurrentDispatcher:{current:{readContext:function(e){return ec.__n[e.__c].props.value}}}},ep="17.0.2";function cn(e){return c.createElement.bind(null,e)}function fn(e){return!!e&&e.$$typeof===en}function an(e){return fn(e)&&e.type===c.Fragment}function sn(e){return fn(e)?c.cloneElement.apply(null,arguments):e}function hn(e){return!!e.__k&&((0,c.render)(null,e),!0)}function vn(e){return e&&(e.base||1===e.nodeType&&e)||null}var dn=function(e,n){return e(n)},pn=function(e,n){return e(n)},eh=c.Fragment;function yn(e){e()}function _n(e){return e}function bn(){return[!1,yn]}var em=R.useLayoutEffect,eg=fn;function Cn(e,n){var a=n(),c=(0,R.useState)({h:{__:a,v:n}}),J=c[0].h,Z=c[1];return(0,R.useLayoutEffect)(function(){J.__=a,J.v=n,En(J)&&Z({h:J})},[e,a,n]),(0,R.useEffect)(function(){return En(J)&&Z({h:J}),e(function(){En(J)&&Z({h:J})})},[e]),a}function En(e){var n=e.v,a=e.__;try{var c=n();return!(a===c&&(0!==a||1/a==1/c)||a!=a&&c!=c)}catch(e){return!0}}var ey={useState:R.useState,useId:R.useId,useReducer:R.useReducer,useEffect:R.useEffect,useLayoutEffect:R.useLayoutEffect,useInsertionEffect:em,useTransition:bn,useDeferredValue:_n,useSyncExternalStore:Cn,startTransition:yn,useRef:R.useRef,useImperativeHandle:R.useImperativeHandle,useMemo:R.useMemo,useCallback:R.useCallback,useContext:R.useContext,useDebugValue:R.useDebugValue,version:"17.0.2",Children:Y,render:q,hydrate:G,unmountComponentAtNode:hn,createPortal:j,createElement:c.createElement,createContext:c.createContext,createFactory:cn,cloneElement:sn,createRef:c.createRef,Fragment:c.Fragment,isValidElement:fn,isElement:eg,isFragment:an,findDOMNode:vn,Component:c.Component,PureComponent:E,memo:w,forwardRef:N,flushSync:pn,unstable_batchedUpdates:dn,StrictMode:eh,Suspense:L,SuspenseList:M,lazy:D,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ef}},88342:function(e,n,a){"use strict";a.r(n),a.d(n,{Component:function(){return b},Fragment:function(){return g},cloneElement:function(){return E},createContext:function(){return F},createElement:function(){return y},createRef:function(){return _},h:function(){return y},hydrate:function(){return B},isValidElement:function(){return Z},options:function(){return R},render:function(){return q},toChildArray:function(){return $}});var c,R,J,Z,Y,ee,et,en,er,eo={},ei=[],es=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,ea=Array.isArray;function v(e,n){for(var a in n)e[a]=n[a];return e}function p(e){var n=e.parentNode;n&&n.removeChild(e)}function y(e,n,a){var R,J,Z,Y={};for(Z in n)"key"==Z?R=n[Z]:"ref"==Z?J=n[Z]:Y[Z]=n[Z];if(arguments.length>2&&(Y.children=arguments.length>3?c.call(arguments,2):a),"function"==typeof e&&null!=e.defaultProps)for(Z in e.defaultProps)void 0===Y[Z]&&(Y[Z]=e.defaultProps[Z]);return d(e,Y,R,J,null)}function d(e,n,a,c,Z){var Y={type:e,props:n,key:a,ref:c,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==Z?++J:Z,__i:-1,__u:0};return null==Z&&null!=R.vnode&&R.vnode(Y),Y}function _(){return{current:null}}function g(e){return e.children}function b(e,n){this.props=e,this.context=n}function m(e,n){if(null==n)return e.__?m(e.__,e.__i+1):null;for(var a;nn&&Y.sort(en));x.__r=0}function C(e,n,a,c,R,J,Z,Y,ee,et,en){var er,es,ea,ec,eu,el=c&&c.__k||ei,e_=n.length;for(a.__d=ee,P(a,n,el),ee=a.__d,er=0;er0?d(R.type,R.props,R.key,R.ref?R.ref:null,R.__v):R)?(R.__=e,R.__b=e.__b+1,Y=H(R,a,Z=c+er,en),R.__i=Y,J=null,-1!==Y&&(en--,(J=a[Y])&&(J.__u|=131072)),null==J||null===J.__v?(-1==Y&&er--,"function"!=typeof R.type&&(R.__u|=65536)):Y!==Z&&(Y===Z+1?er++:Y>Z?en>ee-Z?er+=Y-Z:er--:er=Y(null!=ee&&0==(131072&ee.__u)?1:0))for(;Z>=0||Y=0){if((ee=n[Z])&&0==(131072&ee.__u)&&R==ee.key&&J===ee.type)return Z;Z--}if(Y2&&(ee.children=arguments.length>3?c.call(arguments,2):a),d(e.type,ee,R||e.key,J||e.ref,null)}function F(e,n){var a={__c:n="__cC"+er++,__:e,Consumer:function(e,n){return e.children(n)},Provider:function(e){var a,c;return this.getChildContext||(a=[],(c={})[n]=this,this.getChildContext=function(){return c},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&a.some(function(e){e.__e=!0,w(e)})},this.sub=function(e){a.push(e);var n=e.componentWillUnmount;e.componentWillUnmount=function(){a.splice(a.indexOf(e),1),n&&n.call(e)}}),e.children}};return a.Provider.__=a.Consumer.contextType=a}c=ei.slice,R={__e:function(e,n,a,c){for(var R,J,Z;n=n.__;)if((R=n.__c)&&!R.__)try{if((J=R.constructor)&&null!=J.getDerivedStateFromError&&(R.setState(J.getDerivedStateFromError(e)),Z=R.__d),null!=R.componentDidCatch&&(R.componentDidCatch(e,c||{}),Z=R.__d),Z)return R.__E=R}catch(n){e=n}throw e}},J=0,Z=function(e){return null!=e&&null==e.constructor},b.prototype.setState=function(e,n){var a;a=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=v({},this.state),"function"==typeof e&&(e=e(v({},a),this.props)),e&&v(a,e),null!=e&&this.__v&&(n&&this._sb.push(n),w(this))},b.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),w(this))},b.prototype.render=g,Y=[],et="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,en=function(e,n){return e.__v.__b-n.__v.__b},x.__r=0,er=0},75872:function(e,n,a){"use strict";a.r(n),a.d(n,{useCallback:function(){return T},useContext:function(){return q},useDebugValue:function(){return x},useEffect:function(){return p},useErrorBoundary:function(){return P},useId:function(){return V},useImperativeHandle:function(){return A},useLayoutEffect:function(){return y},useMemo:function(){return F},useReducer:function(){return s},useRef:function(){return _},useState:function(){return h}});var c,R,J,Z,Y=a(88342),ee=0,et=[],en=[],er=Y.options.__b,eo=Y.options.__r,ei=Y.options.diffed,es=Y.options.__c,ea=Y.options.unmount;function d(e,n){Y.options.__h&&Y.options.__h(R,e,ee||n),ee=0;var a=R.__H||(R.__H={__:[],__h:[]});return e>=a.__.length&&a.__.push({__V:en}),a.__[e]}function h(e){return ee=1,s(B,e)}function s(e,n,a){var J=d(c++,2);if(J.t=e,!J.__c&&(J.__=[a?a(n):B(void 0,n),function(e){var n=J.__N?J.__N[0]:J.__[0],a=J.t(n,e);n!==a&&(J.__N=[a,J.__[1]],J.__c.setState({}))}],J.__c=R,!R.u)){var f=function(e,n,a){if(!J.__c.__H)return!0;var c=J.__c.__H.__.filter(function(e){return e.__c});if(c.every(function(e){return!e.__N}))return!Z||Z.call(this,e,n,a);var R=!1;return c.forEach(function(e){if(e.__N){var n=e.__[0];e.__=e.__N,e.__N=void 0,n!==e.__[0]&&(R=!0)}}),!(!R&&J.__c.props===e)&&(!Z||Z.call(this,e,n,a))};R.u=!0;var Z=R.shouldComponentUpdate,Y=R.componentWillUpdate;R.componentWillUpdate=function(e,n,a){if(this.__e){var c=Z;Z=void 0,f(e,n,a),Z=c}Y&&Y.call(this,e,n,a)},R.shouldComponentUpdate=f}return J.__N||J.__}function p(e,n){var a=d(c++,3);!Y.options.__s&&z(a.__H,n)&&(a.__=e,a.i=n,R.__H.__h.push(a))}function y(e,n){var a=d(c++,4);!Y.options.__s&&z(a.__H,n)&&(a.__=e,a.i=n,R.__h.push(a))}function _(e){return ee=5,F(function(){return{current:e}},[])}function A(e,n,a){ee=6,y(function(){return"function"==typeof e?(e(n()),function(){return e(null)}):e?(e.current=n(),function(){return e.current=null}):void 0},null==a?a:a.concat(e))}function F(e,n){var a=d(c++,7);return z(a.__H,n)?(a.__V=e(),a.i=n,a.__h=e,a.__V):a.__}function T(e,n){return ee=8,F(function(){return e},n)}function q(e){var n=R.context[e.__c],a=d(c++,9);return a.c=e,n?(null==a.__&&(a.__=!0,n.sub(R)),n.props.value):e.__}function x(e,n){Y.options.useDebugValue&&Y.options.useDebugValue(n?n(e):e)}function P(e){var n=d(c++,10),a=h();return n.__=e,R.componentDidCatch||(R.componentDidCatch=function(e,c){n.__&&n.__(e,c),a[1](e)}),[a[0],function(){a[1](void 0)}]}function V(){var e=d(c++,11);if(!e.__){for(var n=R.__v;null!==n&&!n.__m&&null!==n.__;)n=n.__;var a=n.__m||(n.__m=[0,0]);e.__="P"+a[0]+"-"+a[1]++}return e.__}function b(){for(var e;e=et.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(k),e.__H.__h.forEach(w),e.__H.__h=[]}catch(n){e.__H.__h=[],Y.options.__e(n,e.__v)}}Y.options.__b=function(e){R=null,er&&er(e)},Y.options.__r=function(e){eo&&eo(e),c=0;var n=(R=e.__c).__H;n&&(J===R?(n.__h=[],R.__h=[],n.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=en,e.__N=e.i=void 0})):(n.__h.forEach(k),n.__h.forEach(w),n.__h=[],c=0)),J=R},Y.options.diffed=function(e){ei&&ei(e);var n=e.__c;n&&n.__H&&(n.__H.__h.length&&(1!==et.push(n)&&Z===Y.options.requestAnimationFrame||((Z=Y.options.requestAnimationFrame)||j)(b)),n.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==en&&(e.__=e.__V),e.i=void 0,e.__V=en})),J=R=null},Y.options.__c=function(e,n){n.some(function(e){try{e.__h.forEach(k),e.__h=e.__h.filter(function(e){return!e.__||w(e)})}catch(a){n.some(function(e){e.__h&&(e.__h=[])}),n=[],Y.options.__e(a,e.__v)}}),es&&es(e,n)},Y.options.unmount=function(e){ea&&ea(e);var n,a=e.__c;a&&a.__H&&(a.__H.__.forEach(function(e){try{k(e)}catch(e){n=e}}),a.__H=void 0,n&&Y.options.__e(n,a.__v))};var ec="function"==typeof requestAnimationFrame;function j(e){var n,r=function(){clearTimeout(a),ec&&cancelAnimationFrame(n),setTimeout(e)},a=setTimeout(r,100);ec&&(n=requestAnimationFrame(r))}function k(e){var n=R,a=e.__c;"function"==typeof a&&(e.__c=void 0,a()),R=n}function w(e){var n=R;e.__c=e.__(),R=n}function z(e,n){return!e||e.length!==n.length||n.some(function(n,a){return n!==e[a]})}function B(e,n){return"function"==typeof n?n(e):n}},40619:function(e,n,a){"use strict";let c=a(55517),R=a(77372),J=a(31770),Z=a(65194),isNullOrUndefined=e=>null==e;function encoderForArrayFormat(e){switch(e.arrayFormat){case"index":return n=>(a,c)=>{let R=a.length;return void 0===c||e.skipNull&&null===c||e.skipEmptyString&&""===c?a:null===c?[...a,[encode(n,e),"[",R,"]"].join("")]:[...a,[encode(n,e),"[",encode(R,e),"]=",encode(c,e)].join("")]};case"bracket":return n=>(a,c)=>void 0===c||e.skipNull&&null===c||e.skipEmptyString&&""===c?a:null===c?[...a,[encode(n,e),"[]"].join("")]:[...a,[encode(n,e),"[]=",encode(c,e)].join("")];case"comma":case"separator":return n=>(a,c)=>null==c||0===c.length?a:0===a.length?[[encode(n,e),"=",encode(c,e)].join("")]:[[a,encode(c,e)].join(e.arrayFormatSeparator)];default:return n=>(a,c)=>void 0===c||e.skipNull&&null===c||e.skipEmptyString&&""===c?a:null===c?[...a,encode(n,e)]:[...a,[encode(n,e),"=",encode(c,e)].join("")]}}function parserForArrayFormat(e){let n;switch(e.arrayFormat){case"index":return(e,a,c)=>{if(n=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),!n){c[e]=a;return}void 0===c[e]&&(c[e]={}),c[e][n[1]]=a};case"bracket":return(e,a,c)=>{if(n=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),!n){c[e]=a;return}if(void 0===c[e]){c[e]=[a];return}c[e]=[].concat(c[e],a)};case"comma":case"separator":return(n,a,c)=>{let R="string"==typeof a&&a.includes(e.arrayFormatSeparator),J="string"==typeof a&&!R&&decode(a,e).includes(e.arrayFormatSeparator);a=J?decode(a,e):a;let Z=R||J?a.split(e.arrayFormatSeparator).map(n=>decode(n,e)):null===a?a:decode(a,e);c[n]=Z};default:return(e,n,a)=>{if(void 0===a[e]){a[e]=n;return}a[e]=[].concat(a[e],n)}}}function validateArrayFormatSeparator(e){if("string"!=typeof e||1!==e.length)throw TypeError("arrayFormatSeparator must be single character string")}function encode(e,n){return n.encode?n.strict?c(e):encodeURIComponent(e):e}function decode(e,n){return n.decode?R(e):e}function keysSorter(e){return Array.isArray(e)?e.sort():"object"==typeof e?keysSorter(Object.keys(e)).sort((e,n)=>Number(e)-Number(n)).map(n=>e[n]):e}function removeHash(e){let n=e.indexOf("#");return -1!==n&&(e=e.slice(0,n)),e}function getHash(e){let n="",a=e.indexOf("#");return -1!==a&&(n=e.slice(a)),n}function extract(e){e=removeHash(e);let n=e.indexOf("?");return -1===n?"":e.slice(n+1)}function parseValue(e,n){return n.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):n.parseBooleans&&null!==e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())&&(e="true"===e.toLowerCase()),e}function parse(e,n){validateArrayFormatSeparator((n=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},n)).arrayFormatSeparator);let a=parserForArrayFormat(n),c=Object.create(null);if("string"!=typeof e||!(e=e.trim().replace(/^[?#&]/,"")))return c;for(let R of e.split("&")){if(""===R)continue;let[e,Z]=J(n.decode?R.replace(/\+/g," "):R,"=");Z=void 0===Z?null:["comma","separator"].includes(n.arrayFormat)?Z:decode(Z,n),a(decode(e,n),Z,c)}for(let e of Object.keys(c)){let a=c[e];if("object"==typeof a&&null!==a)for(let e of Object.keys(a))a[e]=parseValue(a[e],n);else c[e]=parseValue(a,n)}return!1===n.sort?c:(!0===n.sort?Object.keys(c).sort():Object.keys(c).sort(n.sort)).reduce((e,n)=>{let a=c[n];return a&&"object"==typeof a&&!Array.isArray(a)?e[n]=keysSorter(a):e[n]=a,e},Object.create(null))}n.extract=extract,n.parse=parse,n.stringify=(e,n)=>{if(!e)return"";validateArrayFormatSeparator((n=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},n)).arrayFormatSeparator);let shouldFilter=a=>n.skipNull&&isNullOrUndefined(e[a])||n.skipEmptyString&&""===e[a],a=encoderForArrayFormat(n),c={};for(let n of Object.keys(e))shouldFilter(n)||(c[n]=e[n]);let R=Object.keys(c);return!1!==n.sort&&R.sort(n.sort),R.map(c=>{let R=e[c];return void 0===R?"":null===R?encode(c,n):Array.isArray(R)?R.reduce(a(c),[]).join("&"):encode(c,n)+"="+encode(R,n)}).filter(e=>e.length>0).join("&")},n.parseUrl=(e,n)=>{n=Object.assign({decode:!0},n);let[a,c]=J(e,"#");return Object.assign({url:a.split("?")[0]||"",query:parse(extract(e),n)},n&&n.parseFragmentIdentifier&&c?{fragmentIdentifier:decode(c,n)}:{})},n.stringifyUrl=(e,a)=>{a=Object.assign({encode:!0,strict:!0},a);let c=removeHash(e.url).split("?")[0]||"",R=n.extract(e.url),J=n.parse(R,{sort:!1}),Z=Object.assign(J,e.query),Y=n.stringify(Z,a);Y&&(Y=`?${Y}`);let ee=getHash(e.url);return e.fragmentIdentifier&&(ee=`#${encode(e.fragmentIdentifier,a)}`),`${c}${Y}${ee}`},n.pick=(e,a,c)=>{c=Object.assign({parseFragmentIdentifier:!0},c);let{url:R,query:J,fragmentIdentifier:Y}=n.parseUrl(e,c);return n.stringifyUrl({url:R,query:Z(J,a),fragmentIdentifier:Y},c)},n.exclude=(e,a,c)=>{let R=Array.isArray(a)?e=>!a.includes(e):(e,n)=>!a(e,n);return n.pick(e,R,c)}},57966:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var n=document.activeElement,a=[],c=0;c(0,u.hmac)(n,i,(0,l.concatBytes)(...o)),randomBytes:l.randomBytes}}function createCurve(n,i){let create=i=>(0,d.weierstrass)({...n,...getHash(i)});return Object.freeze({...create(i),create})}i.getHash=getHash,i.createCurve=createCurve},80395:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.validateBasic=i.wNAF=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let u=o(43521),l=o(46805),d=BigInt(0),x=BigInt(1);function wNAF(n,i){let constTimeNegate=(n,i)=>{let o=i.negate();return n?o:i},opts=n=>({windows:Math.ceil(i/n)+1,windowSize:2**(n-1)});return{constTimeNegate,unsafeLadder(i,o){let u=n.ZERO,l=i;for(;o>d;)o&x&&(u=u.add(l)),l=l.double(),o>>=x;return u},precomputeWindow(n,i){let{windows:o,windowSize:u}=opts(i),l=[],d=n,x=d;for(let n=0;n>=J,l>d&&(l-=W,u+=x);let et=i+Math.abs(l)-1,ei=n%2!=0,eo=l<0;0===l?R=R.add(constTimeNegate(ei,o[i])):I=I.add(constTimeNegate(eo,o[et]))}return{p:I,f:R}},wNAFCached(n,i,o,u){let l=n._WINDOW_SIZE||1,d=i.get(n);return d||(d=this.precomputeWindow(n,l),1!==l&&i.set(n,u(d))),this.wNAF(l,d,o)}}}function validateBasic(n){return(0,u.validateField)(n.Fp),(0,l.validateObject)(n,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,u.nLength)(n.n,n.nBitLength),...n,p:n.Fp.ORDER})}i.wNAF=wNAF,i.validateBasic=validateBasic},60990:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.createHasher=i.isogenyMap=i.hash_to_field=i.expand_message_xof=i.expand_message_xmd=void 0;let u=o(43521),l=o(46805);function validateDST(n){if(n instanceof Uint8Array)return n;if("string"==typeof n)return(0,l.utf8ToBytes)(n);throw Error("DST must be Uint8Array or string")}let d=l.bytesToNumberBE;function i2osp(n,i){if(n<0||n>=1<<8*i)throw Error(`bad I2OSP call: value=${n} length=${i}`);let o=Array.from({length:i}).fill(0);for(let u=i-1;u>=0;u--)o[u]=255&n,n>>>=8;return new Uint8Array(o)}function strxor(n,i){let o=new Uint8Array(n.length);for(let u=0;u255&&(i=u((0,l.concatBytes)((0,l.utf8ToBytes)("H2C-OVERSIZE-DST-"),i)));let{outputLen:d,blockLen:x}=u,I=Math.ceil(o/d);if(I>255)throw Error("Invalid xmd length");let R=(0,l.concatBytes)(i,i2osp(i.length,1)),j=i2osp(0,x),W=i2osp(o,2),J=Array(I),et=u((0,l.concatBytes)(j,n,W,i2osp(0,1),R));J[0]=u((0,l.concatBytes)(et,i2osp(1,1),R));for(let n=1;n<=I;n++){let i=[strxor(et,J[n-1]),i2osp(n+1,1),R];J[n]=u((0,l.concatBytes)(...i))}let ei=(0,l.concatBytes)(...J);return ei.slice(0,o)}function expand_message_xof(n,i,o,u,d){if(isBytes(n),isBytes(i),isNum(o),i.length>255&&(i=d.create({dkLen:Math.ceil(2*u/8)}).update((0,l.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(i).digest()),o>65535||i.length>255)throw Error("expand_message_xof: invalid lenInBytes");return d.create({dkLen:o}).update(n).update(i2osp(o,2)).update(i).update(i2osp(i.length,1)).digest()}function hash_to_field(n,i,o){let x;(0,l.validateObject)(o,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});let{p:I,k:R,m:j,hash:W,expand:J,DST:et}=o;isBytes(n),isNum(i);let ei=validateDST(et),eo=I.toString(2).length,es=Math.ceil((eo+R)/8),eu=i*j*es;if("xmd"===J)x=expand_message_xmd(n,ei,eu,W);else if("xof"===J)x=expand_message_xof(n,ei,eu,R,W);else if("_internal_pass"===J)x=n;else throw Error('expand must be "xmd" or "xof"');let ec=Array(i);for(let n=0;nArray.from(n).reverse());return(i,u)=>{let[l,d,x,I]=o.map(o=>o.reduce((o,u)=>n.add(n.mul(o,i),u)));return i=n.div(l,d),u=n.mul(u,n.div(x,I)),{x:i,y:u}}}function createHasher(n,i,o){if("function"!=typeof i)throw Error("mapToCurve() must be defined");return{hashToCurve(u,l){let d=hash_to_field(u,2,{...o,DST:o.DST,...l}),x=n.fromAffine(i(d[0])),I=n.fromAffine(i(d[1])),R=x.add(I).clearCofactor();return R.assertValidity(),R},encodeToCurve(u,l){let d=hash_to_field(u,1,{...o,DST:o.encodeDST,...l}),x=n.fromAffine(i(d[0])).clearCofactor();return x.assertValidity(),x}}}i.expand_message_xmd=expand_message_xmd,i.expand_message_xof=expand_message_xof,i.hash_to_field=hash_to_field,i.isogenyMap=isogenyMap,i.createHasher=createHasher},43521:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.mapHashToField=i.getMinHashLength=i.getFieldBytesLength=i.hashToPrivateScalar=i.FpSqrtEven=i.FpSqrtOdd=i.Field=i.nLength=i.FpIsSquare=i.FpDiv=i.FpInvertBatch=i.FpPow=i.validateField=i.isNegativeLE=i.FpSqrt=i.tonelliShanks=i.invert=i.pow2=i.pow=i.mod=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let u=o(46805),l=BigInt(0),d=BigInt(1),x=BigInt(2),I=BigInt(3),R=BigInt(4),j=BigInt(5),W=BigInt(8);function mod(n,i){let o=n%i;return o>=l?o:i+o}function pow(n,i,o){if(o<=l||i 0");if(o===d)return l;let u=d;for(;i>l;)i&d&&(u=u*n%o),n=n*n%o,i>>=d;return u}function pow2(n,i,o){let u=n;for(;i-- >l;)u*=u,u%=o;return u}function invert(n,i){if(n===l||i<=l)throw Error(`invert: expected positive integers, got n=${n} mod=${i}`);let o=mod(n,i),u=i,x=l,I=d,R=d,j=l;for(;o!==l;){let n=u/o,i=u%o,l=x-R*n,d=I-j*n;u=o,o=i,x=R,I=j,R=l,j=d}let W=u;if(W!==d)throw Error("invert: does not exist");return mod(x,i)}function tonelliShanks(n){let i,o,u;let I=(n-d)/x;for(i=n-d,o=0;i%x===l;i/=x,o++);for(u=x;u(mod(n,i)&d)===d;let J=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function validateField(n){let i=J.reduce((n,i)=>(n[i]="function",n),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,u.validateObject)(n,i)}function FpPow(n,i,o){if(o 0");if(o===l)return n.ONE;if(o===d)return i;let u=n.ONE,x=i;for(;o>l;)o&d&&(u=n.mul(u,x)),x=n.sqr(x),o>>=d;return u}function FpInvertBatch(n,i){let o=Array(i.length),u=i.reduce((i,u,l)=>n.is0(u)?i:(o[l]=i,n.mul(i,u)),n.ONE),l=n.inv(u);return i.reduceRight((i,u,l)=>n.is0(u)?i:(o[l]=n.mul(i,o[l]),n.mul(i,u)),l),o}function FpDiv(n,i,o){return n.mul(i,"bigint"==typeof o?invert(o,n.ORDER):n.inv(o))}function FpIsSquare(n){let i=(n.ORDER-d)/x;return o=>{let u=n.pow(o,i);return n.eql(u,n.ZERO)||n.eql(u,n.ONE)}}function nLength(n,i){let o=void 0!==i?i:n.toString(2).length;return{nBitLength:o,nByteLength:Math.ceil(o/8)}}function Field(n,i,o=!1,x={}){if(n<=l)throw Error(`Expected Field ORDER > 0, got ${n}`);let{nBitLength:I,nByteLength:R}=nLength(n,i);if(R>2048)throw Error("Field lengths over 2048 bytes are not supported");let j=FpSqrt(n),W=Object.freeze({ORDER:n,BITS:I,BYTES:R,MASK:(0,u.bitMask)(I),ZERO:l,ONE:d,create:i=>mod(i,n),isValid:i=>{if("bigint"!=typeof i)throw Error(`Invalid field element: expected bigint, got ${typeof i}`);return l<=i&&in===l,isOdd:n=>(n&d)===d,neg:i=>mod(-i,n),eql:(n,i)=>n===i,sqr:i=>mod(i*i,n),add:(i,o)=>mod(i+o,n),sub:(i,o)=>mod(i-o,n),mul:(i,o)=>mod(i*o,n),pow:(n,i)=>FpPow(W,n,i),div:(i,o)=>mod(i*invert(o,n),n),sqrN:n=>n*n,addN:(n,i)=>n+i,subN:(n,i)=>n-i,mulN:(n,i)=>n*i,inv:i=>invert(i,n),sqrt:x.sqrt||(n=>j(W,n)),invertBatch:n=>FpInvertBatch(W,n),cmov:(n,i,o)=>o?i:n,toBytes:n=>o?(0,u.numberToBytesLE)(n,R):(0,u.numberToBytesBE)(n,R),fromBytes:n=>{if(n.length!==R)throw Error(`Fp.fromBytes: expected ${R}, got ${n.length}`);return o?(0,u.bytesToNumberLE)(n):(0,u.bytesToNumberBE)(n)}});return Object.freeze(W)}function FpSqrtOdd(n,i){if(!n.isOdd)throw Error("Field doesn't have isOdd");let o=n.sqrt(i);return n.isOdd(o)?o:n.neg(o)}function FpSqrtEven(n,i){if(!n.isOdd)throw Error("Field doesn't have isOdd");let o=n.sqrt(i);return n.isOdd(o)?n.neg(o):o}function hashToPrivateScalar(n,i,o=!1){n=(0,u.ensureBytes)("privateHash",n);let l=n.length,x=nLength(i).nByteLength+8;if(x<24||l1024)throw Error(`hashToPrivateScalar: expected ${x}-1024 bytes of input, got ${l}`);let I=o?(0,u.bytesToNumberLE)(n):(0,u.bytesToNumberBE)(n);return mod(I,i-d)+d}function getFieldBytesLength(n){if("bigint"!=typeof n)throw Error("field order must be bigint");let i=n.toString(2).length;return Math.ceil(i/8)}function getMinHashLength(n){let i=getFieldBytesLength(n);return i+Math.ceil(i/2)}function mapHashToField(n,i,o=!1){let l=n.length,x=getFieldBytesLength(i),I=getMinHashLength(i);if(l<16||l1024)throw Error(`expected ${I}-1024 bytes of input, got ${l}`);let R=o?(0,u.bytesToNumberBE)(n):(0,u.bytesToNumberLE)(n),j=mod(R,i-d)+d;return o?(0,u.numberToBytesLE)(j,x):(0,u.numberToBytesBE)(j,x)}i.validateField=validateField,i.FpPow=FpPow,i.FpInvertBatch=FpInvertBatch,i.FpDiv=FpDiv,i.FpIsSquare=FpIsSquare,i.nLength=nLength,i.Field=Field,i.FpSqrtOdd=FpSqrtOdd,i.FpSqrtEven=FpSqrtEven,i.hashToPrivateScalar=hashToPrivateScalar,i.getFieldBytesLength=getFieldBytesLength,i.getMinHashLength=getMinHashLength,i.mapHashToField=mapHashToField},46805:function(n,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.validateObject=i.createHmacDrbg=i.bitMask=i.bitSet=i.bitGet=i.bitLen=i.utf8ToBytes=i.equalBytes=i.concatBytes=i.ensureBytes=i.numberToVarBytesBE=i.numberToBytesLE=i.numberToBytesBE=i.bytesToNumberLE=i.bytesToNumberBE=i.hexToBytes=i.hexToNumber=i.numberToHexUnpadded=i.bytesToHex=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let o=BigInt(0),u=BigInt(1),l=BigInt(2),u8a=n=>n instanceof Uint8Array,d=Array.from({length:256},(n,i)=>i.toString(16).padStart(2,"0"));function bytesToHex(n){if(!u8a(n))throw Error("Uint8Array expected");let i="";for(let o=0;on+i.length,0)),o=0;return n.forEach(n=>{if(!u8a(n))throw Error("Uint8Array expected");i.set(n,o),o+=n.length}),i}function equalBytes(n,i){if(n.length!==i.length)return!1;for(let o=0;oo;n>>=u,i+=1);return i}function bitGet(n,i){return n>>BigInt(i)&u}i.bytesToHex=bytesToHex,i.numberToHexUnpadded=numberToHexUnpadded,i.hexToNumber=hexToNumber,i.hexToBytes=hexToBytes,i.bytesToNumberBE=bytesToNumberBE,i.bytesToNumberLE=bytesToNumberLE,i.numberToBytesBE=numberToBytesBE,i.numberToBytesLE=numberToBytesLE,i.numberToVarBytesBE=numberToVarBytesBE,i.ensureBytes=ensureBytes,i.concatBytes=concatBytes,i.equalBytes=equalBytes,i.utf8ToBytes=utf8ToBytes,i.bitLen=bitLen,i.bitGet=bitGet,i.bitSet=(n,i,l)=>n|(l?u:o)<(l<new Uint8Array(n),u8fr=n=>Uint8Array.from(n);function createHmacDrbg(n,i,o){if("number"!=typeof n||n<2)throw Error("hashLen must be a number");if("number"!=typeof i||i<2)throw Error("qByteLen must be a number");if("function"!=typeof o)throw Error("hmacFn must be a function");let u=u8n(n),l=u8n(n),d=0,reset=()=>{u.fill(1),l.fill(0),d=0},h=(...n)=>o(l,u,...n),reseed=(n=u8n())=>{l=h(u8fr([0]),n),u=h(),0!==n.length&&(l=h(u8fr([1]),n),u=h())},gen=()=>{if(d++>=1e3)throw Error("drbg: tried 1000 values");let n=0,o=[];for(;n{let o;for(reset(),reseed(n);!(o=i(gen()));)reseed();return reset(),o}}i.createHmacDrbg=createHmacDrbg;let x={bigint:n=>"bigint"==typeof n,function:n=>"function"==typeof n,boolean:n=>"boolean"==typeof n,string:n=>"string"==typeof n,stringOrUint8Array:n=>"string"==typeof n||n instanceof Uint8Array,isSafeInteger:n=>Number.isSafeInteger(n),array:n=>Array.isArray(n),field:(n,i)=>i.Fp.isValid(n),hash:n=>"function"==typeof n&&Number.isSafeInteger(n.outputLen)};function validateObject(n,i,o={}){let checkField=(i,o,u)=>{let l=x[o];if("function"!=typeof l)throw Error(`Invalid validator "${o}", expected function`);let d=n[i];if((!u||void 0!==d)&&!l(d,n))throw Error(`Invalid param ${String(i)}=${d} (${typeof d}), expected ${o}`)};for(let[n,o]of Object.entries(i))checkField(n,o,!1);for(let[n,i]of Object.entries(o))checkField(n,i,!0);return n}i.validateObject=validateObject},7630:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.mapToCurveSimpleSWU=i.SWUFpSqrtRatio=i.weierstrass=i.weierstrassPoints=i.DER=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let u=o(43521),l=o(46805),d=o(46805),x=o(80395);function validatePointOpts(n){let i=(0,x.validateBasic)(n);l.validateObject(i,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});let{endo:o,Fp:u,a:d}=i;if(o){if(!u.eql(d,u.ZERO))throw Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof o||"bigint"!=typeof o.beta||"function"!=typeof o.splitScalar)throw Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...i})}let{bytesToNumberBE:I,hexToBytes:R}=l;i.DER={Err:class extends Error{constructor(n=""){super(n)}},_parseInt(n){let{Err:o}=i.DER;if(n.length<2||2!==n[0])throw new o("Invalid signature integer tag");let u=n[1],l=n.subarray(2,u+2);if(!u||l.length!==u)throw new o("Invalid signature integer: wrong length");if(128&l[0])throw new o("Invalid signature integer: negative");if(0===l[0]&&!(128&l[1]))throw new o("Invalid signature integer: unnecessary leading zero");return{d:I(l),l:n.subarray(u+2)}},toSig(n){let{Err:o}=i.DER,u="string"==typeof n?R(n):n;if(!(u instanceof Uint8Array))throw Error("ui8a expected");let l=u.length;if(l<2||48!=u[0])throw new o("Invalid signature tag");if(u[1]!==l-2)throw new o("Invalid signature: incorrect length");let{d:d,l:x}=i.DER._parseInt(u.subarray(2)),{d:I,l:j}=i.DER._parseInt(x);if(j.length)throw new o("Invalid signature: left bytes after parsing");return{r:d,s:I}},hexFromSig(n){let slice=n=>8&Number.parseInt(n[0],16)?"00"+n:n,h=n=>{let i=n.toString(16);return 1&i.length?`0${i}`:i},i=slice(h(n.s)),o=slice(h(n.r)),u=i.length/2,l=o.length/2,d=h(u),x=h(l);return`30${h(l+u+4)}02${x}${o}02${d}${i}`}};let j=BigInt(0),W=BigInt(1),J=BigInt(2),et=BigInt(3),ei=BigInt(4);function weierstrassPoints(n){let i=validatePointOpts(n),{Fp:o}=i,I=i.toBytes||((n,i,u)=>{let d=i.toAffine();return l.concatBytes(Uint8Array.from([4]),o.toBytes(d.x),o.toBytes(d.y))}),R=i.fromBytes||(n=>{let i=n.subarray(1),u=o.fromBytes(i.subarray(0,o.BYTES)),l=o.fromBytes(i.subarray(o.BYTES,2*o.BYTES));return{x:u,y:l}});function weierstrassEquation(n){let{a:u,b:l}=i,d=o.sqr(n),x=o.mul(d,n);return o.add(o.add(x,o.mul(n,u)),l)}if(!o.eql(o.sqr(i.Gy),weierstrassEquation(i.Gx)))throw Error("bad generator point: equation left != right");function isWithinCurveOrder(n){return"bigint"==typeof n&&jo.eql(n,o.ZERO);return is0(i)&&is0(u)?Point.ZERO:new Point(i,u,o.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(n){let i=o.invertBatch(n.map(n=>n.pz));return n.map((n,o)=>n.toAffine(i[o])).map(Point.fromAffine)}static fromHex(n){let i=Point.fromAffine(R((0,d.ensureBytes)("pointHex",n)));return i.assertValidity(),i}static fromPrivateKey(n){return Point.BASE.multiply(normPrivateKeyToScalar(n))}_setWindowSize(n){this._WINDOW_SIZE=n,J.delete(this)}assertValidity(){if(this.is0()){if(i.allowInfinityPoint&&!o.is0(this.py))return;throw Error("bad point: ZERO")}let{x:n,y:u}=this.toAffine();if(!o.isValid(n)||!o.isValid(u))throw Error("bad point: x or y not FE");let l=o.sqr(u),d=weierstrassEquation(n);if(!o.eql(l,d))throw Error("bad point: equation left != right");if(!this.isTorsionFree())throw Error("bad point: not in prime-order subgroup")}hasEvenY(){let{y:n}=this.toAffine();if(o.isOdd)return!o.isOdd(n);throw Error("Field doesn't support isOdd")}equals(n){assertPrjPoint(n);let{px:i,py:u,pz:l}=this,{px:d,py:x,pz:I}=n,R=o.eql(o.mul(i,I),o.mul(d,l)),j=o.eql(o.mul(u,I),o.mul(x,l));return R&&j}negate(){return new Point(this.px,o.neg(this.py),this.pz)}double(){let{a:n,b:u}=i,l=o.mul(u,et),{px:d,py:x,pz:I}=this,R=o.ZERO,j=o.ZERO,W=o.ZERO,J=o.mul(d,d),ei=o.mul(x,x),eo=o.mul(I,I),es=o.mul(d,x);return es=o.add(es,es),W=o.mul(d,I),W=o.add(W,W),R=o.mul(n,W),j=o.mul(l,eo),j=o.add(R,j),R=o.sub(ei,j),j=o.add(ei,j),j=o.mul(R,j),R=o.mul(es,R),W=o.mul(l,W),eo=o.mul(n,eo),es=o.sub(J,eo),es=o.mul(n,es),es=o.add(es,W),W=o.add(J,J),J=o.add(W,J),J=o.add(J,eo),J=o.mul(J,es),j=o.add(j,J),eo=o.mul(x,I),eo=o.add(eo,eo),J=o.mul(eo,es),R=o.sub(R,J),W=o.mul(eo,ei),W=o.add(W,W),new Point(R,j,W=o.add(W,W))}add(n){assertPrjPoint(n);let{px:u,py:l,pz:d}=this,{px:x,py:I,pz:R}=n,j=o.ZERO,W=o.ZERO,J=o.ZERO,ei=i.a,eo=o.mul(i.b,et),es=o.mul(u,x),eu=o.mul(l,I),ec=o.mul(d,R),el=o.add(u,l),ed=o.add(x,I);el=o.mul(el,ed),ed=o.add(es,eu),el=o.sub(el,ed),ed=o.add(u,d);let ef=o.add(x,R);return ed=o.mul(ed,ef),ef=o.add(es,ec),ed=o.sub(ed,ef),ef=o.add(l,d),j=o.add(I,R),ef=o.mul(ef,j),j=o.add(eu,ec),ef=o.sub(ef,j),J=o.mul(ei,ed),j=o.mul(eo,ec),J=o.add(j,J),j=o.sub(eu,J),J=o.add(eu,J),W=o.mul(j,J),eu=o.add(es,es),eu=o.add(eu,es),ec=o.mul(ei,ec),ed=o.mul(eo,ed),eu=o.add(eu,ec),ec=o.sub(es,ec),ec=o.mul(ei,ec),ed=o.add(ed,ec),es=o.mul(eu,ed),W=o.add(W,es),es=o.mul(ef,ed),j=o.mul(el,j),j=o.sub(j,es),es=o.mul(el,eu),J=o.mul(ef,J),new Point(j,W,J=o.add(J,es))}subtract(n){return this.add(n.negate())}is0(){return this.equals(Point.ZERO)}wNAF(n){return eo.wNAFCached(this,J,n,n=>{let i=o.invertBatch(n.map(n=>n.pz));return n.map((n,o)=>n.toAffine(i[o])).map(Point.fromAffine)})}multiplyUnsafe(n){let u=Point.ZERO;if(n===j)return u;if(assertGE(n),n===W)return this;let{endo:l}=i;if(!l)return eo.unsafeLadder(this,n);let{k1neg:d,k1:x,k2neg:I,k2:R}=l.splitScalar(n),J=u,et=u,ei=this;for(;x>j||R>j;)x&W&&(J=J.add(ei)),R&W&&(et=et.add(ei)),ei=ei.double(),x>>=W,R>>=W;return d&&(J=J.negate()),I&&(et=et.negate()),et=new Point(o.mul(et.px,l.beta),et.py,et.pz),J.add(et)}multiply(n){let u,l;assertGE(n);let{endo:d}=i;if(d){let{k1neg:i,k1:x,k2neg:I,k2:R}=d.splitScalar(n),{p:j,f:W}=this.wNAF(x),{p:J,f:et}=this.wNAF(R);j=eo.constTimeNegate(i,j),J=eo.constTimeNegate(I,J),J=new Point(o.mul(J.px,d.beta),J.py,J.pz),u=j.add(J),l=W.add(et)}else{let{p:i,f:o}=this.wNAF(n);u=i,l=o}return Point.normalizeZ([u,l])[0]}multiplyAndAddUnsafe(n,i,o){let u=Point.BASE,mul=(n,i)=>i!==j&&i!==W&&n.equals(u)?n.multiply(i):n.multiplyUnsafe(i),l=mul(this,i).add(mul(n,o));return l.is0()?void 0:l}toAffine(n){let{px:i,py:u,pz:l}=this,d=this.is0();null==n&&(n=d?o.ONE:o.inv(l));let x=o.mul(i,n),I=o.mul(u,n),R=o.mul(l,n);if(d)return{x:o.ZERO,y:o.ZERO};if(!o.eql(R,o.ONE))throw Error("invZ was invalid");return{x:x,y:I}}isTorsionFree(){let{h:n,isTorsionFree:o}=i;if(n===W)return!0;if(o)return o(Point,this);throw Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h:n,clearCofactor:o}=i;return n===W?this:o?o(Point,this):this.multiplyUnsafe(i.h)}toRawBytes(n=!0){return this.assertValidity(),I(Point,this,n)}toHex(n=!0){return l.bytesToHex(this.toRawBytes(n))}};Point.BASE=new Point(i.Gx,i.Gy,o.ONE),Point.ZERO=new Point(o.ZERO,o.ONE,o.ZERO);let ei=i.nBitLength,eo=(0,x.wNAF)(Point,i.endo?Math.ceil(ei/2):ei);return{CURVE:i,ProjectivePoint:Point,normPrivateKeyToScalar,weierstrassEquation,isWithinCurveOrder}}function validateOpts(n){let i=(0,x.validateBasic)(n);return l.validateObject(i,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...i})}function weierstrass(n){let o=validateOpts(n),{Fp:x,n:I}=o,R=x.BYTES+1,J=2*x.BYTES+1;function isValidFieldElement(n){return jl.bytesToHex(l.numberToBytesBE(n,o.nByteLength));function isBiggerThanHalfOrder(n){let i=I>>W;return n>i}function normalizeS(n){return isBiggerThanHalfOrder(n)?modN(-n):n}let slcNum=(n,i,o)=>l.bytesToNumberBE(n.slice(i,o));let Signature=class Signature{constructor(n,i,o){this.r=n,this.s=i,this.recovery=o,this.assertValidity()}static fromCompact(n){let i=o.nByteLength;return new Signature(slcNum(n=(0,d.ensureBytes)("compactSignature",n,2*i),0,i),slcNum(n,i,2*i))}static fromDER(n){let{r:o,s:u}=i.DER.toSig((0,d.ensureBytes)("DER",n));return new Signature(o,u)}assertValidity(){if(!es(this.r))throw Error("r must be 0 < r < CURVE.n");if(!es(this.s))throw Error("s must be 0 < s < CURVE.n")}addRecoveryBit(n){return new Signature(this.r,this.s,n)}recoverPublicKey(n){let{r:i,s:u,recovery:l}=this,I=ec((0,d.ensureBytes)("msgHash",n));if(null==l||![0,1,2,3].includes(l))throw Error("recovery id invalid");let R=2===l||3===l?i+o.n:i;if(R>=x.ORDER)throw Error("recovery id 2 or 3 invalid");let j=(1&l)==0?"02":"03",W=et.fromHex(j+numToNByteStr(R)),J=invN(R),ei=modN(-I*J),eo=modN(u*J),es=et.BASE.multiplyAndAddUnsafe(W,ei,eo);if(!es)throw Error("point at infinify");return es.assertValidity(),es}hasHighS(){return isBiggerThanHalfOrder(this.s)}normalizeS(){return this.hasHighS()?new Signature(this.r,modN(-this.s),this.recovery):this}toDERRawBytes(){return l.hexToBytes(this.toDERHex())}toDERHex(){return i.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return l.hexToBytes(this.toCompactHex())}toCompactHex(){return numToNByteStr(this.r)+numToNByteStr(this.s)}};function getPublicKey(n,i=!0){return et.fromPrivateKey(n).toRawBytes(i)}function isProbPub(n){let i=n instanceof Uint8Array,o="string"==typeof n,u=(i||o)&&n.length;return i?u===R||u===J:o?u===2*R||u===2*J:n instanceof et}function getSharedSecret(n,i,o=!0){if(isProbPub(n))throw Error("first arg must be private key");if(!isProbPub(i))throw Error("second arg must be public key");let u=et.fromHex(i);return u.multiply(ei(n)).toRawBytes(o)}let eu=o.bits2int||function(n){let i=l.bytesToNumberBE(n),u=8*n.length-o.nBitLength;return u>0?i>>BigInt(u):i},ec=o.bits2int_modN||function(n){return modN(eu(n))},el=l.bitMask(o.nBitLength);function int2octets(n){if("bigint"!=typeof n)throw Error("bigint expected");if(!(j<=n&&nn in u))throw Error("sign() legacy options not supported");let{hash:I,randomBytes:R}=o,{lowS:J,prehash:eo,extraEntropy:el}=u;null==J&&(J=!0),n=(0,d.ensureBytes)("msgHash",n),eo&&(n=(0,d.ensureBytes)("prehashed msgHash",I(n)));let ef=ec(n),eh=ei(i),ep=[int2octets(eh),int2octets(ef)];if(null!=el){let n=!0===el?R(x.BYTES):el;ep.push((0,d.ensureBytes)("extraEntropy",n))}let em=l.concatBytes(...ep);return{seed:em,k2sig:function(n){let i=eu(n);if(!es(i))return;let o=invN(i),u=et.BASE.multiply(i).toAffine(),l=modN(u.x);if(l===j)return;let d=modN(o*modN(ef+l*eh));if(d===j)return;let x=(u.x===l?0:2)|Number(u.y&W),I=d;return J&&isBiggerThanHalfOrder(d)&&(I=normalizeS(d),x^=1),new Signature(l,I,x)}}}let ed={lowS:o.lowS,prehash:!1},ef={lowS:o.lowS,prehash:!1};function sign(n,i,u=ed){let{seed:d,k2sig:x}=prepSig(n,i,u),I=l.createHmacDrbg(o.hash.outputLen,o.nByteLength,o.hmac);return I(d,x)}function verify(n,u,l,x=ef){let I,R;if(u=(0,d.ensureBytes)("msgHash",u),l=(0,d.ensureBytes)("publicKey",l),"strict"in x)throw Error("options.strict was renamed to lowS");let{lowS:j,prehash:W}=x;try{if("string"==typeof n||n instanceof Uint8Array)try{R=Signature.fromDER(n)}catch(o){if(!(o instanceof i.DER.Err))throw o;R=Signature.fromCompact(n)}else if("object"==typeof n&&"bigint"==typeof n.r&&"bigint"==typeof n.s){let{r:i,s:o}=n;R=new Signature(i,o)}else throw Error("PARSE");I=et.fromHex(l)}catch(n){if("PARSE"===n.message)throw Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(j&&R.hasHighS())return!1;W&&(u=o.hash(u));let{r:J,s:ei}=R,eo=ec(u),es=invN(ei),eu=modN(eo*es),el=modN(J*es),ed=et.BASE.multiplyAndAddUnsafe(I,eu,el)?.toAffine();if(!ed)return!1;let eh=modN(ed.x);return eh===J}return et.BASE._setWindowSize(8),{CURVE:o,getPublicKey,getSharedSecret,sign,verify,ProjectivePoint:et,Signature,utils:{isValidPrivateKey(n){try{return ei(n),!0}catch(n){return!1}},normPrivateKeyToScalar:ei,randomPrivateKey:()=>{let n=u.getMinHashLength(o.n);return u.mapHashToField(o.randomBytes(n),o.n)},precompute:(n=8,i=et.BASE)=>(i._setWindowSize(n),i.multiply(BigInt(3)),i)}}}function SWUFpSqrtRatio(n,i){let o=n.ORDER,u=j;for(let n=o-W;n%J===j;n/=J)u+=W;let l=u,d=J<{let u=es,x=n.pow(o,eo),I=n.sqr(x);I=n.mul(I,o);let j=n.mul(i,I);j=n.pow(j,R),j=n.mul(j,x),x=n.mul(j,o),I=n.mul(j,i);let et=n.mul(I,x);j=n.pow(et,d);let ei=n.eql(j,n.ONE);x=n.mul(I,eu),j=n.mul(et,u),I=n.cmov(x,I,ei),et=n.cmov(j,et,ei);for(let i=l;i>W;i--){let o=i-J;o=J<{let d=n.sqr(l),x=n.mul(i,l);d=n.mul(d,x);let I=n.pow(d,o);I=n.mul(I,x);let R=n.mul(I,u),j=n.mul(n.sqr(I),l),W=n.eql(j,i),J=n.cmov(R,I,W);return{isValid:W,value:J}}}return sqrtRatio}function mapToCurveSimpleSWU(n,i){if(u.validateField(n),!n.isValid(i.A)||!n.isValid(i.B)||!n.isValid(i.Z))throw Error("mapToCurveSimpleSWU: invalid opts");let o=SWUFpSqrtRatio(n,i.Z);if(!n.isOdd)throw Error("Fp.isOdd is not implemented!");return u=>{let l,d,x,I,R,j,W,J;l=n.sqr(u),l=n.mul(l,i.Z),d=n.sqr(l),d=n.add(d,l),x=n.add(d,n.ONE),x=n.mul(x,i.B),I=n.cmov(i.Z,n.neg(d),!n.eql(d,n.ZERO)),I=n.mul(I,i.A),d=n.sqr(x),j=n.sqr(I),R=n.mul(j,i.A),d=n.add(d,R),d=n.mul(d,x),j=n.mul(j,I),R=n.mul(j,i.B),d=n.add(d,R),W=n.mul(l,x);let{isValid:et,value:ei}=o(d,j);J=n.mul(l,u),J=n.mul(J,ei),W=n.cmov(W,x,et),J=n.cmov(J,ei,et);let eo=n.isOdd(u)===n.isOdd(J);return J=n.cmov(n.neg(J),J,eo),{x:W=n.div(W,I),y:J}}}i.weierstrassPoints=weierstrassPoints,i.weierstrass=weierstrass,i.SWUFpSqrtRatio=SWUFpSqrtRatio,i.mapToCurveSimpleSWU=mapToCurveSimpleSWU},30016:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.encodeToCurve=i.hashToCurve=i.schnorr=i.secp256k1=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let u=o(22511),l=o(81522),d=o(43521),x=o(7630),I=o(46805),R=o(60990),j=o(54707),W=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),J=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),et=BigInt(1),ei=BigInt(2),divNearest=(n,i)=>(n+i/ei)/i;function sqrtMod(n){let i=BigInt(3),o=BigInt(6),u=BigInt(11),l=BigInt(22),x=BigInt(23),I=BigInt(44),R=BigInt(88),j=n*n*n%W,J=j*j*n%W,et=(0,d.pow2)(J,i,W)*J%W,es=(0,d.pow2)(et,i,W)*J%W,eu=(0,d.pow2)(es,ei,W)*j%W,ec=(0,d.pow2)(eu,u,W)*eu%W,el=(0,d.pow2)(ec,l,W)*ec%W,ed=(0,d.pow2)(el,I,W)*el%W,ef=(0,d.pow2)(ed,R,W)*ed%W,eh=(0,d.pow2)(ef,I,W)*el%W,ep=(0,d.pow2)(eh,i,W)*J%W,em=(0,d.pow2)(ep,x,W)*ec%W,eg=(0,d.pow2)(em,o,W)*j%W,ey=(0,d.pow2)(eg,ei,W);if(!eo.eql(eo.sqr(ey),n))throw Error("Cannot find square root");return ey}let eo=(0,d.Field)(W,void 0,void 0,{sqrt:sqrtMod});i.secp256k1=(0,j.createCurve)({a:BigInt(0),b:BigInt(7),Fp:eo,n:J,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:n=>{let i=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),o=-et*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),u=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),l=BigInt("0x100000000000000000000000000000000"),x=divNearest(i*n,J),I=divNearest(-o*n,J),R=(0,d.mod)(n-x*i-I*u,J),j=(0,d.mod)(-x*o-I*i,J),W=R>l,ei=j>l;if(W&&(R=J-R),ei&&(j=J-j),R>l||j>l)throw Error("splitScalar: Endomorphism failed, k="+n);return{k1neg:W,k1:R,k2neg:ei,k2:j}}}},u.sha256);let es=BigInt(0),fe=n=>"bigint"==typeof n&&es"bigint"==typeof n&&esn.charCodeAt(0)));o=(0,I.concatBytes)(i,i),eu[n]=o}return(0,u.sha256)((0,I.concatBytes)(o,...i))}let pointToBytes=n=>n.toRawBytes(!0).slice(1),numTo32b=n=>(0,I.numberToBytesBE)(n,32),modP=n=>(0,d.mod)(n,W),modN=n=>(0,d.mod)(n,J),ec=i.secp256k1.ProjectivePoint,GmulAdd=(n,i,o)=>ec.BASE.multiplyAndAddUnsafe(n,i,o);function schnorrGetExtPubKey(n){let o=i.secp256k1.utils.normPrivateKeyToScalar(n),u=ec.fromPrivateKey(o),l=u.hasEvenY()?o:modN(-o);return{scalar:l,bytes:pointToBytes(u)}}function lift_x(n){if(!fe(n))throw Error("bad x: need 0 < x < p");let i=modP(n*n),o=modP(i*n+BigInt(7)),u=sqrtMod(o);u%ei!==es&&(u=modP(-u));let l=new ec(n,u,et);return l.assertValidity(),l}function challenge(...n){return modN((0,I.bytesToNumberBE)(taggedHash("BIP0340/challenge",...n)))}function schnorrGetPublicKey(n){return schnorrGetExtPubKey(n).bytes}function schnorrSign(n,i,o=(0,l.randomBytes)(32)){let u=(0,I.ensureBytes)("message",n),{bytes:d,scalar:x}=schnorrGetExtPubKey(i),R=(0,I.ensureBytes)("auxRand",o,32),j=numTo32b(x^(0,I.bytesToNumberBE)(taggedHash("BIP0340/aux",R))),W=taggedHash("BIP0340/nonce",j,d,u),J=modN((0,I.bytesToNumberBE)(W));if(J===es)throw Error("sign failed: k is zero");let{bytes:et,scalar:ei}=schnorrGetExtPubKey(J),eo=challenge(et,d,u),eu=new Uint8Array(64);if(eu.set(et,0),eu.set(numTo32b(modN(ei+eo*x)),32),!schnorrVerify(eu,u,d))throw Error("sign: Invalid signature produced");return eu}function schnorrVerify(n,i,o){let u=(0,I.ensureBytes)("signature",n,64),l=(0,I.ensureBytes)("message",i),d=(0,I.ensureBytes)("publicKey",o,32);try{let n=lift_x((0,I.bytesToNumberBE)(d)),i=(0,I.bytesToNumberBE)(u.subarray(0,32));if(!fe(i))return!1;let o=(0,I.bytesToNumberBE)(u.subarray(32,64));if(!ge(o))return!1;let x=challenge(numTo32b(i),pointToBytes(n),l),R=GmulAdd(n,o,modN(-x));if(!R||!R.hasEvenY()||R.toAffine().x!==i)return!1;return!0}catch(n){return!1}}i.schnorr={getPublicKey:schnorrGetPublicKey,sign:schnorrSign,verify:schnorrVerify,utils:{randomPrivateKey:i.secp256k1.utils.randomPrivateKey,lift_x,pointToBytes,numberToBytesBE:I.numberToBytesBE,bytesToNumberBE:I.bytesToNumberBE,taggedHash,mod:d.mod}};let el=(0,R.isogenyMap)(eo,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(n=>n.map(n=>BigInt(n)))),ed=(0,x.mapToCurveSimpleSWU)(eo,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:eo.create(BigInt("-11"))}),ef=(0,R.createHasher)(i.secp256k1.ProjectivePoint,n=>{let{x:i,y:o}=ed(eo.create(n[0]));return el(i,o)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:eo.ORDER,m:1,k:128,expand:"xmd",hash:u.sha256});i.hashToCurve=ef.hashToCurve,i.encodeToCurve=ef.encodeToCurve},29617:function(n,i){"use strict";function number(n){if(!Number.isSafeInteger(n)||n<0)throw Error(`Wrong positive integer: ${n}`)}function bool(n){if("boolean"!=typeof n)throw Error(`Expected boolean, not ${n}`)}function bytes(n,...i){if(!(n instanceof Uint8Array))throw Error("Expected Uint8Array");if(i.length>0&&!i.includes(n.length))throw Error(`Expected Uint8Array of length ${i}, not of length=${n.length}`)}function hash(n){if("function"!=typeof n||"function"!=typeof n.create)throw Error("Hash should be wrapped by utils.wrapConstructor");number(n.outputLen),number(n.blockLen)}function exists(n,i=!0){if(n.destroyed)throw Error("Hash instance has been destroyed");if(i&&n.finished)throw Error("Hash#digest() has already been called")}function output(n,i){bytes(n);let o=i.outputLen;if(n.length>l&d),I=Number(o&d),R=u?4:0,j=u?0:4;n.setUint32(i+R,x,u),n.setUint32(i+j,I,u)}let SHA2=class SHA2 extends l.Hash{constructor(n,i,o,u){super(),this.blockLen=n,this.outputLen=i,this.padOffset=o,this.isLE=u,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(n),this.view=(0,l.createView)(this.buffer)}update(n){(0,u.exists)(this);let{view:i,buffer:o,blockLen:d}=this;n=(0,l.toBytes)(n);let x=n.length;for(let u=0;ud-I&&(this.process(o,0),I=0);for(let n=I;nJ.length)throw Error("_sha2: outputLen bigger than state");for(let n=0;n>u&o)}:{h:0|Number(n>>u&o),l:0|Number(n&o)}}function split(n,i=!1){let o=new Uint32Array(n.length),u=new Uint32Array(n.length);for(let l=0;lBigInt(n>>>0)<>>0);i.toBig=toBig;let shrSH=(n,i,o)=>n>>>o;i.shrSH=shrSH;let shrSL=(n,i,o)=>n<<32-o|i>>>o;i.shrSL=shrSL;let rotrSH=(n,i,o)=>n>>>o|i<<32-o;i.rotrSH=rotrSH;let rotrSL=(n,i,o)=>n<<32-o|i>>>o;i.rotrSL=rotrSL;let rotrBH=(n,i,o)=>n<<64-o|i>>>o-32;i.rotrBH=rotrBH;let rotrBL=(n,i,o)=>n>>>o-32|i<<64-o;i.rotrBL=rotrBL;let rotr32H=(n,i)=>i;i.rotr32H=rotr32H;let rotr32L=(n,i)=>n;i.rotr32L=rotr32L;let rotlSH=(n,i,o)=>n<>>32-o;i.rotlSH=rotlSH;let rotlSL=(n,i,o)=>i<>>32-o;i.rotlSL=rotlSL;let rotlBH=(n,i,o)=>i<>>64-o;i.rotlBH=rotlBH;let rotlBL=(n,i,o)=>n<>>64-o;function add(n,i,o,u){let l=(i>>>0)+(u>>>0);return{h:n+o+(l/4294967296|0)|0,l:0|l}}i.rotlBL=rotlBL,i.add=add;let add3L=(n,i,o)=>(n>>>0)+(i>>>0)+(o>>>0);i.add3L=add3L;let add3H=(n,i,o,u)=>i+o+u+(n/4294967296|0)|0;i.add3H=add3H;let add4L=(n,i,o,u)=>(n>>>0)+(i>>>0)+(o>>>0)+(u>>>0);i.add4L=add4L;let add4H=(n,i,o,u,l)=>i+o+u+l+(n/4294967296|0)|0;i.add4H=add4H;let add5L=(n,i,o,u,l)=>(n>>>0)+(i>>>0)+(o>>>0)+(u>>>0)+(l>>>0);i.add5L=add5L;let add5H=(n,i,o,u,l,d)=>i+o+u+l+d+(n/4294967296|0)|0;i.add5H=add5H,i.default={fromBig,split,toBig,shrSH,shrSL,rotrSH,rotrSL,rotrBH,rotrBL,rotr32H,rotr32L,rotlSH,rotlSL,rotlBH,rotlBL,add,add3L,add3H,add4L,add4H,add5H,add5L}},76639:function(n,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.crypto=void 0,i.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},52259:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.hmac=i.HMAC=void 0;let u=o(29617),l=o(81522);let HMAC=class HMAC extends l.Hash{constructor(n,i){super(),this.finished=!1,this.destroyed=!1,(0,u.hash)(n);let o=(0,l.toBytes)(i);if(this.iHash=n.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 d=this.blockLen,x=new Uint8Array(d);x.set(o.length>d?n.create().update(o).digest():o);for(let n=0;nnew HMAC(n,i).update(o).digest(),i.hmac.create=(n,i)=>new HMAC(n,i)},50555:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.ripemd160=i.RIPEMD160=void 0;let u=o(91177),l=o(81522),d=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),x=Uint8Array.from({length:16},(n,i)=>i),I=x.map(n=>(9*n+5)%16),R=[x],j=[I];for(let n=0;n<4;n++)for(let i of[R,j])i.push(i[n].map(n=>d[n]));let W=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(n=>new Uint8Array(n)),J=R.map((n,i)=>n.map(n=>W[i][n])),et=j.map((n,i)=>n.map(n=>W[i][n])),ei=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),eo=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),rotl=(n,i)=>n<>>32-i;function f(n,i,o,u){return 0===n?i^o^u:1===n?i&o|~i&u:2===n?(i|~o)^u:3===n?i&u|o&~u:i^(o|~u)}let es=new Uint32Array(16);let RIPEMD160=class RIPEMD160 extends u.SHA2{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){let{h0:n,h1:i,h2:o,h3:u,h4:l}=this;return[n,i,o,u,l]}set(n,i,o,u,l){this.h0=0|n,this.h1=0|i,this.h2=0|o,this.h3=0|u,this.h4=0|l}process(n,i){for(let o=0;o<16;o++,i+=4)es[o]=n.getUint32(i,!0);let o=0|this.h0,u=o,l=0|this.h1,d=l,x=0|this.h2,I=x,W=0|this.h3,eu=W,ec=0|this.h4,el=ec;for(let n=0;n<5;n++){let i=4-n,ed=ei[n],ef=eo[n],eh=R[n],ep=j[n],em=J[n],eg=et[n];for(let i=0;i<16;i++){let u=rotl(o+f(n,l,x,W)+es[eh[i]]+ed,em[i])+ec|0;o=ec,ec=W,W=0|rotl(x,10),x=l,l=u}for(let n=0;n<16;n++){let o=rotl(u+f(i,d,I,eu)+es[ep[n]]+ef,eg[n])+el|0;u=el,el=eu,eu=0|rotl(I,10),I=d,d=o}}this.set(this.h1+x+eu|0,this.h2+W+el|0,this.h3+ec+u|0,this.h4+o+d|0,this.h0+l+I|0)}roundClean(){es.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}};i.RIPEMD160=RIPEMD160,i.ripemd160=(0,l.wrapConstructor)(()=>new RIPEMD160)},22511:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.sha224=i.sha256=void 0;let u=o(91177),l=o(81522),Chi=(n,i,o)=>n&i^~n&o,Maj=(n,i,o)=>n&i^n&o^i&o,d=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),x=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),I=new Uint32Array(64);let SHA256=class SHA256 extends u.SHA2{constructor(){super(64,32,8,!1),this.A=0|x[0],this.B=0|x[1],this.C=0|x[2],this.D=0|x[3],this.E=0|x[4],this.F=0|x[5],this.G=0|x[6],this.H=0|x[7]}get(){let{A:n,B:i,C:o,D:u,E:l,F:d,G:x,H:I}=this;return[n,i,o,u,l,d,x,I]}set(n,i,o,u,l,d,x,I){this.A=0|n,this.B=0|i,this.C=0|o,this.D=0|u,this.E=0|l,this.F=0|d,this.G=0|x,this.H=0|I}process(n,i){for(let o=0;o<16;o++,i+=4)I[o]=n.getUint32(i,!1);for(let n=16;n<64;n++){let i=I[n-15],o=I[n-2],u=(0,l.rotr)(i,7)^(0,l.rotr)(i,18)^i>>>3,d=(0,l.rotr)(o,17)^(0,l.rotr)(o,19)^o>>>10;I[n]=d+I[n-7]+u+I[n-16]|0}let{A:o,B:u,C:x,D:R,E:j,F:W,G:J,H:et}=this;for(let n=0;n<64;n++){let i=(0,l.rotr)(j,6)^(0,l.rotr)(j,11)^(0,l.rotr)(j,25),ei=et+i+Chi(j,W,J)+d[n]+I[n]|0,eo=(0,l.rotr)(o,2)^(0,l.rotr)(o,13)^(0,l.rotr)(o,22),es=eo+Maj(o,u,x)|0;et=J,J=W,W=j,j=R+ei|0,R=x,x=u,u=o,o=ei+es|0}o=o+this.A|0,u=u+this.B|0,x=x+this.C|0,R=R+this.D|0,j=j+this.E|0,W=W+this.F|0,J=J+this.G|0,et=et+this.H|0,this.set(o,u,x,R,j,W,J,et)}roundClean(){I.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}};let SHA224=class SHA224 extends SHA256{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}};i.sha256=(0,l.wrapConstructor)(()=>new SHA256),i.sha224=(0,l.wrapConstructor)(()=>new SHA224)},78455:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.shake256=i.shake128=i.keccak_512=i.keccak_384=i.keccak_256=i.keccak_224=i.sha3_512=i.sha3_384=i.sha3_256=i.sha3_224=i.Keccak=i.keccakP=void 0;let u=o(29617),l=o(17165),d=o(81522),[x,I,R]=[[],[],[]],j=BigInt(0),W=BigInt(1),J=BigInt(2),et=BigInt(7),ei=BigInt(256),eo=BigInt(113);for(let n=0,i=W,o=1,u=0;n<24;n++){[o,u]=[u,(2*o+3*u)%5],x.push(2*(5*u+o)),I.push((n+1)*(n+2)/2%64);let l=j;for(let n=0;n<7;n++)(i=(i<>et)*eo)%ei)&J&&(l^=W<<(W<o>32?(0,l.rotlBH)(n,i,o):(0,l.rotlSH)(n,i,o),rotlL=(n,i,o)=>o>32?(0,l.rotlBL)(n,i,o):(0,l.rotlSL)(n,i,o);function keccakP(n,i=24){let o=new Uint32Array(10);for(let u=24-i;u<24;u++){for(let i=0;i<10;i++)o[i]=n[i]^n[i+10]^n[i+20]^n[i+30]^n[i+40];for(let i=0;i<10;i+=2){let u=(i+8)%10,l=(i+2)%10,d=o[l],x=o[l+1],I=rotlH(d,x,1)^o[u],R=rotlL(d,x,1)^o[u+1];for(let o=0;o<50;o+=10)n[i+o]^=I,n[i+o+1]^=R}let i=n[2],l=n[3];for(let o=0;o<24;o++){let u=I[o],d=rotlH(i,l,u),R=rotlL(i,l,u),j=x[o];i=n[j],l=n[j+1],n[j]=d,n[j+1]=R}for(let i=0;i<50;i+=10){for(let u=0;u<10;u++)o[u]=n[i+u];for(let u=0;u<10;u++)n[i+u]^=~o[(u+2)%10]&o[(u+4)%10]}n[0]^=es[u],n[1]^=eu[u]}o.fill(0)}i.keccakP=keccakP;let Keccak=class Keccak extends d.Hash{constructor(n,i,o,l=!1,x=24){if(super(),this.blockLen=n,this.suffix=i,this.outputLen=o,this.enableXOF=l,this.rounds=x,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,u.number)(o),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,d.u32)(this.state)}keccak(){keccakP(this.state32,this.rounds),this.posOut=0,this.pos=0}update(n){(0,u.exists)(this);let{blockLen:i,state:o}=this;n=(0,d.toBytes)(n);let l=n.length;for(let u=0;u=o&&this.keccak();let d=Math.min(o-this.posOut,l-u);n.set(i.subarray(this.posOut,this.posOut+d),u),this.posOut+=d,u+=d}return n}xofInto(n){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(n)}xof(n){return(0,u.number)(n),this.xofInto(new Uint8Array(n))}digestInto(n){if((0,u.output)(n,this),this.finished)throw Error("digest() was already called");return this.writeInto(n),this.destroy(),n}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(n){let{blockLen:i,suffix:o,outputLen:u,rounds:l,enableXOF:d}=this;return n||(n=new Keccak(i,o,u,d,l)),n.state32.set(this.state32),n.pos=this.pos,n.posOut=this.posOut,n.finished=this.finished,n.rounds=l,n.suffix=o,n.outputLen=u,n.enableXOF=d,n.destroyed=this.destroyed,n}};i.Keccak=Keccak;let gen=(n,i,o)=>(0,d.wrapConstructor)(()=>new Keccak(i,n,o));i.sha3_224=gen(6,144,28),i.sha3_256=gen(6,136,32),i.sha3_384=gen(6,104,48),i.sha3_512=gen(6,72,64),i.keccak_224=gen(1,144,28),i.keccak_256=gen(1,136,32),i.keccak_384=gen(1,104,48),i.keccak_512=gen(1,72,64);let genShake=(n,i,o)=>(0,d.wrapXOFConstructorWithOpts)((u={})=>new Keccak(i,n,void 0===u.dkLen?o:u.dkLen,!0));i.shake128=genShake(31,168,16),i.shake256=genShake(31,136,32)},81522:function(n,i,o){"use strict";/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(i,"__esModule",{value:!0}),i.randomBytes=i.wrapXOFConstructorWithOpts=i.wrapConstructorWithOpts=i.wrapConstructor=i.checkOpts=i.Hash=i.concatBytes=i.toBytes=i.utf8ToBytes=i.asyncLoop=i.nextTick=i.hexToBytes=i.bytesToHex=i.isLE=i.rotr=i.createView=i.u32=i.u8=void 0;let u=o(76639),u8a=n=>n instanceof Uint8Array;if(i.u8=n=>new Uint8Array(n.buffer,n.byteOffset,n.byteLength),i.u32=n=>new Uint32Array(n.buffer,n.byteOffset,Math.floor(n.byteLength/4)),i.createView=n=>new DataView(n.buffer,n.byteOffset,n.byteLength),i.rotr=(n,i)=>n<<32-i|n>>>i,i.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!i.isLE)throw Error("Non little-endian hardware is not supported");let l=Array.from({length:256},(n,i)=>i.toString(16).padStart(2,"0"));function bytesToHex(n){if(!u8a(n))throw Error("Uint8Array expected");let i="";for(let o=0;o{};async function asyncLoop(n,o,u){let l=Date.now();for(let d=0;d=0&&nn+i.length,0)),o=0;return n.forEach(n=>{if(!u8a(n))throw Error("Uint8Array expected");i.set(n,o),o+=n.length}),i}i.nextTick=nextTick,i.asyncLoop=asyncLoop,i.utf8ToBytes=utf8ToBytes,i.toBytes=toBytes,i.concatBytes=concatBytes;let Hash=class Hash{clone(){return this._cloneInto()}};i.Hash=Hash;let d={}.toString;function checkOpts(n,i){if(void 0!==i&&"[object Object]"!==d.call(i))throw Error("Options should be object or undefined");let o=Object.assign(n,i);return o}function wrapConstructor(n){let hashC=i=>n().update(toBytes(i)).digest(),i=n();return hashC.outputLen=i.outputLen,hashC.blockLen=i.blockLen,hashC.create=()=>n(),hashC}function wrapConstructorWithOpts(n){let hashC=(i,o)=>n(o).update(toBytes(i)).digest(),i=n({});return hashC.outputLen=i.outputLen,hashC.blockLen=i.blockLen,hashC.create=i=>n(i),hashC}function wrapXOFConstructorWithOpts(n){let hashC=(i,o)=>n(o).update(toBytes(i)).digest(),i=n({});return hashC.outputLen=i.outputLen,hashC.blockLen=i.blockLen,hashC.create=i=>n(i),hashC}function randomBytes(n=32){if(u.crypto&&"function"==typeof u.crypto.getRandomValues)return u.crypto.getRandomValues(new Uint8Array(n));throw Error("crypto.getRandomValues must be defined")}i.checkOpts=checkOpts,i.wrapConstructor=wrapConstructor,i.wrapConstructorWithOpts=wrapConstructorWithOpts,i.wrapXOFConstructorWithOpts=wrapXOFConstructorWithOpts,i.randomBytes=randomBytes},46921:function(n,i,o){"use strict";i.N=void 0;var u=o(79441);Object.defineProperty(i,"N",{enumerable:!0,get:function(){return u.SafeAppProvider}})},79441:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.SafeAppProvider=void 0;let u=o(68495),l=o(7909);let SafeAppProvider=class SafeAppProvider extends u.EventEmitter{constructor(n,i){super(),this.submittedTxs=new Map,this.safe=n,this.sdk=i}async connect(){this.emit("connect",{chainId:this.chainId})}async disconnect(){}get chainId(){return this.safe.chainId}async request(n){let{method:i,params:o=[]}=n;switch(i){case"eth_accounts":return[this.safe.safeAddress];case"net_version":case"eth_chainId":return`0x${this.chainId.toString(16)}`;case"personal_sign":{let[n,i]=o;if(this.safe.safeAddress.toLowerCase()!==i.toLowerCase())throw Error("The address or message hash is invalid");let u=await this.sdk.txs.signMessage(n),l="signature"in u?u.signature:void 0;return l||"0x"}case"eth_sign":{let[n,i]=o;if(this.safe.safeAddress.toLowerCase()!==n.toLowerCase()||!i.startsWith("0x"))throw Error("The address or message hash is invalid");let u=await this.sdk.txs.signMessage(i),l="signature"in u?u.signature:void 0;return l||"0x"}case"eth_signTypedData":case"eth_signTypedData_v4":{let[n,i]=o,u="string"==typeof i?JSON.parse(i):i;if(this.safe.safeAddress.toLowerCase()!==n.toLowerCase())throw Error("The address is invalid");let l=await this.sdk.txs.signTypedMessage(u),d="signature"in l?l.signature:void 0;return d||"0x"}case"eth_sendTransaction":let u={...o[0],value:o[0].value||"0",data:o[0].data||"0x"};"string"==typeof u.gas&&u.gas.startsWith("0x")&&(u.gas=parseInt(u.gas,16));let d=await this.sdk.txs.send({txs:[u],params:{safeTxGas:u.gas}});return this.submittedTxs.set(d.safeTxHash,{from:this.safe.safeAddress,hash:d.safeTxHash,gas:0,gasPrice:"0x00",nonce:0,input:u.data,value:u.value,to:u.to,blockHash:null,blockNumber:null,transactionIndex:null}),d.safeTxHash;case"eth_blockNumber":let x=await this.sdk.eth.getBlockByNumber(["latest"]);return x.number;case"eth_getBalance":return this.sdk.eth.getBalance([(0,l.getLowerCase)(o[0]),o[1]]);case"eth_getCode":return this.sdk.eth.getCode([(0,l.getLowerCase)(o[0]),o[1]]);case"eth_getTransactionCount":return this.sdk.eth.getTransactionCount([(0,l.getLowerCase)(o[0]),o[1]]);case"eth_getStorageAt":return this.sdk.eth.getStorageAt([(0,l.getLowerCase)(o[0]),o[1],o[2]]);case"eth_getBlockByNumber":return this.sdk.eth.getBlockByNumber([o[0],o[1]]);case"eth_getBlockByHash":return this.sdk.eth.getBlockByHash([o[0],o[1]]);case"eth_getTransactionByHash":let I=o[0];try{let n=await this.sdk.txs.getBySafeTxHash(I);I=n.txHash||I}catch(n){}if(this.submittedTxs.has(I))return this.submittedTxs.get(I);return this.sdk.eth.getTransactionByHash([I]).then(n=>(n&&(n.hash=o[0]),n));case"eth_getTransactionReceipt":{let n=o[0];try{let i=await this.sdk.txs.getBySafeTxHash(n);n=i.txHash||n}catch(n){}return this.sdk.eth.getTransactionReceipt([n]).then(n=>(n&&(n.transactionHash=o[0]),n))}case"eth_estimateGas":return this.sdk.eth.getEstimateGas(o[0]);case"eth_call":return this.sdk.eth.call([o[0],o[1]]);case"eth_getLogs":return this.sdk.eth.getPastLogs([o[0]]);case"eth_gasPrice":return this.sdk.eth.getGasPrice();case"wallet_getPermissions":return this.sdk.wallet.getPermissions();case"wallet_requestPermissions":return this.sdk.wallet.requestPermissions(o[0]);case"safe_setSettings":return this.sdk.eth.setSafeSettings([o[0]]);default:throw Error(`"${n.method}" not implemented`)}}send(n,i){n||i("Undefined request"),this.request(n).then(o=>i(null,{jsonrpc:"2.0",id:n.id,result:o})).catch(n=>i(n,null))}};i.SafeAppProvider=SafeAppProvider},7909:function(n,i){"use strict";function getLowerCase(n){return n?n.toLowerCase():n}Object.defineProperty(i,"__esModule",{value:!0}),i.getLowerCase=void 0,i.getLowerCase=getLowerCase},87556:function(n,i,o){"use strict";var u=this&&this.__createBinding||(Object.create?function(n,i,o,u){void 0===u&&(u=o);var l=Object.getOwnPropertyDescriptor(i,o);(!l||("get"in l?!i.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,l)}:function(n,i,o,u){void 0===u&&(u=o),n[u]=i[o]}),l=this&&this.__exportStar||function(n,i){for(var o in n)"default"===o||Object.prototype.hasOwnProperty.call(i,o)||u(i,n,o)};Object.defineProperty(i,"__esModule",{value:!0});let d=o(13466);let PostMessageCommunicator=class PostMessageCommunicator{constructor(n=null,i=!1){this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isServer="undefined"==typeof window,this.isValidMessage=({origin:n,data:i,source:o})=>{let u=!this.isServer&&o===window.parent,l=void 0!==i.version&&parseInt(i.version.split(".")[0]),d=!0;return Array.isArray(this.allowedOrigins)&&(d=void 0!==this.allowedOrigins.find(i=>i.test(n))),!!i&&u&&l>=1&&d},this.logIncomingMessage=n=>{console.info(`Safe Apps SDK v1: A message was received from origin ${n.origin}. `,n.data)},this.onParentMessage=n=>{this.isValidMessage(n)&&(this.debugMode&&this.logIncomingMessage(n),this.handleIncomingMessage(n.data))},this.handleIncomingMessage=n=>{let{id:i}=n,o=this.callbacks.get(i);o&&(o(n),this.callbacks.delete(i))},this.send=(n,i)=>{let o=d.MessageFormatter.makeRequest(n,i);if(this.isServer)throw Error("Window doesn't exist");return window.parent.postMessage(o,"*"),new Promise((n,i)=>{this.callbacks.set(o.id,o=>{if(!o.success){i(Error(o.error));return}n(o)})})},this.allowedOrigins=n,this.debugMode=i,this.isServer||window.addEventListener("message",this.onParentMessage)}};i.default=PostMessageCommunicator,l(o(20835),i)},13466:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.MessageFormatter=void 0;let u=o(85330),l=o(99680);let MessageFormatter=class MessageFormatter{};i.MessageFormatter=MessageFormatter,MessageFormatter.makeRequest=(n,i)=>{let o=(0,l.generateRequestId)();return{id:o,method:n,params:i,env:{sdkVersion:(0,u.getSDKVersion)()}}},MessageFormatter.makeResponse=(n,i,o)=>({id:n,success:!0,version:o,data:i}),MessageFormatter.makeErrorResponse=(n,i,o)=>({id:n,success:!1,error:i,version:o})},20835:function(n,i){"use strict";var o;Object.defineProperty(i,"__esModule",{value:!0}),i.RestrictedMethods=i.Methods=void 0,(o=i.Methods||(i.Methods={})).sendTransactions="sendTransactions",o.rpcCall="rpcCall",o.getChainInfo="getChainInfo",o.getSafeInfo="getSafeInfo",o.getTxBySafeTxHash="getTxBySafeTxHash",o.getSafeBalances="getSafeBalances",o.signMessage="signMessage",o.signTypedMessage="signTypedMessage",o.getEnvironmentInfo="getEnvironmentInfo",o.getOffChainSignature="getOffChainSignature",o.requestAddressBook="requestAddressBook",o.wallet_getPermissions="wallet_getPermissions",o.wallet_requestPermissions="wallet_requestPermissions",(i.RestrictedMethods||(i.RestrictedMethods={})).requestAddressBook="requestAddressBook"},99680:function(n,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.generateRequestId=void 0;let dec2hex=n=>n.toString(16).padStart(2,"0"),generateId=n=>{let i=new Uint8Array((n||40)/2);return window.crypto.getRandomValues(i),Array.from(i,dec2hex).join("")};i.generateRequestId=()=>"undefined"!=typeof window?generateId(10):new Date().getTime().toString(36)},1451:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0});let u=o(66501),l=o(98811),hasPermission=(n,i)=>i.some(i=>i.parentCapability===n);i.default=()=>(n,i,o)=>{let d=o.value;return o.value=async function(){let n=new u.Wallet(this.communicator),o=await n.getPermissions();if(hasPermission(i,o)||(o=await n.requestPermissions([{[i]:{}}])),!hasPermission(i,o))throw new l.PermissionsError("Permissions rejected",l.PERMISSIONS_REQUEST_REJECTED);return d.apply(this)},o}},15952:function(n,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.RPC_CALLS=void 0,i.RPC_CALLS={eth_call:"eth_call",eth_gasPrice:"eth_gasPrice",eth_getLogs:"eth_getLogs",eth_getBalance:"eth_getBalance",eth_getCode:"eth_getCode",eth_getBlockByHash:"eth_getBlockByHash",eth_getBlockByNumber:"eth_getBlockByNumber",eth_getStorageAt:"eth_getStorageAt",eth_getTransactionByHash:"eth_getTransactionByHash",eth_getTransactionReceipt:"eth_getTransactionReceipt",eth_getTransactionCount:"eth_getTransactionCount",eth_estimateGas:"eth_estimateGas",safe_setSettings:"safe_setSettings"}},93454:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.Eth=void 0;let u=o(15952),l=o(20835),d={defaultBlockParam:(n="latest")=>n,returnFullTxObjectParam:(n=!1)=>n,blockNumberToHex:n=>Number.isInteger(n)?`0x${n.toString(16)}`:n};let Eth=class Eth{constructor(n){this.communicator=n,this.call=this.buildRequest({call:u.RPC_CALLS.eth_call,formatters:[null,d.defaultBlockParam]}),this.getBalance=this.buildRequest({call:u.RPC_CALLS.eth_getBalance,formatters:[null,d.defaultBlockParam]}),this.getCode=this.buildRequest({call:u.RPC_CALLS.eth_getCode,formatters:[null,d.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:u.RPC_CALLS.eth_getStorageAt,formatters:[null,d.blockNumberToHex,d.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:u.RPC_CALLS.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:u.RPC_CALLS.eth_getBlockByHash,formatters:[null,d.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:u.RPC_CALLS.eth_getBlockByNumber,formatters:[d.blockNumberToHex,d.returnFullTxObjectParam]}),this.getTransactionByHash=this.buildRequest({call:u.RPC_CALLS.eth_getTransactionByHash}),this.getTransactionReceipt=this.buildRequest({call:u.RPC_CALLS.eth_getTransactionReceipt}),this.getTransactionCount=this.buildRequest({call:u.RPC_CALLS.eth_getTransactionCount,formatters:[null,d.defaultBlockParam]}),this.getGasPrice=this.buildRequest({call:u.RPC_CALLS.eth_gasPrice}),this.getEstimateGas=n=>this.buildRequest({call:u.RPC_CALLS.eth_estimateGas})([n]),this.setSafeSettings=this.buildRequest({call:u.RPC_CALLS.safe_setSettings})}buildRequest(n){let{call:i,formatters:o}=n;return async n=>{o&&Array.isArray(n)&&o.forEach((i,o)=>{i&&(n[o]=i(n[o]))});let u=await this.communicator.send(l.Methods.rpcCall,{call:i,params:n||[]});return u.data}}};i.Eth=Eth},8541:function(n,i,o){"use strict";var u=this&&this.__createBinding||(Object.create?function(n,i,o,u){void 0===u&&(u=o);var l=Object.getOwnPropertyDescriptor(i,o);(!l||("get"in l?!i.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,l)}:function(n,i,o,u){void 0===u&&(u=o),n[u]=i[o]}),l=this&&this.__exportStar||function(n,i){for(var o in n)"default"===o||Object.prototype.hasOwnProperty.call(i,o)||u(i,n,o)},d=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(i,"__esModule",{value:!0}),i.getSDKVersion=void 0;let x=d(o(22910));i.default=x.default,l(o(22910),i),l(o(46229),i),l(o(20835),i),l(o(13466),i);var I=o(85330);Object.defineProperty(i,"getSDKVersion",{enumerable:!0,get:function(){return I.getSDKVersion}})},33118:function(n,i,o){"use strict";var u=this&&this.__decorate||function(n,i,o,u){var l,d=arguments.length,x=d<3?i:null===u?u=Object.getOwnPropertyDescriptor(i,o):u;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)x=Reflect.decorate(n,i,o,u);else for(var I=n.length-1;I>=0;I--)(l=n[I])&&(x=(d<3?l(x):d>3?l(i,o,x):l(i,o))||x);return d>3&&x&&Object.defineProperty(i,o,x),x},l=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(i,"__esModule",{value:!0}),i.Safe=void 0;let d=o(35157),x=o(17804),I=o(20835),R=o(15952),j=o(46229),W=l(o(1451));let Safe=class Safe{constructor(n){this.communicator=n}async getChainInfo(){let n=await this.communicator.send(I.Methods.getChainInfo,void 0);return n.data}async getInfo(){let n=await this.communicator.send(I.Methods.getSafeInfo,void 0);return n.data}async experimental_getBalances({currency:n="usd"}={}){let i=await this.communicator.send(I.Methods.getSafeBalances,{currency:n});return i.data}async check1271Signature(n,i="0x"){let o=await this.getInfo(),u=(0,d.encodeFunctionData)({abi:[{constant:!1,inputs:[{name:"_dataHash",type:"bytes32"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[n,i]}),l={call:R.RPC_CALLS.eth_call,params:[{to:o.safeAddress,data:u},"latest"]};try{let n=await this.communicator.send(I.Methods.rpcCall,l);return n.data.slice(0,10).toLowerCase()===x.MAGIC_VALUE}catch(n){return!1}}async check1271SignatureBytes(n,i="0x"){let o=await this.getInfo(),u=(0,d.encodeFunctionData)({abi:[{constant:!1,inputs:[{name:"_data",type:"bytes"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[n,i]}),l={call:R.RPC_CALLS.eth_call,params:[{to:o.safeAddress,data:u},"latest"]};try{let n=await this.communicator.send(I.Methods.rpcCall,l);return n.data.slice(0,10).toLowerCase()===x.MAGIC_VALUE_BYTES}catch(n){return!1}}calculateMessageHash(n){return(0,d.hashMessage)(n)}calculateTypedMessageHash(n){let i="object"==typeof n.domain.chainId?n.domain.chainId.toNumber():Number(n.domain.chainId),o=n.primaryType;if(!o){let i=Object.values(n.types),u=Object.keys(n.types).filter(n=>i.every(i=>i.every(({type:i})=>i.replace("[","").replace("]","")!==n)));if(0===u.length||u.length>1)throw Error("Please specify primaryType");o=u[0]}return(0,d.hashTypedData)({message:n.message,domain:Object.assign(Object.assign({},n.domain),{chainId:i,verifyingContract:n.domain.verifyingContract,salt:n.domain.salt}),types:n.types,primaryType:o})}async getOffChainSignature(n){let i=await this.communicator.send(I.Methods.getOffChainSignature,n);return i.data}async isMessageSigned(n,i="0x"){let o;if("string"==typeof n&&(o=async()=>{let o=this.calculateMessageHash(n),u=await this.isMessageHashSigned(o,i);return u}),(0,j.isObjectEIP712TypedData)(n)&&(o=async()=>{let o=this.calculateTypedMessageHash(n),u=await this.isMessageHashSigned(o,i);return u}),o){let n=await o();return n}throw Error("Invalid message type")}async isMessageHashSigned(n,i="0x"){let o=[this.check1271Signature.bind(this),this.check1271SignatureBytes.bind(this)];for(let u of o){let o=await u(n,i);if(o)return!0}return!1}async getEnvironmentInfo(){let n=await this.communicator.send(I.Methods.getEnvironmentInfo,void 0);return n.data}async requestAddressBook(){let n=await this.communicator.send(I.Methods.requestAddressBook,void 0);return n.data}};u([(0,W.default)()],Safe.prototype,"requestAddressBook",null),i.Safe=Safe},17804:function(n,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.MAGIC_VALUE_BYTES=i.MAGIC_VALUE=void 0,i.MAGIC_VALUE="0x1626ba7e",i.MAGIC_VALUE_BYTES="0x20c13b0b"},22910:function(n,i,o){"use strict";var u=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(i,"__esModule",{value:!0});let l=u(o(87556)),d=o(6032),x=o(93454),I=o(33118),R=o(66501);let SafeAppsSDK=class SafeAppsSDK{constructor(n={}){let{allowedDomains:i=null,debug:o=!1}=n;this.communicator=new l.default(i,o),this.eth=new x.Eth(this.communicator),this.txs=new d.TXs(this.communicator),this.safe=new I.Safe(this.communicator),this.wallet=new R.Wallet(this.communicator)}};i.default=SafeAppsSDK},6032:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.TXs=void 0;let u=o(20835),l=o(46229);let TXs=class TXs{constructor(n){this.communicator=n}async getBySafeTxHash(n){if(!n)throw Error("Invalid safeTxHash");let i=await this.communicator.send(u.Methods.getTxBySafeTxHash,{safeTxHash:n});return i.data}async signMessage(n){let i=await this.communicator.send(u.Methods.signMessage,{message:n});return i.data}async signTypedMessage(n){if(!(0,l.isObjectEIP712TypedData)(n))throw Error("Invalid typed data");let i=await this.communicator.send(u.Methods.signTypedMessage,{typedData:n});return i.data}async send({txs:n,params:i}){if(!n||!n.length)throw Error("No transactions were passed");let o=await this.communicator.send(u.Methods.sendTransactions,{txs:n,params:i});return o.data}};i.TXs=TXs},51021:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.TransferDirection=i.TransactionStatus=i.TokenType=i.Operation=void 0;var u=o(85189);Object.defineProperty(i,"Operation",{enumerable:!0,get:function(){return u.Operation}}),Object.defineProperty(i,"TokenType",{enumerable:!0,get:function(){return u.TokenType}}),Object.defineProperty(i,"TransactionStatus",{enumerable:!0,get:function(){return u.TransactionStatus}}),Object.defineProperty(i,"TransferDirection",{enumerable:!0,get:function(){return u.TransferDirection}})},46229:function(n,i,o){"use strict";var u=this&&this.__createBinding||(Object.create?function(n,i,o,u){void 0===u&&(u=o);var l=Object.getOwnPropertyDescriptor(i,o);(!l||("get"in l?!i.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,l)}:function(n,i,o,u){void 0===u&&(u=o),n[u]=i[o]}),l=this&&this.__exportStar||function(n,i){for(var o in n)"default"===o||Object.prototype.hasOwnProperty.call(i,o)||u(i,n,o)};Object.defineProperty(i,"__esModule",{value:!0}),l(o(49941),i),l(o(8330),i),l(o(51021),i),l(o(89809),i)},89809:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),o(20835)},98811:function(n,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.PermissionsError=i.PERMISSIONS_REQUEST_REJECTED=void 0,i.PERMISSIONS_REQUEST_REJECTED=4001;let PermissionsError=class PermissionsError extends Error{constructor(n,i,o){super(n),this.code=i,this.data=o,Object.setPrototypeOf(this,PermissionsError.prototype)}};i.PermissionsError=PermissionsError},8330:function(n,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0})},49941:function(n,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isObjectEIP712TypedData=void 0,i.isObjectEIP712TypedData=n=>"object"==typeof n&&null!=n&&"domain"in n&&"types"in n&&"message"in n},85330:function(n,i,o){"use strict";var u=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(i,"__esModule",{value:!0}),i.getSDKVersion=void 0;let l=u(o(82826));i.getSDKVersion=()=>l.default.version.split("-")[0]},66501:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.Wallet=void 0;let u=o(20835),l=o(98811);let Wallet=class Wallet{constructor(n){this.communicator=n}async getPermissions(){let n=await this.communicator.send(u.Methods.wallet_getPermissions,void 0);return n.data}async requestPermissions(n){if(!this.isPermissionRequestValid(n))throw new l.PermissionsError("Permissions request is invalid",l.PERMISSIONS_REQUEST_REJECTED);try{let i=await this.communicator.send(u.Methods.wallet_requestPermissions,n);return i.data}catch(n){throw new l.PermissionsError("Permissions rejected",l.PERMISSIONS_REQUEST_REJECTED)}}isPermissionRequestValid(n){return n.every(n=>"object"==typeof n&&Object.keys(n).every(n=>!!Object.values(u.RestrictedMethods).includes(n)))}};i.Wallet=Wallet},74450:function(n,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.DEFAULT_BASE_URL=void 0,i.DEFAULT_BASE_URL="https://safe-client.safe.global"},5587:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.deleteEndpoint=i.getEndpoint=i.postEndpoint=void 0;let u=o(3984);function makeUrl(n,i,o,l){let d=(0,u.insertParams)(i,o),x=(0,u.stringifyQuery)(l);return`${n}${d}${x}`}function postEndpoint(n,i,o){let l=makeUrl(n,i,null==o?void 0:o.path,null==o?void 0:o.query);return(0,u.fetchData)(l,null==o?void 0:o.body)}function getEndpoint(n,i,o,l){if(l)return(0,u.fetchData)(l);let d=makeUrl(n,i,null==o?void 0:o.path,null==o?void 0:o.query);return(0,u.fetchData)(d)}function deleteEndpoint(n,i,o){let l=makeUrl(n,i,null==o?void 0:o.path);return(0,u.deleteData)(l)}i.postEndpoint=postEndpoint,i.getEndpoint=getEndpoint,i.deleteEndpoint=deleteEndpoint},85189:function(n,i,o){"use strict";var u=this&&this.__createBinding||(Object.create?function(n,i,o,u){void 0===u&&(u=o);var l=Object.getOwnPropertyDescriptor(i,o);(!l||("get"in l?!i.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,l)}:function(n,i,o,u){void 0===u&&(u=o),n[u]=i[o]}),l=this&&this.__exportStar||function(n,i){for(var o in n)"default"===o||Object.prototype.hasOwnProperty.call(i,o)||u(i,n,o)};Object.defineProperty(i,"__esModule",{value:!0}),i.unregisterDevice=i.unregisterSafe=i.registerDevice=i.getDelegates=i.confirmSafeMessage=i.proposeSafeMessage=i.getSafeMessage=i.getSafeMessages=i.getDecodedData=i.getMasterCopies=i.getSafeApps=i.getChainConfig=i.getChainsConfig=i.proposeTransaction=i.getNonces=i.postSafeGasEstimation=i.getTransactionDetails=i.getTransactionQueue=i.getTransactionHistory=i.getCollectiblesPage=i.getCollectibles=i.getOwnedSafes=i.getFiatCurrencies=i.getBalances=i.getMultisigTransactions=i.getModuleTransactions=i.getIncomingTransfers=i.getSafeInfo=i.setBaseUrl=void 0;let d=o(5587),x=o(74450);l(o(79003),i),l(o(60903),i),l(o(1975),i),l(o(5661),i),l(o(5235),i),l(o(91361),i),l(o(70362),i),l(o(49784),i),l(o(65987),i);let I=x.DEFAULT_BASE_URL;function getSafeInfo(n,i){return(0,d.getEndpoint)(I,"/v1/chains/{chainId}/safes/{address}",{path:{chainId:n,address:i}})}function getIncomingTransfers(n,i,o,u){return(0,d.getEndpoint)(I,"/v1/chains/{chainId}/safes/{address}/incoming-transfers/",{path:{chainId:n,address:i},query:o},u)}function getModuleTransactions(n,i,o,u){return(0,d.getEndpoint)(I,"/v1/chains/{chainId}/safes/{address}/module-transactions/",{path:{chainId:n,address:i},query:o},u)}function getMultisigTransactions(n,i,o,u){return(0,d.getEndpoint)(I,"/v1/chains/{chainId}/safes/{address}/multisig-transactions/",{path:{chainId:n,address:i},query:o},u)}function getBalances(n,i,o="usd",u={}){return(0,d.getEndpoint)(I,"/v1/chains/{chainId}/safes/{address}/balances/{currency}",{path:{chainId:n,address:i,currency:o},query:u})}function getFiatCurrencies(){return(0,d.getEndpoint)(I,"/v1/balances/supported-fiat-codes")}function getOwnedSafes(n,i){return(0,d.getEndpoint)(I,"/v1/chains/{chainId}/owners/{address}/safes",{path:{chainId:n,address:i}})}function getCollectibles(n,i,o={}){return(0,d.getEndpoint)(I,"/v1/chains/{chainId}/safes/{address}/collectibles",{path:{chainId:n,address:i},query:o})}function getCollectiblesPage(n,i,o={},u){return(0,d.getEndpoint)(I,"/v2/chains/{chainId}/safes/{address}/collectibles",{path:{chainId:n,address:i},query:o},u)}function getTransactionHistory(n,i,o={},u){return(0,d.getEndpoint)(I,"/v1/chains/{chainId}/safes/{safe_address}/transactions/history",{path:{chainId:n,safe_address:i},query:o},u)}function getTransactionQueue(n,i,o={},u){return(0,d.getEndpoint)(I,"/v1/chains/{chainId}/safes/{safe_address}/transactions/queued",{path:{chainId:n,safe_address:i},query:o},u)}function getTransactionDetails(n,i){return(0,d.getEndpoint)(I,"/v1/chains/{chainId}/transactions/{transactionId}",{path:{chainId:n,transactionId:i}})}function postSafeGasEstimation(n,i,o){return(0,d.postEndpoint)(I,"/v2/chains/{chainId}/safes/{safe_address}/multisig-transactions/estimations",{path:{chainId:n,safe_address:i},body:o})}function getNonces(n,i){return(0,d.getEndpoint)(I,"/v1/chains/{chainId}/safes/{safe_address}/nonces",{path:{chainId:n,safe_address:i}})}function proposeTransaction(n,i,o){return(0,d.postEndpoint)(I,"/v1/chains/{chainId}/transactions/{safe_address}/propose",{path:{chainId:n,safe_address:i},body:o})}function getChainsConfig(n){return(0,d.getEndpoint)(I,"/v1/chains",{query:n})}function getChainConfig(n){return(0,d.getEndpoint)(I,"/v1/chains/{chainId}",{path:{chainId:n}})}function getSafeApps(n,i={}){return(0,d.getEndpoint)(I,"/v1/chains/{chainId}/safe-apps",{path:{chainId:n},query:i})}function getMasterCopies(n){return(0,d.getEndpoint)(I,"/v1/chains/{chainId}/about/master-copies",{path:{chainId:n}})}function getDecodedData(n,i,o){return(0,d.postEndpoint)(I,"/v1/chains/{chainId}/data-decoder",{path:{chainId:n},body:{data:i,to:o}})}function getSafeMessages(n,i,o){return(0,d.getEndpoint)(I,"/v1/chains/{chainId}/safes/{safe_address}/messages",{path:{chainId:n,safe_address:i},query:{}},o)}function getSafeMessage(n,i){return(0,d.getEndpoint)(I,"/v1/chains/{chainId}/messages/{message_hash}",{path:{chainId:n,message_hash:i}})}function proposeSafeMessage(n,i,o){return(0,d.postEndpoint)(I,"/v1/chains/{chainId}/safes/{safe_address}/messages",{path:{chainId:n,safe_address:i},body:o})}function confirmSafeMessage(n,i,o){return(0,d.postEndpoint)(I,"/v1/chains/{chainId}/messages/{message_hash}/signatures",{path:{chainId:n,message_hash:i},body:o})}function getDelegates(n,i={}){return(0,d.getEndpoint)(I,"/v1/chains/{chainId}/delegates",{path:{chainId:n},query:i})}function registerDevice(n){return(0,d.postEndpoint)(I,"/v1/register/notifications",{body:n})}function unregisterSafe(n,i,o){return(0,d.deleteEndpoint)(I,"/v1/chains/{chainId}/notifications/devices/{uuid}/safes/{safe_address}",{path:{chainId:n,safe_address:i,uuid:o}})}function unregisterDevice(n,i){return(0,d.deleteEndpoint)(I,"/v1/chains/{chainId}/notifications/devices/{uuid}",{path:{chainId:n,uuid:i}})}i.setBaseUrl=n=>{I=n},i.getSafeInfo=getSafeInfo,i.getIncomingTransfers=getIncomingTransfers,i.getModuleTransactions=getModuleTransactions,i.getMultisigTransactions=getMultisigTransactions,i.getBalances=getBalances,i.getFiatCurrencies=getFiatCurrencies,i.getOwnedSafes=getOwnedSafes,i.getCollectibles=getCollectibles,i.getCollectiblesPage=getCollectiblesPage,i.getTransactionHistory=getTransactionHistory,i.getTransactionQueue=getTransactionQueue,i.getTransactionDetails=getTransactionDetails,i.postSafeGasEstimation=postSafeGasEstimation,i.getNonces=getNonces,i.proposeTransaction=proposeTransaction,i.getChainsConfig=getChainsConfig,i.getChainConfig=getChainConfig,i.getSafeApps=getSafeApps,i.getMasterCopies=getMasterCopies,i.getDecodedData=getDecodedData,i.getSafeMessages=getSafeMessages,i.getSafeMessage=getSafeMessage,i.proposeSafeMessage=proposeSafeMessage,i.confirmSafeMessage=confirmSafeMessage,i.getDelegates=getDelegates,i.registerDevice=registerDevice,i.unregisterSafe=unregisterSafe,i.unregisterDevice=unregisterDevice},5661:function(n,i){"use strict";var o,u,l;Object.defineProperty(i,"__esModule",{value:!0}),i.FEATURES=i.GAS_PRICE_TYPE=i.RPC_AUTHENTICATION=void 0,(o=i.RPC_AUTHENTICATION||(i.RPC_AUTHENTICATION={})).API_KEY_PATH="API_KEY_PATH",o.NO_AUTHENTICATION="NO_AUTHENTICATION",o.UNKNOWN="UNKNOWN",(u=i.GAS_PRICE_TYPE||(i.GAS_PRICE_TYPE={})).ORACLE="ORACLE",u.FIXED="FIXED",u.FIXED_1559="FIXED1559",u.UNKNOWN="UNKNOWN",(l=i.FEATURES||(i.FEATURES={})).ERC721="ERC721",l.SAFE_APPS="SAFE_APPS",l.CONTRACT_INTERACTION="CONTRACT_INTERACTION",l.DOMAIN_LOOKUP="DOMAIN_LOOKUP",l.SPENDING_LIMIT="SPENDING_LIMIT",l.EIP1559="EIP1559",l.SAFE_TX_GAS_OPTIONAL="SAFE_TX_GAS_OPTIONAL",l.TX_SIMULATION="TX_SIMULATION",l.EIP1271="EIP1271"},5235:function(n,i){"use strict";var o;Object.defineProperty(i,"__esModule",{value:!0}),i.TokenType=void 0,(o=i.TokenType||(i.TokenType={})).ERC20="ERC20",o.ERC721="ERC721",o.NATIVE_TOKEN="NATIVE_TOKEN"},70362:function(n,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0})},91361:function(n,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0})},65987:function(n,i){"use strict";var o;Object.defineProperty(i,"__esModule",{value:!0}),i.DeviceType=void 0,(o=i.DeviceType||(i.DeviceType={})).ANDROID="ANDROID",o.IOS="IOS",o.WEB="WEB"},60903:function(n,i){"use strict";var o,u;Object.defineProperty(i,"__esModule",{value:!0}),i.SafeAppSocialPlatforms=i.SafeAppFeatures=i.SafeAppAccessPolicyTypes=void 0,(o=i.SafeAppAccessPolicyTypes||(i.SafeAppAccessPolicyTypes={})).NoRestrictions="NO_RESTRICTIONS",o.DomainAllowlist="DOMAIN_ALLOWLIST",(i.SafeAppFeatures||(i.SafeAppFeatures={})).BATCHED_TRANSACTIONS="BATCHED_TRANSACTIONS",(u=i.SafeAppSocialPlatforms||(i.SafeAppSocialPlatforms={})).TWITTER="TWITTER",u.GITHUB="GITHUB",u.DISCORD="DISCORD"},79003:function(n,i){"use strict";var o;Object.defineProperty(i,"__esModule",{value:!0}),i.ImplementationVersionState=void 0,(o=i.ImplementationVersionState||(i.ImplementationVersionState={})).UP_TO_DATE="UP_TO_DATE",o.OUTDATED="OUTDATED",o.UNKNOWN="UNKNOWN"},49784:function(n,i){"use strict";var o,u;Object.defineProperty(i,"__esModule",{value:!0}),i.SafeMessageStatus=i.SafeMessageListItemType=void 0,(o=i.SafeMessageListItemType||(i.SafeMessageListItemType={})).DATE_LABEL="DATE_LABEL",o.MESSAGE="MESSAGE",(u=i.SafeMessageStatus||(i.SafeMessageStatus={})).NEEDS_CONFIRMATION="NEEDS_CONFIRMATION",u.CONFIRMED="CONFIRMED"},1975:function(n,i){"use strict";var o,u,l,d,x,I,R,j,W,J;Object.defineProperty(i,"__esModule",{value:!0}),i.LabelValue=i.DetailedExecutionInfoType=i.TransactionListItemType=i.ConflictType=i.TransactionInfoType=i.SettingsInfoType=i.TransactionTokenType=i.TransferDirection=i.TransactionStatus=i.Operation=void 0,(o=i.Operation||(i.Operation={}))[o.CALL=0]="CALL",o[o.DELEGATE=1]="DELEGATE",(u=i.TransactionStatus||(i.TransactionStatus={})).AWAITING_CONFIRMATIONS="AWAITING_CONFIRMATIONS",u.AWAITING_EXECUTION="AWAITING_EXECUTION",u.CANCELLED="CANCELLED",u.FAILED="FAILED",u.SUCCESS="SUCCESS",(l=i.TransferDirection||(i.TransferDirection={})).INCOMING="INCOMING",l.OUTGOING="OUTGOING",l.UNKNOWN="UNKNOWN",(d=i.TransactionTokenType||(i.TransactionTokenType={})).ERC20="ERC20",d.ERC721="ERC721",d.NATIVE_COIN="NATIVE_COIN",(x=i.SettingsInfoType||(i.SettingsInfoType={})).SET_FALLBACK_HANDLER="SET_FALLBACK_HANDLER",x.ADD_OWNER="ADD_OWNER",x.REMOVE_OWNER="REMOVE_OWNER",x.SWAP_OWNER="SWAP_OWNER",x.CHANGE_THRESHOLD="CHANGE_THRESHOLD",x.CHANGE_IMPLEMENTATION="CHANGE_IMPLEMENTATION",x.ENABLE_MODULE="ENABLE_MODULE",x.DISABLE_MODULE="DISABLE_MODULE",x.SET_GUARD="SET_GUARD",x.DELETE_GUARD="DELETE_GUARD",(I=i.TransactionInfoType||(i.TransactionInfoType={})).TRANSFER="Transfer",I.SETTINGS_CHANGE="SettingsChange",I.CUSTOM="Custom",I.CREATION="Creation",(R=i.ConflictType||(i.ConflictType={})).NONE="None",R.HAS_NEXT="HasNext",R.END="End",(j=i.TransactionListItemType||(i.TransactionListItemType={})).TRANSACTION="TRANSACTION",j.LABEL="LABEL",j.CONFLICT_HEADER="CONFLICT_HEADER",j.DATE_LABEL="DATE_LABEL",(W=i.DetailedExecutionInfoType||(i.DetailedExecutionInfoType={})).MULTISIG="MULTISIG",W.MODULE="MODULE",(J=i.LabelValue||(i.LabelValue={})).Queued="Queued",J.Next="Next"},3984:function(n,i){"use strict";var o=this&&this.__awaiter||function(n,i,o,u){function adopt(n){return n instanceof o?n:new o(function(i){i(n)})}return new(o||(o=Promise))(function(o,l){function fulfilled(n){try{step(u.next(n))}catch(n){l(n)}}function rejected(n){try{step(u.throw(n))}catch(n){l(n)}}function step(n){n.done?o(n.value):adopt(n.value).then(fulfilled,rejected)}step((u=u.apply(n,i||[])).next())})};Object.defineProperty(i,"__esModule",{value:!0}),i.deleteData=i.fetchData=i.stringifyQuery=i.insertParams=void 0;let isErrorResponse=n=>"object"==typeof n&&null!==n&&"code"in n&&"message"in n;function replaceParam(n,i,o){return n.replace(RegExp(`\\{${i}\\}`,"g"),o)}function insertParams(n,i){return i?Object.keys(i).reduce((n,o)=>replaceParam(n,o,String(i[o])),n):n}function stringifyQuery(n){if(!n)return"";let i=new URLSearchParams;Object.keys(n).forEach(o=>{null!=n[o]&&i.append(o,String(n[o]))});let o=i.toString();return o?`?${o}`:""}function parseResponse(n){return o(this,void 0,void 0,function*(){let i;try{i=yield n.json()}catch(i){if(n.headers&&"0"!==n.headers.get("content-length"))throw Error(`Invalid response content: ${n.statusText}`)}if(!n.ok){let o=isErrorResponse(i)?`${i.code}: ${i.message}`:n.statusText;throw Error(o)}return i})}function fetchData(n,i){return o(this,void 0,void 0,function*(){let o;null!=i&&(o={method:"POST",body:"string"==typeof i?i:JSON.stringify(i),headers:{"Content-Type":"application/json"}});let u=yield fetch(n,o);return parseResponse(u)})}function deleteData(n){return o(this,void 0,void 0,function*(){let i=yield fetch(n,{method:"DELETE"});return parseResponse(i)})}i.insertParams=insertParams,i.stringifyQuery=stringifyQuery,i.fetchData=fetchData,i.deleteData=deleteData},35859:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var u=o(61394);function readInt16BE(n,i){return void 0===i&&(i=0),(n[i+0]<<8|n[i+1])<<16>>16}function readUint16BE(n,i){return void 0===i&&(i=0),(n[i+0]<<8|n[i+1])>>>0}function readInt16LE(n,i){return void 0===i&&(i=0),(n[i+1]<<8|n[i])<<16>>16}function readUint16LE(n,i){return void 0===i&&(i=0),(n[i+1]<<8|n[i])>>>0}function writeUint16BE(n,i,o){return void 0===i&&(i=new Uint8Array(2)),void 0===o&&(o=0),i[o+0]=n>>>8,i[o+1]=n>>>0,i}function writeUint16LE(n,i,o){return void 0===i&&(i=new Uint8Array(2)),void 0===o&&(o=0),i[o+0]=n>>>0,i[o+1]=n>>>8,i}function readInt32BE(n,i){return void 0===i&&(i=0),n[i]<<24|n[i+1]<<16|n[i+2]<<8|n[i+3]}function readUint32BE(n,i){return void 0===i&&(i=0),(n[i]<<24|n[i+1]<<16|n[i+2]<<8|n[i+3])>>>0}function readInt32LE(n,i){return void 0===i&&(i=0),n[i+3]<<24|n[i+2]<<16|n[i+1]<<8|n[i]}function readUint32LE(n,i){return void 0===i&&(i=0),(n[i+3]<<24|n[i+2]<<16|n[i+1]<<8|n[i])>>>0}function writeUint32BE(n,i,o){return void 0===i&&(i=new Uint8Array(4)),void 0===o&&(o=0),i[o+0]=n>>>24,i[o+1]=n>>>16,i[o+2]=n>>>8,i[o+3]=n>>>0,i}function writeUint32LE(n,i,o){return void 0===i&&(i=new Uint8Array(4)),void 0===o&&(o=0),i[o+0]=n>>>0,i[o+1]=n>>>8,i[o+2]=n>>>16,i[o+3]=n>>>24,i}function readInt64BE(n,i){void 0===i&&(i=0);var o=readInt32BE(n,i),u=readInt32BE(n,i+4);return 4294967296*o+u-(u>>31)*4294967296}function readUint64BE(n,i){return void 0===i&&(i=0),4294967296*readUint32BE(n,i)+readUint32BE(n,i+4)}function readInt64LE(n,i){void 0===i&&(i=0);var o=readInt32LE(n,i);return 4294967296*readInt32LE(n,i+4)+o-(o>>31)*4294967296}function readUint64LE(n,i){void 0===i&&(i=0);var o=readUint32LE(n,i);return 4294967296*readUint32LE(n,i+4)+o}function writeUint64BE(n,i,o){return void 0===i&&(i=new Uint8Array(8)),void 0===o&&(o=0),writeUint32BE(n/4294967296>>>0,i,o),writeUint32BE(n>>>0,i,o+4),i}function writeUint64LE(n,i,o){return void 0===i&&(i=new Uint8Array(8)),void 0===o&&(o=0),writeUint32LE(n>>>0,i,o),writeUint32LE(n/4294967296>>>0,i,o+4),i}function readUintBE(n,i,o){if(void 0===o&&(o=0),n%8!=0)throw Error("readUintBE supports only bitLengths divisible by 8");if(n/8>i.length-o)throw Error("readUintBE: array is too short for the given bitLength");for(var u=0,l=1,d=n/8+o-1;d>=o;d--)u+=i[d]*l,l*=256;return u}function readUintLE(n,i,o){if(void 0===o&&(o=0),n%8!=0)throw Error("readUintLE supports only bitLengths divisible by 8");if(n/8>i.length-o)throw Error("readUintLE: array is too short for the given bitLength");for(var u=0,l=1,d=o;d=l;x--)o[x]=i/d&255,d*=256;return o}function writeUintLE(n,i,o,l){if(void 0===o&&(o=new Uint8Array(n/8)),void 0===l&&(l=0),n%8!=0)throw Error("writeUintLE supports only bitLengths divisible by 8");if(!u.isSafeInteger(i))throw Error("writeUintLE value must be an integer");for(var d=1,x=l;x16)throw Error("ChaCha20Poly1305: incorrect nonce length");var x,I=new Uint8Array(16);I.set(n,I.length-n.length);var R=new Uint8Array(32);u.stream(this._key,I,R,4);var j=i.length+this.tagLength;if(l){if(l.length!==j)throw Error("ChaCha20Poly1305: incorrect destination length");x=l}else x=new Uint8Array(j);return u.streamXOR(this._key,I,i,x,4),this._authenticate(x.subarray(x.length-this.tagLength,x.length),R,x.subarray(0,x.length-this.tagLength),o),d.wipe(I),x},ChaCha20Poly1305.prototype.open=function(n,i,o,l){if(n.length>16)throw Error("ChaCha20Poly1305: incorrect nonce length");if(i.length0&&I.update(R.subarray(u.length%16))),I.update(o),o.length%16>0&&I.update(R.subarray(o.length%16));var j=new Uint8Array(8);u&&x.writeUint64LE(u.length,j),I.update(j),x.writeUint64LE(o.length,j),I.update(j);for(var W=I.digest(),J=0;J>>16|eE<<16)|0,ef=ef>>>20|ef<<12,ew^=ec=ec+eh|0,eh^=ey=ey+(ew=ew>>>16|ew<<16)|0,eh=eh>>>20|eh<<12,eP^=el=el+ep|0,ep^=eb=eb+(eP=eP>>>16|eP<<16)|0,ep=ep>>>20|ep<<12,ex^=ed=ed+em|0,em^=ev=ev+(ex=ex>>>16|ex<<16)|0,em=em>>>20|em<<12,eP^=el=el+ep|0,ep^=eb=eb+(eP=eP>>>24|eP<<8)|0,ep=ep>>>25|ep<<7,ex^=ed=ed+em|0,em^=ev=ev+(ex=ex>>>24|ex<<8)|0,em=em>>>25|em<<7,ew^=ec=ec+eh|0,eh^=ey=ey+(ew=ew>>>24|ew<<8)|0,eh=eh>>>25|eh<<7,eE^=eu=eu+ef|0,ef^=eg=eg+(eE=eE>>>24|eE<<8)|0,ef=ef>>>25|ef<<7,ex^=eu=eu+eh|0,eh^=eb=eb+(ex=ex>>>16|ex<<16)|0,eh=eh>>>20|eh<<12,eE^=ec=ec+ep|0,ep^=ev=ev+(eE=eE>>>16|eE<<16)|0,ep=ep>>>20|ep<<12,ew^=el=el+em|0,em^=eg=eg+(ew=ew>>>16|ew<<16)|0,em=em>>>20|em<<12,eP^=ed=ed+ef|0,ef^=ey=ey+(eP=eP>>>16|eP<<16)|0,ef=ef>>>20|ef<<12,ew^=el=el+em|0,em^=eg=eg+(ew=ew>>>24|ew<<8)|0,em=em>>>25|em<<7,eP^=ed=ed+ef|0,ef^=ey=ey+(eP=eP>>>24|eP<<8)|0,ef=ef>>>25|ef<<7,eE^=ec=ec+ep|0,ep^=ev=ev+(eE=eE>>>24|eE<<8)|0,ep=ep>>>25|ep<<7,ex^=eu=eu+eh|0,eh^=eb=eb+(ex=ex>>>24|ex<<8)|0,eh=eh>>>25|eh<<7;u.writeUint32LE(eu+1634760805|0,n,0),u.writeUint32LE(ec+857760878|0,n,4),u.writeUint32LE(el+2036477234|0,n,8),u.writeUint32LE(ed+1797285236|0,n,12),u.writeUint32LE(ef+l|0,n,16),u.writeUint32LE(eh+d|0,n,20),u.writeUint32LE(ep+x|0,n,24),u.writeUint32LE(em+I|0,n,28),u.writeUint32LE(eg+R|0,n,32),u.writeUint32LE(ey+j|0,n,36),u.writeUint32LE(eb+W|0,n,40),u.writeUint32LE(ev+J|0,n,44),u.writeUint32LE(eE+et|0,n,48),u.writeUint32LE(ew+ei|0,n,52),u.writeUint32LE(eP+eo|0,n,56),u.writeUint32LE(ex+es|0,n,60)}function streamXOR(n,i,o,u,d){if(void 0===d&&(d=0),32!==n.length)throw Error("ChaCha: key size must be 32 bytes");if(u.length>>=8,i++;if(u>0)throw Error("ChaCha: counter overflow")}i.streamXOR=streamXOR,i.stream=stream},91216:function(n,i){"use strict";function select(n,i,o){return~(n-1)&i|n-1&o}function lessOrEqual(n,i){return(0|n)-(0|i)-1>>>31&1}function compare(n,i){if(n.length!==i.length)return 0;for(var o=0,u=0;u>>8}function equal(n,i){return 0!==n.length&&0!==i.length&&0!==compare(n,i)}Object.defineProperty(i,"__esModule",{value:!0}),i.select=select,i.lessOrEqual=lessOrEqual,i.compare=compare,i.equal=equal},16203:function(n,i){"use strict";function isSerializableHash(n){return void 0!==n.saveState&&void 0!==n.restoreState&&void 0!==n.cleanSavedState}Object.defineProperty(i,"__esModule",{value:!0}),i.isSerializableHash=isSerializableHash},36274:function(n,i,o){"use strict";var u=o(84430),l=o(62942),d=function(){function HKDF(n,i,o,l){void 0===o&&(o=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=n,this._info=l;var d=u.hmac(this._hash,o,i);this._hmac=new u.HMAC(n,d),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return HKDF.prototype._fillBuffer=function(){this._counter[0]++;var n=this._counter[0];if(0===n)throw Error("hkdf: cannot expand more");this._hmac.reset(),n>1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},HKDF.prototype.expand=function(n){for(var i=new Uint8Array(n),o=0;othis.blockSize?this._inner.update(i).finish(o).clean():o.set(i);for(var l=0;l>>16&65535)*u+o*(i>>>16&65535)<<16>>>0)|0}function add(n,i){return n+i|0}function sub(n,i){return n-i|0}function rotl(n,i){return n<>>32-i}function rotr(n,i){return n<<32-i|n>>>i}function isIntegerShim(n){return"number"==typeof n&&isFinite(n)&&Math.floor(n)===n}Object.defineProperty(i,"__esModule",{value:!0}),i.mul=Math.imul||imulShim,i.add=add,i.sub=sub,i.rotl=rotl,i.rotr=rotr,i.isInteger=Number.isInteger||isIntegerShim,i.MAX_SAFE_INTEGER=9007199254740991,i.isSafeInteger=function(n){return i.isInteger(n)&&n>=-i.MAX_SAFE_INTEGER&&n<=i.MAX_SAFE_INTEGER}},63786:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var u=o(91216),l=o(62942);i.DIGEST_LENGTH=16;var d=function(){function Poly1305(n){this.digestLength=i.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var o=n[0]|n[1]<<8;this._r[0]=8191&o;var u=n[2]|n[3]<<8;this._r[1]=(o>>>13|u<<3)&8191;var l=n[4]|n[5]<<8;this._r[2]=(u>>>10|l<<6)&7939;var d=n[6]|n[7]<<8;this._r[3]=(l>>>7|d<<9)&8191;var x=n[8]|n[9]<<8;this._r[4]=(d>>>4|x<<12)&255,this._r[5]=x>>>1&8190;var I=n[10]|n[11]<<8;this._r[6]=(x>>>14|I<<2)&8191;var R=n[12]|n[13]<<8;this._r[7]=(I>>>11|R<<5)&8065;var j=n[14]|n[15]<<8;this._r[8]=(R>>>8|j<<8)&8191,this._r[9]=j>>>5&127,this._pad[0]=n[16]|n[17]<<8,this._pad[1]=n[18]|n[19]<<8,this._pad[2]=n[20]|n[21]<<8,this._pad[3]=n[22]|n[23]<<8,this._pad[4]=n[24]|n[25]<<8,this._pad[5]=n[26]|n[27]<<8,this._pad[6]=n[28]|n[29]<<8,this._pad[7]=n[30]|n[31]<<8}return Poly1305.prototype._blocks=function(n,i,o){for(var u=this._fin?0:2048,l=this._h[0],d=this._h[1],x=this._h[2],I=this._h[3],R=this._h[4],j=this._h[5],W=this._h[6],J=this._h[7],et=this._h[8],ei=this._h[9],eo=this._r[0],es=this._r[1],eu=this._r[2],ec=this._r[3],el=this._r[4],ed=this._r[5],ef=this._r[6],eh=this._r[7],ep=this._r[8],em=this._r[9];o>=16;){var eg,ey=n[i+0]|n[i+1]<<8;l+=8191&ey;var eb=n[i+2]|n[i+3]<<8;d+=(ey>>>13|eb<<3)&8191;var ev=n[i+4]|n[i+5]<<8;x+=(eb>>>10|ev<<6)&8191;var eE=n[i+6]|n[i+7]<<8;I+=(ev>>>7|eE<<9)&8191;var ew=n[i+8]|n[i+9]<<8;R+=(eE>>>4|ew<<12)&8191,j+=ew>>>1&8191;var eP=n[i+10]|n[i+11]<<8;W+=(ew>>>14|eP<<2)&8191;var ex=n[i+12]|n[i+13]<<8;J+=(eP>>>11|ex<<5)&8191;var eT=n[i+14]|n[i+15]<<8;et+=(ex>>>8|eT<<8)&8191,ei+=eT>>>5|u;var eA=0;eA=(eg=0+l*eo+d*(5*em)+x*(5*ep)+I*(5*eh)+R*(5*ef))>>>13,eg&=8191,eg+=j*(5*ed)+W*(5*el)+J*(5*ec)+et*(5*eu)+ei*(5*es),eA+=eg>>>13,eg&=8191;var eS=eA;eS+=l*es+d*eo+x*(5*em)+I*(5*ep)+R*(5*eh),eA=eS>>>13,eS&=8191,eS+=j*(5*ef)+W*(5*ed)+J*(5*el)+et*(5*ec)+ei*(5*eu),eA+=eS>>>13,eS&=8191;var eC=eA;eC+=l*eu+d*es+x*eo+I*(5*em)+R*(5*ep),eA=eC>>>13,eC&=8191,eC+=j*(5*eh)+W*(5*ef)+J*(5*ed)+et*(5*el)+ei*(5*ec),eA+=eC>>>13,eC&=8191;var e_=eA;e_+=l*ec+d*eu+x*es+I*eo+R*(5*em),eA=e_>>>13,e_&=8191,e_+=j*(5*ep)+W*(5*eh)+J*(5*ef)+et*(5*ed)+ei*(5*el),eA+=e_>>>13,e_&=8191;var eO=eA;eO+=l*el+d*ec+x*eu+I*es+R*eo,eA=eO>>>13,eO&=8191,eO+=j*(5*em)+W*(5*ep)+J*(5*eh)+et*(5*ef)+ei*(5*ed),eA+=eO>>>13,eO&=8191;var eI=eA;eI+=l*ed+d*el+x*ec+I*eu+R*es,eA=eI>>>13,eI&=8191,eI+=j*eo+W*(5*em)+J*(5*ep)+et*(5*eh)+ei*(5*ef),eA+=eI>>>13,eI&=8191;var eB=eA;eB+=l*ef+d*ed+x*el+I*ec+R*eu,eA=eB>>>13,eB&=8191,eB+=j*es+W*eo+J*(5*em)+et*(5*ep)+ei*(5*eh),eA+=eB>>>13,eB&=8191;var eD=eA;eD+=l*eh+d*ef+x*ed+I*el+R*ec,eA=eD>>>13,eD&=8191,eD+=j*eu+W*es+J*eo+et*(5*em)+ei*(5*ep),eA+=eD>>>13,eD&=8191;var eR=eA;eR+=l*ep+d*eh+x*ef+I*ed+R*el,eA=eR>>>13,eR&=8191,eR+=j*ec+W*eu+J*es+et*eo+ei*(5*em),eA+=eR>>>13,eR&=8191;var ej=eA;ej+=l*em+d*ep+x*eh+I*ef+R*ed,eA=ej>>>13,ej&=8191,ej+=j*el+W*ec+J*eu+et*es+ei*eo,eA+=ej>>>13,ej&=8191,eg=8191&(eA=(eA=(eA<<2)+eA|0)+eg|0),eA>>>=13,eS+=eA,l=eg,d=eS,x=eC,I=e_,R=eO,j=eI,W=eB,J=eD,et=eR,ei=ej,i+=16,o-=16}this._h[0]=l,this._h[1]=d,this._h[2]=x,this._h[3]=I,this._h[4]=R,this._h[5]=j,this._h[6]=W,this._h[7]=J,this._h[8]=et,this._h[9]=ei},Poly1305.prototype.finish=function(n,i){void 0===i&&(i=0);var o,u,l,d,x=new Uint16Array(10);if(this._leftover){for(d=this._leftover,this._buffer[d++]=1;d<16;d++)this._buffer[d]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(o=this._h[1]>>>13,this._h[1]&=8191,d=2;d<10;d++)this._h[d]+=o,o=this._h[d]>>>13,this._h[d]&=8191;for(this._h[0]+=5*o,o=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=o,o=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=o,x[0]=this._h[0]+5,o=x[0]>>>13,x[0]&=8191,d=1;d<10;d++)x[d]=this._h[d]+o,o=x[d]>>>13,x[d]&=8191;for(x[9]-=8192,u=(1^o)-1,d=0;d<10;d++)x[d]&=u;for(d=0,u=~u;d<10;d++)this._h[d]=this._h[d]&u|x[d];for(d=1,this._h[0]=(this._h[0]|this._h[1]<<13)&65535,this._h[1]=(this._h[1]>>>3|this._h[2]<<10)&65535,this._h[2]=(this._h[2]>>>6|this._h[3]<<7)&65535,this._h[3]=(this._h[3]>>>9|this._h[4]<<4)&65535,this._h[4]=(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14)&65535,this._h[5]=(this._h[6]>>>2|this._h[7]<<11)&65535,this._h[6]=(this._h[7]>>>5|this._h[8]<<8)&65535,this._h[7]=(this._h[8]>>>8|this._h[9]<<5)&65535,l=this._h[0]+this._pad[0],this._h[0]=65535&l;d<8;d++)l=(this._h[d]+this._pad[d]|0)+(l>>>16)|0,this._h[d]=65535&l;return n[i+0]=this._h[0]>>>0,n[i+1]=this._h[0]>>>8,n[i+2]=this._h[1]>>>0,n[i+3]=this._h[1]>>>8,n[i+4]=this._h[2]>>>0,n[i+5]=this._h[2]>>>8,n[i+6]=this._h[3]>>>0,n[i+7]=this._h[3]>>>8,n[i+8]=this._h[4]>>>0,n[i+9]=this._h[4]>>>8,n[i+10]=this._h[5]>>>0,n[i+11]=this._h[5]>>>8,n[i+12]=this._h[6]>>>0,n[i+13]=this._h[6]>>>8,n[i+14]=this._h[7]>>>0,n[i+15]=this._h[7]>>>8,this._finished=!0,this},Poly1305.prototype.update=function(n){var i,o=0,u=n.length;if(this._leftover){(i=16-this._leftover)>u&&(i=u);for(var l=0;l=16&&(i=u-u%16,this._blocks(n,o,i),o+=i,u-=i),u){for(var l=0;l256)throw Error("randomString charset is too long");let l="",I=o.length,R=256-256%I;for(;n>0;){let i=randomBytes(Math.ceil(256*n/R),u);for(let u=0;u0;u++){let d=i[u];d0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=n[o++],i--;this._bufferLength===this.blockSize&&(hashBlocks(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(i>=this.blockSize&&(o=hashBlocks(this._temp,this._state,n,o,i),i%=this.blockSize);i>0;)this._buffer[this._bufferLength++]=n[o++],i--;return this},SHA256.prototype.finish=function(n){if(!this._finished){var i=this._bytesHashed,o=this._bufferLength,l=i%64<56?64:128;this._buffer[o]=128;for(var d=o+1;d0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},SHA256.prototype.restoreState=function(n){return this._state.set(n.state),this._bufferLength=n.bufferLength,n.buffer&&this._buffer.set(n.buffer),this._bytesHashed=n.bytesHashed,this._finished=!1,this},SHA256.prototype.cleanSavedState=function(n){l.wipe(n.state),n.buffer&&l.wipe(n.buffer),n.bufferLength=0,n.bytesHashed=0},SHA256}();i.mE=d;var x=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function hashBlocks(n,i,o,l,d){for(;d>=64;){for(var I=i[0],R=i[1],j=i[2],W=i[3],J=i[4],et=i[5],ei=i[6],eo=i[7],es=0;es<16;es++){var eu=l+4*es;n[es]=u.readUint32BE(o,eu)}for(var es=16;es<64;es++){var ec=n[es-2],el=(ec>>>17|ec<<15)^(ec>>>19|ec<<13)^ec>>>10,ed=((ec=n[es-15])>>>7|ec<<25)^(ec>>>18|ec<<14)^ec>>>3;n[es]=(el+n[es-7]|0)+(ed+n[es-16]|0)}for(var es=0;es<64;es++){var el=(((J>>>6|J<<26)^(J>>>11|J<<21)^(J>>>25|J<<7))+(J&et^~J&ei)|0)+(eo+(x[es]+n[es]|0)|0)|0,ed=((I>>>2|I<<30)^(I>>>13|I<<19)^(I>>>22|I<<10))+(I&R^I&j^R&j)|0;eo=ei,ei=et,et=J,J=W+el|0,W=j,j=R,R=I,I=el+ed|0}i[0]+=I,i[1]+=R,i[2]+=j,i[3]+=W,i[4]+=J,i[5]+=et,i[6]+=ei,i[7]+=eo,l+=64,d-=64}return l}function hash(n){var i=new d;i.update(n);var o=i.digest();return i.clean(),o}i.vp=hash},62942:function(n,i){"use strict";function wipe(n){for(var i=0;i>16&1),o[n-1]&=65535;o[15]=u[15]-32767-(o[14]>>16&1);let n=o[15]>>16&1;o[14]&=65535,sel25519(u,o,1-n)}for(let i=0;i<16;i++)n[2*i]=255&u[i],n[2*i+1]=u[i]>>8}function unpack25519(n,i){for(let o=0;o<16;o++)n[o]=i[2*o]+(i[2*o+1]<<8);n[15]&=32767}function add(n,i,o){for(let u=0;u<16;u++)n[u]=i[u]+o[u]}function sub(n,i,o){for(let u=0;u<16;u++)n[u]=i[u]-o[u]}function mul(n,i,o){let u,l,d=0,x=0,I=0,R=0,j=0,W=0,J=0,et=0,ei=0,eo=0,es=0,eu=0,ec=0,el=0,ed=0,ef=0,eh=0,ep=0,em=0,eg=0,ey=0,eb=0,ev=0,eE=0,ew=0,eP=0,ex=0,eT=0,eA=0,eS=0,eC=0,e_=o[0],eO=o[1],eI=o[2],eB=o[3],eD=o[4],eR=o[5],ej=o[6],eM=o[7],ek=o[8],eF=o[9],eN=o[10],eU=o[11],eL=o[12],eH=o[13],e$=o[14],eq=o[15];d+=(u=i[0])*e_,x+=u*eO,I+=u*eI,R+=u*eB,j+=u*eD,W+=u*eR,J+=u*ej,et+=u*eM,ei+=u*ek,eo+=u*eF,es+=u*eN,eu+=u*eU,ec+=u*eL,el+=u*eH,ed+=u*e$,ef+=u*eq,x+=(u=i[1])*e_,I+=u*eO,R+=u*eI,j+=u*eB,W+=u*eD,J+=u*eR,et+=u*ej,ei+=u*eM,eo+=u*ek,es+=u*eF,eu+=u*eN,ec+=u*eU,el+=u*eL,ed+=u*eH,ef+=u*e$,eh+=u*eq,I+=(u=i[2])*e_,R+=u*eO,j+=u*eI,W+=u*eB,J+=u*eD,et+=u*eR,ei+=u*ej,eo+=u*eM,es+=u*ek,eu+=u*eF,ec+=u*eN,el+=u*eU,ed+=u*eL,ef+=u*eH,eh+=u*e$,ep+=u*eq,R+=(u=i[3])*e_,j+=u*eO,W+=u*eI,J+=u*eB,et+=u*eD,ei+=u*eR,eo+=u*ej,es+=u*eM,eu+=u*ek,ec+=u*eF,el+=u*eN,ed+=u*eU,ef+=u*eL,eh+=u*eH,ep+=u*e$,em+=u*eq,j+=(u=i[4])*e_,W+=u*eO,J+=u*eI,et+=u*eB,ei+=u*eD,eo+=u*eR,es+=u*ej,eu+=u*eM,ec+=u*ek,el+=u*eF,ed+=u*eN,ef+=u*eU,eh+=u*eL,ep+=u*eH,em+=u*e$,eg+=u*eq,W+=(u=i[5])*e_,J+=u*eO,et+=u*eI,ei+=u*eB,eo+=u*eD,es+=u*eR,eu+=u*ej,ec+=u*eM,el+=u*ek,ed+=u*eF,ef+=u*eN,eh+=u*eU,ep+=u*eL,em+=u*eH,eg+=u*e$,ey+=u*eq,J+=(u=i[6])*e_,et+=u*eO,ei+=u*eI,eo+=u*eB,es+=u*eD,eu+=u*eR,ec+=u*ej,el+=u*eM,ed+=u*ek,ef+=u*eF,eh+=u*eN,ep+=u*eU,em+=u*eL,eg+=u*eH,ey+=u*e$,eb+=u*eq,et+=(u=i[7])*e_,ei+=u*eO,eo+=u*eI,es+=u*eB,eu+=u*eD,ec+=u*eR,el+=u*ej,ed+=u*eM,ef+=u*ek,eh+=u*eF,ep+=u*eN,em+=u*eU,eg+=u*eL,ey+=u*eH,eb+=u*e$,ev+=u*eq,ei+=(u=i[8])*e_,eo+=u*eO,es+=u*eI,eu+=u*eB,ec+=u*eD,el+=u*eR,ed+=u*ej,ef+=u*eM,eh+=u*ek,ep+=u*eF,em+=u*eN,eg+=u*eU,ey+=u*eL,eb+=u*eH,ev+=u*e$,eE+=u*eq,eo+=(u=i[9])*e_,es+=u*eO,eu+=u*eI,ec+=u*eB,el+=u*eD,ed+=u*eR,ef+=u*ej,eh+=u*eM,ep+=u*ek,em+=u*eF,eg+=u*eN,ey+=u*eU,eb+=u*eL,ev+=u*eH,eE+=u*e$,ew+=u*eq,es+=(u=i[10])*e_,eu+=u*eO,ec+=u*eI,el+=u*eB,ed+=u*eD,ef+=u*eR,eh+=u*ej,ep+=u*eM,em+=u*ek,eg+=u*eF,ey+=u*eN,eb+=u*eU,ev+=u*eL,eE+=u*eH,ew+=u*e$,eP+=u*eq,eu+=(u=i[11])*e_,ec+=u*eO,el+=u*eI,ed+=u*eB,ef+=u*eD,eh+=u*eR,ep+=u*ej,em+=u*eM,eg+=u*ek,ey+=u*eF,eb+=u*eN,ev+=u*eU,eE+=u*eL,ew+=u*eH,eP+=u*e$,ex+=u*eq,ec+=(u=i[12])*e_,el+=u*eO,ed+=u*eI,ef+=u*eB,eh+=u*eD,ep+=u*eR,em+=u*ej,eg+=u*eM,ey+=u*ek,eb+=u*eF,ev+=u*eN,eE+=u*eU,ew+=u*eL,eP+=u*eH,ex+=u*e$,eT+=u*eq,el+=(u=i[13])*e_,ed+=u*eO,ef+=u*eI,eh+=u*eB,ep+=u*eD,em+=u*eR,eg+=u*ej,ey+=u*eM,eb+=u*ek,ev+=u*eF,eE+=u*eN,ew+=u*eU,eP+=u*eL,ex+=u*eH,eT+=u*e$,eA+=u*eq,ed+=(u=i[14])*e_,ef+=u*eO,eh+=u*eI,ep+=u*eB,em+=u*eD,eg+=u*eR,ey+=u*ej,eb+=u*eM,ev+=u*ek,eE+=u*eF,ew+=u*eN,eP+=u*eU,ex+=u*eL,eT+=u*eH,eA+=u*e$,eS+=u*eq,ef+=(u=i[15])*e_,eh+=u*eO,ep+=u*eI,em+=u*eB,eg+=u*eD,ey+=u*eR,eb+=u*ej,ev+=u*eM,eE+=u*ek,ew+=u*eF,eP+=u*eN,ex+=u*eU,eT+=u*eL,eA+=u*eH,eS+=u*e$,eC+=u*eq,d+=38*eh,x+=38*ep,I+=38*em,R+=38*eg,j+=38*ey,W+=38*eb,J+=38*ev,et+=38*eE,ei+=38*ew,eo+=38*eP,es+=38*ex,eu+=38*eT,ec+=38*eA,el+=38*eS,ed+=38*eC,l=Math.floor((u=d+(l=1)+65535)/65536),d=u-65536*l,l=Math.floor((u=x+l+65535)/65536),x=u-65536*l,l=Math.floor((u=I+l+65535)/65536),I=u-65536*l,l=Math.floor((u=R+l+65535)/65536),R=u-65536*l,l=Math.floor((u=j+l+65535)/65536),j=u-65536*l,l=Math.floor((u=W+l+65535)/65536),W=u-65536*l,l=Math.floor((u=J+l+65535)/65536),J=u-65536*l,l=Math.floor((u=et+l+65535)/65536),et=u-65536*l,l=Math.floor((u=ei+l+65535)/65536),ei=u-65536*l,l=Math.floor((u=eo+l+65535)/65536),eo=u-65536*l,l=Math.floor((u=es+l+65535)/65536),es=u-65536*l,l=Math.floor((u=eu+l+65535)/65536),eu=u-65536*l,l=Math.floor((u=ec+l+65535)/65536),ec=u-65536*l,l=Math.floor((u=el+l+65535)/65536),el=u-65536*l,l=Math.floor((u=ed+l+65535)/65536),ed=u-65536*l,l=Math.floor((u=ef+l+65535)/65536),ef=u-65536*l,d+=l-1+37*(l-1),l=Math.floor((u=d+(l=1)+65535)/65536),d=u-65536*l,l=Math.floor((u=x+l+65535)/65536),x=u-65536*l,l=Math.floor((u=I+l+65535)/65536),I=u-65536*l,l=Math.floor((u=R+l+65535)/65536),R=u-65536*l,l=Math.floor((u=j+l+65535)/65536),j=u-65536*l,l=Math.floor((u=W+l+65535)/65536),W=u-65536*l,l=Math.floor((u=J+l+65535)/65536),J=u-65536*l,l=Math.floor((u=et+l+65535)/65536),et=u-65536*l,l=Math.floor((u=ei+l+65535)/65536),ei=u-65536*l,l=Math.floor((u=eo+l+65535)/65536),eo=u-65536*l,l=Math.floor((u=es+l+65535)/65536),es=u-65536*l,l=Math.floor((u=eu+l+65535)/65536),eu=u-65536*l,l=Math.floor((u=ec+l+65535)/65536),ec=u-65536*l,l=Math.floor((u=el+l+65535)/65536),el=u-65536*l,l=Math.floor((u=ed+l+65535)/65536),ed=u-65536*l,l=Math.floor((u=ef+l+65535)/65536),ef=u-65536*l,d+=l-1+37*(l-1),n[0]=d,n[1]=x,n[2]=I,n[3]=R,n[4]=j,n[5]=W,n[6]=J,n[7]=et,n[8]=ei,n[9]=eo,n[10]=es,n[11]=eu,n[12]=ec,n[13]=el,n[14]=ed,n[15]=ef}function inv25519(n,i){let o=gf();for(let n=0;n<16;n++)o[n]=i[n];for(let n=253;n>=0;n--)mul(o,o,o),2!==n&&4!==n&&mul(o,o,i);for(let i=0;i<16;i++)n[i]=o[i]}function scalarMult(n,i){let o=new Uint8Array(32),u=new Float64Array(80),l=gf(),d=gf(),I=gf(),R=gf(),j=gf(),W=gf();for(let i=0;i<31;i++)o[i]=n[i];o[31]=127&n[31]|64,o[0]&=248,unpack25519(u,i);for(let n=0;n<16;n++)d[n]=u[n];l[0]=R[0]=1;for(let n=254;n>=0;--n){let i=o[n>>>3]>>>(7&n)&1;sel25519(l,d,i),sel25519(I,R,i),add(j,l,I),sub(l,l,I),add(I,d,R),sub(d,d,R),mul(R,j,j),mul(W,l,l),mul(l,I,l),mul(I,d,j),add(j,l,I),sub(l,l,I),mul(d,l,l),sub(I,R,W),mul(l,I,x),add(l,l,R),mul(I,I,l),mul(l,R,W),mul(R,d,u),mul(d,j,j),sel25519(l,d,i),sel25519(I,R,i)}for(let n=0;n<16;n++)u[n+16]=l[n],u[n+32]=I[n],u[n+48]=d[n],u[n+64]=R[n];let J=u.subarray(32),et=u.subarray(16);inv25519(J,J),mul(et,et,J);let ei=new Uint8Array(32);return pack25519(ei,et),ei}function scalarMultBase(n){return scalarMult(n,d)}function generateKeyPairFromSeed(n){if(n.length!==i.KS)throw Error(`x25519: seed must be ${i.KS} bytes`);let o=new Uint8Array(n),u=scalarMultBase(o);return{publicKey:u,secretKey:o}}function generateKeyPair(n){let i=(0,u.randomBytes)(32,n),o=generateKeyPairFromSeed(i);return(0,l.wipe)(i),o}function sharedKey(n,o,u=!1){if(n.length!==i.kz)throw Error("X25519: incorrect secret key length");if(o.length!==i.kz)throw Error("X25519: incorrect public key length");let l=scalarMult(n,o);if(u){let n=0;for(let i=0;i{setTimeout(()=>{i(!0)},n)})}Object.defineProperty(i,"__esModule",{value:!0}),i.delay=void 0,i.delay=delay},51199:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0});let u=o(96579);u.__exportStar(o(79837),i),u.__exportStar(o(29937),i)},82892:function(n,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.Watch=void 0;let Watch=class Watch{constructor(){this.timestamps=new Map}start(n){if(this.timestamps.has(n))throw Error(`Watch already started for label: ${n}`);this.timestamps.set(n,{started:Date.now()})}stop(n){let i=this.get(n);if(void 0!==i.elapsed)throw Error(`Watch already stopped for label: ${n}`);let o=Date.now()-i.started;this.timestamps.set(n,{started:i.started,elapsed:o})}get(n){let i=this.timestamps.get(n);if(void 0===i)throw Error(`No timestamp found for label: ${n}`);return i}elapsed(n){let i=this.get(n),o=i.elapsed||Date.now()-i.started;return o}};i.Watch=Watch,i.default=Watch},86070:function(n,i,o){"use strict";o.d(i,{AW:function(){return ec},O6:function(){return tr},rV:function(){return ef},gn:function(){return pt},H1:function(){return at},hF:function(){return ut},WG:function(){return $},pe:function(){return Fn},m$:function(){return Mn},vB:function(){return ee},HI:function(){return xn},E0:function(){return yt},Gq:function(){return dt},$0:function(){return Xn},Z4:function(){return lt},Bv:function(){return It},Au:function(){return kn},jd:function(){return Vn},gu:function(){return Un},D:function(){return Qn},X_:function(){return Jn},bW:function(){return gt},Z7:function(){return N},cO:function(){return Et},_H:function(){return vt},fc:function(){return jt},D6:function(){return U},Hh:function(){return ht},Ym:function(){return Kn},rj:function(){return Ln},jU:function(){return D},gp:function(){return oe},rF:function(){return fn},Bw:function(){return mt},UG:function(){return te},Gg:function(){return er},xW:function(){return Vt},b$:function(){return C},Ih:function(){return Dt},h1:function(){return Mt},Q8:function(){return qn},o8:function(){return w},qt:function(){return k},Dd:function(){return Kt},$t:function(){return qt},nf:function(){return Wt},Q0:function(){return Ft},in:function(){return ln},p8:function(){return zt},sI:function(){return Jt},al:function(){return Yt},L5:function(){return B},EJ:function(){return Ht},Z2:function(){return dn},PM:function(){return xt},hH:function(){return Bt},ON:function(){return Xt},n:function(){return Lt},JT:function(){return Gt},M_:function(){return h},jv:function(){return kt},KC:function(){return rt},eG:function(){return S},fK:function(){return se},IP:function(){return ot},DQ:function(){return ve},iP:function(){return ft},M:function(){return en},he:function(){return wt},uw:function(){return nr},Ll:function(){return Hn},EN:function(){return Ae}});var u=o(71818),l=o(36274),d=o(69790),x=o(88906),I=o(99518),R=o(27147),j=o(30015),W=o(88316),J=o(1193),et=o(35775),ei=o(84875);o(52795);let eo={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe"}};var es=o(28070);function ve(n){let[i,o]=n.split(":");return{namespace:i,reference:o}}function Un(n,i=[]){let o=[];return Object.keys(n).forEach(u=>{if(i.length&&!i.includes(u))return;let l=n[u];o.push(...l.accounts)}),o}function L(n,i){return n.includes(":")?[n]:i.chains||[]}let eu="base10",ec="base16",el="base64pad",ed="utf8",ef=1;function kn(){let n=I.Au();return{privateKey:(0,R.BB)(n.secretKey,ec),publicKey:(0,R.BB)(n.publicKey,ec)}}function Vn(){let n=(0,d.randomBytes)(32);return(0,R.BB)(n,ec)}function Mn(n,i){let o=I.gi((0,R.mL)(n,ec),(0,R.mL)(i,ec),!0),u=new l.t(x.mE,o).expand(32);return(0,R.BB)(u,ec)}function Kn(n){let i=(0,x.vp)((0,R.mL)(n,ec));return(0,R.BB)(i,ec)}function Ln(n){let i=(0,x.vp)((0,R.mL)(n,ed));return(0,R.BB)(i,ec)}function Re(n){return(0,R.mL)(`${n}`,eu)}function $(n){return Number((0,R.BB)(n,eu))}function xn(n){let i=Re("u">typeof n.type?n.type:0);if($(i)===ef&&typeof n.senderPublicKey>"u")throw Error("Missing sender public key for type 1 envelope");let o="u">typeof n.senderPublicKey?(0,R.mL)(n.senderPublicKey,ec):void 0,l="u">typeof n.iv?(0,R.mL)(n.iv,ec):(0,d.randomBytes)(12),x=new u.OK((0,R.mL)(n.symKey,ec)).seal(l,(0,R.mL)(n.message,ed));return Te({type:i,sealed:x,iv:l,senderPublicKey:o})}function Fn(n){let i=new u.OK((0,R.mL)(n.symKey,ec)),{sealed:o,iv:l}=ee(n.encoded),d=i.open(l,o);if(null===d)throw Error("Failed to decrypt");return(0,R.BB)(d,ed)}function Te(n){if($(n.type)===ef){if(typeof n.senderPublicKey>"u")throw Error("Missing sender public key for type 1 envelope");return(0,R.BB)((0,R.zo)([n.type,n.senderPublicKey,n.iv,n.sealed]),el)}return(0,R.BB)((0,R.zo)([n.type,n.iv,n.sealed]),el)}function ee(n){let i=(0,R.mL)(n,el),o=i.slice(0,1);if($(o)===ef){let n=i.slice(1,33),u=i.slice(33,45),l=i.slice(45);return{type:o,sealed:l,iv:u,senderPublicKey:n}}let u=i.slice(1,13),l=i.slice(13);return{type:o,sealed:l,iv:u}}function Hn(n,i){let o=ee(n);return Ae({type:$(o.type),senderPublicKey:"u">typeof o.senderPublicKey?(0,R.BB)(o.senderPublicKey,ec):void 0,receiverPublicKey:i?.receiverPublicKey})}function Ae(n){let i=n?.type||0;if(i===ef){if(typeof n?.senderPublicKey>"u")throw Error("missing sender public key");if(typeof n?.receiverPublicKey>"u")throw Error("missing receiver public key")}return{type:i,senderPublicKey:n?.senderPublicKey,receiverPublicKey:n?.receiverPublicKey}}function qn(n){return n.type===ef&&"string"==typeof n.senderPublicKey&&"string"==typeof n.receiverPublicKey}var eh=Object.defineProperty,ep=Object.getOwnPropertySymbols,em=Object.prototype.hasOwnProperty,eg=Object.prototype.propertyIsEnumerable,_e=(n,i,o)=>i in n?eh(n,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[i]=o,Ce=(n,i)=>{for(var o in i||(i={}))em.call(i,o)&&_e(n,o,i[o]);if(ep)for(var o of ep(i))eg.call(i,o)&&_e(n,o,i[o]);return n};let ey={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"};function te(){return"u">typeof es&&"u">typeof es.versions&&"u">typeof es.versions.node}function C(){return!(0,J.getDocument)()&&!!(0,J.getNavigator)()&&"ReactNative"===navigator.product}function D(){return!te()&&!!(0,J.getNavigator)()&&!!(0,J.getDocument)()}function T(){return C()?ey.reactNative:te()?ey.node:D()?ey.browser:ey.unknown}function Jn(){var n;try{return C()&&"u">typeof o.g&&"u">typeof(null==o.g?void 0:o.g.Application)?null==(n=o.g.Application)?void 0:n.applicationId:void 0}catch{return}}function ke(n,i){let o=ei.parse(n);return o=Ce(Ce({},o),i),n=ei.stringify(o)}function Qn(){return(0,et.D)()||{name:"",description:"",url:"",icons:[""]}}function Ve(){if(T()===ey.reactNative&&"u">typeof o.g&&"u">typeof(null==o.g?void 0:o.g.Platform)){let{OS:n,Version:i}=o.g.Platform;return[n,i].join("-")}let n=(0,j.qY)();if(null===n)return"unknown";let i=n.os?n.os.replace(" ","").toLowerCase():"unknown";return"browser"===n.type?[i,n.name,n.version].join("-"):[i,n.version].join("-")}function Me(){var n;let i=T();return i===ey.browser?[i,(null==(n=(0,J.getLocation)())?void 0:n.host)||"unknown"].join(":"):i}function Ke(n,i,o){let u=Ve(),l=Me();return[[n,i].join("-"),["js",o].join("-"),u,l].join("/")}function Xn({protocol:n,version:i,relayUrl:o,sdkVersion:u,auth:l,projectId:d,useOnCloseEvent:x,bundleId:I}){let R=o.split("?"),j=Ke(n,i,u),W=ke(R[1]||"",{auth:l,ua:j,projectId:d,useOnCloseEvent:x||void 0,origin:I||void 0});return R[0]+"?"+W}function O(n,i){return n.filter(n=>i.includes(n)).length===n.length}function rt(n){return Object.fromEntries(n.entries())}function ot(n){return new Map(Object.entries(n))}function at(n=W.FIVE_MINUTES,i){let o,u,l;let d=(0,W.toMiliseconds)(n||W.FIVE_MINUTES);return{resolve:n=>{l&&o&&(clearTimeout(l),o(n))},reject:n=>{l&&u&&(clearTimeout(l),u(n))},done:()=>new Promise((n,x)=>{l=setTimeout(()=>{x(Error(i))},d),o=n,u=x})}}function ut(n,i,o){return new Promise(async(u,l)=>{let d=setTimeout(()=>l(Error(o)),i);try{let i=await n;u(i)}catch(n){l(n)}clearTimeout(d)})}function re(n,i){if("string"==typeof i&&i.startsWith(`${n}:`))return i;if("topic"===n.toLowerCase()){if("string"!=typeof i)throw Error('Value must be "string" for expirer target type: topic');return`topic:${i}`}if("id"===n.toLowerCase()){if("number"!=typeof i)throw Error('Value must be "number" for expirer target type: id');return`id:${i}`}throw Error(`Unknown expirer target type: ${n}`)}function lt(n){return re("topic",n)}function dt(n){return re("id",n)}function ft(n){let[i,o]=n.split(":"),u={id:void 0,topic:void 0};if("topic"===i&&"string"==typeof o)u.topic=o;else if("id"===i&&Number.isInteger(Number(o)))u.id=Number(o);else throw Error(`Invalid target, expected id:number or topic:string, got ${i}:${o}`);return u}function pt(n,i){return(0,W.fromMiliseconds)((i||Date.now())+(0,W.toMiliseconds)(n))}function mt(n){return Date.now()>=(0,W.toMiliseconds)(n)}function yt(n,i){return`${n}${i?`:${i}`:""}`}function S(n=[],i=[]){return[...new Set([...n,...i])]}async function ht({id:n,topic:i,wcDeepLink:u}){try{if(!u)return;let l="string"==typeof u?JSON.parse(u):u,d=l?.href;if("string"!=typeof d)return;d.endsWith("/")&&(d=d.slice(0,-1));let x=`${d}/wc?requestId=${n}&sessionTopic=${i}`,I=T();I===ey.browser?x.startsWith("https://")?window.open(x,"_blank","noreferrer noopener"):window.open(x,"_self","noreferrer noopener"):I===ey.reactNative&&"u">typeof(null==o.g?void 0:o.g.Linking)&&await o.g.Linking.openURL(x)}catch(n){console.error(n)}}async function gt(n,i){try{return await n.getItem(i)||(D()?localStorage.getItem(i):void 0)}catch(n){console.error(n)}}function vt(n){return n?.relay||{protocol:"irn"}}function Et(n){let i=eo[n];if(typeof i>"u")throw Error(`Relay Protocol not supported: ${n}`);return i}var eb=Object.defineProperty,ev=Object.getOwnPropertySymbols,eE=Object.prototype.hasOwnProperty,ew=Object.prototype.propertyIsEnumerable,Be=(n,i,o)=>i in n?eb(n,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[i]=o,St=(n,i)=>{for(var o in i||(i={}))eE.call(i,o)&&Be(n,o,i[o]);if(ev)for(var o of ev(i))ew.call(i,o)&&Be(n,o,i[o]);return n};function Ge(n,i="-"){let o={},u="relay"+i;return Object.keys(n).forEach(i=>{if(i.startsWith(u)){let l=i.replace(u,""),d=n[i];o[l]=d}}),o}function wt(n){n=(n=n.includes("wc://")?n.replace("wc://",""):n).includes("wc:")?n.replace("wc:",""):n;let i=n.indexOf(":"),o=-1!==n.indexOf("?")?n.indexOf("?"):void 0,u=n.substring(0,i),l=n.substring(i+1,o).split("@"),d="u">typeof o?n.substring(o):"",x=ei.parse(d);return{protocol:u,topic:We(l[0]),version:parseInt(l[1],10),symKey:x.symKey,relay:Ge(x)}}function We(n){return n.startsWith("//")?n.substring(2):n}function ze(n,i="-"){let o={};return Object.keys(n).forEach(u=>{n[u]&&(o["relay"+i+u]=n[u])}),o}function It(n){return`${n.protocol}:${n.topic}@${n.version}?`+ei.stringify(St({symKey:n.symKey},ze(n.relay)))}var eP=Object.defineProperty,ex=Object.defineProperties,eT=Object.getOwnPropertyDescriptors,eA=Object.getOwnPropertySymbols,eS=Object.prototype.hasOwnProperty,eC=Object.prototype.propertyIsEnumerable,Je=(n,i,o)=>i in n?eP(n,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[i]=o,_t=(n,i)=>{for(var o in i||(i={}))eS.call(i,o)&&Je(n,o,i[o]);if(eA)for(var o of eA(i))eC.call(i,o)&&Je(n,o,i[o]);return n},Ct=(n,i)=>ex(n,eT(i));function A(n){let i=[];return n.forEach(n=>{let[o,u]=n.split(":");i.push(`${o}:${u}`)}),i}function Qe(n){let i=[];return Object.values(n).forEach(n=>{i.push(...A(n.accounts))}),i}function Ze(n,i){let o=[];return Object.values(n).forEach(n=>{A(n.accounts).includes(i)&&o.push(...n.methods)}),o}function Xe(n,i){let o=[];return Object.values(n).forEach(n=>{A(n.accounts).includes(i)&&o.push(...n.events)}),o}function jt(n,i){let o=ln(n,i);if(o)throw Error(o.message);let u={};for(let[i,o]of Object.entries(n))u[i]={methods:o.methods,events:o.events,chains:o.accounts.map(n=>`${n.split(":")[0]}:${n.split(":")[1]}`)};return u}function oe(n){return n.includes(":")}function en(n){return oe(n)?n.split(":")[0]:n}function se(n){var i,o,u;let l={};if(!B(n))return l;for(let[d,x]of Object.entries(n)){let n=oe(d)?[d]:x.chains,I=x.methods||[],R=x.events||[],j=en(d);l[j]=Ct(_t({},l[j]),{chains:S(n,null==(i=l[j])?void 0:i.chains),methods:S(I,null==(o=l[j])?void 0:o.methods),events:S(R,null==(u=l[j])?void 0:u.events)})}return l}let e_={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},eO={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function N(n,i){let{message:o,code:u}=eO[n];return{message:i?`${o} ${i}`:o,code:u}}function U(n,i){let{message:o,code:u}=e_[n];return{message:i?`${o} ${i}`:o,code:u}}function k(n,i){return!!Array.isArray(n)&&(!("u">typeof i)||!n.length||n.every(i))}function B(n){return Object.getPrototypeOf(n)===Object.prototype&&Object.keys(n).length}function w(n){return typeof n>"u"}function h(n,i){return!!(i&&w(n))||"string"==typeof n&&!!n.trim().length}function G(n,i){return!!(i&&w(n))||"number"==typeof n&&!isNaN(n)}function Dt(n,i){let{requiredNamespaces:o}=i,u=Object.keys(n.namespaces),l=Object.keys(o),d=!0;return!!O(l,u)&&(u.forEach(i=>{let{accounts:u,methods:l,events:x}=n.namespaces[i],I=A(u),R=o[i];O(L(i,R),I)&&O(R.methods,l)&&O(R.events,x)||(d=!1)}),d)}function V(n){return!!(h(n,!1)&&n.includes(":"))&&2===n.split(":").length}function rn(n){if(h(n,!1)&&n.includes(":")){let i=n.split(":");if(3===i.length){let n=i[0]+":"+i[1];return!!i[2]&&V(n)}}return!1}function kt(n){if(h(n,!1))try{return"u">typeof new URL(n)}catch{}return!1}function Vt(n){var i;return null==(i=n?.proposer)?void 0:i.publicKey}function Mt(n){return n?.topic}function Kt(n,i){let o=null;return h(n?.publicKey,!1)||(o=N("MISSING_OR_INVALID",`${i} controller public key should be a string`)),o}function ie(n){let i=!0;return k(n)?n.length&&(i=n.every(n=>h(n,!1))):i=!1,i}function on(n,i,o){let u=null;return k(i)&&i.length?i.forEach(n=>{u||V(n)||(u=U("UNSUPPORTED_CHAINS",`${o}, chain ${n} should be a string and conform to "namespace:chainId" format`))}):V(n)||(u=U("UNSUPPORTED_CHAINS",`${o}, chains must be defined as "namespace:chainId" e.g. "eip155:1": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: ["eip155:1", "eip155:5"] }`)),u}function sn(n,i,o){let u=null;return Object.entries(n).forEach(([n,l])=>{if(u)return;let d=on(n,L(n,l),`${i} ${o}`);d&&(u=d)}),u}function cn(n,i){let o=null;return k(n)?n.forEach(n=>{o||rn(n)||(o=U("UNSUPPORTED_ACCOUNTS",`${i}, account ${n} should be a string and conform to "namespace:chainId:address" format`))}):o=U("UNSUPPORTED_ACCOUNTS",`${i}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),o}function an(n,i){let o=null;return Object.values(n).forEach(n=>{if(o)return;let u=cn(n?.accounts,`${i} namespace`);u&&(o=u)}),o}function un(n,i){let o=null;return ie(n?.methods)?ie(n?.events)||(o=U("UNSUPPORTED_EVENTS",`${i}, events should be an array of strings or empty array for no events`)):o=U("UNSUPPORTED_METHODS",`${i}, methods should be an array of strings or empty array for no methods`),o}function ce(n,i){let o=null;return Object.values(n).forEach(n=>{if(o)return;let u=un(n,`${i}, namespace`);u&&(o=u)}),o}function Lt(n,i,o){let u=null;if(n&&B(n)){let l=ce(n,i);l&&(u=l);let d=sn(n,i,o);d&&(u=d)}else u=N("MISSING_OR_INVALID",`${i}, ${o} should be an object with data`);return u}function ln(n,i){let o=null;if(n&&B(n)){let u=ce(n,i);u&&(o=u);let l=an(n,i);l&&(o=l)}else o=N("MISSING_OR_INVALID",`${i}, namespaces should be an object with data`);return o}function dn(n){return h(n.protocol,!0)}function xt(n,i){let o=!1;return i&&!n?o=!0:n&&k(n)&&n.length&&n.forEach(n=>{o=dn(n)}),o}function Ft(n){return"number"==typeof n}function Ht(n){return"u">typeof n}function qt(n){return!(!n||"object"!=typeof n||!n.code||!G(n.code,!1)||!n.message||!h(n.message,!1))}function Bt(n){return!(w(n)||!h(n.method,!1))}function Gt(n){return!(w(n)||w(n.result)&&w(n.error)||!G(n.id,!1)||!h(n.jsonrpc,!1))}function Wt(n){return!(w(n)||!h(n.name,!1))}function zt(n,i){return!(!V(i)||!Qe(n).includes(i))}function Yt(n,i,o){return!!h(o,!1)&&Ze(n,i).includes(o)}function Jt(n,i,o){return!!h(o,!1)&&Xe(n,i).includes(o)}function fn(n,i,o){let u=null,l=Qt(n),d=Zt(i),x=Object.keys(l),I=Object.keys(d),R=pn(Object.keys(n)),j=pn(Object.keys(i)),W=R.filter(n=>!j.includes(n));return W.length&&(u=N("NON_CONFORMING_NAMESPACES",`${o} namespaces keys don't satisfy requiredNamespaces. - Required: ${W.toString()} - Received: ${Object.keys(i).toString()}`)),O(x,I)||(u=N("NON_CONFORMING_NAMESPACES",`${o} namespaces chains don't satisfy required namespaces. - Required: ${x.toString()} - Approved: ${I.toString()}`)),Object.keys(i).forEach(n=>{if(!n.includes(":")||u)return;let l=A(i[n].accounts);l.includes(n)||(u=N("NON_CONFORMING_NAMESPACES",`${o} namespaces accounts don't satisfy namespace accounts for ${n} - Required: ${n} - Approved: ${l.toString()}`))}),x.forEach(n=>{u||(O(l[n].methods,d[n].methods)?O(l[n].events,d[n].events)||(u=N("NON_CONFORMING_NAMESPACES",`${o} namespaces events don't satisfy namespace events for ${n}`)):u=N("NON_CONFORMING_NAMESPACES",`${o} namespaces methods don't satisfy namespace methods for ${n}`))}),u}function Qt(n){let i={};return Object.keys(n).forEach(o=>{var u;o.includes(":")?i[o]=n[o]:null==(u=n[o].chains)||u.forEach(u=>{i[u]={methods:n[o].methods,events:n[o].events}})}),i}function pn(n){return[...new Set(n.map(n=>n.includes(":")?n.split(":")[0]:n))]}function Zt(n){let i={};return Object.keys(n).forEach(o=>{if(o.includes(":"))i[o]=n[o];else{let u=A(n[o].accounts);u?.forEach(u=>{i[u]={accounts:n[o].accounts.filter(n=>n.includes(`${u}:`)),methods:n[o].methods,events:n[o].events}})}}),i}function Xt(n,i){return G(n,!1)&&n<=i.max&&n>=i.min}function er(){let n=T();return new Promise(i=>{switch(n){case ey.browser:i(mn());break;case ey.reactNative:i(yn());break;case ey.node:i(hn());break;default:i(!0)}})}function mn(){return D()&&navigator?.onLine}async function yn(){if(C()&&"u">typeof o.g&&null!=o.g&&o.g.NetInfo){let n=await (null==o.g?void 0:o.g.NetInfo.fetch());return n?.isConnected}return!0}function hn(){return!0}function nr(n){switch(T()){case ey.browser:gn(n);break;case ey.reactNative:vn(n);case ey.node:}}function gn(n){!C()&&D()&&(window.addEventListener("online",()=>n(!0)),window.addEventListener("offline",()=>n(!1)))}function vn(n){C()&&"u">typeof o.g&&null!=o.g&&o.g.NetInfo&&o.g?.NetInfo.addEventListener(i=>n(i?.isConnected))}let eI={};let tr=class tr{static get(n){return eI[n]}static set(n,i){eI[n]=i}static delete(n){delete eI[n]}}},1193:function(n,i){"use strict";function getFromWindow(n){let i;return"undefined"!=typeof window&&void 0!==window[n]&&(i=window[n]),i}function getFromWindowOrThrow(n){let i=getFromWindow(n);if(!i)throw Error(`${n} is not defined in Window`);return i}function getDocumentOrThrow(){return getFromWindowOrThrow("document")}function getDocument(){return getFromWindow("document")}function getNavigatorOrThrow(){return getFromWindowOrThrow("navigator")}function getNavigator(){return getFromWindow("navigator")}function getLocationOrThrow(){return getFromWindowOrThrow("location")}function getLocation(){return getFromWindow("location")}function getCryptoOrThrow(){return getFromWindowOrThrow("crypto")}function getCrypto(){return getFromWindow("crypto")}function getLocalStorageOrThrow(){return getFromWindowOrThrow("localStorage")}function getLocalStorage(){return getFromWindow("localStorage")}Object.defineProperty(i,"__esModule",{value:!0}),i.getLocalStorage=i.getLocalStorageOrThrow=i.getCrypto=i.getCryptoOrThrow=i.getLocation=i.getLocationOrThrow=i.getNavigator=i.getNavigatorOrThrow=i.getDocument=i.getDocumentOrThrow=i.getFromWindowOrThrow=i.getFromWindow=void 0,i.getFromWindow=getFromWindow,i.getFromWindowOrThrow=getFromWindowOrThrow,i.getDocumentOrThrow=getDocumentOrThrow,i.getDocument=getDocument,i.getNavigatorOrThrow=getNavigatorOrThrow,i.getNavigator=getNavigator,i.getLocationOrThrow=getLocationOrThrow,i.getLocation=getLocation,i.getCryptoOrThrow=getCryptoOrThrow,i.getCrypto=getCrypto,i.getLocalStorageOrThrow=getLocalStorageOrThrow,i.getLocalStorage=getLocalStorage},35775:function(n,i,o){"use strict";i.D=void 0;let u=o(1193);function getWindowMetadata(){let n,i;try{n=u.getDocumentOrThrow(),i=u.getLocationOrThrow()}catch(n){return null}function getIcons(){let o=n.getElementsByTagName("link"),u=[];for(let n=0;n-1){let n=l.getAttribute("href");if(n){if(-1===n.toLowerCase().indexOf("https:")&&-1===n.toLowerCase().indexOf("http:")&&0!==n.indexOf("//")){let o=i.protocol+"//"+i.host;if(0===n.indexOf("/"))o+=n;else{let u=i.pathname.split("/");u.pop();let l=u.join("/");o+=l+"/"+n}u.push(o)}else if(0===n.indexOf("//")){let o=i.protocol+n;u.push(o)}else u.push(n)}}}return u}function getWindowMetadataOfAny(...i){let o=n.getElementsByTagName("meta");for(let n=0;nu.getAttribute(n)).filter(n=>!!n&&i.includes(n));if(l.length&&l){let n=u.getAttribute("content");if(n)return n}}return""}function getName(){let i=getWindowMetadataOfAny("name","og:site_name","og:title","twitter:title");return i||(i=n.title),i}function getDescription(){let n=getWindowMetadataOfAny("description","og:description","twitter:description","keywords");return n}let o=getName(),l=getDescription(),d=i.origin,x=getIcons();return{description:l,url:d,icons:x,name:o}}i.D=getWindowMetadata},81226:function(n,i){"use strict";i.byteLength=byteLength,i.toByteArray=toByteArray,i.fromByteArray=fromByteArray;for(var o=[],u=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",x=0,I=d.length;x0)throw Error("Invalid string. Length must be a multiple of 4");var o=n.indexOf("=");-1===o&&(o=i);var u=o===i?0:4-o%4;return[o,u]}function byteLength(n){var i=getLens(n),o=i[0],u=i[1];return(o+u)*3/4-u}function _byteLength(n,i,o){return(i+o)*3/4-o}function toByteArray(n){var i,o,d=getLens(n),x=d[0],I=d[1],R=new l(_byteLength(n,x,I)),j=0,W=I>0?x-4:x;for(o=0;o>16&255,R[j++]=i>>8&255,R[j++]=255&i;return 2===I&&(i=u[n.charCodeAt(o)]<<2|u[n.charCodeAt(o+1)]>>4,R[j++]=255&i),1===I&&(i=u[n.charCodeAt(o)]<<10|u[n.charCodeAt(o+1)]<<4|u[n.charCodeAt(o+2)]>>2,R[j++]=i>>8&255,R[j++]=255&i),R}function tripletToBase64(n){return o[n>>18&63]+o[n>>12&63]+o[n>>6&63]+o[63&n]}function encodeChunk(n,i,o){for(var u=[],l=i;lI?I:x+16383));return 1===l?d.push(o[(i=n[u-1])>>2]+o[i<<4&63]+"=="):2===l&&d.push(o[(i=(n[u-2]<<8)+n[u-1])>>10]+o[i>>4&63]+o[i<<2&63]+"="),d.join("")}u["-".charCodeAt(0)]=62,u["_".charCodeAt(0)]=63},61900:function(n,i,o){"use strict";/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */let u=o(81226),l=o(47354),d="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function typedArraySupport(){try{let n=new Uint8Array(1),i={foo:function(){return 42}};return Object.setPrototypeOf(i,Uint8Array.prototype),Object.setPrototypeOf(n,i),42===n.foo()}catch(n){return!1}}function createBuffer(n){if(n>2147483647)throw RangeError('The value "'+n+'" is invalid for option "size"');let i=new Uint8Array(n);return Object.setPrototypeOf(i,Buffer.prototype),i}function Buffer(n,i,o){if("number"==typeof n){if("string"==typeof i)throw TypeError('The "string" argument must be of type string. Received type number');return allocUnsafe(n)}return from(n,i,o)}function from(n,i,o){if("string"==typeof n)return fromString(n,i);if(ArrayBuffer.isView(n))return fromArrayView(n);if(null==n)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n);if(isInstance(n,ArrayBuffer)||n&&isInstance(n.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(isInstance(n,SharedArrayBuffer)||n&&isInstance(n.buffer,SharedArrayBuffer)))return fromArrayBuffer(n,i,o);if("number"==typeof n)throw TypeError('The "value" argument must not be of type number. Received type number');let u=n.valueOf&&n.valueOf();if(null!=u&&u!==n)return Buffer.from(u,i,o);let l=fromObject(n);if(l)return l;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof n[Symbol.toPrimitive])return Buffer.from(n[Symbol.toPrimitive]("string"),i,o);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n)}function assertSize(n){if("number"!=typeof n)throw TypeError('"size" argument must be of type number');if(n<0)throw RangeError('The value "'+n+'" is invalid for option "size"')}function alloc(n,i,o){return(assertSize(n),n<=0)?createBuffer(n):void 0!==i?"string"==typeof o?createBuffer(n).fill(i,o):createBuffer(n).fill(i):createBuffer(n)}function allocUnsafe(n){return assertSize(n),createBuffer(n<0?0:0|checked(n))}function fromString(n,i){if(("string"!=typeof i||""===i)&&(i="utf8"),!Buffer.isEncoding(i))throw TypeError("Unknown encoding: "+i);let o=0|byteLength(n,i),u=createBuffer(o),l=u.write(n,i);return l!==o&&(u=u.slice(0,l)),u}function fromArrayLike(n){let i=n.length<0?0:0|checked(n.length),o=createBuffer(i);for(let u=0;u=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|n}function SlowBuffer(n){return+n!=n&&(n=0),Buffer.alloc(+n)}function byteLength(n,i){if(Buffer.isBuffer(n))return n.length;if(ArrayBuffer.isView(n)||isInstance(n,ArrayBuffer))return n.byteLength;if("string"!=typeof n)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof n);let o=n.length,u=arguments.length>2&&!0===arguments[2];if(!u&&0===o)return 0;let l=!1;for(;;)switch(i){case"ascii":case"latin1":case"binary":return o;case"utf8":case"utf-8":return utf8ToBytes(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*o;case"hex":return o>>>1;case"base64":return base64ToBytes(n).length;default:if(l)return u?-1:utf8ToBytes(n).length;i=(""+i).toLowerCase(),l=!0}}function slowToString(n,i,o){let u=!1;if((void 0===i||i<0)&&(i=0),i>this.length||((void 0===o||o>this.length)&&(o=this.length),o<=0||(o>>>=0)<=(i>>>=0)))return"";for(n||(n="utf8");;)switch(n){case"hex":return hexSlice(this,i,o);case"utf8":case"utf-8":return utf8Slice(this,i,o);case"ascii":return asciiSlice(this,i,o);case"latin1":case"binary":return latin1Slice(this,i,o);case"base64":return base64Slice(this,i,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,i,o);default:if(u)throw TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),u=!0}}function swap(n,i,o){let u=n[i];n[i]=n[o],n[o]=u}function bidirectionalIndexOf(n,i,o,u,l){var d;if(0===n.length)return -1;if("string"==typeof o?(u=o,o=0):o>2147483647?o=2147483647:o<-2147483648&&(o=-2147483648),(d=o=+o)!=d&&(o=l?0:n.length-1),o<0&&(o=n.length+o),o>=n.length){if(l)return -1;o=n.length-1}else if(o<0){if(!l)return -1;o=0}if("string"==typeof i&&(i=Buffer.from(i,u)),Buffer.isBuffer(i))return 0===i.length?-1:arrayIndexOf(n,i,o,u,l);if("number"==typeof i)return(i&=255,"function"==typeof Uint8Array.prototype.indexOf)?l?Uint8Array.prototype.indexOf.call(n,i,o):Uint8Array.prototype.lastIndexOf.call(n,i,o):arrayIndexOf(n,[i],o,u,l);throw TypeError("val must be string, number or Buffer")}function arrayIndexOf(n,i,o,u,l){let d,x=1,I=n.length,R=i.length;if(void 0!==u&&("ucs2"===(u=String(u).toLowerCase())||"ucs-2"===u||"utf16le"===u||"utf-16le"===u)){if(n.length<2||i.length<2)return -1;x=2,I/=2,R/=2,o/=2}function read(n,i){return 1===x?n[i]:n.readUInt16BE(i*x)}if(l){let u=-1;for(d=o;dI&&(o=I-R),d=o;d>=0;d--){let o=!0;for(let u=0;ud&&(u=d):u=d;let x=i.length;for(u>x/2&&(u=x/2),l=0;l239?4:i>223?3:i>191?2:1;if(l+x<=o){let o,u,I,R;switch(x){case 1:i<128&&(d=i);break;case 2:(192&(o=n[l+1]))==128&&(R=(31&i)<<6|63&o)>127&&(d=R);break;case 3:o=n[l+1],u=n[l+2],(192&o)==128&&(192&u)==128&&(R=(15&i)<<12|(63&o)<<6|63&u)>2047&&(R<55296||R>57343)&&(d=R);break;case 4:o=n[l+1],u=n[l+2],I=n[l+3],(192&o)==128&&(192&u)==128&&(192&I)==128&&(R=(15&i)<<18|(63&o)<<12|(63&u)<<6|63&I)>65535&&R<1114112&&(d=R)}}null===d?(d=65533,x=1):d>65535&&(d-=65536,u.push(d>>>10&1023|55296),d=56320|1023&d),u.push(d),l+=x}return decodeCodePointsArray(u)}function decodeCodePointsArray(n){let i=n.length;if(i<=4096)return String.fromCharCode.apply(String,n);let o="",u=0;for(;uu)&&(o=u);let l="";for(let u=i;uo)throw RangeError("Trying to access beyond buffer length")}function checkInt(n,i,o,u,l,d){if(!Buffer.isBuffer(n))throw TypeError('"buffer" argument must be a Buffer instance');if(i>l||in.length)throw RangeError("Index out of range")}function wrtBigUInt64LE(n,i,o,u,l){checkIntBI(i,u,l,n,o,7);let d=Number(i&BigInt(4294967295));n[o++]=d,d>>=8,n[o++]=d,d>>=8,n[o++]=d,d>>=8,n[o++]=d;let x=Number(i>>BigInt(32)&BigInt(4294967295));return n[o++]=x,x>>=8,n[o++]=x,x>>=8,n[o++]=x,x>>=8,n[o++]=x,o}function wrtBigUInt64BE(n,i,o,u,l){checkIntBI(i,u,l,n,o,7);let d=Number(i&BigInt(4294967295));n[o+7]=d,d>>=8,n[o+6]=d,d>>=8,n[o+5]=d,d>>=8,n[o+4]=d;let x=Number(i>>BigInt(32)&BigInt(4294967295));return n[o+3]=x,x>>=8,n[o+2]=x,x>>=8,n[o+1]=x,x>>=8,n[o]=x,o+8}function checkIEEE754(n,i,o,u,l,d){if(o+u>n.length||o<0)throw RangeError("Index out of range")}function writeFloat(n,i,o,u,d){return i=+i,o>>>=0,d||checkIEEE754(n,i,o,4,34028234663852886e22,-34028234663852886e22),l.write(n,i,o,u,23,4),o+4}function writeDouble(n,i,o,u,d){return i=+i,o>>>=0,d||checkIEEE754(n,i,o,8,17976931348623157e292,-17976931348623157e292),l.write(n,i,o,u,52,8),o+8}i.Buffer=Buffer,i.SlowBuffer=SlowBuffer,i.INSPECT_MAX_BYTES=50,i.kMaxLength=2147483647,Buffer.TYPED_ARRAY_SUPPORT=typedArraySupport(),Buffer.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(Buffer.prototype,"parent",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.buffer}}),Object.defineProperty(Buffer.prototype,"offset",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.byteOffset}}),Buffer.poolSize=8192,Buffer.from=function(n,i,o){return from(n,i,o)},Object.setPrototypeOf(Buffer.prototype,Uint8Array.prototype),Object.setPrototypeOf(Buffer,Uint8Array),Buffer.alloc=function(n,i,o){return alloc(n,i,o)},Buffer.allocUnsafe=function(n){return allocUnsafe(n)},Buffer.allocUnsafeSlow=function(n){return allocUnsafe(n)},Buffer.isBuffer=function(n){return null!=n&&!0===n._isBuffer&&n!==Buffer.prototype},Buffer.compare=function(n,i){if(isInstance(n,Uint8Array)&&(n=Buffer.from(n,n.offset,n.byteLength)),isInstance(i,Uint8Array)&&(i=Buffer.from(i,i.offset,i.byteLength)),!Buffer.isBuffer(n)||!Buffer.isBuffer(i))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(n===i)return 0;let o=n.length,u=i.length;for(let l=0,d=Math.min(o,u);lu.length?(Buffer.isBuffer(i)||(i=Buffer.from(i)),i.copy(u,l)):Uint8Array.prototype.set.call(u,i,l);else if(Buffer.isBuffer(i))i.copy(u,l);else throw TypeError('"list" argument must be an Array of Buffers');l+=i.length}return u},Buffer.byteLength=byteLength,Buffer.prototype._isBuffer=!0,Buffer.prototype.swap16=function(){let n=this.length;if(n%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let i=0;io&&(n+=" ... "),""},d&&(Buffer.prototype[d]=Buffer.prototype.inspect),Buffer.prototype.compare=function(n,i,o,u,l){if(isInstance(n,Uint8Array)&&(n=Buffer.from(n,n.offset,n.byteLength)),!Buffer.isBuffer(n))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof n);if(void 0===i&&(i=0),void 0===o&&(o=n?n.length:0),void 0===u&&(u=0),void 0===l&&(l=this.length),i<0||o>n.length||u<0||l>this.length)throw RangeError("out of range index");if(u>=l&&i>=o)return 0;if(u>=l)return -1;if(i>=o)return 1;if(i>>>=0,o>>>=0,u>>>=0,l>>>=0,this===n)return 0;let d=l-u,x=o-i,I=Math.min(d,x),R=this.slice(u,l),j=n.slice(i,o);for(let n=0;n>>=0,isFinite(o)?(o>>>=0,void 0===u&&(u="utf8")):(u=o,o=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let l=this.length-i;if((void 0===o||o>l)&&(o=l),n.length>0&&(o<0||i<0)||i>this.length)throw RangeError("Attempt to write outside buffer bounds");u||(u="utf8");let d=!1;for(;;)switch(u){case"hex":return hexWrite(this,n,i,o);case"utf8":case"utf-8":return utf8Write(this,n,i,o);case"ascii":case"latin1":case"binary":return asciiWrite(this,n,i,o);case"base64":return base64Write(this,n,i,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,n,i,o);default:if(d)throw TypeError("Unknown encoding: "+u);u=(""+u).toLowerCase(),d=!0}},Buffer.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},Buffer.prototype.slice=function(n,i){let o=this.length;n=~~n,i=void 0===i?o:~~i,n<0?(n+=o)<0&&(n=0):n>o&&(n=o),i<0?(i+=o)<0&&(i=0):i>o&&(i=o),i>>=0,i>>>=0,o||checkOffset(n,i,this.length);let u=this[n],l=1,d=0;for(;++d>>=0,i>>>=0,o||checkOffset(n,i,this.length);let u=this[n+--i],l=1;for(;i>0&&(l*=256);)u+=this[n+--i]*l;return u},Buffer.prototype.readUint8=Buffer.prototype.readUInt8=function(n,i){return n>>>=0,i||checkOffset(n,1,this.length),this[n]},Buffer.prototype.readUint16LE=Buffer.prototype.readUInt16LE=function(n,i){return n>>>=0,i||checkOffset(n,2,this.length),this[n]|this[n+1]<<8},Buffer.prototype.readUint16BE=Buffer.prototype.readUInt16BE=function(n,i){return n>>>=0,i||checkOffset(n,2,this.length),this[n]<<8|this[n+1]},Buffer.prototype.readUint32LE=Buffer.prototype.readUInt32LE=function(n,i){return n>>>=0,i||checkOffset(n,4,this.length),(this[n]|this[n+1]<<8|this[n+2]<<16)+16777216*this[n+3]},Buffer.prototype.readUint32BE=Buffer.prototype.readUInt32BE=function(n,i){return n>>>=0,i||checkOffset(n,4,this.length),16777216*this[n]+(this[n+1]<<16|this[n+2]<<8|this[n+3])},Buffer.prototype.readBigUInt64LE=defineBigIntMethod(function(n){validateNumber(n>>>=0,"offset");let i=this[n],o=this[n+7];(void 0===i||void 0===o)&&boundsError(n,this.length-8);let u=i+256*this[++n]+65536*this[++n]+16777216*this[++n],l=this[++n]+256*this[++n]+65536*this[++n]+16777216*o;return BigInt(u)+(BigInt(l)<>>=0,"offset");let i=this[n],o=this[n+7];(void 0===i||void 0===o)&&boundsError(n,this.length-8);let u=16777216*i+65536*this[++n]+256*this[++n]+this[++n],l=16777216*this[++n]+65536*this[++n]+256*this[++n]+o;return(BigInt(u)<>>=0,i>>>=0,o||checkOffset(n,i,this.length);let u=this[n],l=1,d=0;for(;++d=(l*=128)&&(u-=Math.pow(2,8*i)),u},Buffer.prototype.readIntBE=function(n,i,o){n>>>=0,i>>>=0,o||checkOffset(n,i,this.length);let u=i,l=1,d=this[n+--u];for(;u>0&&(l*=256);)d+=this[n+--u]*l;return d>=(l*=128)&&(d-=Math.pow(2,8*i)),d},Buffer.prototype.readInt8=function(n,i){return(n>>>=0,i||checkOffset(n,1,this.length),128&this[n])?-((255-this[n]+1)*1):this[n]},Buffer.prototype.readInt16LE=function(n,i){n>>>=0,i||checkOffset(n,2,this.length);let o=this[n]|this[n+1]<<8;return 32768&o?4294901760|o:o},Buffer.prototype.readInt16BE=function(n,i){n>>>=0,i||checkOffset(n,2,this.length);let o=this[n+1]|this[n]<<8;return 32768&o?4294901760|o:o},Buffer.prototype.readInt32LE=function(n,i){return n>>>=0,i||checkOffset(n,4,this.length),this[n]|this[n+1]<<8|this[n+2]<<16|this[n+3]<<24},Buffer.prototype.readInt32BE=function(n,i){return n>>>=0,i||checkOffset(n,4,this.length),this[n]<<24|this[n+1]<<16|this[n+2]<<8|this[n+3]},Buffer.prototype.readBigInt64LE=defineBigIntMethod(function(n){validateNumber(n>>>=0,"offset");let i=this[n],o=this[n+7];(void 0===i||void 0===o)&&boundsError(n,this.length-8);let u=this[n+4]+256*this[n+5]+65536*this[n+6]+(o<<24);return(BigInt(u)<>>=0,"offset");let i=this[n],o=this[n+7];(void 0===i||void 0===o)&&boundsError(n,this.length-8);let u=(i<<24)+65536*this[++n]+256*this[++n]+this[++n];return(BigInt(u)<>>=0,i||checkOffset(n,4,this.length),l.read(this,n,!0,23,4)},Buffer.prototype.readFloatBE=function(n,i){return n>>>=0,i||checkOffset(n,4,this.length),l.read(this,n,!1,23,4)},Buffer.prototype.readDoubleLE=function(n,i){return n>>>=0,i||checkOffset(n,8,this.length),l.read(this,n,!0,52,8)},Buffer.prototype.readDoubleBE=function(n,i){return n>>>=0,i||checkOffset(n,8,this.length),l.read(this,n,!1,52,8)},Buffer.prototype.writeUintLE=Buffer.prototype.writeUIntLE=function(n,i,o,u){if(n=+n,i>>>=0,o>>>=0,!u){let u=Math.pow(2,8*o)-1;checkInt(this,n,i,o,u,0)}let l=1,d=0;for(this[i]=255&n;++d>>=0,o>>>=0,!u){let u=Math.pow(2,8*o)-1;checkInt(this,n,i,o,u,0)}let l=o-1,d=1;for(this[i+l]=255&n;--l>=0&&(d*=256);)this[i+l]=n/d&255;return i+o},Buffer.prototype.writeUint8=Buffer.prototype.writeUInt8=function(n,i,o){return n=+n,i>>>=0,o||checkInt(this,n,i,1,255,0),this[i]=255&n,i+1},Buffer.prototype.writeUint16LE=Buffer.prototype.writeUInt16LE=function(n,i,o){return n=+n,i>>>=0,o||checkInt(this,n,i,2,65535,0),this[i]=255&n,this[i+1]=n>>>8,i+2},Buffer.prototype.writeUint16BE=Buffer.prototype.writeUInt16BE=function(n,i,o){return n=+n,i>>>=0,o||checkInt(this,n,i,2,65535,0),this[i]=n>>>8,this[i+1]=255&n,i+2},Buffer.prototype.writeUint32LE=Buffer.prototype.writeUInt32LE=function(n,i,o){return n=+n,i>>>=0,o||checkInt(this,n,i,4,4294967295,0),this[i+3]=n>>>24,this[i+2]=n>>>16,this[i+1]=n>>>8,this[i]=255&n,i+4},Buffer.prototype.writeUint32BE=Buffer.prototype.writeUInt32BE=function(n,i,o){return n=+n,i>>>=0,o||checkInt(this,n,i,4,4294967295,0),this[i]=n>>>24,this[i+1]=n>>>16,this[i+2]=n>>>8,this[i+3]=255&n,i+4},Buffer.prototype.writeBigUInt64LE=defineBigIntMethod(function(n,i=0){return wrtBigUInt64LE(this,n,i,BigInt(0),BigInt("0xffffffffffffffff"))}),Buffer.prototype.writeBigUInt64BE=defineBigIntMethod(function(n,i=0){return wrtBigUInt64BE(this,n,i,BigInt(0),BigInt("0xffffffffffffffff"))}),Buffer.prototype.writeIntLE=function(n,i,o,u){if(n=+n,i>>>=0,!u){let u=Math.pow(2,8*o-1);checkInt(this,n,i,o,u-1,-u)}let l=0,d=1,x=0;for(this[i]=255&n;++l>0)-x&255;return i+o},Buffer.prototype.writeIntBE=function(n,i,o,u){if(n=+n,i>>>=0,!u){let u=Math.pow(2,8*o-1);checkInt(this,n,i,o,u-1,-u)}let l=o-1,d=1,x=0;for(this[i+l]=255&n;--l>=0&&(d*=256);)n<0&&0===x&&0!==this[i+l+1]&&(x=1),this[i+l]=(n/d>>0)-x&255;return i+o},Buffer.prototype.writeInt8=function(n,i,o){return n=+n,i>>>=0,o||checkInt(this,n,i,1,127,-128),n<0&&(n=255+n+1),this[i]=255&n,i+1},Buffer.prototype.writeInt16LE=function(n,i,o){return n=+n,i>>>=0,o||checkInt(this,n,i,2,32767,-32768),this[i]=255&n,this[i+1]=n>>>8,i+2},Buffer.prototype.writeInt16BE=function(n,i,o){return n=+n,i>>>=0,o||checkInt(this,n,i,2,32767,-32768),this[i]=n>>>8,this[i+1]=255&n,i+2},Buffer.prototype.writeInt32LE=function(n,i,o){return n=+n,i>>>=0,o||checkInt(this,n,i,4,2147483647,-2147483648),this[i]=255&n,this[i+1]=n>>>8,this[i+2]=n>>>16,this[i+3]=n>>>24,i+4},Buffer.prototype.writeInt32BE=function(n,i,o){return n=+n,i>>>=0,o||checkInt(this,n,i,4,2147483647,-2147483648),n<0&&(n=4294967295+n+1),this[i]=n>>>24,this[i+1]=n>>>16,this[i+2]=n>>>8,this[i+3]=255&n,i+4},Buffer.prototype.writeBigInt64LE=defineBigIntMethod(function(n,i=0){return wrtBigUInt64LE(this,n,i,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),Buffer.prototype.writeBigInt64BE=defineBigIntMethod(function(n,i=0){return wrtBigUInt64BE(this,n,i,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),Buffer.prototype.writeFloatLE=function(n,i,o){return writeFloat(this,n,i,!0,o)},Buffer.prototype.writeFloatBE=function(n,i,o){return writeFloat(this,n,i,!1,o)},Buffer.prototype.writeDoubleLE=function(n,i,o){return writeDouble(this,n,i,!0,o)},Buffer.prototype.writeDoubleBE=function(n,i,o){return writeDouble(this,n,i,!1,o)},Buffer.prototype.copy=function(n,i,o,u){if(!Buffer.isBuffer(n))throw TypeError("argument should be a Buffer");if(o||(o=0),u||0===u||(u=this.length),i>=n.length&&(i=n.length),i||(i=0),u>0&&u=this.length)throw RangeError("Index out of range");if(u<0)throw RangeError("sourceEnd out of bounds");u>this.length&&(u=this.length),n.length-i>>=0,o=void 0===o?this.length:o>>>0,n||(n=0),"number"==typeof n)for(l=i;l=u+4;o-=3)i=`_${n.slice(o-3,o)}${i}`;return`${n.slice(0,o)}${i}`}function checkBounds(n,i,o){validateNumber(i,"offset"),(void 0===n[i]||void 0===n[i+o])&&boundsError(i,n.length-(o+1))}function checkIntBI(n,i,o,u,l,d){if(n>o||n3?0===i||i===BigInt(0)?`>= 0${l} and < 2${l} ** ${(d+1)*8}${l}`:`>= -(2${l} ** ${(d+1)*8-1}${l}) and < 2 ** ${(d+1)*8-1}${l}`:`>= ${i}${l} and <= ${o}${l}`,new x.ERR_OUT_OF_RANGE("value",u,n)}checkBounds(u,l,d)}function validateNumber(n,i){if("number"!=typeof n)throw new x.ERR_INVALID_ARG_TYPE(i,"number",n)}function boundsError(n,i,o){if(Math.floor(n)!==n)throw validateNumber(n,o),new x.ERR_OUT_OF_RANGE(o||"offset","an integer",n);if(i<0)throw new x.ERR_BUFFER_OUT_OF_BOUNDS;throw new x.ERR_OUT_OF_RANGE(o||"offset",`>= ${o?1:0} and <= ${i}`,n)}E("ERR_BUFFER_OUT_OF_BOUNDS",function(n){return n?`${n} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),E("ERR_INVALID_ARG_TYPE",function(n,i){return`The "${n}" argument must be of type number. Received type ${typeof i}`},TypeError),E("ERR_OUT_OF_RANGE",function(n,i,o){let u=`The value of "${n}" is out of range.`,l=o;return Number.isInteger(o)&&Math.abs(o)>4294967296?l=addNumericalSeparator(String(o)):"bigint"==typeof o&&(l=String(o),(o>BigInt(2)**BigInt(32)||o<-(BigInt(2)**BigInt(32)))&&(l=addNumericalSeparator(l)),l+="n"),u+=` It must be ${i}. Received ${l}`},RangeError);let I=/[^+/0-9A-Za-z-_]/g;function base64clean(n){if((n=(n=n.split("=")[0]).trim().replace(I,"")).length<2)return"";for(;n.length%4!=0;)n+="=";return n}function utf8ToBytes(n,i){let o;i=i||1/0;let u=n.length,l=null,d=[];for(let x=0;x55295&&o<57344){if(!l){if(o>56319||x+1===u){(i-=3)>-1&&d.push(239,191,189);continue}l=o;continue}if(o<56320){(i-=3)>-1&&d.push(239,191,189),l=o;continue}o=(l-55296<<10|o-56320)+65536}else l&&(i-=3)>-1&&d.push(239,191,189);if(l=null,o<128){if((i-=1)<0)break;d.push(o)}else if(o<2048){if((i-=2)<0)break;d.push(o>>6|192,63&o|128)}else if(o<65536){if((i-=3)<0)break;d.push(o>>12|224,o>>6&63|128,63&o|128)}else if(o<1114112){if((i-=4)<0)break;d.push(o>>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}else throw Error("Invalid code point")}return d}function asciiToBytes(n){let i=[];for(let o=0;o>8,l.push(o%256),l.push(u);return l}function base64ToBytes(n){return u.toByteArray(base64clean(n))}function blitBuffer(n,i,o,u){let l;for(l=0;l=i.length)&&!(l>=n.length);++l)i[l+o]=n[l];return l}function isInstance(n,i){return n instanceof i||null!=n&&null!=n.constructor&&null!=n.constructor.name&&n.constructor.name===i.name}let R=function(){let n="0123456789abcdef",i=Array(256);for(let o=0;o<16;++o){let u=16*o;for(let l=0;l<16;++l)i[u+l]=n[o]+n[l]}return i}();function defineBigIntMethod(n){return"undefined"==typeof BigInt?BufferBigIntNotDefined:n}function BufferBigIntNotDefined(){throw Error("BigInt not supported")}},26770:function(n){function debounce(n,i,o){function later(){var R=Date.now()-x;R=0?u=setTimeout(later,i-R):(u=null,o||(I=n.apply(d,l),d=l=null))}null==i&&(i=100);var u,l,d,x,I,debounced=function(){d=this,l=arguments,x=Date.now();var R=o&&!u;return u||(u=setTimeout(later,i)),R&&(I=n.apply(d,l),d=l=null),I};return debounced.clear=function(){u&&(clearTimeout(u),u=null)},debounced.flush=function(){u&&(I=n.apply(d,l),d=l=null,clearTimeout(u),u=null)},debounced}debounce.debounce=debounce,n.exports=debounce},77372:function(n){"use strict";var i="%[a-f0-9]{2}",o=RegExp("("+i+")|([^%]+?)","gi"),u=RegExp("("+i+")+","gi");function decodeComponents(n,i){try{return[decodeURIComponent(n.join(""))]}catch(n){}if(1===n.length)return n;i=i||1;var o=n.slice(0,i),u=n.slice(i);return Array.prototype.concat.call([],decodeComponents(o),decodeComponents(u))}function decode(n){try{return decodeURIComponent(n)}catch(l){for(var i=n.match(o)||[],u=1;uj)&&(et[x]=j,ei.push(x,j),J[x]=d));if(void 0!==u&&void 0===et[u])throw Error(["Could not find a path from ",o," to ",u,"."].join(""));return J},extract_shortest_path_from_predecessor_list:function(n,i){for(var o=[],u=i;u;)o.push(u),n[u],u=n[u];return o.reverse(),o},find_path:function(n,o,u){var l=i.single_source_shortest_paths(n,o,u);return i.extract_shortest_path_from_predecessor_list(l,u)},PriorityQueue:{make:function(n){var o,u=i.PriorityQueue,l={};for(o in n=n||{},u)u.hasOwnProperty(o)&&(l[o]=u[o]);return l.queue=[],l.sorter=n.sorter||u.default_sorter,l},default_sorter:function(n,i){return n.cost-i.cost},push:function(n,i){this.queue.push({value:n,cost:i}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};n.exports=i},62981:function(n){"use strict";n.exports=function(n){for(var i=[],o=n.length,u=0;u=55296&&l<=56319&&o>u+1){var d=n.charCodeAt(u+1);d>=56320&&d<=57343&&(l=(l-55296)*1024+d-56320+65536,u+=1)}if(l<128){i.push(l);continue}if(l<2048){i.push(l>>6|192),i.push(63&l|128);continue}if(l<55296||l>=57344&&l<65536){i.push(l>>12|224),i.push(l>>6&63|128),i.push(63&l|128);continue}if(l>=65536&&l<=1114111){i.push(l>>18|240),i.push(l>>12&63|128),i.push(l>>6&63|128),i.push(63&l|128);continue}i.push(239,191,189)}return new Uint8Array(i).buffer}},47913:function(n){"use strict";var i=Object.prototype.hasOwnProperty,o="~";function Events(){}function EE(n,i,o){this.fn=n,this.context=i,this.once=o||!1}function addListener(n,i,u,l,d){if("function"!=typeof u)throw TypeError("The listener must be a function");var x=new EE(u,l||n,d),I=o?o+i:i;return n._events[I]?n._events[I].fn?n._events[I]=[n._events[I],x]:n._events[I].push(x):(n._events[I]=x,n._eventsCount++),n}function clearEvent(n,i){0==--n._eventsCount?n._events=new Events:delete n._events[i]}function EventEmitter(){this._events=new Events,this._eventsCount=0}Object.create&&(Events.prototype=Object.create(null),new Events().__proto__||(o=!1)),EventEmitter.prototype.eventNames=function(){var n,u,l=[];if(0===this._eventsCount)return l;for(u in n=this._events)i.call(n,u)&&l.push(o?u.slice(1):u);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(n)):l},EventEmitter.prototype.listeners=function(n){var i=o?o+n:n,u=this._events[i];if(!u)return[];if(u.fn)return[u.fn];for(var l=0,d=u.length,x=Array(d);l0&&x.length>l&&!x.warned){x.warned=!0;var l,d,x,I=Error("Possible EventEmitter memory leak detected. "+x.length+" "+String(i)+" listeners added. Use emitter.setMaxListeners() to increase limit");I.name="MaxListenersExceededWarning",I.emitter=n,I.type=i,I.count=x.length,ProcessEmitWarning(I)}return n}function onceWrapper(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _onceWrap(n,i,o){var u={fired:!1,wrapFn:void 0,target:n,type:i,listener:o},l=onceWrapper.bind(u);return l.listener=o,u.wrapFn=l,l}function _listeners(n,i,o){var u=n._events;if(void 0===u)return[];var l=u[i];return void 0===l?[]:"function"==typeof l?o?[l.listener||l]:[l]:o?unwrapListeners(l):arrayClone(l,l.length)}function listenerCount(n){var i=this._events;if(void 0!==i){var o=i[n];if("function"==typeof o)return 1;if(void 0!==o)return o.length}return 0}function arrayClone(n,i){for(var o=Array(i),u=0;u0&&(x=i[0]),x instanceof Error)throw x;var x,I=Error("Unhandled error."+(x?" ("+x.message+")":""));throw I.context=x,I}var R=d[n];if(void 0===R)return!1;if("function"==typeof R)u(R,this,i);else for(var j=R.length,W=arrayClone(R,j),o=0;o=0;d--)if(o[d]===i||o[d].listener===i){x=o[d].listener,l=d;break}if(l<0)return this;0===l?o.shift():spliceOne(o,l),1===o.length&&(u[n]=o[0]),void 0!==u.removeListener&&this.emit("removeListener",n,x||i)}return this},EventEmitter.prototype.off=EventEmitter.prototype.removeListener,EventEmitter.prototype.removeAllListeners=function(n){var i,o,u;if(void 0===(o=this._events))return this;if(void 0===o.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==o[n]&&(0==--this._eventsCount?this._events=Object.create(null):delete o[n]),this;if(0==arguments.length){var l,d=Object.keys(o);for(u=0;u=0;u--)this.removeListener(n,i[u]);return this},EventEmitter.prototype.listeners=function(n){return _listeners(this,n,!0)},EventEmitter.prototype.rawListeners=function(n){return _listeners(this,n,!1)},EventEmitter.listenerCount=function(n,i){return"function"==typeof n.listenerCount?n.listenerCount(i):listenerCount.call(n,i)},EventEmitter.prototype.listenerCount=listenerCount,EventEmitter.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},65194:function(n){"use strict";n.exports=function(n,i){for(var o={},u=Object.keys(n),l=Array.isArray(i),d=0;d */i.read=function(n,i,o,u,l){var d,x,I=8*l-u-1,R=(1<>1,W=-7,J=o?l-1:0,et=o?-1:1,ei=n[i+J];for(J+=et,d=ei&(1<<-W)-1,ei>>=-W,W+=I;W>0;d=256*d+n[i+J],J+=et,W-=8);for(x=d&(1<<-W)-1,d>>=-W,W+=u;W>0;x=256*x+n[i+J],J+=et,W-=8);if(0===d)d=1-j;else{if(d===R)return x?NaN:(ei?-1:1)*(1/0);x+=Math.pow(2,u),d-=j}return(ei?-1:1)*x*Math.pow(2,d-u)},i.write=function(n,i,o,u,l,d){var x,I,R,j=8*d-l-1,W=(1<>1,et=23===l?5960464477539062e-23:0,ei=u?0:d-1,eo=u?1:-1,es=i<0||0===i&&1/i<0?1:0;for(isNaN(i=Math.abs(i))||i===1/0?(I=isNaN(i)?1:0,x=W):(x=Math.floor(Math.log(i)/Math.LN2),i*(R=Math.pow(2,-x))<1&&(x--,R*=2),x+J>=1?i+=et/R:i+=et*Math.pow(2,1-J),i*R>=2&&(x++,R/=2),x+J>=W?(I=0,x=W):x+J>=1?(I=(i*R-1)*Math.pow(2,l),x+=J):(I=i*Math.pow(2,J-1)*Math.pow(2,l),x=0));l>=8;n[o+ei]=255&I,ei+=eo,I/=256,l-=8);for(x=x<0;n[o+ei]=255&x,ei+=eo,x/=256,j-=8);n[o+ei-eo]|=128*es}},28070:function(n){var i,o,u,l=n.exports={};function defaultSetTimout(){throw Error("setTimeout has not been defined")}function defaultClearTimeout(){throw Error("clearTimeout has not been defined")}function runTimeout(n){if(i===setTimeout)return setTimeout(n,0);if((i===defaultSetTimout||!i)&&setTimeout)return i=setTimeout,setTimeout(n,0);try{return i(n,0)}catch(o){try{return i.call(null,n,0)}catch(o){return i.call(this,n,0)}}}function runClearTimeout(n){if(o===clearTimeout)return clearTimeout(n);if((o===defaultClearTimeout||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(n);try{return o(n)}catch(i){try{return o.call(null,n)}catch(i){return o.call(this,n)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(n){i=defaultSetTimout}try{o="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(n){o=defaultClearTimeout}}();var d=[],x=!1,I=-1;function cleanUpNextTick(){x&&u&&(x=!1,u.length?d=u.concat(d):I=-1,d.length&&drainQueue())}function drainQueue(){if(!x){var n=runTimeout(cleanUpNextTick);x=!0;for(var i=d.length;i;){for(u=d,d=[];++I1)for(var o=1;o>>7-n%8&1)==1},put:function(n,i){for(let o=0;o>>i-o-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(n){let i=Math.floor(this.length/8);this.buffer.length<=i&&this.buffer.push(0),n&&(this.buffer[i]|=128>>>this.length%8),this.length++}},n.exports=BitBuffer},54813:function(n){function BitMatrix(n){if(!n||n<1)throw Error("BitMatrix size must be defined and greater than 0");this.size=n,this.data=new Uint8Array(n*n),this.reservedBit=new Uint8Array(n*n)}BitMatrix.prototype.set=function(n,i,o,u){let l=n*this.size+i;this.data[l]=o,u&&(this.reservedBit[l]=!0)},BitMatrix.prototype.get=function(n,i){return this.data[n*this.size+i]},BitMatrix.prototype.xor=function(n,i,o){this.data[n*this.size+i]^=o},BitMatrix.prototype.isReserved=function(n,i){return this.reservedBit[n*this.size+i]},n.exports=BitMatrix},75112:function(n,i,o){let u=o(62981),l=o(20608);function ByteData(n){this.mode=l.BYTE,"string"==typeof n&&(n=u(n)),this.data=new Uint8Array(n)}ByteData.getBitsLength=function(n){return 8*n},ByteData.prototype.getLength=function(){return this.data.length},ByteData.prototype.getBitsLength=function(){return ByteData.getBitsLength(this.data.length)},ByteData.prototype.write=function(n){for(let i=0,o=this.data.length;i=0&&n.bit<4},i.from=function(n,o){if(i.isValid(n))return n;try{return fromString(n)}catch(n){return o}}},2379:function(n,i,o){let u=o(49210).getSymbolSize;i.getPositions=function(n){let i=u(n);return[[0,0],[i-7,0],[0,i-7]]}},88566:function(n,i,o){let u=o(49210),l=u.getBCHDigit(1335);i.getEncodedBits=function(n,i){let o=n.bit<<3|i,d=o<<10;for(;u.getBCHDigit(d)-l>=0;)d^=1335<=33088&&o<=40956)o-=33088;else if(o>=57408&&o<=60351)o-=49472;else throw Error("Invalid SJIS character: "+this.data[i]+"\nMake sure your charset is UTF-8");o=(o>>>8&255)*192+(255&o),n.put(o,13)}},n.exports=KanjiData},61760:function(n,i){i.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};let o={N1:3,N2:3,N3:40,N4:10};function getMaskAt(n,o,u){switch(n){case i.Patterns.PATTERN000:return(o+u)%2==0;case i.Patterns.PATTERN001:return o%2==0;case i.Patterns.PATTERN010:return u%3==0;case i.Patterns.PATTERN011:return(o+u)%3==0;case i.Patterns.PATTERN100:return(Math.floor(o/2)+Math.floor(u/3))%2==0;case i.Patterns.PATTERN101:return o*u%2+o*u%3==0;case i.Patterns.PATTERN110:return(o*u%2+o*u%3)%2==0;case i.Patterns.PATTERN111:return(o*u%3+(o+u)%2)%2==0;default:throw Error("bad maskPattern:"+n)}}i.isValid=function(n){return null!=n&&""!==n&&!isNaN(n)&&n>=0&&n<=7},i.from=function(n){return i.isValid(n)?parseInt(n,10):void 0},i.getPenaltyN1=function(n){let i=n.size,u=0,l=0,d=0,x=null,I=null;for(let R=0;R=5&&(u+=o.N1+(l-5)),x=i,l=1),(i=n.get(j,R))===I?d++:(d>=5&&(u+=o.N1+(d-5)),I=i,d=1)}l>=5&&(u+=o.N1+(l-5)),d>=5&&(u+=o.N1+(d-5))}return u},i.getPenaltyN2=function(n){let i=n.size,u=0;for(let o=0;o=10&&(1488===l||93===l)&&u++,d=d<<1&2047|n.get(x,o),x>=10&&(1488===d||93===d)&&u++}return u*o.N3},i.getPenaltyN4=function(n){let i=0,u=n.data.length;for(let o=0;o=1&&i<10?n.ccBits[0]:i<27?n.ccBits[1]:n.ccBits[2]},i.getBestModeForData=function(n){return l.testNumeric(n)?i.NUMERIC:l.testAlphanumeric(n)?i.ALPHANUMERIC:l.testKanji(n)?i.KANJI:i.BYTE},i.toString=function(n){if(n&&n.id)return n.id;throw Error("Invalid mode")},i.isValid=function(n){return n&&n.bit&&n.ccBits},i.from=function(n,o){if(i.isValid(n))return n;try{return fromString(n)}catch(n){return o}}},98163:function(n,i,o){let u=o(20608);function NumericData(n){this.mode=u.NUMERIC,this.data=n.toString()}NumericData.getBitsLength=function(n){return 10*Math.floor(n/3)+(n%3?n%3*3+1:0)},NumericData.prototype.getLength=function(){return this.data.length},NumericData.prototype.getBitsLength=function(){return NumericData.getBitsLength(this.data.length)},NumericData.prototype.write=function(n){let i,o;for(i=0;i+3<=this.data.length;i+=3)o=parseInt(this.data.substr(i,3),10),n.put(o,10);let u=this.data.length-i;u>0&&(o=parseInt(this.data.substr(i),10),n.put(o,3*u+1))},n.exports=NumericData},60466:function(n,i,o){let u=o(88201);i.mul=function(n,i){let o=new Uint8Array(n.length+i.length-1);for(let l=0;l=0;){let n=o[0];for(let l=0;l=0&&i<=6&&(0===u||6===u)||u>=0&&u<=6&&(0===i||6===i)||i>=2&&i<=4&&u>=2&&u<=4?n.set(l+i,d+u,!0,!0):n.set(l+i,d+u,!1,!0))}}function setupTimingPattern(n){let i=n.size;for(let o=8;o>i&1)==1,n.set(o,u,l,!0),n.set(u,o,l,!0)}function setupFormatInfo(n,i,o){let u,l;let d=n.size,x=ei.getEncodedBits(i,o);for(u=0;u<15;u++)l=(x>>u&1)==1,u<6?n.set(u,8,l,!0):u<8?n.set(u+1,8,l,!0):n.set(d-15+u,8,l,!0),u<8?n.set(8,d-u-1,l,!0):u<9?n.set(8,15-u-1+1,l,!0):n.set(8,15-u-1,l,!0);n.set(d-8,8,1,!0)}function setupData(n,i){let o=n.size,u=-1,l=o-1,d=7,x=0;for(let I=o-1;I>0;I-=2)for(6===I&&I--;;){for(let o=0;o<2;o++)if(!n.isReserved(l,I-o)){let u=!1;x>>d&1)==1),n.set(l,I-o,u),-1==--d&&(x++,d=7)}if((l+=u)<0||o<=l){l-=u,u=-u;break}}}function createData(n,i,o){let l=new d;o.forEach(function(i){l.put(i.mode.bit,4),l.put(i.getLength(),eo.getCharCountIndicator(i.mode,n)),i.write(l)});let x=u.getSymbolTotalCodewords(n),I=W.getTotalCodewordsCount(n,i),R=(x-I)*8;for(l.getLengthInBits()+4<=R&&l.put(0,4);l.getLengthInBits()%8!=0;)l.putBit(0);let j=(R-l.getLengthInBits())/8;for(let n=0;n=7&&setupVersionInfo(J,i),setupData(J,R),isNaN(l)&&(l=j.getBestMask(J,setupFormatInfo.bind(null,J,o))),j.applyMask(l,J),setupFormatInfo(J,o,l),{modules:J,version:i,errorCorrectionLevel:o,maskPattern:l,segments:d}}i.create=function(n,i){let o,d;if(void 0===n||""===n)throw Error("No input text");let x=l.M;return void 0!==i&&(x=l.from(i.errorCorrectionLevel,l.M),o=et.from(i.version),d=j.from(i.maskPattern),i.toSJISFunc&&u.setToSJISFunction(i.toSJISFunc)),createSymbol(n,o,x,d)}},14196:function(n,i,o){let u=o(60466);function ReedSolomonEncoder(n){this.genPoly=void 0,this.degree=n,this.degree&&this.initialize(this.degree)}ReedSolomonEncoder.prototype.initialize=function(n){this.degree=n,this.genPoly=u.generateECPolynomial(this.degree)},ReedSolomonEncoder.prototype.encode=function(n){if(!this.genPoly)throw Error("Encoder not initialized");let i=new Uint8Array(n.length+this.degree);i.set(n);let o=u.mod(i,this.genPoly),l=this.degree-o.length;if(l>0){let n=new Uint8Array(this.degree);return n.set(o,l),n}return o},n.exports=ReedSolomonEncoder},80347:function(n,i){let o="[0-9]+",u="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";u=u.replace(/u/g,"\\u");let l="(?:(?![A-Z0-9 $%*+\\-./:]|"+u+")(?:.|[\r\n]))+";i.KANJI=RegExp(u,"g"),i.BYTE_KANJI=RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),i.BYTE=RegExp(l,"g"),i.NUMERIC=RegExp(o,"g"),i.ALPHANUMERIC=RegExp("[A-Z $%*+\\-./:]+","g");let d=RegExp("^"+u+"$"),x=RegExp("^"+o+"$"),I=RegExp("^[A-Z0-9 $%*+\\-./:]+$");i.testKanji=function(n){return d.test(n)},i.testNumeric=function(n){return x.test(n)},i.testAlphanumeric=function(n){return I.test(n)}},22844:function(n,i,o){let u=o(20608),l=o(98163),d=o(60051),x=o(75112),I=o(26250),R=o(80347),j=o(49210),W=o(13526);function getStringByteLength(n){return unescape(encodeURIComponent(n)).length}function getSegments(n,i,o){let u;let l=[];for(;null!==(u=n.exec(o));)l.push({data:u[0],index:u.index,mode:i,length:u[0].length});return l}function getSegmentsFromString(n){let i,o;let l=getSegments(R.NUMERIC,u.NUMERIC,n),d=getSegments(R.ALPHANUMERIC,u.ALPHANUMERIC,n);j.isKanjiModeEnabled()?(i=getSegments(R.BYTE,u.BYTE,n),o=getSegments(R.KANJI,u.KANJI,n)):(i=getSegments(R.BYTE_KANJI,u.BYTE,n),o=[]);let x=l.concat(d,i,o);return x.sort(function(n,i){return n.index-i.index}).map(function(n){return{data:n.data,mode:n.mode,length:n.length}})}function getSegmentBitsLength(n,i){switch(i){case u.NUMERIC:return l.getBitsLength(n);case u.ALPHANUMERIC:return d.getBitsLength(n);case u.KANJI:return I.getBitsLength(n);case u.BYTE:return x.getBitsLength(n)}}function mergeSegments(n){return n.reduce(function(n,i){let o=n.length-1>=0?n[n.length-1]:null;return o&&o.mode===i.mode?n[n.length-1].data+=i.data:n.push(i),n},[])}function buildNodes(n){let i=[];for(let o=0;o40)throw Error('"version" should be in range from 1 to 40');return 4*n+17},i.getSymbolTotalCodewords=function(n){return u[n]},i.getBCHDigit=function(n){let i=0;for(;0!==n;)i++,n>>>=1;return i},i.setToSJISFunction=function(n){if("function"!=typeof n)throw Error('"toSJISFunc" is not a valid function.');o=n},i.isKanjiModeEnabled=function(){return void 0!==o},i.toSJIS=function(n){return o(n)}},80789:function(n,i){i.isValid=function(n){return!isNaN(n)&&n>=1&&n<=40}},87667:function(n,i,o){let u=o(49210),l=o(58045),d=o(6084),x=o(20608),I=o(80789),R=u.getBCHDigit(7973);function getBestVersionForDataLength(n,o,u){for(let l=1;l<=40;l++)if(o<=i.getCapacity(l,u,n))return l}function getReservedBitsCount(n,i){return x.getCharCountIndicator(n,i)+4}function getTotalBitsFromDataArray(n,i){let o=0;return n.forEach(function(n){let u=getReservedBitsCount(n.mode,i);o+=u+n.getBitsLength()}),o}function getBestVersionForMixedData(n,o){for(let u=1;u<=40;u++){let l=getTotalBitsFromDataArray(n,u);if(l<=i.getCapacity(u,o,x.MIXED))return u}}i.from=function(n,i){return I.isValid(n)?parseInt(n,10):i},i.getCapacity=function(n,i,o){if(!I.isValid(n))throw Error("Invalid QR Code version");void 0===o&&(o=x.BYTE);let d=u.getSymbolTotalCodewords(n),R=l.getTotalCodewordsCount(n,i),j=(d-R)*8;if(o===x.MIXED)return j;let W=j-getReservedBitsCount(o,n);switch(o){case x.NUMERIC:return Math.floor(W/10*3);case x.ALPHANUMERIC:return Math.floor(W/11*2);case x.KANJI:return Math.floor(W/13);case x.BYTE:default:return Math.floor(W/8)}},i.getBestVersionForData=function(n,i){let o;let u=d.from(i,d.M);if(Array.isArray(n)){if(n.length>1)return getBestVersionForMixedData(n,u);if(0===n.length)return 1;o=n[0]}else o=n;return getBestVersionForDataLength(o.mode,o.getLength(),u)},i.getEncodedBits=function(n){if(!I.isValid(n)||n<7)throw Error("Invalid QR Code version");let i=n<<12;for(;u.getBCHDigit(i)-R>=0;)i^=7973<0&&R>0&&n[I-1]||(u+=d?svgCmd("M",R+o,.5+j+o):svgCmd("m",l,0),l=0,d=!1),R+1':"",j="',W=l.width?'width="'+l.width+'" height="'+l.width+'" ':"",J=''+R+j+"\n";return"function"==typeof o&&o(null,J),J}},86957:function(n,i){function hex2rgba(n){if("number"==typeof n&&(n=n.toString()),"string"!=typeof n)throw Error("Color should be defined as hex string");let i=n.slice().replace("#","").split("");if(i.length<3||5===i.length||i.length>8)throw Error("Invalid hex color: "+n);(3===i.length||4===i.length)&&(i=Array.prototype.concat.apply([],i.map(function(n){return[n,n]}))),6===i.length&&i.push("F","F");let o=parseInt(i.join(""),16);return{r:o>>24&255,g:o>>16&255,b:o>>8&255,a:255&o,hex:"#"+i.slice(0,6).join("")}}i.getOptions=function(n){n||(n={}),n.color||(n.color={});let i=void 0===n.margin||null===n.margin||n.margin<0?4:n.margin,o=n.width&&n.width>=21?n.width:void 0,u=n.scale||4;return{width:o,scale:o?4:u,margin:i,color:{dark:hex2rgba(n.color.dark||"#000000ff"),light:hex2rgba(n.color.light||"#ffffffff")},type:n.type,rendererOpts:n.rendererOpts||{}}},i.getScale=function(n,i){return i.width&&i.width>=n+2*i.margin?i.width/(n+2*i.margin):i.scale},i.getImageWidth=function(n,o){let u=i.getScale(n,o);return Math.floor((n+2*o.margin)*u)},i.qrToImageData=function(n,o,u){let l=o.modules.size,d=o.modules.data,x=i.getScale(l,u),I=Math.floor((l+2*u.margin)*x),R=u.margin*x,j=[u.color.light,u.color.dark];for(let i=0;i=R&&o>=R&&inull==n,I=Symbol("encodeFragmentIdentifier");function encoderForArrayFormat(n){switch(n.arrayFormat){case"index":return i=>(o,u)=>{let l=o.length;return void 0===u||n.skipNull&&null===u||n.skipEmptyString&&""===u?o:null===u?[...o,[encode(i,n),"[",l,"]"].join("")]:[...o,[encode(i,n),"[",encode(l,n),"]=",encode(u,n)].join("")]};case"bracket":return i=>(o,u)=>void 0===u||n.skipNull&&null===u||n.skipEmptyString&&""===u?o:null===u?[...o,[encode(i,n),"[]"].join("")]:[...o,[encode(i,n),"[]=",encode(u,n)].join("")];case"colon-list-separator":return i=>(o,u)=>void 0===u||n.skipNull&&null===u||n.skipEmptyString&&""===u?o:null===u?[...o,[encode(i,n),":list="].join("")]:[...o,[encode(i,n),":list=",encode(u,n)].join("")];case"comma":case"separator":case"bracket-separator":{let i="bracket-separator"===n.arrayFormat?"[]=":"=";return o=>(u,l)=>void 0===l||n.skipNull&&null===l||n.skipEmptyString&&""===l?u:(l=null===l?"":l,0===u.length)?[[encode(o,n),i,encode(l,n)].join("")]:[[u,encode(l,n)].join(n.arrayFormatSeparator)]}default:return i=>(o,u)=>void 0===u||n.skipNull&&null===u||n.skipEmptyString&&""===u?o:null===u?[...o,encode(i,n)]:[...o,[encode(i,n),"=",encode(u,n)].join("")]}}function parserForArrayFormat(n){let i;switch(n.arrayFormat){case"index":return(n,o,u)=>{if(i=/\[(\d*)\]$/.exec(n),n=n.replace(/\[\d*\]$/,""),!i){u[n]=o;return}void 0===u[n]&&(u[n]={}),u[n][i[1]]=o};case"bracket":return(n,o,u)=>{if(i=/(\[\])$/.exec(n),n=n.replace(/\[\]$/,""),!i){u[n]=o;return}if(void 0===u[n]){u[n]=[o];return}u[n]=[].concat(u[n],o)};case"colon-list-separator":return(n,o,u)=>{if(i=/(:list)$/.exec(n),n=n.replace(/:list$/,""),!i){u[n]=o;return}if(void 0===u[n]){u[n]=[o];return}u[n]=[].concat(u[n],o)};case"comma":case"separator":return(i,o,u)=>{let l="string"==typeof o&&o.includes(n.arrayFormatSeparator),d="string"==typeof o&&!l&&decode(o,n).includes(n.arrayFormatSeparator);o=d?decode(o,n):o;let x=l||d?o.split(n.arrayFormatSeparator).map(i=>decode(i,n)):null===o?o:decode(o,n);u[i]=x};case"bracket-separator":return(i,o,u)=>{let l=/(\[\])$/.test(i);if(i=i.replace(/\[\]$/,""),!l){u[i]=o?decode(o,n):o;return}let d=null===o?[]:o.split(n.arrayFormatSeparator).map(i=>decode(i,n));if(void 0===u[i]){u[i]=d;return}u[i]=[].concat(u[i],d)};default:return(n,i,o)=>{if(void 0===o[n]){o[n]=i;return}o[n]=[].concat(o[n],i)}}}function validateArrayFormatSeparator(n){if("string"!=typeof n||1!==n.length)throw TypeError("arrayFormatSeparator must be single character string")}function encode(n,i){return i.encode?i.strict?u(n):encodeURIComponent(n):n}function decode(n,i){return i.decode?l(n):n}function keysSorter(n){return Array.isArray(n)?n.sort():"object"==typeof n?keysSorter(Object.keys(n)).sort((n,i)=>Number(n)-Number(i)).map(i=>n[i]):n}function removeHash(n){let i=n.indexOf("#");return -1!==i&&(n=n.slice(0,i)),n}function getHash(n){let i="",o=n.indexOf("#");return -1!==o&&(i=n.slice(o)),i}function extract(n){n=removeHash(n);let i=n.indexOf("?");return -1===i?"":n.slice(i+1)}function parseValue(n,i){return i.parseNumbers&&!Number.isNaN(Number(n))&&"string"==typeof n&&""!==n.trim()?n=Number(n):i.parseBooleans&&null!==n&&("true"===n.toLowerCase()||"false"===n.toLowerCase())&&(n="true"===n.toLowerCase()),n}function parse(n,i){validateArrayFormatSeparator((i=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},i)).arrayFormatSeparator);let o=parserForArrayFormat(i),u=Object.create(null);if("string"!=typeof n||!(n=n.trim().replace(/^[?#&]/,"")))return u;for(let l of n.split("&")){if(""===l)continue;let[n,x]=d(i.decode?l.replace(/\+/g," "):l,"=");x=void 0===x?null:["comma","separator","bracket-separator"].includes(i.arrayFormat)?x:decode(x,i),o(decode(n,i),x,u)}for(let n of Object.keys(u)){let o=u[n];if("object"==typeof o&&null!==o)for(let n of Object.keys(o))o[n]=parseValue(o[n],i);else u[n]=parseValue(o,i)}return!1===i.sort?u:(!0===i.sort?Object.keys(u).sort():Object.keys(u).sort(i.sort)).reduce((n,i)=>{let o=u[i];return o&&"object"==typeof o&&!Array.isArray(o)?n[i]=keysSorter(o):n[i]=o,n},Object.create(null))}i.extract=extract,i.parse=parse,i.stringify=(n,i)=>{if(!n)return"";validateArrayFormatSeparator((i=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},i)).arrayFormatSeparator);let shouldFilter=o=>i.skipNull&&isNullOrUndefined(n[o])||i.skipEmptyString&&""===n[o],o=encoderForArrayFormat(i),u={};for(let i of Object.keys(n))shouldFilter(i)||(u[i]=n[i]);let l=Object.keys(u);return!1!==i.sort&&l.sort(i.sort),l.map(u=>{let l=n[u];return void 0===l?"":null===l?encode(u,i):Array.isArray(l)?0===l.length&&"bracket-separator"===i.arrayFormat?encode(u,i)+"[]":l.reduce(o(u),[]).join("&"):encode(u,i)+"="+encode(l,i)}).filter(n=>n.length>0).join("&")},i.parseUrl=(n,i)=>{i=Object.assign({decode:!0},i);let[o,u]=d(n,"#");return Object.assign({url:o.split("?")[0]||"",query:parse(extract(n),i)},i&&i.parseFragmentIdentifier&&u?{fragmentIdentifier:decode(u,i)}:{})},i.stringifyUrl=(n,o)=>{o=Object.assign({encode:!0,strict:!0,[I]:!0},o);let u=removeHash(n.url).split("?")[0]||"",l=i.extract(n.url),d=i.parse(l,{sort:!1}),x=Object.assign(d,n.query),R=i.stringify(x,o);R&&(R=`?${R}`);let j=getHash(n.url);return n.fragmentIdentifier&&(j=`#${o[I]?encode(n.fragmentIdentifier,o):n.fragmentIdentifier}`),`${u}${R}${j}`},i.pick=(n,o,u)=>{u=Object.assign({parseFragmentIdentifier:!0,[I]:!1},u);let{url:l,query:d,fragmentIdentifier:R}=i.parseUrl(n,u);return i.stringifyUrl({url:l,query:x(d,o),fragmentIdentifier:R},u)},i.exclude=(n,o,u)=>{let l=Array.isArray(o)?n=>!o.includes(n):(n,i)=>!o(n,i);return i.pick(n,l,u)}},3220:function(n,i){"use strict";/** @license React v16.13.1 - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var o="function"==typeof Symbol&&Symbol.for,u=o?Symbol.for("react.element"):60103,l=o?Symbol.for("react.portal"):60106,d=o?Symbol.for("react.fragment"):60107,x=o?Symbol.for("react.strict_mode"):60108,I=o?Symbol.for("react.profiler"):60114,R=o?Symbol.for("react.provider"):60109,j=o?Symbol.for("react.context"):60110,W=o?Symbol.for("react.async_mode"):60111,J=o?Symbol.for("react.concurrent_mode"):60111,et=o?Symbol.for("react.forward_ref"):60112,ei=o?Symbol.for("react.suspense"):60113,eo=o?Symbol.for("react.suspense_list"):60120,es=o?Symbol.for("react.memo"):60115,eu=o?Symbol.for("react.lazy"):60116,ec=o?Symbol.for("react.block"):60121,el=o?Symbol.for("react.fundamental"):60117,ed=o?Symbol.for("react.responder"):60118,ef=o?Symbol.for("react.scope"):60119;function z(n){if("object"==typeof n&&null!==n){var i=n.$$typeof;switch(i){case u:switch(n=n.type){case W:case J:case d:case I:case x:case ei:return n;default:switch(n=n&&n.$$typeof){case j:case et:case eu:case es:case R:return n;default:return i}}case l:return i}}}function A(n){return z(n)===J}i.AsyncMode=W,i.ConcurrentMode=J,i.ContextConsumer=j,i.ContextProvider=R,i.Element=u,i.ForwardRef=et,i.Fragment=d,i.Lazy=eu,i.Memo=es,i.Portal=l,i.Profiler=I,i.StrictMode=x,i.Suspense=ei,i.isAsyncMode=function(n){return A(n)||z(n)===W},i.isConcurrentMode=A,i.isContextConsumer=function(n){return z(n)===j},i.isContextProvider=function(n){return z(n)===R},i.isElement=function(n){return"object"==typeof n&&null!==n&&n.$$typeof===u},i.isForwardRef=function(n){return z(n)===et},i.isFragment=function(n){return z(n)===d},i.isLazy=function(n){return z(n)===eu},i.isMemo=function(n){return z(n)===es},i.isPortal=function(n){return z(n)===l},i.isProfiler=function(n){return z(n)===I},i.isStrictMode=function(n){return z(n)===x},i.isSuspense=function(n){return z(n)===ei},i.isValidElementType=function(n){return"string"==typeof n||"function"==typeof n||n===d||n===J||n===I||n===x||n===ei||n===eo||"object"==typeof n&&null!==n&&(n.$$typeof===eu||n.$$typeof===es||n.$$typeof===R||n.$$typeof===j||n.$$typeof===et||n.$$typeof===el||n.$$typeof===ed||n.$$typeof===ef||n.$$typeof===ec)},i.typeOf=z},1425:function(n,i,o){"use strict";n.exports=o(3220)},47936:function(n,i){"use strict";/** - * @license React - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var o,u=Symbol.for("react.element"),l=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),j=Symbol.for("react.context"),W=Symbol.for("react.server_context"),J=Symbol.for("react.forward_ref"),et=Symbol.for("react.suspense"),ei=Symbol.for("react.suspense_list"),eo=Symbol.for("react.memo"),es=Symbol.for("react.lazy"),eu=Symbol.for("react.offscreen");function v(n){if("object"==typeof n&&null!==n){var i=n.$$typeof;switch(i){case u:switch(n=n.type){case d:case I:case x:case et:case ei:return n;default:switch(n=n&&n.$$typeof){case W:case j:case J:case es:case eo:case R:return n;default:return i}}case l:return i}}}o=Symbol.for("react.module.reference"),i.isValidElementType=function(n){return"string"==typeof n||"function"==typeof n||n===d||n===I||n===x||n===et||n===ei||n===eu||"object"==typeof n&&null!==n&&(n.$$typeof===es||n.$$typeof===eo||n.$$typeof===R||n.$$typeof===j||n.$$typeof===J||n.$$typeof===o||void 0!==n.getModuleId)},i.typeOf=v},64372:function(n,i,o){"use strict";n.exports=o(47936)},22435:function(n,i,o){"use strict";o.d(i,{Y:function(){return useTransition}});var u=o(34270),l=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],startOrEnd=function(n){return n?6:5},updateState=function(n,i,o,u,d){clearTimeout(u.current),i(n),o.current=n,d&&d({state:l[n]})},useTransition=function(n){var i,o,d=void 0===n?{}:n,x=d.enter,I=void 0===x||x,R=d.exit,j=void 0===R||R,W=d.preEnter,J=d.preExit,et=d.timeout,ei=d.initialEntered,eo=d.mountOnEnter,es=d.unmountOnExit,eu=d.onChange,ec=(0,u.useState)(ei?2:startOrEnd(eo)),el=ec[0],ed=ec[1],ef=(0,u.useRef)(el),eh=(0,u.useRef)();"object"==typeof et?(i=et.enter,o=et.exit):i=o=et;var ep=(0,u.useCallback)(function(){var n;switch(ef.current){case 1:case 0:n=2;break;case 4:case 3:n=startOrEnd(es)}void 0!==n&&updateState(n,ed,ef,eh,eu)},[eu,es]),em=(0,u.useCallback)(function(n){var transitState=function transitState(n){switch(updateState(n,ed,ef,eh,eu),n){case 1:i>=0&&(eh.current=setTimeout(ep,i));break;case 4:o>=0&&(eh.current=setTimeout(ep,o));break;case 0:case 3:eh.current=setTimeout(function(){return transitState(n+1)},0)}},u=ef.current<=2;"boolean"!=typeof n&&(n=!u),n?u||transitState(I?W?0:1:2):u&&transitState(j?J?3:4:startOrEnd(es))},[ep,eu,I,j,W,J,i,o,es]);return(0,u.useEffect)(function(){return function(){return clearTimeout(eh.current)}},[]),[l[el],em,ep]}},30349:function(n,i,o){"use strict";o.d(i,{Z:function(){return useMeasure}});var u=o(34270),l=o(26770),d=o.n(l);function useMeasure(n){let{debounce:i,scroll:o,polyfill:l,offsetSize:x}=void 0===n?{debounce:0,scroll:!1,offsetSize:!1}:n,I=l||("undefined"==typeof window?class{}:window.ResizeObserver);if(!I)throw Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");let[R,j]=(0,u.useState)({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),W=(0,u.useRef)({element:null,scrollContainers:null,resizeObserver:null,lastBounds:R}),J=i?"number"==typeof i?i:i.scroll:null,et=i?"number"==typeof i?i:i.resize:null,ei=(0,u.useRef)(!1);(0,u.useEffect)(()=>(ei.current=!0,()=>void(ei.current=!1)));let[eo,es,eu]=(0,u.useMemo)(()=>{let callback=()=>{if(!W.current.element)return;let{left:n,top:i,width:o,height:u,bottom:l,right:d,x:I,y:R}=W.current.element.getBoundingClientRect(),J={left:n,top:i,width:o,height:u,bottom:l,right:d,x:I,y:R};W.current.element instanceof HTMLElement&&x&&(J.height=W.current.element.offsetHeight,J.width=W.current.element.offsetWidth),Object.freeze(J),ei.current&&!areBoundsEqual(W.current.lastBounds,J)&&j(W.current.lastBounds=J)};return[callback,et?d()(callback,et):callback,J?d()(callback,J):callback]},[j,x,J,et]);function removeListeners(){W.current.scrollContainers&&(W.current.scrollContainers.forEach(n=>n.removeEventListener("scroll",eu,!0)),W.current.scrollContainers=null),W.current.resizeObserver&&(W.current.resizeObserver.disconnect(),W.current.resizeObserver=null)}function addListeners(){W.current.element&&(W.current.resizeObserver=new I(eu),W.current.resizeObserver.observe(W.current.element),o&&W.current.scrollContainers&&W.current.scrollContainers.forEach(n=>n.addEventListener("scroll",eu,{capture:!0,passive:!0})))}return useOnWindowScroll(eu,!!o),useOnWindowResize(es),(0,u.useEffect)(()=>{removeListeners(),addListeners()},[o,eu,es]),(0,u.useEffect)(()=>removeListeners,[]),[n=>{n&&n!==W.current.element&&(removeListeners(),W.current.element=n,W.current.scrollContainers=findScrollContainers(n),addListeners())},R,eo]}function useOnWindowResize(n){(0,u.useEffect)(()=>(window.addEventListener("resize",n),()=>void window.removeEventListener("resize",n)),[n])}function useOnWindowScroll(n,i){(0,u.useEffect)(()=>{if(i)return window.addEventListener("scroll",n,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",n,!0)},[n,i])}function findScrollContainers(n){let i=[];if(!n||n===document.body)return i;let{overflow:o,overflowX:u,overflowY:l}=window.getComputedStyle(n);return[o,u,l].some(n=>"auto"===n||"scroll"===n)&&i.push(n),[...i,...findScrollContainers(n.parentElement)]}let x=["x","y","top","bottom","left","right","width","height"],areBoundsEqual=(n,i)=>x.every(o=>n[o]===i[o])},1628:function(n){n.exports=function(n,i,o,u){var l=o?o.call(u,n,i):void 0;if(void 0!==l)return!!l;if(n===i)return!0;if("object"!=typeof n||!n||"object"!=typeof i||!i)return!1;var d=Object.keys(n),x=Object.keys(i);if(d.length!==x.length)return!1;for(var I=Object.prototype.hasOwnProperty.bind(i),R=0;R{if(!("string"==typeof n&&"string"==typeof i))throw TypeError("Expected the arguments to be of type `string`");if(""===i)return[n];let o=n.indexOf(i);return -1===o?[n]:[n.slice(0,o),n.slice(o+i.length)]}},55517:function(n){"use strict";n.exports=n=>encodeURIComponent(n).replace(/[!'()*]/g,n=>`%${n.charCodeAt(0).toString(16).toUpperCase()}`)},39618:function(n,i,o){"use strict";o.d(i,{f6:function(){return Le},iv:function(){return Ae},ZP:function(){return e$},F4:function(){return We}});var u,l,d,x=o(64372),I=o(34270),R=o(1628),j=o.n(R),stylis_browser_esm=function(n){function M(n,u,l,d,x){for(var I,J,ei,eo,es,eu=0,ec=0,em=0,ey=0,ev=0,eE=0,ew=ei=I=0,eP=0,ex=0,eT=0,eA=0,eS=l.length,eC=eS-1,e_="",eO="",eI="",eB="";ePI)&&(eA=(e_=e_.replace(" ",":")).length),0u&&(u=(i=i.trim()).charCodeAt(0)),u){case 38:return i.replace(I,"$1"+n.trim());case 58:return n.trim()+i.replace(I,"$1"+n.trim());default:if(0<1*o&&0j.charCodeAt(8))break;case 115:I=I.replace(j,"-webkit-"+j)+";"+I;break;case 207:case 102:I=I.replace(j,"-webkit-"+(102o.charCodeAt(0)&&(o=o.trim()),o=[o],0i.charCodeAt(2))),u[n]}),ei=o(15080),eo=o.n(ei),es=o(28070);function y(){return(y=Object.assign||function(n){for(var i=1;i1?i-1:0),u=1;u0?" Args: "+o.join(", "):""))}var eh=function(){function e(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}var n=e.prototype;return n.indexOfGroup=function(n){for(var i=0,o=0;o=this.groupSizes.length){for(var o=this.groupSizes,u=o.length,l=u;n>=l;)(l<<=1)<0&&D(16,""+n);this.groupSizes=new Uint32Array(l),this.groupSizes.set(o),this.length=l;for(var d=u;d=this.length||0===this.groupSizes[n])return i;for(var o=this.groupSizes[n],u=this.indexOfGroup(n),l=u+o,d=u;d=eg&&(eg=i+1),ep.set(n,i),em.set(i,n)},ey="style["+el+'][data-styled-version="5.3.11"]',eb=RegExp("^"+el+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),L=function(n,i,o){for(var u,l=o.split(","),d=0,x=l.length;d=0;o--){var u=i[o];if(u&&1===u.nodeType&&u.hasAttribute(el))return u}}(o),d=void 0!==l?l.nextSibling:null;u.setAttribute(el,"active"),u.setAttribute("data-styled-version","5.3.11");var x=Y();return x&&u.setAttribute("nonce",x),o.insertBefore(u,d),u},ev=function(){function e(n){var i=this.element=q(n);i.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var i=document.styleSheets,o=0,u=i.length;o=0){var o=document.createTextNode(i),u=this.nodes[n];return this.element.insertBefore(o,u||null),this.length++,!0}return!1},n.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},n.getRule=function(n){return n0&&(W+=n+",")}),u+=""+R+j+'{content:"'+W+'"}/*!sc*/\n'}}}return u}(this)},e}(),eA=/(a)(d)/gi,K=function(n){return String.fromCharCode(n+(n>25?39:97))};function Q(n){var i,o="";for(i=Math.abs(n);i>52;i=i/52|0)o=K(i%52)+o;return(K(i%52)+o).replace(eA,"$1-$2")}var ee=function(n,i){for(var o=i.length;o;)n=33*n^i.charCodeAt(--o);return n},te=function(n){return ee(5381,n)};function ne(n){for(var i=0;i>>0);if(!i.hasNameForId(u,x)){var I=o(d,"."+x,void 0,u);i.insertRules(u,x,I)}l.push(x),this.staticRulesId=x}}else{for(var R=this.rules.length,j=ee(this.baseHash,o.hash),W="",J=0;J>>0);if(!i.hasNameForId(u,es)){var eu=o(W,"."+es,void 0,u);i.insertRules(u,es,eu)}l.push(es)}}return l.join(" ")},e}(),e_=/^\s*\/\/.*$/gm,eO=[":","[",".","#"];function ae(n){var i,o,u,l,d=void 0===n?ec:n,x=d.options,I=void 0===x?ec:x,R=d.plugins,j=void 0===R?eu:R,W=new stylis_browser_esm(I),J=[],et=function(n){function t(i){if(i)try{n(i+"}")}catch(n){}}return function(i,o,u,l,d,x,I,R,j,W){switch(i){case 1:if(0===j&&64===o.charCodeAt(0))return n(o+";"),"";break;case 2:if(0===R)return o+"/*|*/";break;case 3:switch(R){case 102:case 112:return n(u[0]+o),"";default:return o+(0===W?"/*|*/":"")}case -2:o.split("/*|*/}").forEach(t)}}}(function(n){J.push(n)}),f=function(n,u,d){return 0===u&&-1!==eO.indexOf(d[o.length])||d.match(l)?n:"."+i};function m(n,d,x,I){void 0===I&&(I="&");var R=n.replace(e_,""),j=d&&x?x+" "+d+" { "+R+" }":R;return i=I,u=RegExp("\\"+(o=d)+"\\b","g"),l=RegExp("(\\"+o+"\\b){2,}"),W(x||!d?"":d,j)}return W.use([].concat(j,[function(n,i,l){2===n&&l.length&&l[0].lastIndexOf(o)>0&&(l[0]=l[0].replace(u,f))},et,function(n){if(-2===n){var i=J;return J=[],i}}])),m.hash=j.length?j.reduce(function(n,i){return i.name||D(15),ee(n,i.name)},5381).toString():"",m}var eI=I.createContext(),eB=(eI.Consumer,I.createContext()),eD=(eB.Consumer,new eT),eR=ae();function pe(){return(0,I.useContext)(eI)||eD}function fe(){return(0,I.useContext)(eB)||eR}function me(n){var i=(0,I.useState)(n.stylisPlugins),o=i[0],u=i[1],l=pe(),d=(0,I.useMemo)(function(){var i=l;return n.sheet?i=n.sheet:n.target&&(i=i.reconstructWithOptions({target:n.target},!1)),n.disableCSSOMInjection&&(i=i.reconstructWithOptions({useCSSOMInjection:!1})),i},[n.disableCSSOMInjection,n.sheet,n.target]),x=(0,I.useMemo)(function(){return ae({options:{prefix:!n.disableVendorPrefixes},plugins:o})},[n.disableVendorPrefixes,o]);return(0,I.useEffect)(function(){j()(o,n.stylisPlugins)||u(n.stylisPlugins)},[n.stylisPlugins]),I.createElement(eI.Provider,{value:d},I.createElement(eB.Provider,{value:x},n.children))}var ej=function(){function e(n,i){var o=this;this.inject=function(n,i){void 0===i&&(i=eR);var u=o.name+i.hash;n.hasNameForId(o.id,u)||n.insertRules(o.id,u,i(o.rules,u,"@keyframes"))},this.toString=function(){return D(12,String(o.name))},this.name=n,this.id="sc-keyframes-"+n,this.rules=i}return e.prototype.getName=function(n){return void 0===n&&(n=eR),this.name+n.hash},e}(),eM=/([A-Z])/,ek=/([A-Z])/g,eF=/^ms-/,we=function(n){return"-"+n.toLowerCase()};function Ee(n){return eM.test(n)?n.replace(ek,we).replace(eF,"-ms-"):n}var be=function(n){return null==n||!1===n||""===n};function _e(n,i,o,u){if(Array.isArray(n)){for(var l,d=[],x=0,I=n.length;x1?i-1:0),u=1;u?@[\\\]^`{|}~-]+/g,eU=/(^-|-$)/g;function je(n){return n.replace(eN,"-").replace(eU,"")}var Te=function(n){return Q(te(n)>>>0)};function xe(n){return"string"==typeof n}var ke=function(n){return"function"==typeof n||"object"==typeof n&&null!==n&&!Array.isArray(n)};function Be(n,i,o){var u=n[o];ke(i)&&ke(u)?ze(u,i):n[o]=i}function ze(n){for(var i=arguments.length,o=Array(i>1?i-1:0),u=1;u=0||(l[o]=n[o]);return l}(i,["componentId"]),d=u&&u+"-"+(xe(n)?n:je(b(n)));return Ye(n,y({},l,{attrs:es,componentId:d}),o)},Object.defineProperty(em,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(i){this._foldedDefaultProps=u?ze({},n.defaultProps,i):i}}),Object.defineProperty(em,"toString",{value:function(){return"."+em.styledComponentId}}),l&&eo()(em,n,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),em}var qe=function(n){return function e(n,i,o){if(void 0===o&&(o=ec),!(0,x.isValidElementType)(i))return D(1,String(i));var s=function(){return n(i,o,Ae.apply(void 0,arguments))};return s.withConfig=function(u){return e(n,i,y({},o,{},u))},s.attrs=function(u){return e(n,i,y({},o,{attrs:Array.prototype.concat(o.attrs,u).filter(Boolean)}))},s}(Ye,n)};function We(n){for(var i=arguments.length,o=Array(i>1?i-1:0),u=1;u2&&eT.registerId(this.componentId+n),this.removeStyles(n,o),this.createStyles(n,i,o,u)},(d=(function(){var n=this;this._emitSheetCSS=function(){var i=n.instance.toString();if(!i)return"";var o=Y();return""},this.getStyleTags=function(){return n.sealed?D(2):n._emitSheetCSS()},this.getStyleElement=function(){if(n.sealed)return D(2);var i,o=((i={})[el]="",i["data-styled-version"]="5.3.11",i.dangerouslySetInnerHTML={__html:n.instance.toString()},i),u=Y();return u&&(o.nonce=u),[I.createElement("style",y({},o,{key:"sc-0-0"}))]},this.seal=function(){n.sealed=!0},this.instance=new eT({isServer:!0}),this.sealed=!1}).prototype).collectStyles=function(n){return this.sealed?D(2):I.createElement(me,{sheet:this.instance},n)},d.interleaveWithNodeStream=function(n){return D(3)};var e$=qe},96579:function(n,i,o){"use strict";o.r(i),o.d(i,{__assign:function(){return __assign},__asyncDelegator:function(){return __asyncDelegator},__asyncGenerator:function(){return __asyncGenerator},__asyncValues:function(){return __asyncValues},__await:function(){return __await},__awaiter:function(){return __awaiter},__classPrivateFieldGet:function(){return __classPrivateFieldGet},__classPrivateFieldSet:function(){return __classPrivateFieldSet},__createBinding:function(){return __createBinding},__decorate:function(){return __decorate},__exportStar:function(){return __exportStar},__extends:function(){return __extends},__generator:function(){return __generator},__importDefault:function(){return __importDefault},__importStar:function(){return __importStar},__makeTemplateObject:function(){return __makeTemplateObject},__metadata:function(){return __metadata},__param:function(){return __param},__read:function(){return __read},__rest:function(){return __rest},__spread:function(){return __spread},__spreadArrays:function(){return __spreadArrays},__values:function(){return __values}});/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var extendStatics=function(n,i){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])})(n,i)};function __extends(n,i){function __(){this.constructor=n}extendStatics(n,i),n.prototype=null===i?Object.create(i):(__.prototype=i.prototype,new __)}var __assign=function(){return(__assign=Object.assign||function(n){for(var i,o=1,u=arguments.length;oi.indexOf(u)&&(o[u]=n[u]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,u=Object.getOwnPropertySymbols(n);li.indexOf(u[l])&&Object.prototype.propertyIsEnumerable.call(n,u[l])&&(o[u[l]]=n[u[l]]);return o}function __decorate(n,i,o,u){var l,d=arguments.length,x=d<3?i:null===u?u=Object.getOwnPropertyDescriptor(i,o):u;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)x=Reflect.decorate(n,i,o,u);else for(var I=n.length-1;I>=0;I--)(l=n[I])&&(x=(d<3?l(x):d>3?l(i,o,x):l(i,o))||x);return d>3&&x&&Object.defineProperty(i,o,x),x}function __param(n,i){return function(o,u){i(o,u,n)}}function __metadata(n,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,i)}function __awaiter(n,i,o,u){function adopt(n){return n instanceof o?n:new o(function(i){i(n)})}return new(o||(o=Promise))(function(o,l){function fulfilled(n){try{step(u.next(n))}catch(n){l(n)}}function rejected(n){try{step(u.throw(n))}catch(n){l(n)}}function step(n){n.done?o(n.value):adopt(n.value).then(fulfilled,rejected)}step((u=u.apply(n,i||[])).next())})}function __generator(n,i){var o,u,l,d,x={label:0,sent:function(){if(1&l[0])throw l[1];return l[1]},trys:[],ops:[]};return d={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(d[Symbol.iterator]=function(){return this}),d;function verb(n){return function(i){return step([n,i])}}function step(d){if(o)throw TypeError("Generator is already executing.");for(;x;)try{if(o=1,u&&(l=2&d[0]?u.return:d[0]?u.throw||((l=u.return)&&l.call(u),0):u.next)&&!(l=l.call(u,d[1])).done)return l;switch(u=0,l&&(d=[2&d[0],l.value]),d[0]){case 0:case 1:l=d;break;case 4:return x.label++,{value:d[1],done:!1};case 5:x.label++,u=d[1],d=[0];continue;case 7:d=x.ops.pop(),x.trys.pop();continue;default:if(!(l=(l=x.trys).length>0&&l[l.length-1])&&(6===d[0]||2===d[0])){x=0;continue}if(3===d[0]&&(!l||d[1]>l[0]&&d[1]=n.length&&(n=void 0),{value:n&&n[u++],done:!n}}};throw TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(n,i){var o="function"==typeof Symbol&&n[Symbol.iterator];if(!o)return n;var u,l,d=o.call(n),x=[];try{for(;(void 0===i||i-- >0)&&!(u=d.next()).done;)x.push(u.value)}catch(n){l={error:n}}finally{try{u&&!u.done&&(o=d.return)&&o.call(d)}finally{if(l)throw l.error}}return x}function __spread(){for(var n=[],i=0;i1||resume(n,i)})})}function resume(n,i){try{step(l[n](i))}catch(n){settle(d[0][3],n)}}function step(n){n.value instanceof __await?Promise.resolve(n.value.v).then(fulfill,reject):settle(d[0][2],n)}function fulfill(n){resume("next",n)}function reject(n){resume("throw",n)}function settle(n,i){n(i),d.shift(),d.length&&resume(d[0][0],d[0][1])}}function __asyncDelegator(n){var i,o;return i={},verb("next"),verb("throw",function(n){throw n}),verb("return"),i[Symbol.iterator]=function(){return this},i;function verb(u,l){i[u]=n[u]?function(i){return(o=!o)?{value:__await(n[u](i)),done:"return"===u}:l?l(i):i}:l}}function __asyncValues(n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var i,o=n[Symbol.asyncIterator];return o?o.call(n):(n=__values(n),i={},verb("next"),verb("throw"),verb("return"),i[Symbol.asyncIterator]=function(){return this},i);function verb(o){i[o]=n[o]&&function(i){return new Promise(function(u,l){settle(u,l,(i=n[o](i)).done,i.value)})}}function settle(n,i,o,u){Promise.resolve(u).then(function(i){n({value:i,done:o})},i)}}function __makeTemplateObject(n,i){return Object.defineProperty?Object.defineProperty(n,"raw",{value:i}):n.raw=i,n}function __importStar(n){if(n&&n.__esModule)return n;var i={};if(null!=n)for(var o in n)Object.hasOwnProperty.call(n,o)&&(i[o]=n[o]);return i.default=n,i}function __importDefault(n){return n&&n.__esModule?n:{default:n}}function __classPrivateFieldGet(n,i){if(!i.has(n))throw TypeError("attempted to get private field on non-instance");return i.get(n)}function __classPrivateFieldSet(n,i,o){if(!i.has(n))throw TypeError("attempted to set private field on non-instance");return i.set(n,o),o}},48652:function(n,i,o){"use strict";/** - * @license React - * use-sync-external-store-shim.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var u=o(34270);function h(n,i){return n===i&&(0!==n||1/n==1/i)||n!=n&&i!=i}var l="function"==typeof Object.is?Object.is:h,d=u.useState,x=u.useEffect,I=u.useLayoutEffect,R=u.useDebugValue;function q(n,i){var o=i(),u=d({inst:{value:o,getSnapshot:i}}),l=u[0].inst,j=u[1];return I(function(){l.value=o,l.getSnapshot=i,r(l)&&j({inst:l})},[n,o,i]),x(function(){return r(l)&&j({inst:l}),n(function(){r(l)&&j({inst:l})})},[n]),R(o),o}function r(n){var i=n.getSnapshot;n=n.value;try{var o=i();return!l(n,o)}catch(n){return!0}}function t(n,i){return i()}var j="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?t:q;i.useSyncExternalStore=void 0!==u.useSyncExternalStore?u.useSyncExternalStore:j},1973:function(n,i,o){"use strict";/** - * @license React - * use-sync-external-store-shim/with-selector.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var u=o(34270),l=o(33916);function p(n,i){return n===i&&(0!==n||1/n==1/i)||n!=n&&i!=i}var d="function"==typeof Object.is?Object.is:p,x=l.useSyncExternalStore,I=u.useRef,R=u.useEffect,j=u.useMemo,W=u.useDebugValue;i.useSyncExternalStoreWithSelector=function(n,i,o,u,l){var J=I(null);if(null===J.current){var et={hasValue:!1,value:null};J.current=et}else et=J.current;var ei=x(n,(J=j(function(){function a(i){if(!I){if(I=!0,n=i,i=u(i),void 0!==l&&et.hasValue){var o=et.value;if(l(o,i))return x=o}return x=i}if(o=x,d(n,i))return o;var R=u(i);return void 0!==l&&l(o,R)?o:(n=i,x=R)}var n,x,I=!1,R=void 0===o?null:o;return[function(){return a(i())},null===R?void 0:function(){return a(R())}]},[i,o,u,l]))[0],J[1]);return R(function(){et.hasValue=!0,et.value=ei},[ei]),W(ei),ei}},33916:function(n,i,o){"use strict";n.exports=o(48652)},40698:function(n,i,o){"use strict";n.exports=o(1973)},29004:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.BaseError=void 0;let u=o(10903);let BaseError=class BaseError extends Error{constructor(n,i={}){let o=i.cause instanceof BaseError?i.cause.details:i.cause?.message?i.cause.message:i.details,l=i.cause instanceof BaseError&&i.cause.docsPath||i.docsPath,d=[n||"An error occurred.","",...i.metaMessages?[...i.metaMessages,""]:[],...l?[`Docs: https://abitype.dev${l}`]:[],...o?[`Details: ${o}`]:[],`Version: abitype@${u.version}`].join("\n");super(d),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"}),i.cause&&(this.cause=i.cause),this.details=o,this.docsPath=l,this.metaMessages=i.metaMessages,this.shortMessage=n}};i.BaseError=BaseError},89769:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.UnknownSolidityTypeError=i.UnknownTypeError=i.InvalidAbiItemError=void 0;let u=o(29004);let InvalidAbiItemError=class InvalidAbiItemError extends u.BaseError{constructor({signature:n}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(n,null,2)})`,docsPath:"/api/human.html#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}};i.InvalidAbiItemError=InvalidAbiItemError;let UnknownTypeError=class UnknownTypeError extends u.BaseError{constructor({type:n}){super("Unknown type.",{metaMessages:[`Type "${n}" 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"})}};i.UnknownTypeError=UnknownTypeError;let UnknownSolidityTypeError=class UnknownSolidityTypeError extends u.BaseError{constructor({type:n}){super("Unknown type.",{metaMessages:[`Type "${n}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}};i.UnknownSolidityTypeError=UnknownSolidityTypeError},91505:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.InvalidAbiTypeParameterError=i.InvalidFunctionModifierError=i.InvalidModifierError=i.SolidityProtectedKeywordError=i.InvalidParameterError=i.InvalidAbiParametersError=i.InvalidAbiParameterError=void 0;let u=o(29004);let InvalidAbiParameterError=class InvalidAbiParameterError extends u.BaseError{constructor({param:n}){super("Failed to parse ABI parameter.",{details:`parseAbiParameter(${JSON.stringify(n,null,2)})`,docsPath:"/api/human.html#parseabiparameter-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParameterError"})}};i.InvalidAbiParameterError=InvalidAbiParameterError;let InvalidAbiParametersError=class InvalidAbiParametersError extends u.BaseError{constructor({params:n}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(n,null,2)})`,docsPath:"/api/human.html#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}};i.InvalidAbiParametersError=InvalidAbiParametersError;let InvalidParameterError=class InvalidParameterError extends u.BaseError{constructor({param:n}){super("Invalid ABI parameter.",{details:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}};i.InvalidParameterError=InvalidParameterError;let SolidityProtectedKeywordError=class SolidityProtectedKeywordError extends u.BaseError{constructor({param:n,name:i}){super("Invalid ABI parameter.",{details:n,metaMessages:[`"${i}" 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"})}};i.SolidityProtectedKeywordError=SolidityProtectedKeywordError;let InvalidModifierError=class InvalidModifierError extends u.BaseError{constructor({param:n,type:i,modifier:o}){super("Invalid ABI parameter.",{details:n,metaMessages:[`Modifier "${o}" not allowed${i?` in "${i}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}};i.InvalidModifierError=InvalidModifierError;let InvalidFunctionModifierError=class InvalidFunctionModifierError extends u.BaseError{constructor({param:n,type:i,modifier:o}){super("Invalid ABI parameter.",{details:n,metaMessages:[`Modifier "${o}" not allowed${i?` in "${i}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${o}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}};i.InvalidFunctionModifierError=InvalidFunctionModifierError;let InvalidAbiTypeParameterError=class InvalidAbiTypeParameterError extends u.BaseError{constructor({abiParameter:n}){super("Invalid ABI parameter.",{details:JSON.stringify(n,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}};i.InvalidAbiTypeParameterError=InvalidAbiTypeParameterError},4231:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.InvalidStructSignatureError=i.UnknownSignatureError=i.InvalidSignatureError=void 0;let u=o(29004);let InvalidSignatureError=class InvalidSignatureError extends u.BaseError{constructor({signature:n,type:i}){super(`Invalid ${i} signature.`,{details:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}};i.InvalidSignatureError=InvalidSignatureError;let UnknownSignatureError=class UnknownSignatureError extends u.BaseError{constructor({signature:n}){super("Unknown signature.",{details:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}};i.UnknownSignatureError=UnknownSignatureError;let InvalidStructSignatureError=class InvalidStructSignatureError extends u.BaseError{constructor({signature:n}){super("Invalid struct signature.",{details:n,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}};i.InvalidStructSignatureError=InvalidStructSignatureError},95343:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.InvalidParenthesisError=void 0;let u=o(29004);let InvalidParenthesisError=class InvalidParenthesisError extends u.BaseError{constructor({current:n,depth:i}){super("Unbalanced parentheses.",{metaMessages:[`"${n.trim()}" has too many ${i>0?"opening":"closing"} parentheses.`],details:`Depth "${i}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}};i.InvalidParenthesisError=InvalidParenthesisError},83380:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.CircularReferenceError=void 0;let u=o(29004);let CircularReferenceError=class CircularReferenceError extends u.BaseError{constructor({type:n}){super("Circular reference detected.",{metaMessages:[`Struct "${n}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}};i.CircularReferenceError=CircularReferenceError},67230:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.formatAbi=void 0;let u=o(33655);function formatAbi(n){let i=[],o=n.length;for(let l=0;l(\[(\d*)\])*)$/;function formatAbiParameter(n){let i=n.type;if(l.test(n.type)&&"components"in n){i="(";let o=n.components.length;for(let u=0;u[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)$/;function isErrorSignature(n){return l.test(n)}function execErrorSignature(n){return(0,u.execTyped)(l,n)}i.isErrorSignature=isErrorSignature,i.execErrorSignature=execErrorSignature;let d=/^event (?[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)$/;function isEventSignature(n){return d.test(n)}function execEventSignature(n){return(0,u.execTyped)(d,n)}i.isEventSignature=isEventSignature,i.execEventSignature=execEventSignature;let x=/^function (?[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)(?: (?external|public{1}))?(?: (?pure|view|nonpayable|payable{1}))?(?: returns\s?\((?.*?)\))?$/;function isFunctionSignature(n){return x.test(n)}function execFunctionSignature(n){return(0,u.execTyped)(x,n)}i.isFunctionSignature=isFunctionSignature,i.execFunctionSignature=execFunctionSignature;let I=/^struct (?[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?.*?)\}$/;function isStructSignature(n){return I.test(n)}function execStructSignature(n){return(0,u.execTyped)(I,n)}i.isStructSignature=isStructSignature,i.execStructSignature=execStructSignature;let R=/^constructor\((?.*?)\)(?:\s(?payable{1}))?$/;function isConstructorSignature(n){return R.test(n)}function execConstructorSignature(n){return(0,u.execTyped)(R,n)}i.isConstructorSignature=isConstructorSignature,i.execConstructorSignature=execConstructorSignature;let j=/^fallback\(\)$/;function isFallbackSignature(n){return j.test(n)}i.isFallbackSignature=isFallbackSignature;let W=/^receive\(\) external payable$/;function isReceiveSignature(n){return W.test(n)}i.isReceiveSignature=isReceiveSignature,i.modifiers=new Set(["memory","indexed","storage","calldata"]),i.eventModifiers=new Set(["indexed"]),i.functionModifiers=new Set(["calldata","memory","storage"])},43994:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.parseStructs=void 0;let u=o(80561),l=o(89769),d=o(91505),x=o(4231),I=o(83380),R=o(10859),j=o(26846);function parseStructs(n){let i={},o=n.length;for(let u=0;u[a-zA-Z$_][a-zA-Z0-9$_]*)(?(?:\[\d*?\])+?)?$/;function resolveStructs(n,i,o=new Set){let x=[],R=n.length;for(let J=0;J[a-zA-Z$_][a-zA-Z0-9$_]*)(?(?:\[\d*?\])+?)?(?:\s(?calldata|indexed|memory|storage{1}))?(?:\s(?[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,J=/^\((?.+?)\)(?(?:\[\d*?\])+?)?(?:\s(?calldata|indexed|memory|storage{1}))?(?:\s(?[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,et=/^u?int$/;function parseAbiParameter(n,i){let o;let x=(0,R.getParameterCacheKey)(n,i?.type);if(R.parameterCache.has(x))return R.parameterCache.get(x);let I=u.isTupleRegex.test(n),ei=(0,u.execTyped)(I?J:W,n);if(!ei)throw new d.InvalidParameterError({param:n});if(ei.name&&isSolidityKeyword(ei.name))throw new d.SolidityProtectedKeywordError({param:n,name:ei.name});let eo=ei.name?{name:ei.name}:{},es="indexed"===ei.modifier?{indexed:!0}:{},eu=i?.structs??{},ec={};if(I){o="tuple";let n=splitParameters(ei.type),i=[],u=n.length;for(let o=0;o(...l)=>{let{args:x,options:R}=getFunctionParameters(l);return(0,u.getAction)(o,I.readContract,"readContract")({abi:n,address:i,functionName:d,args:x,...R})}})),eu&&(eo.simulate=new Proxy({},{get:(l,d)=>(...l)=>{let{args:x,options:I}=getFunctionParameters(l);return(0,u.getAction)(o,R.simulateContract,"simulateContract")({abi:n,address:i,functionName:d,args:x,...I})}})),ec&&(eo.createEventFilter=new Proxy({},{get:(d,x)=>(...d)=>{let I=n.find(n=>"event"===n.type&&n.name===x),{args:R,options:j}=getEventParameters(d,I);return(0,u.getAction)(o,l.createContractEventFilter,"createContractEventFilter")({abi:n,address:i,eventName:x,args:R,...j})}}),eo.getEvents=new Proxy({},{get:(l,d)=>(...l)=>{let I=n.find(n=>"event"===n.type&&n.name===d),{args:R,options:j}=getEventParameters(l,I);return(0,u.getAction)(o,x.getContractEvents,"getContractEvents")({abi:n,address:i,eventName:d,args:R,...j})}}),eo.watchEvent=new Proxy({},{get:(l,d)=>(...l)=>{let x=n.find(n=>"event"===n.type&&n.name===d),{args:I,options:R}=getEventParameters(l,x);return(0,u.getAction)(o,j.watchContractEvent,"watchContractEvent")({abi:n,address:i,eventName:d,args:I,...R})}}))),ei&&eu&&(eo.write=new Proxy({},{get:(o,l)=>(...o)=>{let{args:d,options:x}=getFunctionParameters(o);return(0,u.getAction)(J,W.writeContract,"writeContract")({abi:n,address:i,functionName:l,args:d,...x})}})),(et||ei)&&eu&&(eo.estimateGas=new Proxy({},{get:(l,x)=>(...l)=>{let{args:I,options:R}=getFunctionParameters(l),j=o??J;return(0,u.getAction)(j,d.estimateContractGas,"estimateContractGas")({abi:n,address:i,functionName:x,args:I,...R,account:R.account??J.account})}})),eo.address=i,eo.abi=n,eo}function getFunctionParameters(n){let i=n.length&&Array.isArray(n[0]),o=i?n[0]:[],u=(i?n[1]:n[0])??{};return{args:o,options:u}}function getEventParameters(n,i){let o=!1;Array.isArray(n[0])?o=!0:1===n.length?o=i.inputs.some(n=>n.indexed):2===n.length&&(o=!0);let u=o?n[0]:void 0,l=(o?n[1]:n[0])??{};return{args:u,options:l}}i.getContract=getContract,i.getFunctionParameters=getFunctionParameters,i.getEventParameters=getEventParameters},25112:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getRevertErrorData=i.call=void 0;let u=o(65621),l=o(10491),d=o(42871),x=o(83399),I=o(46580),R=o(87453),j=o(9864),W=o(45107),J=o(85891),et=o(82375),ei=o(77634),eo=o(29423),es=o(41074),eu=o(90647),ec=o(86520);async function call(n,i){let{account:l=n.account,batch:d=!!n.batch?.multicall,blockNumber:x,blockTag:R="latest",accessList:j,data:W,gas:J,gasPrice:eu,maxFeePerGas:el,maxPriorityFeePerGas:ed,nonce:ef,to:eh,value:ep,...em}=i,eg=l?(0,u.parseAccount)(l):void 0;try{(0,ec.assertRequest)(i);let o=x?(0,et.numberToHex)(x):void 0,u=o||R,l=n.chain?.formatters?.transactionRequest?.format,ei=l||es.formatTransactionRequest,ey=ei({...(0,eo.extract)(em,{format:l}),from:eg?.address,accessList:j,data:W,gas:J,gasPrice:eu,maxFeePerGas:el,maxPriorityFeePerGas:ed,nonce:ef,to:eh,value:ep});if(d&&shouldPerformMulticall({request:ey}))try{return await scheduleMulticall(n,{...ey,blockNumber:x,blockTag:R})}catch(n){if(!(n instanceof I.ClientChainNotConfiguredError)&&!(n instanceof I.ChainDoesNotSupportContract))throw n}let eb=await n.request({method:"eth_call",params:u?[ey,u]:[ey]});if("0x"===eb)return{data:void 0};return{data:eb}}catch(x){let u=getRevertErrorData(x),{offchainLookup:l,offchainLookupSignature:d}=await Promise.resolve().then(()=>o(634));if(u?.slice(0,10)===d&&eh)return{data:await l(n,{data:u,to:eh})};throw(0,ei.getCallError)(x,{...i,account:eg,chain:n.chain})}}function shouldPerformMulticall({request:n}){let{data:i,to:o,...u}=n;return!(!i||i.startsWith(d.aggregate3Signature))&&!!o&&!(Object.values(u).filter(n=>void 0!==n).length>0)}async function scheduleMulticall(n,i){let{batchSize:o=1024,wait:u=0}="object"==typeof n.batch?.multicall?n.batch.multicall:{},{blockNumber:d,blockTag:x="latest",data:ei,multicallAddress:eo,to:es}=i,ec=eo;if(!ec){if(!n.chain)throw new I.ClientChainNotConfiguredError;ec=(0,J.getChainContractAddress)({blockNumber:d,chain:n.chain,contract:"multicall3"})}let el=d?(0,et.numberToHex)(d):void 0,ed=el||x,{schedule:ef}=(0,eu.createBatchScheduler)({id:`${n.uid}.${ed}`,wait:u,shouldSplitBatch(n){let i=n.reduce((n,{data:i})=>n+(i.length-2),0);return i>2*o},fn:async i=>{let o=i.map(n=>({allowFailure:!0,callData:n.data,target:n.to})),u=(0,W.encodeFunctionData)({abi:l.multicall3Abi,args:[o],functionName:"aggregate3"}),d=await n.request({method:"eth_call",params:[{data:u,to:ec},ed]});return(0,j.decodeFunctionResult)({abi:l.multicall3Abi,args:[o],functionName:"aggregate3",data:d||"0x"})}}),[{returnData:eh,success:ep}]=await ef({data:ei,to:es});if(!ep)throw new R.RawContractError({data:eh});return"0x"===eh?{data:void 0}:{data:eh}}function getRevertErrorData(n){if(!(n instanceof x.BaseError))return;let i=n.walk();return"object"==typeof i.data?i.data.data:i.data}i.call=call,i.getRevertErrorData=getRevertErrorData},76735:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.createBlockFilter=void 0;let u=o(13104);async function createBlockFilter(n){let i=(0,u.createFilterRequestScope)(n,{method:"eth_newBlockFilter"}),o=await n.request({method:"eth_newBlockFilter"});return{id:o,request:i(o),type:"block"}}i.createBlockFilter=createBlockFilter},55109:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.createContractEventFilter=void 0;let u=o(26291),l=o(82375),d=o(13104);async function createContractEventFilter(n,{address:i,abi:o,args:x,eventName:I,fromBlock:R,strict:j,toBlock:W}){let J=(0,d.createFilterRequestScope)(n,{method:"eth_newFilter"}),et=I?(0,u.encodeEventTopics)({abi:o,args:x,eventName:I}):void 0,ei=await n.request({method:"eth_newFilter",params:[{address:i,fromBlock:"bigint"==typeof R?(0,l.numberToHex)(R):R,toBlock:"bigint"==typeof W?(0,l.numberToHex)(W):W,topics:et}]});return{abi:o,args:x,eventName:I,id:ei,request:J(ei),strict:j,type:"event"}}i.createContractEventFilter=createContractEventFilter},28445:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.createEventFilter=void 0;let u=o(26291),l=o(82375),d=o(13104);async function createEventFilter(n,{address:i,args:o,event:x,events:I,fromBlock:R,strict:j,toBlock:W}={}){let J=I??(x?[x]:void 0),et=(0,d.createFilterRequestScope)(n,{method:"eth_newFilter"}),ei=[];J&&(ei=[J.flatMap(n=>(0,u.encodeEventTopics)({abi:[n],eventName:n.name,args:o}))],x&&(ei=ei[0]));let eo=await n.request({method:"eth_newFilter",params:[{address:i,fromBlock:"bigint"==typeof R?(0,l.numberToHex)(R):R,toBlock:"bigint"==typeof W?(0,l.numberToHex)(W):W,...ei.length?{topics:ei}:{}}]});return{abi:J,args:o,eventName:x?x.name:void 0,fromBlock:R,id:eo,request:et(eo),strict:j,toBlock:W,type:"event"}}i.createEventFilter=createEventFilter},17011:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.createPendingTransactionFilter=void 0;let u=o(13104);async function createPendingTransactionFilter(n){let i=(0,u.createFilterRequestScope)(n,{method:"eth_newPendingTransactionFilter"}),o=await n.request({method:"eth_newPendingTransactionFilter"});return{id:o,request:i(o),type:"transaction"}}i.createPendingTransactionFilter=createPendingTransactionFilter},16285:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.estimateContractGas=void 0;let u=o(65621),l=o(45107),d=o(56314),x=o(38937),I=o(69495);async function estimateContractGas(n,{abi:i,address:o,args:R,functionName:j,...W}){let J=(0,l.encodeFunctionData)({abi:i,args:R,functionName:j});try{let i=await (0,x.getAction)(n,I.estimateGas,"estimateGas")({data:J,to:o,...W});return i}catch(l){let n=W.account?(0,u.parseAccount)(W.account):void 0;throw(0,d.getContractError)(l,{abi:i,address:o,args:R,docsPath:"/docs/contract/estimateContractGas",functionName:j,sender:n?.address})}}i.estimateContractGas=estimateContractGas},41658:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.internal_estimateFeesPerGas=i.estimateFeesPerGas=void 0;let u=o(83151),l=o(38937),d=o(14285),x=o(63949),I=o(81815);async function estimateFeesPerGas(n,i){return internal_estimateFeesPerGas(n,i)}async function internal_estimateFeesPerGas(n,i){let{block:o,chain:R=n.chain,request:j,type:W="eip1559"}=i||{},J=await (async()=>"function"==typeof R?.fees?.baseFeeMultiplier?R.fees.baseFeeMultiplier({block:o,client:n,request:j}):R?.fees?.baseFeeMultiplier??1.2)();if(J<1)throw new u.BaseFeeScalarError;let et=J.toString().split(".")[1]?.length??0,ei=10**et,multiply=n=>n*BigInt(Math.ceil(J*ei))/BigInt(ei),eo=o||await (0,l.getAction)(n,x.getBlock,"getBlock")({});if("function"==typeof R?.fees?.estimateFeesPerGas)return R.fees.estimateFeesPerGas({block:o,client:n,multiply,request:j,type:W});if("eip1559"===W){if("bigint"!=typeof eo.baseFeePerGas)throw new u.Eip1559FeesNotSupportedError;let i=j?.maxPriorityFeePerGas?j.maxPriorityFeePerGas:await (0,d.internal_estimateMaxPriorityFeePerGas)(n,{block:eo,chain:R,request:j}),o=multiply(eo.baseFeePerGas),l=j?.maxFeePerGas??o+i;return{maxFeePerGas:l,maxPriorityFeePerGas:i}}let es=j?.gasPrice??multiply(await (0,l.getAction)(n,I.getGasPrice,"getGasPrice")({}));return{gasPrice:es}}i.estimateFeesPerGas=estimateFeesPerGas,i.internal_estimateFeesPerGas=internal_estimateFeesPerGas},69495:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.estimateGas=void 0;let u=o(65621),l=o(15214),d=o(82375),x=o(77098),I=o(29423),R=o(41074),j=o(86520),W=o(8737);async function estimateGas(n,i){let o=i.account??n.account;if(!o)throw new l.AccountNotFoundError({docsPath:"/docs/actions/public/estimateGas"});let J=(0,u.parseAccount)(o);try{let{accessList:o,blockNumber:u,blockTag:l,data:x,gas:et,gasPrice:ei,maxFeePerGas:eo,maxPriorityFeePerGas:es,nonce:eu,to:ec,value:el,...ed}="local"===J.type?await (0,W.prepareTransactionRequest)(n,i):i,ef=u?(0,d.numberToHex)(u):void 0,eh=ef||l;(0,j.assertRequest)(i);let ep=n.chain?.formatters?.transactionRequest?.format,em=ep||R.formatTransactionRequest,eg=em({...(0,I.extract)(ed,{format:ep}),from:J.address,accessList:o,data:x,gas:et,gasPrice:ei,maxFeePerGas:eo,maxPriorityFeePerGas:es,nonce:eu,to:ec,value:el}),ey=await n.request({method:"eth_estimateGas",params:eh?[eg,eh]:[eg]});return BigInt(ey)}catch(o){throw(0,x.getEstimateGasError)(o,{...i,account:J,chain:n.chain})}}i.estimateGas=estimateGas},14285:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.internal_estimateMaxPriorityFeePerGas=i.estimateMaxPriorityFeePerGas=void 0;let u=o(83151),l=o(15798),d=o(38937),x=o(63949),I=o(81815);async function estimateMaxPriorityFeePerGas(n,i){return internal_estimateMaxPriorityFeePerGas(n,i)}async function internal_estimateMaxPriorityFeePerGas(n,i){let{block:o,chain:R=n.chain,request:j}=i||{};if("function"==typeof R?.fees?.defaultPriorityFee){let i=o||await (0,d.getAction)(n,x.getBlock,"getBlock")({});return R.fees.defaultPriorityFee({block:i,client:n,request:j})}if(void 0!==R?.fees?.defaultPriorityFee)return R?.fees?.defaultPriorityFee;try{let i=await n.request({method:"eth_maxPriorityFeePerGas"});return(0,l.hexToBigInt)(i)}catch{let[i,l]=await Promise.all([o?Promise.resolve(o):(0,d.getAction)(n,x.getBlock,"getBlock")({}),(0,d.getAction)(n,I.getGasPrice,"getGasPrice")({})]);if("bigint"!=typeof i.baseFeePerGas)throw new u.Eip1559FeesNotSupportedError;let R=l-i.baseFeePerGas;if(R<0n)return 0n;return R}}i.estimateMaxPriorityFeePerGas=estimateMaxPriorityFeePerGas,i.internal_estimateMaxPriorityFeePerGas=internal_estimateMaxPriorityFeePerGas},86116:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getBalance=void 0;let u=o(82375);async function getBalance(n,{address:i,blockNumber:o,blockTag:l="latest"}){let d=o?(0,u.numberToHex)(o):void 0,x=await n.request({method:"eth_getBalance",params:[i,d||l]});return BigInt(x)}i.getBalance=getBalance},63949:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getBlock=void 0;let u=o(54619),l=o(82375),d=o(22044);async function getBlock(n,{blockHash:i,blockNumber:o,blockTag:x,includeTransactions:I}={}){let R=I??!1,j=void 0!==o?(0,l.numberToHex)(o):void 0,W=null;if(!(W=i?await n.request({method:"eth_getBlockByHash",params:[i,R]}):await n.request({method:"eth_getBlockByNumber",params:[j||(x??"latest"),R]})))throw new u.BlockNotFoundError({blockHash:i,blockNumber:o});let J=n.chain?.formatters?.block?.format||d.formatBlock;return J(W)}i.getBlock=getBlock},79516:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getBlockNumber=i.getBlockNumberCache=void 0;let u=o(21244),cacheKey=n=>`blockNumber.${n}`;function getBlockNumberCache(n){return(0,u.getCache)(cacheKey(n))}async function getBlockNumber(n,{cacheTime:i=n.cacheTime,maxAge:o}={}){let l=await (0,u.withCache)(()=>n.request({method:"eth_blockNumber"}),{cacheKey:cacheKey(n.uid),cacheTime:o??i});return BigInt(l)}i.getBlockNumberCache=getBlockNumberCache,i.getBlockNumber=getBlockNumber},44636:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getBlockTransactionCount=void 0;let u=o(15798),l=o(82375);async function getBlockTransactionCount(n,{blockHash:i,blockNumber:o,blockTag:d="latest"}={}){let x;let I=void 0!==o?(0,l.numberToHex)(o):void 0;return x=i?await n.request({method:"eth_getBlockTransactionCountByHash",params:[i]}):await n.request({method:"eth_getBlockTransactionCountByNumber",params:[I||d]}),(0,u.hexToNumber)(x)}i.getBlockTransactionCount=getBlockTransactionCount},71155:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getBytecode=void 0;let u=o(82375);async function getBytecode(n,{address:i,blockNumber:o,blockTag:l="latest"}){let d=void 0!==o?(0,u.numberToHex)(o):void 0,x=await n.request({method:"eth_getCode",params:[i,d||l]});if("0x"!==x)return x}i.getBytecode=getBytecode},9474:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getChainId=void 0;let u=o(15798);async function getChainId(n){let i=await n.request({method:"eth_chainId"});return(0,u.hexToNumber)(i)}i.getChainId=getChainId},81565:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getContractEvents=void 0;let u=o(22837),l=o(38937),d=o(61837);async function getContractEvents(n,{abi:i,address:o,args:x,blockHash:I,eventName:R,fromBlock:j,toBlock:W,strict:J}){let et=R?(0,u.getAbiItem)({abi:i,name:R}):void 0,ei=et?void 0:i.filter(n=>"event"===n.type);return(0,l.getAction)(n,d.getLogs,"getLogs")({address:o,args:x,blockHash:I,event:et,events:ei,fromBlock:j,toBlock:W,strict:J})}i.getContractEvents=getContractEvents},31300:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getFeeHistory=void 0;let u=o(82375),l=o(38051);async function getFeeHistory(n,{blockCount:i,blockNumber:o,blockTag:d="latest",rewardPercentiles:x}){let I=o?(0,u.numberToHex)(o):void 0,R=await n.request({method:"eth_feeHistory",params:[(0,u.numberToHex)(i),I||d,x]});return(0,l.formatFeeHistory)(R)}i.getFeeHistory=getFeeHistory},5413:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getFilterChanges=void 0;let u=o(39991),l=o(7995),d=o(15227);async function getFilterChanges(n,{filter:i}){let o="strict"in i&&i.strict,x=await i.request({method:"eth_getFilterChanges",params:[i.id]});return x.map(n=>{if("string"==typeof n)return n;try{let{eventName:u,args:x}="abi"in i&&i.abi?(0,l.decodeEventLog)({abi:i.abi,data:n.data,topics:n.topics,strict:o}):{eventName:void 0,args:void 0};return(0,d.formatLog)(n,{args:x,eventName:u})}catch(x){let o,l;if(x instanceof u.DecodeLogDataMismatch||x instanceof u.DecodeLogTopicsMismatch){if("strict"in i&&i.strict)return;o=x.abiItem.name,l=x.abiItem.inputs?.some(n=>!("name"in n&&n.name))}return(0,d.formatLog)(n,{args:l?[]:{},eventName:o})}}).filter(Boolean)}i.getFilterChanges=getFilterChanges},50237:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getFilterLogs=void 0;let u=o(39991),l=o(7995),d=o(15227);async function getFilterLogs(n,{filter:i}){let o=i.strict??!1,x=await i.request({method:"eth_getFilterLogs",params:[i.id]});return x.map(n=>{try{let{eventName:u,args:x}="abi"in i&&i.abi?(0,l.decodeEventLog)({abi:i.abi,data:n.data,topics:n.topics,strict:o}):{eventName:void 0,args:void 0};return(0,d.formatLog)(n,{args:x,eventName:u})}catch(x){let o,l;if(x instanceof u.DecodeLogDataMismatch||x instanceof u.DecodeLogTopicsMismatch){if("strict"in i&&i.strict)return;o=x.abiItem.name,l=x.abiItem.inputs?.some(n=>!("name"in n&&n.name))}return(0,d.formatLog)(n,{args:l?[]:{},eventName:o})}}).filter(Boolean)}i.getFilterLogs=getFilterLogs},81815:function(n,i){"use strict";async function getGasPrice(n){let i=await n.request({method:"eth_gasPrice"});return BigInt(i)}Object.defineProperty(i,"__esModule",{value:!0}),i.getGasPrice=void 0,i.getGasPrice=getGasPrice},61837:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getLogs=void 0;let u=o(39991),l=o(7995),d=o(26291),x=o(82375),I=o(15227);async function getLogs(n,{address:i,blockHash:o,fromBlock:R,toBlock:j,event:W,events:J,args:et,strict:ei}={}){let eo=ei??!1,es=J??(W?[W]:void 0),eu=[];return es&&(eu=[es.flatMap(n=>(0,d.encodeEventTopics)({abi:[n],eventName:n.name,args:et}))],W&&(eu=eu[0])),(o?await n.request({method:"eth_getLogs",params:[{address:i,topics:eu,blockHash:o}]}):await n.request({method:"eth_getLogs",params:[{address:i,topics:eu,fromBlock:"bigint"==typeof R?(0,x.numberToHex)(R):R,toBlock:"bigint"==typeof j?(0,x.numberToHex)(j):j}]})).map(n=>{try{let{eventName:i,args:o}=es?(0,l.decodeEventLog)({abi:es,data:n.data,topics:n.topics,strict:eo}):{eventName:void 0,args:void 0};return(0,I.formatLog)(n,{args:o,eventName:i})}catch(l){let i,o;if(l instanceof u.DecodeLogDataMismatch||l instanceof u.DecodeLogTopicsMismatch){if(eo)return;i=l.abiItem.name,o=l.abiItem.inputs?.some(n=>!("name"in n&&n.name))}return(0,I.formatLog)(n,{args:o?[]:{},eventName:i})}}).filter(Boolean)}i.getLogs=getLogs},60723:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getProof=void 0;let u=o(82375),l=o(31311);async function getProof(n,{address:i,blockNumber:o,blockTag:d,storageKeys:x}){let I=void 0!==o?(0,u.numberToHex)(o):void 0,R=await n.request({method:"eth_getProof",params:[i,x,I||(d??"latest")]});return(0,l.formatProof)(R)}i.getProof=getProof},87304:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getStorageAt=void 0;let u=o(82375);async function getStorageAt(n,{address:i,blockNumber:o,blockTag:l="latest",slot:d}){let x=void 0!==o?(0,u.numberToHex)(o):void 0,I=await n.request({method:"eth_getStorageAt",params:[i,d,x||l]});return I}i.getStorageAt=getStorageAt},23948:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getTransaction=void 0;let u=o(31681),l=o(82375),d=o(68068);async function getTransaction(n,{blockHash:i,blockNumber:o,blockTag:x,hash:I,index:R}){let j=x||"latest",W=void 0!==o?(0,l.numberToHex)(o):void 0,J=null;if(I?J=await n.request({method:"eth_getTransactionByHash",params:[I]}):i?J=await n.request({method:"eth_getTransactionByBlockHashAndIndex",params:[i,(0,l.numberToHex)(R)]}):(W||j)&&(J=await n.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[W||j,(0,l.numberToHex)(R)]})),!J)throw new u.TransactionNotFoundError({blockHash:i,blockNumber:o,blockTag:j,hash:I,index:R});let et=n.chain?.formatters?.transaction?.format||d.formatTransaction;return et(J)}i.getTransaction=getTransaction},27680:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getTransactionConfirmations=void 0;let u=o(38937),l=o(79516),d=o(23948);async function getTransactionConfirmations(n,{hash:i,transactionReceipt:o}){let[x,I]=await Promise.all([(0,u.getAction)(n,l.getBlockNumber,"getBlockNumber")({}),i?(0,u.getAction)(n,d.getTransaction,"getBlockNumber")({hash:i}):void 0]),R=o?.blockNumber||I?.blockNumber;return R?x-R+1n:0n}i.getTransactionConfirmations=getTransactionConfirmations},25006:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getTransactionCount=void 0;let u=o(15798),l=o(82375);async function getTransactionCount(n,{address:i,blockTag:o="latest",blockNumber:d}){let x=await n.request({method:"eth_getTransactionCount",params:[i,d?(0,l.numberToHex)(d):o]});return(0,u.hexToNumber)(x)}i.getTransactionCount=getTransactionCount},52474:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getTransactionReceipt=void 0;let u=o(31681),l=o(82373);async function getTransactionReceipt(n,{hash:i}){let o=await n.request({method:"eth_getTransactionReceipt",params:[i]});if(!o)throw new u.TransactionReceiptNotFoundError({hash:i});let d=n.chain?.formatters?.transactionReceipt?.format||l.formatTransactionReceipt;return d(o)}i.getTransactionReceipt=getTransactionReceipt},19324:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.multicall=void 0;let u=o(10491),l=o(39991),d=o(83399),x=o(87453),I=o(9864),R=o(45107),j=o(85891),W=o(56314),J=o(38937),et=o(29614);async function multicall(n,i){let{allowFailure:o=!0,batchSize:ei,blockNumber:eo,blockTag:es,contracts:eu,multicallAddress:ec}=i,el=ei??("object"==typeof n.batch?.multicall&&n.batch.multicall.batchSize||1024),ed=ec;if(!ed){if(!n.chain)throw Error("client chain not configured. multicallAddress is required.");ed=(0,j.getChainContractAddress)({blockNumber:eo,chain:n.chain,contract:"multicall3"})}let ef=[[]],eh=0,ep=0;for(let n=0;n0&&ep>el&&ef[eh].length>0&&(eh++,ep=(n.length-2)/2,ef[eh]=[]),ef[eh]=[...ef[eh],{allowFailure:!0,callData:n,target:u}]}catch(x){let n=(0,W.getContractError)(x,{abi:i,address:u,args:l,docsPath:"/docs/contract/multicall",functionName:d});if(!o)throw n;ef[eh]=[...ef[eh],{allowFailure:!0,callData:"0x",target:u}]}}let em=await Promise.allSettled(ef.map(i=>(0,J.getAction)(n,et.readContract,"readContract")({abi:u.multicall3Abi,address:ed,args:[i],blockNumber:eo,blockTag:es,functionName:"aggregate3"}))),eg=[];for(let n=0;n{es&&setTimeout(()=>eh(new l.WaitForTransactionReceiptTimeoutError({hash:o})),es);let ep=(0,x.observe)(ed,{onReplaced:ei,resolve:R,reject:eh},x=>{let R=(0,d.getAction)(n,et.watchBlockNumber,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:eo,async onBlockNumber(et){if(ef)return;let ei=et,done=n=>{R(),n(),ep()};try{if(el){if(i>1&&(!el.blockNumber||ei-el.blockNumber+1nx.resolve(el));return}if(eu||(ef=!0,await (0,I.withRetry)(async()=>{(eu=await (0,d.getAction)(n,W.getTransaction,"getTransaction")({hash:o})).blockNumber&&(ei=eu.blockNumber)},{delay:({count:n})=>200*~~(1<1&&(!el.blockNumber||ei-el.blockNumber+1nx.resolve(el))}catch(o){if(eu&&(o instanceof l.TransactionNotFoundError||o instanceof l.TransactionReceiptNotFoundError))try{ec=eu,ef=!0;let o=await (0,I.withRetry)(()=>(0,d.getAction)(n,j.getBlock,"getBlock")({blockNumber:ei,includeTransactions:!0}),{delay:({count:n})=>200*~~(1<n instanceof u.BlockNotFoundError});ef=!1;let l=o.transactions.find(({from:n,nonce:i})=>n===ec.from&&i===ec.nonce);if(!l||(el=await (0,d.getAction)(n,J.getTransactionReceipt,"getTransactionReceipt")({hash:l.hash}),i>1&&(!el.blockNumber||ei-el.blockNumber+1n{x.onReplaced?.({reason:R,replacedTransaction:ec,transaction:l,transactionReceipt:el}),x.resolve(el)})}catch(n){done(()=>x.reject(n))}else done(()=>x.reject(o))}}})})})}i.waitForTransactionReceipt=waitForTransactionReceipt},81350:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.watchBlockNumber=void 0;let u=o(15798),l=o(38937),d=o(78204),x=o(11799),I=o(95545),R=o(79516);function watchBlockNumber(n,{emitOnBegin:i=!1,emitMissed:o=!1,onBlockNumber:j,onError:W,poll:J,pollingInterval:et=n.pollingInterval}){let ei,eo,es;let eu=void 0!==J?J:"webSocket"!==n.transport.type;return eu?(()=>{let u=(0,I.stringify)(["watchBlockNumber",n.uid,i,o,et]);return(0,d.observe)(u,{onBlockNumber:j,onError:W},u=>(0,x.poll)(async()=>{try{let i=await (0,l.getAction)(n,R.getBlockNumber,"getBlockNumber")({cacheTime:0});if(ei){if(i===ei)return;if(i-ei>1&&o)for(let n=ei+1n;nei)&&(u.onBlockNumber(i,ei),ei=i)}catch(n){u.onError?.(n)}},{emitOnBegin:i,interval:et}))})():(eo=!0,es=()=>eo=!1,(async()=>{try{let{unsubscribe:i}=await n.transport.subscribe({params:["newHeads"],onData(n){if(!eo)return;let i=(0,u.hexToBigInt)(n.result?.number);j(i,ei),ei=i},onError(n){W?.(n)}});es=i,eo||es()}catch(n){W?.(n)}})(),es)}i.watchBlockNumber=watchBlockNumber},80472:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.watchBlocks=void 0;let u=o(22044),l=o(38937),d=o(78204),x=o(11799),I=o(95545),R=o(63949);function watchBlocks(n,{blockTag:i="latest",emitMissed:o=!1,emitOnBegin:j=!1,onBlock:W,onError:J,includeTransactions:et,poll:ei,pollingInterval:eo=n.pollingInterval}){let es,eu,ec;let el=void 0!==ei?ei:"webSocket"!==n.transport.type,ed=et??!1;return el?(()=>{let u=(0,I.stringify)(["watchBlocks",n.uid,o,j,ed,eo]);return(0,d.observe)(u,{onBlock:W,onError:J},u=>(0,x.poll)(async()=>{try{let d=await (0,l.getAction)(n,R.getBlock,"getBlock")({blockTag:i,includeTransactions:ed});if(d.number&&es?.number){if(d.number===es.number)return;if(d.number-es.number>1&&o)for(let i=es?.number+1n;ies.number)&&(u.onBlock(d,es),es=d)}catch(n){u.onError?.(n)}},{emitOnBegin:j,interval:eo}))})():(eu=!0,ec=()=>eu=!1,(async()=>{try{let{unsubscribe:i}=await n.transport.subscribe({params:["newHeads"],onData(i){if(!eu)return;let o=n.chain?.formatters?.block?.format||u.formatBlock,l=o(i.result);W(l,es),es=l},onError(n){J?.(n)}});ec=i,eu||ec()}catch(n){J?.(n)}})(),ec)}i.watchBlocks=watchBlocks},36204:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.watchContractEvent=void 0;let u=o(78204),l=o(11799),d=o(95545),x=o(39991),I=o(90916),R=o(7995),j=o(26291),W=o(15227),J=o(38937),et=o(55109),ei=o(79516),eo=o(81565),es=o(5413),eu=o(12399);function watchContractEvent(n,{abi:i,address:o,args:ec,batch:el=!0,eventName:ed,onError:ef,onLogs:eh,poll:ep,pollingInterval:em=n.pollingInterval,strict:eg}){let ey,eb;let ev=void 0!==ep?ep:"webSocket"!==n.transport.type;return ev?(()=>{let x=(0,d.stringify)(["watchContractEvent",o,ec,el,n.uid,ed,em]),R=eg??!1;return(0,u.observe)(x,{onLogs:eh,onError:ef},u=>{let d,x;let j=!1,W=(0,l.poll)(async()=>{if(!j){try{x=await (0,J.getAction)(n,et.createContractEventFilter,"createContractEventFilter")({abi:i,address:o,args:ec,eventName:ed,strict:R})}catch{}j=!0;return}try{let l;if(x)l=await (0,J.getAction)(n,es.getFilterChanges,"getFilterChanges")({filter:x});else{let u=await (0,J.getAction)(n,ei.getBlockNumber,"getBlockNumber")({});l=d&&d!==u?await (0,J.getAction)(n,eo.getContractEvents,"getContractEvents")({abi:i,address:o,args:ec,eventName:ed,fromBlock:d+1n,toBlock:u,strict:R}):[],d=u}if(0===l.length)return;if(el)u.onLogs(l);else for(let n of l)u.onLogs([n])}catch(n){x&&n instanceof I.InvalidInputRpcError&&(j=!1),u.onError?.(n)}},{emitOnBegin:!0,interval:em});return async()=>{x&&await (0,J.getAction)(n,eu.uninstallFilter,"uninstallFilter")({filter:x}),W()}})})():(ey=!0,eb=()=>ey=!1,(async()=>{try{let u=ed?(0,j.encodeEventTopics)({abi:i,eventName:ed,args:ec}):[],{unsubscribe:l}=await n.transport.subscribe({params:["logs",{address:o,topics:u}],onData(n){if(!ey)return;let o=n.result;try{let{eventName:n,args:u}=(0,R.decodeEventLog)({abi:i,data:o.data,topics:o.topics,strict:eg}),l=(0,W.formatLog)(o,{args:u,eventName:n});eh([l])}catch(l){let n,i;if(l instanceof x.DecodeLogDataMismatch||l instanceof x.DecodeLogTopicsMismatch){if(eg)return;n=l.abiItem.name,i=l.abiItem.inputs?.some(n=>!("name"in n&&n.name))}let u=(0,W.formatLog)(o,{args:i?[]:{},eventName:n});eh([u])}},onError(n){ef?.(n)}});eb=l,ey||eb()}catch(n){ef?.(n)}})(),eb)}i.watchContractEvent=watchContractEvent},299:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.watchEvent=void 0;let u=o(78204),l=o(11799),d=o(95545),x=o(39991),I=o(90916),R=o(38937),j=o(60519),W=o(28445),J=o(79516),et=o(5413),ei=o(61837),eo=o(12399);function watchEvent(n,{address:i,args:o,batch:es=!0,event:eu,events:ec,onError:el,onLogs:ed,poll:ef,pollingInterval:eh=n.pollingInterval,strict:ep}){let em,eg;let ey=void 0!==ef?ef:"webSocket"!==n.transport.type,eb=ep??!1;return ey?(()=>{let x=(0,d.stringify)(["watchEvent",i,o,es,n.uid,eu,eh]);return(0,u.observe)(x,{onLogs:ed,onError:el},u=>{let d,x;let j=!1,el=(0,l.poll)(async()=>{if(!j){try{x=await (0,R.getAction)(n,W.createEventFilter,"createEventFilter")({address:i,args:o,event:eu,events:ec,strict:eb})}catch{}j=!0;return}try{let l;if(x)l=await (0,R.getAction)(n,et.getFilterChanges,"getFilterChanges")({filter:x});else{let u=await (0,R.getAction)(n,J.getBlockNumber,"getBlockNumber")({});l=d&&d!==u?await (0,R.getAction)(n,ei.getLogs,"getLogs")({address:i,args:o,event:eu,events:ec,fromBlock:d+1n,toBlock:u}):[],d=u}if(0===l.length)return;if(es)u.onLogs(l);else for(let n of l)u.onLogs([n])}catch(n){x&&n instanceof I.InvalidInputRpcError&&(j=!1),u.onError?.(n)}},{emitOnBegin:!0,interval:eh});return async()=>{x&&await (0,R.getAction)(n,eo.uninstallFilter,"uninstallFilter")({filter:x}),el()}})})():(em=!0,eg=()=>em=!1,(async()=>{try{let u=ec??(eu?[eu]:void 0),l=[];u&&(l=[u.flatMap(n=>(0,j.encodeEventTopics)({abi:[n],eventName:n.name,args:o}))],eu&&(l=l[0]));let{unsubscribe:d}=await n.transport.subscribe({params:["logs",{address:i,topics:l}],onData(n){if(!em)return;let i=n.result;try{let{eventName:n,args:o}=(0,j.decodeEventLog)({abi:u,data:i.data,topics:i.topics,strict:eb}),l=(0,j.formatLog)(i,{args:o,eventName:n});ed([l])}catch(l){let n,o;if(l instanceof x.DecodeLogDataMismatch||l instanceof x.DecodeLogTopicsMismatch){if(ep)return;n=l.abiItem.name,o=l.abiItem.inputs?.some(n=>!("name"in n&&n.name))}let u=(0,j.formatLog)(i,{args:o?[]:{},eventName:n});ed([u])}},onError(n){el?.(n)}});eg=d,em||eg()}catch(n){el?.(n)}})(),eg)}i.watchEvent=watchEvent},87678:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.watchPendingTransactions=void 0;let u=o(38937),l=o(78204),d=o(11799),x=o(95545),I=o(17011),R=o(5413),j=o(12399);function watchPendingTransactions(n,{batch:i=!0,onError:o,onTransactions:W,poll:J,pollingInterval:et=n.pollingInterval}){let ei,eo;let es=void 0!==J?J:"webSocket"!==n.transport.type;return es?(()=>{let J=(0,x.stringify)(["watchPendingTransactions",n.uid,i,et]);return(0,l.observe)(J,{onTransactions:W,onError:o},o=>{let l;let x=(0,d.poll)(async()=>{try{if(!l)try{l=await (0,u.getAction)(n,I.createPendingTransactionFilter,"createPendingTransactionFilter")({});return}catch(n){throw x(),n}let d=await (0,u.getAction)(n,R.getFilterChanges,"getFilterChanges")({filter:l});if(0===d.length)return;if(i)o.onTransactions(d);else for(let n of d)o.onTransactions([n])}catch(n){o.onError?.(n)}},{emitOnBegin:!0,interval:et});return async()=>{l&&await (0,u.getAction)(n,j.uninstallFilter,"uninstallFilter")({filter:l}),x()}})})():(ei=!0,eo=()=>ei=!1,(async()=>{try{let{unsubscribe:i}=await n.transport.subscribe({params:["newPendingTransactions"],onData(n){if(!ei)return;let i=n.result;W([i])},onError(n){o?.(n)}});eo=i,ei||eo()}catch(n){o?.(n)}})(),eo)}i.watchPendingTransactions=watchPendingTransactions},50467:function(n,i){"use strict";async function dropTransaction(n,{hash:i}){await n.request({method:`${n.mode}_dropTransaction`,params:[i]})}Object.defineProperty(i,"__esModule",{value:!0}),i.dropTransaction=void 0,i.dropTransaction=dropTransaction},63451:function(n,i){"use strict";async function dumpState(n){return n.request({method:`${n.mode}_dumpState`})}Object.defineProperty(i,"__esModule",{value:!0}),i.dumpState=void 0,i.dumpState=dumpState},67963:function(n,i){"use strict";async function getAutomine(n){return"ganache"===n.mode?await n.request({method:"eth_mining"}):await n.request({method:`${n.mode}_getAutomine`})}Object.defineProperty(i,"__esModule",{value:!0}),i.getAutomine=void 0,i.getAutomine=getAutomine},62218:function(n,i){"use strict";async function getTxpoolContent(n){return await n.request({method:"txpool_content"})}Object.defineProperty(i,"__esModule",{value:!0}),i.getTxpoolContent=void 0,i.getTxpoolContent=getTxpoolContent},3216:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getTxpoolStatus=void 0;let u=o(15798);async function getTxpoolStatus(n){let{pending:i,queued:o}=await n.request({method:"txpool_status"});return{pending:(0,u.hexToNumber)(i),queued:(0,u.hexToNumber)(o)}}i.getTxpoolStatus=getTxpoolStatus},40039:function(n,i){"use strict";async function impersonateAccount(n,{address:i}){await n.request({method:`${n.mode}_impersonateAccount`,params:[i]})}Object.defineProperty(i,"__esModule",{value:!0}),i.impersonateAccount=void 0,i.impersonateAccount=impersonateAccount},96338:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.increaseTime=void 0;let u=o(82375);async function increaseTime(n,{seconds:i}){return await n.request({method:"evm_increaseTime",params:[(0,u.numberToHex)(i)]})}i.increaseTime=increaseTime},69624:function(n,i){"use strict";async function inspectTxpool(n){return await n.request({method:"txpool_inspect"})}Object.defineProperty(i,"__esModule",{value:!0}),i.inspectTxpool=void 0,i.inspectTxpool=inspectTxpool},11841:function(n,i){"use strict";async function loadState(n,{state:i}){await n.request({method:`${n.mode}_loadState`,params:[i]})}Object.defineProperty(i,"__esModule",{value:!0}),i.loadState=void 0,i.loadState=loadState},45553:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.mine=void 0;let u=o(82375);async function mine(n,{blocks:i,interval:o}){"ganache"===n.mode?await n.request({method:"evm_mine",params:[{blocks:(0,u.numberToHex)(i)}]}):await n.request({method:`${n.mode}_mine`,params:[(0,u.numberToHex)(i),(0,u.numberToHex)(o||0)]})}i.mine=mine},32133:function(n,i){"use strict";async function removeBlockTimestampInterval(n){await n.request({method:`${n.mode}_removeBlockTimestampInterval`})}Object.defineProperty(i,"__esModule",{value:!0}),i.removeBlockTimestampInterval=void 0,i.removeBlockTimestampInterval=removeBlockTimestampInterval},4556:function(n,i){"use strict";async function reset(n,{blockNumber:i,jsonRpcUrl:o}={}){await n.request({method:`${n.mode}_reset`,params:[{forking:{blockNumber:Number(i),jsonRpcUrl:o}}]})}Object.defineProperty(i,"__esModule",{value:!0}),i.reset=void 0,i.reset=reset},92387:function(n,i){"use strict";async function revert(n,{id:i}){await n.request({method:"evm_revert",params:[i]})}Object.defineProperty(i,"__esModule",{value:!0}),i.revert=void 0,i.revert=revert},81934:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.sendUnsignedTransaction=void 0;let u=o(29423),l=o(41074);async function sendUnsignedTransaction(n,i){let{accessList:o,data:d,from:x,gas:I,gasPrice:R,maxFeePerGas:j,maxPriorityFeePerGas:W,nonce:J,to:et,value:ei,...eo}=i,es=n.chain?.formatters?.transactionRequest?.format,eu=es||l.formatTransactionRequest,ec=eu({...(0,u.extract)(eo,{format:es}),accessList:o,data:d,from:x,gas:I,gasPrice:R,maxFeePerGas:j,maxPriorityFeePerGas:W,nonce:J,to:et,value:ei}),el=await n.request({method:"eth_sendUnsignedTransaction",params:[ec]});return el}i.sendUnsignedTransaction=sendUnsignedTransaction},85497:function(n,i){"use strict";async function setAutomine(n,i){"ganache"===n.mode?i?await n.request({method:"miner_start"}):await n.request({method:"miner_stop"}):await n.request({method:"evm_setAutomine",params:[i]})}Object.defineProperty(i,"__esModule",{value:!0}),i.setAutomine=void 0,i.setAutomine=setAutomine},74807:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.setBalance=void 0;let u=o(82375);async function setBalance(n,{address:i,value:o}){"ganache"===n.mode?await n.request({method:"evm_setAccountBalance",params:[i,(0,u.numberToHex)(o)]}):await n.request({method:`${n.mode}_setBalance`,params:[i,(0,u.numberToHex)(o)]})}i.setBalance=setBalance},93791:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.setBlockGasLimit=void 0;let u=o(82375);async function setBlockGasLimit(n,{gasLimit:i}){await n.request({method:"evm_setBlockGasLimit",params:[(0,u.numberToHex)(i)]})}i.setBlockGasLimit=setBlockGasLimit},70775:function(n,i){"use strict";async function setBlockTimestampInterval(n,{interval:i}){let o="hardhat"===n.mode?1e3*i:i;await n.request({method:`${n.mode}_setBlockTimestampInterval`,params:[o]})}Object.defineProperty(i,"__esModule",{value:!0}),i.setBlockTimestampInterval=void 0,i.setBlockTimestampInterval=setBlockTimestampInterval},41201:function(n,i){"use strict";async function setCode(n,{address:i,bytecode:o}){await n.request({method:`${n.mode}_setCode`,params:[i,o]})}Object.defineProperty(i,"__esModule",{value:!0}),i.setCode=void 0,i.setCode=setCode},911:function(n,i){"use strict";async function setCoinbase(n,{address:i}){await n.request({method:`${n.mode}_setCoinbase`,params:[i]})}Object.defineProperty(i,"__esModule",{value:!0}),i.setCoinbase=void 0,i.setCoinbase=setCoinbase},98007:function(n,i){"use strict";async function setIntervalMining(n,{interval:i}){let o="hardhat"===n.mode?1e3*i:i;await n.request({method:"evm_setIntervalMining",params:[o]})}Object.defineProperty(i,"__esModule",{value:!0}),i.setIntervalMining=void 0,i.setIntervalMining=setIntervalMining},90576:function(n,i){"use strict";async function setLoggingEnabled(n,i){await n.request({method:`${n.mode}_setLoggingEnabled`,params:[i]})}Object.defineProperty(i,"__esModule",{value:!0}),i.setLoggingEnabled=void 0,i.setLoggingEnabled=setLoggingEnabled},31051:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.setMinGasPrice=void 0;let u=o(82375);async function setMinGasPrice(n,{gasPrice:i}){await n.request({method:`${n.mode}_setMinGasPrice`,params:[(0,u.numberToHex)(i)]})}i.setMinGasPrice=setMinGasPrice},64927:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.setNextBlockBaseFeePerGas=void 0;let u=o(82375);async function setNextBlockBaseFeePerGas(n,{baseFeePerGas:i}){await n.request({method:`${n.mode}_setNextBlockBaseFeePerGas`,params:[(0,u.numberToHex)(i)]})}i.setNextBlockBaseFeePerGas=setNextBlockBaseFeePerGas},59342:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.setNextBlockTimestamp=void 0;let u=o(82375);async function setNextBlockTimestamp(n,{timestamp:i}){await n.request({method:"evm_setNextBlockTimestamp",params:[(0,u.numberToHex)(i)]})}i.setNextBlockTimestamp=setNextBlockTimestamp},51426:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.setNonce=void 0;let u=o(82375);async function setNonce(n,{address:i,nonce:o}){await n.request({method:`${n.mode}_setNonce`,params:[i,(0,u.numberToHex)(o)]})}i.setNonce=setNonce},46216:function(n,i){"use strict";async function setRpcUrl(n,i){await n.request({method:`${n.mode}_setRpcUrl`,params:[i]})}Object.defineProperty(i,"__esModule",{value:!0}),i.setRpcUrl=void 0,i.setRpcUrl=setRpcUrl},66487:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.setStorageAt=void 0;let u=o(82375);async function setStorageAt(n,{address:i,index:o,value:l}){await n.request({method:`${n.mode}_setStorageAt`,params:[i,"number"==typeof o?(0,u.numberToHex)(o):o,l]})}i.setStorageAt=setStorageAt},68129:function(n,i){"use strict";async function snapshot(n){return await n.request({method:"evm_snapshot"})}Object.defineProperty(i,"__esModule",{value:!0}),i.snapshot=void 0,i.snapshot=snapshot},51091:function(n,i){"use strict";async function stopImpersonatingAccount(n,{address:i}){await n.request({method:`${n.mode}_stopImpersonatingAccount`,params:[i]})}Object.defineProperty(i,"__esModule",{value:!0}),i.stopImpersonatingAccount=void 0,i.stopImpersonatingAccount=stopImpersonatingAccount},12194:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.addChain=void 0;let u=o(82375);async function addChain(n,{chain:i}){let{id:o,name:l,nativeCurrency:d,rpcUrls:x,blockExplorers:I}=i;await n.request({method:"wallet_addEthereumChain",params:[{chainId:(0,u.numberToHex)(o),chainName:l,nativeCurrency:d,rpcUrls:x.default.http,blockExplorerUrls:I?Object.values(I).map(({url:n})=>n):void 0}]})}i.addChain=addChain},40621:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.deployContract=void 0;let u=o(61737),l=o(7967);function deployContract(n,{abi:i,args:o,bytecode:d,...x}){let I=(0,u.encodeDeployData)({abi:i,args:o,bytecode:d});return(0,l.sendTransaction)(n,{...x,data:I})}i.deployContract=deployContract},56813:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getAddresses=void 0;let u=o(27649);async function getAddresses(n){if(n.account?.type==="local")return[n.account.address];let i=await n.request({method:"eth_accounts"});return i.map(n=>(0,u.checksumAddress)(n))}i.getAddresses=getAddresses},3682:function(n,i){"use strict";async function getPermissions(n){let i=await n.request({method:"wallet_getPermissions"});return i}Object.defineProperty(i,"__esModule",{value:!0}),i.getPermissions=void 0,i.getPermissions=getPermissions},8737:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.prepareTransactionRequest=void 0;let u=o(65621),l=o(41658),d=o(69495),x=o(63949),I=o(25006),R=o(15214),j=o(83151),W=o(38937),J=o(86520),et=o(77914);async function prepareTransactionRequest(n,i){let{account:o=n.account,chain:ei,gas:eo,nonce:es,type:eu}=i;if(!o)throw new R.AccountNotFoundError;let ec=(0,u.parseAccount)(o),el=await (0,W.getAction)(n,x.getBlock,"getBlock")({blockTag:"latest"}),ed={...i,from:ec.address};if(void 0===es&&(ed.nonce=await (0,W.getAction)(n,I.getTransactionCount,"getTransactionCount")({address:ec.address,blockTag:"pending"})),void 0===eu)try{ed.type=(0,et.getTransactionType)(ed)}catch{ed.type="bigint"==typeof el.baseFeePerGas?"eip1559":"legacy"}if("eip1559"===ed.type){let{maxFeePerGas:o,maxPriorityFeePerGas:u}=await (0,l.internal_estimateFeesPerGas)(n,{block:el,chain:ei,request:ed});if(void 0===i.maxPriorityFeePerGas&&i.maxFeePerGas&&i.maxFeePerGas(0,u.getAddress)(n))}i.requestAddresses=requestAddresses},46362:function(n,i){"use strict";async function requestPermissions(n,i){return n.request({method:"wallet_requestPermissions",params:[i]})}Object.defineProperty(i,"__esModule",{value:!0}),i.requestPermissions=void 0,i.requestPermissions=requestPermissions},41207:function(n,i){"use strict";async function sendRawTransaction(n,{serializedTransaction:i}){return n.request({method:"eth_sendRawTransaction",params:[i]})}Object.defineProperty(i,"__esModule",{value:!0}),i.sendRawTransaction=void 0,i.sendRawTransaction=sendRawTransaction},7967:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.sendTransaction=void 0;let u=o(65621),l=o(15214),d=o(71214),x=o(67072),I=o(29423),R=o(41074),j=o(38937),W=o(86520),J=o(9474),et=o(8737),ei=o(41207);async function sendTransaction(n,i){let{account:o=n.account,chain:eo=n.chain,accessList:es,data:eu,gas:ec,gasPrice:el,maxFeePerGas:ed,maxPriorityFeePerGas:ef,nonce:eh,to:ep,value:em,...eg}=i;if(!o)throw new l.AccountNotFoundError({docsPath:"/docs/actions/wallet/sendTransaction"});let ey=(0,u.parseAccount)(o);try{let o;if((0,W.assertRequest)(i),null!==eo&&(o=await (0,j.getAction)(n,J.getChainId,"getChainId")({}),(0,d.assertCurrentChain)({currentChainId:o,chain:eo})),"local"===ey.type){let i=await (0,j.getAction)(n,et.prepareTransactionRequest,"prepareTransactionRequest")({account:ey,accessList:es,chain:eo,data:eu,gas:ec,gasPrice:el,maxFeePerGas:ed,maxPriorityFeePerGas:ef,nonce:eh,to:ep,value:em,...eg});o||(o=await (0,j.getAction)(n,J.getChainId,"getChainId")({}));let u=eo?.serializers?.transaction,l=await ey.signTransaction({...i,chainId:o},{serializer:u});return await (0,j.getAction)(n,ei.sendRawTransaction,"sendRawTransaction")({serializedTransaction:l})}let u=n.chain?.formatters?.transactionRequest?.format,l=u||R.formatTransactionRequest,x=l({...(0,I.extract)(eg,{format:u}),accessList:es,data:eu,from:ey.address,gas:ec,gasPrice:el,maxFeePerGas:ed,maxPriorityFeePerGas:ef,nonce:eh,to:ep,value:em});return await n.request({method:"eth_sendTransaction",params:[x]})}catch(n){throw(0,x.getTransactionError)(n,{...i,account:ey,chain:i.chain||void 0})}}i.sendTransaction=sendTransaction},74689:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.signMessage=void 0;let u=o(65621),l=o(15214),d=o(82375);async function signMessage(n,{account:i=n.account,message:o}){if(!i)throw new l.AccountNotFoundError({docsPath:"/docs/actions/wallet/signMessage"});let x=(0,u.parseAccount)(i);if("local"===x.type)return x.signMessage({message:o});let I="string"==typeof o?(0,d.stringToHex)(o):o.raw instanceof Uint8Array?(0,d.toHex)(o.raw):o.raw;return n.request({method:"personal_sign",params:[I,x.address]})}i.signMessage=signMessage},90011:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.signTransaction=void 0;let u=o(65621),l=o(15214),d=o(71214),x=o(41074),I=o(38937),R=o(60519),j=o(86520),W=o(9474);async function signTransaction(n,i){let{account:o=n.account,chain:J=n.chain,...et}=i;if(!o)throw new l.AccountNotFoundError({docsPath:"/docs/actions/wallet/signTransaction"});let ei=(0,u.parseAccount)(o);(0,j.assertRequest)({account:ei,...i});let eo=await (0,I.getAction)(n,W.getChainId,"getChainId")({});null!==J&&(0,d.assertCurrentChain)({currentChainId:eo,chain:J});let es=J?.formatters||n.chain?.formatters,eu=es?.transactionRequest?.format||x.formatTransactionRequest;return"local"===ei.type?ei.signTransaction({...et,chainId:eo},{serializer:n.chain?.serializers?.transaction}):await n.request({method:"eth_signTransaction",params:[{...eu(et),chainId:(0,R.numberToHex)(eo),from:ei.address}]})}i.signTransaction=signTransaction},98821:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.signTypedData=void 0;let u=o(65621),l=o(15214),d=o(31358),x=o(95545),I=o(25602);async function signTypedData(n,{account:i=n.account,domain:o,message:R,primaryType:j,types:W}){if(!i)throw new l.AccountNotFoundError({docsPath:"/docs/actions/wallet/signTypedData"});let J=(0,u.parseAccount)(i),et={EIP712Domain:(0,I.getTypesForEIP712Domain)({domain:o}),...W};if((0,I.validateTypedData)({domain:o,message:R,primaryType:j,types:et}),"local"===J.type)return J.signTypedData({domain:o,primaryType:j,types:et,message:R});let ei=(0,x.stringify)({domain:o??{},primaryType:j,types:et,message:R},(n,i)=>(0,d.isHex)(i)?i.toLowerCase():i);return n.request({method:"eth_signTypedData_v4",params:[J.address,ei]})}i.signTypedData=signTypedData},75455:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.switchChain=void 0;let u=o(82375);async function switchChain(n,{id:i}){await n.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,u.numberToHex)(i)}]})}i.switchChain=switchChain},28574:function(n,i){"use strict";async function watchAsset(n,i){let o=await n.request({method:"wallet_watchAsset",params:i});return o}Object.defineProperty(i,"__esModule",{value:!0}),i.watchAsset=void 0,i.watchAsset=watchAsset},37759:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.writeContract=void 0;let u=o(45107),l=o(38937),d=o(7967);async function writeContract(n,{abi:i,address:o,args:x,dataSuffix:I,functionName:R,...j}){let W=(0,u.encodeFunctionData)({abi:i,args:x,functionName:R}),J=await (0,l.getAction)(n,d.sendTransaction,"sendTransaction")({data:`${W}${I?I.replace("0x",""):""}`,to:o,...j});return J}i.writeContract=writeContract},32027:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.createClient=void 0;let u=o(21914),l=o(32354);function createClient(n){let{batch:i,cacheTime:o=n.pollingInterval??4e3,key:d="base",name:x="Base Client",pollingInterval:I=4e3,type:R="base"}=n,j=n.chain,W=n.account?(0,u.parseAccount)(n.account):void 0,{config:J,request:et,value:ei}=n.transport({chain:j,pollingInterval:I}),eo={...J,...ei},es={account:W,batch:i,cacheTime:o,chain:j,key:d,name:x,pollingInterval:I,request:et,transport:eo,type:R,uid:(0,l.uid)()};function extend(n){return i=>{let o=i(n);for(let n in es)delete o[n];let u={...n,...o};return Object.assign(u,{extend:extend(u)})}}return Object.assign(es,{extend:extend(es)})}i.createClient=createClient},85312:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.createPublicClient=void 0;let u=o(32027),l=o(6143);function createPublicClient(n){let{key:i="public",name:o="Public Client"}=n,d=(0,u.createClient)({...n,key:i,name:o,type:"publicClient"});return d.extend(l.publicActions)}i.createPublicClient=createPublicClient},96054:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.createTestClient=void 0;let u=o(32027),l=o(27658);function createTestClient(n){let{key:i="test",name:o="Test Client",mode:d}=n,x=(0,u.createClient)({...n,key:i,name:o,type:"testClient"});return x.extend(n=>({mode:d,...(0,l.testActions)({mode:d})(n)}))}i.createTestClient=createTestClient},7727:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.createWalletClient=void 0;let u=o(32027),l=o(15532);function createWalletClient(n){let{key:i="wallet",name:o="Wallet Client",transport:d}=n,x=(0,u.createClient)({...n,key:i,name:o,transport:n=>d({...n,retryCount:0}),type:"walletClient"});return x.extend(l.walletActions)}i.createWalletClient=createWalletClient},6143:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.publicActions=void 0;let u=o(30825),l=o(343),d=o(9411),x=o(97699),I=o(76789),R=o(25112),j=o(76735),W=o(55109),J=o(28445),et=o(17011),ei=o(16285),eo=o(41658),es=o(69495),eu=o(14285),ec=o(86116),el=o(63949),ed=o(79516),ef=o(44636),eh=o(71155),ep=o(9474),em=o(81565),eg=o(31300),ey=o(5413),eb=o(50237),ev=o(81815),eE=o(61837),ew=o(60723),eP=o(87304),ex=o(23948),eT=o(27680),eA=o(25006),eS=o(52474),eC=o(19324),e_=o(29614),eO=o(57680),eI=o(12399),eB=o(76325),eD=o(92722),eR=o(11539),ej=o(81350),eM=o(80472),ek=o(36204),eF=o(299),eN=o(87678),eU=o(8737),eL=o(41207);function publicActions(n){return{call:i=>(0,R.call)(n,i),createBlockFilter:()=>(0,j.createBlockFilter)(n),createContractEventFilter:i=>(0,W.createContractEventFilter)(n,i),createEventFilter:i=>(0,J.createEventFilter)(n,i),createPendingTransactionFilter:()=>(0,et.createPendingTransactionFilter)(n),estimateContractGas:i=>(0,ei.estimateContractGas)(n,i),estimateGas:i=>(0,es.estimateGas)(n,i),getBalance:i=>(0,ec.getBalance)(n,i),getBlock:i=>(0,el.getBlock)(n,i),getBlockNumber:i=>(0,ed.getBlockNumber)(n,i),getBlockTransactionCount:i=>(0,ef.getBlockTransactionCount)(n,i),getBytecode:i=>(0,eh.getBytecode)(n,i),getChainId:()=>(0,ep.getChainId)(n),getContractEvents:i=>(0,em.getContractEvents)(n,i),getEnsAddress:i=>(0,u.getEnsAddress)(n,i),getEnsAvatar:i=>(0,l.getEnsAvatar)(n,i),getEnsName:i=>(0,d.getEnsName)(n,i),getEnsResolver:i=>(0,x.getEnsResolver)(n,i),getEnsText:i=>(0,I.getEnsText)(n,i),getFeeHistory:i=>(0,eg.getFeeHistory)(n,i),estimateFeesPerGas:i=>(0,eo.estimateFeesPerGas)(n,i),getFilterChanges:i=>(0,ey.getFilterChanges)(n,i),getFilterLogs:i=>(0,eb.getFilterLogs)(n,i),getGasPrice:()=>(0,ev.getGasPrice)(n),getLogs:i=>(0,eE.getLogs)(n,i),getProof:i=>(0,ew.getProof)(n,i),estimateMaxPriorityFeePerGas:i=>(0,eu.estimateMaxPriorityFeePerGas)(n,i),getStorageAt:i=>(0,eP.getStorageAt)(n,i),getTransaction:i=>(0,ex.getTransaction)(n,i),getTransactionConfirmations:i=>(0,eT.getTransactionConfirmations)(n,i),getTransactionCount:i=>(0,eA.getTransactionCount)(n,i),getTransactionReceipt:i=>(0,eS.getTransactionReceipt)(n,i),multicall:i=>(0,eC.multicall)(n,i),prepareTransactionRequest:i=>(0,eU.prepareTransactionRequest)(n,i),readContract:i=>(0,e_.readContract)(n,i),sendRawTransaction:i=>(0,eL.sendRawTransaction)(n,i),simulateContract:i=>(0,eO.simulateContract)(n,i),verifyMessage:i=>(0,eB.verifyMessage)(n,i),verifyTypedData:i=>(0,eD.verifyTypedData)(n,i),uninstallFilter:i=>(0,eI.uninstallFilter)(n,i),waitForTransactionReceipt:i=>(0,eR.waitForTransactionReceipt)(n,i),watchBlocks:i=>(0,eM.watchBlocks)(n,i),watchBlockNumber:i=>(0,ej.watchBlockNumber)(n,i),watchContractEvent:i=>(0,ek.watchContractEvent)(n,i),watchEvent:i=>(0,eF.watchEvent)(n,i),watchPendingTransactions:i=>(0,eN.watchPendingTransactions)(n,i)}}i.publicActions=publicActions},27658:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.testActions=void 0;let u=o(50467),l=o(63451),d=o(67963),x=o(62218),I=o(3216),R=o(40039),j=o(96338),W=o(69624),J=o(11841),et=o(45553),ei=o(32133),eo=o(4556),es=o(92387),eu=o(81934),ec=o(85497),el=o(74807),ed=o(93791),ef=o(70775),eh=o(41201),ep=o(911),em=o(98007),eg=o(90576),ey=o(31051),eb=o(64927),ev=o(59342),eE=o(51426),ew=o(46216),eP=o(66487),ex=o(68129),eT=o(51091);function testActions({mode:n}){return i=>{let o=i.extend(()=>({mode:n}));return{dropTransaction:n=>(0,u.dropTransaction)(o,n),dumpState:()=>(0,l.dumpState)(o),getAutomine:()=>(0,d.getAutomine)(o),getTxpoolContent:()=>(0,x.getTxpoolContent)(o),getTxpoolStatus:()=>(0,I.getTxpoolStatus)(o),impersonateAccount:n=>(0,R.impersonateAccount)(o,n),increaseTime:n=>(0,j.increaseTime)(o,n),inspectTxpool:()=>(0,W.inspectTxpool)(o),loadState:n=>(0,J.loadState)(o,n),mine:n=>(0,et.mine)(o,n),removeBlockTimestampInterval:()=>(0,ei.removeBlockTimestampInterval)(o),reset:n=>(0,eo.reset)(o,n),revert:n=>(0,es.revert)(o,n),sendUnsignedTransaction:n=>(0,eu.sendUnsignedTransaction)(o,n),setAutomine:n=>(0,ec.setAutomine)(o,n),setBalance:n=>(0,el.setBalance)(o,n),setBlockGasLimit:n=>(0,ed.setBlockGasLimit)(o,n),setBlockTimestampInterval:n=>(0,ef.setBlockTimestampInterval)(o,n),setCode:n=>(0,eh.setCode)(o,n),setCoinbase:n=>(0,ep.setCoinbase)(o,n),setIntervalMining:n=>(0,em.setIntervalMining)(o,n),setLoggingEnabled:n=>(0,eg.setLoggingEnabled)(o,n),setMinGasPrice:n=>(0,ey.setMinGasPrice)(o,n),setNextBlockBaseFeePerGas:n=>(0,eb.setNextBlockBaseFeePerGas)(o,n),setNextBlockTimestamp:n=>(0,ev.setNextBlockTimestamp)(o,n),setNonce:n=>(0,eE.setNonce)(o,n),setRpcUrl:n=>(0,ew.setRpcUrl)(o,n),setStorageAt:n=>(0,eP.setStorageAt)(o,n),snapshot:()=>(0,ex.snapshot)(o),stopImpersonatingAccount:n=>(0,eT.stopImpersonatingAccount)(o,n)}}}i.testActions=testActions},15532:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.walletActions=void 0;let u=o(9474),l=o(12194),d=o(40621),x=o(56813),I=o(3682),R=o(8737),j=o(69187),W=o(46362),J=o(41207),et=o(7967),ei=o(74689),eo=o(90011),es=o(98821),eu=o(75455),ec=o(28574),el=o(37759);function walletActions(n){return{addChain:i=>(0,l.addChain)(n,i),deployContract:i=>(0,d.deployContract)(n,i),getAddresses:()=>(0,x.getAddresses)(n),getChainId:()=>(0,u.getChainId)(n),getPermissions:()=>(0,I.getPermissions)(n),prepareTransactionRequest:i=>(0,R.prepareTransactionRequest)(n,i),requestAddresses:()=>(0,j.requestAddresses)(n),requestPermissions:i=>(0,W.requestPermissions)(n,i),sendRawTransaction:i=>(0,J.sendRawTransaction)(n,i),sendTransaction:i=>(0,et.sendTransaction)(n,i),signMessage:i=>(0,ei.signMessage)(n,i),signTransaction:i=>(0,eo.signTransaction)(n,i),signTypedData:i=>(0,es.signTypedData)(n,i),switchChain:i=>(0,eu.switchChain)(n,i),watchAsset:i=>(0,ec.watchAsset)(n,i),writeContract:i=>(0,el.writeContract)(n,i)}}i.walletActions=walletActions},93480:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.createTransport=void 0;let u=o(95903);function createTransport({key:n,name:i,request:o,retryCount:l=3,retryDelay:d=150,timeout:x,type:I},R){return{config:{key:n,name:i,request:o,retryCount:l,retryDelay:d,timeout:x,type:I},request:(0,u.buildRequest)(o,{retryCount:l,retryDelay:d}),value:R}}i.createTransport=createTransport},89089:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.custom=void 0;let u=o(93480);function custom(n,i={}){let{key:o="custom",name:l="Custom Provider",retryDelay:d}=i;return({retryCount:x})=>(0,u.createTransport)({key:o,name:l,request:n.request.bind(n),retryCount:i.retryCount??x,retryDelay:d,type:"custom"})}i.custom=custom},190:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.rankTransports=i.fallback=void 0;let u=o(95903),l=o(26040),d=o(93480);function fallback(n,i={}){let{key:o="fallback",name:l="Fallback",rank:x=!1,retryCount:I,retryDelay:R}=i;return({chain:i,pollingInterval:j=4e3,timeout:W})=>{let J=n,onResponse=()=>{},et=(0,d.createTransport)({key:o,name:l,async request({method:n,params:o}){let fetch=async(l=0)=>{let d=J[l]({chain:i,retryCount:0,timeout:W});try{let i=await d.request({method:n,params:o});return onResponse({method:n,params:o,response:i,transport:d,status:"success"}),i}catch(i){if(onResponse({error:i,method:n,params:o,transport:d,status:"error"}),(0,u.isDeterministicError)(i)||l===J.length-1)throw i;return fetch(l+1)}};return fetch()},retryCount:I,retryDelay:R,type:"fallback"},{onResponse:n=>onResponse=n,transports:J.map(n=>n({chain:i,retryCount:0}))});if(x){let n="object"==typeof x?x:{};rankTransports({chain:i,interval:n.interval??j,onTransports:n=>J=n,sampleCount:n.sampleCount,timeout:n.timeout,transports:J,weights:n.weights})}return et}}function rankTransports({chain:n,interval:i=4e3,onTransports:o,sampleCount:u=10,timeout:d=1e3,transports:x,weights:I={}}){let{stability:R=.7,latency:j=.3}=I,W=[],rankTransports_=async()=>{let I=await Promise.all(x.map(async i=>{let o,u;let l=i({chain:n,retryCount:0,timeout:d}),x=Date.now();try{await l.request({method:"net_listening"}),u=1}catch{u=0}finally{o=Date.now()}let I=o-x;return{latency:I,success:u}}));W.push(I),W.length>u&&W.shift();let J=Math.max(...W.map(n=>Math.max(...n.map(({latency:n})=>n)))),et=x.map((n,i)=>{let o=W.map(n=>n[i].latency),u=o.reduce((n,i)=>n+i,0)/o.length,l=W.map(n=>n[i].success),d=l.reduce((n,i)=>n+i,0)/l.length;return 0===d?[0,i]:[j*(1-u/J)+R*d,i]}).sort((n,i)=>i[0]-n[0]);o(et.map(([,n])=>x[n])),await (0,l.wait)(i),rankTransports_()};rankTransports_()}i.fallback=fallback,i.rankTransports=rankTransports},93195:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.http=void 0;let u=o(39885),l=o(60630),d=o(90647),x=o(42502),I=o(93480);function http(n,i={}){let{batch:o,fetchOptions:R,key:j="http",name:W="HTTP JSON-RPC",retryDelay:J}=i;return({chain:et,retryCount:ei,timeout:eo})=>{let{batchSize:es=1e3,wait:eu=0}="object"==typeof o?o:{},ec=i.retryCount??ei,el=eo??i.timeout??1e4,ed=n||et?.rpcUrls.default.http[0];if(!ed)throw new l.UrlRequiredError;return(0,I.createTransport)({key:j,name:W,async request({method:i,params:l}){let I={method:i,params:l},{schedule:j}=(0,d.createBatchScheduler)({id:`${n}`,wait:eu,shouldSplitBatch:n=>n.length>es,fn:n=>x.rpc.http(ed,{body:n,fetchOptions:R,timeout:el}),sort:(n,i)=>n.id-i.id}),fn=async n=>o?j(n):[await x.rpc.http(ed,{body:n,fetchOptions:R,timeout:el})],[{error:W,result:J}]=await fn(I);if(W)throw new u.RpcRequestError({body:I,error:W,url:ed});return J},retryCount:ec,retryDelay:J,timeout:el,type:"http"},{fetchOptions:R,url:n})}}i.http=http},54478:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.webSocket=void 0;let u=o(39885),l=o(60630),d=o(42502),x=o(93480);function webSocket(n,i={}){let{key:o="webSocket",name:I="WebSocket JSON-RPC",retryDelay:R}=i;return({chain:j,retryCount:W,timeout:J})=>{let et=i.retryCount??W,ei=J??i.timeout??1e4,eo=n||j?.rpcUrls.default.webSocket?.[0];if(!eo)throw new l.UrlRequiredError;return(0,x.createTransport)({key:o,name:I,async request({method:n,params:i}){let o={method:n,params:i},l=await (0,d.getSocket)(eo),{error:x,result:I}=await d.rpc.webSocketAsync(l,{body:o,timeout:ei});if(x)throw new u.RpcRequestError({body:o,error:x,url:eo});return I},retryCount:et,retryDelay:R,timeout:ei,type:"webSocket"},{getSocket:()=>(0,d.getSocket)(eo),async subscribe({params:n,onData:i,onError:o}){let u=await (0,d.getSocket)(eo),{result:l}=await new Promise((l,x)=>d.rpc.webSocket(u,{body:{method:"eth_subscribe",params:n},onResponse(n){if(n.error){x(n.error),o?.(n.error);return}if("number"==typeof n.id){l(n);return}"eth_subscription"===n.method&&i(n.params)}}));return{subscriptionId:l,unsubscribe:async()=>new Promise(n=>d.rpc.webSocket(u,{body:{method:"eth_unsubscribe",params:[l]},onResponse:n}))}}})}}i.webSocket=webSocket},10491:function(n,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.universalSignatureValidatorAbi=i.smartAccountAbi=i.addressResolverAbi=i.textResolverAbi=i.universalResolverReverseAbi=i.universalResolverResolveAbi=i.multicall3Abi=void 0,i.multicall3Abi=[{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"}];let o=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"}];i.universalResolverResolveAbi=[...o,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],i.universalResolverReverseAbi=[...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"}]}],i.textResolverAbi=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],i.addressResolverAbi=[{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"}]}],i.smartAccountAbi=[{name:"isValidSignature",type:"function",stateMutability:"view",inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],outputs:[{name:"",type:"bytes4"}]}],i.universalSignatureValidatorAbi=[{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"}]},17288:function(n,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.zeroAddress=void 0,i.zeroAddress="0x0000000000000000000000000000000000000000"},34559:function(n,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.zeroHash=void 0,i.zeroHash="0x0000000000000000000000000000000000000000000000000000000000000000"},42871:function(n,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.aggregate3Signature=void 0,i.aggregate3Signature="0x82ad56cb"},3062:function(n,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.universalSignatureValidatorByteCode=void 0,i.universalSignatureValidatorByteCode="0x60806040523480156200001157600080fd5b50604051620007003803806200070083398101604081905262000034916200056f565b6000620000438484846200004f565b9050806000526001601ff35b600080846001600160a01b0316803b806020016040519081016040528181526000908060200190933c90507f6492649264926492649264926492649264926492649264926492649264926492620000a68462000451565b036200021f57600060608085806020019051810190620000c79190620005ce565b8651929550909350915060000362000192576000836001600160a01b031683604051620000f5919062000643565b6000604051808303816000865af19150503d806000811462000134576040519150601f19603f3d011682016040523d82523d6000602084013e62000139565b606091505b5050905080620001905760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b505b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90620001c4908b90869060040162000661565b602060405180830381865afa158015620001e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200020891906200069d565b6001600160e01b031916149450505050506200044a565b805115620002b157604051630b135d3f60e11b808252906001600160a01b03871690631626ba7e9062000259908890889060040162000661565b602060405180830381865afa15801562000277573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200029d91906200069d565b6001600160e01b031916149150506200044a565b8251604114620003195760405162461bcd60e51b815260206004820152603a6024820152600080516020620006e083398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e677468000000000000606482015260840162000187565b620003236200046b565b506020830151604080850151855186939260009185919081106200034b576200034b620006c9565b016020015160f81c9050601b81148015906200036b57508060ff16601c14155b15620003cf5760405162461bcd60e51b815260206004820152603b6024820152600080516020620006e083398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c75650000000000606482015260840162000187565b6040805160008152602081018083528a905260ff83169181019190915260608101849052608081018390526001600160a01b038a169060019060a0016020604051602081039080840390855afa1580156200042e573d6000803e3d6000fd5b505050602060405103516001600160a01b031614955050505050505b9392505050565b60006020825110156200046357600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b03811681146200049f57600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620004d5578181015183820152602001620004bb565b50506000910152565b600082601f830112620004f057600080fd5b81516001600160401b03808211156200050d576200050d620004a2565b604051601f8301601f19908116603f01168101908282118183101715620005385762000538620004a2565b816040528381528660208588010111156200055257600080fd5b62000565846020830160208901620004b8565b9695505050505050565b6000806000606084860312156200058557600080fd5b8351620005928162000489565b6020850151604086015191945092506001600160401b03811115620005b657600080fd5b620005c486828701620004de565b9150509250925092565b600080600060608486031215620005e457600080fd5b8351620005f18162000489565b60208501519093506001600160401b03808211156200060f57600080fd5b6200061d87838801620004de565b935060408601519150808211156200063457600080fd5b50620005c486828701620004de565b6000825162000657818460208701620004b8565b9190910192915050565b828152604060208201526000825180604084015262000688816060850160208701620004b8565b601f01601f1916919091016060019392505050565b600060208284031215620006b057600080fd5b81516001600160e01b0319811681146200044a57600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572"},46918:function(n,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.minInt144=i.minInt136=i.minInt128=i.minInt120=i.minInt112=i.minInt104=i.minInt96=i.minInt88=i.minInt80=i.minInt72=i.minInt64=i.minInt56=i.minInt48=i.minInt40=i.minInt32=i.minInt24=i.minInt16=i.minInt8=i.maxInt256=i.maxInt248=i.maxInt240=i.maxInt232=i.maxInt224=i.maxInt216=i.maxInt208=i.maxInt200=i.maxInt192=i.maxInt184=i.maxInt176=i.maxInt168=i.maxInt160=i.maxInt152=i.maxInt144=i.maxInt136=i.maxInt128=i.maxInt120=i.maxInt112=i.maxInt104=i.maxInt96=i.maxInt88=i.maxInt80=i.maxInt72=i.maxInt64=i.maxInt56=i.maxInt48=i.maxInt40=i.maxInt32=i.maxInt24=i.maxInt16=i.maxInt8=void 0,i.maxUint256=i.maxUint248=i.maxUint240=i.maxUint232=i.maxUint224=i.maxUint216=i.maxUint208=i.maxUint200=i.maxUint192=i.maxUint184=i.maxUint176=i.maxUint168=i.maxUint160=i.maxUint152=i.maxUint144=i.maxUint136=i.maxUint128=i.maxUint120=i.maxUint112=i.maxUint104=i.maxUint96=i.maxUint88=i.maxUint80=i.maxUint72=i.maxUint64=i.maxUint56=i.maxUint48=i.maxUint40=i.maxUint32=i.maxUint24=i.maxUint16=i.maxUint8=i.minInt256=i.minInt248=i.minInt240=i.minInt232=i.minInt224=i.minInt216=i.minInt208=i.minInt200=i.minInt192=i.minInt184=i.minInt176=i.minInt168=i.minInt160=i.minInt152=void 0,i.maxInt8=2n**(8n-1n)-1n,i.maxInt16=2n**(16n-1n)-1n,i.maxInt24=2n**(24n-1n)-1n,i.maxInt32=2n**(32n-1n)-1n,i.maxInt40=2n**(40n-1n)-1n,i.maxInt48=2n**(48n-1n)-1n,i.maxInt56=2n**(56n-1n)-1n,i.maxInt64=2n**(64n-1n)-1n,i.maxInt72=2n**(72n-1n)-1n,i.maxInt80=2n**(80n-1n)-1n,i.maxInt88=2n**(88n-1n)-1n,i.maxInt96=2n**(96n-1n)-1n,i.maxInt104=2n**(104n-1n)-1n,i.maxInt112=2n**(112n-1n)-1n,i.maxInt120=2n**(120n-1n)-1n,i.maxInt128=2n**(128n-1n)-1n,i.maxInt136=2n**(136n-1n)-1n,i.maxInt144=2n**(144n-1n)-1n,i.maxInt152=2n**(152n-1n)-1n,i.maxInt160=2n**(160n-1n)-1n,i.maxInt168=2n**(168n-1n)-1n,i.maxInt176=2n**(176n-1n)-1n,i.maxInt184=2n**(184n-1n)-1n,i.maxInt192=2n**(192n-1n)-1n,i.maxInt200=2n**(200n-1n)-1n,i.maxInt208=2n**(208n-1n)-1n,i.maxInt216=2n**(216n-1n)-1n,i.maxInt224=2n**(224n-1n)-1n,i.maxInt232=2n**(232n-1n)-1n,i.maxInt240=2n**(240n-1n)-1n,i.maxInt248=2n**(248n-1n)-1n,i.maxInt256=2n**(256n-1n)-1n,i.minInt8=-(2n**(8n-1n)),i.minInt16=-(2n**(16n-1n)),i.minInt24=-(2n**(24n-1n)),i.minInt32=-(2n**(32n-1n)),i.minInt40=-(2n**(40n-1n)),i.minInt48=-(2n**(48n-1n)),i.minInt56=-(2n**(56n-1n)),i.minInt64=-(2n**(64n-1n)),i.minInt72=-(2n**(72n-1n)),i.minInt80=-(2n**(80n-1n)),i.minInt88=-(2n**(88n-1n)),i.minInt96=-(2n**(96n-1n)),i.minInt104=-(2n**(104n-1n)),i.minInt112=-(2n**(112n-1n)),i.minInt120=-(2n**(120n-1n)),i.minInt128=-(2n**(128n-1n)),i.minInt136=-(2n**(136n-1n)),i.minInt144=-(2n**(144n-1n)),i.minInt152=-(2n**(152n-1n)),i.minInt160=-(2n**(160n-1n)),i.minInt168=-(2n**(168n-1n)),i.minInt176=-(2n**(176n-1n)),i.minInt184=-(2n**(184n-1n)),i.minInt192=-(2n**(192n-1n)),i.minInt200=-(2n**(200n-1n)),i.minInt208=-(2n**(208n-1n)),i.minInt216=-(2n**(216n-1n)),i.minInt224=-(2n**(224n-1n)),i.minInt232=-(2n**(232n-1n)),i.minInt240=-(2n**(240n-1n)),i.minInt248=-(2n**(248n-1n)),i.minInt256=-(2n**(256n-1n)),i.maxUint8=2n**8n-1n,i.maxUint16=2n**16n-1n,i.maxUint24=2n**24n-1n,i.maxUint32=2n**32n-1n,i.maxUint40=2n**40n-1n,i.maxUint48=2n**48n-1n,i.maxUint56=2n**56n-1n,i.maxUint64=2n**64n-1n,i.maxUint72=2n**72n-1n,i.maxUint80=2n**80n-1n,i.maxUint88=2n**88n-1n,i.maxUint96=2n**96n-1n,i.maxUint104=2n**104n-1n,i.maxUint112=2n**112n-1n,i.maxUint120=2n**120n-1n,i.maxUint128=2n**128n-1n,i.maxUint136=2n**136n-1n,i.maxUint144=2n**144n-1n,i.maxUint152=2n**152n-1n,i.maxUint160=2n**160n-1n,i.maxUint168=2n**168n-1n,i.maxUint176=2n**176n-1n,i.maxUint184=2n**184n-1n,i.maxUint192=2n**192n-1n,i.maxUint200=2n**200n-1n,i.maxUint208=2n**208n-1n,i.maxUint216=2n**216n-1n,i.maxUint224=2n**224n-1n,i.maxUint232=2n**232n-1n,i.maxUint240=2n**240n-1n,i.maxUint248=2n**248n-1n,i.maxUint256=2n**256n-1n},17073:function(n,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.solidityPanic=i.solidityError=i.panicReasons=void 0,i.panicReasons={1:"An `assert` condition failed.",17:"Arithmic 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."},i.solidityError={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},i.solidityPanic={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}},47563:function(n,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.presignMessagePrefix=void 0,i.presignMessagePrefix="\x19Ethereum Signed Message:\n"},8768:function(n,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.weiUnits=i.gweiUnits=i.etherUnits=void 0,i.etherUnits={gwei:9,wei:18},i.gweiUnits={ether:-9,wei:9},i.weiUnits={ether:-18,gwei:-9}},39991:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.UnsupportedPackedAbiType=i.InvalidDefinitionTypeError=i.InvalidArrayError=i.InvalidAbiDecodingTypeError=i.InvalidAbiEncodingTypeError=i.DecodeLogTopicsMismatch=i.DecodeLogDataMismatch=i.BytesSizeMismatchError=i.AbiItemAmbiguityError=i.AbiFunctionSignatureNotFoundError=i.AbiFunctionOutputsNotFoundError=i.AbiFunctionNotFoundError=i.AbiEventNotFoundError=i.AbiEventSignatureNotFoundError=i.AbiEventSignatureEmptyTopicsError=i.AbiErrorSignatureNotFoundError=i.AbiErrorNotFoundError=i.AbiErrorInputsNotFoundError=i.AbiEncodingLengthMismatchError=i.AbiEncodingBytesSizeMismatchError=i.AbiEncodingArrayLengthMismatchError=i.AbiDecodingZeroDataError=i.AbiDecodingDataSizeTooSmallError=i.AbiDecodingDataSizeInvalidError=i.AbiConstructorParamsNotFoundError=i.AbiConstructorNotFoundError=void 0;let u=o(15782),l=o(98049),d=o(83399);let AbiConstructorNotFoundError=class AbiConstructorNotFoundError extends d.BaseError{constructor({docsPath:n}){super("A constructor was not found on the ABI.\nMake sure you are using the correct ABI and that the constructor exists on it.",{docsPath:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorNotFoundError"})}};i.AbiConstructorNotFoundError=AbiConstructorNotFoundError;let AbiConstructorParamsNotFoundError=class AbiConstructorParamsNotFoundError extends d.BaseError{constructor({docsPath:n}){super("Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.\nMake sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists.",{docsPath:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorParamsNotFoundError"})}};i.AbiConstructorParamsNotFoundError=AbiConstructorParamsNotFoundError;let AbiDecodingDataSizeInvalidError=class AbiDecodingDataSizeInvalidError extends d.BaseError{constructor({data:n,size:i}){super(`Data size of ${i} bytes is invalid. -Size must be in increments of 32 bytes (size % 32 === 0).`,{metaMessages:[`Data: ${n} (${i} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingDataSizeInvalidError"})}};i.AbiDecodingDataSizeInvalidError=AbiDecodingDataSizeInvalidError;let AbiDecodingDataSizeTooSmallError=class AbiDecodingDataSizeTooSmallError extends d.BaseError{constructor({data:n,params:i,size:o}){super(`Data size of ${o} bytes is too small for given parameters.`,{metaMessages:[`Params: (${(0,u.formatAbiParams)(i,{includeName:!0})})`,`Data: ${n} (${o} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=n,this.params=i,this.size=o}};i.AbiDecodingDataSizeTooSmallError=AbiDecodingDataSizeTooSmallError;let AbiDecodingZeroDataError=class AbiDecodingZeroDataError extends d.BaseError{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingZeroDataError"})}};i.AbiDecodingZeroDataError=AbiDecodingZeroDataError;let AbiEncodingArrayLengthMismatchError=class AbiEncodingArrayLengthMismatchError extends d.BaseError{constructor({expectedLength:n,givenLength:i,type:o}){super(`ABI encoding array length mismatch for type ${o}. -Expected length: ${n} -Given length: ${i}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingArrayLengthMismatchError"})}};i.AbiEncodingArrayLengthMismatchError=AbiEncodingArrayLengthMismatchError;let AbiEncodingBytesSizeMismatchError=class AbiEncodingBytesSizeMismatchError extends d.BaseError{constructor({expectedSize:n,value:i}){super(`Size of bytes "${i}" (bytes${(0,l.size)(i)}) does not match expected size (bytes${n}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingBytesSizeMismatchError"})}};i.AbiEncodingBytesSizeMismatchError=AbiEncodingBytesSizeMismatchError;let AbiEncodingLengthMismatchError=class AbiEncodingLengthMismatchError extends d.BaseError{constructor({expectedLength:n,givenLength:i}){super(`ABI encoding params/values length mismatch. -Expected length (params): ${n} -Given length (values): ${i}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingLengthMismatchError"})}};i.AbiEncodingLengthMismatchError=AbiEncodingLengthMismatchError;let AbiErrorInputsNotFoundError=class AbiErrorInputsNotFoundError extends d.BaseError{constructor(n,{docsPath:i}){super(`Arguments (\`args\`) were provided to "${n}", but "${n}" on the ABI does not contain any parameters (\`inputs\`). -Cannot encode error result without knowing what the parameter types are. -Make sure you are using the correct ABI and that the inputs exist on it.`,{docsPath:i}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorInputsNotFoundError"})}};i.AbiErrorInputsNotFoundError=AbiErrorInputsNotFoundError;let AbiErrorNotFoundError=class AbiErrorNotFoundError extends d.BaseError{constructor(n,{docsPath:i}={}){super(`Error ${n?`"${n}" `:""}not found on ABI. -Make sure you are using the correct ABI and that the error exists on it.`,{docsPath:i}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorNotFoundError"})}};i.AbiErrorNotFoundError=AbiErrorNotFoundError;let AbiErrorSignatureNotFoundError=class AbiErrorSignatureNotFoundError extends d.BaseError{constructor(n,{docsPath:i}){super(`Encoded error signature "${n}" not found on 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=${n}.`,{docsPath:i}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=n}};i.AbiErrorSignatureNotFoundError=AbiErrorSignatureNotFoundError;let AbiEventSignatureEmptyTopicsError=class AbiEventSignatureEmptyTopicsError extends d.BaseError{constructor({docsPath:n}){super("Cannot extract event signature from empty topics.",{docsPath:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureEmptyTopicsError"})}};i.AbiEventSignatureEmptyTopicsError=AbiEventSignatureEmptyTopicsError;let AbiEventSignatureNotFoundError=class AbiEventSignatureNotFoundError extends d.BaseError{constructor(n,{docsPath:i}){super(`Encoded event signature "${n}" not found on ABI. -Make sure you are using the correct ABI and that the event exists on it. -You can look up the signature here: https://openchain.xyz/signatures?query=${n}.`,{docsPath:i}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureNotFoundError"})}};i.AbiEventSignatureNotFoundError=AbiEventSignatureNotFoundError;let AbiEventNotFoundError=class AbiEventNotFoundError extends d.BaseError{constructor(n,{docsPath:i}={}){super(`Event ${n?`"${n}" `:""}not found on ABI. -Make sure you are using the correct ABI and that the event exists on it.`,{docsPath:i}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventNotFoundError"})}};i.AbiEventNotFoundError=AbiEventNotFoundError;let AbiFunctionNotFoundError=class AbiFunctionNotFoundError extends d.BaseError{constructor(n,{docsPath:i}={}){super(`Function ${n?`"${n}" `:""}not found on ABI. -Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:i}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionNotFoundError"})}};i.AbiFunctionNotFoundError=AbiFunctionNotFoundError;let AbiFunctionOutputsNotFoundError=class AbiFunctionOutputsNotFoundError extends d.BaseError{constructor(n,{docsPath:i}){super(`Function "${n}" does not contain any \`outputs\` on ABI. -Cannot decode function result without knowing what the parameter types are. -Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:i}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionOutputsNotFoundError"})}};i.AbiFunctionOutputsNotFoundError=AbiFunctionOutputsNotFoundError;let AbiFunctionSignatureNotFoundError=class AbiFunctionSignatureNotFoundError extends d.BaseError{constructor(n,{docsPath:i}){super(`Encoded function signature "${n}" not found on ABI. -Make sure you are using the correct ABI and that the function exists on it. -You can look up the signature here: https://openchain.xyz/signatures?query=${n}.`,{docsPath:i}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionSignatureNotFoundError"})}};i.AbiFunctionSignatureNotFoundError=AbiFunctionSignatureNotFoundError;let AbiItemAmbiguityError=class AbiItemAmbiguityError extends d.BaseError{constructor(n,i){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${n.type}\` in \`${(0,u.formatAbiItem)(n.abiItem)}\`, and`,`\`${i.type}\` in \`${(0,u.formatAbiItem)(i.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:"AbiItemAmbiguityError"})}};i.AbiItemAmbiguityError=AbiItemAmbiguityError;let BytesSizeMismatchError=class BytesSizeMismatchError extends d.BaseError{constructor({expectedSize:n,givenSize:i}){super(`Expected bytes${n}, got bytes${i}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BytesSizeMismatchError"})}};i.BytesSizeMismatchError=BytesSizeMismatchError;let DecodeLogDataMismatch=class DecodeLogDataMismatch extends d.BaseError{constructor({abiItem:n,data:i,params:o,size:l}){super(`Data size of ${l} bytes is too small for non-indexed event parameters.`,{metaMessages:[`Params: (${(0,u.formatAbiParams)(o,{includeName:!0})})`,`Data: ${i} (${l} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=n,this.data=i,this.params=o,this.size=l}};i.DecodeLogDataMismatch=DecodeLogDataMismatch;let DecodeLogTopicsMismatch=class DecodeLogTopicsMismatch extends d.BaseError{constructor({abiItem:n,param:i}){super(`Expected a topic for indexed event parameter${i.name?` "${i.name}"`:""} on event "${(0,u.formatAbiItem)(n,{includeName:!0})}".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=n}};i.DecodeLogTopicsMismatch=DecodeLogTopicsMismatch;let InvalidAbiEncodingTypeError=class InvalidAbiEncodingTypeError extends d.BaseError{constructor(n,{docsPath:i}){super(`Type "${n}" is not a valid encoding type. -Please provide a valid ABI type.`,{docsPath:i}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiEncodingType"})}};i.InvalidAbiEncodingTypeError=InvalidAbiEncodingTypeError;let InvalidAbiDecodingTypeError=class InvalidAbiDecodingTypeError extends d.BaseError{constructor(n,{docsPath:i}){super(`Type "${n}" is not a valid decoding type. -Please provide a valid ABI type.`,{docsPath:i}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiDecodingType"})}};i.InvalidAbiDecodingTypeError=InvalidAbiDecodingTypeError;let InvalidArrayError=class InvalidArrayError extends d.BaseError{constructor(n){super(`Value "${n}" is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidArrayError"})}};i.InvalidArrayError=InvalidArrayError;let InvalidDefinitionTypeError=class InvalidDefinitionTypeError extends d.BaseError{constructor(n){super(`"${n}" is not a valid definition type. -Valid types: "function", "event", "error"`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidDefinitionTypeError"})}};i.InvalidDefinitionTypeError=InvalidDefinitionTypeError;let UnsupportedPackedAbiType=class UnsupportedPackedAbiType extends d.BaseError{constructor(n){super(`Type "${n}" is not supported for packed encoding.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedPackedAbiType"})}};i.UnsupportedPackedAbiType=UnsupportedPackedAbiType},15214:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.AccountNotFoundError=void 0;let u=o(83399);let AccountNotFoundError=class AccountNotFoundError extends u.BaseError{constructor({docsPath:n}={}){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 WalletClient.",{docsPath:n,docsSlug:"account"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AccountNotFoundError"})}};i.AccountNotFoundError=AccountNotFoundError},69028:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.InvalidAddressError=void 0;let u=o(83399);let InvalidAddressError=class InvalidAddressError extends u.BaseError{constructor({address:n}){super(`Address "${n}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAddressError"})}};i.InvalidAddressError=InvalidAddressError},83399:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.BaseError=void 0;let u=o(72664);let BaseError=class BaseError extends Error{constructor(n,i={}){super(),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:"ViemError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:(0,u.getVersion)()});let o=i.cause instanceof BaseError?i.cause.details:i.cause?.message?i.cause.message:i.details,l=i.cause instanceof BaseError&&i.cause.docsPath||i.docsPath;this.message=[n||"An error occurred.","",...i.metaMessages?[...i.metaMessages,""]:[],...l?[`Docs: https://viem.sh${l}.html${i.docsSlug?`#${i.docsSlug}`:""}`]:[],...o?[`Details: ${o}`]:[],`Version: ${this.version}`].join("\n"),i.cause&&(this.cause=i.cause),this.details=o,this.docsPath=l,this.metaMessages=i.metaMessages,this.shortMessage=n}walk(n){return walk(this,n)}};function walk(n,i){return i?.(n)?n:n&&"object"==typeof n&&"cause"in n?walk(n.cause,i):i?null:n}i.BaseError=BaseError},54619:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.BlockNotFoundError=void 0;let u=o(83399);let BlockNotFoundError=class BlockNotFoundError extends u.BaseError{constructor({blockHash:n,blockNumber:i}){let o="Block";n&&(o=`Block at hash "${n}"`),i&&(o=`Block at number "${i}"`),super(`${o} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BlockNotFoundError"})}};i.BlockNotFoundError=BlockNotFoundError},70497:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.OffchainLookupSenderMismatchError=i.OffchainLookupResponseMalformedError=i.OffchainLookupError=void 0;let u=o(95545),l=o(83399),d=o(72664);let OffchainLookupError=class OffchainLookupError extends l.BaseError{constructor({callbackSelector:n,cause:i,data:o,extraData:u,sender:l,urls:x}){super(i.shortMessage||"An error occurred while fetching for an offchain result.",{cause:i,metaMessages:[...i.metaMessages||[],i.metaMessages?.length?"":[],"Offchain Gateway Call:",x&&[" Gateway URL(s):",...x.map(n=>` ${(0,d.getUrl)(n)}`)],` Sender: ${l}`,` Data: ${o}`,` Callback selector: ${n}`,` Extra data: ${u}`].flat()}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupError"})}};i.OffchainLookupError=OffchainLookupError;let OffchainLookupResponseMalformedError=class OffchainLookupResponseMalformedError extends l.BaseError{constructor({result:n,url:i}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${(0,d.getUrl)(i)}`,`Response: ${(0,u.stringify)(n)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupResponseMalformedError"})}};i.OffchainLookupResponseMalformedError=OffchainLookupResponseMalformedError;let OffchainLookupSenderMismatchError=class OffchainLookupSenderMismatchError extends l.BaseError{constructor({sender:n,to:i}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${i}`,`OffchainLookup sender address: ${n}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupSenderMismatchError"})}};i.OffchainLookupSenderMismatchError=OffchainLookupSenderMismatchError},46580:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.InvalidChainIdError=i.ClientChainNotConfiguredError=i.ChainNotFoundError=i.ChainMismatchError=i.ChainDoesNotSupportContract=void 0;let u=o(83399);let ChainDoesNotSupportContract=class ChainDoesNotSupportContract extends u.BaseError{constructor({blockNumber:n,chain:i,contract:o}){super(`Chain "${i.name}" does not support contract "${o.name}".`,{metaMessages:["This could be due to any of the following:",...n&&o.blockCreated&&o.blockCreated>n?[`- The contract "${o.name}" was not deployed until block ${o.blockCreated} (current block ${n}).`]:[`- The chain does not have the contract "${o.name}" configured.`]]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDoesNotSupportContract"})}};i.ChainDoesNotSupportContract=ChainDoesNotSupportContract;let ChainMismatchError=class ChainMismatchError extends u.BaseError{constructor({chain:n,currentChainId:i}){super(`The current chain of the wallet (id: ${i}) does not match the target chain for the transaction (id: ${n.id} – ${n.name}).`,{metaMessages:[`Current Chain ID: ${i}`,`Expected Chain ID: ${n.id} – ${n.name}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainMismatchError"})}};i.ChainMismatchError=ChainMismatchError;let ChainNotFoundError=class ChainNotFoundError extends u.BaseError{constructor(){super("No chain was provided to the request.\nPlease provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotFoundError"})}};i.ChainNotFoundError=ChainNotFoundError;let ClientChainNotConfiguredError=class ClientChainNotConfiguredError extends u.BaseError{constructor(){super("No chain was provided to the Client."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ClientChainNotConfiguredError"})}};i.ClientChainNotConfiguredError=ClientChainNotConfiguredError;let InvalidChainIdError=class InvalidChainIdError extends u.BaseError{constructor({chainId:n}){super(`Chain ID "${n}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidChainIdError"})}};i.InvalidChainIdError=InvalidChainIdError},87453:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.RawContractError=i.ContractFunctionZeroDataError=i.ContractFunctionRevertedError=i.ContractFunctionExecutionError=i.CallExecutionError=void 0;let u=o(65621),l=o(17073),d=o(93140),x=o(15782),I=o(51951),R=o(22837),j=o(18107),W=o(91604),J=o(39991),et=o(83399),ei=o(31681),eo=o(72664);let CallExecutionError=class CallExecutionError extends et.BaseError{constructor(n,{account:i,docsPath:o,chain:l,data:d,gas:x,gasPrice:I,maxFeePerGas:R,maxPriorityFeePerGas:J,nonce:et,to:eo,value:es}){let eu=i?(0,u.parseAccount)(i):void 0,ec=(0,ei.prettyPrint)({from:eu?.address,to:eo,value:void 0!==es&&`${(0,j.formatEther)(es)} ${l?.nativeCurrency?.symbol||"ETH"}`,data:d,gas:x,gasPrice:void 0!==I&&`${(0,W.formatGwei)(I)} gwei`,maxFeePerGas:void 0!==R&&`${(0,W.formatGwei)(R)} gwei`,maxPriorityFeePerGas:void 0!==J&&`${(0,W.formatGwei)(J)} gwei`,nonce:et});super(n.shortMessage,{cause:n,docsPath:o,metaMessages:[...n.metaMessages?[...n.metaMessages," "]:[],"Raw Call Arguments:",ec].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CallExecutionError"}),this.cause=n}};i.CallExecutionError=CallExecutionError;let ContractFunctionExecutionError=class ContractFunctionExecutionError extends et.BaseError{constructor(n,{abi:i,args:o,contractAddress:u,docsPath:l,functionName:d,sender:j}){let W=(0,R.getAbiItem)({abi:i,args:o,name:d}),J=W?(0,I.formatAbiItemWithArgs)({abiItem:W,args:o,includeFunctionName:!1,includeName:!1}):void 0,et=W?(0,x.formatAbiItem)(W,{includeName:!0}):void 0,es=(0,ei.prettyPrint)({address:u&&(0,eo.getContractAddress)(u),function:et,args:J&&"()"!==J&&`${[...Array(d?.length??0).keys()].map(()=>" ").join("")}${J}`,sender:j});super(n.shortMessage||`An unknown error occurred while executing the contract function "${d}".`,{cause:n,docsPath:l,metaMessages:[...n.metaMessages?[...n.metaMessages," "]:[],"Contract Call:",es].filter(Boolean)}),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}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionExecutionError"}),this.abi=i,this.args=o,this.cause=n,this.contractAddress=u,this.functionName=d,this.sender=j}};i.ContractFunctionExecutionError=ContractFunctionExecutionError;let ContractFunctionRevertedError=class ContractFunctionRevertedError extends et.BaseError{constructor({abi:n,data:i,functionName:o,message:u}){let R,j,W,et,ei;if(i&&"0x"!==i)try{ei=(0,d.decodeErrorResult)({abi:n,data:i});let{abiItem:o,errorName:u,args:R}=ei;if("Error"===u)W=R[0];else if("Panic"===u){let[n]=R;W=l.panicReasons[n]}else{let n=o?(0,x.formatAbiItem)(o,{includeName:!0}):void 0,i=o&&R?(0,I.formatAbiItemWithArgs)({abiItem:o,args:R,includeFunctionName:!1,includeName:!1}):void 0;j=[n?`Error: ${n}`:"",i&&"()"!==i?` ${[...Array(u?.length??0).keys()].map(()=>" ").join("")}${i}`:""]}}catch(n){R=n}else u&&(W=u);R instanceof J.AbiErrorSignatureNotFoundError&&(et=R.signature,j=[`Unable to decode signature "${et}" 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=${et}.`]),super(W&&"execution reverted"!==W||et?[`The contract function "${o}" reverted with the following ${et?"signature":"reason"}:`,W||et].join("\n"):`The contract function "${o}" reverted.`,{cause:R,metaMessages:j}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{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=ei,this.reason=W,this.signature=et}};i.ContractFunctionRevertedError=ContractFunctionRevertedError;let ContractFunctionZeroDataError=class ContractFunctionZeroDataError extends et.BaseError{constructor({functionName:n}){super(`The contract function "${n}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${n}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionZeroDataError"})}};i.ContractFunctionZeroDataError=ContractFunctionZeroDataError;let RawContractError=class RawContractError extends et.BaseError{constructor({data:n,message:i}){super(i||""),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RawContractError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=n}};i.RawContractError=RawContractError},18025:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.PositionOutOfBoundsError=i.NegativeOffsetError=void 0;let u=o(83399);let NegativeOffsetError=class NegativeOffsetError extends u.BaseError{constructor({offset:n}){super(`Offset \`${n}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NegativeOffsetError"})}};i.NegativeOffsetError=NegativeOffsetError;let PositionOutOfBoundsError=class PositionOutOfBoundsError extends u.BaseError{constructor({length:n,position:i}){super(`Position \`${i}\` is out of bounds (\`0 < position < ${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PositionOutOfBoundsError"})}};i.PositionOutOfBoundsError=PositionOutOfBoundsError},33339:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.SizeExceedsPaddingSizeError=i.SliceOffsetOutOfBoundsError=void 0;let u=o(83399);let SliceOffsetOutOfBoundsError=class SliceOffsetOutOfBoundsError extends u.BaseError{constructor({offset:n,position:i,size:o}){super(`Slice ${"start"===i?"starting":"ending"} at offset "${n}" is out-of-bounds (size: ${o}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SliceOffsetOutOfBoundsError"})}};i.SliceOffsetOutOfBoundsError=SliceOffsetOutOfBoundsError;let SizeExceedsPaddingSizeError=class SizeExceedsPaddingSizeError extends u.BaseError{constructor({size:n,targetSize:i,type:o}){super(`${o.charAt(0).toUpperCase()}${o.slice(1).toLowerCase()} size (${n}) exceeds padding size (${i}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeExceedsPaddingSizeError"})}};i.SizeExceedsPaddingSizeError=SizeExceedsPaddingSizeError},12274:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.SizeOverflowError=i.OffsetOutOfBoundsError=i.InvalidHexValueError=i.InvalidHexBooleanError=i.InvalidBytesBooleanError=i.IntegerOutOfRangeError=i.DataLengthTooShortError=i.DataLengthTooLongError=void 0;let u=o(83399);let DataLengthTooLongError=class DataLengthTooLongError extends u.BaseError{constructor({consumed:n,length:i}){super(`Consumed bytes (${n}) is shorter than data length (${i-1}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DataLengthTooLongError"})}};i.DataLengthTooLongError=DataLengthTooLongError;let DataLengthTooShortError=class DataLengthTooShortError extends u.BaseError{constructor({length:n,dataLength:i}){super(`Data length (${i-1}) is shorter than consumed bytes length (${n-1}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DataLengthTooShortError"})}};i.DataLengthTooShortError=DataLengthTooShortError;let IntegerOutOfRangeError=class IntegerOutOfRangeError extends u.BaseError{constructor({max:n,min:i,signed:o,size:u,value:l}){super(`Number "${l}" is not in safe ${u?`${8*u}-bit ${o?"signed":"unsigned"} `:""}integer range ${n?`(${i} to ${n})`:`(above ${i})`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntegerOutOfRangeError"})}};i.IntegerOutOfRangeError=IntegerOutOfRangeError;let InvalidBytesBooleanError=class InvalidBytesBooleanError extends u.BaseError{constructor(n){super(`Bytes value "${n}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidBytesBooleanError"})}};i.InvalidBytesBooleanError=InvalidBytesBooleanError;let InvalidHexBooleanError=class InvalidHexBooleanError extends u.BaseError{constructor(n){super(`Hex value "${n}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidHexBooleanError"})}};i.InvalidHexBooleanError=InvalidHexBooleanError;let InvalidHexValueError=class InvalidHexValueError extends u.BaseError{constructor(n){super(`Hex value "${n}" is an odd length (${n.length}). It must be an even length.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidHexValueError"})}};i.InvalidHexValueError=InvalidHexValueError;let OffsetOutOfBoundsError=class OffsetOutOfBoundsError extends u.BaseError{constructor({nextOffset:n,offset:i}){super(`Next offset (${n}) is greater than previous offset + consumed bytes (${i})`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffsetOutOfBoundsError"})}};i.OffsetOutOfBoundsError=OffsetOutOfBoundsError;let SizeOverflowError=class SizeOverflowError extends u.BaseError{constructor({givenSize:n,maxSize:i}){super(`Size cannot exceed ${i} bytes. Given size: ${n} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeOverflowError"})}};i.SizeOverflowError=SizeOverflowError},38283:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.EnsAvatarUnsupportedNamespaceError=i.EnsAvatarUriResolutionError=i.EnsAvatarInvalidNftUriError=i.EnsAvatarInvalidMetadataError=void 0;let u=o(83399);let EnsAvatarInvalidMetadataError=class EnsAvatarInvalidMetadataError extends u.BaseError{constructor({data:n}){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(n)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidMetadataError"})}};i.EnsAvatarInvalidMetadataError=EnsAvatarInvalidMetadataError;let EnsAvatarInvalidNftUriError=class EnsAvatarInvalidNftUriError extends u.BaseError{constructor({reason:n}){super(`ENS NFT avatar URI is invalid. ${n}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidNftUriError"})}};i.EnsAvatarInvalidNftUriError=EnsAvatarInvalidNftUriError;let EnsAvatarUriResolutionError=class EnsAvatarUriResolutionError extends u.BaseError{constructor({uri:n}){super(`Unable to resolve ENS avatar URI "${n}". The URI may be malformed, invalid, or does not respond with a valid image.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUriResolutionError"})}};i.EnsAvatarUriResolutionError=EnsAvatarUriResolutionError;let EnsAvatarUnsupportedNamespaceError=class EnsAvatarUnsupportedNamespaceError extends u.BaseError{constructor({namespace:n}){super(`ENS NFT avatar namespace "${n}" is not supported. Must be "erc721" or "erc1155".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUnsupportedNamespaceError"})}};i.EnsAvatarUnsupportedNamespaceError=EnsAvatarUnsupportedNamespaceError},32221:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.EstimateGasExecutionError=void 0;let u=o(18107),l=o(91604),d=o(83399),x=o(31681);let EstimateGasExecutionError=class EstimateGasExecutionError extends d.BaseError{constructor(n,{account:i,docsPath:o,chain:d,data:I,gas:R,gasPrice:j,maxFeePerGas:W,maxPriorityFeePerGas:J,nonce:et,to:ei,value:eo}){let es=(0,x.prettyPrint)({from:i?.address,to:ei,value:void 0!==eo&&`${(0,u.formatEther)(eo)} ${d?.nativeCurrency?.symbol||"ETH"}`,data:I,gas:R,gasPrice:void 0!==j&&`${(0,l.formatGwei)(j)} gwei`,maxFeePerGas:void 0!==W&&`${(0,l.formatGwei)(W)} gwei`,maxPriorityFeePerGas:void 0!==J&&`${(0,l.formatGwei)(J)} gwei`,nonce:et});super(n.shortMessage,{cause:n,docsPath:o,metaMessages:[...n.metaMessages?[...n.metaMessages," "]:[],"Estimate Gas Arguments:",es].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EstimateGasExecutionError"}),this.cause=n}};i.EstimateGasExecutionError=EstimateGasExecutionError},83151:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.MaxFeePerGasTooLowError=i.Eip1559FeesNotSupportedError=i.BaseFeeScalarError=void 0;let u=o(91604),l=o(83399);let BaseFeeScalarError=class BaseFeeScalarError extends l.BaseError{constructor(){super("`baseFeeMultiplier` must be greater than 1."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseFeeScalarError"})}};i.BaseFeeScalarError=BaseFeeScalarError;let Eip1559FeesNotSupportedError=class Eip1559FeesNotSupportedError extends l.BaseError{constructor(){super("Chain does not support EIP-1559 fees."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Eip1559FeesNotSupportedError"})}};i.Eip1559FeesNotSupportedError=Eip1559FeesNotSupportedError;let MaxFeePerGasTooLowError=class MaxFeePerGasTooLowError extends l.BaseError{constructor({maxPriorityFeePerGas:n}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${(0,u.formatGwei)(n)} gwei).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MaxFeePerGasTooLowError"})}};i.MaxFeePerGasTooLowError=MaxFeePerGasTooLowError},13941:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.FilterTypeNotSupportedError=void 0;let u=o(83399);let FilterTypeNotSupportedError=class FilterTypeNotSupportedError extends u.BaseError{constructor(n){super(`Filter type "${n}" is not supported.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FilterTypeNotSupportedError"})}};i.FilterTypeNotSupportedError=FilterTypeNotSupportedError},95874:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.UnknownNodeError=i.TipAboveFeeCapError=i.TransactionTypeNotSupportedError=i.IntrinsicGasTooLowError=i.IntrinsicGasTooHighError=i.InsufficientFundsError=i.NonceMaxValueError=i.NonceTooLowError=i.NonceTooHighError=i.FeeCapTooLowError=i.FeeCapTooHighError=i.ExecutionRevertedError=void 0;let u=o(91604),l=o(83399);let ExecutionRevertedError=class ExecutionRevertedError extends l.BaseError{constructor({cause:n,message:i}={}){let o=i?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${o?`with reason: ${o}`:"for an unknown reason"}.`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ExecutionRevertedError"})}};Object.defineProperty(ExecutionRevertedError,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(ExecutionRevertedError,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/}),i.ExecutionRevertedError=ExecutionRevertedError;let FeeCapTooHighError=class FeeCapTooHighError extends l.BaseError{constructor({cause:n,maxFeePerGas:i}={}){super(`The fee cap (\`maxFeePerGas\`${i?` = ${(0,u.formatGwei)(i)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooHigh"})}};Object.defineProperty(FeeCapTooHighError,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/}),i.FeeCapTooHighError=FeeCapTooHighError;let FeeCapTooLowError=class FeeCapTooLowError extends l.BaseError{constructor({cause:n,maxFeePerGas:i}={}){super(`The fee cap (\`maxFeePerGas\`${i?` = ${(0,u.formatGwei)(i)}`:""} gwei) cannot be lower than the block base fee.`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooLow"})}};Object.defineProperty(FeeCapTooLowError,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/}),i.FeeCapTooLowError=FeeCapTooLowError;let NonceTooHighError=class NonceTooHighError extends l.BaseError{constructor({cause:n,nonce:i}={}){super(`Nonce provided for the transaction ${i?`(${i}) `:""}is higher than the next one expected.`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooHighError"})}};Object.defineProperty(NonceTooHighError,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/}),i.NonceTooHighError=NonceTooHighError;let NonceTooLowError=class NonceTooLowError extends l.BaseError{constructor({cause:n,nonce:i}={}){super(`Nonce provided for the transaction ${i?`(${i}) `:""}is lower than the current nonce of the account. -Try increasing the nonce or find the latest nonce with \`getTransactionCount\`.`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooLowError"})}};Object.defineProperty(NonceTooLowError,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/}),i.NonceTooLowError=NonceTooLowError;let NonceMaxValueError=class NonceMaxValueError extends l.BaseError{constructor({cause:n,nonce:i}={}){super(`Nonce provided for the transaction ${i?`(${i}) `:""}exceeds the maximum allowed nonce.`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceMaxValueError"})}};Object.defineProperty(NonceMaxValueError,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/}),i.NonceMaxValueError=NonceMaxValueError;let InsufficientFundsError=class InsufficientFundsError extends l.BaseError{constructor({cause:n}={}){super("The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.",{cause:n,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InsufficientFundsError"})}};Object.defineProperty(InsufficientFundsError,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds/}),i.InsufficientFundsError=InsufficientFundsError;let IntrinsicGasTooHighError=class IntrinsicGasTooHighError extends l.BaseError{constructor({cause:n,gas:i}={}){super(`The amount of gas ${i?`(${i}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooHighError"})}};Object.defineProperty(IntrinsicGasTooHighError,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/}),i.IntrinsicGasTooHighError=IntrinsicGasTooHighError;let IntrinsicGasTooLowError=class IntrinsicGasTooLowError extends l.BaseError{constructor({cause:n,gas:i}={}){super(`The amount of gas ${i?`(${i}) `:""}provided for the transaction is too low.`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooLowError"})}};Object.defineProperty(IntrinsicGasTooLowError,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/}),i.IntrinsicGasTooLowError=IntrinsicGasTooLowError;let TransactionTypeNotSupportedError=class TransactionTypeNotSupportedError extends l.BaseError{constructor({cause:n}){super("The transaction type is not supported for this chain.",{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionTypeNotSupportedError"})}};Object.defineProperty(TransactionTypeNotSupportedError,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/}),i.TransactionTypeNotSupportedError=TransactionTypeNotSupportedError;let TipAboveFeeCapError=class TipAboveFeeCapError extends l.BaseError{constructor({cause:n,maxPriorityFeePerGas:i,maxFeePerGas:o}={}){super(`The provided tip (\`maxPriorityFeePerGas\`${i?` = ${(0,u.formatGwei)(i)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${o?` = ${(0,u.formatGwei)(o)} gwei`:""}).`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TipAboveFeeCapError"})}};Object.defineProperty(TipAboveFeeCapError,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/}),i.TipAboveFeeCapError=TipAboveFeeCapError;let UnknownNodeError=class UnknownNodeError extends l.BaseError{constructor({cause:n}){super(`An error occurred while executing: ${n?.shortMessage}`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownNodeError"})}};i.UnknownNodeError=UnknownNodeError},39885:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.TimeoutError=i.RpcRequestError=i.WebSocketRequestError=i.HttpRequestError=void 0;let u=o(95545),l=o(83399),d=o(72664);let HttpRequestError=class HttpRequestError extends l.BaseError{constructor({body:n,details:i,headers:o,status:l,url:x}){super("HTTP request failed.",{details:i,metaMessages:[l&&`Status: ${l}`,`URL: ${(0,d.getUrl)(x)}`,n&&`Request body: ${(0,u.stringify)(n)}`].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"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=n,this.headers=o,this.status=l,this.url=x}};i.HttpRequestError=HttpRequestError;let WebSocketRequestError=class WebSocketRequestError extends l.BaseError{constructor({body:n,details:i,url:o}){super("WebSocket request failed.",{details:i,metaMessages:[`URL: ${(0,d.getUrl)(o)}`,`Request body: ${(0,u.stringify)(n)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WebSocketRequestError"})}};i.WebSocketRequestError=WebSocketRequestError;let RpcRequestError=class RpcRequestError extends l.BaseError{constructor({body:n,error:i,url:o}){super("RPC Request failed.",{cause:i,details:i.message,metaMessages:[`URL: ${(0,d.getUrl)(o)}`,`Request body: ${(0,u.stringify)(n)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=i.code}};i.RpcRequestError=RpcRequestError;let TimeoutError=class TimeoutError extends l.BaseError{constructor({body:n,url:i}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,d.getUrl)(i)}`,`Request body: ${(0,u.stringify)(n)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TimeoutError"})}};i.TimeoutError=TimeoutError},90916:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.UnknownRpcError=i.SwitchChainError=i.ChainDisconnectedError=i.ProviderDisconnectedError=i.UnsupportedProviderMethodError=i.UnauthorizedProviderError=i.UserRejectedRequestError=i.JsonRpcVersionUnsupportedError=i.LimitExceededRpcError=i.MethodNotSupportedRpcError=i.TransactionRejectedRpcError=i.ResourceUnavailableRpcError=i.ResourceNotFoundRpcError=i.InvalidInputRpcError=i.InternalRpcError=i.InvalidParamsRpcError=i.MethodNotFoundRpcError=i.InvalidRequestRpcError=i.ParseRpcError=i.ProviderRpcError=i.RpcError=void 0;let u=o(83399),l=o(39885);let RpcError=class RpcError extends u.BaseError{constructor(n,{code:i,docsPath:o,metaMessages:u,shortMessage:d}){super(d,{cause:n,docsPath:o,metaMessages:u||n?.metaMessages}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=n.name,this.code=n instanceof l.RpcRequestError?n.code:i??-1}};i.RpcError=RpcError;let ProviderRpcError=class ProviderRpcError extends RpcError{constructor(n,i){super(n,i),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderRpcError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=i.data}};i.ProviderRpcError=ProviderRpcError;let ParseRpcError=class ParseRpcError extends RpcError{constructor(n){super(n,{code:ParseRpcError.code,shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ParseRpcError"})}};Object.defineProperty(ParseRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700}),i.ParseRpcError=ParseRpcError;let InvalidRequestRpcError=class InvalidRequestRpcError extends RpcError{constructor(n){super(n,{code:InvalidRequestRpcError.code,shortMessage:"JSON is not a valid request object."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidRequestRpcError"})}};Object.defineProperty(InvalidRequestRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600}),i.InvalidRequestRpcError=InvalidRequestRpcError;let MethodNotFoundRpcError=class MethodNotFoundRpcError extends RpcError{constructor(n){super(n,{code:MethodNotFoundRpcError.code,shortMessage:"The method does not exist / is not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotFoundRpcError"})}};Object.defineProperty(MethodNotFoundRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601}),i.MethodNotFoundRpcError=MethodNotFoundRpcError;let InvalidParamsRpcError=class InvalidParamsRpcError extends RpcError{constructor(n){super(n,{code:InvalidParamsRpcError.code,shortMessage:"Invalid parameters were provided to the RPC method.\nDouble check you have provided the correct parameters."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParamsRpcError"})}};Object.defineProperty(InvalidParamsRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602}),i.InvalidParamsRpcError=InvalidParamsRpcError;let InternalRpcError=class InternalRpcError extends RpcError{constructor(n){super(n,{code:InternalRpcError.code,shortMessage:"An internal error was received."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InternalRpcError"})}};Object.defineProperty(InternalRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603}),i.InternalRpcError=InternalRpcError;let InvalidInputRpcError=class InvalidInputRpcError extends RpcError{constructor(n){super(n,{code:InvalidInputRpcError.code,shortMessage:"Missing or invalid parameters.\nDouble check you have provided the correct parameters."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidInputRpcError"})}};Object.defineProperty(InvalidInputRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3}),i.InvalidInputRpcError=InvalidInputRpcError;let ResourceNotFoundRpcError=class ResourceNotFoundRpcError extends RpcError{constructor(n){super(n,{code:ResourceNotFoundRpcError.code,shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}};Object.defineProperty(ResourceNotFoundRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001}),i.ResourceNotFoundRpcError=ResourceNotFoundRpcError;let ResourceUnavailableRpcError=class ResourceUnavailableRpcError extends RpcError{constructor(n){super(n,{code:ResourceUnavailableRpcError.code,shortMessage:"Requested resource not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceUnavailableRpcError"})}};Object.defineProperty(ResourceUnavailableRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002}),i.ResourceUnavailableRpcError=ResourceUnavailableRpcError;let TransactionRejectedRpcError=class TransactionRejectedRpcError extends RpcError{constructor(n){super(n,{code:TransactionRejectedRpcError.code,shortMessage:"Transaction creation failed."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionRejectedRpcError"})}};Object.defineProperty(TransactionRejectedRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003}),i.TransactionRejectedRpcError=TransactionRejectedRpcError;let MethodNotSupportedRpcError=class MethodNotSupportedRpcError extends RpcError{constructor(n){super(n,{code:MethodNotSupportedRpcError.code,shortMessage:"Method is not implemented."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotSupportedRpcError"})}};Object.defineProperty(MethodNotSupportedRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004}),i.MethodNotSupportedRpcError=MethodNotSupportedRpcError;let LimitExceededRpcError=class LimitExceededRpcError extends RpcError{constructor(n){super(n,{code:LimitExceededRpcError.code,shortMessage:"Request exceeds defined limit."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"LimitExceededRpcError"})}};Object.defineProperty(LimitExceededRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005}),i.LimitExceededRpcError=LimitExceededRpcError;let JsonRpcVersionUnsupportedError=class JsonRpcVersionUnsupportedError extends RpcError{constructor(n){super(n,{code:JsonRpcVersionUnsupportedError.code,shortMessage:"Version of JSON-RPC protocol is not supported."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"JsonRpcVersionUnsupportedError"})}};Object.defineProperty(JsonRpcVersionUnsupportedError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006}),i.JsonRpcVersionUnsupportedError=JsonRpcVersionUnsupportedError;let UserRejectedRequestError=class UserRejectedRequestError extends ProviderRpcError{constructor(n){super(n,{code:UserRejectedRequestError.code,shortMessage:"User rejected the request."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UserRejectedRequestError"})}};Object.defineProperty(UserRejectedRequestError,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001}),i.UserRejectedRequestError=UserRejectedRequestError;let UnauthorizedProviderError=class UnauthorizedProviderError extends ProviderRpcError{constructor(n){super(n,{code:UnauthorizedProviderError.code,shortMessage:"The requested method and/or account has not been authorized by the user."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnauthorizedProviderError"})}};Object.defineProperty(UnauthorizedProviderError,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100}),i.UnauthorizedProviderError=UnauthorizedProviderError;let UnsupportedProviderMethodError=class UnsupportedProviderMethodError extends ProviderRpcError{constructor(n){super(n,{code:UnsupportedProviderMethodError.code,shortMessage:"The Provider does not support the requested method."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedProviderMethodError"})}};Object.defineProperty(UnsupportedProviderMethodError,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200}),i.UnsupportedProviderMethodError=UnsupportedProviderMethodError;let ProviderDisconnectedError=class ProviderDisconnectedError extends ProviderRpcError{constructor(n){super(n,{code:ProviderDisconnectedError.code,shortMessage:"The Provider is disconnected from all chains."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderDisconnectedError"})}};Object.defineProperty(ProviderDisconnectedError,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900}),i.ProviderDisconnectedError=ProviderDisconnectedError;let ChainDisconnectedError=class ChainDisconnectedError extends ProviderRpcError{constructor(n){super(n,{code:ChainDisconnectedError.code,shortMessage:"The Provider is not connected to the requested chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDisconnectedError"})}};Object.defineProperty(ChainDisconnectedError,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901}),i.ChainDisconnectedError=ChainDisconnectedError;let SwitchChainError=class SwitchChainError extends ProviderRpcError{constructor(n){super(n,{code:SwitchChainError.code,shortMessage:"An error occurred when attempting to switch chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainError"})}};Object.defineProperty(SwitchChainError,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902}),i.SwitchChainError=SwitchChainError;let UnknownRpcError=class UnknownRpcError extends RpcError{constructor(n){super(n,{shortMessage:"An unknown RPC error occurred."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownRpcError"})}};i.UnknownRpcError=UnknownRpcError},31681:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.WaitForTransactionReceiptTimeoutError=i.TransactionReceiptNotFoundError=i.TransactionNotFoundError=i.TransactionExecutionError=i.InvalidStorageKeySizeError=i.InvalidSerializedTransactionError=i.InvalidSerializedTransactionTypeError=i.InvalidSerializableTransactionError=i.InvalidLegacyVError=i.FeeConflictError=i.prettyPrint=void 0;let u=o(18107),l=o(91604),d=o(83399);function prettyPrint(n){let i=Object.entries(n).map(([n,i])=>void 0===i||!1===i?null:[n,i]).filter(Boolean),o=i.reduce((n,[i])=>Math.max(n,i.length),0);return i.map(([n,i])=>` ${`${n}:`.padEnd(o+1)} ${i}`).join("\n")}i.prettyPrint=prettyPrint;let FeeConflictError=class FeeConflictError extends d.BaseError{constructor(){super("Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.\nUse `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeConflictError"})}};i.FeeConflictError=FeeConflictError;let InvalidLegacyVError=class InvalidLegacyVError extends d.BaseError{constructor({v:n}){super(`Invalid \`v\` value "${n}". Expected 27 or 28.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidLegacyVError"})}};i.InvalidLegacyVError=InvalidLegacyVError;let InvalidSerializableTransactionError=class InvalidSerializableTransactionError extends d.BaseError{constructor({transaction:n}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",prettyPrint(n),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- a Legacy Transaction with `gasPrice`"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializableTransactionError"})}};i.InvalidSerializableTransactionError=InvalidSerializableTransactionError;let InvalidSerializedTransactionTypeError=class InvalidSerializedTransactionTypeError extends d.BaseError{constructor({serializedType:n}){super(`Serialized transaction type "${n}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializedTransactionType"}),Object.defineProperty(this,"serializedType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedType=n}};i.InvalidSerializedTransactionTypeError=InvalidSerializedTransactionTypeError;let InvalidSerializedTransactionError=class InvalidSerializedTransactionError extends d.BaseError{constructor({attributes:n,serializedTransaction:i,type:o}){let u=Object.entries(n).map(([n,i])=>void 0===i?n:void 0).filter(Boolean);super(`Invalid serialized transaction of type "${o}" was provided.`,{metaMessages:[`Serialized Transaction: "${i}"`,u.length>0?`Missing Attributes: ${u.join(", ")}`:""].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializedTransactionError"}),Object.defineProperty(this,"serializedTransaction",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedTransaction=i,this.type=o}};i.InvalidSerializedTransactionError=InvalidSerializedTransactionError;let InvalidStorageKeySizeError=class InvalidStorageKeySizeError extends d.BaseError{constructor({storageKey:n}){super(`Size for storage key "${n}" is invalid. Expected 32 bytes. Got ${Math.floor((n.length-2)/2)} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStorageKeySizeError"})}};i.InvalidStorageKeySizeError=InvalidStorageKeySizeError;let TransactionExecutionError=class TransactionExecutionError extends d.BaseError{constructor(n,{account:i,docsPath:o,chain:d,data:x,gas:I,gasPrice:R,maxFeePerGas:j,maxPriorityFeePerGas:W,nonce:J,to:et,value:ei}){let eo=prettyPrint({chain:d&&`${d?.name} (id: ${d?.id})`,from:i?.address,to:et,value:void 0!==ei&&`${(0,u.formatEther)(ei)} ${d?.nativeCurrency?.symbol||"ETH"}`,data:x,gas:I,gasPrice:void 0!==R&&`${(0,l.formatGwei)(R)} gwei`,maxFeePerGas:void 0!==j&&`${(0,l.formatGwei)(j)} gwei`,maxPriorityFeePerGas:void 0!==W&&`${(0,l.formatGwei)(W)} gwei`,nonce:J});super(n.shortMessage,{cause:n,docsPath:o,metaMessages:[...n.metaMessages?[...n.metaMessages," "]:[],"Request Arguments:",eo].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionExecutionError"}),this.cause=n}};i.TransactionExecutionError=TransactionExecutionError;let TransactionNotFoundError=class TransactionNotFoundError extends d.BaseError{constructor({blockHash:n,blockNumber:i,blockTag:o,hash:u,index:l}){let d="Transaction";o&&void 0!==l&&(d=`Transaction at block time "${o}" at index "${l}"`),n&&void 0!==l&&(d=`Transaction at block hash "${n}" at index "${l}"`),i&&void 0!==l&&(d=`Transaction at block number "${i}" at index "${l}"`),u&&(d=`Transaction with hash "${u}"`),super(`${d} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionNotFoundError"})}};i.TransactionNotFoundError=TransactionNotFoundError;let TransactionReceiptNotFoundError=class TransactionReceiptNotFoundError extends d.BaseError{constructor({hash:n}){super(`Transaction receipt with hash "${n}" could not be found. The Transaction may not be processed on a block yet.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionReceiptNotFoundError"})}};i.TransactionReceiptNotFoundError=TransactionReceiptNotFoundError;let WaitForTransactionReceiptTimeoutError=class WaitForTransactionReceiptTimeoutError extends d.BaseError{constructor({hash:n}){super(`Timed out while waiting for transaction with hash "${n}" to be confirmed.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WaitForTransactionReceiptTimeoutError"})}};i.WaitForTransactionReceiptTimeoutError=WaitForTransactionReceiptTimeoutError},60630:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.UrlRequiredError=void 0;let u=o(83399);let UrlRequiredError=class UrlRequiredError extends u.BaseError{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro"})}};i.UrlRequiredError=UrlRequiredError},72664:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getVersion=i.getUrl=i.getContractAddress=void 0;let u=o(41128);i.getContractAddress=n=>n,i.getUrl=n=>n,i.getVersion=()=>`viem@${u.version}`},41128:function(n,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.version=void 0,i.version="1.20.0"},35157:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.maxInt112=i.maxInt104=i.maxInt96=i.maxInt88=i.maxInt80=i.maxInt72=i.maxInt64=i.maxInt56=i.maxInt48=i.maxInt40=i.maxInt32=i.maxInt24=i.maxInt16=i.maxInt8=i.weiUnits=i.gweiUnits=i.etherUnits=i.zeroAddress=i.multicall3Abi=i.webSocket=i.createWalletClient=i.createTransport=i.walletActions=i.testActions=i.publicActions=i.createTestClient=i.createPublicClient=i.http=i.fallback=i.custom=i.createClient=i.getContract=i.parseAbiParameters=i.parseAbiParameter=i.parseAbiItem=i.parseAbi=i.UnknownSignatureError=i.UnknownTypeError=i.SolidityProtectedKeywordError=i.InvalidStructSignatureError=i.InvalidSignatureError=i.InvalidParenthesisError=i.InvalidParameterError=i.InvalidModifierError=i.InvalidFunctionModifierError=i.InvalidAbiTypeParameterError=i.InvalidAbiItemError=i.InvalidAbiParametersError=i.InvalidAbiParameterError=i.CircularReferenceError=void 0,i.maxUint256=i.maxUint248=i.maxUint240=i.maxUint232=i.maxUint224=i.maxUint216=i.maxUint208=i.maxUint200=i.maxUint192=i.maxUint184=i.maxUint176=i.maxUint168=i.maxUint160=i.maxUint152=i.maxUint144=i.maxUint136=i.maxUint128=i.maxUint120=i.maxUint112=i.maxUint104=i.maxUint96=i.maxUint88=i.maxUint80=i.maxUint72=i.maxUint64=i.maxUint56=i.maxUint48=i.maxUint40=i.maxUint32=i.maxUint24=i.maxUint16=i.maxUint8=i.maxInt256=i.maxInt248=i.maxInt240=i.maxInt232=i.maxInt224=i.maxInt216=i.maxInt208=i.maxInt200=i.maxInt192=i.maxInt184=i.maxInt176=i.maxInt168=i.maxInt160=i.maxInt152=i.maxInt144=i.maxInt136=i.maxInt128=i.maxInt120=void 0,i.AbiFunctionOutputsNotFoundError=i.AbiFunctionNotFoundError=i.AbiEventSignatureNotFoundError=i.AbiEventSignatureEmptyTopicsError=i.AbiEventNotFoundError=i.AbiErrorSignatureNotFoundError=i.AbiErrorNotFoundError=i.AbiErrorInputsNotFoundError=i.AbiEncodingBytesSizeMismatchError=i.AbiEncodingLengthMismatchError=i.AbiEncodingArrayLengthMismatchError=i.AbiDecodingZeroDataError=i.AbiDecodingDataSizeTooSmallError=i.AbiDecodingDataSizeInvalidError=i.AbiConstructorParamsNotFoundError=i.AbiConstructorNotFoundError=i.presignMessagePrefix=i.zeroHash=i.minInt256=i.minInt248=i.minInt240=i.minInt232=i.minInt224=i.minInt216=i.minInt208=i.minInt200=i.minInt192=i.minInt184=i.minInt176=i.minInt168=i.minInt160=i.minInt152=i.minInt144=i.minInt136=i.minInt128=i.minInt120=i.minInt112=i.minInt104=i.minInt96=i.minInt88=i.minInt80=i.minInt72=i.minInt64=i.minInt56=i.minInt48=i.minInt40=i.minInt32=i.minInt24=i.minInt16=i.minInt8=void 0,i.InvalidHexBooleanError=i.IntegerOutOfRangeError=i.InvalidBytesBooleanError=i.DataLengthTooShortError=i.DataLengthTooLongError=i.InvalidChainIdError=i.ClientChainNotConfiguredError=i.ChainNotFoundError=i.ChainMismatchError=i.ChainDoesNotSupportContract=i.UserRejectedRequestError=i.UnsupportedProviderMethodError=i.UnknownRpcError=i.UnauthorizedProviderError=i.TransactionRejectedRpcError=i.SwitchChainError=i.RpcError=i.ResourceUnavailableRpcError=i.ResourceNotFoundRpcError=i.ProviderRpcError=i.ProviderDisconnectedError=i.ParseRpcError=i.MethodNotSupportedRpcError=i.MethodNotFoundRpcError=i.LimitExceededRpcError=i.JsonRpcVersionUnsupportedError=i.InvalidRequestRpcError=i.InvalidParamsRpcError=i.InvalidInputRpcError=i.InternalRpcError=i.ChainDisconnectedError=i.MaxFeePerGasTooLowError=i.Eip1559FeesNotSupportedError=i.BaseFeeScalarError=i.RawContractError=i.ContractFunctionZeroDataError=i.ContractFunctionRevertedError=i.ContractFunctionExecutionError=i.CallExecutionError=i.BlockNotFoundError=i.BaseError=i.UnsupportedPackedAbiType=i.InvalidDefinitionTypeError=i.InvalidArrayError=i.InvalidAbiEncodingTypeError=i.InvalidAbiDecodingTypeError=i.DecodeLogTopicsMismatch=i.DecodeLogDataMismatch=i.BytesSizeMismatchError=i.AbiFunctionSignatureNotFoundError=void 0,i.encodeAbiParameters=i.decodeFunctionResult=i.decodeFunctionData=i.decodeEventLog=i.decodeErrorResult=i.decodeDeployData=i.decodeAbiParameters=i.formatLog=i.formatBlock=i.defineBlock=i.namehash=i.labelhash=i.UrlRequiredError=i.SliceOffsetOutOfBoundsError=i.SizeExceedsPaddingSizeError=i.WaitForTransactionReceiptTimeoutError=i.TransactionReceiptNotFoundError=i.TransactionNotFoundError=i.TransactionExecutionError=i.InvalidStorageKeySizeError=i.InvalidSerializedTransactionTypeError=i.InvalidSerializedTransactionError=i.InvalidSerializableTransactionError=i.InvalidLegacyVError=i.FeeConflictError=i.InvalidAddressError=i.WebSocketRequestError=i.TimeoutError=i.RpcRequestError=i.HttpRequestError=i.FilterTypeNotSupportedError=i.UnknownNodeError=i.TransactionTypeNotSupportedError=i.TipAboveFeeCapError=i.NonceTooLowError=i.NonceTooHighError=i.NonceMaxValueError=i.IntrinsicGasTooLowError=i.IntrinsicGasTooHighError=i.InsufficientFundsError=i.FeeCapTooLowError=i.FeeCapTooHighError=i.ExecutionRevertedError=i.EstimateGasExecutionError=i.EnsAvatarUnsupportedNamespaceError=i.EnsAvatarInvalidNftUriError=i.EnsAvatarUriResolutionError=i.SizeOverflowError=i.OffsetOutOfBoundsError=i.InvalidHexValueError=void 0,i.toHex=i.stringToHex=i.numberToHex=i.bytesToHex=i.boolToHex=i.toBytes=i.stringToBytes=i.numberToBytes=i.hexToBytes=i.boolToBytes=i.assertTransactionLegacy=i.assertTransactionEIP2930=i.assertTransactionEIP1559=i.assertRequest=i.verifyTypedData=i.verifyMessage=i.toRlp=i.hexToRlp=i.bytesToRlp=i.signatureToHex=i.compactSignatureToHex=i.signatureToCompactSignature=i.recoverTypedDataAddress=i.recoverPublicKey=i.recoverMessageAddress=i.recoverAddress=i.hexToSignature=i.hexToCompactSignature=i.compactSignatureToSignature=i.hashTypedData=i.hashDomain=i.getTransactionType=i.getSerializedTransactionType=i.getCreateAddress=i.getCreate2Address=i.getContractAddress=i.getAbiItem=i.rpcTransactionType=i.formatTransactionRequest=i.defineTransactionRequest=i.formatTransactionReceipt=i.defineTransactionReceipt=i.transactionType=i.formatTransaction=i.defineTransaction=i.encodeFunctionResult=i.encodeFunctionData=i.encodeEventTopics=i.encodeErrorResult=i.encodeDeployData=void 0,i.parseUnits=i.parseTransaction=i.parseGwei=i.parseEther=i.padHex=i.padBytes=i.pad=i.ripemd160=i.sha256=i.keccak256=i.isHex=i.isHash=i.isBytes=i.isAddressEqual=i.isAddress=i.hashMessage=i.getFunctionSignature=i.getFunctionSelector=i.getEventSignature=i.getEventSelector=i.getContractError=i.getAddress=i.checksumAddress=i.fromRlp=i.hexToString=i.hexToNumber=i.hexToBool=i.hexToBigInt=i.fromHex=i.formatUnits=i.formatGwei=i.formatEther=i.encodePacked=i.getChainContractAddress=i.extractChain=i.defineChain=i.assertCurrentChain=i.concatHex=i.concatBytes=i.concat=i.offchainLookupSignature=i.offchainLookupAbiItem=i.offchainLookup=i.ccipFetch=i.fromBytes=i.bytesToString=i.bytesToNumber=i.bytesToBool=i.bytesToBigint=i.bytesToBigInt=void 0,i.getTypesForEIP712Domain=i.domainSeparator=i.validateTypedData=i.trim=i.stringify=i.sliceHex=i.sliceBytes=i.slice=i.size=i.serializeTransaction=i.serializeAccessList=void 0;var u=o(61726);Object.defineProperty(i,"CircularReferenceError",{enumerable:!0,get:function(){return u.CircularReferenceError}}),Object.defineProperty(i,"InvalidAbiParameterError",{enumerable:!0,get:function(){return u.InvalidAbiParameterError}}),Object.defineProperty(i,"InvalidAbiParametersError",{enumerable:!0,get:function(){return u.InvalidAbiParametersError}}),Object.defineProperty(i,"InvalidAbiItemError",{enumerable:!0,get:function(){return u.InvalidAbiItemError}}),Object.defineProperty(i,"InvalidAbiTypeParameterError",{enumerable:!0,get:function(){return u.InvalidAbiTypeParameterError}}),Object.defineProperty(i,"InvalidFunctionModifierError",{enumerable:!0,get:function(){return u.InvalidFunctionModifierError}}),Object.defineProperty(i,"InvalidModifierError",{enumerable:!0,get:function(){return u.InvalidModifierError}}),Object.defineProperty(i,"InvalidParameterError",{enumerable:!0,get:function(){return u.InvalidParameterError}}),Object.defineProperty(i,"InvalidParenthesisError",{enumerable:!0,get:function(){return u.InvalidParenthesisError}}),Object.defineProperty(i,"InvalidSignatureError",{enumerable:!0,get:function(){return u.InvalidSignatureError}}),Object.defineProperty(i,"InvalidStructSignatureError",{enumerable:!0,get:function(){return u.InvalidStructSignatureError}}),Object.defineProperty(i,"SolidityProtectedKeywordError",{enumerable:!0,get:function(){return u.SolidityProtectedKeywordError}}),Object.defineProperty(i,"UnknownTypeError",{enumerable:!0,get:function(){return u.UnknownTypeError}}),Object.defineProperty(i,"UnknownSignatureError",{enumerable:!0,get:function(){return u.UnknownSignatureError}}),Object.defineProperty(i,"parseAbi",{enumerable:!0,get:function(){return u.parseAbi}}),Object.defineProperty(i,"parseAbiItem",{enumerable:!0,get:function(){return u.parseAbiItem}}),Object.defineProperty(i,"parseAbiParameter",{enumerable:!0,get:function(){return u.parseAbiParameter}}),Object.defineProperty(i,"parseAbiParameters",{enumerable:!0,get:function(){return u.parseAbiParameters}});var l=o(28486);Object.defineProperty(i,"getContract",{enumerable:!0,get:function(){return l.getContract}});var d=o(32027);Object.defineProperty(i,"createClient",{enumerable:!0,get:function(){return d.createClient}});var x=o(89089);Object.defineProperty(i,"custom",{enumerable:!0,get:function(){return x.custom}});var I=o(190);Object.defineProperty(i,"fallback",{enumerable:!0,get:function(){return I.fallback}});var R=o(93195);Object.defineProperty(i,"http",{enumerable:!0,get:function(){return R.http}});var j=o(85312);Object.defineProperty(i,"createPublicClient",{enumerable:!0,get:function(){return j.createPublicClient}});var W=o(96054);Object.defineProperty(i,"createTestClient",{enumerable:!0,get:function(){return W.createTestClient}});var J=o(6143);Object.defineProperty(i,"publicActions",{enumerable:!0,get:function(){return J.publicActions}});var et=o(27658);Object.defineProperty(i,"testActions",{enumerable:!0,get:function(){return et.testActions}});var ei=o(15532);Object.defineProperty(i,"walletActions",{enumerable:!0,get:function(){return ei.walletActions}});var eo=o(93480);Object.defineProperty(i,"createTransport",{enumerable:!0,get:function(){return eo.createTransport}});var es=o(7727);Object.defineProperty(i,"createWalletClient",{enumerable:!0,get:function(){return es.createWalletClient}});var eu=o(54478);Object.defineProperty(i,"webSocket",{enumerable:!0,get:function(){return eu.webSocket}});var ec=o(10491);Object.defineProperty(i,"multicall3Abi",{enumerable:!0,get:function(){return ec.multicall3Abi}});var el=o(17288);Object.defineProperty(i,"zeroAddress",{enumerable:!0,get:function(){return el.zeroAddress}});var ed=o(8768);Object.defineProperty(i,"etherUnits",{enumerable:!0,get:function(){return ed.etherUnits}}),Object.defineProperty(i,"gweiUnits",{enumerable:!0,get:function(){return ed.gweiUnits}}),Object.defineProperty(i,"weiUnits",{enumerable:!0,get:function(){return ed.weiUnits}});var ef=o(46918);Object.defineProperty(i,"maxInt8",{enumerable:!0,get:function(){return ef.maxInt8}}),Object.defineProperty(i,"maxInt16",{enumerable:!0,get:function(){return ef.maxInt16}}),Object.defineProperty(i,"maxInt24",{enumerable:!0,get:function(){return ef.maxInt24}}),Object.defineProperty(i,"maxInt32",{enumerable:!0,get:function(){return ef.maxInt32}}),Object.defineProperty(i,"maxInt40",{enumerable:!0,get:function(){return ef.maxInt40}}),Object.defineProperty(i,"maxInt48",{enumerable:!0,get:function(){return ef.maxInt48}}),Object.defineProperty(i,"maxInt56",{enumerable:!0,get:function(){return ef.maxInt56}}),Object.defineProperty(i,"maxInt64",{enumerable:!0,get:function(){return ef.maxInt64}}),Object.defineProperty(i,"maxInt72",{enumerable:!0,get:function(){return ef.maxInt72}}),Object.defineProperty(i,"maxInt80",{enumerable:!0,get:function(){return ef.maxInt80}}),Object.defineProperty(i,"maxInt88",{enumerable:!0,get:function(){return ef.maxInt88}}),Object.defineProperty(i,"maxInt96",{enumerable:!0,get:function(){return ef.maxInt96}}),Object.defineProperty(i,"maxInt104",{enumerable:!0,get:function(){return ef.maxInt104}}),Object.defineProperty(i,"maxInt112",{enumerable:!0,get:function(){return ef.maxInt112}}),Object.defineProperty(i,"maxInt120",{enumerable:!0,get:function(){return ef.maxInt120}}),Object.defineProperty(i,"maxInt128",{enumerable:!0,get:function(){return ef.maxInt128}}),Object.defineProperty(i,"maxInt136",{enumerable:!0,get:function(){return ef.maxInt136}}),Object.defineProperty(i,"maxInt144",{enumerable:!0,get:function(){return ef.maxInt144}}),Object.defineProperty(i,"maxInt152",{enumerable:!0,get:function(){return ef.maxInt152}}),Object.defineProperty(i,"maxInt160",{enumerable:!0,get:function(){return ef.maxInt160}}),Object.defineProperty(i,"maxInt168",{enumerable:!0,get:function(){return ef.maxInt168}}),Object.defineProperty(i,"maxInt176",{enumerable:!0,get:function(){return ef.maxInt176}}),Object.defineProperty(i,"maxInt184",{enumerable:!0,get:function(){return ef.maxInt184}}),Object.defineProperty(i,"maxInt192",{enumerable:!0,get:function(){return ef.maxInt192}}),Object.defineProperty(i,"maxInt200",{enumerable:!0,get:function(){return ef.maxInt200}}),Object.defineProperty(i,"maxInt208",{enumerable:!0,get:function(){return ef.maxInt208}}),Object.defineProperty(i,"maxInt216",{enumerable:!0,get:function(){return ef.maxInt216}}),Object.defineProperty(i,"maxInt224",{enumerable:!0,get:function(){return ef.maxInt224}}),Object.defineProperty(i,"maxInt232",{enumerable:!0,get:function(){return ef.maxInt232}}),Object.defineProperty(i,"maxInt240",{enumerable:!0,get:function(){return ef.maxInt240}}),Object.defineProperty(i,"maxInt248",{enumerable:!0,get:function(){return ef.maxInt248}}),Object.defineProperty(i,"maxInt256",{enumerable:!0,get:function(){return ef.maxInt256}}),Object.defineProperty(i,"maxUint8",{enumerable:!0,get:function(){return ef.maxUint8}}),Object.defineProperty(i,"maxUint16",{enumerable:!0,get:function(){return ef.maxUint16}}),Object.defineProperty(i,"maxUint24",{enumerable:!0,get:function(){return ef.maxUint24}}),Object.defineProperty(i,"maxUint32",{enumerable:!0,get:function(){return ef.maxUint32}}),Object.defineProperty(i,"maxUint40",{enumerable:!0,get:function(){return ef.maxUint40}}),Object.defineProperty(i,"maxUint48",{enumerable:!0,get:function(){return ef.maxUint48}}),Object.defineProperty(i,"maxUint56",{enumerable:!0,get:function(){return ef.maxUint56}}),Object.defineProperty(i,"maxUint64",{enumerable:!0,get:function(){return ef.maxUint64}}),Object.defineProperty(i,"maxUint72",{enumerable:!0,get:function(){return ef.maxUint72}}),Object.defineProperty(i,"maxUint80",{enumerable:!0,get:function(){return ef.maxUint80}}),Object.defineProperty(i,"maxUint88",{enumerable:!0,get:function(){return ef.maxUint88}}),Object.defineProperty(i,"maxUint96",{enumerable:!0,get:function(){return ef.maxUint96}}),Object.defineProperty(i,"maxUint104",{enumerable:!0,get:function(){return ef.maxUint104}}),Object.defineProperty(i,"maxUint112",{enumerable:!0,get:function(){return ef.maxUint112}}),Object.defineProperty(i,"maxUint120",{enumerable:!0,get:function(){return ef.maxUint120}}),Object.defineProperty(i,"maxUint128",{enumerable:!0,get:function(){return ef.maxUint128}}),Object.defineProperty(i,"maxUint136",{enumerable:!0,get:function(){return ef.maxUint136}}),Object.defineProperty(i,"maxUint144",{enumerable:!0,get:function(){return ef.maxUint144}}),Object.defineProperty(i,"maxUint152",{enumerable:!0,get:function(){return ef.maxUint152}}),Object.defineProperty(i,"maxUint160",{enumerable:!0,get:function(){return ef.maxUint160}}),Object.defineProperty(i,"maxUint168",{enumerable:!0,get:function(){return ef.maxUint168}}),Object.defineProperty(i,"maxUint176",{enumerable:!0,get:function(){return ef.maxUint176}}),Object.defineProperty(i,"maxUint184",{enumerable:!0,get:function(){return ef.maxUint184}}),Object.defineProperty(i,"maxUint192",{enumerable:!0,get:function(){return ef.maxUint192}}),Object.defineProperty(i,"maxUint200",{enumerable:!0,get:function(){return ef.maxUint200}}),Object.defineProperty(i,"maxUint208",{enumerable:!0,get:function(){return ef.maxUint208}}),Object.defineProperty(i,"maxUint216",{enumerable:!0,get:function(){return ef.maxUint216}}),Object.defineProperty(i,"maxUint224",{enumerable:!0,get:function(){return ef.maxUint224}}),Object.defineProperty(i,"maxUint232",{enumerable:!0,get:function(){return ef.maxUint232}}),Object.defineProperty(i,"maxUint240",{enumerable:!0,get:function(){return ef.maxUint240}}),Object.defineProperty(i,"maxUint248",{enumerable:!0,get:function(){return ef.maxUint248}}),Object.defineProperty(i,"maxUint256",{enumerable:!0,get:function(){return ef.maxUint256}}),Object.defineProperty(i,"minInt8",{enumerable:!0,get:function(){return ef.minInt8}}),Object.defineProperty(i,"minInt16",{enumerable:!0,get:function(){return ef.minInt16}}),Object.defineProperty(i,"minInt24",{enumerable:!0,get:function(){return ef.minInt24}}),Object.defineProperty(i,"minInt32",{enumerable:!0,get:function(){return ef.minInt32}}),Object.defineProperty(i,"minInt40",{enumerable:!0,get:function(){return ef.minInt40}}),Object.defineProperty(i,"minInt48",{enumerable:!0,get:function(){return ef.minInt48}}),Object.defineProperty(i,"minInt56",{enumerable:!0,get:function(){return ef.minInt56}}),Object.defineProperty(i,"minInt64",{enumerable:!0,get:function(){return ef.minInt64}}),Object.defineProperty(i,"minInt72",{enumerable:!0,get:function(){return ef.minInt72}}),Object.defineProperty(i,"minInt80",{enumerable:!0,get:function(){return ef.minInt80}}),Object.defineProperty(i,"minInt88",{enumerable:!0,get:function(){return ef.minInt88}}),Object.defineProperty(i,"minInt96",{enumerable:!0,get:function(){return ef.minInt96}}),Object.defineProperty(i,"minInt104",{enumerable:!0,get:function(){return ef.minInt104}}),Object.defineProperty(i,"minInt112",{enumerable:!0,get:function(){return ef.minInt112}}),Object.defineProperty(i,"minInt120",{enumerable:!0,get:function(){return ef.minInt120}}),Object.defineProperty(i,"minInt128",{enumerable:!0,get:function(){return ef.minInt128}}),Object.defineProperty(i,"minInt136",{enumerable:!0,get:function(){return ef.minInt136}}),Object.defineProperty(i,"minInt144",{enumerable:!0,get:function(){return ef.minInt144}}),Object.defineProperty(i,"minInt152",{enumerable:!0,get:function(){return ef.minInt152}}),Object.defineProperty(i,"minInt160",{enumerable:!0,get:function(){return ef.minInt160}}),Object.defineProperty(i,"minInt168",{enumerable:!0,get:function(){return ef.minInt168}}),Object.defineProperty(i,"minInt176",{enumerable:!0,get:function(){return ef.minInt176}}),Object.defineProperty(i,"minInt184",{enumerable:!0,get:function(){return ef.minInt184}}),Object.defineProperty(i,"minInt192",{enumerable:!0,get:function(){return ef.minInt192}}),Object.defineProperty(i,"minInt200",{enumerable:!0,get:function(){return ef.minInt200}}),Object.defineProperty(i,"minInt208",{enumerable:!0,get:function(){return ef.minInt208}}),Object.defineProperty(i,"minInt216",{enumerable:!0,get:function(){return ef.minInt216}}),Object.defineProperty(i,"minInt224",{enumerable:!0,get:function(){return ef.minInt224}}),Object.defineProperty(i,"minInt232",{enumerable:!0,get:function(){return ef.minInt232}}),Object.defineProperty(i,"minInt240",{enumerable:!0,get:function(){return ef.minInt240}}),Object.defineProperty(i,"minInt248",{enumerable:!0,get:function(){return ef.minInt248}}),Object.defineProperty(i,"minInt256",{enumerable:!0,get:function(){return ef.minInt256}});var eh=o(34559);Object.defineProperty(i,"zeroHash",{enumerable:!0,get:function(){return eh.zeroHash}});var ep=o(47563);Object.defineProperty(i,"presignMessagePrefix",{enumerable:!0,get:function(){return ep.presignMessagePrefix}});var em=o(39991);Object.defineProperty(i,"AbiConstructorNotFoundError",{enumerable:!0,get:function(){return em.AbiConstructorNotFoundError}}),Object.defineProperty(i,"AbiConstructorParamsNotFoundError",{enumerable:!0,get:function(){return em.AbiConstructorParamsNotFoundError}}),Object.defineProperty(i,"AbiDecodingDataSizeInvalidError",{enumerable:!0,get:function(){return em.AbiDecodingDataSizeInvalidError}}),Object.defineProperty(i,"AbiDecodingDataSizeTooSmallError",{enumerable:!0,get:function(){return em.AbiDecodingDataSizeTooSmallError}}),Object.defineProperty(i,"AbiDecodingZeroDataError",{enumerable:!0,get:function(){return em.AbiDecodingZeroDataError}}),Object.defineProperty(i,"AbiEncodingArrayLengthMismatchError",{enumerable:!0,get:function(){return em.AbiEncodingArrayLengthMismatchError}}),Object.defineProperty(i,"AbiEncodingLengthMismatchError",{enumerable:!0,get:function(){return em.AbiEncodingLengthMismatchError}}),Object.defineProperty(i,"AbiEncodingBytesSizeMismatchError",{enumerable:!0,get:function(){return em.AbiEncodingBytesSizeMismatchError}}),Object.defineProperty(i,"AbiErrorInputsNotFoundError",{enumerable:!0,get:function(){return em.AbiErrorInputsNotFoundError}}),Object.defineProperty(i,"AbiErrorNotFoundError",{enumerable:!0,get:function(){return em.AbiErrorNotFoundError}}),Object.defineProperty(i,"AbiErrorSignatureNotFoundError",{enumerable:!0,get:function(){return em.AbiErrorSignatureNotFoundError}}),Object.defineProperty(i,"AbiEventNotFoundError",{enumerable:!0,get:function(){return em.AbiEventNotFoundError}}),Object.defineProperty(i,"AbiEventSignatureEmptyTopicsError",{enumerable:!0,get:function(){return em.AbiEventSignatureEmptyTopicsError}}),Object.defineProperty(i,"AbiEventSignatureNotFoundError",{enumerable:!0,get:function(){return em.AbiEventSignatureNotFoundError}}),Object.defineProperty(i,"AbiFunctionNotFoundError",{enumerable:!0,get:function(){return em.AbiFunctionNotFoundError}}),Object.defineProperty(i,"AbiFunctionOutputsNotFoundError",{enumerable:!0,get:function(){return em.AbiFunctionOutputsNotFoundError}}),Object.defineProperty(i,"AbiFunctionSignatureNotFoundError",{enumerable:!0,get:function(){return em.AbiFunctionSignatureNotFoundError}}),Object.defineProperty(i,"BytesSizeMismatchError",{enumerable:!0,get:function(){return em.BytesSizeMismatchError}}),Object.defineProperty(i,"DecodeLogDataMismatch",{enumerable:!0,get:function(){return em.DecodeLogDataMismatch}}),Object.defineProperty(i,"DecodeLogTopicsMismatch",{enumerable:!0,get:function(){return em.DecodeLogTopicsMismatch}}),Object.defineProperty(i,"InvalidAbiDecodingTypeError",{enumerable:!0,get:function(){return em.InvalidAbiDecodingTypeError}}),Object.defineProperty(i,"InvalidAbiEncodingTypeError",{enumerable:!0,get:function(){return em.InvalidAbiEncodingTypeError}}),Object.defineProperty(i,"InvalidArrayError",{enumerable:!0,get:function(){return em.InvalidArrayError}}),Object.defineProperty(i,"InvalidDefinitionTypeError",{enumerable:!0,get:function(){return em.InvalidDefinitionTypeError}}),Object.defineProperty(i,"UnsupportedPackedAbiType",{enumerable:!0,get:function(){return em.UnsupportedPackedAbiType}});var eg=o(83399);Object.defineProperty(i,"BaseError",{enumerable:!0,get:function(){return eg.BaseError}});var ey=o(54619);Object.defineProperty(i,"BlockNotFoundError",{enumerable:!0,get:function(){return ey.BlockNotFoundError}});var eb=o(87453);Object.defineProperty(i,"CallExecutionError",{enumerable:!0,get:function(){return eb.CallExecutionError}}),Object.defineProperty(i,"ContractFunctionExecutionError",{enumerable:!0,get:function(){return eb.ContractFunctionExecutionError}}),Object.defineProperty(i,"ContractFunctionRevertedError",{enumerable:!0,get:function(){return eb.ContractFunctionRevertedError}}),Object.defineProperty(i,"ContractFunctionZeroDataError",{enumerable:!0,get:function(){return eb.ContractFunctionZeroDataError}}),Object.defineProperty(i,"RawContractError",{enumerable:!0,get:function(){return eb.RawContractError}});var ev=o(83151);Object.defineProperty(i,"BaseFeeScalarError",{enumerable:!0,get:function(){return ev.BaseFeeScalarError}}),Object.defineProperty(i,"Eip1559FeesNotSupportedError",{enumerable:!0,get:function(){return ev.Eip1559FeesNotSupportedError}}),Object.defineProperty(i,"MaxFeePerGasTooLowError",{enumerable:!0,get:function(){return ev.MaxFeePerGasTooLowError}});var eE=o(90916);Object.defineProperty(i,"ChainDisconnectedError",{enumerable:!0,get:function(){return eE.ChainDisconnectedError}}),Object.defineProperty(i,"InternalRpcError",{enumerable:!0,get:function(){return eE.InternalRpcError}}),Object.defineProperty(i,"InvalidInputRpcError",{enumerable:!0,get:function(){return eE.InvalidInputRpcError}}),Object.defineProperty(i,"InvalidParamsRpcError",{enumerable:!0,get:function(){return eE.InvalidParamsRpcError}}),Object.defineProperty(i,"InvalidRequestRpcError",{enumerable:!0,get:function(){return eE.InvalidRequestRpcError}}),Object.defineProperty(i,"JsonRpcVersionUnsupportedError",{enumerable:!0,get:function(){return eE.JsonRpcVersionUnsupportedError}}),Object.defineProperty(i,"LimitExceededRpcError",{enumerable:!0,get:function(){return eE.LimitExceededRpcError}}),Object.defineProperty(i,"MethodNotFoundRpcError",{enumerable:!0,get:function(){return eE.MethodNotFoundRpcError}}),Object.defineProperty(i,"MethodNotSupportedRpcError",{enumerable:!0,get:function(){return eE.MethodNotSupportedRpcError}}),Object.defineProperty(i,"ParseRpcError",{enumerable:!0,get:function(){return eE.ParseRpcError}}),Object.defineProperty(i,"ProviderDisconnectedError",{enumerable:!0,get:function(){return eE.ProviderDisconnectedError}}),Object.defineProperty(i,"ProviderRpcError",{enumerable:!0,get:function(){return eE.ProviderRpcError}}),Object.defineProperty(i,"ResourceNotFoundRpcError",{enumerable:!0,get:function(){return eE.ResourceNotFoundRpcError}}),Object.defineProperty(i,"ResourceUnavailableRpcError",{enumerable:!0,get:function(){return eE.ResourceUnavailableRpcError}}),Object.defineProperty(i,"RpcError",{enumerable:!0,get:function(){return eE.RpcError}}),Object.defineProperty(i,"SwitchChainError",{enumerable:!0,get:function(){return eE.SwitchChainError}}),Object.defineProperty(i,"TransactionRejectedRpcError",{enumerable:!0,get:function(){return eE.TransactionRejectedRpcError}}),Object.defineProperty(i,"UnauthorizedProviderError",{enumerable:!0,get:function(){return eE.UnauthorizedProviderError}}),Object.defineProperty(i,"UnknownRpcError",{enumerable:!0,get:function(){return eE.UnknownRpcError}}),Object.defineProperty(i,"UnsupportedProviderMethodError",{enumerable:!0,get:function(){return eE.UnsupportedProviderMethodError}}),Object.defineProperty(i,"UserRejectedRequestError",{enumerable:!0,get:function(){return eE.UserRejectedRequestError}});var ew=o(46580);Object.defineProperty(i,"ChainDoesNotSupportContract",{enumerable:!0,get:function(){return ew.ChainDoesNotSupportContract}}),Object.defineProperty(i,"ChainMismatchError",{enumerable:!0,get:function(){return ew.ChainMismatchError}}),Object.defineProperty(i,"ChainNotFoundError",{enumerable:!0,get:function(){return ew.ChainNotFoundError}}),Object.defineProperty(i,"ClientChainNotConfiguredError",{enumerable:!0,get:function(){return ew.ClientChainNotConfiguredError}}),Object.defineProperty(i,"InvalidChainIdError",{enumerable:!0,get:function(){return ew.InvalidChainIdError}});var eP=o(12274);Object.defineProperty(i,"DataLengthTooLongError",{enumerable:!0,get:function(){return eP.DataLengthTooLongError}}),Object.defineProperty(i,"DataLengthTooShortError",{enumerable:!0,get:function(){return eP.DataLengthTooShortError}}),Object.defineProperty(i,"InvalidBytesBooleanError",{enumerable:!0,get:function(){return eP.InvalidBytesBooleanError}}),Object.defineProperty(i,"IntegerOutOfRangeError",{enumerable:!0,get:function(){return eP.IntegerOutOfRangeError}}),Object.defineProperty(i,"InvalidHexBooleanError",{enumerable:!0,get:function(){return eP.InvalidHexBooleanError}}),Object.defineProperty(i,"InvalidHexValueError",{enumerable:!0,get:function(){return eP.InvalidHexValueError}}),Object.defineProperty(i,"OffsetOutOfBoundsError",{enumerable:!0,get:function(){return eP.OffsetOutOfBoundsError}}),Object.defineProperty(i,"SizeOverflowError",{enumerable:!0,get:function(){return eP.SizeOverflowError}});var ex=o(38283);Object.defineProperty(i,"EnsAvatarUriResolutionError",{enumerable:!0,get:function(){return ex.EnsAvatarUriResolutionError}}),Object.defineProperty(i,"EnsAvatarInvalidNftUriError",{enumerable:!0,get:function(){return ex.EnsAvatarInvalidNftUriError}}),Object.defineProperty(i,"EnsAvatarUnsupportedNamespaceError",{enumerable:!0,get:function(){return ex.EnsAvatarUnsupportedNamespaceError}});var eT=o(32221);Object.defineProperty(i,"EstimateGasExecutionError",{enumerable:!0,get:function(){return eT.EstimateGasExecutionError}});var eA=o(95874);Object.defineProperty(i,"ExecutionRevertedError",{enumerable:!0,get:function(){return eA.ExecutionRevertedError}}),Object.defineProperty(i,"FeeCapTooHighError",{enumerable:!0,get:function(){return eA.FeeCapTooHighError}}),Object.defineProperty(i,"FeeCapTooLowError",{enumerable:!0,get:function(){return eA.FeeCapTooLowError}}),Object.defineProperty(i,"InsufficientFundsError",{enumerable:!0,get:function(){return eA.InsufficientFundsError}}),Object.defineProperty(i,"IntrinsicGasTooHighError",{enumerable:!0,get:function(){return eA.IntrinsicGasTooHighError}}),Object.defineProperty(i,"IntrinsicGasTooLowError",{enumerable:!0,get:function(){return eA.IntrinsicGasTooLowError}}),Object.defineProperty(i,"NonceMaxValueError",{enumerable:!0,get:function(){return eA.NonceMaxValueError}}),Object.defineProperty(i,"NonceTooHighError",{enumerable:!0,get:function(){return eA.NonceTooHighError}}),Object.defineProperty(i,"NonceTooLowError",{enumerable:!0,get:function(){return eA.NonceTooLowError}}),Object.defineProperty(i,"TipAboveFeeCapError",{enumerable:!0,get:function(){return eA.TipAboveFeeCapError}}),Object.defineProperty(i,"TransactionTypeNotSupportedError",{enumerable:!0,get:function(){return eA.TransactionTypeNotSupportedError}}),Object.defineProperty(i,"UnknownNodeError",{enumerable:!0,get:function(){return eA.UnknownNodeError}});var eS=o(13941);Object.defineProperty(i,"FilterTypeNotSupportedError",{enumerable:!0,get:function(){return eS.FilterTypeNotSupportedError}});var eC=o(39885);Object.defineProperty(i,"HttpRequestError",{enumerable:!0,get:function(){return eC.HttpRequestError}}),Object.defineProperty(i,"RpcRequestError",{enumerable:!0,get:function(){return eC.RpcRequestError}}),Object.defineProperty(i,"TimeoutError",{enumerable:!0,get:function(){return eC.TimeoutError}}),Object.defineProperty(i,"WebSocketRequestError",{enumerable:!0,get:function(){return eC.WebSocketRequestError}});var e_=o(69028);Object.defineProperty(i,"InvalidAddressError",{enumerable:!0,get:function(){return e_.InvalidAddressError}});var eO=o(31681);Object.defineProperty(i,"FeeConflictError",{enumerable:!0,get:function(){return eO.FeeConflictError}}),Object.defineProperty(i,"InvalidLegacyVError",{enumerable:!0,get:function(){return eO.InvalidLegacyVError}}),Object.defineProperty(i,"InvalidSerializableTransactionError",{enumerable:!0,get:function(){return eO.InvalidSerializableTransactionError}}),Object.defineProperty(i,"InvalidSerializedTransactionError",{enumerable:!0,get:function(){return eO.InvalidSerializedTransactionError}}),Object.defineProperty(i,"InvalidSerializedTransactionTypeError",{enumerable:!0,get:function(){return eO.InvalidSerializedTransactionTypeError}}),Object.defineProperty(i,"InvalidStorageKeySizeError",{enumerable:!0,get:function(){return eO.InvalidStorageKeySizeError}}),Object.defineProperty(i,"TransactionExecutionError",{enumerable:!0,get:function(){return eO.TransactionExecutionError}}),Object.defineProperty(i,"TransactionNotFoundError",{enumerable:!0,get:function(){return eO.TransactionNotFoundError}}),Object.defineProperty(i,"TransactionReceiptNotFoundError",{enumerable:!0,get:function(){return eO.TransactionReceiptNotFoundError}}),Object.defineProperty(i,"WaitForTransactionReceiptTimeoutError",{enumerable:!0,get:function(){return eO.WaitForTransactionReceiptTimeoutError}});var eI=o(33339);Object.defineProperty(i,"SizeExceedsPaddingSizeError",{enumerable:!0,get:function(){return eI.SizeExceedsPaddingSizeError}}),Object.defineProperty(i,"SliceOffsetOutOfBoundsError",{enumerable:!0,get:function(){return eI.SliceOffsetOutOfBoundsError}});var eB=o(60630);Object.defineProperty(i,"UrlRequiredError",{enumerable:!0,get:function(){return eB.UrlRequiredError}});var eD=o(15931);Object.defineProperty(i,"labelhash",{enumerable:!0,get:function(){return eD.labelhash}});var eR=o(48998);Object.defineProperty(i,"namehash",{enumerable:!0,get:function(){return eR.namehash}});var ej=o(22044);Object.defineProperty(i,"defineBlock",{enumerable:!0,get:function(){return ej.defineBlock}}),Object.defineProperty(i,"formatBlock",{enumerable:!0,get:function(){return ej.formatBlock}});var eM=o(15227);Object.defineProperty(i,"formatLog",{enumerable:!0,get:function(){return eM.formatLog}});var ek=o(44925);Object.defineProperty(i,"decodeAbiParameters",{enumerable:!0,get:function(){return ek.decodeAbiParameters}});var eF=o(43606);Object.defineProperty(i,"decodeDeployData",{enumerable:!0,get:function(){return eF.decodeDeployData}});var eN=o(93140);Object.defineProperty(i,"decodeErrorResult",{enumerable:!0,get:function(){return eN.decodeErrorResult}});var eU=o(7995);Object.defineProperty(i,"decodeEventLog",{enumerable:!0,get:function(){return eU.decodeEventLog}});var eL=o(11318);Object.defineProperty(i,"decodeFunctionData",{enumerable:!0,get:function(){return eL.decodeFunctionData}});var eH=o(9864);Object.defineProperty(i,"decodeFunctionResult",{enumerable:!0,get:function(){return eH.decodeFunctionResult}});var e$=o(17304);Object.defineProperty(i,"encodeAbiParameters",{enumerable:!0,get:function(){return e$.encodeAbiParameters}});var eq=o(61737);Object.defineProperty(i,"encodeDeployData",{enumerable:!0,get:function(){return eq.encodeDeployData}});var ez=o(16372);Object.defineProperty(i,"encodeErrorResult",{enumerable:!0,get:function(){return ez.encodeErrorResult}});var eV=o(26291);Object.defineProperty(i,"encodeEventTopics",{enumerable:!0,get:function(){return eV.encodeEventTopics}});var eG=o(45107);Object.defineProperty(i,"encodeFunctionData",{enumerable:!0,get:function(){return eG.encodeFunctionData}});var eW=o(84922);Object.defineProperty(i,"encodeFunctionResult",{enumerable:!0,get:function(){return eW.encodeFunctionResult}});var eK=o(68068);Object.defineProperty(i,"defineTransaction",{enumerable:!0,get:function(){return eK.defineTransaction}}),Object.defineProperty(i,"formatTransaction",{enumerable:!0,get:function(){return eK.formatTransaction}}),Object.defineProperty(i,"transactionType",{enumerable:!0,get:function(){return eK.transactionType}});var eQ=o(82373);Object.defineProperty(i,"defineTransactionReceipt",{enumerable:!0,get:function(){return eQ.defineTransactionReceipt}}),Object.defineProperty(i,"formatTransactionReceipt",{enumerable:!0,get:function(){return eQ.formatTransactionReceipt}});var eZ=o(41074);Object.defineProperty(i,"defineTransactionRequest",{enumerable:!0,get:function(){return eZ.defineTransactionRequest}}),Object.defineProperty(i,"formatTransactionRequest",{enumerable:!0,get:function(){return eZ.formatTransactionRequest}}),Object.defineProperty(i,"rpcTransactionType",{enumerable:!0,get:function(){return eZ.rpcTransactionType}});var eY=o(22837);Object.defineProperty(i,"getAbiItem",{enumerable:!0,get:function(){return eY.getAbiItem}});var eX=o(74381);Object.defineProperty(i,"getContractAddress",{enumerable:!0,get:function(){return eX.getContractAddress}}),Object.defineProperty(i,"getCreate2Address",{enumerable:!0,get:function(){return eX.getCreate2Address}}),Object.defineProperty(i,"getCreateAddress",{enumerable:!0,get:function(){return eX.getCreateAddress}});var eJ=o(88918);Object.defineProperty(i,"getSerializedTransactionType",{enumerable:!0,get:function(){return eJ.getSerializedTransactionType}});var e0=o(77914);Object.defineProperty(i,"getTransactionType",{enumerable:!0,get:function(){return e0.getTransactionType}});var e1=o(13596);Object.defineProperty(i,"hashDomain",{enumerable:!0,get:function(){return e1.hashDomain}}),Object.defineProperty(i,"hashTypedData",{enumerable:!0,get:function(){return e1.hashTypedData}});var e2=o(67389);Object.defineProperty(i,"compactSignatureToSignature",{enumerable:!0,get:function(){return e2.compactSignatureToSignature}});var e6=o(3069);Object.defineProperty(i,"hexToCompactSignature",{enumerable:!0,get:function(){return e6.hexToCompactSignature}});var e5=o(94482);Object.defineProperty(i,"hexToSignature",{enumerable:!0,get:function(){return e5.hexToSignature}});var e3=o(36514);Object.defineProperty(i,"recoverAddress",{enumerable:!0,get:function(){return e3.recoverAddress}});var e8=o(68731);Object.defineProperty(i,"recoverMessageAddress",{enumerable:!0,get:function(){return e8.recoverMessageAddress}});var e4=o(47124);Object.defineProperty(i,"recoverPublicKey",{enumerable:!0,get:function(){return e4.recoverPublicKey}});var e9=o(398);Object.defineProperty(i,"recoverTypedDataAddress",{enumerable:!0,get:function(){return e9.recoverTypedDataAddress}});var e7=o(45696);Object.defineProperty(i,"signatureToCompactSignature",{enumerable:!0,get:function(){return e7.signatureToCompactSignature}});var tt=o(94723);Object.defineProperty(i,"compactSignatureToHex",{enumerable:!0,get:function(){return tt.compactSignatureToHex}});var tn=o(28546);Object.defineProperty(i,"signatureToHex",{enumerable:!0,get:function(){return tn.signatureToHex}});var ti=o(69043);Object.defineProperty(i,"bytesToRlp",{enumerable:!0,get:function(){return ti.bytesToRlp}}),Object.defineProperty(i,"hexToRlp",{enumerable:!0,get:function(){return ti.hexToRlp}}),Object.defineProperty(i,"toRlp",{enumerable:!0,get:function(){return ti.toRlp}});var to=o(8231);Object.defineProperty(i,"verifyMessage",{enumerable:!0,get:function(){return to.verifyMessage}});var ta=o(14041);Object.defineProperty(i,"verifyTypedData",{enumerable:!0,get:function(){return ta.verifyTypedData}});var ts=o(86520);Object.defineProperty(i,"assertRequest",{enumerable:!0,get:function(){return ts.assertRequest}});var tu=o(12982);Object.defineProperty(i,"assertTransactionEIP1559",{enumerable:!0,get:function(){return tu.assertTransactionEIP1559}}),Object.defineProperty(i,"assertTransactionEIP2930",{enumerable:!0,get:function(){return tu.assertTransactionEIP2930}}),Object.defineProperty(i,"assertTransactionLegacy",{enumerable:!0,get:function(){return tu.assertTransactionLegacy}});var tc=o(64056);Object.defineProperty(i,"boolToBytes",{enumerable:!0,get:function(){return tc.boolToBytes}}),Object.defineProperty(i,"hexToBytes",{enumerable:!0,get:function(){return tc.hexToBytes}}),Object.defineProperty(i,"numberToBytes",{enumerable:!0,get:function(){return tc.numberToBytes}}),Object.defineProperty(i,"stringToBytes",{enumerable:!0,get:function(){return tc.stringToBytes}}),Object.defineProperty(i,"toBytes",{enumerable:!0,get:function(){return tc.toBytes}});var tl=o(82375);Object.defineProperty(i,"boolToHex",{enumerable:!0,get:function(){return tl.boolToHex}}),Object.defineProperty(i,"bytesToHex",{enumerable:!0,get:function(){return tl.bytesToHex}}),Object.defineProperty(i,"numberToHex",{enumerable:!0,get:function(){return tl.numberToHex}}),Object.defineProperty(i,"stringToHex",{enumerable:!0,get:function(){return tl.stringToHex}}),Object.defineProperty(i,"toHex",{enumerable:!0,get:function(){return tl.toHex}});var td=o(11413);Object.defineProperty(i,"bytesToBigInt",{enumerable:!0,get:function(){return td.bytesToBigInt}}),Object.defineProperty(i,"bytesToBigint",{enumerable:!0,get:function(){return td.bytesToBigInt}}),Object.defineProperty(i,"bytesToBool",{enumerable:!0,get:function(){return td.bytesToBool}}),Object.defineProperty(i,"bytesToNumber",{enumerable:!0,get:function(){return td.bytesToNumber}}),Object.defineProperty(i,"bytesToString",{enumerable:!0,get:function(){return td.bytesToString}}),Object.defineProperty(i,"fromBytes",{enumerable:!0,get:function(){return td.fromBytes}});var tf=o(634);Object.defineProperty(i,"ccipFetch",{enumerable:!0,get:function(){return tf.ccipFetch}}),Object.defineProperty(i,"offchainLookup",{enumerable:!0,get:function(){return tf.offchainLookup}}),Object.defineProperty(i,"offchainLookupAbiItem",{enumerable:!0,get:function(){return tf.offchainLookupAbiItem}}),Object.defineProperty(i,"offchainLookupSignature",{enumerable:!0,get:function(){return tf.offchainLookupSignature}});var th=o(12594);Object.defineProperty(i,"concat",{enumerable:!0,get:function(){return th.concat}}),Object.defineProperty(i,"concatBytes",{enumerable:!0,get:function(){return th.concatBytes}}),Object.defineProperty(i,"concatHex",{enumerable:!0,get:function(){return th.concatHex}});var tp=o(71214);Object.defineProperty(i,"assertCurrentChain",{enumerable:!0,get:function(){return tp.assertCurrentChain}});var tm=o(15964);Object.defineProperty(i,"defineChain",{enumerable:!0,get:function(){return tm.defineChain}});var tg=o(75652);Object.defineProperty(i,"extractChain",{enumerable:!0,get:function(){return tg.extractChain}});var ty=o(85891);Object.defineProperty(i,"getChainContractAddress",{enumerable:!0,get:function(){return ty.getChainContractAddress}});var tb=o(93197);Object.defineProperty(i,"encodePacked",{enumerable:!0,get:function(){return tb.encodePacked}});var tv=o(18107);Object.defineProperty(i,"formatEther",{enumerable:!0,get:function(){return tv.formatEther}});var tE=o(91604);Object.defineProperty(i,"formatGwei",{enumerable:!0,get:function(){return tE.formatGwei}});var tw=o(34791);Object.defineProperty(i,"formatUnits",{enumerable:!0,get:function(){return tw.formatUnits}});var tP=o(15798);Object.defineProperty(i,"fromHex",{enumerable:!0,get:function(){return tP.fromHex}}),Object.defineProperty(i,"hexToBigInt",{enumerable:!0,get:function(){return tP.hexToBigInt}}),Object.defineProperty(i,"hexToBool",{enumerable:!0,get:function(){return tP.hexToBool}}),Object.defineProperty(i,"hexToNumber",{enumerable:!0,get:function(){return tP.hexToNumber}}),Object.defineProperty(i,"hexToString",{enumerable:!0,get:function(){return tP.hexToString}});var tx=o(81989);Object.defineProperty(i,"fromRlp",{enumerable:!0,get:function(){return tx.fromRlp}});var tT=o(27649);Object.defineProperty(i,"checksumAddress",{enumerable:!0,get:function(){return tT.checksumAddress}}),Object.defineProperty(i,"getAddress",{enumerable:!0,get:function(){return tT.getAddress}});var tA=o(56314);Object.defineProperty(i,"getContractError",{enumerable:!0,get:function(){return tA.getContractError}});var tS=o(19650);Object.defineProperty(i,"getEventSelector",{enumerable:!0,get:function(){return tS.getEventSelector}});var tC=o(39799);Object.defineProperty(i,"getEventSignature",{enumerable:!0,get:function(){return tC.getEventSignature}});var t_=o(68238);Object.defineProperty(i,"getFunctionSelector",{enumerable:!0,get:function(){return t_.getFunctionSelector}});var tO=o(25403);Object.defineProperty(i,"getFunctionSignature",{enumerable:!0,get:function(){return tO.getFunctionSignature}});var tI=o(99590);Object.defineProperty(i,"hashMessage",{enumerable:!0,get:function(){return tI.hashMessage}});var tB=o(41556);Object.defineProperty(i,"isAddress",{enumerable:!0,get:function(){return tB.isAddress}});var tD=o(96252);Object.defineProperty(i,"isAddressEqual",{enumerable:!0,get:function(){return tD.isAddressEqual}});var tR=o(71163);Object.defineProperty(i,"isBytes",{enumerable:!0,get:function(){return tR.isBytes}});var tj=o(28708);Object.defineProperty(i,"isHash",{enumerable:!0,get:function(){return tj.isHash}});var tM=o(31358);Object.defineProperty(i,"isHex",{enumerable:!0,get:function(){return tM.isHex}});var tk=o(42837);Object.defineProperty(i,"keccak256",{enumerable:!0,get:function(){return tk.keccak256}});var tF=o(86588);Object.defineProperty(i,"sha256",{enumerable:!0,get:function(){return tF.sha256}});var tN=o(12e3);Object.defineProperty(i,"ripemd160",{enumerable:!0,get:function(){return tN.ripemd160}});var tU=o(55266);Object.defineProperty(i,"pad",{enumerable:!0,get:function(){return tU.pad}}),Object.defineProperty(i,"padBytes",{enumerable:!0,get:function(){return tU.padBytes}}),Object.defineProperty(i,"padHex",{enumerable:!0,get:function(){return tU.padHex}});var tL=o(98976);Object.defineProperty(i,"parseEther",{enumerable:!0,get:function(){return tL.parseEther}});var tH=o(79972);Object.defineProperty(i,"parseGwei",{enumerable:!0,get:function(){return tH.parseGwei}});var t$=o(54776);Object.defineProperty(i,"parseTransaction",{enumerable:!0,get:function(){return t$.parseTransaction}});var tq=o(15666);Object.defineProperty(i,"parseUnits",{enumerable:!0,get:function(){return tq.parseUnits}});var tz=o(14646);Object.defineProperty(i,"serializeAccessList",{enumerable:!0,get:function(){return tz.serializeAccessList}});var tV=o(33291);Object.defineProperty(i,"serializeTransaction",{enumerable:!0,get:function(){return tV.serializeTransaction}});var tG=o(98049);Object.defineProperty(i,"size",{enumerable:!0,get:function(){return tG.size}});var tW=o(25414);Object.defineProperty(i,"slice",{enumerable:!0,get:function(){return tW.slice}}),Object.defineProperty(i,"sliceBytes",{enumerable:!0,get:function(){return tW.sliceBytes}}),Object.defineProperty(i,"sliceHex",{enumerable:!0,get:function(){return tW.sliceHex}});var tK=o(95545);Object.defineProperty(i,"stringify",{enumerable:!0,get:function(){return tK.stringify}});var tQ=o(36615);Object.defineProperty(i,"trim",{enumerable:!0,get:function(){return tQ.trim}});var tZ=o(25602);Object.defineProperty(i,"validateTypedData",{enumerable:!0,get:function(){return tZ.validateTypedData}}),Object.defineProperty(i,"domainSeparator",{enumerable:!0,get:function(){return tZ.domainSeparator}}),Object.defineProperty(i,"getTypesForEIP712Domain",{enumerable:!0,get:function(){return tZ.getTypesForEIP712Domain}})},44925:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.decodeAbiParameters=void 0;let u=o(39991),l=o(27649),d=o(98049),x=o(25414),I=o(36615),R=o(15798),j=o(17304);function decodeAbiParameters(n,i){if("0x"===i&&n.length>0)throw new u.AbiDecodingZeroDataError;if((0,d.size)(i)&&32>(0,d.size)(i))throw new u.AbiDecodingDataSizeTooSmallError({data:i,params:n,size:(0,d.size)(i)});return decodeParams({data:i,params:n})}function decodeParams({data:n,params:i}){let o=[],l=0;for(let x=0;x=(0,d.size)(n))throw new u.AbiDecodingDataSizeTooSmallError({data:n,params:i,size:(0,d.size)(n)});let I=i[x],{consumed:R,value:j}=decodeParam({data:n,param:I,position:l});o.push(j),l+=R}return o}function decodeParam({data:n,param:i,position:o}){let l=(0,j.getArrayComponents)(i.type);if(l){let[u,d]=l;return decodeArray(n,{length:u,param:{...i,type:d},position:o})}if("tuple"===i.type)return decodeTuple(n,{param:i,position:o});if("string"===i.type)return decodeString(n,{position:o});if(i.type.startsWith("bytes"))return decodeBytes(n,{param:i,position:o});let d=(0,x.slice)(n,o,o+32,{strict:!0});if(i.type.startsWith("uint")||i.type.startsWith("int"))return decodeNumber(d,{param:i});if("address"===i.type)return decodeAddress(d);if("bool"===i.type)return decodeBool(d);throw new u.InvalidAbiDecodingTypeError(i.type,{docsPath:"/docs/contract/decodeAbiParameters"})}function decodeAddress(n){return{consumed:32,value:(0,l.checksumAddress)((0,x.slice)(n,-20))}}function decodeArray(n,{param:i,length:o,position:u}){if(!o){let o=(0,R.hexToNumber)((0,x.slice)(n,u,u+32,{strict:!0})),l=(0,R.hexToNumber)((0,x.slice)(n,o,o+32,{strict:!0})),d=0,I=[];for(let u=0;u48?(0,R.hexToBigInt)(n,{signed:o}):(0,R.hexToNumber)(n,{signed:o})}}function decodeString(n,{position:i}){let o=(0,R.hexToNumber)((0,x.slice)(n,i,i+32,{strict:!0})),u=(0,R.hexToNumber)((0,x.slice)(n,o,o+32,{strict:!0}));if(0===u)return{consumed:32,value:""};let l=(0,R.hexToString)((0,I.trim)((0,x.slice)(n,o+32,o+32+u,{strict:!0})));return{consumed:32,value:l}}function decodeTuple(n,{param:i,position:o}){let u=0===i.components.length||i.components.some(({name:n})=>!n),l=u?[]:{},d=0;if(hasDynamicChild(i)){let I=(0,R.hexToNumber)((0,x.slice)(n,o,o+32,{strict:!0}));for(let o=0;o"type"in n&&"constructor"===n.type);if(!x)throw new u.AbiConstructorNotFoundError({docsPath:d});if(!("inputs"in x)||!x.inputs||0===x.inputs.length)throw new u.AbiConstructorParamsNotFoundError({docsPath:d});let I=(0,l.decodeAbiParameters)(x.inputs,`0x${o.replace(i,"")}`);return{args:I,bytecode:i}}i.decodeDeployData=decodeDeployData},93140:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.decodeErrorResult=void 0;let u=o(17073),l=o(39991),d=o(25414),x=o(68238),I=o(44925),R=o(15782);function decodeErrorResult({abi:n,data:i}){let o=(0,d.slice)(i,0,4);if("0x"===o)throw new l.AbiDecodingZeroDataError;let j=[...n||[],u.solidityError,u.solidityPanic],W=j.find(n=>"error"===n.type&&o===(0,x.getFunctionSelector)((0,R.formatAbiItem)(n)));if(!W)throw new l.AbiErrorSignatureNotFoundError(o,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:W,args:"inputs"in W&&W.inputs&&W.inputs.length>0?(0,I.decodeAbiParameters)(W.inputs,(0,d.slice)(i,4)):void 0,errorName:W.name}}i.decodeErrorResult=decodeErrorResult},7995:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.decodeEventLog=void 0;let u=o(39991),l=o(19650),d=o(44925),x=o(15782),I="/docs/contract/decodeEventLog";function decodeEventLog({abi:n,data:i,strict:o,topics:R}){let j=o??!0,[W,...J]=R;if(!W)throw new u.AbiEventSignatureEmptyTopicsError({docsPath:I});let et=n.find(n=>"event"===n.type&&W===(0,l.getEventSelector)((0,x.formatAbiItem)(n)));if(!(et&&"name"in et)||"event"!==et.type)throw new u.AbiEventSignatureNotFoundError(W,{docsPath:I});let{name:ei,inputs:eo}=et,es=eo?.some(n=>!("name"in n&&n.name)),eu=es?[]:{},ec=eo.filter(n=>"indexed"in n&&n.indexed);for(let n=0;n!("indexed"in n&&n.indexed));if(el.length>0){if(i&&"0x"!==i)try{let n=(0,d.decodeAbiParameters)(el,i);if(n){if(es)eu=[...eu,...n];else for(let i=0;i0?eu:void 0}}function decodeTopic({param:n,value:i}){if("string"===n.type||"bytes"===n.type||"tuple"===n.type||n.type.match(/^(.*)\[(\d+)?\]$/))return i;let o=(0,d.decodeAbiParameters)([n],i)||[];return o[0]}i.decodeEventLog=decodeEventLog},11318:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.decodeFunctionData=void 0;let u=o(39991),l=o(25414),d=o(68238),x=o(44925),I=o(15782);function decodeFunctionData({abi:n,data:i}){let o=(0,l.slice)(i,0,4),R=n.find(n=>"function"===n.type&&o===(0,d.getFunctionSelector)((0,I.formatAbiItem)(n)));if(!R)throw new u.AbiFunctionSignatureNotFoundError(o,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:R.name,args:"inputs"in R&&R.inputs&&R.inputs.length>0?(0,x.decodeAbiParameters)(R.inputs,(0,l.slice)(i,4)):void 0}}i.decodeFunctionData=decodeFunctionData},9864:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.decodeFunctionResult=void 0;let u=o(39991),l=o(44925),d=o(22837),x="/docs/contract/decodeFunctionResult";function decodeFunctionResult({abi:n,args:i,functionName:o,data:I}){let R=n[0];if(o&&!(R=(0,d.getAbiItem)({abi:n,args:i,name:o})))throw new u.AbiFunctionNotFoundError(o,{docsPath:x});if("function"!==R.type)throw new u.AbiFunctionNotFoundError(void 0,{docsPath:x});if(!R.outputs)throw new u.AbiFunctionOutputsNotFoundError(R.name,{docsPath:x});let j=(0,l.decodeAbiParameters)(R.outputs,I);return j&&j.length>1?j:j&&1===j.length?j[0]:void 0}i.decodeFunctionResult=decodeFunctionResult},17304:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getArrayComponents=i.encodeAbiParameters=void 0;let u=o(39991),l=o(69028),d=o(41556),x=o(12594),I=o(55266),R=o(98049),j=o(25414),W=o(82375);function encodeAbiParameters(n,i){if(n.length!==i.length)throw new u.AbiEncodingLengthMismatchError({expectedLength:n.length,givenLength:i.length});let o=prepareParams({params:n,values:i}),l=encodeParams(o);return 0===l.length?"0x":l}function prepareParams({params:n,values:i}){let o=[];for(let u=0;u0?(0,x.concat)([i,n]):i}}if(d)return{dynamic:!0,encoded:n}}return{dynamic:!1,encoded:(0,x.concat)(I.map(({encoded:n})=>n))}}function encodeBytes(n,{param:i}){let[,o]=i.type.split("bytes"),l=(0,R.size)(n);if(!o){let i=n;return l%32!=0&&(i=(0,I.padHex)(i,{dir:"right",size:32*Math.ceil((n.length-2)/2/32)})),{dynamic:!0,encoded:(0,x.concat)([(0,I.padHex)((0,W.numberToHex)(l,{size:32})),i])}}if(l!==parseInt(o))throw new u.AbiEncodingBytesSizeMismatchError({expectedSize:parseInt(o),value:n});return{dynamic:!1,encoded:(0,I.padHex)(n,{dir:"right"})}}function encodeBool(n){return{dynamic:!1,encoded:(0,I.padHex)((0,W.boolToHex)(n))}}function encodeNumber(n,{signed:i}){return{dynamic:!1,encoded:(0,W.numberToHex)(n,{size:32,signed:i})}}function encodeString(n){let i=(0,W.stringToHex)(n),o=Math.ceil((0,R.size)(i)/32),u=[];for(let n=0;nn))}}function getArrayComponents(n){let i=n.match(/^(.*)\[(\d+)?\]$/);return i?[i[2]?Number(i[2]):null,i[1]]:void 0}i.encodeAbiParameters=encodeAbiParameters,i.getArrayComponents=getArrayComponents},61737:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.encodeDeployData=void 0;let u=o(39991),l=o(12594),d=o(17304),x="/docs/contract/encodeDeployData";function encodeDeployData({abi:n,args:i,bytecode:o}){if(!i||0===i.length)return o;let I=n.find(n=>"type"in n&&"constructor"===n.type);if(!I)throw new u.AbiConstructorNotFoundError({docsPath:x});if(!("inputs"in I)||!I.inputs||0===I.inputs.length)throw new u.AbiConstructorParamsNotFoundError({docsPath:x});let R=(0,d.encodeAbiParameters)(I.inputs,i);return(0,l.concatHex)([o,R])}i.encodeDeployData=encodeDeployData},16372:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.encodeErrorResult=void 0;let u=o(39991),l=o(12594),d=o(68238),x=o(17304),I=o(15782),R=o(22837),j="/docs/contract/encodeErrorResult";function encodeErrorResult({abi:n,errorName:i,args:o}){let W=n[0];if(i&&!(W=(0,R.getAbiItem)({abi:n,args:o,name:i})))throw new u.AbiErrorNotFoundError(i,{docsPath:j});if("error"!==W.type)throw new u.AbiErrorNotFoundError(void 0,{docsPath:j});let J=(0,I.formatAbiItem)(W),et=(0,d.getFunctionSelector)(J),ei="0x";if(o&&o.length>0){if(!W.inputs)throw new u.AbiErrorInputsNotFoundError(W.name,{docsPath:j});ei=(0,x.encodeAbiParameters)(W.inputs,o)}return(0,l.concatHex)([et,ei])}i.encodeErrorResult=encodeErrorResult},26291:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.encodeEventTopics=void 0;let u=o(39991),l=o(13941),d=o(64056),x=o(19650),I=o(42837),R=o(17304),j=o(15782),W=o(22837);function encodeEventTopics({abi:n,eventName:i,args:o}){let l=n[0];if(i&&!(l=(0,W.getAbiItem)({abi:n,args:o,name:i})))throw new u.AbiEventNotFoundError(i,{docsPath:"/docs/contract/encodeEventTopics"});if("event"!==l.type)throw new u.AbiEventNotFoundError(void 0,{docsPath:"/docs/contract/encodeEventTopics"});let d=(0,j.formatAbiItem)(l),I=(0,x.getEventSelector)(d),R=[];if(o&&"inputs"in l){let n=l.inputs?.filter(n=>"indexed"in n&&n.indexed),i=Array.isArray(o)?o:Object.values(o).length>0?n?.map(n=>o[n.name])??[]:[];i.length>0&&(R=n?.map((n,o)=>Array.isArray(i[o])?i[o].map((u,l)=>encodeArg({param:n,value:i[o][l]})):i[o]?encodeArg({param:n,value:i[o]}):null)??[])}return[I,...R]}function encodeArg({param:n,value:i}){if("string"===n.type||"bytes"===n.type)return(0,I.keccak256)((0,d.toBytes)(i));if("tuple"===n.type||n.type.match(/^(.*)\[(\d+)?\]$/))throw new l.FilterTypeNotSupportedError(n.type);return(0,R.encodeAbiParameters)([n],[i])}i.encodeEventTopics=encodeEventTopics},45107:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.encodeFunctionData=void 0;let u=o(39991),l=o(12594),d=o(68238),x=o(17304),I=o(15782),R=o(22837);function encodeFunctionData({abi:n,args:i,functionName:o}){let j=n[0];if(o&&!(j=(0,R.getAbiItem)({abi:n,args:i,name:o})))throw new u.AbiFunctionNotFoundError(o,{docsPath:"/docs/contract/encodeFunctionData"});if("function"!==j.type)throw new u.AbiFunctionNotFoundError(void 0,{docsPath:"/docs/contract/encodeFunctionData"});let W=(0,I.formatAbiItem)(j),J=(0,d.getFunctionSelector)(W),et="inputs"in j&&j.inputs?(0,x.encodeAbiParameters)(j.inputs,i??[]):void 0;return(0,l.concatHex)([J,et??"0x"])}i.encodeFunctionData=encodeFunctionData},84922:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.encodeFunctionResult=void 0;let u=o(39991),l=o(17304),d=o(22837);function encodeFunctionResult({abi:n,functionName:i,result:o}){let x=n[0];if(i&&!(x=(0,d.getAbiItem)({abi:n,name:i})))throw new u.AbiFunctionNotFoundError(i,{docsPath:"/docs/contract/encodeFunctionResult"});if("function"!==x.type)throw new u.AbiFunctionNotFoundError(void 0,{docsPath:"/docs/contract/encodeFunctionResult"});if(!x.outputs)throw new u.AbiFunctionOutputsNotFoundError(x.name,{docsPath:"/docs/contract/encodeFunctionResult"});let I=Array.isArray(o)?o:[o];return 0!==x.outputs.length||I[0]||(I=[]),(0,l.encodeAbiParameters)(x.outputs,I)}i.encodeFunctionResult=encodeFunctionResult},93197:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.encodePacked=void 0;let u=o(39991),l=o(69028),d=o(41556),x=o(12594),I=o(55266),R=o(82375),j=o(89358);function encodePacked(n,i){if(n.length!==i.length)throw new u.AbiEncodingLengthMismatchError({expectedLength:n.length,givenLength:i.length});let o=[];for(let u=0;uformatAbiParam(n,{includeName:i})).join(i?", ":","):""}function formatAbiParam(n,{includeName:i}){return n.type.startsWith("tuple")?`(${formatAbiParams(n.components,{includeName:i})})${n.type.slice(5)}`:n.type+(i&&n.name?` ${n.name}`:"")}i.formatAbiItem=formatAbiItem,i.formatAbiParams=formatAbiParams},51951:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.formatAbiItemWithArgs=void 0;let u=o(95545);function formatAbiItemWithArgs({abiItem:n,args:i,includeFunctionName:o=!0,includeName:l=!1}){if("name"in n&&"inputs"in n&&n.inputs)return`${o?n.name:""}(${n.inputs.map((n,o)=>`${l&&n.name?`${n.name}: `:""}${"object"==typeof i[o]?(0,u.stringify)(i[o]):i[o]}`).join(", ")})`}i.formatAbiItemWithArgs=formatAbiItemWithArgs},22837:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getAmbiguousTypes=i.isArgOfType=i.getAbiItem=void 0;let u=o(39991),l=o(31358),d=o(19650),x=o(68238),I=o(41556);function getAbiItem({abi:n,args:i=[],name:o}){let I;let R=(0,l.isHex)(o,{strict:!1}),j=n.filter(n=>R?"function"===n.type?(0,x.getFunctionSelector)(n)===o:"event"===n.type&&(0,d.getEventSelector)(n)===o:"name"in n&&n.name===o);if(0!==j.length){if(1===j.length)return j[0];for(let n of j){if(!("inputs"in n))continue;if(!i||0===i.length){if(!n.inputs||0===n.inputs.length)return n;continue}if(!n.inputs||0===n.inputs.length||n.inputs.length!==i.length)continue;let o=i.every((i,o)=>{let u="inputs"in n&&n.inputs[o];return!!u&&isArgOfType(i,u)});if(o){if(I&&"inputs"in I&&I.inputs){let o=getAmbiguousTypes(n.inputs,I.inputs,i);if(o)throw new u.AbiItemAmbiguityError({abiItem:n,type:o[0]},{abiItem:I,type:o[1]})}I=n}}return I||j[0]}}function isArgOfType(n,i){let o=typeof n,u=i.type;switch(u){case"address":return(0,I.isAddress)(n);case"bool":return"boolean"===o;case"function":case"string":return"string"===o;default:if("tuple"===u&&"components"in i)return Object.values(i.components).every((i,o)=>isArgOfType(Object.values(n)[o],i));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(u))return"number"===o||"bigint"===o;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(u))return"string"===o||n instanceof Uint8Array;if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(u))return Array.isArray(n)&&n.every(n=>isArgOfType(n,{...i,type:u.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}function getAmbiguousTypes(n,i,o){for(let u in n){let l=n[u],d=i[u];if("tuple"===l.type&&"tuple"===d.type&&"components"in l&&"components"in d)return getAmbiguousTypes(l.components,d.components,o[u]);let x=[l.type,d.type],R=!!(x.includes("address")&&x.includes("bytes20"))||!!(x.includes("address")&&x.includes("string")||x.includes("address")&&x.includes("bytes"))&&(0,I.isAddress)(o[u]);if(R)return x}}i.getAbiItem=getAbiItem,i.isArgOfType=isArgOfType,i.getAmbiguousTypes=getAmbiguousTypes},21914:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.publicKeyToAddress=i.parseAccount=void 0;var u=o(65621);Object.defineProperty(i,"parseAccount",{enumerable:!0,get:function(){return u.parseAccount}});var l=o(57611);Object.defineProperty(i,"publicKeyToAddress",{enumerable:!0,get:function(){return l.publicKeyToAddress}})},27649:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getAddress=i.checksumAddress=void 0;let u=o(69028),l=o(64056),d=o(42837),x=o(41556);function checksumAddress(n,i){let o=i?`${i}${n.toLowerCase()}`:n.substring(2).toLowerCase(),u=(0,d.keccak256)((0,l.stringToBytes)(o),"bytes"),x=(i?o.substring(`${i}0x`.length):o).split("");for(let n=0;n<40;n+=2)u[n>>1]>>4>=8&&x[n]&&(x[n]=x[n].toUpperCase()),(15&u[n>>1])>=8&&x[n+1]&&(x[n+1]=x[n+1].toUpperCase());return`0x${x.join("")}`}function getAddress(n,i){if(!(0,x.isAddress)(n))throw new u.InvalidAddressError({address:n});return checksumAddress(n,i)}i.checksumAddress=checksumAddress,i.getAddress=getAddress},74381:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getCreate2Address=i.getCreateAddress=i.getContractAddress=void 0;let u=o(12594),l=o(71163),d=o(55266),x=o(25414),I=o(64056),R=o(69043),j=o(42837),W=o(27649);function getContractAddress(n){return"CREATE2"===n.opcode?getCreate2Address(n):getCreateAddress(n)}function getCreateAddress(n){let i=(0,I.toBytes)((0,W.getAddress)(n.from)),o=(0,I.toBytes)(n.nonce);return 0===o[0]&&(o=new Uint8Array([])),(0,W.getAddress)(`0x${(0,j.keccak256)((0,R.toRlp)([i,o],"bytes")).slice(26)}`)}function getCreate2Address(n){let i=(0,I.toBytes)((0,W.getAddress)(n.from)),o=(0,d.pad)((0,l.isBytes)(n.salt)?n.salt:(0,I.toBytes)(n.salt),{size:32}),R="bytecodeHash"in n?(0,l.isBytes)(n.bytecodeHash)?n.bytecodeHash:(0,I.toBytes)(n.bytecodeHash):(0,j.keccak256)(n.bytecode,"bytes");return(0,W.getAddress)((0,x.slice)((0,j.keccak256)((0,u.concat)([(0,I.toBytes)("0xff"),i,o,R])),12))}i.getContractAddress=getContractAddress,i.getCreateAddress=getCreateAddress,i.getCreate2Address=getCreate2Address},41556:function(n,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isAddress=void 0;let o=/^0x[a-fA-F0-9]{40}$/;function isAddress(n){return o.test(n)}i.isAddress=isAddress},96252:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isAddressEqual=void 0;let u=o(69028),l=o(41556);function isAddressEqual(n,i){if(!(0,l.isAddress)(n))throw new u.InvalidAddressError({address:n});if(!(0,l.isAddress)(i))throw new u.InvalidAddressError({address:i});return n.toLowerCase()===i.toLowerCase()}i.isAddressEqual=isAddressEqual},95903:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.buildRequest=i.isDeterministicError=void 0;let u=o(83399),l=o(39885),d=o(90916),x=o(59768);function buildRequest(n,{retryDelay:o=150,retryCount:I=3}={}){return async R=>(0,x.withRetry)(async()=>{try{return await n(R)}catch(n){switch(n.code){case d.ParseRpcError.code:throw new d.ParseRpcError(n);case d.InvalidRequestRpcError.code:throw new d.InvalidRequestRpcError(n);case d.MethodNotFoundRpcError.code:throw new d.MethodNotFoundRpcError(n);case d.InvalidParamsRpcError.code:throw new d.InvalidParamsRpcError(n);case d.InternalRpcError.code:throw new d.InternalRpcError(n);case d.InvalidInputRpcError.code:throw new d.InvalidInputRpcError(n);case d.ResourceNotFoundRpcError.code:throw new d.ResourceNotFoundRpcError(n);case d.ResourceUnavailableRpcError.code:throw new d.ResourceUnavailableRpcError(n);case d.TransactionRejectedRpcError.code:throw new d.TransactionRejectedRpcError(n);case d.MethodNotSupportedRpcError.code:throw new d.MethodNotSupportedRpcError(n);case d.LimitExceededRpcError.code:throw new d.LimitExceededRpcError(n);case d.JsonRpcVersionUnsupportedError.code:throw new d.JsonRpcVersionUnsupportedError(n);case d.UserRejectedRequestError.code:throw new d.UserRejectedRequestError(n);case d.UnauthorizedProviderError.code:throw new d.UnauthorizedProviderError(n);case d.UnsupportedProviderMethodError.code:throw new d.UnsupportedProviderMethodError(n);case d.ProviderDisconnectedError.code:throw new d.ProviderDisconnectedError(n);case d.ChainDisconnectedError.code:throw new d.ChainDisconnectedError(n);case d.SwitchChainError.code:throw new d.SwitchChainError(n);case 5e3:throw new d.UserRejectedRequestError(n);default:if(n instanceof u.BaseError)throw n;throw new d.UnknownRpcError(n)}}},{delay:({count:n,error:i})=>{if(i&&i instanceof l.HttpRequestError){let n=i?.headers?.get("Retry-After");if(n?.match(/\d/))return 1e3*parseInt(n)}return~~(1<!(0,i.isDeterministicError)(n)})}i.isDeterministicError=n=>"code"in n?-1!==n.code&&-32004!==n.code&&-32005!==n.code&&-32042!==n.code&&-32603!==n.code:n instanceof l.HttpRequestError&&!!n.status&&403!==n.status&&408!==n.status&&413!==n.status&&429!==n.status&&500!==n.status&&502!==n.status&&503!==n.status&&504!==n.status,i.buildRequest=buildRequest},634:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.ccipFetch=i.offchainLookup=i.offchainLookupAbiItem=i.offchainLookupSignature=void 0;let u=o(25112),l=o(70497),d=o(39885),x=o(93140),I=o(17304),R=o(96252),j=o(12594),W=o(31358),J=o(95545);async function offchainLookup(n,{blockNumber:o,blockTag:d,data:W,to:J}){let{args:et}=(0,x.decodeErrorResult)({data:W,abi:[i.offchainLookupAbiItem]}),[ei,eo,es,eu,ec]=et;try{if(!(0,R.isAddressEqual)(J,ei))throw new l.OffchainLookupSenderMismatchError({sender:ei,to:J});let i=await ccipFetch({data:es,sender:ei,urls:eo}),{data:x}=await (0,u.call)(n,{blockNumber:o,blockTag:d,data:(0,j.concat)([eu,(0,I.encodeAbiParameters)([{type:"bytes"},{type:"bytes"}],[i,ec])]),to:J});return x}catch(n){throw new l.OffchainLookupError({callbackSelector:eu,cause:n,data:W,extraData:ec,sender:ei,urls:eo})}}async function ccipFetch({data:n,sender:i,urls:o}){let u=Error("An unknown error occurred.");for(let x=0;xn.id===i)}Object.defineProperty(i,"__esModule",{value:!0}),i.extractChain=void 0,i.extractChain=extractChain},85891:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getChainContractAddress=void 0;let u=o(46580);function getChainContractAddress({blockNumber:n,chain:i,contract:o}){let l=i?.contracts?.[o];if(!l)throw new u.ChainDoesNotSupportContract({chain:i,contract:{name:o}});if(n&&l.blockCreated&&l.blockCreated>n)throw new u.ChainDoesNotSupportContract({blockNumber:n,chain:i,contract:{name:o,blockCreated:l.blockCreated}});return l.address}i.getChainContractAddress=getChainContractAddress},97147:function(n,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.extractFunctionType=i.extractFunctionParams=i.extractFunctionName=i.extractFunctionParts=void 0;let o=/((function|event)\s)?(.*)(\((.*)\))/;function extractFunctionParts(n){let i=n.match(o),u=i?.[2]||void 0,l=i?.[3],d=i?.[5]||void 0;return{type:u,name:l,params:d}}function extractFunctionName(n){return extractFunctionParts(n).name}function extractFunctionParams(n){let i=extractFunctionParts(n).params,o=i?.split(",").map(n=>n.trim().split(" "));return o?.map(n=>({type:n[0],name:"indexed"===n[1]?n[2]:n[1],..."indexed"===n[1]?{indexed:!0}:{}}))}function extractFunctionType(n){return extractFunctionParts(n).type}i.extractFunctionParts=extractFunctionParts,i.extractFunctionName=extractFunctionName,i.extractFunctionParams=extractFunctionParams,i.extractFunctionType=extractFunctionType},60223:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.createCursor=void 0;let u=o(18025),l={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,assertPosition(n){if(n<0||n>this.bytes.length-1)throw new u.PositionOutOfBoundsError({length:this.bytes.length,position:n})},decrementPosition(n){if(n<0)throw new u.NegativeOffsetError({offset:n});let i=this.position-n;this.assertPosition(i),this.position=i},incrementPosition(n){if(n<0)throw new u.NegativeOffsetError({offset:n});let i=this.position+n;this.assertPosition(i),this.position=i},inspectByte(n){let i=n??this.position;return this.assertPosition(i),this.bytes[i]},inspectBytes(n,i){let o=i??this.position;return this.assertPosition(o+n-1),this.bytes.subarray(o,o+n)},inspectUint8(n){let i=n??this.position;return this.assertPosition(i),this.bytes[i]},inspectUint16(n){let i=n??this.position;return this.assertPosition(i+1),this.dataView.getUint16(i)},inspectUint24(n){let i=n??this.position;return this.assertPosition(i+2),(this.dataView.getUint16(i)<<8)+this.dataView.getUint8(i+2)},inspectUint32(n){let i=n??this.position;return this.assertPosition(i+3),this.dataView.getUint32(i)},pushByte(n){this.assertPosition(this.position),this.bytes[this.position]=n,this.position++},pushBytes(n){this.assertPosition(this.position+n.length-1),this.bytes.set(n,this.position),this.position+=n.length},pushUint8(n){this.assertPosition(this.position),this.bytes[this.position]=n,this.position++},pushUint16(n){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,n),this.position+=2},pushUint24(n){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,n>>8),this.dataView.setUint8(this.position+2,255&n),this.position+=3},pushUint32(n){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,n),this.position+=4},readByte(){let n=this.inspectByte();return this.position++,n},readBytes(n){let i=this.inspectBytes(n);return this.position+=n,i},readUint8(){let n=this.inspectUint8();return this.position+=1,n},readUint16(){let n=this.inspectUint16();return this.position+=2,n},readUint24(){let n=this.inspectUint24();return this.position+=3,n},readUint32(){let n=this.inspectUint32();return this.position+=4,n},setPosition(n){this.assertPosition(n),this.position=n}};function createCursor(n){let i=Object.create(l);return i.bytes=n,i.dataView=new DataView(n.buffer,n.byteOffset,n.byteLength),i}i.createCursor=createCursor},12594:function(n,i){"use strict";function concat(n){return"string"==typeof n[0]?concatHex(n):concatBytes(n)}function concatBytes(n){let i=0;for(let o of n)i+=o.length;let o=new Uint8Array(i),u=0;for(let i of n)o.set(i,u),u+=i.length;return o}function concatHex(n){return`0x${n.reduce((n,i)=>n+i.replace("0x",""),"")}`}Object.defineProperty(i,"__esModule",{value:!0}),i.concatHex=i.concatBytes=i.concat=void 0,i.concat=concat,i.concatBytes=concatBytes,i.concatHex=concatHex},71163:function(n,i){"use strict";function isBytes(n){return!!n&&"object"==typeof n&&"BYTES_PER_ELEMENT"in n&&1===n.BYTES_PER_ELEMENT&&"Uint8Array"===n.constructor.name}Object.defineProperty(i,"__esModule",{value:!0}),i.isBytes=void 0,i.isBytes=isBytes},15235:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isBytesEqual=void 0;let u=o(46805),l=o(64056),d=o(31358);function isBytesEqual(n,i){let o=(0,d.isHex)(n)?(0,l.toBytes)(n):n,x=(0,d.isHex)(i)?(0,l.toBytes)(i):i;return(0,u.equalBytes)(o,x)}i.isBytesEqual=isBytesEqual},31358:function(n,i){"use strict";function isHex(n,{strict:i=!0}={}){return!!n&&"string"==typeof n&&(i?/^0x[0-9a-fA-F]*$/.test(n):n.startsWith("0x"))}Object.defineProperty(i,"__esModule",{value:!0}),i.isHex=void 0,i.isHex=isHex},55266:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.padBytes=i.padHex=i.pad=void 0;let u=o(33339);function pad(n,{dir:i,size:o=32}={}){return"string"==typeof n?padHex(n,{dir:i,size:o}):padBytes(n,{dir:i,size:o})}function padHex(n,{dir:i,size:o=32}={}){if(null===o)return n;let l=n.replace("0x","");if(l.length>2*o)throw new u.SizeExceedsPaddingSizeError({size:Math.ceil(l.length/2),targetSize:o,type:"hex"});return`0x${l["right"===i?"padEnd":"padStart"](2*o,"0")}`}function padBytes(n,{dir:i,size:o=32}={}){if(null===o)return n;if(n.length>o)throw new u.SizeExceedsPaddingSizeError({size:n.length,targetSize:o,type:"bytes"});let l=new Uint8Array(o);for(let u=0;u0&&i>(0,d.size)(n)-1)throw new u.SliceOffsetOutOfBoundsError({offset:i,position:"start",size:(0,d.size)(n)})}function assertEndOffset(n,i,o){if("number"==typeof i&&"number"==typeof o&&(0,d.size)(n)!==o-i)throw new u.SliceOffsetOutOfBoundsError({offset:o,position:"end",size:(0,d.size)(n)})}function sliceBytes(n,i,o,{strict:u}={}){assertStartOffset(n,i);let l=n.slice(i,o);return u&&assertEndOffset(l,i,o),l}function sliceHex(n,i,o,{strict:u}={}){assertStartOffset(n,i);let l=`0x${n.replace("0x","").slice((i??0)*2,(o??n.length)*2)}`;return u&&assertEndOffset(l,i,o),l}i.slice=slice,i.sliceBytes=sliceBytes,i.sliceHex=sliceHex},36615:function(n,i){"use strict";function trim(n,{dir:i="left"}={}){let o="string"==typeof n?n.replace("0x",""):n,u=0;for(let n=0;n1||o[0]>1)throw new u.InvalidBytesBooleanError(o);return!!o[0]}function bytesToNumber(n,i={}){void 0!==i.size&&(0,d.assertSize)(n,{size:i.size});let o=(0,x.bytesToHex)(n,i);return(0,d.hexToNumber)(o)}function bytesToString(n,i={}){let o=n;return void 0!==i.size&&((0,d.assertSize)(o,{size:i.size}),o=(0,l.trim)(o,{dir:"right"})),new TextDecoder().decode(o)}i.fromBytes=fromBytes,i.bytesToBigInt=bytesToBigInt,i.bytesToBool=bytesToBool,i.bytesToNumber=bytesToNumber,i.bytesToString=bytesToString},15798:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.hexToString=i.hexToNumber=i.hexToBool=i.hexToBigInt=i.fromHex=i.assertSize=void 0;let u=o(12274),l=o(98049),d=o(36615),x=o(64056);function assertSize(n,{size:i}){if((0,l.size)(n)>i)throw new u.SizeOverflowError({givenSize:(0,l.size)(n),maxSize:i})}function fromHex(n,i){let o="string"==typeof i?{to:i}:i,u=o.to;return"number"===u?hexToNumber(n,o):"bigint"===u?hexToBigInt(n,o):"string"===u?hexToString(n,o):"boolean"===u?hexToBool(n,o):(0,x.hexToBytes)(n,o)}function hexToBigInt(n,i={}){let{signed:o}=i;i.size&&assertSize(n,{size:i.size});let u=BigInt(n);if(!o)return u;let l=(n.length-2)/2,d=(1n<<8n*BigInt(l)-1n)-1n;return u<=d?u:u-BigInt(`0x${"f".padStart(2*l,"f")}`)-1n}function hexToBool(n,i={}){let o=n;if(i.size&&(assertSize(o,{size:i.size}),o=(0,d.trim)(o)),"0x00"===(0,d.trim)(o))return!1;if("0x01"===(0,d.trim)(o))return!0;throw new u.InvalidHexBooleanError(o)}function hexToNumber(n,i={}){return Number(hexToBigInt(n,i))}function hexToString(n,i={}){let o=(0,x.hexToBytes)(n);return i.size&&(assertSize(o,{size:i.size}),o=(0,d.trim)(o,{dir:"right"})),new TextDecoder().decode(o)}i.assertSize=assertSize,i.fromHex=fromHex,i.hexToBigInt=hexToBigInt,i.hexToBool=hexToBool,i.hexToNumber=hexToNumber,i.hexToString=hexToString},81989:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.rlpToHex=i.rlpToBytes=i.fromRlp=void 0;let u=o(83399),l=o(12274),d=o(60223),x=o(64056),I=o(82375);function fromRlp(n,i="hex"){let o=(()=>{if("string"==typeof n){if(n.length>3&&n.length%2!=0)throw new l.InvalidHexValueError(n);return(0,x.hexToBytes)(n)}return n})(),u=(0,d.createCursor)(o),I=fromRlpCursor(u,i);return I}function rlpToBytes(n,i="bytes"){return fromRlp(n,i)}function rlpToHex(n,i="hex"){return fromRlp(n,i)}function fromRlpCursor(n,i="hex"){if(0===n.bytes.length)return"hex"===i?(0,I.bytesToHex)(n.bytes):n.bytes;let o=n.readByte();if(o<128&&n.decrementPosition(1),o<192){let u=readLength(n,o,128),l=n.readBytes(u);return"hex"===i?(0,I.bytesToHex)(l):l}let u=readLength(n,o,192);return readList(n,u,i)}function readLength(n,i,o){if(128===o&&i<128)return 1;if(i<=o+55)return i-o;if(i===o+55+1)return n.readUint8();if(i===o+55+2)return n.readUint16();if(i===o+55+3)return n.readUint24();if(i===o+55+4)return n.readUint32();throw new u.BaseError("Invalid RLP prefix")}function readList(n,i,o){let u=n.position,l=[];for(;n.position-u=j.zero&&n<=j.nine?n-j.zero:n>=j.A&&n<=j.F?n-(j.A-10):n>=j.a&&n<=j.f?n-(j.a-10):void 0}function hexToBytes(n,i={}){let o=n;i.size&&((0,x.assertSize)(o,{size:i.size}),o=(0,d.pad)(o,{dir:"right",size:i.size}));let l=o.slice(2);l.length%2&&(l=`0${l}`);let I=l.length/2,R=new Uint8Array(I);for(let n=0,i=0;ni.toString(16).padStart(2,"0"));function toHex(n,i={}){return"number"==typeof n||"bigint"==typeof n?numberToHex(n,i):"string"==typeof n?stringToHex(n,i):"boolean"==typeof n?boolToHex(n,i):bytesToHex(n,i)}function boolToHex(n,i={}){let o=`0x${Number(n)}`;return"number"==typeof i.size?((0,d.assertSize)(o,{size:i.size}),(0,l.pad)(o,{size:i.size})):o}function bytesToHex(n,i={}){let o="";for(let i=0;io||IgetEncodable(n))):getEncodableBytes(n)}function getEncodableList(n){let i=n.reduce((n,i)=>n+i.length,0),o=getSizeOfLength(i),u=i<=55?1+i:1+o+i;return{length:u,encode(u){for(let{encode:l}of(i<=55?u.pushByte(192+i):(u.pushByte(247+o),1===o?u.pushUint8(i):2===o?u.pushUint16(i):3===o?u.pushUint24(i):u.pushUint32(i)),n))l(u)}}}function getEncodableBytes(n){let i="string"==typeof n?(0,d.hexToBytes)(n):n,o=getSizeOfLength(i.length),u=1===i.length&&i[0]<128?1:i.length<=55?1+i.length:1+o+i.length;return{length:u,encode(n){1===i.length&&i[0]<128||(i.length<=55?n.pushByte(128+i.length):(n.pushByte(183+o),1===o?n.pushUint8(i.length):2===o?n.pushUint16(i.length):3===o?n.pushUint24(i.length):n.pushUint32(i.length))),n.pushBytes(i)}}}function getSizeOfLength(n){if(n<256)return 1;if(n<65536)return 2;if(n<16777216)return 3;if(n<4294967296)return 4;throw new u.BaseError("Length is too large.")}i.toRlp=toRlp,i.bytesToRlp=bytesToRlp,i.hexToRlp=hexToRlp},50572:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.parseAvatarRecord=void 0;let u=o(98695);async function parseAvatarRecord(n,{gatewayUrls:i,record:o}){return/eip155:/i.test(o)?parseNftAvatarUri(n,{gatewayUrls:i,record:o}):(0,u.parseAvatarUri)({uri:o,gatewayUrls:i})}async function parseNftAvatarUri(n,{gatewayUrls:i,record:o}){let l=(0,u.parseNftUri)(o),d=await (0,u.getNftTokenUri)(n,{nft:l}),{uri:x,isOnChain:I,isEncoded:R}=(0,u.resolveAvatarUri)({uri:d,gatewayUrls:i});if(I&&(x.includes("data:application/json;base64,")||x.startsWith("{"))){let n=R?atob(x.replace("data:application/json;base64,","")):x,o=JSON.parse(n);return(0,u.parseAvatarUri)({uri:(0,u.getJsonImage)(o),gatewayUrls:i})}let j=l.tokenID;return"erc1155"===l.namespace&&(j=j.replace("0x","").padStart(64,"0")),(0,u.getMetadataAvatarUri)({gatewayUrls:i,uri:x.replace(/(?:0x)?{id}/,j)})}i.parseAvatarRecord=parseAvatarRecord},98695:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getNftTokenUri=i.parseNftUri=i.parseAvatarUri=i.getMetadataAvatarUri=i.getJsonImage=i.resolveAvatarUri=i.getGateway=i.isImageUri=void 0;let u=o(29614),l=o(38283),d=/(?https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?\/)?(?ipfs\/|ipns\/)?(?[\w\-.]+)(?\/.*)?/,x=/^(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,})(\/(?[\w\-.]+))?(?\/.*)?$/,I=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,R=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function isImageUri(n){try{let i=await fetch(n,{method:"HEAD"});if(200===i.status){let n=i.headers.get("content-type");return n?.startsWith("image/")}return!1}catch(i){if("object"==typeof i&&void 0!==i.response||!globalThis.hasOwnProperty("Image"))return!1;return new Promise(i=>{let o=new Image;o.onload=()=>{i(!0)},o.onerror=()=>{i(!1)},o.src=n})}}function getGateway(n,i){return n?n.endsWith("/")?n.slice(0,-1):n:i}function resolveAvatarUri({uri:n,gatewayUrls:i}){let o=I.test(n);if(o)return{uri:n,isOnChain:!0,isEncoded:o};let u=getGateway(i?.ipfs,"https://ipfs.io"),j=getGateway(i?.arweave,"https://arweave.net"),W=n.match(d),{protocol:J,subpath:et,target:ei,subtarget:eo=""}=W?.groups||{},es="ipns:/"===J||"ipns/"===et,eu="ipfs:/"===J||"ipfs/"===et||x.test(n);if(n.startsWith("http")&&!es&&!eu){let o=n;return i?.arweave&&(o=n.replace(/https:\/\/arweave.net/g,i?.arweave)),{uri:o,isOnChain:!1,isEncoded:!1}}if((es||eu)&&ei)return{uri:`${u}/${es?"ipns":"ipfs"}/${ei}${eo}`,isOnChain:!1,isEncoded:!1};if("ar:/"===J&&ei)return{uri:`${j}/${ei}${eo||""}`,isOnChain:!1,isEncoded:!1};let ec=n.replace(R,"");if(ec.startsWith("n.json()),u=await parseAvatarUri({gatewayUrls:n,uri:getJsonImage(o)});return u}catch{throw new l.EnsAvatarUriResolutionError({uri:i})}}async function parseAvatarUri({gatewayUrls:n,uri:i}){let{uri:o,isOnChain:u}=resolveAvatarUri({uri:i,gatewayUrls:n});if(u)return o;let d=await isImageUri(o);if(d)return o;throw new l.EnsAvatarUriResolutionError({uri:i})}function parseNftUri(n){let i=n;i.startsWith("did:nft:")&&(i=i.replace("did:nft:","").replace(/_/g,"/"));let[o,u,d]=i.split("/"),[x,I]=o.split(":"),[R,j]=u.split(":");if(!x||"eip155"!==x.toLowerCase())throw new l.EnsAvatarInvalidNftUriError({reason:"Only EIP-155 supported"});if(!I)throw new l.EnsAvatarInvalidNftUriError({reason:"Chain ID not found"});if(!j)throw new l.EnsAvatarInvalidNftUriError({reason:"Contract address not found"});if(!d)throw new l.EnsAvatarInvalidNftUriError({reason:"Token ID not found"});if(!R)throw new l.EnsAvatarInvalidNftUriError({reason:"ERC namespace not found"});return{chainID:parseInt(I),namespace:R.toLowerCase(),contractAddress:j,tokenID:d}}async function getNftTokenUri(n,{nft:i}){if("erc721"===i.namespace)return(0,u.readContract)(n,{address:i.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(i.tokenID)]});if("erc1155"===i.namespace)return(0,u.readContract)(n,{address:i.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(i.tokenID)]});throw new l.EnsAvatarUnsupportedNamespaceError({namespace:i.namespace})}i.isImageUri=isImageUri,i.getGateway=getGateway,i.resolveAvatarUri=resolveAvatarUri,i.getJsonImage=getJsonImage,i.getMetadataAvatarUri=getMetadataAvatarUri,i.parseAvatarUri=parseAvatarUri,i.parseNftUri=parseNftUri,i.getNftTokenUri=getNftTokenUri},93128:function(n,i){"use strict";function encodeLabelhash(n){return`[${n.slice(2)}]`}Object.defineProperty(i,"__esModule",{value:!0}),i.encodeLabelhash=void 0,i.encodeLabelhash=encodeLabelhash},39468:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.encodedLabelToLabelhash=void 0;let u=o(31358);function encodedLabelToLabelhash(n){if(66!==n.length||0!==n.indexOf("[")||65!==n.indexOf("]"))return null;let i=`0x${n.slice(1,65)}`;return(0,u.isHex)(i)?i:null}i.encodedLabelToLabelhash=encodedLabelToLabelhash},14919:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isNullUniversalResolverError=void 0;let u=o(17073),l=o(83399),d=o(87453);function isNullUniversalResolverError(n,i){if(!(n instanceof l.BaseError))return!1;let o=n.walk(n=>n instanceof d.ContractFunctionRevertedError);return o instanceof d.ContractFunctionRevertedError&&(!!(o.data?.errorName==="ResolverNotFound"||o.data?.errorName==="ResolverWildcardNotSupported"||o.reason?.includes("Wildcard on non-extended resolvers is not supported"))||"reverse"===i&&o.reason===u.panicReasons[50])}i.isNullUniversalResolverError=isNullUniversalResolverError},15931:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.labelhash=void 0;let u=o(64056),l=o(82375),d=o(42837),x=o(39468);function labelhash(n){let i=new Uint8Array(32).fill(0);return n?(0,x.encodedLabelToLabelhash)(n)||(0,d.keccak256)((0,u.stringToBytes)(n)):(0,l.bytesToHex)(i)}i.labelhash=labelhash},48998:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.namehash=void 0;let u=o(12594),l=o(64056),d=o(82375),x=o(42837),I=o(39468);function namehash(n){let i=new Uint8Array(32).fill(0);if(!n)return(0,d.bytesToHex)(i);let o=n.split(".");for(let n=o.length-1;n>=0;n-=1){let d=(0,I.encodedLabelToLabelhash)(o[n]),R=d?(0,l.toBytes)(d):(0,x.keccak256)((0,l.stringToBytes)(o[n]),"bytes");i=(0,x.keccak256)((0,u.concat)([i,R]),"bytes")}return(0,d.bytesToHex)(i)}i.namehash=namehash},56820:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.packetToBytes=void 0;let u=o(64056),l=o(93128),d=o(15931);function packetToBytes(n){let i=n.replace(/^\.|\.$/gm,"");if(0===i.length)return new Uint8Array(1);let o=new Uint8Array((0,u.stringToBytes)(i).byteLength+2),x=0,I=i.split(".");for(let n=0;n255&&(i=(0,u.stringToBytes)((0,l.encodeLabelhash)((0,d.labelhash)(I[n])))),o[x]=i.length,o.set(i,x+1),x+=i.length+1}return o.byteLength!==x+1?o.slice(0,x+1):o}i.packetToBytes=packetToBytes},77634:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getCallError=void 0;let u=o(87453),l=o(95874),d=o(89909);function getCallError(n,{docsPath:i,...o}){let x=(()=>{let i=(0,d.getNodeError)(n,o);return i instanceof l.UnknownNodeError?n:i})();return new u.CallExecutionError(x,{docsPath:i,...o})}i.getCallError=getCallError},56314:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getContractError=void 0;let u=o(39991),l=o(83399),d=o(87453),x=o(90916);function getContractError(n,{abi:i,address:o,args:I,docsPath:R,functionName:j,sender:W}){let{code:J,data:et,message:ei,shortMessage:eo}=n instanceof d.RawContractError?n:n instanceof l.BaseError?n.walk(n=>"data"in n)||n.walk():{},es=n instanceof u.AbiDecodingZeroDataError?new d.ContractFunctionZeroDataError({functionName:j}):[3,x.InternalRpcError.code].includes(J)&&(et||ei||eo)?new d.ContractFunctionRevertedError({abi:i,data:"object"==typeof et?et.data:et,functionName:j,message:eo??ei}):n;return new d.ContractFunctionExecutionError(es,{abi:i,args:I,contractAddress:o,docsPath:R,functionName:j,sender:W})}i.getContractError=getContractError},77098:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getEstimateGasError=void 0;let u=o(32221),l=o(95874),d=o(89909);function getEstimateGasError(n,{docsPath:i,...o}){let x=(()=>{let i=(0,d.getNodeError)(n,o);return i instanceof l.UnknownNodeError?n:i})();return new u.EstimateGasExecutionError(x,{docsPath:i,...o})}i.getEstimateGasError=getEstimateGasError},89909:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getNodeError=i.containsNodeError=void 0;let u=o(83399),l=o(95874),d=o(39885),x=o(90916);function containsNodeError(n){return n instanceof x.TransactionRejectedRpcError||n instanceof x.InvalidInputRpcError||n instanceof d.RpcRequestError&&n.code===l.ExecutionRevertedError.code}function getNodeError(n,i){let o=(n.details||"").toLowerCase(),d=n.walk(n=>n.code===l.ExecutionRevertedError.code);return d instanceof u.BaseError?new l.ExecutionRevertedError({cause:n,message:d.details}):l.ExecutionRevertedError.nodeMessage.test(o)?new l.ExecutionRevertedError({cause:n,message:n.details}):l.FeeCapTooHighError.nodeMessage.test(o)?new l.FeeCapTooHighError({cause:n,maxFeePerGas:i?.maxFeePerGas}):l.FeeCapTooLowError.nodeMessage.test(o)?new l.FeeCapTooLowError({cause:n,maxFeePerGas:i?.maxFeePerGas}):l.NonceTooHighError.nodeMessage.test(o)?new l.NonceTooHighError({cause:n,nonce:i?.nonce}):l.NonceTooLowError.nodeMessage.test(o)?new l.NonceTooLowError({cause:n,nonce:i?.nonce}):l.NonceMaxValueError.nodeMessage.test(o)?new l.NonceMaxValueError({cause:n,nonce:i?.nonce}):l.InsufficientFundsError.nodeMessage.test(o)?new l.InsufficientFundsError({cause:n}):l.IntrinsicGasTooHighError.nodeMessage.test(o)?new l.IntrinsicGasTooHighError({cause:n,gas:i?.gas}):l.IntrinsicGasTooLowError.nodeMessage.test(o)?new l.IntrinsicGasTooLowError({cause:n,gas:i?.gas}):l.TransactionTypeNotSupportedError.nodeMessage.test(o)?new l.TransactionTypeNotSupportedError({cause:n}):l.TipAboveFeeCapError.nodeMessage.test(o)?new l.TipAboveFeeCapError({cause:n,maxFeePerGas:i?.maxFeePerGas,maxPriorityFeePerGas:i?.maxPriorityFeePerGas}):new l.UnknownNodeError({cause:n})}i.containsNodeError=containsNodeError,i.getNodeError=getNodeError},67072:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getTransactionError=void 0;let u=o(95874),l=o(31681),d=o(89909);function getTransactionError(n,{docsPath:i,...o}){let x=(()=>{let i=(0,d.getNodeError)(n,o);return i instanceof u.UnknownNodeError?n:i})();return new l.TransactionExecutionError(x,{docsPath:i,...o})}i.getTransactionError=getTransactionError},13104:function(n,i){"use strict";function createFilterRequestScope(n,{method:i}){let o={};return"fallback"===n.transport.type&&n.transport.onResponse?.(({method:n,response:u,status:l,transport:d})=>{"success"===l&&i===n&&(o[u]=d.request)}),i=>o[i]||n.request}Object.defineProperty(i,"__esModule",{value:!0}),i.createFilterRequestScope=void 0,i.createFilterRequestScope=createFilterRequestScope},22044:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.defineBlock=i.formatBlock=void 0;let u=o(52894),l=o(68068);function formatBlock(n){let i=n.transactions?.map(n=>"string"==typeof n?n:l.formatTransaction(n));return{...n,baseFeePerGas:n.baseFeePerGas?BigInt(n.baseFeePerGas):null,difficulty:n.difficulty?BigInt(n.difficulty):void 0,gasLimit:n.gasLimit?BigInt(n.gasLimit):void 0,gasUsed:n.gasUsed?BigInt(n.gasUsed):void 0,hash:n.hash?n.hash:null,logsBloom:n.logsBloom?n.logsBloom:null,nonce:n.nonce?n.nonce:null,number:n.number?BigInt(n.number):null,size:n.size?BigInt(n.size):void 0,timestamp:n.timestamp?BigInt(n.timestamp):void 0,transactions:i,totalDifficulty:n.totalDifficulty?BigInt(n.totalDifficulty):null}}i.formatBlock=formatBlock,i.defineBlock=(0,u.defineFormatter)("block",formatBlock)},29423:function(n,i){"use strict";function extract(n,{format:i}){if(!i)return{};let o={};function extract_(i){let u=Object.keys(i);for(let l of u)l in n&&(o[l]=n[l]),i[l]&&"object"==typeof i[l]&&!Array.isArray(i[l])&&extract_(i[l])}let u=i(n||{});return extract_(u),o}Object.defineProperty(i,"__esModule",{value:!0}),i.extract=void 0,i.extract=extract},38051:function(n,i){"use strict";function formatFeeHistory(n){return{baseFeePerGas:n.baseFeePerGas.map(n=>BigInt(n)),gasUsedRatio:n.gasUsedRatio,oldestBlock:BigInt(n.oldestBlock),reward:n.reward?.map(n=>n.map(n=>BigInt(n)))}}Object.defineProperty(i,"__esModule",{value:!0}),i.formatFeeHistory=void 0,i.formatFeeHistory=formatFeeHistory},52894:function(n,i){"use strict";function defineFormatter(n,i){return({exclude:o,format:u})=>({exclude:o,format:n=>{let l=i(n);if(o)for(let n of o)delete l[n];return{...l,...u(n)}},type:n})}Object.defineProperty(i,"__esModule",{value:!0}),i.defineFormatter=void 0,i.defineFormatter=defineFormatter},15227:function(n,i){"use strict";function formatLog(n,{args:i,eventName:o}={}){return{...n,blockHash:n.blockHash?n.blockHash:null,blockNumber:n.blockNumber?BigInt(n.blockNumber):null,logIndex:n.logIndex?Number(n.logIndex):null,transactionHash:n.transactionHash?n.transactionHash:null,transactionIndex:n.transactionIndex?Number(n.transactionIndex):null,...o?{args:i,eventName:o}:{}}}Object.defineProperty(i,"__esModule",{value:!0}),i.formatLog=void 0,i.formatLog=formatLog},31311:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.formatProof=void 0;let u=o(60519);function formatStorageProof(n){return n.map(n=>({...n,value:BigInt(n.value)}))}function formatProof(n){return{...n,balance:n.balance?BigInt(n.balance):void 0,nonce:n.nonce?(0,u.hexToNumber)(n.nonce):void 0,storageProof:n.storageProof?formatStorageProof(n.storageProof):void 0}}i.formatProof=formatProof},68068:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.defineTransaction=i.formatTransaction=i.transactionType=void 0;let u=o(15798),l=o(52894);function formatTransaction(n){let o={...n,blockHash:n.blockHash?n.blockHash:null,blockNumber:n.blockNumber?BigInt(n.blockNumber):null,chainId:n.chainId?(0,u.hexToNumber)(n.chainId):void 0,gas:n.gas?BigInt(n.gas):void 0,gasPrice:n.gasPrice?BigInt(n.gasPrice):void 0,maxFeePerGas:n.maxFeePerGas?BigInt(n.maxFeePerGas):void 0,maxPriorityFeePerGas:n.maxPriorityFeePerGas?BigInt(n.maxPriorityFeePerGas):void 0,nonce:n.nonce?(0,u.hexToNumber)(n.nonce):void 0,to:n.to?n.to:null,transactionIndex:n.transactionIndex?Number(n.transactionIndex):null,type:n.type?i.transactionType[n.type]:void 0,typeHex:n.type?n.type:void 0,value:n.value?BigInt(n.value):void 0,v:n.v?BigInt(n.v):void 0};return o.yParity=(()=>{if(n.yParity)return Number(n.yParity);if("bigint"==typeof o.v){if(0n===o.v||27n===o.v)return 0;if(1n===o.v||28n===o.v)return 1;if(o.v>=35n)return o.v%2n===0n?1:0}})(),"legacy"===o.type&&(delete o.accessList,delete o.maxFeePerGas,delete o.maxPriorityFeePerGas,delete o.yParity),"eip2930"===o.type&&(delete o.maxFeePerGas,delete o.maxPriorityFeePerGas),o}i.transactionType={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559"},i.formatTransaction=formatTransaction,i.defineTransaction=(0,l.defineFormatter)("transaction",formatTransaction)},82373:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.defineTransactionReceipt=i.formatTransactionReceipt=void 0;let u=o(15798),l=o(52894),d=o(15227),x=o(68068),I={"0x0":"reverted","0x1":"success"};function formatTransactionReceipt(n){return{...n,blockNumber:n.blockNumber?BigInt(n.blockNumber):null,contractAddress:n.contractAddress?n.contractAddress:null,cumulativeGasUsed:n.cumulativeGasUsed?BigInt(n.cumulativeGasUsed):null,effectiveGasPrice:n.effectiveGasPrice?BigInt(n.effectiveGasPrice):null,gasUsed:n.gasUsed?BigInt(n.gasUsed):null,logs:n.logs?n.logs.map(n=>(0,d.formatLog)(n)):null,to:n.to?n.to:null,transactionIndex:n.transactionIndex?(0,u.hexToNumber)(n.transactionIndex):null,status:n.status?I[n.status]:null,type:n.type?x.transactionType[n.type]||n.type:null}}i.formatTransactionReceipt=formatTransactionReceipt,i.defineTransactionReceipt=(0,l.defineFormatter)("transactionReceipt",formatTransactionReceipt)},41074:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.defineTransactionRequest=i.formatTransactionRequest=i.rpcTransactionType=void 0;let u=o(82375),l=o(52894);function formatTransactionRequest(n){return{...n,gas:void 0!==n.gas?(0,u.numberToHex)(n.gas):void 0,gasPrice:void 0!==n.gasPrice?(0,u.numberToHex)(n.gasPrice):void 0,maxFeePerGas:void 0!==n.maxFeePerGas?(0,u.numberToHex)(n.maxFeePerGas):void 0,maxPriorityFeePerGas:void 0!==n.maxPriorityFeePerGas?(0,u.numberToHex)(n.maxPriorityFeePerGas):void 0,nonce:void 0!==n.nonce?(0,u.numberToHex)(n.nonce):void 0,type:void 0!==n.type?i.rpcTransactionType[n.type]:void 0,value:void 0!==n.value?(0,u.numberToHex)(n.value):void 0}}i.rpcTransactionType={legacy:"0x0",eip2930:"0x1",eip1559:"0x2"},i.formatTransactionRequest=formatTransactionRequest,i.defineTransactionRequest=(0,l.defineFormatter)("transactionRequest",formatTransactionRequest)},38937:function(n,i){"use strict";function getAction(n,i,o){return u=>n[i.name||o]?.(u)??i(n,u)}Object.defineProperty(i,"__esModule",{value:!0}),i.getAction=void 0,i.getAction=getAction},19650:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getEventSelector=void 0;let u=o(64056),l=o(39799),d=o(42837),hash=n=>(0,d.keccak256)((0,u.toBytes)(n));i.getEventSelector=n=>hash((0,l.getEventSignature)(n))},39799:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getEventSignature=void 0;let u=o(25403);i.getEventSignature=n=>(0,u.getFunctionSignature)(n)},68238:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getFunctionSelector=void 0;let u=o(25414),l=o(64056),d=o(25403),x=o(42837),hash=n=>(0,x.keccak256)((0,l.toBytes)(n));i.getFunctionSelector=n=>(0,u.slice)(hash((0,d.getFunctionSignature)(n)),0,4)},25403:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getFunctionSignature=void 0;let u=o(61726),l=o(37642);i.getFunctionSignature=n=>{let i="string"==typeof n?n:(0,u.formatAbiItem)(n);return(0,l.normalizeSignature)(i)}},28708:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isHash=void 0;let u=o(31358),l=o(98049);function isHash(n){return(0,u.isHex)(n)&&32===(0,l.size)(n)}i.isHash=isHash},42837:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.keccak256=void 0;let u=o(78455),l=o(31358),d=o(64056),x=o(82375);function keccak256(n,i){let o=(0,u.keccak_256)((0,l.isHex)(n,{strict:!1})?(0,d.toBytes)(n):n);return"bytes"===(i||"hex")?o:(0,x.toHex)(o)}i.keccak256=keccak256},37642:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.normalizeSignature=void 0;let u=o(83399);function normalizeSignature(n){let i=!0,o="",l=0,d="",x=!1;for(let u=0;ui.listenersCache.get(n)||[],unsubscribe=()=>{let o=getListeners();i.listenersCache.set(n,o.filter(n=>n.id!==d))},unwatch=()=>{let o=i.cleanupCache.get(n);1===getListeners().length&&o&&o(),unsubscribe()},x=getListeners();if(i.listenersCache.set(n,[...x,{id:d,fns:u}]),x&&x.length>0)return unwatch;let I={};for(let n in u)I[n]=(...i)=>{let o=getListeners();if(0!==o.length)for(let u of o)u.fns[n]?.(...i)};let R=l(I);return"function"==typeof R&&i.cleanupCache.set(n,R),unwatch}i.observe=observe},11799:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.poll=void 0;let u=o(26040);function poll(n,{emitOnBegin:i,initialWaitTime:o,interval:l}){let d=!0,unwatch=()=>d=!1,watch=async()=>{let x;i&&(x=await n({unpoll:unwatch}));let I=await o?.(x)??l;await (0,u.wait)(I);let poll=async()=>{d&&(await n({unpoll:unwatch}),await (0,u.wait)(l),poll())};poll()};return watch(),unwatch}i.poll=poll},90647:function(n,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.createBatchScheduler=void 0;let o=new Map;function createBatchScheduler({fn:n,id:i,shouldSplitBatch:u,wait:l=0,sort:d}){let exec=async()=>{let i=getScheduler();flush();let o=i.map(({args:n})=>n);0!==o.length&&n(o).then(n=>{d&&Array.isArray(n)&&n.sort(d);for(let o=0;o{for(let o=0;oo.delete(i),getBatchedArgs=()=>getScheduler().map(({args:n})=>n),getScheduler=()=>o.get(i)||[],setScheduler=n=>o.set(i,[...getScheduler(),n]);return{flush,async schedule(n){let i={},o=new Promise((n,o)=>{i.resolve=n,i.reject=o}),d=u?.([...getBatchedArgs(),n]);d&&exec();let x=getScheduler().length>0;return x?setScheduler({args:n,pendingPromise:i}):(setScheduler({args:n,pendingPromise:i}),setTimeout(exec,l)),o}}}i.createBatchScheduler=createBatchScheduler},21244:function(n,i){"use strict";function getCache(n){let buildCache=(n,i)=>({clear:()=>i.delete(n),get:()=>i.get(n),set:o=>i.set(n,o)}),o=buildCache(n,i.promiseCache),u=buildCache(n,i.responseCache);return{clear:()=>{o.clear(),u.clear()},promise:o,response:u}}async function withCache(n,{cacheKey:i,cacheTime:o=1/0}){let u=getCache(i),l=u.response.get();if(l&&o>0){let n=new Date().getTime()-l.created.getTime();if(n!0}={}){return new Promise((d,x)=>{let attemptRetry=async({count:I=0}={})=>{let retry=async({error:n})=>{let o="function"==typeof i?i({count:I,error:n}):i;o&&await (0,u.wait)(o),attemptRetry({count:I+1})};try{let i=await n();d(i)}catch(n){if(I{(async()=>{let x;try{let I=new AbortController;o>0&&(x=setTimeout(()=>{u?I.abort():d(i)},o)),l(await n({signal:I?.signal}))}catch(n){"AbortError"===n.name&&d(i),d(n)}finally{clearTimeout(x)}})()})}Object.defineProperty(i,"__esModule",{value:!0}),i.withTimeout=void 0,i.withTimeout=withTimeout},89358:function(n,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.integerRegex=i.bytesRegex=i.arrayRegex=void 0,i.arrayRegex=/^(.*)\[([0-9]*)\]$/,i.bytesRegex=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,i.integerRegex=/^(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)?$/},42502:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.rpc=i.getSocket=i.socketsCache=void 0;let u=o(32944),l=o(39885),d=o(90647),x=o(71500),I=o(95545),R=0;async function http(n,{body:i,fetchOptions:o={},timeout:u=1e4}){let{headers:d,method:j,signal:W}=o;try{let J;let et=await (0,x.withTimeout)(async({signal:l})=>{let x=await fetch(n,{...o,body:Array.isArray(i)?(0,I.stringify)(i.map(n=>({jsonrpc:"2.0",id:n.id??R++,...n}))):(0,I.stringify)({jsonrpc:"2.0",id:i.id??R++,...i}),headers:{...d,"Content-Type":"application/json"},method:j||"POST",signal:W||(u>0?l:void 0)});return x},{errorInstance:new l.TimeoutError({body:i,url:n}),timeout:u,signal:!0});if(J=et.headers.get("Content-Type")?.startsWith("application/json")?await et.json():await et.text(),!et.ok)throw new l.HttpRequestError({body:i,details:(0,I.stringify)(J.error)||et.statusText,headers:et.headers,status:et.status,url:n});return J}catch(o){if(o instanceof l.HttpRequestError||o instanceof l.TimeoutError)throw o;throw new l.HttpRequestError({body:i,details:o.message,url:n})}}async function getSocket(n){let o=i.socketsCache.get(n);if(o)return o;let{schedule:l}=(0,d.createBatchScheduler)({id:n,fn:async()=>{let l=new u.WebSocket(n),d=new Map,x=new Map,onMessage=({data:n})=>{let i=JSON.parse(n),o="eth_subscription"===i.method,u=o?i.params.subscription:i.id,l=o?x:d,I=l.get(u);I&&I({data:n}),o||l.delete(u)},onClose=()=>{i.socketsCache.delete(n),l.removeEventListener("close",onClose),l.removeEventListener("message",onMessage)};return l.addEventListener("close",onClose),l.addEventListener("message",onMessage),l.readyState===u.WebSocket.CONNECTING&&await new Promise((n,i)=>{l&&(l.onopen=n,l.onerror=i)}),o=Object.assign(l,{requests:d,subscriptions:x}),i.socketsCache.set(n,o),[o]}}),[x,[I]]=await l();return I}function webSocket(n,{body:i,onResponse:o}){if(n.readyState===n.CLOSED||n.readyState===n.CLOSING)throw new l.WebSocketRequestError({body:i,url:n.url,details:"Socket is closed."});let u=R++,callback=({data:l})=>{let d=JSON.parse(l);("number"!=typeof d.id||u===d.id)&&(o?.(d),"eth_subscribe"===i.method&&"string"==typeof d.result&&n.subscriptions.set(d.result,callback),"eth_unsubscribe"===i.method&&n.subscriptions.delete(i.params?.[0]))};return n.requests.set(u,callback),n.send(JSON.stringify({jsonrpc:"2.0",...i,id:u})),n}async function webSocketAsync(n,{body:o,timeout:u=1e4}){return(0,x.withTimeout)(()=>new Promise(u=>i.rpc.webSocket(n,{body:o,onResponse:u})),{errorInstance:new l.TimeoutError({body:o,url:n.url}),timeout:u})}i.socketsCache=new Map,i.getSocket=getSocket,i.rpc={http,webSocket,webSocketAsync}},94723:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.compactSignatureToHex=void 0;let u=o(30016),l=o(15798);function compactSignatureToHex({r:n,yParityAndS:i}){return`0x${new u.secp256k1.Signature((0,l.hexToBigInt)(n),(0,l.hexToBigInt)(i)).toCompactHex()}`}i.compactSignatureToHex=compactSignatureToHex},67389:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.compactSignatureToSignature=void 0;let u=o(64056),l=o(82375);function compactSignatureToSignature({r:n,yParityAndS:i}){let o=(0,u.hexToBytes)(i),d=128&o[0]?28n:27n;return 28n===d&&(o[0]&=127),{r:n,s:(0,l.bytesToHex)(o),v:d}}i.compactSignatureToSignature=compactSignatureToSignature},99590:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.hashMessage=void 0;let u=o(47563),l=o(12594),d=o(64056),x=o(42837);function hashMessage(n,i){let o="string"==typeof n?(0,d.stringToBytes)(n):n.raw instanceof Uint8Array?n.raw:(0,d.toBytes)(n.raw),I=(0,d.stringToBytes)(`${u.presignMessagePrefix}${o.length}`);return(0,x.keccak256)((0,l.concat)([I,o]),i)}i.hashMessage=hashMessage},13596:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.hashDomain=i.hashTypedData=void 0;let u=o(17304),l=o(12594),d=o(82375),x=o(42837),I=o(25602);function hashTypedData({domain:n,message:i,primaryType:o,types:u}){let d=void 0===n?{}:n,R={EIP712Domain:(0,I.getTypesForEIP712Domain)({domain:d}),...u};(0,I.validateTypedData)({domain:d,message:i,primaryType:o,types:R});let j=["0x1901"];return d&&j.push(hashDomain({domain:d,types:R})),"EIP712Domain"!==o&&j.push(hashStruct({data:i,primaryType:o,types:R})),(0,x.keccak256)((0,l.concat)(j))}function hashDomain({domain:n,types:i}){return hashStruct({data:n,primaryType:"EIP712Domain",types:i})}function hashStruct({data:n,primaryType:i,types:o}){let u=encodeData({data:n,primaryType:i,types:o});return(0,x.keccak256)(u)}function encodeData({data:n,primaryType:i,types:o}){let l=[{type:"bytes32"}],d=[hashType({primaryType:i,types:o})];for(let u of o[i]){let[i,x]=encodeField({types:o,name:u.name,type:u.type,value:n[u.name]});l.push(i),d.push(x)}return(0,u.encodeAbiParameters)(l,d)}function hashType({primaryType:n,types:i}){let o=(0,d.toHex)(encodeType({primaryType:n,types:i}));return(0,x.keccak256)(o)}function encodeType({primaryType:n,types:i}){let o="",u=findTypeDependencies({primaryType:n,types:i});u.delete(n);let l=[n,...Array.from(u).sort()];for(let n of l)o+=`${n}(${i[n].map(({name:n,type:i})=>`${i} ${n}`).join(",")})`;return o}function findTypeDependencies({primaryType:n,types:i},o=new Set){let u=n.match(/^\w*/u),l=u?.[0];if(o.has(l)||void 0===i[l])return o;for(let n of(o.add(l),i[l]))findTypeDependencies({primaryType:n.type,types:i},o);return o}function encodeField({types:n,name:i,type:o,value:l}){if(void 0!==n[o])return[{type:"bytes32"},(0,x.keccak256)(encodeData({data:l,primaryType:o,types:n}))];if("bytes"===o){let n=l.length%2?"0":"";return l=`0x${n+l.slice(2)}`,[{type:"bytes32"},(0,x.keccak256)(l)]}if("string"===o)return[{type:"bytes32"},(0,x.keccak256)((0,d.toHex)(l))];if(o.lastIndexOf("]")===o.length-1){let d=o.slice(0,o.lastIndexOf("[")),I=l.map(o=>encodeField({name:i,type:d,types:n,value:o}));return[{type:"bytes32"},(0,x.keccak256)((0,u.encodeAbiParameters)(I.map(([n])=>n),I.map(([,n])=>n)))]}return[{type:o},l]}i.hashTypedData=hashTypedData,i.hashDomain=hashDomain},3069:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.hexToCompactSignature=void 0;let u=o(30016),l=o(82375);function hexToCompactSignature(n){let{r:i,s:o}=u.secp256k1.Signature.fromCompact(n.slice(2,130));return{r:(0,l.numberToHex)(i,{size:32}),yParityAndS:(0,l.numberToHex)(o,{size:32})}}i.hexToCompactSignature=hexToCompactSignature},94482:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.hexToSignature=void 0;let u=o(30016),l=o(82375);function hexToSignature(n){let{r:i,s:o}=u.secp256k1.Signature.fromCompact(n.slice(2,130)),d=BigInt(`0x${n.slice(130)}`);return{r:(0,l.numberToHex)(i,{size:32}),s:(0,l.numberToHex)(o,{size:32}),v:d}}i.hexToSignature=hexToSignature},36514:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.recoverAddress=void 0;let u=o(57611),l=o(47124);async function recoverAddress({hash:n,signature:i}){return(0,u.publicKeyToAddress)(await (0,l.recoverPublicKey)({hash:n,signature:i}))}i.recoverAddress=recoverAddress},68731:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.recoverMessageAddress=void 0;let u=o(99590),l=o(36514);async function recoverMessageAddress({message:n,signature:i}){return(0,l.recoverAddress)({hash:(0,u.hashMessage)(n),signature:i})}i.recoverMessageAddress=recoverMessageAddress},47124:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.recoverPublicKey=void 0;let u=o(31358),l=o(15798),d=o(82375);async function recoverPublicKey({hash:n,signature:i}){let x=(0,u.isHex)(i)?i:(0,d.toHex)(i),I=(0,u.isHex)(n)?n:(0,d.toHex)(n),R=(0,l.hexToNumber)(`0x${x.slice(130)}`);(0===R||1===R)&&(R+=27);let{secp256k1:j}=await Promise.resolve().then(()=>o(30016)),W=j.Signature.fromCompact(x.substring(2,130)).addRecoveryBit(R-27).recoverPublicKey(I.substring(2)).toHex(!1);return`0x${W}`}i.recoverPublicKey=recoverPublicKey},398:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.recoverTypedDataAddress=void 0;let u=o(13596),l=o(36514);async function recoverTypedDataAddress({domain:n,message:i,primaryType:o,signature:d,types:x}){return(0,l.recoverAddress)({hash:(0,u.hashTypedData)({domain:n,message:i,primaryType:o,types:x}),signature:d})}i.recoverTypedDataAddress=recoverTypedDataAddress},45696:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.signatureToCompactSignature=void 0;let u=o(60519);function signatureToCompactSignature(n){let{r:i,s:o,v:l}=n,d=o;if(1n===l-27n){let n=(0,u.hexToBytes)(o);n[0]|=128,d=(0,u.bytesToHex)(n)}return{r:i,yParityAndS:d}}i.signatureToCompactSignature=signatureToCompactSignature},28546:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.signatureToHex=void 0;let u=o(30016),l=o(15798),d=o(82375);function signatureToHex({r:n,s:i,v:o}){return`0x${new u.secp256k1.Signature((0,l.hexToBigInt)(n),(0,l.hexToBigInt)(i)).toCompactHex()}${(0,d.toHex)(o).slice(2)}`}i.signatureToHex=signatureToHex},8231:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.verifyMessage=void 0;let u=o(27649),l=o(96252),d=o(68731);async function verifyMessage({address:n,message:i,signature:o}){return(0,l.isAddressEqual)((0,u.getAddress)(n),await (0,d.recoverMessageAddress)({message:i,signature:o}))}i.verifyMessage=verifyMessage},14041:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.verifyTypedData=void 0;let u=o(27649),l=o(96252),d=o(398);async function verifyTypedData({address:n,domain:i,message:o,primaryType:x,signature:I,types:R}){return(0,l.isAddressEqual)((0,u.getAddress)(n),await (0,d.recoverTypedDataAddress)({domain:i,message:o,primaryType:x,signature:I,types:R}))}i.verifyTypedData=verifyTypedData},95545:function(n,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.stringify=void 0,i.stringify=(n,i,o)=>JSON.stringify(n,(n,o)=>{let u="bigint"==typeof o?o.toString():o;return"function"==typeof i?i(n,u):u},o)},86520:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.assertRequest=void 0;let u=o(65621),l=o(69028),d=o(95874),x=o(31681),I=o(41556);function assertRequest(n){let{account:i,gasPrice:o,maxFeePerGas:R,maxPriorityFeePerGas:j,to:W}=n,J=i?(0,u.parseAccount)(i):void 0;if(J&&!(0,I.isAddress)(J.address))throw new l.InvalidAddressError({address:J.address});if(W&&!(0,I.isAddress)(W))throw new l.InvalidAddressError({address:W});if(void 0!==o&&(void 0!==R||void 0!==j))throw new x.FeeConflictError;if(R&&R>2n**256n-1n)throw new d.FeeCapTooHighError({maxFeePerGas:R});if(j&&R&&j>R)throw new d.TipAboveFeeCapError({maxFeePerGas:R,maxPriorityFeePerGas:j})}i.assertRequest=assertRequest},12982:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.assertTransactionLegacy=i.assertTransactionEIP2930=i.assertTransactionEIP1559=void 0;let u=o(69028),l=o(83399),d=o(46580),x=o(95874),I=o(41556);function assertTransactionEIP1559(n){let{chainId:i,maxPriorityFeePerGas:o,gasPrice:R,maxFeePerGas:j,to:W}=n;if(i<=0)throw new d.InvalidChainIdError({chainId:i});if(W&&!(0,I.isAddress)(W))throw new u.InvalidAddressError({address:W});if(R)throw new l.BaseError("`gasPrice` is not a valid EIP-1559 Transaction attribute.");if(j&&j>2n**256n-1n)throw new x.FeeCapTooHighError({maxFeePerGas:j});if(o&&j&&o>j)throw new x.TipAboveFeeCapError({maxFeePerGas:j,maxPriorityFeePerGas:o})}function assertTransactionEIP2930(n){let{chainId:i,maxPriorityFeePerGas:o,gasPrice:R,maxFeePerGas:j,to:W}=n;if(i<=0)throw new d.InvalidChainIdError({chainId:i});if(W&&!(0,I.isAddress)(W))throw new u.InvalidAddressError({address:W});if(o||j)throw new l.BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(R&&R>2n**256n-1n)throw new x.FeeCapTooHighError({maxFeePerGas:R})}function assertTransactionLegacy(n){let{chainId:i,maxPriorityFeePerGas:o,gasPrice:R,maxFeePerGas:j,to:W,accessList:J}=n;if(W&&!(0,I.isAddress)(W))throw new u.InvalidAddressError({address:W});if(void 0!==i&&i<=0)throw new d.InvalidChainIdError({chainId:i});if(o||j)throw new l.BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(R&&R>2n**256n-1n)throw new x.FeeCapTooHighError({maxFeePerGas:R});if(J)throw new l.BaseError("`accessList` is not a valid Legacy Transaction attribute.")}i.assertTransactionEIP1559=assertTransactionEIP1559,i.assertTransactionEIP2930=assertTransactionEIP2930,i.assertTransactionLegacy=assertTransactionLegacy},88918:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getSerializedTransactionType=void 0;let u=o(31681),l=o(25414),d=o(15798);function getSerializedTransactionType(n){let i=(0,l.sliceHex)(n,0,1);if("0x02"===i)return"eip1559";if("0x01"===i)return"eip2930";if("0x"!==i&&(0,d.hexToNumber)(i)>=192)return"legacy";throw new u.InvalidSerializedTransactionTypeError({serializedType:i})}i.getSerializedTransactionType=getSerializedTransactionType},77914:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getTransactionType=void 0;let u=o(31681);function getTransactionType(n){if(n.type)return n.type;if(void 0!==n.maxFeePerGas||void 0!==n.maxPriorityFeePerGas)return"eip1559";if(void 0!==n.gasPrice)return void 0!==n.accessList?"eip2930":"legacy";throw new u.InvalidSerializableTransactionError({transaction:n})}i.getTransactionType=getTransactionType},54776:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.parseAccessList=i.toTransactionArray=i.parseTransaction=void 0;let u=o(69028),l=o(31681),d=o(41556),x=o(31358),I=o(55266),R=o(36615),j=o(15798),W=o(81989),J=o(28708),et=o(12982),ei=o(88918);function parseTransaction(n){let i=(0,ei.getSerializedTransactionType)(n);return"eip1559"===i?parseTransactionEIP1559(n):"eip2930"===i?parseTransactionEIP2930(n):parseTransactionLegacy(n)}function parseTransactionEIP1559(n){let i=toTransactionArray(n),[o,u,d,I,R,W,J,ei,eo,es,eu,ec]=i;if(!(9===i.length||12===i.length))throw new l.InvalidSerializedTransactionError({attributes:{chainId:o,nonce:u,maxPriorityFeePerGas:d,maxFeePerGas:I,gas:R,to:W,value:J,data:ei,accessList:eo,...i.length>9?{v:es,r:eu,s:ec}:{}},serializedTransaction:n,type:"eip1559"});let el={chainId:(0,j.hexToNumber)(o),type:"eip1559"};(0,x.isHex)(W)&&"0x"!==W&&(el.to=W),(0,x.isHex)(R)&&"0x"!==R&&(el.gas=(0,j.hexToBigInt)(R)),(0,x.isHex)(ei)&&"0x"!==ei&&(el.data=ei),(0,x.isHex)(u)&&"0x"!==u&&(el.nonce=(0,j.hexToNumber)(u)),(0,x.isHex)(J)&&"0x"!==J&&(el.value=(0,j.hexToBigInt)(J)),(0,x.isHex)(I)&&"0x"!==I&&(el.maxFeePerGas=(0,j.hexToBigInt)(I)),(0,x.isHex)(d)&&"0x"!==d&&(el.maxPriorityFeePerGas=(0,j.hexToBigInt)(d)),0!==eo.length&&"0x"!==eo&&(el.accessList=parseAccessList(eo)),(0,et.assertTransactionEIP1559)(el);let ed=12===i.length?parseEIP155Signature(i):void 0;return{...ed,...el}}function parseTransactionEIP2930(n){let i=toTransactionArray(n),[o,u,d,I,R,W,J,ei,eo,es,eu]=i;if(!(8===i.length||11===i.length))throw new l.InvalidSerializedTransactionError({attributes:{chainId:o,nonce:u,gasPrice:d,gas:I,to:R,value:W,data:J,accessList:ei,...i.length>8?{v:eo,r:es,s:eu}:{}},serializedTransaction:n,type:"eip2930"});let ec={chainId:(0,j.hexToNumber)(o),type:"eip2930"};(0,x.isHex)(R)&&"0x"!==R&&(ec.to=R),(0,x.isHex)(I)&&"0x"!==I&&(ec.gas=(0,j.hexToBigInt)(I)),(0,x.isHex)(J)&&"0x"!==J&&(ec.data=J),(0,x.isHex)(u)&&"0x"!==u&&(ec.nonce=(0,j.hexToNumber)(u)),(0,x.isHex)(W)&&"0x"!==W&&(ec.value=(0,j.hexToBigInt)(W)),(0,x.isHex)(d)&&"0x"!==d&&(ec.gasPrice=(0,j.hexToBigInt)(d)),0!==ei.length&&"0x"!==ei&&(ec.accessList=parseAccessList(ei)),(0,et.assertTransactionEIP2930)(ec);let el=11===i.length?parseEIP155Signature(i):void 0;return{...el,...ec}}function parseTransactionLegacy(n){let i=(0,W.fromRlp)(n,"hex"),[o,u,d,I,R,J,ei,eo,es]=i;if(!(6===i.length||9===i.length))throw new l.InvalidSerializedTransactionError({attributes:{nonce:o,gasPrice:u,gas:d,to:I,value:R,data:J,...i.length>6?{v:ei,r:eo,s:es}:{}},serializedTransaction:n,type:"legacy"});let eu={type:"legacy"};if((0,x.isHex)(I)&&"0x"!==I&&(eu.to=I),(0,x.isHex)(d)&&"0x"!==d&&(eu.gas=(0,j.hexToBigInt)(d)),(0,x.isHex)(J)&&"0x"!==J&&(eu.data=J),(0,x.isHex)(o)&&"0x"!==o&&(eu.nonce=(0,j.hexToNumber)(o)),(0,x.isHex)(R)&&"0x"!==R&&(eu.value=(0,j.hexToBigInt)(R)),(0,x.isHex)(u)&&"0x"!==u&&(eu.gasPrice=(0,j.hexToBigInt)(u)),(0,et.assertTransactionLegacy)(eu),6===i.length)return eu;let ec=(0,x.isHex)(ei)&&"0x"!==ei?(0,j.hexToBigInt)(ei):0n;if("0x"===es&&"0x"===eo)return ec>0&&(eu.chainId=Number(ec)),eu;let el=Number((ec-35n)/2n);if(el>0)eu.chainId=el;else if(27n!==ec&&28n!==ec)throw new l.InvalidLegacyVError({v:ec});return eu.v=ec,eu.s=es,eu.r=eo,eu}function toTransactionArray(n){return(0,W.fromRlp)(`0x${n.slice(4)}`,"hex")}function parseAccessList(n){let i=[];for(let o=0;o(0,J.isHash)(n)?n:(0,R.trim)(n))})}return i}function parseEIP155Signature(n){let i=n.slice(-3),o="0x"===i[0]||0n===(0,j.hexToBigInt)(i[0])?27n:28n;return{r:(0,I.padHex)(i[1],{size:32}),s:(0,I.padHex)(i[2],{size:32}),v:o,yParity:27n===o?0:1}}i.parseTransaction=parseTransaction,i.toTransactionArray=toTransactionArray,i.parseAccessList=parseAccessList},14646:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.serializeAccessList=void 0;let u=o(69028),l=o(31681),d=o(41556);function serializeAccessList(n){if(!n||0===n.length)return[];let i=[];for(let o=0;o{if(o>0)return BigInt(2*o)+BigInt(35n+i.v-27n);if(i.v>=35n){let n=(i.v-35n)/2n;return n>0?i.v:27n+(35n===i.v?0n:1n)}let n=27n+(27n===i.v?0n:1n);if(i.v!==n)throw new u.InvalidLegacyVError({v:i.v});return n})();ei=[...ei,(0,x.toHex)(n),i.r,i.s]}else o>0&&(ei=[...ei,(0,x.toHex)(o),"0x","0x"]);return(0,I.toRlp)(ei)}i.serializeTransaction=serializeTransaction},25602:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.domainSeparator=i.getTypesForEIP712Domain=i.validateTypedData=void 0;let u=o(39991),l=o(69028),d=o(41556),x=o(98049),I=o(82375),R=o(89358),j=o(13596);function validateTypedData({domain:n,message:i,primaryType:o,types:j}){let validateData=(n,i)=>{for(let o of n){let{name:n,type:W}=o,J=i[n],et=W.match(R.integerRegex);if(et&&("number"==typeof J||"bigint"==typeof J)){let[n,i,o]=et;(0,I.numberToHex)(J,{signed:"int"===i,size:parseInt(o)/8})}if("address"===W&&"string"==typeof J&&!(0,d.isAddress)(J))throw new l.InvalidAddressError({address:J});let ei=W.match(R.bytesRegex);if(ei){let[n,i]=ei;if(i&&(0,x.size)(J)!==parseInt(i))throw new u.BytesSizeMismatchError({expectedSize:parseInt(i),givenSize:(0,x.size)(J)})}let eo=j[W];eo&&validateData(eo,J)}};if(j.EIP712Domain&&n&&validateData(j.EIP712Domain,n),"EIP712Domain"!==o){let n=j[o];validateData(n,i)}}function getTypesForEIP712Domain({domain:n}){return["string"==typeof n?.name&&{name:"name",type:"string"},n?.version&&{name:"version",type:"string"},"number"==typeof n?.chainId&&{name:"chainId",type:"uint256"},n?.verifyingContract&&{name:"verifyingContract",type:"address"},n?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean)}function domainSeparator({domain:n}){return(0,j.hashDomain)({domain:n,types:{EIP712Domain:getTypesForEIP712Domain({domain:n})}})}i.validateTypedData=validateTypedData,i.getTypesForEIP712Domain=getTypesForEIP712Domain,i.domainSeparator=domainSeparator},32354:function(n,i){"use strict";let o;Object.defineProperty(i,"__esModule",{value:!0}),i.uid=void 0;let u=256;function uid(n=11){if(!o||u+n>512){o="",u=0;for(let n=0;n<256;n++)o+=(256+256*Math.random()|0).toString(16).substring(1)}return o.substring(u,u+++n)}i.uid=uid},18107:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.formatEther=void 0;let u=o(8768),l=o(34791);function formatEther(n,i="wei"){return(0,l.formatUnits)(n,u.etherUnits[i])}i.formatEther=formatEther},91604:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.formatGwei=void 0;let u=o(8768),l=o(34791);function formatGwei(n,i="wei"){return(0,l.formatUnits)(n,u.gweiUnits[i])}i.formatGwei=formatGwei},34791:function(n,i){"use strict";function formatUnits(n,i){let o=n.toString(),u=o.startsWith("-");u&&(o=o.slice(1));let[l,d]=[(o=o.padStart(i,"0")).slice(0,o.length-i),o.slice(o.length-i)];return d=d.replace(/(0+)$/,""),`${u?"-":""}${l||"0"}${d?`.${d}`:""}`}Object.defineProperty(i,"__esModule",{value:!0}),i.formatUnits=void 0,i.formatUnits=formatUnits},98976:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.parseEther=void 0;let u=o(8768),l=o(15666);function parseEther(n,i="wei"){return(0,l.parseUnits)(n,u.etherUnits[i])}i.parseEther=parseEther},79972:function(n,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.parseGwei=void 0;let u=o(8768),l=o(15666);function parseGwei(n,i="wei"){return(0,l.parseUnits)(n,u.gweiUnits[i])}i.parseGwei=parseGwei},15666:function(n,i){"use strict";function parseUnits(n,i){let[o,u="0"]=n.split("."),l=o.startsWith("-");if(l&&(o=o.slice(1)),u=u.replace(/(0+)$/,""),0===i)1===Math.round(Number(`.${u}`))&&(o=`${BigInt(o)+1n}`),u="";else if(u.length>i){let[n,l,d]=[u.slice(0,i-1),u.slice(i-1,i),u.slice(i)],x=Math.round(Number(`${l}.${d}`));(u=x>9?`${BigInt(n)+BigInt(1)}0`.padStart(n.length+1,"0"):`${n}${x}`).length>i&&(u=u.slice(1),o=`${BigInt(o)+1n}`),u=u.slice(0,i)}else u=u.padEnd(i,"0");return BigInt(`${l?"-":""}${o}${u}`)}Object.defineProperty(i,"__esModule",{value:!0}),i.parseUnits=void 0,i.parseUnits=parseUnits},26040:function(n,i){"use strict";async function wait(n){return new Promise(i=>setTimeout(i,n))}Object.defineProperty(i,"__esModule",{value:!0}),i.wait=void 0,i.wait=wait},60338:function(n,i,o){"use strict";function normalizeChainId(n){return"string"==typeof n?Number.parseInt(n,"0x"===n.trim().substring(0,2)?16:10):"bigint"==typeof n?Number(n):n}o.d(i,{J:function(){return normalizeChainId}})},48381:function(n,i,o){"use strict";o.d(i,{_:function(){return et}});var u,l=o(7688),d=o(60338),x=o(45098),I=o(95569),R=o(14245),j=o(13323),W=o(99353),J=o(21502);function getInjectedName(n){if(!n)return"Injected";let getName=n=>n.isApexWallet?"Apex Wallet":n.isAvalanche?"Core Wallet":n.isBackpack?"Backpack":n.isBifrost?"Bifrost Wallet":n.isBitKeep?"BitKeep":n.isBitski?"Bitski":n.isBlockWallet?"BlockWallet":n.isBraveWallet?"Brave Wallet":n.isCoin98?"Coin98 Wallet":n.isCoinbaseWallet?"Coinbase Wallet":n.isDawn?"Dawn Wallet":n.isDefiant?"Defiant":n.isDesig?"Desig Wallet":n.isEnkrypt?"Enkrypt":n.isExodus?"Exodus":n.isFordefi?"Fordefi":n.isFrame?"Frame":n.isFrontier?"Frontier Wallet":n.isGamestop?"GameStop Wallet":n.isHaqqWallet?"HAQQ Wallet":n.isHyperPay?"HyperPay Wallet":n.isImToken?"ImToken":n.isHaloWallet?"Halo Wallet":n.isKuCoinWallet?"KuCoin Wallet":n.isMathWallet?"MathWallet":n.isNovaWallet?"Nova Wallet":n.isOkxWallet||n.isOKExWallet?"OKX Wallet":n.isOktoWallet?"Okto Wallet":n.isOneInchIOSWallet||n.isOneInchAndroidWallet?"1inch Wallet":n.isOneKey?"OneKey Wallet":n.isOpera?"Opera":n.isPhantom?"Phantom":n.isPortal?"Ripio Portal":n.isRabby?"Rabby Wallet":n.isRainbow?"Rainbow":n.isSafePal?"SafePal Wallet":n.isStatus?"Status":n.isSubWallet?"SubWallet":n.isTalisman?"Talisman":n.isTally?"Taho":n.isTokenPocket?"TokenPocket":n.isTokenary?"Tokenary":n.isTrust||n.isTrustWallet?"Trust Wallet":n.isTTWallet?"TTWallet":n.isXDEFI?"XDEFI Wallet":n.isZeal?"Zeal":n.isZerion?"Zerion":n.isMetaMask?"MetaMask":void 0;if(n.providers?.length){let i=new Set,o=1;for(let u of n.providers){let n=getName(u);n||(n=`Unknown Wallet #${o}`,o+=1),i.add(n)}let u=[...i];return u.length?u:u[0]??"Injected"}return getName(n)??"Injected"}var et=class extends x.wR{constructor({chains:n,options:i}={}){let o={shimDisconnect:!0,getProvider(){if("undefined"==typeof window)return;let n=window.ethereum;return n?.providers&&n.providers.length>0?n.providers[0]:n},...i};super({chains:n,options:o}),this.id="injected",(0,x.Ko)(this,u,void 0),this.shimDisconnectKey=`${this.id}.shimDisconnect`,this.onAccountsChanged=n=>{0===n.length?this.emit("disconnect"):this.emit("change",{account:(0,I.K)(n[0])})},this.onChainChanged=n=>{let i=(0,d.J)(n),o=this.isChainUnsupported(i);this.emit("change",{chain:{id:i,unsupported:o}})},this.onDisconnect=async n=>{if(1013===n.code){let n=await this.getProvider();if(n){let n=await this.getAccount();if(n)return}}this.emit("disconnect"),this.options.shimDisconnect&&this.storage?.removeItem(this.shimDisconnectKey)};let l=o.getProvider();if("string"==typeof o.name)this.name=o.name;else if(l){let n=getInjectedName(l);o.name?this.name=o.name(n):"string"==typeof n?this.name=n:this.name=n[0]}else this.name="Injected";this.ready=!!l}async connect({chainId:n}={}){try{let i=await this.getProvider();if(!i)throw new l.N;i.on&&(i.on("accountsChanged",this.onAccountsChanged),i.on("chainChanged",this.onChainChanged),i.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});let o=await i.request({method:"eth_requestAccounts"}),u=(0,I.K)(o[0]),d=await this.getChainId(),x=this.isChainUnsupported(d);if(n&&d!==n){let i=await this.switchChain(n);d=i.id,x=this.isChainUnsupported(d)}return this.options.shimDisconnect&&this.storage?.setItem(this.shimDisconnectKey,!0),{account:u,chain:{id:d,unsupported:x}}}catch(n){if(this.isUserRejectedRequestError(n))throw new R.ab(n);if(-32002===n.code)throw new R.pT(n);throw n}}async disconnect(){let n=await this.getProvider();n?.removeListener&&(n.removeListener("accountsChanged",this.onAccountsChanged),n.removeListener("chainChanged",this.onChainChanged),n.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&this.storage?.removeItem(this.shimDisconnectKey))}async getAccount(){let n=await this.getProvider();if(!n)throw new l.N;let i=await n.request({method:"eth_accounts"});return(0,I.K)(i[0])}async getChainId(){let n=await this.getProvider();if(!n)throw new l.N;return n.request({method:"eth_chainId"}).then(d.J)}async getProvider(){let n=this.options.getProvider();return n&&(0,x.qx)(this,u,n),(0,x.ac)(this,u)}async getWalletClient({chainId:n}={}){let[i,o]=await Promise.all([this.getProvider(),this.getAccount()]),u=this.chains.find(i=>i.id===n);if(!i)throw Error("provider is required.");return(0,j.K)({account:o,chain:u,transport:(0,W.P)(i)})}async isAuthorized(){try{if(this.options.shimDisconnect&&!this.storage?.getItem(this.shimDisconnectKey))return!1;let n=await this.getProvider();if(!n)throw new l.N;let i=await this.getAccount();return!!i}catch{return!1}}async switchChain(n){let i=await this.getProvider();if(!i)throw new l.N;let o=(0,J.eC)(n);try{return await Promise.all([i.request({method:"wallet_switchEthereumChain",params:[{chainId:o}]}),new Promise(i=>this.on("change",({chain:o})=>{o?.id===n&&i()}))]),this.chains.find(i=>i.id===n)??{id:n,name:`Chain ${o}`,network:`${o}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(d){let u=this.chains.find(i=>i.id===n);if(!u)throw new l.B({chainId:n,connectorId:this.id});if(4902===d.code||d?.data?.originalError?.code===4902)try{await i.request({method:"wallet_addEthereumChain",params:[{chainId:o,chainName:u.name,nativeCurrency:u.nativeCurrency,rpcUrls:[u.rpcUrls.public?.http[0]??""],blockExplorerUrls:this.getBlockExplorerUrls(u)}]});let l=await this.getChainId();if(l!==n)throw new R.ab(Error("User rejected switch after adding network."));return u}catch(n){throw new R.ab(n)}if(this.isUserRejectedRequestError(d))throw new R.ab(d);throw new R.x3(d)}}async watchAsset({address:n,decimals:i=18,image:o,symbol:u}){let d=await this.getProvider();if(!d)throw new l.N;return d.request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:n,decimals:i,image:o,symbol:u}}})}isUserRejectedRequestError(n){return 4001===n.code}};u=new WeakMap},7688:function(n,i,o){"use strict";o.d(i,{B:function(){return u},N:function(){return l}});var u=class extends Error{constructor({chainId:n,connectorId:i}){super(`Chain "${n}" not configured for connector "${i}".`),this.name="ChainNotConfiguredForConnectorError"}},l=class extends Error{constructor(){super(...arguments),this.name="ConnectorNotFoundError",this.message="Connector not found"}}},45098:function(n,i,o){"use strict";o.d(i,{wR:function(){return I},Ko:function(){return __privateAdd},ac:function(){return __privateGet},U9:function(){return __privateMethod},qx:function(){return __privateSet}});var u=o(47913),l=o(99463),d=o(46319);let x=(0,d.a)({id:5,network:"goerli",name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-goerli.g.alchemy.com/v2"],webSocket:["wss://eth-goerli.g.alchemy.com/v2"]},infura:{http:["https://goerli.infura.io/v3"],webSocket:["wss://goerli.infura.io/ws/v3"]},default:{http:["https://rpc.ankr.com/eth_goerli"]},public:{http:["https://rpc.ankr.com/eth_goerli"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://goerli.etherscan.io"},default:{name:"Etherscan",url:"https://goerli.etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0x56522D00C410a43BFfDF00a9A569489297385790",blockCreated:8765204},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0});var __accessCheck=(n,i,o)=>{if(!i.has(n))throw TypeError("Cannot "+o)},__privateGet=(n,i,o)=>(__accessCheck(n,i,"read from private field"),o?o.call(n):i.get(n)),__privateAdd=(n,i,o)=>{if(i.has(n))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(n):i.set(n,o)},__privateSet=(n,i,o,u)=>(__accessCheck(n,i,"write to private field"),u?u.call(n,o):i.set(n,o),o),__privateMethod=(n,i,o)=>(__accessCheck(n,i,"access private method"),o),I=class extends u{constructor({chains:n=[l.R,x],options:i}){super(),this.chains=n,this.options=i}getBlockExplorerUrls(n){let{default:i,...o}=n.blockExplorers??{};if(i)return[i.url,...Object.values(o).map(n=>n.url)]}isChainUnsupported(n){return!this.chains.some(i=>i.id===n)}setStorage(n){this.storage=n}}},66310:function(n,i,o){"use strict";o.d(i,{D:function(){return ei}});var u,l,d=o(7688),x=o(60338),I=o(45098),R=o(95569),j=o(14245),W=o(13323),J=o(99353),et=o(21502),ei=class extends I.wR{constructor({chains:n,options:i}){super({chains:n,options:{reloadOnDisconnect:!1,...i}}),this.id="coinbaseWallet",this.name="Coinbase Wallet",this.ready=!0,(0,I.Ko)(this,u,void 0),(0,I.Ko)(this,l,void 0),this.onAccountsChanged=n=>{0===n.length?this.emit("disconnect"):this.emit("change",{account:(0,R.K)(n[0])})},this.onChainChanged=n=>{let i=(0,x.J)(n),o=this.isChainUnsupported(i);this.emit("change",{chain:{id:i,unsupported:o}})},this.onDisconnect=()=>{this.emit("disconnect")}}async connect({chainId:n}={}){try{let i=await this.getProvider();i.on("accountsChanged",this.onAccountsChanged),i.on("chainChanged",this.onChainChanged),i.on("disconnect",this.onDisconnect),this.emit("message",{type:"connecting"});let o=await i.enable(),u=(0,R.K)(o[0]),l=await this.getChainId(),d=this.isChainUnsupported(l);if(n&&l!==n){let i=await this.switchChain(n);l=i.id,d=this.isChainUnsupported(l)}return{account:u,chain:{id:l,unsupported:d}}}catch(n){if(/(user closed modal|accounts received is empty)/i.test(n.message))throw new j.ab(n);throw n}}async disconnect(){if(!(0,I.ac)(this,l))return;let n=await this.getProvider();n.removeListener("accountsChanged",this.onAccountsChanged),n.removeListener("chainChanged",this.onChainChanged),n.removeListener("disconnect",this.onDisconnect),n.disconnect(),n.close()}async getAccount(){let n=await this.getProvider(),i=await n.request({method:"eth_accounts"});return(0,R.K)(i[0])}async getChainId(){let n=await this.getProvider(),i=(0,x.J)(n.chainId);return i}async getProvider(){if(!(0,I.ac)(this,l)){let n=(await Promise.all([o.e(840),o.e(960)]).then(o.t.bind(o,46840,19))).default;"function"!=typeof n&&"function"==typeof n.default&&(n=n.default),(0,I.qx)(this,u,new n(this.options));let i=I.ac(this,u).walletExtension?.getChainId(),d=this.chains.find(n=>this.options.chainId?n.id===this.options.chainId:n.id===i)||this.chains[0],x=this.options.chainId||d?.id,R=this.options.jsonRpcUrl||d?.rpcUrls.default.http[0];(0,I.qx)(this,l,(0,I.ac)(this,u).makeWeb3Provider(R,x))}return(0,I.ac)(this,l)}async getWalletClient({chainId:n}={}){let[i,o]=await Promise.all([this.getProvider(),this.getAccount()]),u=this.chains.find(i=>i.id===n);if(!i)throw Error("provider is required.");return(0,W.K)({account:o,chain:u,transport:(0,J.P)(i)})}async isAuthorized(){try{let n=await this.getAccount();return!!n}catch{return!1}}async switchChain(n){let i=await this.getProvider(),o=(0,et.eC)(n);try{return await i.request({method:"wallet_switchEthereumChain",params:[{chainId:o}]}),this.chains.find(i=>i.id===n)??{id:n,name:`Chain ${o}`,network:`${o}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(l){let u=this.chains.find(i=>i.id===n);if(!u)throw new d.B({chainId:n,connectorId:this.id});if(4902===l.code)try{return await i.request({method:"wallet_addEthereumChain",params:[{chainId:o,chainName:u.name,nativeCurrency:u.nativeCurrency,rpcUrls:[u.rpcUrls.public?.http[0]??""],blockExplorerUrls:this.getBlockExplorerUrls(u)}]}),u}catch(n){throw new j.ab(n)}throw new j.x3(l)}}async watchAsset({address:n,decimals:i=18,image:o,symbol:u}){let l=await this.getProvider();return l.request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:n,decimals:i,image:o,symbol:u}}})}};u=new WeakMap,l=new WeakMap},86417:function(n,i,o){"use strict";o.d(i,{i:function(){return j}});var u,l=o(48381),d=o(7688),x=o(45098),I=o(14245),R=o(95569),j=class extends l._{constructor({chains:n,options:i}={}){let o={name:"MetaMask",shimDisconnect:!0,getProvider(){function getReady(n){let i=!!n?.isMetaMask;if(i&&(!n.isBraveWallet||n._events||n._state)&&!n.isApexWallet&&!n.isAvalanche&&!n.isBitKeep&&!n.isBlockWallet&&!n.isCoin98&&!n.isFordefi&&!n.isMathWallet&&!n.isOkxWallet&&!n.isOKExWallet&&!n.isOneInchIOSWallet&&!n.isOneInchAndroidWallet&&!n.isOpera&&!n.isPortal&&!n.isRabby&&!n.isDefiant&&!n.isTokenPocket&&!n.isTokenary&&!n.isZeal&&!n.isZerion)return n}if("undefined"==typeof window)return;let n=window.ethereum;return n?.providers?n.providers.find(getReady):getReady(n)},...i};super({chains:n,options:o}),this.id="metaMask",this.shimDisconnectKey=`${this.id}.shimDisconnect`,(0,x.Ko)(this,u,void 0),(0,x.qx)(this,u,o.UNSTABLE_shimOnConnectSelectAccount)}async connect({chainId:n}={}){try{let i=await this.getProvider();if(!i)throw new d.N;i.on&&(i.on("accountsChanged",this.onAccountsChanged),i.on("chainChanged",this.onChainChanged),i.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});let o=null;if((0,x.ac)(this,u)&&this.options?.shimDisconnect&&!this.storage?.getItem(this.shimDisconnectKey)){o=await this.getAccount().catch(()=>null);let n=!!o;if(n)try{await i.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]}),o=await this.getAccount()}catch(n){if(this.isUserRejectedRequestError(n))throw new I.ab(n);if(n.code===new I.pT(n).code)throw n}}if(!o){let n=await i.request({method:"eth_requestAccounts"});o=(0,R.K)(n[0])}let l=await this.getChainId(),j=this.isChainUnsupported(l);if(n&&l!==n){let i=await this.switchChain(n);l=i.id,j=this.isChainUnsupported(l)}return this.options?.shimDisconnect&&this.storage?.setItem(this.shimDisconnectKey,!0),{account:o,chain:{id:l,unsupported:j},provider:i}}catch(n){if(this.isUserRejectedRequestError(n))throw new I.ab(n);if(-32002===n.code)throw new I.pT(n);throw n}}};u=new WeakMap},600:function(n,i,o){"use strict";o.d(i,{J:function(){return ei}});var u,l,d=o(7688),x=o(60338),I=o(45098),R=o(46921),j=o(8541),W=o(95569),J=o(13323),et=o(99353),ei=class extends I.wR{constructor({chains:n,options:i}){let o={shimDisconnect:!1,...i};super({chains:n,options:o}),this.id="safe",this.name="Safe",this.ready="undefined"!=typeof window&&window?.parent!==window,(0,I.Ko)(this,u,void 0),(0,I.Ko)(this,l,void 0),this.shimDisconnectKey=`${this.id}.shimDisconnect`;let d=j;"function"!=typeof j&&"function"==typeof j.default&&(d=j.default),(0,I.qx)(this,l,new d(o))}async connect(){let n=await this.getProvider();if(!n)throw new d.N;n.on&&(n.on("accountsChanged",this.onAccountsChanged),n.on("chainChanged",this.onChainChanged),n.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});let i=await this.getAccount(),o=await this.getChainId();return this.options.shimDisconnect&&this.storage?.setItem(this.shimDisconnectKey,!0),{account:i,chain:{id:o,unsupported:this.isChainUnsupported(o)}}}async disconnect(){let n=await this.getProvider();n?.removeListener&&(n.removeListener("accountsChanged",this.onAccountsChanged),n.removeListener("chainChanged",this.onChainChanged),n.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&this.storage?.removeItem(this.shimDisconnectKey))}async getAccount(){let n=await this.getProvider();if(!n)throw new d.N;let i=await n.request({method:"eth_accounts"});return(0,W.K)(i[0])}async getChainId(){let n=await this.getProvider();if(!n)throw new d.N;return(0,x.J)(n.chainId)}async getProvider(){if(!(0,I.ac)(this,u)){let n=await (0,I.ac)(this,l).safe.getInfo();if(!n)throw Error("Could not load Safe information");(0,I.qx)(this,u,new R.N(n,(0,I.ac)(this,l)))}return(0,I.ac)(this,u)}async getWalletClient({chainId:n}={}){let i=await this.getProvider(),o=await this.getAccount(),u=this.chains.find(i=>i.id===n);if(!i)throw Error("provider is required.");return(0,J.K)({account:o,chain:u,transport:(0,et.P)(i)})}async isAuthorized(){try{if(this.options.shimDisconnect&&!this.storage?.getItem(this.shimDisconnectKey))return!1;let n=await this.getAccount();return!!n}catch{return!1}}onAccountsChanged(n){}onChainChanged(n){}onDisconnect(){this.emit("disconnect")}};u=new WeakMap,l=new WeakMap},85921:function(n,i,o){"use strict";o.d(i,{z:function(){return eA}});var u,l,d,x,I,R,j,W,J,et,ei,eo,es,eu,ec,el,ed,ef,eh,ep,em=o(45098),eg=o(86070),ey=o(95569),eb=o(14245),ev=o(13323),eE=o(99353),ew=o(21502),eP="eip155",ex="requestedChains",eT="wallet_addEthereumChain",eA=class extends em.wR{constructor(n){super({...n,options:{isNewChainsStale:!0,...n.options}}),(0,em.Ko)(this,d),(0,em.Ko)(this,I),(0,em.Ko)(this,j),(0,em.Ko)(this,J),(0,em.Ko)(this,ei),(0,em.Ko)(this,es),(0,em.Ko)(this,ec),(0,em.Ko)(this,ed),(0,em.Ko)(this,eh),this.id="walletConnect",this.name="WalletConnect",this.ready=!0,(0,em.Ko)(this,u,void 0),(0,em.Ko)(this,l,void 0),this.onAccountsChanged=n=>{0===n.length?this.emit("disconnect"):this.emit("change",{account:(0,ey.K)(n[0])})},this.onChainChanged=n=>{let i=Number(n),o=this.isChainUnsupported(i);this.emit("change",{chain:{id:i,unsupported:o}})},this.onDisconnect=()=>{(0,em.U9)(this,es,eu).call(this,[]),this.emit("disconnect")},this.onDisplayUri=n=>{this.emit("message",{type:"display_uri",data:n})},this.onConnect=()=>{this.emit("connect",{})},(0,em.U9)(this,d,x).call(this)}async connect({chainId:n,pairingTopic:i}={}){try{let o=n;if(!o){let n=this.storage?.getItem("store"),i=n?.state?.data?.chain?.id;o=i&&!this.isChainUnsupported(i)?i:this.chains[0]?.id}if(!o)throw Error("No chains found on connector.");let u=await this.getProvider();(0,em.U9)(this,J,et).call(this);let l=(0,em.U9)(this,j,W).call(this);if(u.session&&l&&await u.disconnect(),!u.session||l){let n=this.chains.filter(n=>n.id!==o).map(n=>n.id);this.emit("message",{type:"connecting"}),await u.connect({pairingTopic:i,optionalChains:[o,...n]}),(0,em.U9)(this,es,eu).call(this,this.chains.map(({id:n})=>n))}let d=await u.enable(),x=(0,ey.K)(d[0]),I=await this.getChainId(),R=this.isChainUnsupported(I);return{account:x,chain:{id:I,unsupported:R}}}catch(n){if(/user rejected/i.test(n?.message))throw new eb.ab(n);throw n}}async disconnect(){let n=await this.getProvider();try{await n.disconnect()}catch(n){if(!/No matching key/i.test(n.message))throw n}finally{(0,em.U9)(this,ei,eo).call(this),(0,em.U9)(this,es,eu).call(this,[])}}async getAccount(){let{accounts:n}=await this.getProvider();return(0,ey.K)(n[0])}async getChainId(){let{chainId:n}=await this.getProvider();return n}async getProvider({chainId:n}={}){return(0,em.ac)(this,u)||await (0,em.U9)(this,d,x).call(this),n&&await this.switchChain(n),(0,em.ac)(this,u)}async getWalletClient({chainId:n}={}){let[i,o]=await Promise.all([this.getProvider({chainId:n}),this.getAccount()]),u=this.chains.find(i=>i.id===n);if(!i)throw Error("provider is required.");return(0,ev.K)({account:o,chain:u,transport:(0,eE.P)(i)})}async isAuthorized(){try{let[n,i]=await Promise.all([this.getAccount(),this.getProvider()]),o=(0,em.U9)(this,j,W).call(this);if(!n)return!1;if(o&&i.session){try{await i.disconnect()}catch{}return!1}return!0}catch{return!1}}async switchChain(n){let i=this.chains.find(i=>i.id===n);if(!i)throw new eb.x3(Error("chain not found on connector."));try{let o=await this.getProvider(),u=(0,em.U9)(this,ed,ef).call(this),l=(0,em.U9)(this,eh,ep).call(this),d=u.includes(n);if(!d&&l.includes(eT)){await o.request({method:eT,params:[{chainId:(0,ew.eC)(i.id),blockExplorerUrls:[i.blockExplorers?.default?.url],chainName:i.name,nativeCurrency:i.nativeCurrency,rpcUrls:[...i.rpcUrls.default.http]}]});let u=(0,em.U9)(this,ec,el).call(this);u.push(n),(0,em.U9)(this,es,eu).call(this,u)}return await o.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,ew.eC)(n)}]}),i}catch(i){let n="string"==typeof i?i:i?.message;if(/user rejected request/i.test(n))throw new eb.ab(i);throw new eb.x3(i)}}};u=new WeakMap,l=new WeakMap,d=new WeakSet,x=async function(){return(0,em.ac)(this,l)||"undefined"==typeof window||(0,em.qx)(this,l,(0,em.U9)(this,I,R).call(this)),(0,em.ac)(this,l)},I=new WeakSet,R=async function(){let{EthereumProvider:n}=await Promise.all([o.e(377),o.e(723)]).then(o.bind(o,79820)),i=this.chains.map(({id:n})=>n);if(i.length){let{projectId:o,showQrModal:l=!0,qrModalOptions:d,metadata:x,relayUrl:I}=this.options;(0,em.qx)(this,u,await n.init({showQrModal:l,qrModalOptions:d,projectId:o,optionalChains:i,rpcMap:Object.fromEntries(this.chains.map(n=>[n.id,n.rpcUrls.default.http[0]])),metadata:x,relayUrl:I}))}},j=new WeakSet,W=function(){let n=(0,em.U9)(this,eh,ep).call(this);if(n.includes(eT)||!this.options.isNewChainsStale)return!1;let i=(0,em.U9)(this,ec,el).call(this),o=this.chains.map(({id:n})=>n),u=(0,em.U9)(this,ed,ef).call(this);return(!u.length||!!u.some(n=>o.includes(n)))&&!o.every(n=>i.includes(n))},J=new WeakSet,et=function(){(0,em.ac)(this,u)&&((0,em.U9)(this,ei,eo).call(this),(0,em.ac)(this,u).on("accountsChanged",this.onAccountsChanged),(0,em.ac)(this,u).on("chainChanged",this.onChainChanged),(0,em.ac)(this,u).on("disconnect",this.onDisconnect),(0,em.ac)(this,u).on("session_delete",this.onDisconnect),(0,em.ac)(this,u).on("display_uri",this.onDisplayUri),(0,em.ac)(this,u).on("connect",this.onConnect))},ei=new WeakSet,eo=function(){(0,em.ac)(this,u)&&((0,em.ac)(this,u).removeListener("accountsChanged",this.onAccountsChanged),(0,em.ac)(this,u).removeListener("chainChanged",this.onChainChanged),(0,em.ac)(this,u).removeListener("disconnect",this.onDisconnect),(0,em.ac)(this,u).removeListener("session_delete",this.onDisconnect),(0,em.ac)(this,u).removeListener("display_uri",this.onDisplayUri),(0,em.ac)(this,u).removeListener("connect",this.onConnect))},es=new WeakSet,eu=function(n){this.storage?.setItem(ex,n)},ec=new WeakSet,el=function(){return this.storage?.getItem(ex)??[]},ed=new WeakSet,ef=function(){if(!(0,em.ac)(this,u))return[];let n=em.ac(this,u).session?.namespaces;if(!n)return[];let i=(0,eg.fK)(n),o=i[eP]?.chains?.map(n=>parseInt(n.split(":")[1]||""));return o??[]},eh=new WeakSet,ep=function(){if(!(0,em.ac)(this,u))return[];let n=em.ac(this,u).session?.namespaces;if(!n)return[];let i=(0,eg.fK)(n),o=i[eP]?.methods;return o??[]}},44984:function(n,i,o){"use strict";o.d(i,{O:function(){return eo}});var u,l,d,x=o(60338),I=o(45098),R=o(95569),j=o(14245),W=o(13323),J=o(99353),et=o(21502),ei=/(imtoken|metamask|rainbow|trust wallet|uniswap wallet|ledger)/i,eo=class extends I.wR{constructor(){super(...arguments),(0,I.Ko)(this,l),this.id="walletConnectLegacy",this.name="WalletConnectLegacy",this.ready=!0,(0,I.Ko)(this,u,void 0),this.onAccountsChanged=n=>{0===n.length?this.emit("disconnect"):this.emit("change",{account:(0,R.K)(n[0])})},this.onChainChanged=n=>{let i=(0,x.J)(n),o=this.isChainUnsupported(i);this.emit("change",{chain:{id:i,unsupported:o}})},this.onDisconnect=()=>{this.emit("disconnect")}}async connect({chainId:n}={}){try{let i=n;if(!i){let n=this.storage?.getItem("store"),o=n?.state?.data?.chain?.id;o&&!this.isChainUnsupported(o)&&(i=o)}let o=await this.getProvider({chainId:i,create:!0});o.on("accountsChanged",this.onAccountsChanged),o.on("chainChanged",this.onChainChanged),o.on("disconnect",this.onDisconnect),setTimeout(()=>this.emit("message",{type:"connecting"}),0);let u=await o.enable(),x=(0,R.K)(u[0]),j=await this.getChainId(),W=this.isChainUnsupported(j),J=o.connector?.peerMeta?.name??"";return ei.test(J)&&(this.switchChain=(0,I.U9)(this,l,d)),{account:x,chain:{id:j,unsupported:W}}}catch(n){if(/user closed modal/i.test(n.message))throw new j.ab(n);throw n}}async disconnect(){let n=await this.getProvider();await n.disconnect(),n.removeListener("accountsChanged",this.onAccountsChanged),n.removeListener("chainChanged",this.onChainChanged),n.removeListener("disconnect",this.onDisconnect),"undefined"!=typeof localStorage&&localStorage.removeItem("walletconnect")}async getAccount(){let n=await this.getProvider(),i=n.accounts;return(0,R.K)(i[0])}async getChainId(){let n=await this.getProvider(),i=(0,x.J)(n.chainId);return i}async getProvider({chainId:n,create:i}={}){if(!(0,I.ac)(this,u)||n||i){let i=this.options?.infuraId?{}:this.chains.reduce((n,i)=>({...n,[i.id]:i.rpcUrls.default.http[0]}),{}),l=(await Promise.all([o.e(377),o.e(212)]).then(o.bind(o,7212))).default;(0,I.qx)(this,u,new l({...this.options,chainId:n,rpc:{...i,...this.options?.rpc}})),(0,I.ac)(this,u).http=await (0,I.ac)(this,u).setHttpProvider(n)}return(0,I.ac)(this,u)}async getWalletClient({chainId:n}={}){let[i,o]=await Promise.all([this.getProvider({chainId:n}),this.getAccount()]),u=this.chains.find(i=>i.id===n);if(!i)throw Error("provider is required.");return(0,W.K)({account:o,chain:u,transport:(0,J.P)(i)})}async isAuthorized(){try{let n=await this.getAccount();return!!n}catch{return!1}}};u=new WeakMap,l=new WeakSet,d=async function(n){let i=await this.getProvider(),o=(0,et.eC)(n);try{return await Promise.race([i.request({method:"wallet_switchEthereumChain",params:[{chainId:o}]}),new Promise(i=>this.on("change",({chain:o})=>{o?.id===n&&i(n)}))]),this.chains.find(i=>i.id===n)??{id:n,name:`Chain ${o}`,network:`${o}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(i){let n="string"==typeof i?i:i?.message;if(/user rejected request/i.test(n))throw new j.ab(i);throw new j.x3(i)}}},36234:function(n,i,o){"use strict";o.d(i,{QB:function(){return configureChains},$j:function(){return connect},_g:function(){return createConfig},o6:function(){return createStorage},vZ:function(){return deepEqual},zP:function(){return disconnect},EG:function(){return fetchBalance},RQ:function(){return fetchBlockNumber},bh:function(){return fetchEnsAddress},w6:function(){return fetchEnsAvatar},Lk:function(){return fetchEnsName},D0:function(){return getAccount},Hy:function(){return getNetwork},uV:function(){return getPublicClient},xz:function(){return getWalletClient},jr:function(){return getWebSocketPublicClient},wp:function(){return tl},If:function(){return switchNetwork},uH:function(){return watchAccount},QC:function(){return watchNetwork},pC:function(){return watchPublicClient},Tb:function(){return watchWalletClient},fq:function(){return watchWebSocketPublicClient}});var u,l,d,x,I,R=o(48381),__accessCheck=(n,i,o)=>{if(!i.has(n))throw TypeError("Cannot "+o)},__privateGet=(n,i,o)=>(__accessCheck(n,i,"read from private field"),o?o.call(n):i.get(n)),__privateAdd=(n,i,o)=>{if(i.has(n))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(n):i.set(n,o)},__privateSet=(n,i,o,u)=>(__accessCheck(n,i,"write to private field"),u?u.call(n,o):i.set(n,o),o),__privateMethod=(n,i,o)=>(__accessCheck(n,i,"access private method"),o),j=o(67265),W=o(90248),J=o(92200),et=o(96701),ei=o(77821),eo=o(95019),es=o(21502),eu=o(42705),ec=o(40882),el=o(51596);function isNullUniversalResolverError(n,i){if(!(n instanceof ec.G))return!1;let o=n.walk(n=>n instanceof el.Lu);return o instanceof el.Lu&&(!!(o.data?.errorName==="ResolverNotFound"||o.data?.errorName==="ResolverWildcardNotSupported"||o.reason?.includes("Wildcard on non-extended resolvers is not supported"))||"reverse"===i&&o.reason===eu.$[50])}var ed=o(63864),ef=o(79179),eh=o(33511),ep=o(40996);function encodedLabelToLabelhash(n){if(66!==n.length||0!==n.indexOf("[")||65!==n.indexOf("]"))return null;let i=`0x${n.slice(1,65)}`;return(0,ep.v)(i)?i:null}function namehash(n){let i=new Uint8Array(32).fill(0);if(!n)return(0,es.ci)(i);let o=n.split(".");for(let n=o.length-1;n>=0;n-=1){let u=encodedLabelToLabelhash(o[n]),l=u?(0,ef.O0)(u):(0,eh.w)((0,ef.qX)(o[n]),"bytes");i=(0,eh.w)((0,ed.zo)([i,l]),"bytes")}return(0,es.ci)(i)}function encodeLabelhash(n){return`[${n.slice(2)}]`}function labelhash(n){let i=new Uint8Array(32).fill(0);return n?encodedLabelToLabelhash(n)||(0,eh.w)((0,ef.qX)(n)):(0,es.ci)(i)}function packetToBytes(n){let i=n.replace(/^\.|\.$/gm,"");if(0===i.length)return new Uint8Array(1);let o=new Uint8Array((0,ef.qX)(i).byteLength+2),u=0,l=i.split(".");for(let n=0;n255&&(i=(0,ef.qX)(encodeLabelhash(labelhash(l[n])))),o[u]=i.length,o.set(i,u+1),u+=i.length+1}return o.byteLength!==u+1?o.slice(0,u+1):o}var em=o(75891),eg=o(67035),ey=o(14245);function getContractError(n,{abi:i,address:o,args:u,docsPath:l,functionName:d,sender:x}){let{code:I,data:R,message:j,shortMessage:W}=n instanceof el.VQ?n:n instanceof ec.G?n.walk(n=>"data"in n)||n.walk():{},J=n instanceof eg.wb?new el.Dk({functionName:d}):[3,ey.XS.code].includes(I)&&(R||j||W)?new el.Lu({abi:i,data:"object"==typeof R?R.data:R,functionName:d,message:W??j}):n;return new el.uq(J,{abi:i,args:u,contractAddress:o,docsPath:l,functionName:d,sender:x})}var eb=o(44149);async function readContract(n,{abi:i,address:o,args:u,functionName:l,...d}){let x=(0,et.R)({abi:i,args:u,functionName:l});try{let{data:I}=await (0,em.s)(n,eb.R,"call")({data:x,to:o,...d});return(0,J.k)({abi:i,args:u,functionName:l,data:I||"0x"})}catch(n){throw getContractError(n,{abi:i,address:o,args:u,docsPath:"/docs/contract/readContract",functionName:l})}}async function getEnsAddress(n,{blockNumber:i,blockTag:o,coinType:u,name:l,universalResolverAddress:d}){let x=d;if(!x){if(!n.chain)throw Error("client chain not configured. universalResolverAddress is required.");x=(0,ei.L)({blockNumber:i,chain:n.chain,contract:"ensUniversalResolver"})}try{let d=(0,et.R)({abi:W.X$,functionName:"addr",...null!=u?{args:[namehash(l),BigInt(u)]}:{args:[namehash(l)]}}),I=await (0,em.s)(n,readContract,"readContract")({address:x,abi:W.k3,functionName:"resolve",args:[(0,es.NC)(packetToBytes(l)),d],blockNumber:i,blockTag:o});if("0x"===I[0])return null;let R=(0,J.k)({abi:W.X$,args:null!=u?[namehash(l),BigInt(u)]:void 0,functionName:"addr",data:I[0]});if("0x"===R||"0x00"===(0,eo.f)(R))return null;return R}catch(n){if(isNullUniversalResolverError(n,"resolve"))return null;throw n}}let EnsAvatarInvalidMetadataError=class EnsAvatarInvalidMetadataError extends ec.G{constructor({data:n}){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(n)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidMetadataError"})}};let EnsAvatarInvalidNftUriError=class EnsAvatarInvalidNftUriError extends ec.G{constructor({reason:n}){super(`ENS NFT avatar URI is invalid. ${n}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidNftUriError"})}};let EnsAvatarUriResolutionError=class EnsAvatarUriResolutionError extends ec.G{constructor({uri:n}){super(`Unable to resolve ENS avatar URI "${n}". The URI may be malformed, invalid, or does not respond with a valid image.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUriResolutionError"})}};let EnsAvatarUnsupportedNamespaceError=class EnsAvatarUnsupportedNamespaceError extends ec.G{constructor({namespace:n}){super(`ENS NFT avatar namespace "${n}" is not supported. Must be "erc721" or "erc1155".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUnsupportedNamespaceError"})}};let ev=/(?https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?\/)?(?ipfs\/|ipns\/)?(?[\w\-.]+)(?\/.*)?/,eE=/^(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,})(\/(?[\w\-.]+))?(?\/.*)?$/,ew=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,eP=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function isImageUri(n){try{let i=await fetch(n,{method:"HEAD"});if(200===i.status){let n=i.headers.get("content-type");return n?.startsWith("image/")}return!1}catch(i){if("object"==typeof i&&void 0!==i.response||!globalThis.hasOwnProperty("Image"))return!1;return new Promise(i=>{let o=new Image;o.onload=()=>{i(!0)},o.onerror=()=>{i(!1)},o.src=n})}}function getGateway(n,i){return n?n.endsWith("/")?n.slice(0,-1):n:i}function resolveAvatarUri({uri:n,gatewayUrls:i}){let o=ew.test(n);if(o)return{uri:n,isOnChain:!0,isEncoded:o};let u=getGateway(i?.ipfs,"https://ipfs.io"),l=getGateway(i?.arweave,"https://arweave.net"),d=n.match(ev),{protocol:x,subpath:I,target:R,subtarget:j=""}=d?.groups||{},W="ipns:/"===x||"ipns/"===I,J="ipfs:/"===x||"ipfs/"===I||eE.test(n);if(n.startsWith("http")&&!W&&!J){let o=n;return i?.arweave&&(o=n.replace(/https:\/\/arweave.net/g,i?.arweave)),{uri:o,isOnChain:!1,isEncoded:!1}}if((W||J)&&R)return{uri:`${u}/${W?"ipns":"ipfs"}/${R}${j}`,isOnChain:!1,isEncoded:!1};if("ar:/"===x&&R)return{uri:`${l}/${R}${j||""}`,isOnChain:!1,isEncoded:!1};let et=n.replace(eP,"");if(et.startsWith("n.json()),u=await parseAvatarUri({gatewayUrls:n,uri:getJsonImage(o)});return u}catch{throw new EnsAvatarUriResolutionError({uri:i})}}async function parseAvatarUri({gatewayUrls:n,uri:i}){let{uri:o,isOnChain:u}=resolveAvatarUri({uri:i,gatewayUrls:n});if(u)return o;let l=await isImageUri(o);if(l)return o;throw new EnsAvatarUriResolutionError({uri:i})}function parseNftUri(n){let i=n;i.startsWith("did:nft:")&&(i=i.replace("did:nft:","").replace(/_/g,"/"));let[o,u,l]=i.split("/"),[d,x]=o.split(":"),[I,R]=u.split(":");if(!d||"eip155"!==d.toLowerCase())throw new EnsAvatarInvalidNftUriError({reason:"Only EIP-155 supported"});if(!x)throw new EnsAvatarInvalidNftUriError({reason:"Chain ID not found"});if(!R)throw new EnsAvatarInvalidNftUriError({reason:"Contract address not found"});if(!l)throw new EnsAvatarInvalidNftUriError({reason:"Token ID not found"});if(!I)throw new EnsAvatarInvalidNftUriError({reason:"ERC namespace not found"});return{chainID:parseInt(x),namespace:I.toLowerCase(),contractAddress:R,tokenID:l}}async function getNftTokenUri(n,{nft:i}){if("erc721"===i.namespace)return readContract(n,{address:i.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(i.tokenID)]});if("erc1155"===i.namespace)return readContract(n,{address:i.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(i.tokenID)]});throw new EnsAvatarUnsupportedNamespaceError({namespace:i.namespace})}async function parseAvatarRecord(n,{gatewayUrls:i,record:o}){return/eip155:/i.test(o)?parseNftAvatarUri(n,{gatewayUrls:i,record:o}):parseAvatarUri({uri:o,gatewayUrls:i})}async function parseNftAvatarUri(n,{gatewayUrls:i,record:o}){let u=parseNftUri(o),l=await getNftTokenUri(n,{nft:u}),{uri:d,isOnChain:x,isEncoded:I}=resolveAvatarUri({uri:l,gatewayUrls:i});if(x&&(d.includes("data:application/json;base64,")||d.startsWith("{"))){let n=I?atob(d.replace("data:application/json;base64,","")):d,o=JSON.parse(n);return parseAvatarUri({uri:getJsonImage(o),gatewayUrls:i})}let R=u.tokenID;return"erc1155"===u.namespace&&(R=R.replace("0x","").padStart(64,"0")),getMetadataAvatarUri({gatewayUrls:i,uri:d.replace(/(?:0x)?{id}/,R)})}async function getEnsText(n,{blockNumber:i,blockTag:o,name:u,key:l,universalResolverAddress:d}){let x=d;if(!x){if(!n.chain)throw Error("client chain not configured. universalResolverAddress is required.");x=(0,ei.L)({blockNumber:i,chain:n.chain,contract:"ensUniversalResolver"})}try{let d=await (0,em.s)(n,readContract,"readContract")({address:x,abi:W.k3,functionName:"resolve",args:[(0,es.NC)(packetToBytes(u)),(0,et.R)({abi:W.nZ,functionName:"text",args:[namehash(u),l]})],blockNumber:i,blockTag:o});if("0x"===d[0])return null;let I=(0,J.k)({abi:W.nZ,functionName:"text",data:d[0]});return""===I?null:I}catch(n){if(isNullUniversalResolverError(n,"resolve"))return null;throw n}}async function getEnsAvatar(n,{blockNumber:i,blockTag:o,gatewayUrls:u,name:l,universalResolverAddress:d}){let x=await (0,em.s)(n,getEnsText,"getEnsText")({blockNumber:i,blockTag:o,key:"avatar",name:l,universalResolverAddress:d});if(!x)return null;try{return await parseAvatarRecord(n,{record:x,gatewayUrls:u})}catch{return null}}async function getEnsName(n,{address:i,blockNumber:o,blockTag:u,universalResolverAddress:l}){let d=l;if(!d){if(!n.chain)throw Error("client chain not configured. universalResolverAddress is required.");d=(0,ei.L)({blockNumber:o,chain:n.chain,contract:"ensUniversalResolver"})}let x=`${i.toLowerCase().substring(2)}.addr.reverse`;try{let[l,I]=await (0,em.s)(n,readContract,"readContract")({address:d,abi:W.du,functionName:"reverse",args:[(0,es.NC)(packetToBytes(x))],blockNumber:o,blockTag:u});if(i.toLowerCase()!==I.toLowerCase())return null;return l}catch(n){if(isNullUniversalResolverError(n,"reverse"))return null;throw n}}async function getEnsResolver(n,{blockNumber:i,blockTag:o,name:u,universalResolverAddress:l}){let d=l;if(!d){if(!n.chain)throw Error("client chain not configured. universalResolverAddress is required.");d=(0,ei.L)({blockNumber:i,chain:n.chain,contract:"ensUniversalResolver"})}let[x]=await (0,em.s)(n,readContract,"readContract")({address:d,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[(0,es.NC)(packetToBytes(u))],blockNumber:i,blockTag:o});return x}function createFilterRequestScope(n,{method:i}){let o={};return"fallback"===n.transport.type&&n.transport.onResponse?.(({method:n,response:u,status:l,transport:d})=>{"success"===l&&i===n&&(o[u]=d.request)}),i=>o[i]||n.request}async function createBlockFilter(n){let i=createFilterRequestScope(n,{method:"eth_newBlockFilter"}),o=await n.request({method:"eth_newBlockFilter"});return{id:o,request:i(o),type:"block"}}let FilterTypeNotSupportedError=class FilterTypeNotSupportedError extends ec.G{constructor(n){super(`Filter type "${n}" is not supported.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FilterTypeNotSupportedError"})}};var ex=o(48171),eT=o(9195),eA=o(48398),eS=o(66852);function encodeEventTopics({abi:n,eventName:i,args:o}){let u=n[0];if(i&&!(u=(0,eS.mE)({abi:n,args:o,name:i})))throw new eg.mv(i,{docsPath:"/docs/contract/encodeEventTopics"});if("event"!==u.type)throw new eg.mv(void 0,{docsPath:"/docs/contract/encodeEventTopics"});let l=(0,eA.t)(u),d=(0,ex.e)(l),x=[];if(o&&"inputs"in u){let n=u.inputs?.filter(n=>"indexed"in n&&n.indexed),i=Array.isArray(o)?o:Object.values(o).length>0?n?.map(n=>o[n.name])??[]:[];i.length>0&&(x=n?.map((n,o)=>Array.isArray(i[o])?i[o].map((u,l)=>encodeArg({param:n,value:i[o][l]})):i[o]?encodeArg({param:n,value:i[o]}):null)??[])}return[d,...x]}function encodeArg({param:n,value:i}){if("string"===n.type||"bytes"===n.type)return(0,eh.w)((0,ef.O0)(i));if("tuple"===n.type||n.type.match(/^(.*)\[(\d+)?\]$/))throw new FilterTypeNotSupportedError(n.type);return(0,eT.E)([n],[i])}async function createContractEventFilter(n,{address:i,abi:o,args:u,eventName:l,fromBlock:d,strict:x,toBlock:I}){let R=createFilterRequestScope(n,{method:"eth_newFilter"}),j=l?encodeEventTopics({abi:o,args:u,eventName:l}):void 0,W=await n.request({method:"eth_newFilter",params:[{address:i,fromBlock:"bigint"==typeof d?(0,es.eC)(d):d,toBlock:"bigint"==typeof I?(0,es.eC)(I):I,topics:j}]});return{abi:o,args:u,eventName:l,id:W,request:R(W),strict:x,type:"event"}}async function createEventFilter(n,{address:i,args:o,event:u,events:l,fromBlock:d,strict:x,toBlock:I}={}){let R=l??(u?[u]:void 0),j=createFilterRequestScope(n,{method:"eth_newFilter"}),W=[];R&&(W=[R.flatMap(n=>encodeEventTopics({abi:[n],eventName:n.name,args:o}))],u&&(W=W[0]));let J=await n.request({method:"eth_newFilter",params:[{address:i,fromBlock:"bigint"==typeof d?(0,es.eC)(d):d,toBlock:"bigint"==typeof I?(0,es.eC)(I):I,...W.length?{topics:W}:{}}]});return{abi:R,args:o,eventName:u?u.name:void 0,fromBlock:d,id:J,request:j(J),strict:x,toBlock:I,type:"event"}}async function createPendingTransactionFilter(n){let i=createFilterRequestScope(n,{method:"eth_newPendingTransactionFilter"}),o=await n.request({method:"eth_newPendingTransactionFilter"});return{id:o,request:i(o),type:"transaction"}}var eC=o(70404),e_=o(85304);async function estimateContractGas(n,{abi:i,address:o,args:u,functionName:l,...d}){let x=(0,et.R)({abi:i,args:u,functionName:l});try{let i=await (0,em.s)(n,e_.Q,"estimateGas")({data:x,to:o,...d});return i}catch(x){let n=d.account?(0,eC.T)(d.account):void 0;throw getContractError(x,{abi:i,address:o,args:u,docsPath:"/docs/contract/estimateContractGas",functionName:l,sender:n?.address})}}var eO=o(57971),eI=o(2933);async function getBalance(n,{address:i,blockNumber:o,blockTag:u="latest"}){let l=o?(0,es.eC)(o):void 0,d=await n.request({method:"eth_getBalance",params:[i,l||u]});return BigInt(d)}var eB=o(9419);let eD=new Map,eR=new Map;function withCache_getCache(n){let buildCache=(n,i)=>({clear:()=>i.delete(n),get:()=>i.get(n),set:o=>i.set(n,o)}),i=buildCache(n,eD),o=buildCache(n,eR);return{clear:()=>{i.clear(),o.clear()},promise:i,response:o}}async function withCache(n,{cacheKey:i,cacheTime:o=1/0}){let u=withCache_getCache(i),l=u.response.get();if(l&&o>0){let n=new Date().getTime()-l.created.getTime();if(n`blockNumber.${n}`;async function getBlockNumber(n,{cacheTime:i=n.cacheTime,maxAge:o}={}){let u=await withCache(()=>n.request({method:"eth_blockNumber"}),{cacheKey:cacheKey(n.uid),cacheTime:o??i});return BigInt(u)}var ej=o(81725);async function getBlockTransactionCount(n,{blockHash:i,blockNumber:o,blockTag:u="latest"}={}){let l;let d=void 0!==o?(0,es.eC)(o):void 0;return l=i?await n.request({method:"eth_getBlockTransactionCountByHash",params:[i]}):await n.request({method:"eth_getBlockTransactionCountByNumber",params:[d||u]}),(0,ej.ly)(l)}async function getBytecode(n,{address:i,blockNumber:o,blockTag:u="latest"}){let l=void 0!==o?(0,es.eC)(o):void 0,d=await n.request({method:"eth_getCode",params:[i,l||u]});if("0x"!==d)return d}var eM=o(70418),ek=o(56834);let eF="/docs/contract/decodeEventLog";function decodeEventLog({abi:n,data:i,strict:o,topics:u}){let l=o??!0,[d,...x]=u;if(!d)throw new eg.FM({docsPath:eF});let I=n.find(n=>"event"===n.type&&d===(0,ex.e)((0,eA.t)(n)));if(!(I&&"name"in I)||"event"!==I.type)throw new eg.lC(d,{docsPath:eF});let{name:R,inputs:j}=I,W=j?.some(n=>!("name"in n&&n.name)),J=W?[]:{},et=j.filter(n=>"indexed"in n&&n.indexed);for(let n=0;n!("indexed"in n&&n.indexed));if(ei.length>0){if(i&&"0x"!==i)try{let n=(0,ek.r)(ei,i);if(n){if(W)J=[...J,...n];else for(let i=0;i0?J:void 0}}function decodeTopic({param:n,value:i}){if("string"===n.type||"bytes"===n.type||"tuple"===n.type||n.type.match(/^(.*)\[(\d+)?\]$/))return i;let o=(0,ek.r)([n],i)||[];return o[0]}var eN=o(46491);async function getLogs(n,{address:i,blockHash:o,fromBlock:u,toBlock:l,event:d,events:x,args:I,strict:R}={}){let j=R??!1,W=x??(d?[d]:void 0),J=[];return W&&(J=[W.flatMap(n=>encodeEventTopics({abi:[n],eventName:n.name,args:I}))],d&&(J=J[0])),(o?await n.request({method:"eth_getLogs",params:[{address:i,topics:J,blockHash:o}]}):await n.request({method:"eth_getLogs",params:[{address:i,topics:J,fromBlock:"bigint"==typeof u?(0,es.eC)(u):u,toBlock:"bigint"==typeof l?(0,es.eC)(l):l}]})).map(n=>{try{let{eventName:i,args:o}=W?decodeEventLog({abi:W,data:n.data,topics:n.topics,strict:j}):{eventName:void 0,args:void 0};return(0,eN.U)(n,{args:o,eventName:i})}catch(u){let i,o;if(u instanceof eg.SM||u instanceof eg.Gy){if(j)return;i=u.abiItem.name,o=u.abiItem.inputs?.some(n=>!("name"in n&&n.name))}return(0,eN.U)(n,{args:o?[]:{},eventName:i})}}).filter(Boolean)}async function getContractEvents(n,{abi:i,address:o,args:u,blockHash:l,eventName:d,fromBlock:x,toBlock:I,strict:R}){let j=d?(0,eS.mE)({abi:i,name:d}):void 0,W=j?void 0:i.filter(n=>"event"===n.type);return(0,em.s)(n,getLogs,"getLogs")({address:o,args:u,blockHash:l,event:j,events:W,fromBlock:x,toBlock:I,strict:R})}function formatFeeHistory(n){return{baseFeePerGas:n.baseFeePerGas.map(n=>BigInt(n)),gasUsedRatio:n.gasUsedRatio,oldestBlock:BigInt(n.oldestBlock),reward:n.reward?.map(n=>n.map(n=>BigInt(n)))}}async function getFeeHistory(n,{blockCount:i,blockNumber:o,blockTag:u="latest",rewardPercentiles:l}){let d=o?(0,es.eC)(o):void 0,x=await n.request({method:"eth_feeHistory",params:[(0,es.eC)(i),d||u,l]});return formatFeeHistory(x)}async function getFilterChanges(n,{filter:i}){let o="strict"in i&&i.strict,u=await i.request({method:"eth_getFilterChanges",params:[i.id]});return u.map(n=>{if("string"==typeof n)return n;try{let{eventName:u,args:l}="abi"in i&&i.abi?decodeEventLog({abi:i.abi,data:n.data,topics:n.topics,strict:o}):{eventName:void 0,args:void 0};return(0,eN.U)(n,{args:l,eventName:u})}catch(l){let o,u;if(l instanceof eg.SM||l instanceof eg.Gy){if("strict"in i&&i.strict)return;o=l.abiItem.name,u=l.abiItem.inputs?.some(n=>!("name"in n&&n.name))}return(0,eN.U)(n,{args:u?[]:{},eventName:o})}}).filter(Boolean)}async function getFilterLogs(n,{filter:i}){let o=i.strict??!1,u=await i.request({method:"eth_getFilterLogs",params:[i.id]});return u.map(n=>{try{let{eventName:u,args:l}="abi"in i&&i.abi?decodeEventLog({abi:i.abi,data:n.data,topics:n.topics,strict:o}):{eventName:void 0,args:void 0};return(0,eN.U)(n,{args:l,eventName:u})}catch(l){let o,u;if(l instanceof eg.SM||l instanceof eg.Gy){if("strict"in i&&i.strict)return;o=l.abiItem.name,u=l.abiItem.inputs?.some(n=>!("name"in n&&n.name))}return(0,eN.U)(n,{args:u?[]:{},eventName:o})}}).filter(Boolean)}var eU=o(10124);function formatStorageProof(n){return n.map(n=>({...n,value:BigInt(n.value)}))}function formatProof(n){return{...n,balance:n.balance?BigInt(n.balance):void 0,nonce:n.nonce?(0,ej.ly)(n.nonce):void 0,storageProof:n.storageProof?formatStorageProof(n.storageProof):void 0}}async function getProof(n,{address:i,blockNumber:o,blockTag:u,storageKeys:l}){let d=void 0!==o?(0,es.eC)(o):void 0,x=await n.request({method:"eth_getProof",params:[i,l,d||(u??"latest")]});return formatProof(x)}async function getStorageAt(n,{address:i,blockNumber:o,blockTag:u="latest",slot:l}){let d=void 0!==o?(0,es.eC)(o):void 0,x=await n.request({method:"eth_getStorageAt",params:[i,l,d||u]});return x}var eL=o(82415),eH=o(11872);async function getTransaction(n,{blockHash:i,blockNumber:o,blockTag:u,hash:l,index:d}){let x=u||"latest",I=void 0!==o?(0,es.eC)(o):void 0,R=null;if(l?R=await n.request({method:"eth_getTransactionByHash",params:[l]}):i?R=await n.request({method:"eth_getTransactionByBlockHashAndIndex",params:[i,(0,es.eC)(d)]}):(I||x)&&(R=await n.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[I||x,(0,es.eC)(d)]})),!R)throw new eL.Bh({blockHash:i,blockNumber:o,blockTag:x,hash:l,index:d});let j=n.chain?.formatters?.transaction?.format||eH.Tr;return j(R)}async function getTransactionConfirmations(n,{hash:i,transactionReceipt:o}){let[u,l]=await Promise.all([(0,em.s)(n,getBlockNumber,"getBlockNumber")({}),i?(0,em.s)(n,getTransaction,"getBlockNumber")({hash:i}):void 0]),d=o?.blockNumber||l?.blockNumber;return d?u-d+1n:0n}var e$=o(20054),eq=o(87524);async function getTransactionReceipt(n,{hash:i}){let o=await n.request({method:"eth_getTransactionReceipt",params:[i]});if(!o)throw new eL.Yb({hash:i});let u=n.chain?.formatters?.transactionReceipt?.format||eq.f;return u(o)}async function multicall(n,i){let{allowFailure:o=!0,batchSize:u,blockNumber:l,blockTag:d,contracts:x,multicallAddress:I}=i,R=u??("object"==typeof n.batch?.multicall&&n.batch.multicall.batchSize||1024),j=I;if(!j){if(!n.chain)throw Error("client chain not configured. multicallAddress is required.");j=(0,ei.L)({blockNumber:l,chain:n.chain,contract:"multicall3"})}let eo=[[]],es=0,eu=0;for(let n=0;n0&&eu>R&&eo[es].length>0&&(es++,eu=(n.length-2)/2,eo[es]=[]),eo[es]=[...eo[es],{allowFailure:!0,callData:n,target:u}]}catch(x){let n=getContractError(x,{abi:i,address:u,args:l,docsPath:"/docs/contract/multicall",functionName:d});if(!o)throw n;eo[es]=[...eo[es],{allowFailure:!0,callData:"0x",target:u}]}}let ed=await Promise.allSettled(eo.map(i=>(0,em.s)(n,readContract,"readContract")({abi:W.F8,address:j,args:[i],blockNumber:l,blockTag:d,functionName:"aggregate3"}))),ef=[];for(let n=0;n`${i} ${n}`).join(",")})`;return o}function findTypeDependencies({primaryType:n,types:i},o=new Set){let u=n.match(/^\w*/u),l=u?.[0];if(o.has(l)||void 0===i[l])return o;for(let n of(o.add(l),i[l]))findTypeDependencies({primaryType:n.type,types:i},o);return o}function encodeField({types:n,name:i,type:o,value:u}){if(void 0!==n[o])return[{type:"bytes32"},(0,eh.w)(encodeData({data:u,primaryType:o,types:n}))];if("bytes"===o){let n=u.length%2?"0":"";return u=`0x${n+u.slice(2)}`,[{type:"bytes32"},(0,eh.w)(u)]}if("string"===o)return[{type:"bytes32"},(0,eh.w)((0,es.NC)(u))];if(o.lastIndexOf("]")===o.length-1){let l=o.slice(0,o.lastIndexOf("[")),d=u.map(o=>encodeField({name:i,type:l,types:n,value:o}));return[{type:"bytes32"},(0,eh.w)((0,eT.E)(d.map(([n])=>n),d.map(([,n])=>n)))]}return[{type:o},u]}async function verifyTypedData(n,{address:i,signature:o,message:u,primaryType:l,types:d,domain:x,...I}){let R=hashTypedData({message:u,primaryType:l,types:d,domain:x});return verifyHash(n,{address:i,hash:R,signature:o,...I})}var eG=o(70160);let eW=new Map,eK=new Map,eQ=0;function observe(n,i,o){let u=++eQ,getListeners=()=>eW.get(n)||[],unsubscribe=()=>{let i=getListeners();eW.set(n,i.filter(n=>n.id!==u))},unwatch=()=>{let i=eK.get(n);1===getListeners().length&&i&&i(),unsubscribe()},l=getListeners();if(eW.set(n,[...l,{id:u,fns:i}]),l&&l.length>0)return unwatch;let d={};for(let n in i)d[n]=(...i)=>{let o=getListeners();if(0!==o.length)for(let u of o)u.fns[n]?.(...i)};let x=o(d);return"function"==typeof x&&eK.set(n,x),unwatch}var eZ=o(98816),eY=o(37035),eX=o(42588);function poll(n,{emitOnBegin:i,initialWaitTime:o,interval:u}){let l=!0,unwatch=()=>l=!1,watch=async()=>{let d;i&&(d=await n({unpoll:unwatch}));let x=await o?.(d)??u;await (0,eX.D)(x);let poll=async()=>{l&&(await n({unpoll:unwatch}),await (0,eX.D)(u),poll())};poll()};return watch(),unwatch}function watchBlockNumber(n,{emitOnBegin:i=!1,emitMissed:o=!1,onBlockNumber:u,onError:l,poll:d,pollingInterval:x=n.pollingInterval}){let I,R,j;let W=void 0!==d?d:"webSocket"!==n.transport.type;return W?(()=>{let d=(0,eY.P)(["watchBlockNumber",n.uid,i,o,x]);return observe(d,{onBlockNumber:u,onError:l},u=>poll(async()=>{try{let i=await (0,em.s)(n,getBlockNumber,"getBlockNumber")({cacheTime:0});if(I){if(i===I)return;if(i-I>1&&o)for(let n=I+1n;nI)&&(u.onBlockNumber(i,I),I=i)}catch(n){u.onError?.(n)}},{emitOnBegin:i,interval:x}))})():(R=!0,j=()=>R=!1,(async()=>{try{let{unsubscribe:i}=await n.transport.subscribe({params:["newHeads"],onData(n){if(!R)return;let i=(0,ej.y_)(n.result?.number);u(i,I),I=i},onError(n){l?.(n)}});j=i,R||j()}catch(n){l?.(n)}})(),j)}async function waitForTransactionReceipt(n,{confirmations:i=1,hash:o,onReplaced:u,pollingInterval:l=n.pollingInterval,timeout:d}){let x,I,R;let j=(0,eY.P)(["waitForTransactionReceipt",n.uid,o]),W=!1;return new Promise((J,et)=>{d&&setTimeout(()=>et(new eL.mc({hash:o})),d);let ei=observe(j,{onReplaced:u,resolve:J,reject:et},u=>{let d=(0,em.s)(n,watchBlockNumber,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:l,async onBlockNumber(l){if(W)return;let j=l,done=n=>{d(),n(),ei()};try{if(R){if(i>1&&(!R.blockNumber||j-R.blockNumber+1nu.resolve(R));return}if(x||(W=!0,await (0,eZ.J)(async()=>{(x=await (0,em.s)(n,getTransaction,"getTransaction")({hash:o})).blockNumber&&(j=x.blockNumber)},{delay:({count:n})=>200*~~(1<1&&(!R.blockNumber||j-R.blockNumber+1nu.resolve(R))}catch(o){if(x&&(o instanceof eL.Bh||o instanceof eL.Yb))try{I=x,W=!0;let o=await (0,eZ.J)(()=>(0,em.s)(n,eB.Q,"getBlock")({blockNumber:j,includeTransactions:!0}),{delay:({count:n})=>200*~~(1<n instanceof eG.f});W=!1;let l=o.transactions.find(({from:n,nonce:i})=>n===I.from&&i===I.nonce);if(!l||(R=await (0,em.s)(n,getTransactionReceipt,"getTransactionReceipt")({hash:l.hash}),i>1&&(!R.blockNumber||j-R.blockNumber+1n{u.onReplaced?.({reason:d,replacedTransaction:I,transaction:l,transactionReceipt:R}),u.resolve(R)})}catch(n){done(()=>u.reject(n))}else done(()=>u.reject(o))}}})})})}var eJ=o(28753);function watchBlocks(n,{blockTag:i="latest",emitMissed:o=!1,emitOnBegin:u=!1,onBlock:l,onError:d,includeTransactions:x,poll:I,pollingInterval:R=n.pollingInterval}){let j,W,J;let et=void 0!==I?I:"webSocket"!==n.transport.type,ei=x??!1;return et?(()=>{let x=(0,eY.P)(["watchBlocks",n.uid,o,u,ei,R]);return observe(x,{onBlock:l,onError:d},l=>poll(async()=>{try{let u=await (0,em.s)(n,eB.Q,"getBlock")({blockTag:i,includeTransactions:ei});if(u.number&&j?.number){if(u.number===j.number)return;if(u.number-j.number>1&&o)for(let i=j?.number+1n;ij.number)&&(l.onBlock(u,j),j=u)}catch(n){l.onError?.(n)}},{emitOnBegin:u,interval:R}))})():(W=!0,J=()=>W=!1,(async()=>{try{let{unsubscribe:i}=await n.transport.subscribe({params:["newHeads"],onData(i){if(!W)return;let o=n.chain?.formatters?.block?.format||eJ.Z,u=o(i.result);l(u,j),j=u},onError(n){d?.(n)}});J=i,W||J()}catch(n){d?.(n)}})(),J)}function watchContractEvent(n,{abi:i,address:o,args:u,batch:l=!0,eventName:d,onError:x,onLogs:I,poll:R,pollingInterval:j=n.pollingInterval,strict:W}){let J,et;let ei=void 0!==R?R:"webSocket"!==n.transport.type;return ei?(()=>{let R=(0,eY.P)(["watchContractEvent",o,u,l,n.uid,d,j]),J=W??!1;return observe(R,{onLogs:I,onError:x},x=>{let I,R;let W=!1,et=poll(async()=>{if(!W){try{R=await (0,em.s)(n,createContractEventFilter,"createContractEventFilter")({abi:i,address:o,args:u,eventName:d,strict:J})}catch{}W=!0;return}try{let j;if(R)j=await (0,em.s)(n,getFilterChanges,"getFilterChanges")({filter:R});else{let l=await (0,em.s)(n,getBlockNumber,"getBlockNumber")({});j=I&&I!==l?await (0,em.s)(n,getContractEvents,"getContractEvents")({abi:i,address:o,args:u,eventName:d,fromBlock:I+1n,toBlock:l,strict:J}):[],I=l}if(0===j.length)return;if(l)x.onLogs(j);else for(let n of j)x.onLogs([n])}catch(n){R&&n instanceof ey.yR&&(W=!1),x.onError?.(n)}},{emitOnBegin:!0,interval:j});return async()=>{R&&await (0,em.s)(n,uninstallFilter,"uninstallFilter")({filter:R}),et()}})})():(J=!0,et=()=>J=!1,(async()=>{try{let l=d?encodeEventTopics({abi:i,eventName:d,args:u}):[],{unsubscribe:R}=await n.transport.subscribe({params:["logs",{address:o,topics:l}],onData(n){if(!J)return;let o=n.result;try{let{eventName:n,args:u}=decodeEventLog({abi:i,data:o.data,topics:o.topics,strict:W}),l=(0,eN.U)(o,{args:u,eventName:n});I([l])}catch(l){let n,i;if(l instanceof eg.SM||l instanceof eg.Gy){if(W)return;n=l.abiItem.name,i=l.abiItem.inputs?.some(n=>!("name"in n&&n.name))}let u=(0,eN.U)(o,{args:i?[]:{},eventName:n});I([u])}},onError(n){x?.(n)}});et=R,J||et()}catch(n){x?.(n)}})(),et)}function watchEvent(n,{address:i,args:o,batch:u=!0,event:l,events:d,onError:x,onLogs:I,poll:R,pollingInterval:j=n.pollingInterval,strict:W}){let J,et;let ei=void 0!==R?R:"webSocket"!==n.transport.type,eo=W??!1;return ei?(()=>{let R=(0,eY.P)(["watchEvent",i,o,u,n.uid,l,j]);return observe(R,{onLogs:I,onError:x},x=>{let I,R;let W=!1,J=poll(async()=>{if(!W){try{R=await (0,em.s)(n,createEventFilter,"createEventFilter")({address:i,args:o,event:l,events:d,strict:eo})}catch{}W=!0;return}try{let j;if(R)j=await (0,em.s)(n,getFilterChanges,"getFilterChanges")({filter:R});else{let u=await (0,em.s)(n,getBlockNumber,"getBlockNumber")({});j=I&&I!==u?await (0,em.s)(n,getLogs,"getLogs")({address:i,args:o,event:l,events:d,fromBlock:I+1n,toBlock:u}):[],I=u}if(0===j.length)return;if(u)x.onLogs(j);else for(let n of j)x.onLogs([n])}catch(n){R&&n instanceof ey.yR&&(W=!1),x.onError?.(n)}},{emitOnBegin:!0,interval:j});return async()=>{R&&await (0,em.s)(n,uninstallFilter,"uninstallFilter")({filter:R}),J()}})})():(J=!0,et=()=>J=!1,(async()=>{try{let u=d??(l?[l]:void 0),R=[];u&&(R=[u.flatMap(n=>encodeEventTopics({abi:[n],eventName:n.name,args:o}))],l&&(R=R[0]));let{unsubscribe:j}=await n.transport.subscribe({params:["logs",{address:i,topics:R}],onData(n){if(!J)return;let i=n.result;try{let{eventName:n,args:o}=decodeEventLog({abi:u,data:i.data,topics:i.topics,strict:eo}),l=(0,eN.U)(i,{args:o,eventName:n});I([l])}catch(l){let n,o;if(l instanceof eg.SM||l instanceof eg.Gy){if(W)return;n=l.abiItem.name,o=l.abiItem.inputs?.some(n=>!("name"in n&&n.name))}let u=(0,eN.U)(i,{args:o?[]:{},eventName:n});I([u])}},onError(n){x?.(n)}});et=j,J||et()}catch(n){x?.(n)}})(),et)}function watchPendingTransactions(n,{batch:i=!0,onError:o,onTransactions:u,poll:l,pollingInterval:d=n.pollingInterval}){let x,I;let R=void 0!==l?l:"webSocket"!==n.transport.type;return R?(()=>{let l=(0,eY.P)(["watchPendingTransactions",n.uid,i,d]);return observe(l,{onTransactions:u,onError:o},o=>{let u;let l=poll(async()=>{try{if(!u)try{u=await (0,em.s)(n,createPendingTransactionFilter,"createPendingTransactionFilter")({});return}catch(n){throw l(),n}let d=await (0,em.s)(n,getFilterChanges,"getFilterChanges")({filter:u});if(0===d.length)return;if(i)o.onTransactions(d);else for(let n of d)o.onTransactions([n])}catch(n){o.onError?.(n)}},{emitOnBegin:!0,interval:d});return async()=>{u&&await (0,em.s)(n,uninstallFilter,"uninstallFilter")({filter:u}),l()}})})():(x=!0,I=()=>x=!1,(async()=>{try{let{unsubscribe:i}=await n.transport.subscribe({params:["newPendingTransactions"],onData(n){if(!x)return;let i=n.result;u([i])},onError(n){o?.(n)}});I=i,x||I()}catch(n){o?.(n)}})(),I)}var e0=o(1061),e1=o(83444);function publicActions(n){return{call:i=>(0,eb.R)(n,i),createBlockFilter:()=>createBlockFilter(n),createContractEventFilter:i=>createContractEventFilter(n,i),createEventFilter:i=>createEventFilter(n,i),createPendingTransactionFilter:()=>createPendingTransactionFilter(n),estimateContractGas:i=>estimateContractGas(n,i),estimateGas:i=>(0,e_.Q)(n,i),getBalance:i=>getBalance(n,i),getBlock:i=>(0,eB.Q)(n,i),getBlockNumber:i=>getBlockNumber(n,i),getBlockTransactionCount:i=>getBlockTransactionCount(n,i),getBytecode:i=>getBytecode(n,i),getChainId:()=>(0,eM.L)(n),getContractEvents:i=>getContractEvents(n,i),getEnsAddress:i=>getEnsAddress(n,i),getEnsAvatar:i=>getEnsAvatar(n,i),getEnsName:i=>getEnsName(n,i),getEnsResolver:i=>getEnsResolver(n,i),getEnsText:i=>getEnsText(n,i),getFeeHistory:i=>getFeeHistory(n,i),estimateFeesPerGas:i=>(0,eO.X)(n,i),getFilterChanges:i=>getFilterChanges(n,i),getFilterLogs:i=>getFilterLogs(n,i),getGasPrice:()=>(0,eU.o)(n),getLogs:i=>getLogs(n,i),getProof:i=>getProof(n,i),estimateMaxPriorityFeePerGas:i=>(0,eI._)(n,i),getStorageAt:i=>getStorageAt(n,i),getTransaction:i=>getTransaction(n,i),getTransactionConfirmations:i=>getTransactionConfirmations(n,i),getTransactionCount:i=>(0,e$.K)(n,i),getTransactionReceipt:i=>getTransactionReceipt(n,i),multicall:i=>multicall(n,i),prepareTransactionRequest:i=>(0,e0.Z)(n,i),readContract:i=>readContract(n,i),sendRawTransaction:i=>(0,e1.p)(n,i),simulateContract:i=>simulateContract(n,i),verifyMessage:i=>verifyMessage(n,i),verifyTypedData:i=>verifyTypedData(n,i),uninstallFilter:i=>uninstallFilter(n,i),waitForTransactionReceipt:i=>waitForTransactionReceipt(n,i),watchBlocks:i=>watchBlocks(n,i),watchBlockNumber:i=>watchBlockNumber(n,i),watchContractEvent:i=>watchContractEvent(n,i),watchEvent:i=>watchEvent(n,i),watchPendingTransactions:i=>watchPendingTransactions(n,i)}}function createPublicClient(n){let{key:i="public",name:o="Public Client"}=n,u=(0,j.e)({...n,key:i,name:o,type:"publicClient"});return u.extend(publicActions)}var e2=o(17202),e6=o(33365);function fallback(n,i={}){let{key:o="fallback",name:u="Fallback",rank:l=!1,retryCount:d,retryDelay:x}=i;return({chain:i,pollingInterval:I=4e3,timeout:R})=>{let j=n,onResponse=()=>{},W=(0,e6.q)({key:o,name:u,async request({method:n,params:o}){let fetch=async(u=0)=>{let l=j[u]({chain:i,retryCount:0,timeout:R});try{let i=await l.request({method:n,params:o});return onResponse({method:n,params:o,response:i,transport:l,status:"success"}),i}catch(i){if(onResponse({error:i,method:n,params:o,transport:l,status:"error"}),(0,e2.y)(i)||u===j.length-1)throw i;return fetch(u+1)}};return fetch()},retryCount:d,retryDelay:x,type:"fallback"},{onResponse:n=>onResponse=n,transports:j.map(n=>n({chain:i,retryCount:0}))});if(l){let n="object"==typeof l?l:{};rankTransports({chain:i,interval:n.interval??I,onTransports:n=>j=n,sampleCount:n.sampleCount,timeout:n.timeout,transports:j,weights:n.weights})}return W}}function rankTransports({chain:n,interval:i=4e3,onTransports:o,sampleCount:u=10,timeout:l=1e3,transports:d,weights:x={}}){let{stability:I=.7,latency:R=.3}=x,j=[],rankTransports_=async()=>{let x=await Promise.all(d.map(async i=>{let o,u;let d=i({chain:n,retryCount:0,timeout:l}),x=Date.now();try{await d.request({method:"net_listening"}),u=1}catch{u=0}finally{o=Date.now()}let I=o-x;return{latency:I,success:u}}));j.push(x),j.length>u&&j.shift();let W=Math.max(...j.map(n=>Math.max(...n.map(({latency:n})=>n)))),J=d.map((n,i)=>{let o=j.map(n=>n[i].latency),u=o.reduce((n,i)=>n+i,0)/o.length,l=j.map(n=>n[i].success),d=l.reduce((n,i)=>n+i,0)/l.length;return 0===d?[0,i]:[R*(1-u/W)+I*d,i]}).sort((n,i)=>i[0]-n[0]);o(J.map(([,n])=>d[n])),await (0,eX.D)(i),rankTransports_()};rankTransports_()}var e5=o(26476);let UrlRequiredError=class UrlRequiredError extends ec.G{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro"})}};var e3=o(16360),e8=o(32944);function withTimeout(n,{errorInstance:i=Error("timed out"),timeout:o,signal:u}){return new Promise((l,d)=>{(async()=>{let x;try{let I=new AbortController;o>0&&(x=setTimeout(()=>{u?I.abort():d(i)},o)),l(await n({signal:I?.signal}))}catch(n){"AbortError"===n.name&&d(i),d(n)}finally{clearTimeout(x)}})()})}let e4=0;async function http(n,{body:i,fetchOptions:o={},timeout:u=1e4}){let{headers:l,method:d,signal:x}=o;try{let I;let R=await withTimeout(async({signal:I})=>{let R=await fetch(n,{...o,body:Array.isArray(i)?(0,eY.P)(i.map(n=>({jsonrpc:"2.0",id:n.id??e4++,...n}))):(0,eY.P)({jsonrpc:"2.0",id:i.id??e4++,...i}),headers:{...l,"Content-Type":"application/json"},method:d||"POST",signal:x||(u>0?I:void 0)});return R},{errorInstance:new e5.W5({body:i,url:n}),timeout:u,signal:!0});if(I=R.headers.get("Content-Type")?.startsWith("application/json")?await R.json():await R.text(),!R.ok)throw new e5.Gg({body:i,details:(0,eY.P)(I.error)||R.statusText,headers:R.headers,status:R.status,url:n});return I}catch(o){if(o instanceof e5.Gg||o instanceof e5.W5)throw o;throw new e5.Gg({body:i,details:o.message,url:n})}}let e9=new Map;async function getSocket(n){let i=e9.get(n);if(i)return i;let{schedule:o}=(0,e3.S)({id:n,fn:async()=>{let o=new e8.WebSocket(n),u=new Map,l=new Map,onMessage=({data:n})=>{let i=JSON.parse(n),o="eth_subscription"===i.method,d=o?i.params.subscription:i.id,x=o?l:u,I=x.get(d);I&&I({data:n}),o||x.delete(d)},onClose=()=>{e9.delete(n),o.removeEventListener("close",onClose),o.removeEventListener("message",onMessage)};return o.addEventListener("close",onClose),o.addEventListener("message",onMessage),o.readyState===e8.WebSocket.CONNECTING&&await new Promise((n,i)=>{o&&(o.onopen=n,o.onerror=i)}),i=Object.assign(o,{requests:u,subscriptions:l}),e9.set(n,i),[i]}}),[u,[l]]=await o();return l}function webSocket(n,{body:i,onResponse:o}){if(n.readyState===n.CLOSED||n.readyState===n.CLOSING)throw new e5.c9({body:i,url:n.url,details:"Socket is closed."});let u=e4++,callback=({data:l})=>{let d=JSON.parse(l);("number"!=typeof d.id||u===d.id)&&(o?.(d),"eth_subscribe"===i.method&&"string"==typeof d.result&&n.subscriptions.set(d.result,callback),"eth_unsubscribe"===i.method&&n.subscriptions.delete(i.params?.[0]))};return n.requests.set(u,callback),n.send(JSON.stringify({jsonrpc:"2.0",...i,id:u})),n}async function webSocketAsync(n,{body:i,timeout:o=1e4}){return withTimeout(()=>new Promise(o=>e7.webSocket(n,{body:i,onResponse:o})),{errorInstance:new e5.W5({body:i,url:n.url}),timeout:o})}let e7={http,webSocket,webSocketAsync};function http_http(n,i={}){let{batch:o,fetchOptions:u,key:l="http",name:d="HTTP JSON-RPC",retryDelay:x}=i;return({chain:I,retryCount:R,timeout:j})=>{let{batchSize:W=1e3,wait:J=0}="object"==typeof o?o:{},et=i.retryCount??R,ei=j??i.timeout??1e4,eo=n||I?.rpcUrls.default.http[0];if(!eo)throw new UrlRequiredError;return(0,e6.q)({key:l,name:d,async request({method:i,params:l}){let d={method:i,params:l},{schedule:x}=(0,e3.S)({id:`${n}`,wait:J,shouldSplitBatch:n=>n.length>W,fn:n=>e7.http(eo,{body:n,fetchOptions:u,timeout:ei}),sort:(n,i)=>n.id-i.id}),fn=async n=>o?x(n):[await e7.http(eo,{body:n,fetchOptions:u,timeout:ei})],[{error:I,result:R}]=await fn(d);if(I)throw new e5.bs({body:d,error:I,url:eo});return R},retryCount:et,retryDelay:x,timeout:ei,type:"http"},{fetchOptions:u,url:n})}}function webSocket_webSocket(n,i={}){let{key:o="webSocket",name:u="WebSocket JSON-RPC",retryDelay:l}=i;return({chain:d,retryCount:x,timeout:I})=>{let R=i.retryCount??x,j=I??i.timeout??1e4,W=n||d?.rpcUrls.default.webSocket?.[0];if(!W)throw new UrlRequiredError;return(0,e6.q)({key:o,name:u,async request({method:n,params:i}){let o={method:n,params:i},u=await getSocket(W),{error:l,result:d}=await e7.webSocketAsync(u,{body:o,timeout:j});if(l)throw new e5.bs({body:o,error:l,url:W});return d},retryCount:R,retryDelay:l,timeout:j,type:"webSocket"},{getSocket:()=>getSocket(W),async subscribe({params:n,onData:i,onError:o}){let u=await getSocket(W),{result:l}=await new Promise((l,d)=>e7.webSocket(u,{body:{method:"eth_subscribe",params:n},onResponse(n){if(n.error){d(n.error),o?.(n.error);return}if("number"==typeof n.id){l(n);return}"eth_subscription"===n.method&&i(n.params)}}));return{subscriptionId:l,unsubscribe:async()=>new Promise(n=>e7.webSocket(u,{body:{method:"eth_unsubscribe",params:[l]},onResponse:n}))}}})}}var tt=o(7688),tn=o(96228);let subscribeWithSelector=n=>(i,o,u)=>{let l=u.subscribe;u.subscribe=(n,i,o)=>{let d=n;if(i){let l=(null==o?void 0:o.equalityFn)||Object.is,x=n(u.getState());d=o=>{let u=n(o);if(!l(x,u)){let n=x;i(x=u,n)}},(null==o?void 0:o.fireImmediately)&&i(x,x)}return l(d)};let d=n(i,o,u);return d};function createJSONStorage(n,i){let o;try{o=n()}catch(n){return}return{getItem:n=>{var u;let parse=n=>null===n?null:JSON.parse(n,null==i?void 0:i.reviver),l=null!=(u=o.getItem(n))?u:null;return l instanceof Promise?l.then(parse):parse(l)},setItem:(n,u)=>o.setItem(n,JSON.stringify(u,null==i?void 0:i.replacer)),removeItem:n=>o.removeItem(n)}}let toThenable=n=>i=>{try{let o=n(i);if(o instanceof Promise)return o;return{then:n=>toThenable(n)(o),catch(n){return this}}}catch(n){return{then(n){return this},catch:i=>toThenable(i)(n)}}},oldImpl=(n,i)=>(o,u,l)=>{let d,x,I={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:n=>n,version:0,merge:(n,i)=>({...i,...n}),...i},R=!1,j=new Set,W=new Set;try{d=I.getStorage()}catch(n){}if(!d)return n((...n)=>{console.warn(`[zustand persist middleware] Unable to update item '${I.name}', the given storage is currently unavailable.`),o(...n)},u,l);let J=toThenable(I.serialize),setItem=()=>{let n;let i=I.partialize({...u()}),o=J({state:i,version:I.version}).then(n=>d.setItem(I.name,n)).catch(i=>{n=i});if(n)throw n;return o},et=l.setState;l.setState=(n,i)=>{et(n,i),setItem()};let ei=n((...n)=>{o(...n),setItem()},u,l),hydrate=()=>{var n;if(!d)return;R=!1,j.forEach(n=>n(u()));let i=(null==(n=I.onRehydrateStorage)?void 0:n.call(I,u()))||void 0;return toThenable(d.getItem.bind(d))(I.name).then(n=>{if(n)return I.deserialize(n)}).then(n=>{if(n){if("number"!=typeof n.version||n.version===I.version)return n.state;if(I.migrate)return I.migrate(n.state,n.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}}).then(n=>{var i;return o(x=I.merge(n,null!=(i=u())?i:ei),!0),setItem()}).then(()=>{null==i||i(x,void 0),R=!0,W.forEach(n=>n(x))}).catch(n=>{null==i||i(void 0,n)})};return l.persist={setOptions:n=>{I={...I,...n},n.getStorage&&(d=n.getStorage())},clearStorage:()=>{null==d||d.removeItem(I.name)},getOptions:()=>I,rehydrate:()=>hydrate(),hasHydrated:()=>R,onHydrate:n=>(j.add(n),()=>{j.delete(n)}),onFinishHydration:n=>(W.add(n),()=>{W.delete(n)})},hydrate(),x||ei},newImpl=(n,i)=>(o,u,l)=>{let d,x={storage:createJSONStorage(()=>localStorage),partialize:n=>n,version:0,merge:(n,i)=>({...i,...n}),...i},I=!1,R=new Set,j=new Set,W=x.storage;if(!W)return n((...n)=>{console.warn(`[zustand persist middleware] Unable to update item '${x.name}', the given storage is currently unavailable.`),o(...n)},u,l);let setItem=()=>{let n=x.partialize({...u()});return W.setItem(x.name,{state:n,version:x.version})},J=l.setState;l.setState=(n,i)=>{J(n,i),setItem()};let et=n((...n)=>{o(...n),setItem()},u,l);l.getInitialState=()=>et;let hydrate=()=>{var n,i;if(!W)return;I=!1,R.forEach(n=>{var i;return n(null!=(i=u())?i:et)});let l=(null==(i=x.onRehydrateStorage)?void 0:i.call(x,null!=(n=u())?n:et))||void 0;return toThenable(W.getItem.bind(W))(x.name).then(n=>{if(n){if("number"!=typeof n.version||n.version===x.version)return n.state;if(x.migrate)return x.migrate(n.state,n.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}}).then(n=>{var i;return o(d=x.merge(n,null!=(i=u())?i:et),!0),setItem()}).then(()=>{null==l||l(d,void 0),d=u(),I=!0,j.forEach(n=>n(d))}).catch(n=>{null==l||l(void 0,n)})};return l.persist={setOptions:n=>{x={...x,...n},n.storage&&(W=n.storage)},clearStorage:()=>{null==W||W.removeItem(x.name)},getOptions:()=>x,rehydrate:()=>hydrate(),hasHydrated:()=>I,onHydrate:n=>(R.add(n),()=>{R.delete(n)}),onFinishHydration:n=>(j.add(n),()=>{j.delete(n)})},x.skipHydration||hydrate(),d||et},persist=(n,i)=>"getStorage"in i||"serialize"in i||"deserialize"in i?(console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),oldImpl(n,i)):newImpl(n,i),createStoreImpl=n=>{let i;let o=new Set,setState=(n,u)=>{let l="function"==typeof n?n(i):n;if(!Object.is(l,i)){let n=i;i=(null!=u?u:"object"!=typeof l||null===l)?l:Object.assign({},i,l),o.forEach(o=>o(i,n))}},getState=()=>i,u={setState,getState,getInitialState:()=>l,subscribe:n=>(o.add(n),()=>o.delete(n)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),o.clear()}},l=i=n(setState,getState,u);return u},createStore=n=>n?createStoreImpl(n):createStoreImpl;var ti=o(89492);function shallow$1(n,i){if(Object.is(n,i))return!0;if("object"!=typeof n||null===n||"object"!=typeof i||null===i)return!1;if(n instanceof Map&&i instanceof Map){if(n.size!==i.size)return!1;for(let[o,u]of n)if(!Object.is(u,i.get(o)))return!1;return!0}if(n instanceof Set&&i instanceof Set){if(n.size!==i.size)return!1;for(let o of n)if(!i.has(o))return!1;return!0}let o=Object.keys(n);if(o.length!==Object.keys(i).length)return!1;for(let u=0;un===o.id)||(R=[...R,i.chain]),j[o.id]=[...j[o.id]||[],...i.rpcUrls.http],i.rpcUrls.webSocket&&(W[o.id]=[...W[o.id]||[],...i.rpcUrls.webSocket]))}if(!n)throw Error(`Could not find valid provider configuration for chain "${o.name}". - -You may need to add \`jsonRpcProvider\` to \`configureChains\` with the chain's RPC URLs. -Read more: https://wagmi.sh/core/providers/jsonRpc`)}return{chains:R,publicClient:({chainId:i})=>{let W=R.find(n=>n.id===i)??n[0],J=j[W.id];if(!J||!J[0])throw Error(`No providers configured for chain "${W.id}"`);let et=createPublicClient({batch:o,chain:W,transport:fallback(J.map(n=>http_http(n,{timeout:I})),{rank:l,retryCount:d,retryDelay:x}),pollingInterval:u});return Object.assign(et,{chains:R})},webSocketPublicClient:({chainId:i})=>{let j=R.find(n=>n.id===i)??n[0],J=W[j.id];if(!J||!J[0])return;let et=createPublicClient({batch:o,chain:j,transport:fallback(J.map(n=>webSocket_webSocket(n,{timeout:I})),{rank:l,retryCount:d,retryDelay:x}),pollingInterval:u});return Object.assign(et,{chains:R})}}}var ta=class extends Error{constructor({chainId:n,connectorId:i}){super(`Chain "${n}" not configured${i?` for connector "${i}"`:""}.`),this.name="ChainNotConfigured"}},ts=class extends Error{constructor(){super(...arguments),this.name="ConnectorAlreadyConnectedError",this.message="Connector already connected"}},tu=class extends Error{constructor(){super(...arguments),this.name="ConfigChainsNotFound",this.message="No chains were found on the wagmi config. Some functions that require a chain may not work."}},tc=class extends Error{constructor({connector:n}){super(`"${n.name}" does not support programmatic chain switching.`),this.name="SwitchChainNotSupportedError"}};function deepEqual(n,i){if(n===i)return!0;if(n&&i&&"object"==typeof n&&"object"==typeof i){let o,u;if(n.constructor!==i.constructor)return!1;if(Array.isArray(n)&&Array.isArray(i)){if((o=n.length)!=i.length)return!1;for(u=o;0!=u--;)if(!deepEqual(n[u],i[u]))return!1;return!0}if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===i.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===i.toString();let l=Object.keys(n);if((o=l.length)!==Object.keys(i).length)return!1;for(u=o;0!=u--;)if(!Object.prototype.hasOwnProperty.call(i,l[u]))return!1;for(u=o;0!=u--;){let o=l[u];if(o&&!deepEqual(n[o],i[o]))return!1}return!0}return n!=n&&i!=i}var findAndReplace=(n,{find:i,replace:o})=>n&&i(n)?o(n):"object"!=typeof n?n:Array.isArray(n)?n.map(n=>findAndReplace(n,{find:i,replace:o})):n instanceof Object?Object.entries(n).reduce((n,[u,l])=>({...n,[u]:findAndReplace(l,{find:i,replace:o})}),{}):n;function deserialize(n){let i=JSON.parse(n),o=findAndReplace(i,{find:n=>"string"==typeof n&&n.startsWith("#bigint."),replace:n=>BigInt(n.replace("#bigint.",""))});return o}function getUnit(n){return"number"==typeof n?n:"wei"===n?0:Math.abs(tn.Bd[n])}function getReferenceKey(n,i){return n.slice(0,i).join(".")||"."}function getCutoff(n,i){let{length:o}=n;for(let u=0;u{let u="bigint"==typeof o?`#bigint.${o.toString()}`:o;return i?.(n,u)||u},u),o??void 0)}var tl={getItem:n=>"",setItem:(n,i)=>null,removeItem:n=>null};function createStorage({deserialize:n=deserialize,key:i="wagmi",serialize:o=serialize,storage:u}){return{...u,getItem:(o,l=null)=>{let d=u.getItem(`${i}.${o}`);try{return d?n(d):l}catch(n){return console.warn(n),l}},setItem:(n,l)=>{if(null===l)u.removeItem(`${i}.${n}`);else try{u.setItem(`${i}.${n}`,o(l))}catch(n){console.error(n)}},removeItem:n=>u.removeItem(`${i}.${n}`)}}var td="store",tf=class{constructor({autoConnect:n=!1,connectors:i=[new R._],publicClient:o,storage:I=createStorage({storage:"undefined"!=typeof window?window.localStorage:tl}),logger:j={warn:console.warn},webSocketPublicClient:W}){let J;__privateAdd(this,d),this.publicClients=new Map,this.webSocketPublicClients=new Map,__privateAdd(this,u,void 0),__privateAdd(this,l,void 0),this.args={autoConnect:n,connectors:i,logger:j,publicClient:o,storage:I,webSocketPublicClient:W};let et="disconnected";if(n)try{let n=I.getItem(td),i=n?.state?.data;et=i?.account?"reconnecting":"connecting",J=i?.chain?.id}catch(n){}let ei="function"==typeof i?i():i;ei.forEach(n=>n.setStorage(I)),this.store=createStore(subscribeWithSelector(persist(()=>({connectors:ei,publicClient:this.getPublicClient({chainId:J}),status:et,webSocketPublicClient:this.getWebSocketPublicClient({chainId:J})}),{name:td,storage:I,partialize:i=>({...n&&{data:{account:i?.data?.account,chain:i?.data?.chain}},chains:i?.chains}),version:2}))),this.storage=I,__privateSet(this,l,I?.getItem("wallet")),__privateMethod(this,d,x).call(this),n&&"undefined"!=typeof window&&setTimeout(async()=>await this.autoConnect(),0)}get chains(){return this.store.getState().chains}get connectors(){return this.store.getState().connectors}get connector(){return this.store.getState().connector}get data(){return this.store.getState().data}get error(){return this.store.getState().error}get lastUsedChainId(){return this.data?.chain?.id}get publicClient(){return this.store.getState().publicClient}get status(){return this.store.getState().status}get subscribe(){return this.store.subscribe}get webSocketPublicClient(){return this.store.getState().webSocketPublicClient}setState(n){let i="function"==typeof n?n(this.store.getState()):n;this.store.setState(i,!0)}clearState(){this.setState(n=>({...n,chains:void 0,connector:void 0,data:void 0,error:void 0,status:"disconnected"}))}async destroy(){this.connector&&await this.connector.disconnect?.(),__privateSet(this,u,!1),this.clearState(),this.store.destroy()}async autoConnect(){if(__privateGet(this,u))return;__privateSet(this,u,!0),this.setState(n=>({...n,status:n.data?.account?"reconnecting":"connecting"}));let n=__privateGet(this,l)?[...this.connectors].sort(n=>n.id===__privateGet(this,l)?-1:1):this.connectors,i=!1;for(let o of n){if(!o.ready||!o.isAuthorized)continue;let n=await o.isAuthorized();if(!n)continue;let u=await o.connect();this.setState(n=>({...n,connector:o,chains:o?.chains,data:u,status:"connected"})),i=!0;break}return i||this.setState(n=>({...n,data:void 0,status:"disconnected"})),__privateSet(this,u,!1),this.data}setConnectors(n){this.args={...this.args,connectors:n};let i="function"==typeof n?n():n;i.forEach(n=>n.setStorage(this.args.storage)),this.setState(n=>({...n,connectors:i}))}getPublicClient({chainId:n}={}){let i=this.publicClients.get(-1);if(i&&i?.chain.id===n||(i=this.publicClients.get(n??-1)))return i;let{publicClient:o}=this.args;return i="function"==typeof o?o({chainId:n}):o,this.publicClients.set(n??-1,i),i}setPublicClient(n){let i=this.data?.chain?.id;this.args={...this.args,publicClient:n},this.publicClients.clear(),this.setState(n=>({...n,publicClient:this.getPublicClient({chainId:i})}))}getWebSocketPublicClient({chainId:n}={}){let i=this.webSocketPublicClients.get(-1);if(i&&i?.chain.id===n||(i=this.webSocketPublicClients.get(n??-1)))return i;let{webSocketPublicClient:o}=this.args;return(i="function"==typeof o?o({chainId:n}):o)&&this.webSocketPublicClients.set(n??-1,i),i}setWebSocketPublicClient(n){let i=this.data?.chain?.id;this.args={...this.args,webSocketPublicClient:n},this.webSocketPublicClients.clear(),this.setState(n=>({...n,webSocketPublicClient:this.getWebSocketPublicClient({chainId:i})}))}setLastUsedConnector(n=null){this.storage?.setItem("wallet",n)}};function createConfig(n){let i=new tf(n);return I=i,i}function getConfig(){if(!I)throw Error("No wagmi config found. Ensure you have set up a config: https://wagmi.sh/react/config");return I}async function connect({chainId:n,connector:i}){let o=getConfig(),u=o.connector;if(u&&i.id===u.id)throw new ts;try{o.setState(n=>({...n,status:"connecting"}));let u=await i.connect({chainId:n});return o.setLastUsedConnector(i.id),o.setState(n=>({...n,connector:i,chains:i?.chains,data:u,status:"connected"})),o.storage.setItem("connected",!0),{...u,connector:i}}catch(n){throw o.setState(n=>({...n,status:n.connector?"connected":"disconnected"})),n}}async function disconnect(){let n=getConfig();n.connector&&await n.connector.disconnect(),n.clearState(),n.storage.removeItem("connected")}u=new WeakMap,l=new WeakMap,d=new WeakSet,x=function(){let onChange=n=>{this.setState(i=>({...i,data:{...i.data,...n}}))},onDisconnect=()=>{this.clearState()},onError=n=>{this.setState(i=>({...i,error:n}))};this.store.subscribe(({connector:n})=>n,(n,i)=>{i?.off?.("change",onChange),i?.off?.("disconnect",onDisconnect),i?.off?.("error",onError),n&&(n.on?.("change",onChange),n.on?.("disconnect",onDisconnect),n.on?.("error",onError))});let{publicClient:n,webSocketPublicClient:i}=this.args;("function"==typeof n||"function"==typeof i)&&this.store.subscribe(({data:n})=>n?.chain?.id,n=>{this.setState(i=>({...i,publicClient:this.getPublicClient({chainId:n}),webSocketPublicClient:this.getWebSocketPublicClient({chainId:n})}))})};var th=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{name:"",type:"string"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{name:"",type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}],tp=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{name:"",type:"bytes32"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{name:"",type:"bytes32"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}];function getPublicClient({chainId:n}={}){let i=getConfig();return n&&i.getPublicClient({chainId:n})||i.publicClient}async function getWalletClient({chainId:n}={}){let i=getConfig(),o=await i.connector?.getWalletClient?.({chainId:n})||null;return o}function getWebSocketPublicClient({chainId:n}={}){let i=getConfig();return n&&i.getWebSocketPublicClient({chainId:n})||i.webSocketPublicClient}function watchPublicClient(n,i){let o=getConfig(),handleChange=async()=>i(getPublicClient(n)),u=o.subscribe(({publicClient:n})=>n,handleChange);return u}function watchWalletClient({chainId:n},i){let o=getConfig(),handleChange=async({chainId:o})=>{if(n&&o&&n!==o)return;let u=await getWalletClient({chainId:n});return getConfig().connector?i(u):i(null)},u=o.subscribe(({data:n,connector:i})=>({account:n?.account,chainId:n?.chain?.id,connector:i}),handleChange,{equalityFn:shallow$1});return u}function watchWebSocketPublicClient(n,i){let o=getConfig(),handleChange=async()=>i(getWebSocketPublicClient(n)),u=o.subscribe(({webSocketPublicClient:n})=>n,handleChange);return u}async function chunk_TSH6VVF4_multicall({chainId:n,contracts:i,blockNumber:o,blockTag:u,...l}){let d=getPublicClient({chainId:n});if(!d.chains)throw new tu;if(n&&d.chain.id!==n)throw new ta({chainId:n});return d.multicall({allowFailure:l.allowFailure??!0,blockNumber:o,blockTag:u,contracts:i})}async function chunk_TSH6VVF4_readContract({address:n,account:i,chainId:o,abi:u,args:l,functionName:d,blockNumber:x,blockTag:I}){let R=getPublicClient({chainId:o});return R.readContract({abi:u,address:n,account:i,functionName:d,args:l,blockNumber:x,blockTag:I})}async function readContracts({contracts:n,blockNumber:i,blockTag:o,...u}){let{allowFailure:l=!0}=u;try{let u=getPublicClient(),d=n.reduce((n,i,o)=>{let l=i.chainId??u.chain.id;return{...n,[l]:[...n[l]||[],{contract:i,index:o}]}},{}),x=(await Promise.all(Object.entries(d).map(([n,u])=>chunk_TSH6VVF4_multicall({allowFailure:l,chainId:parseInt(n),contracts:u.map(({contract:n})=>n),blockNumber:i,blockTag:o})))).flat(),I=Object.values(d).flatMap(n=>n.map(({index:n})=>n));return x.reduce((n,i,o)=>(n&&(n[I[o]]=i),n),[])}catch(u){if(u instanceof el.uq)throw u;let promises=()=>n.map(n=>chunk_TSH6VVF4_readContract({...n,blockNumber:i,blockTag:o}));if(l)return(await Promise.allSettled(promises())).map(n=>"fulfilled"===n.status?{result:n.value,status:"success"}:{error:n.reason,result:void 0,status:"failure"});return await Promise.all(promises())}}async function fetchBalance({address:n,chainId:i,formatUnits:o,token:u}){let l=getConfig(),d=getPublicClient({chainId:i});if(u){let fetchContractBalance=async({abi:l})=>{let d={abi:l,address:u,chainId:i},[x,I,R]=await readContracts({allowFailure:!1,contracts:[{...d,functionName:"balanceOf",args:[n]},{...d,functionName:"decimals"},{...d,functionName:"symbol"}]});return{decimals:I,formatted:(0,ti.b)(x??"0",getUnit(o??I)),symbol:R,value:x}};try{return await fetchContractBalance({abi:th})}catch(n){if(n instanceof el.uq){let{symbol:n,...i}=await fetchContractBalance({abi:tp});return{symbol:(0,ej.rR)((0,eo.f)(n,{dir:"right"})),...i}}throw n}}let x=[...l.publicClient.chains||[],...l.chains??[]],I=await d.getBalance({address:n}),R=x.find(n=>n.id===d.chain.id);return{decimals:R?.nativeCurrency.decimals??18,formatted:(0,ti.b)(I??"0",getUnit(o??18)),symbol:R?.nativeCurrency.symbol??"ETH",value:I}}function getAccount(){let{data:n,connector:i,status:o}=getConfig();switch(o){case"connected":return{address:n?.account,connector:i,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:o};case"reconnecting":return{address:n?.account,connector:i,isConnected:!!n?.account,isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:o};case"connecting":return{address:n?.account,connector:i,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:o};case"disconnected":return{address:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:o}}}function getNetwork(){let n=getConfig(),i=n.data?.chain?.id,o=n.chains??[],u=[...n.publicClient?.chains||[],...o].find(n=>n.id===i)??{id:i,name:`Chain ${i}`,network:`${i}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}};return{chain:i?{...u,...n.data?.chain,id:i}:void 0,chains:o}}async function switchNetwork({chainId:n}){let{connector:i}=getConfig();if(!i)throw new tt.N;if(!i.switchChain)throw new tc({connector:i});return i.switchChain(n)}function watchAccount(n,{selector:i=n=>n}={}){let o=getConfig(),u=o.subscribe(({data:n,connector:o,status:u})=>i({address:n?.account,connector:o,status:u}),()=>n(getAccount()),{equalityFn:shallow$1});return u}function watchNetwork(n,{selector:i=n=>n}={}){let o=getConfig(),u=o.subscribe(({data:n,chains:o})=>i({chainId:n?.chain?.id,chains:o}),()=>n(getNetwork()),{equalityFn:shallow$1});return u}async function fetchEnsAddress({chainId:n,name:i}){let{normalize:u}=await o.e(974).then(o.bind(o,12974)),l=getPublicClient({chainId:n}),d=await l.getEnsAddress({name:u(i)});try{if("0x0000000000000000000000000000000000000000"===d)return null;return d?(0,to.K)(d):null}catch(n){return null}}async function fetchEnsAvatar({name:n,chainId:i}){let{normalize:u}=await o.e(974).then(o.bind(o,12974)),l=getPublicClient({chainId:i}),d=await l.getEnsAvatar({name:u(n)});return d}async function fetchEnsName({address:n,chainId:i}){let o=getPublicClient({chainId:i});return o.getEnsName({address:(0,to.K)(n)})}async function fetchBlockNumber({chainId:n}={}){let i=getPublicClient({chainId:n}),o=await i.getBlockNumber();return o}},2557:function(n,i,o){"use strict";function alchemyProvider({apiKey:n}){return function(i){let o=i.rpcUrls.alchemy?.http[0],u=i.rpcUrls.alchemy?.webSocket?.[0];return o?{chain:{...i,rpcUrls:{...i.rpcUrls,default:{http:[`${o}/${n}`]}}},rpcUrls:{http:[`${o}/${n}`],webSocket:[`${u}/${n}`]}}:null}}o.d(i,{G:function(){return alchemyProvider}})},42069:function(n,i,o){"use strict";function infuraProvider({apiKey:n}){return function(i){let o=i.rpcUrls.infura?.http[0],u=i.rpcUrls.infura?.webSocket?.[0];return o?{chain:{...i,rpcUrls:{...i.rpcUrls,default:{http:[`${o}/${n}`]}}},rpcUrls:{http:[`${o}/${n}`],webSocket:[`${u}/${n}`]}}:null}}o.d(i,{$:function(){return infuraProvider}})},61624:function(n,i,o){"use strict";function jsonRpcProvider({rpc:n}){return function(i){let o=n(i);return o&&""!==o.http?{chain:{...i,rpcUrls:{...i.rpcUrls,default:{http:[o.http]}}},rpcUrls:{http:[o.http],webSocket:o.webSocket?[o.webSocket]:void 0}}:null}}o.d(i,{R:function(){return jsonRpcProvider}})},86986:function(n,i,o){"use strict";function publicProvider(){return function(n){return n.rpcUrls.public.http[0]?{chain:n,rpcUrls:n.rpcUrls.public}:null}}o.d(i,{I:function(){return publicProvider}})},38665:function(n,i,o){"use strict";o.d(i,{M:function(){return AnimatePresence}});var u=o(90701),l=o(34270),d=o(63270),x=o(62897),I=o(3869);function useIsMounted(){var n=(0,l.useRef)(!1);return(0,I.L)(function(){return n.current=!0,function(){n.current=!1}},[]),n}function useForceUpdate(){var n=useIsMounted(),i=(0,u.__read)((0,l.useState)(0),2),o=i[0],d=i[1],I=(0,l.useCallback)(function(){n.current&&d(o+1)},[o]);return[(0,l.useCallback)(function(){return x.ZP.postRender(I)},[I]),o]}var R=o(18120),j=o(4310),W=o(76982),PresenceChild=function(n){var i=n.children,o=n.initial,d=n.isPresent,x=n.onExitComplete,I=n.custom,J=n.presenceAffectsLayout,et=(0,j.h)(newChildrenMap),ei=(0,W.M)(),eo=(0,l.useMemo)(function(){return{id:ei,initial:o,isPresent:d,custom:I,onExitComplete:function(n){var i,o;et.set(n,!0);try{for(var l=(0,u.__values)(et.values()),d=l.next();!d.done;d=l.next())if(!d.value)return}catch(n){i={error:n}}finally{try{d&&!d.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}null==x||x()},register:function(n){return et.set(n,!1),function(){return et.delete(n)}}}},J?void 0:[d]);return(0,l.useMemo)(function(){et.forEach(function(n,i){return et.set(i,!1)})},[d]),l.useEffect(function(){d||et.size||null==x||x()},[d]),l.createElement(R.O.Provider,{value:eo},i)};function newChildrenMap(){return new Map}var J=o(75794),et=o(83506),getChildKey=function(n){return n.key||""};function updateChildLookup(n,i){n.forEach(function(n){var o=getChildKey(n);i.set(o,n)})}function onlyElements(n){var i=[];return l.Children.forEach(n,function(n){(0,l.isValidElement)(n)&&i.push(n)}),i}var AnimatePresence=function(n){var i=n.children,o=n.custom,x=n.initial,R=void 0===x||x,j=n.onExitComplete,W=n.exitBeforeEnter,ei=n.presenceAffectsLayout,eo=void 0===ei||ei,es=(0,u.__read)(useForceUpdate(),1)[0],eu=(0,l.useContext)(J.p).forceRender;eu&&(es=eu);var ec=useIsMounted(),el=onlyElements(i),ed=el,ef=new Set,eh=(0,l.useRef)(ed),ep=(0,l.useRef)(new Map).current,em=(0,l.useRef)(!0);if((0,I.L)(function(){em.current=!1,updateChildLookup(el,ep),eh.current=ed}),(0,et.z)(function(){em.current=!0,ep.clear(),ef.clear()}),em.current)return l.createElement(l.Fragment,null,ed.map(function(n){return l.createElement(PresenceChild,{key:getChildKey(n),isPresent:!0,initial:!!R&&void 0,presenceAffectsLayout:eo},n)}));ed=(0,u.__spreadArray)([],(0,u.__read)(ed),!1);for(var eg=eh.current.map(getChildKey),ey=el.map(getChildKey),eb=eg.length,ev=0;ev1&&console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."),l.createElement(l.Fragment,null,ef.size?ed:ed.map(function(n){return(0,l.cloneElement)(n)}))}},50843:function(n,i,o){"use strict";o.d(i,{A:function(){return MotionConfig}});var u=o(90701),l=o(34270),d=o(42587),x=o(50693),I=o(4310);function MotionConfig(n){var i=n.children,o=n.isValidProp,R=(0,u.__rest)(n,["children","isValidProp"]);o&&(0,x.K)(o),(R=(0,u.__assign)((0,u.__assign)({},(0,l.useContext)(d._)),R)).isStatic=(0,I.h)(function(){return R.isStatic});var j=(0,l.useMemo)(function(){return R},[JSON.stringify(R.transition),R.transformPagePoint,R.reducedMotion]);return l.createElement(d._.Provider,{value:j},i)}},75794:function(n,i,o){"use strict";o.d(i,{p:function(){return u}});var u=(0,o(34270).createContext)({})},42587:function(n,i,o){"use strict";o.d(i,{_:function(){return u}});var u=(0,o(34270).createContext)({transformPagePoint:function(n){return n},isStatic:!1,reducedMotion:"never"})},18120:function(n,i,o){"use strict";o.d(i,{O:function(){return u}});var u=(0,o(34270).createContext)(null)},66265:function(n,i,o){"use strict";o.d(i,{E:function(){return rm}});var u,l,d,x,I=o(90701),R=o(34270),j=o(63270),createDefinition=function(n){return{isEnabled:function(i){return n.some(function(n){return!!i[n]})}}},W={measureLayout:createDefinition(["layout","layoutId","drag"]),animation:createDefinition(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:createDefinition(["exit"]),drag:createDefinition(["drag","dragControls"]),focus:createDefinition(["whileFocus"]),hover:createDefinition(["whileHover","onHoverStart","onHoverEnd"]),tap:createDefinition(["whileTap","onTap","onTapStart","onTapCancel"]),pan:createDefinition(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:createDefinition(["whileInView","onViewportEnter","onViewportLeave"])};function loadFeatures(n){for(var i in n)null!==n[i]&&("projectionNodeConstructor"===i?W.projectionNodeConstructor=n[i]:W[i].Component=n[i])}var J=o(14765),et=(0,R.createContext)({strict:!1}),ei=Object.keys(W),eo=ei.length;function useFeatures(n,i,o){var u=[],l=(0,R.useContext)(et);if(!i)return null;"production"!==j.O&&o&&l.strict&&(0,J.k)(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(var d=0;d-1||/[A-Z]/.test(n))return!0;return!1}var ew={};function addScaleCorrector(n){Object.assign(ew,n)}var eP=["","X","Y","Z"],ex=["transformPerspective","x","y","z"];function sortTransformProps(n,i){return ex.indexOf(n)-ex.indexOf(i)}["translate","scale","rotate","skew"].forEach(function(n){return eP.forEach(function(i){return ex.push(n+i)})});var eT=new Set(ex);function isTransformProp(n){return eT.has(n)}var eA=new Set(["originX","originY","originZ"]);function isForcedMotionValue(n,i){var o=i.layout,u=i.layoutId;return isTransformProp(n)||eA.has(n)||(o||void 0!==u)&&(!!ew[n]||"opacity"===n)}var isMotionValue=function(n){return!!(null!==n&&"object"==typeof n&&n.getVelocity)},eS={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function buildTransform(n,i,o,u){var l=n.transform,d=n.transformKeys,x=i.enableHardwareAcceleration,I=i.allowTransformNone,R="";d.sort(sortTransformProps);for(var j=!1,W=d.length,J=0;Jo=>Math.max(Math.min(o,i),n),sanitize=n=>n%1?Number(n.toFixed(5)):n,eC=/(-)?([\d]*\.?[\d])+/g,e_=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,eO=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function isString(n){return"string"==typeof n}let createUnitType=n=>({test:i=>isString(i)&&i.endsWith(n)&&1===i.split(" ").length,parse:parseFloat,transform:i=>`${i}${n}`}),eI=createUnitType("deg"),eB=createUnitType("%"),eD=createUnitType("px"),eR=createUnitType("vh"),ej=createUnitType("vw"),eM=Object.assign(Object.assign({},eB),{parse:n=>eB.parse(n)/100,transform:n=>eB.transform(100*n)}),ek={test:n=>"number"==typeof n,parse:parseFloat,transform:n=>n},eF=Object.assign(Object.assign({},ek),{transform:clamp(0,1)}),eN=Object.assign(Object.assign({},ek),{default:1});var eU=(0,I.__assign)((0,I.__assign)({},ek),{transform:Math.round}),eL={borderWidth:eD,borderTopWidth:eD,borderRightWidth:eD,borderBottomWidth:eD,borderLeftWidth:eD,borderRadius:eD,radius:eD,borderTopLeftRadius:eD,borderTopRightRadius:eD,borderBottomRightRadius:eD,borderBottomLeftRadius:eD,width:eD,maxWidth:eD,height:eD,maxHeight:eD,size:eD,top:eD,right:eD,bottom:eD,left:eD,padding:eD,paddingTop:eD,paddingRight:eD,paddingBottom:eD,paddingLeft:eD,margin:eD,marginTop:eD,marginRight:eD,marginBottom:eD,marginLeft:eD,rotate:eI,rotateX:eI,rotateY:eI,rotateZ:eI,scale:eN,scaleX:eN,scaleY:eN,scaleZ:eN,skew:eI,skewX:eI,skewY:eI,distance:eD,translateX:eD,translateY:eD,translateZ:eD,x:eD,y:eD,z:eD,perspective:eD,transformPerspective:eD,opacity:eF,originX:eM,originY:eM,originZ:eD,zIndex:eU,fillOpacity:eF,strokeOpacity:eF,numOctaves:eU};function buildHTMLStyles(n,i,o,u){var l,d=n.style,x=n.vars,I=n.transform,R=n.transformKeys,j=n.transformOrigin;R.length=0;var W=!1,J=!1,et=!0;for(var ei in i){var eo=i[ei];if(isCSSVariable(ei)){x[ei]=eo;continue}var es=eL[ei],eu=es&&"number"==typeof eo?es.transform(eo):eo;if(isTransformProp(ei)){if(W=!0,I[ei]=eu,R.push(ei),!et)continue;eo!==(null!==(l=es.default)&&void 0!==l?l:0)&&(et=!1)}else eA.has(ei)?(j[ei]=eu,J=!0):d[ei]=eu}W?d.transform=buildTransform(n,o,et,u):u?d.transform=u({},""):!i.transform&&d.transform&&(d.transform="none"),J&&(d.transformOrigin=buildTransformOrigin(j))}var createHtmlRenderState=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function copyRawValuesOnly(n,i,o){for(var u in i)isMotionValue(i[u])||isForcedMotionValue(u,o)||(n[u]=i[u])}function useInitialMotionValues(n,i,o){var u=n.transformTemplate;return(0,R.useMemo)(function(){var n=createHtmlRenderState();buildHTMLStyles(n,i,{enableHardwareAcceleration:!o},u);var l=n.vars,d=n.style;return(0,I.__assign)((0,I.__assign)({},l),d)},[i])}function useStyle(n,i,o){var u=n.style||{},l={};return copyRawValuesOnly(l,u,n),Object.assign(l,useInitialMotionValues(n,i,o)),n.transformValues&&(l=n.transformValues(l)),l}function useHTMLProps(n,i,o){var u={},l=useStyle(n,i,o);return n.drag&&!1!==n.dragListener&&(u.draggable=!1,l.userSelect=l.WebkitUserSelect=l.WebkitTouchCallout="none",l.touchAction=!0===n.drag?"none":"pan-".concat("x"===n.drag?"y":"x")),u.style=l,u}var eH=o(50693);function calcOrigin(n,i,o){return"string"==typeof n?n:eD.transform(i+o*n)}function calcSVGTransformOrigin(n,i,o){var u=calcOrigin(i,n.x,n.width),l=calcOrigin(o,n.y,n.height);return"".concat(u," ").concat(l)}var e$={offset:"stroke-dashoffset",array:"stroke-dasharray"},eq={offset:"strokeDashoffset",array:"strokeDasharray"};function buildSVGPath(n,i,o,u,l){void 0===o&&(o=1),void 0===u&&(u=0),void 0===l&&(l=!0),n.pathLength=1;var d=l?e$:eq;n[d.offset]=eD.transform(-u);var x=eD.transform(i),I=eD.transform(o);n[d.array]="".concat(x," ").concat(I)}function buildSVGAttrs(n,i,o,u){var l=i.attrX,d=i.attrY,x=i.originX,R=i.originY,j=i.pathLength,W=i.pathSpacing,J=i.pathOffset;buildHTMLStyles(n,(0,I.__rest)(i,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),o,u),n.attrs=n.style,n.style={};var et=n.attrs,ei=n.style,eo=n.dimensions;et.transform&&(eo&&(ei.transform=et.transform),delete et.transform),eo&&(void 0!==x||void 0!==R||ei.transform)&&(ei.transformOrigin=calcSVGTransformOrigin(eo,void 0!==x?x:.5,void 0!==R?R:.5)),void 0!==l&&(et.x=l),void 0!==d&&(et.y=d),void 0!==j&&buildSVGPath(et,j,void 0===W?1:W,void 0===J?0:J,!1)}var createSvgRenderState=function(){return(0,I.__assign)((0,I.__assign)({},createHtmlRenderState()),{attrs:{}})};function useSVGProps(n,i){var o=(0,R.useMemo)(function(){var o=createSvgRenderState();return buildSVGAttrs(o,i,{enableHardwareAcceleration:!1},n.transformTemplate),(0,I.__assign)((0,I.__assign)({},o.attrs),{style:(0,I.__assign)({},o.style)})},[i]);if(n.style){var u={};copyRawValuesOnly(u,n.style,n),o.style=(0,I.__assign)((0,I.__assign)({},u),o.style)}return o}function createUseRender(n){return void 0===n&&(n=!1),function(i,o,u,l,d,x){var j=d.latestValues,W=(isSVGComponent(i)?useSVGProps:useHTMLProps)(o,j,x),J=(0,eH.L)(o,"string"==typeof i,n),et=(0,I.__assign)((0,I.__assign)((0,I.__assign)({},J),W),{ref:l});return u&&(et["data-projection-id"]=u),(0,R.createElement)(i,et)}}var ez=/([a-z])([A-Z])/g,camelToDash=function(n){return n.replace(ez,"$1-$2").toLowerCase()};function renderHTML(n,i,o,u){var l=i.style,d=i.vars;for(var x in Object.assign(n.style,l,u&&u.getProjectionStyles(o)),d)n.style.setProperty(x,d[x])}var eV=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function renderSVG(n,i,o,u){for(var l in renderHTML(n,i,void 0,u),i.attrs)n.setAttribute(eV.has(l)?l:camelToDash(l),i.attrs[l])}function scrapeMotionValuesFromProps(n){var i=n.style,o={};for(var u in i)(isMotionValue(i[u])||isForcedMotionValue(u,n))&&(o[u]=i[u]);return o}function scrape_motion_values_scrapeMotionValuesFromProps(n){var i=scrapeMotionValuesFromProps(n);for(var o in n)isMotionValue(n[o])&&(i["x"===o||"y"===o?"attr"+o.toUpperCase():o]=n[o]);return i}function isAnimationControls(n){return"object"==typeof n&&"function"==typeof n.start}var isKeyframesTarget=function(n){return Array.isArray(n)},resolveFinalValueInKeyframes=function(n){return isKeyframesTarget(n)?n[n.length-1]||0:n};function resolveMotionValue(n){var i=isMotionValue(n)?n.get():n;return i&&"object"==typeof i&&i.mix&&i.toValue?i.toValue():i}function makeState(n,i,o,u){var l=n.scrapeMotionValuesFromProps,d=n.createRenderState,x=n.onMount,I={latestValues:makeLatestValues(i,o,u,l),renderState:d()};return x&&(I.mount=function(n){return x(i,n,I)}),I}var makeUseVisualState=function(n){return function(i,o){var u=(0,R.useContext)(eu),l=(0,R.useContext)(ec.O);return o?makeState(n,i,u,l):(0,ep.h)(function(){return makeState(n,i,u,l)})}};function makeLatestValues(n,i,o,u){var l={},d=(null==o?void 0:o.initial)===!1,x=u(n);for(var R in x)l[R]=resolveMotionValue(x[R]);var j=n.initial,W=n.animate,J=checkIfControllingVariants(n),et=checkIfVariantNode(n);i&&et&&!J&&!1!==n.inherit&&(null!=j||(j=i.initial),null!=W||(W=i.animate));var ei=d||!1===j,eo=ei?W:j;return eo&&"boolean"!=typeof eo&&!isAnimationControls(eo)&&(Array.isArray(eo)?eo:[eo]).forEach(function(i){var o=resolveVariantFromProps(n,i);if(o){var u=o.transitionEnd;o.transition;var d=(0,I.__rest)(o,["transitionEnd","transition"]);for(var x in d){var R=d[x];if(Array.isArray(R)){var j=ei?R.length-1:0;R=R[j]}null!==R&&(l[x]=R)}for(var x in u)l[x]=u[x]}}),l}var eG={useVisualState:makeUseVisualState({scrapeMotionValuesFromProps:scrape_motion_values_scrapeMotionValuesFromProps,createRenderState:createSvgRenderState,onMount:function(n,i,o){var u=o.renderState,l=o.latestValues;try{u.dimensions="function"==typeof i.getBBox?i.getBBox():i.getBoundingClientRect()}catch(n){u.dimensions={x:0,y:0,width:0,height:0}}buildSVGAttrs(u,l,{enableHardwareAcceleration:!1},n.transformTemplate),renderSVG(i,u)}})},eW={useVisualState:makeUseVisualState({scrapeMotionValuesFromProps:scrapeMotionValuesFromProps,createRenderState:createHtmlRenderState})};function create_config_createDomMotionConfig(n,i,o,u,l){var d=i.forwardMotionProps,x=void 0!==d&&d,R=isSVGComponent(n)?eG:eW;return(0,I.__assign)((0,I.__assign)({},R),{preloadedFeatures:o,useRender:createUseRender(x),createVisualElement:u,projectionNodeConstructor:l,Component:n})}function addDomEvent(n,i,o,u){return void 0===u&&(u={passive:!0}),n.addEventListener(i,o,u),function(){return n.removeEventListener(i,o)}}function useDomEvent(n,i,o,u){(0,R.useEffect)(function(){var l=n.current;if(o&&l)return addDomEvent(l,i,o,u)},[n,i,o,u])}function useFocusGesture(n){var i=n.whileFocus,o=n.visualElement;useDomEvent(o,"focus",i?function(){var n;null===(n=o.animationState)||void 0===n||n.setActive(d.Focus,!0)}:void 0),useDomEvent(o,"blur",i?function(){var n;null===(n=o.animationState)||void 0===n||n.setActive(d.Focus,!1)}:void 0)}function isMouseEvent(n){return"undefined"!=typeof PointerEvent&&n instanceof PointerEvent?!("mouse"!==n.pointerType):n instanceof MouseEvent}function filterPrimaryPointer(n){return function(i){var o=i instanceof MouseEvent;(!o||o&&0===i.button)&&n(i)}}(u=d||(d={})).Animate="animate",u.Hover="whileHover",u.Tap="whileTap",u.Drag="whileDrag",u.Focus="whileFocus",u.InView="whileInView",u.Exit="exit";var eK={pageX:0,pageY:0};function pointFromTouch(n,i){void 0===i&&(i="page");var o=n.touches[0]||n.changedTouches[0]||eK;return{x:o[i+"X"],y:o[i+"Y"]}}function pointFromMouse(n,i){return void 0===i&&(i="page"),{x:n[i+"X"],y:n[i+"Y"]}}function extractEventInfo(n,i){return void 0===i&&(i="page"),{point:n.touches?pointFromTouch(n,i):pointFromMouse(n,i)}}var wrapHandler=function(n,i){void 0===i&&(i=!1);var listener=function(i){return n(i,extractEventInfo(i))};return i?filterPrimaryPointer(listener):listener},eQ={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},eZ={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function getPointerEventName(n){if(ed.j&&null===window.onpointerdown);else if(ed.j&&null===window.ontouchstart)return eZ[n];else if(ed.j&&null===window.onmousedown)return eQ[n];return n}function addPointerEvent(n,i,o,u){return addDomEvent(n,getPointerEventName(i),wrapHandler(o,"pointerdown"===i),u)}function usePointerEvent(n,i,o,u){return useDomEvent(n,getPointerEventName(i),o&&wrapHandler(o,"pointerdown"===i),u)}function createLock(n){var i=null;return function(){return null===i&&(i=n,function(){i=null})}}var eY=createLock("dragHorizontal"),eX=createLock("dragVertical");function getGlobalLock(n){var i=!1;if("y"===n)i=eX();else if("x"===n)i=eY();else{var o=eY(),u=eX();o&&u?i=function(){o(),u()}:(o&&o(),u&&u())}return i}function isDragActive(){var n=getGlobalLock(!0);return!n||(n(),!1)}function createHoverEvent(n,i,o){return function(u,l){var x;!isMouseEvent(u)||isDragActive()||(null===(x=n.animationState)||void 0===x||x.setActive(d.Hover,i),null==o||o(u,l))}}function useHoverGesture(n){var i=n.onHoverStart,o=n.onHoverEnd,u=n.whileHover,l=n.visualElement;usePointerEvent(l,"pointerenter",i||u?createHoverEvent(l,!0,i):void 0,{passive:!i}),usePointerEvent(l,"pointerleave",o||u?createHoverEvent(l,!1,o):void 0,{passive:!o})}var isNodeOrChild=function(n,i){return!!i&&(n===i||isNodeOrChild(n,i.parentElement))},eJ=o(83506);let combineFunctions=(n,i)=>o=>i(n(o)),pipe=(...n)=>n.reduce(combineFunctions);function useTapGesture(n){var i=n.onTap,o=n.onTapStart,u=n.onTapCancel,l=n.whileTap,x=n.visualElement,I=i||o||u||l,j=(0,R.useRef)(!1),W=(0,R.useRef)(null),J={passive:!(o||i||u||onPointerDown)};function removePointerEndListener(){var n;null===(n=W.current)||void 0===n||n.call(W),W.current=null}function checkPointerEnd(){var n;return removePointerEndListener(),j.current=!1,null===(n=x.animationState)||void 0===n||n.setActive(d.Tap,!1),!isDragActive()}function onPointerUp(n,o){checkPointerEnd()&&(isNodeOrChild(x.getInstance(),n.target)?null==i||i(n,o):null==u||u(n,o))}function onPointerCancel(n,i){checkPointerEnd()&&(null==u||u(n,i))}function onPointerDown(n,i){var u;removePointerEndListener(),j.current||(j.current=!0,W.current=pipe(addPointerEvent(window,"pointerup",onPointerUp,J),addPointerEvent(window,"pointercancel",onPointerCancel,J)),null===(u=x.animationState)||void 0===u||u.setActive(d.Tap,!0),null==o||o(n,i))}usePointerEvent(x,"pointerdown",I?onPointerDown:void 0,J),(0,eJ.z)(removePointerEndListener)}var e0=new Set;function warnOnce(n,i,o){n||e0.has(i)||(console.warn(i),o&&console.warn(o),e0.add(i))}var e1=new WeakMap,e2=new WeakMap,fireObserverCallback=function(n){var i;null===(i=e1.get(n.target))||void 0===i||i(n)},fireAllObserverCallbacks=function(n){n.forEach(fireObserverCallback)};function initIntersectionObserver(n){var i=n.root,o=(0,I.__rest)(n,["root"]),u=i||document;e2.has(u)||e2.set(u,{});var l=e2.get(u),d=JSON.stringify(o);return l[d]||(l[d]=new IntersectionObserver(fireAllObserverCallbacks,(0,I.__assign)({root:i},o))),l[d]}function observeIntersection(n,i,o){var u=initIntersectionObserver(i);return e1.set(n,o),u.observe(n),function(){e1.delete(n),u.unobserve(n)}}var e6={some:0,all:1};function useIntersectionObserver(n,i,o,u){var l=u.root,x=u.margin,I=u.amount,j=void 0===I?"some":I,W=u.once;(0,R.useEffect)(function(){if(n){var u={root:null==l?void 0:l.current,rootMargin:x,threshold:"number"==typeof j?j:e6[j]};return observeIntersection(o.getInstance(),u,function(n){var u,l=n.isIntersecting;if(i.isInView!==l){if(i.isInView=l,W&&!l&&i.hasEnteredView)return;l&&(i.hasEnteredView=!0),null===(u=o.animationState)||void 0===u||u.setActive(d.InView,l);var x=o.getProps(),I=l?x.onViewportEnter:x.onViewportLeave;null==I||I(n)}})}},[n,l,x,j])}function useMissingIntersectionObserver(n,i,o,u){var l=u.fallback,x=void 0===l||l;(0,R.useEffect)(function(){n&&x&&("production"!==j.O&&warnOnce(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(function(){i.hasEnteredView=!0;var n,u=o.getProps().onViewportEnter;null==u||u(null),null===(n=o.animationState)||void 0===n||n.setActive(d.InView,!0)}))},[n])}var makeRenderlessComponent=function(n){return function(i){return n(i),null}},e5={inView:makeRenderlessComponent(function(n){var i=n.visualElement,o=n.whileInView,u=n.onViewportEnter,l=n.onViewportLeave,d=n.viewport,x=void 0===d?{}:d,I=(0,R.useRef)({hasEnteredView:!1,isInView:!1}),j=!!(o||u||l);x.once&&I.current.hasEnteredView&&(j=!1),("undefined"==typeof IntersectionObserver?useMissingIntersectionObserver:useIntersectionObserver)(j,I.current,i,x)}),tap:makeRenderlessComponent(useTapGesture),focus:makeRenderlessComponent(useFocusGesture),hover:makeRenderlessComponent(useHoverGesture)},e3=o(76982);function usePresence(){var n=(0,R.useContext)(ec.O);if(null===n)return[!0,null];var i=n.isPresent,o=n.onExitComplete,u=n.register,l=(0,e3.M)();return(0,R.useEffect)(function(){return u(l)},[]),!i&&o?[!1,function(){return null==o?void 0:o(l)}]:[!0]}function shallowCompare(n,i){if(!Array.isArray(i))return!1;var o=i.length;if(o!==n.length)return!1;for(var u=0;uMath.min(Math.max(o,n),i);function findSpring({duration:n=800,bounce:i=.25,velocity:o=0,mass:u=1}){let l,d;(0,J.K)(n<=1e4,"Spring duration must be 10 seconds or less");let x=1-i;x=clamp_clamp(.05,1,x),n=clamp_clamp(.01,10,n/1e3),x<1?(l=i=>{let u=i*x,l=u*n,d=calcAngularFreq(i,x);return .001-(u-o)/d*Math.exp(-l)},d=i=>{let u=i*x,d=u*n,I=Math.pow(x,2)*Math.pow(i,2)*n,R=calcAngularFreq(Math.pow(i,2),x),j=-l(i)+.001>0?-1:1;return j*((d*o+o-I)*Math.exp(-d))/R}):(l=i=>{let u=Math.exp(-i*n),l=(i-o)*n+1;return -.001+u*l},d=i=>{let u=Math.exp(-i*n),l=(o-i)*(n*n);return u*l});let I=5/n,R=approximateRoot(l,d,I);if(n*=1e3,isNaN(R))return{stiffness:100,damping:10,duration:n};{let i=Math.pow(R,2)*u;return{stiffness:i,damping:2*x*Math.sqrt(u*i),duration:n}}}function approximateRoot(n,i,o){let u=o;for(let o=1;o<12;o++)u-=n(u)/i(u);return u}function calcAngularFreq(n,i){return n*Math.sqrt(1-i*i)}let e8=["duration","bounce"],e4=["stiffness","damping","mass"];function isSpringType(n,i){return i.some(i=>void 0!==n[i])}function getSpringOptions(n){let i=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},n);if(!isSpringType(n,e4)&&isSpringType(n,e8)){let o=findSpring(n);(i=Object.assign(Object.assign(Object.assign({},i),o),{velocity:0,mass:1})).isResolvedFromDuration=!0}return i}function spring(n){var{from:i=0,to:o=1,restSpeed:u=2,restDelta:l}=n,d=(0,I.__rest)(n,["from","to","restSpeed","restDelta"]);let x={done:!1,value:i},{stiffness:R,damping:j,mass:W,velocity:J,duration:et,isResolvedFromDuration:ei}=getSpringOptions(d),eo=zero,es=zero;function createSpring(){let n=J?-(J/1e3):0,u=o-i,d=j/(2*Math.sqrt(R*W)),x=Math.sqrt(R/W)/1e3;if(void 0===l&&(l=Math.min(Math.abs(o-i)/100,.4)),d<1){let i=calcAngularFreq(x,d);eo=l=>{let I=Math.exp(-d*x*l);return o-I*((n+d*x*u)/i*Math.sin(i*l)+u*Math.cos(i*l))},es=o=>{let l=Math.exp(-d*x*o);return d*x*l*(Math.sin(i*o)*(n+d*x*u)/i+u*Math.cos(i*o))-l*(Math.cos(i*o)*(n+d*x*u)-i*u*Math.sin(i*o))}}else if(1===d)eo=i=>o-Math.exp(-x*i)*(u+(n+x*u)*i);else{let i=x*Math.sqrt(d*d-1);eo=l=>{let I=Math.exp(-d*x*l),R=Math.min(i*l,300);return o-I*((n+d*x*u)*Math.sinh(R)+i*u*Math.cosh(R))/i}}}return createSpring(),{next:n=>{let i=eo(n);if(ei)x.done=n>=et;else{let d=1e3*es(n),I=Math.abs(o-i)<=l;x.done=Math.abs(d)<=u&&I}return x.value=x.done?o:i,x},flipTarget:()=>{J=-J,[i,o]=[o,i],createSpring()}}}spring.needsInterpolation=(n,i)=>"string"==typeof n||"string"==typeof i;let zero=n=>0,progress=(n,i,o)=>{let u=i-n;return 0===u?1:(o-n)/u},mix=(n,i,o)=>-o*n+o*i+n,isColorString=(n,i)=>o=>!!(isString(o)&&eO.test(o)&&o.startsWith(n)||i&&Object.prototype.hasOwnProperty.call(o,i)),splitColor=(n,i,o)=>u=>{if(!isString(u))return u;let[l,d,x,I]=u.match(eC);return{[n]:parseFloat(l),[i]:parseFloat(d),[o]:parseFloat(x),alpha:void 0!==I?parseFloat(I):1}},e9=clamp(0,255),e7=Object.assign(Object.assign({},ek),{transform:n=>Math.round(e9(n))}),tt={test:isColorString("rgb","red"),parse:splitColor("red","green","blue"),transform:({red:n,green:i,blue:o,alpha:u=1})=>"rgba("+e7.transform(n)+", "+e7.transform(i)+", "+e7.transform(o)+", "+sanitize(eF.transform(u))+")"};function parseHex(n){let i="",o="",u="",l="";return n.length>5?(i=n.substr(1,2),o=n.substr(3,2),u=n.substr(5,2),l=n.substr(7,2)):(i=n.substr(1,1),o=n.substr(2,1),u=n.substr(3,1),l=n.substr(4,1),i+=i,o+=o,u+=u,l+=l),{red:parseInt(i,16),green:parseInt(o,16),blue:parseInt(u,16),alpha:l?parseInt(l,16)/255:1}}let tn={test:isColorString("#"),parse:parseHex,transform:tt.transform},ti={test:isColorString("hsl","hue"),parse:splitColor("hue","saturation","lightness"),transform:({hue:n,saturation:i,lightness:o,alpha:u=1})=>"hsla("+Math.round(n)+", "+eB.transform(sanitize(i))+", "+eB.transform(sanitize(o))+", "+sanitize(eF.transform(u))+")"};function hueToRgb(n,i,o){return(o<0&&(o+=1),o>1&&(o-=1),o<1/6)?n+(i-n)*6*o:o<.5?i:o<2/3?n+(i-n)*(2/3-o)*6:n}function hslaToRgba({hue:n,saturation:i,lightness:o,alpha:u}){n/=360,o/=100;let l=0,d=0,x=0;if(i/=100){let u=o<.5?o*(1+i):o+i-o*i,I=2*o-u;l=hueToRgb(I,u,n+1/3),d=hueToRgb(I,u,n),x=hueToRgb(I,u,n-1/3)}else l=d=x=o;return{red:Math.round(255*l),green:Math.round(255*d),blue:Math.round(255*x),alpha:u}}let mixLinearColor=(n,i,o)=>{let u=n*n;return Math.sqrt(Math.max(0,o*(i*i-u)+u))},to=[tn,tt,ti],getColorType=n=>to.find(i=>i.test(n)),notAnimatable=n=>`'${n}' is not an animatable color. Use the equivalent color code instead.`,mixColor=(n,i)=>{let o=getColorType(n),u=getColorType(i);(0,J.k)(!!o,notAnimatable(n)),(0,J.k)(!!u,notAnimatable(i));let l=o.parse(n),d=u.parse(i);o===ti&&(l=hslaToRgba(l),o=tt),u===ti&&(d=hslaToRgba(d),u=tt);let x=Object.assign({},l);return n=>{for(let i in x)"alpha"!==i&&(x[i]=mixLinearColor(l[i],d[i],n));return x.alpha=mix(l.alpha,d.alpha,n),o.transform(x)}},ta={test:n=>tt.test(n)||tn.test(n)||ti.test(n),parse:n=>tt.test(n)?tt.parse(n):ti.test(n)?ti.parse(n):tn.parse(n),transform:n=>isString(n)?n:n.hasOwnProperty("red")?tt.transform(n):ti.transform(n)},ts="${c}",tu="${n}";function test(n){var i,o,u,l;return isNaN(n)&&isString(n)&&(null!==(o=null===(i=n.match(eC))||void 0===i?void 0:i.length)&&void 0!==o?o:0)+(null!==(l=null===(u=n.match(e_))||void 0===u?void 0:u.length)&&void 0!==l?l:0)>0}function analyse(n){"number"==typeof n&&(n=`${n}`);let i=[],o=0,u=n.match(e_);u&&(o=u.length,n=n.replace(e_,ts),i.push(...u.map(ta.parse)));let l=n.match(eC);return l&&(n=n.replace(eC,tu),i.push(...l.map(ek.parse))),{values:i,numColors:o,tokenised:n}}function parse(n){return analyse(n).values}function createTransformer(n){let{values:i,numColors:o,tokenised:u}=analyse(n),l=i.length;return n=>{let i=u;for(let u=0;u"number"==typeof n?0:n;function getAnimatableNone(n){let i=parse(n),o=createTransformer(n);return o(i.map(convertNumbersToZero))}let tc={test,parse,createTransformer,getAnimatableNone},isNum=n=>"number"==typeof n;function getMixer(n,i){return isNum(n)?o=>mix(n,i,o):ta.test(n)?mixColor(n,i):mixComplex(n,i)}let mixArray=(n,i)=>{let o=[...n],u=o.length,l=n.map((n,o)=>getMixer(n,i[o]));return n=>{for(let i=0;i{let o=Object.assign(Object.assign({},n),i),u={};for(let l in o)void 0!==n[l]&&void 0!==i[l]&&(u[l]=getMixer(n[l],i[l]));return n=>{for(let i in u)o[i]=u[i](n);return o}};function mix_complex_analyse(n){let i=tc.parse(n),o=i.length,u=0,l=0,d=0;for(let n=0;n{let o=tc.createTransformer(i),u=mix_complex_analyse(n),l=mix_complex_analyse(i),d=u.numHSL===l.numHSL&&u.numRGB===l.numRGB&&u.numNumbers>=l.numNumbers;return d?pipe(mixArray(u.parsed,l.parsed),o):((0,J.K)(!0,`Complex values '${n}' and '${i}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),o=>`${o>0?i:n}`)},mixNumber=(n,i)=>o=>mix(n,i,o);function detectMixerFactory(n){return"number"==typeof n?mixNumber:"string"==typeof n?ta.test(n)?mixColor:mixComplex:Array.isArray(n)?mixArray:"object"==typeof n?mixObject:void 0}function createMixers(n,i,o){let u=[],l=o||detectMixerFactory(n[0]),d=n.length-1;for(let o=0;oo(progress(n,i,u))}function slowInterpolate(n,i){let o=n.length,u=o-1;return l=>{let d=0,x=!1;if(l<=n[0]?x=!0:l>=n[u]&&(d=u-1,x=!0),!x){let i=1;for(;il)&&i!==u;i++);d=i-1}let I=progress(n[d],n[d+1],l);return i[d](I)}}function interpolate(n,i,{clamp:o=!0,ease:u,mixer:l}={}){let d=n.length;(0,J.k)(d===i.length,"Both input and output ranges must be the same length"),(0,J.k)(!u||!Array.isArray(u)||u.length===d-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),n[0]>n[d-1]&&(n=[].concat(n),i=[].concat(i),n.reverse(),i.reverse());let x=createMixers(i,u,l),I=2===d?fastInterpolate(n,x):slowInterpolate(n,x);return o?i=>I(clamp_clamp(n[0],n[d-1],i)):I}let reverseEasing=n=>i=>1-n(1-i),mirrorEasing=n=>i=>i<=.5?n(2*i)/2:(2-n(2*(1-i)))/2,createBackIn=n=>i=>i*i*((n+1)*i-n),tl=4/11,td=8/11,linear=n=>n,easeIn=n=>Math.pow(n,2),tf=reverseEasing(easeIn),th=mirrorEasing(easeIn),circIn=n=>1-Math.sin(Math.acos(n)),tp=reverseEasing(circIn),tm=mirrorEasing(tp),tg=createBackIn(1.525),ty=reverseEasing(tg),tb=mirrorEasing(tg),tv=(n=>{let i=createBackIn(1.525);return n=>(n*=2)<1?.5*i(n):.5*(2-Math.pow(2,-10*(n-1)))})(0),tE=4356/361,tw=35442/1805,tP=16061/1805,bounceOut=n=>{if(1===n||0===n)return n;let i=n*n;return ni||th).splice(0,n.length-1)}function defaultOffset(n){let i=n.length;return n.map((n,o)=>0!==o?o/(i-1):0)}function convertOffsetToTimes(n,i){return n.map(n=>n*i)}function keyframes({from:n=0,to:i=1,ease:o,offset:u,duration:l=300}){let d={done:!1,value:n},x=Array.isArray(i)?i:[n,i],I=convertOffsetToTimes(u&&u.length===x.length?u:defaultOffset(x),l);function createInterpolator(){return interpolate(I,x,{ease:Array.isArray(o)?o:defaultEasing(x,o)})}let R=createInterpolator();return{next:n=>(d.value=R(n),d.done=n>=l,d),flipTarget:()=>{x.reverse(),R=createInterpolator()}}}function decay({velocity:n=0,from:i=0,power:o=.8,timeConstant:u=350,restDelta:l=.5,modifyTarget:d}){let x={done:!1,value:i},I=o*n,R=i+I,j=void 0===d?R:d(R);return j!==R&&(I=j-i),{next:n=>{let i=-I*Math.exp(-n/u);return x.done=!(i>l||i<-l),x.value=x.done?j:j+i,x},flipTarget:()=>{}}}let tT={keyframes:keyframes,spring:spring,decay:decay};function detectAnimationFromOptions(n){if(Array.isArray(n.to))return keyframes;if(tT[n.type])return tT[n.type];let i=new Set(Object.keys(n));if(i.has("ease")||i.has("duration")&&!i.has("dampingRatio"));else if(i.has("dampingRatio")||i.has("stiffness")||i.has("mass")||i.has("damping")||i.has("restSpeed")||i.has("restDelta"))return spring;return keyframes}var tA=o(62897);function loopElapsed(n,i,o=0){return n-i-o}function reverseElapsed(n,i,o=0,u=!0){return u?loopElapsed(i+-n,i,o):i-(n-i)+o}function hasRepeatDelayElapsed(n,i,o,u){return u?n>=i+o:n<=-o}let framesync=n=>{let passTimestamp=({delta:i})=>n(i);return{start:()=>tA.ZP.update(passTimestamp,!0),stop:()=>tA.qY.update(passTimestamp)}};function animate(n){let i,o,u;var l,{from:d,autoplay:x=!0,driver:R=framesync,elapsed:j=0,repeat:W=0,repeatType:J="loop",repeatDelay:et=0,onPlay:ei,onStop:eo,onComplete:es,onRepeat:eu,onUpdate:ec}=n,el=(0,I.__rest)(n,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:ed}=el,ef=0,eh=el.duration,ep=!1,em=!0,eg=detectAnimationFromOptions(el);(null===(l=eg.needsInterpolation)||void 0===l?void 0:l.call(eg,d,ed))&&(u=interpolate([0,100],[d,ed],{clamp:!1}),d=0,ed=100);let ey=eg(Object.assign(Object.assign({},el),{from:d,to:ed}));function repeat(){ef++,"reverse"===J?j=reverseElapsed(j,eh,et,em=ef%2==0):(j=loopElapsed(j,eh,et),"mirror"===J&&ey.flipTarget()),ep=!1,eu&&eu()}function complete(){i.stop(),es&&es()}function update(n){if(em||(n=-n),j+=n,!ep){let n=ey.next(Math.max(0,j));o=n.value,u&&(o=u(o)),ep=em?n.done:j<=0}null==ec||ec(o),ep&&(0===ef&&(null!=eh||(eh=j)),ef{null==eo||eo(),i.stop()}}}function inertia({from:n=0,velocity:i=0,min:o,max:u,power:l=.8,timeConstant:d=750,bounceStiffness:x=500,bounceDamping:I=10,restDelta:R=1,modifyTarget:j,driver:W,onUpdate:J,onComplete:et,onStop:ei}){let eo;function isOutOfBounds(n){return void 0!==o&&nu}function boundaryNearest(n){return void 0===o?u:void 0===u?o:Math.abs(o-n){var o;null==J||J(i),null===(o=n.onUpdate)||void 0===o||o.call(n,i)},onComplete:et,onStop:ei}))}function startSpring(n){startAnimation(Object.assign({type:"spring",stiffness:x,damping:I,restDelta:R},n))}if(isOutOfBounds(n))startSpring({from:n,velocity:i,to:boundaryNearest(n)});else{let u,x,I=l*i+n;void 0!==j&&(I=j(I));let W=boundaryNearest(I),J=W===o?-1:1;startAnimation({type:"decay",from:n,velocity:i,timeConstant:d,power:l,restDelta:R,modifyTarget:j,onUpdate:isOutOfBounds(I)?n=>{var o;u=x,x=n,i=(o=(0,tA.$B)().delta)?(n-u)*(1e3/o):0,(1===J&&n>W||-1===J&&nnull==eo?void 0:eo.stop()}}var secondsToMilliseconds=function(n){return 1e3*n};let a=(n,i)=>1-3*i+3*n,b=(n,i)=>3*i-6*n,c=n=>3*n,calcBezier=(n,i,o)=>((a(i,o)*n+b(i,o))*n+c(i))*n,getSlope=(n,i,o)=>3*a(i,o)*n*n+2*b(i,o)*n+c(i);function binarySubdivide(n,i,o,u,l){let d,x;let I=0;do(d=calcBezier(x=i+(o-i)/2,u,l)-n)>0?o=x:i=x;while(Math.abs(d)>1e-7&&++I<10);return x}function newtonRaphsonIterate(n,i,o,u){for(let l=0;l<8;++l){let l=getSlope(i,o,u);if(0===l)break;let d=calcBezier(i,o,u)-n;i-=d/l}return i}function cubicBezier(n,i,o,u){if(n===i&&o===u)return linear;let l=new Float32Array(11);for(let i=0;i<11;++i)l[i]=calcBezier(.1*i,n,o);function getTForX(i){let u=0,d=1;for(;10!==d&&l[d]<=i;++d)u+=.1;--d;let x=(i-l[d])/(l[d+1]-l[d]),I=u+.1*x,R=getSlope(I,n,o);return R>=.001?newtonRaphsonIterate(i,I,n,o):0===R?I:binarySubdivide(i,u,u+.1,n,o)}return n=>0===n||1===n?n:calcBezier(getTForX(n),i,u)}var tS={linear:linear,easeIn:easeIn,easeInOut:th,easeOut:tf,circIn:circIn,circInOut:tm,circOut:tp,backIn:tg,backInOut:tb,backOut:ty,anticipate:tv,bounceIn:tx,bounceInOut:n=>n<.5?.5*(1-bounceOut(1-2*n)):.5*bounceOut(2*n-1)+.5,bounceOut:bounceOut},easingDefinitionToFunction=function(n){if(Array.isArray(n)){(0,J.k)(4===n.length,"Cubic bezier arrays must contain four numerical values.");var i=(0,I.__read)(n,4);return cubicBezier(i[0],i[1],i[2],i[3])}return"string"==typeof n?((0,J.k)(void 0!==tS[n],"Invalid easing type '".concat(n,"'")),tS[n]):n},isAnimatable=function(n,i){return"zIndex"!==n&&!!("number"==typeof i||Array.isArray(i)||"string"==typeof i&&tc.test(i)&&!i.startsWith("url("))},underDampedSpring=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},criticallyDampedSpring=function(n){return{type:"spring",stiffness:550,damping:0===n?2*Math.sqrt(550):30,restSpeed:10}},linearTween=function(){return{type:"keyframes",ease:"linear",duration:.3}},default_transitions_keyframes=function(n){return{type:"keyframes",duration:.8,values:n}},tC={x:underDampedSpring,y:underDampedSpring,z:underDampedSpring,rotate:underDampedSpring,rotateX:underDampedSpring,rotateY:underDampedSpring,rotateZ:underDampedSpring,scaleX:criticallyDampedSpring,scaleY:criticallyDampedSpring,scale:criticallyDampedSpring,opacity:linearTween,backgroundColor:linearTween,color:linearTween,default:criticallyDampedSpring},getDefaultTransition=function(n,i){var o;return o=isKeyframesTarget(i)?default_transitions_keyframes:tC[n]||tC.default,(0,I.__assign)({to:i},o(i))};let t_=new Set(["brightness","contrast","saturate","opacity"]);function applyDefaultFilter(n){let[i,o]=n.slice(0,-1).split("(");if("drop-shadow"===i)return n;let[u]=o.match(eC)||[];if(!u)return n;let l=o.replace(u,""),d=t_.has(i)?1:0;return u!==o&&(d*=100),i+"("+d+l+")"}let tO=/([a-z-]*)\(.*?\)/g,tI=Object.assign(Object.assign({},tc),{getAnimatableNone:n=>{let i=n.match(tO);return i?i.map(applyDefaultFilter).join(" "):n}});var tB=(0,I.__assign)((0,I.__assign)({},eL),{color:ta,backgroundColor:ta,outlineColor:ta,fill:ta,stroke:ta,borderColor:ta,borderTopColor:ta,borderRightColor:ta,borderBottomColor:ta,borderLeftColor:ta,filter:tI,WebkitFilter:tI}),getDefaultValueType=function(n){return tB[n]};function animatable_none_getAnimatableNone(n,i){var o,u=getDefaultValueType(n);return u!==tI&&(u=tc),null===(o=u.getAnimatableNone)||void 0===o?void 0:o.call(u,i)}var tD={current:!1};function isTransitionDefined(n){return n.when,n.delay,n.delayChildren,n.staggerChildren,n.staggerDirection,n.repeat,n.repeatType,n.repeatDelay,n.from,!!Object.keys((0,I.__rest)(n,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"])).length}var tR=!1;function convertTransitionToAnimationOptions(n){var i=n.ease,o=n.times,u=n.yoyo,l=n.flip,d=n.loop,x=(0,I.__rest)(n,["ease","times","yoyo","flip","loop"]),R=(0,I.__assign)({},x);return o&&(R.offset=o),x.duration&&(R.duration=secondsToMilliseconds(x.duration)),x.repeatDelay&&(R.repeatDelay=secondsToMilliseconds(x.repeatDelay)),i&&(R.ease=Array.isArray(i)&&"number"!=typeof i[0]?i.map(easingDefinitionToFunction):easingDefinitionToFunction(i)),"tween"===x.type&&(R.type="keyframes"),(u||d||l)&&((0,J.K)(!tR,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),tR=!0,u?R.repeatType="reverse":d?R.repeatType="loop":l&&(R.repeatType="mirror"),R.repeat=d||u||l||x.repeat),"spring"!==x.type&&(R.type="keyframes"),R}function getDelayFromTransition(n,i){var o,u;return null!==(u=null!==(o=(getValueTransition(n,i)||{}).delay)&&void 0!==o?o:n.delay)&&void 0!==u?u:0}function hydrateKeyframes(n){return Array.isArray(n.to)&&null===n.to[0]&&(n.to=(0,I.__spreadArray)([],(0,I.__read)(n.to),!1),n.to[0]=n.from),n}function getPopmotionAnimationOptions(n,i,o){var u;return Array.isArray(i.to)&&(null!==(u=n.duration)&&void 0!==u||(n.duration=.8)),hydrateKeyframes(i),isTransitionDefined(n)||(n=(0,I.__assign)((0,I.__assign)({},n),getDefaultTransition(o,i.to))),(0,I.__assign)((0,I.__assign)({},i),convertTransitionToAnimationOptions(n))}function getAnimation(n,i,o,u,l){var d,x=getValueTransition(u,n),R=null!==(d=x.from)&&void 0!==d?d:i.get(),j=isAnimatable(n,o);"none"===R&&j&&"string"==typeof o?R=animatable_none_getAnimatableNone(n,o):isZero(R)&&"string"==typeof o?R=getZeroUnit(o):!Array.isArray(o)&&isZero(o)&&"string"==typeof R&&(o=getZeroUnit(R));var W=isAnimatable(n,R);function start(){var u={from:R,to:o,velocity:i.getVelocity(),onComplete:l,onUpdate:function(n){return i.set(n)}};return"inertia"===x.type||"decay"===x.type?inertia((0,I.__assign)((0,I.__assign)({},u),x)):animate((0,I.__assign)((0,I.__assign)({},getPopmotionAnimationOptions(x,u,n)),{onUpdate:function(n){var i;u.onUpdate(n),null===(i=x.onUpdate)||void 0===i||i.call(x,n)},onComplete:function(){var n;u.onComplete(),null===(n=x.onComplete)||void 0===n||n.call(x)}}))}function set(){var n,u,d=resolveFinalValueInKeyframes(o);return i.set(d),l(),null===(n=null==x?void 0:x.onUpdate)||void 0===n||n.call(x,d),null===(u=null==x?void 0:x.onComplete)||void 0===u||u.call(x),{stop:function(){}}}return(0,J.K)(W===j,"You are trying to animate ".concat(n,' from "').concat(R,'" to "').concat(o,'". ').concat(R," is not an animatable value - to enable this animation set ").concat(R," to a value animatable to ").concat(o," via the `style` property.")),W&&j&&!1!==x.type?start:set}function isZero(n){return 0===n||"string"==typeof n&&0===parseFloat(n)&&-1===n.indexOf(" ")}function getZeroUnit(n){return"number"==typeof n?0:animatable_none_getAnimatableNone("",n)}function getValueTransition(n,i){return n[i]||n.default||n}function startAnimation(n,i,o,u){return void 0===u&&(u={}),tD.current&&(u={type:!1}),i.start(function(l){var d,x,I=getAnimation(n,i,o,u,l),R=getDelayFromTransition(u,n),start=function(){return x=I()};return R?d=window.setTimeout(start,secondsToMilliseconds(R)):start(),function(){clearTimeout(d),null==x||x.stop()}})}function addUniqueItem(n,i){-1===n.indexOf(i)&&n.push(i)}function removeItem(n,i){var o=n.indexOf(i);o>-1&&n.splice(o,1)}var tj=function(){function SubscriptionManager(){this.subscriptions=[]}return SubscriptionManager.prototype.add=function(n){var i=this;return addUniqueItem(this.subscriptions,n),function(){return removeItem(i.subscriptions,n)}},SubscriptionManager.prototype.notify=function(n,i,o){var u=this.subscriptions.length;if(u){if(1===u)this.subscriptions[0](n,i,o);else for(var l=0;leo&&ec,ep=Array.isArray(eu)?eu:[eu],em=ep.reduce(buildResolvedTypeValues,{});!1===el&&(em={});var eg=es.prevResolvedValues,ey=void 0===eg?{}:eg,eb=(0,I.__assign)((0,I.__assign)({},ey),em),markToAnimate=function(n){eh=!0,et.delete(n),es.needsAnimating[n]=!0};for(var ev in eb){var eE=em[ev],ew=ey[ev];ei.hasOwnProperty(ev)||(eE!==ew?isKeyframesTarget(eE)&&isKeyframesTarget(ew)?!shallowCompare(eE,ew)||ef?markToAnimate(ev):es.protectedKeys[ev]=!0:void 0!==eE?markToAnimate(ev):et.add(ev):void 0!==eE&&et.has(ev)?markToAnimate(ev):es.protectedKeys[ev]=!0)}es.prevProp=eu,es.prevResolvedValues=em,es.isActive&&(ei=(0,I.__assign)((0,I.__assign)({},ei),em)),l&&n.blockInitialAnimation&&(eh=!1),eh&&!ed&&J.push.apply(J,(0,I.__spreadArray)([],(0,I.__read)(ep.map(function(n){return{animation:n,options:(0,I.__assign)({type:u},d)}})),!1))}}(es);if(u=(0,I.__assign)({},ei),et.size){var eu={};et.forEach(function(i){var o=n.getBaseTarget(i);void 0!==o&&(eu[i]=o)}),J.push({animation:eu})}var ec=!!J.length;return l&&!1===j.initial&&!n.manuallyAnimateOnMount&&(ec=!1),l=!1,ec?i(J):Promise.resolve()}function setActive(i,u,l){if(o[i].isActive===u)return Promise.resolve();null===(d=n.variantChildren)||void 0===d||d.forEach(function(n){var o;return null===(o=n.animationState)||void 0===o?void 0:o.setActive(i,u)}),o[i].isActive=u;var d,x=animateChanges(l,i);for(var I in o)o[I].protectedKeys={};return x}return{isAnimated:function(n){return void 0!==u[n]},animateChanges:animateChanges,setActive:setActive,setAnimateFunction:function(o){i=o(n)},getState:function(){return o}}}function checkVariantsDidChange(n,i){return"string"==typeof i?i!==n:!!isVariantLabels(i)&&!shallowCompare(i,n)}function createTypeState(n){return void 0===n&&(n=!1),{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function createState(){var n;return(n={})[d.Animate]=createTypeState(!0),n[d.InView]=createTypeState(),n[d.Hover]=createTypeState(),n[d.Tap]=createTypeState(),n[d.Drag]=createTypeState(),n[d.Focus]=createTypeState(),n[d.Exit]=createTypeState(),n}var tH={animation:makeRenderlessComponent(function(n){var i=n.visualElement,o=n.animate;i.animationState||(i.animationState=createAnimationState(i)),isAnimationControls(o)&&(0,R.useEffect)(function(){return o.subscribe(i)},[o])}),exit:makeRenderlessComponent(function(n){var i=n.custom,o=n.visualElement,u=(0,I.__read)(usePresence(),2),l=u[0],x=u[1],j=(0,R.useContext)(ec.O);(0,R.useEffect)(function(){o.isPresent=l;var n,u,I=null===(n=o.animationState)||void 0===n?void 0:n.setActive(d.Exit,!l,{custom:null!==(u=null==j?void 0:j.custom)&&void 0!==u?u:i});l||null==I||I.then(x)},[l])})};let isPoint=n=>n.hasOwnProperty("x")&&n.hasOwnProperty("y"),isPoint3D=n=>isPoint(n)&&n.hasOwnProperty("z"),distance1D=(n,i)=>Math.abs(n-i);function distance(n,i){if(isNum(n)&&isNum(i))return distance1D(n,i);if(isPoint(n)&&isPoint(i)){let o=distance1D(n.x,i.x),u=distance1D(n.y,i.y),l=isPoint3D(n)&&isPoint3D(i)?distance1D(n.z,i.z):0;return Math.sqrt(Math.pow(o,2)+Math.pow(u,2)+Math.pow(l,2))}}var t$=function(){function PanSession(n,i,o){var u=this,l=(void 0===o?{}:o).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(u.lastMoveEvent&&u.lastMoveEventInfo){var n=getPanInfo(u.lastMoveEventInfo,u.history),i=null!==u.startEvent,o=distance(n.offset,{x:0,y:0})>=3;if(i||o){var l=n.point,d=(0,tA.$B)().timestamp;u.history.push((0,I.__assign)((0,I.__assign)({},l),{timestamp:d}));var x=u.handlers,R=x.onStart,j=x.onMove;i||(R&&R(u.lastMoveEvent,n),u.startEvent=u.lastMoveEvent),j&&j(u.lastMoveEvent,n)}}},this.handlePointerMove=function(n,i){if(u.lastMoveEvent=n,u.lastMoveEventInfo=transformPoint(i,u.transformPagePoint),isMouseEvent(n)&&0===n.buttons){u.handlePointerUp(n,i);return}tA.ZP.update(u.updatePoint,!0)},this.handlePointerUp=function(n,i){u.end();var o=u.handlers,l=o.onEnd,d=o.onSessionEnd,x=getPanInfo(transformPoint(i,u.transformPagePoint),u.history);u.startEvent&&l&&l(n,x),d&&d(n,x)},!n.touches||!(n.touches.length>1)){this.handlers=i,this.transformPagePoint=l;var d=transformPoint(extractEventInfo(n),this.transformPagePoint),x=d.point,R=(0,tA.$B)().timestamp;this.history=[(0,I.__assign)((0,I.__assign)({},x),{timestamp:R})];var j=i.onSessionStart;j&&j(n,getPanInfo(d,this.history)),this.removeListeners=pipe(addPointerEvent(window,"pointermove",this.handlePointerMove),addPointerEvent(window,"pointerup",this.handlePointerUp),addPointerEvent(window,"pointercancel",this.handlePointerUp))}}return PanSession.prototype.updateHandlers=function(n){this.handlers=n},PanSession.prototype.end=function(){this.removeListeners&&this.removeListeners(),tA.qY.update(this.updatePoint)},PanSession}();function transformPoint(n,i){return i?{point:i(n.point)}:n}function subtractPoint(n,i){return{x:n.x-i.x,y:n.y-i.y}}function getPanInfo(n,i){var o=n.point;return{point:o,delta:subtractPoint(o,lastDevicePoint(i)),offset:subtractPoint(o,startDevicePoint(i)),velocity:PanSession_getVelocity(i,.1)}}function startDevicePoint(n){return n[0]}function lastDevicePoint(n){return n[n.length-1]}function PanSession_getVelocity(n,i){if(n.length<2)return{x:0,y:0};for(var o=n.length-1,u=null,l=lastDevicePoint(n);o>=0&&(u=n[o],!(l.timestamp-u.timestamp>secondsToMilliseconds(i)));)o--;if(!u)return{x:0,y:0};var d=(l.timestamp-u.timestamp)/1e3;if(0===d)return{x:0,y:0};var x={x:(l.x-u.x)/d,y:(l.y-u.y)/d};return x.x===1/0&&(x.x=0),x.y===1/0&&(x.y=0),x}function calcLength(n){return n.max-n.min}function isNear(n,i,o){return void 0===i&&(i=0),void 0===o&&(o=.01),distance(n,i)l&&(n=o?mix(l,n,o.max):Math.min(n,l)),n}function calcRelativeAxisConstraints(n,i,o){return{min:void 0!==i?n.min+i:void 0,max:void 0!==o?n.max+o-(n.max-n.min):void 0}}function calcRelativeConstraints(n,i){var o=i.top,u=i.left,l=i.bottom,d=i.right;return{x:calcRelativeAxisConstraints(n.x,u,d),y:calcRelativeAxisConstraints(n.y,o,l)}}function calcViewportAxisConstraints(n,i){var o,u=i.min-n.min,l=i.max-n.max;return i.max-i.minu?o=progress(i.min,i.max-u,n.min):u>l&&(o=progress(n.min,n.max-l,i.min)),clamp_clamp(0,1,o)}function rebaseAxisConstraints(n,i){var o={};return void 0!==i.min&&(o.min=i.min-n.min),void 0!==i.max&&(o.max=i.max-n.min),o}function resolveDragElastic(n){return void 0===n&&(n=.35),!1===n?n=0:!0===n&&(n=.35),{x:resolveAxisElastic(n,"left","right"),y:resolveAxisElastic(n,"top","bottom")}}function resolveAxisElastic(n,i,o){return{min:resolvePointElastic(n,i),max:resolvePointElastic(n,o)}}function resolvePointElastic(n,i){var o;return"number"==typeof n?n:null!==(o=n[i])&&void 0!==o?o:0}var createAxisDelta=function(){return{translate:0,scale:1,origin:0,originPoint:0}},createDelta=function(){return{x:createAxisDelta(),y:createAxisDelta()}},createAxis=function(){return{min:0,max:0}},createBox=function(){return{x:createAxis(),y:createAxis()}};function eachAxis(n){return[n("x"),n("y")]}function convertBoundingBoxToBox(n){var i=n.top;return{x:{min:n.left,max:n.right},y:{min:i,max:n.bottom}}}function convertBoxToBoundingBox(n){var i=n.x,o=n.y;return{top:o.min,right:i.max,bottom:o.max,left:i.min}}function transformBoxPoints(n,i){if(!i)return n;var o=i({x:n.left,y:n.top}),u=i({x:n.right,y:n.bottom});return{top:o.y,left:o.x,bottom:u.y,right:u.x}}function isIdentityScale(n){return void 0===n||1===n}function hasScale(n){var i=n.scale,o=n.scaleX,u=n.scaleY;return!isIdentityScale(i)||!isIdentityScale(o)||!isIdentityScale(u)}function hasTransform(n){var i,o;return hasScale(n)||(i=n.x)&&"0%"!==i||(o=n.y)&&"0%"!==o||n.z||n.rotate||n.rotateX||n.rotateY}function applyPointDelta(n,i,o,u,l){return void 0!==l&&(n=u+l*(n-u)),u+o*(n-u)+i}function applyAxisDelta(n,i,o,u,l){void 0===i&&(i=0),void 0===o&&(o=1),n.min=applyPointDelta(n.min,i,o,u,l),n.max=applyPointDelta(n.max,i,o,u,l)}function applyBoxDelta(n,i){var o=i.x,u=i.y;applyAxisDelta(n.x,o.translate,o.scale,o.originPoint),applyAxisDelta(n.y,u.translate,u.scale,u.originPoint)}function applyTreeDeltas(n,i,o,u){void 0===u&&(u=!1);var l,d,x,I,R=o.length;if(R){i.x=i.y=1;for(var j=0;ji?o="y":Math.abs(n.x)>i&&(o="x"),o}function useDrag(n){var i=n.dragControls,o=n.visualElement,u=(0,ep.h)(function(){return new tG(o)});(0,R.useEffect)(function(){return i&&i.subscribe(u)},[u,i]),(0,R.useEffect)(function(){return u.addListeners()},[u])}var tW={pan:makeRenderlessComponent(function(n){var i=n.onPan,o=n.onPanStart,u=n.onPanEnd,l=n.onPanSessionStart,d=n.visualElement,x=i||o||u||l,I=(0,R.useRef)(null),j=(0,R.useContext)(es._).transformPagePoint,W={onSessionStart:l,onStart:o,onMove:i,onEnd:function(n,i){I.current=null,u&&u(n,i)}};function onPointerDown(n){I.current=new t$(n,W,{transformPagePoint:j})}(0,R.useEffect)(function(){null!==I.current&&I.current.updateHandlers(W)}),usePointerEvent(d,"pointerdown",x&&onPointerDown),(0,eJ.z)(function(){return I.current&&I.current.end()})}),drag:makeRenderlessComponent(useDrag)},tK=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function createLifecycles(){var n=tK.map(function(){return new tj}),i={},o={clearAllListeners:function(){return n.forEach(function(n){return n.clear()})},updatePropListeners:function(n){tK.forEach(function(u){var l,d="on"+u,x=n[d];null===(l=i[u])||void 0===l||l.call(i),x&&(i[u]=o[d](x))})}};return n.forEach(function(n,i){o["on"+tK[i]]=function(i){return n.add(i)},o["notify"+tK[i]]=function(){for(var i=[],o=0;o=0?window.pageYOffset:null,W=convertChangedValueTypes(i,n,R);return d.length&&d.forEach(function(i){var o=(0,I.__read)(i,2),u=o[0],l=o[1];n.getValue(u).set(l)}),n.syncRender(),null!==j&&window.scrollTo({top:j}),{target:W,transitionEnd:u}};function unitConversion(n,i,o,u){return Object.keys(i).some(isPositionalKey)?checkAndConvertChangedValueTypes(n,i,o,u):{target:i,transitionEnd:u}}var parseDomVariant=function(n,i,o,u){var l=resolveCSSVariables(n,i,u);return unitConversion(n,i=l.target,o,u=l.transitionEnd)};function visual_element_getComputedStyle(n){return window.getComputedStyle(n)}var t2={treeType:"dom",readValueFromInstance:function(n,i){if(isTransformProp(i)){var o=getDefaultValueType(i);return o&&o.default||0}var u=visual_element_getComputedStyle(n);return(isCSSVariable(i)?u.getPropertyValue(i):u[i])||0},sortNodePosition:function(n,i){return 2&n.compareDocumentPosition(i)?1:-1},getBaseTarget:function(n,i){var o;return null===(o=n.style)||void 0===o?void 0:o[i]},measureViewportBox:function(n,i){return measureViewportBox(n,i.transformPagePoint)},resetTransform:function(n,i,o){var u=o.transformTemplate;i.style.transform=u?u({},""):"none",n.scheduleRender()},restoreTransform:function(n,i){n.style.transform=i.style.transform},removeValueFromRenderState:function(n,i){var o=i.vars,u=i.style;delete o[n],delete u[n]},makeTargetAnimatable:function(n,i,o,u){var l=o.transformValues;void 0===u&&(u=!0);var d=i.transition,x=i.transitionEnd,R=(0,I.__rest)(i,["transition","transitionEnd"]),j=getOrigin(R,d||{},n);if(l&&(x&&(x=l(x)),R&&(R=l(R)),j&&(j=l(j))),u){checkTargetForNewValues(n,R,j);var W=parseDomVariant(n,R,j,x);x=W.transitionEnd,R=W.target}return(0,I.__assign)({transition:d,transitionEnd:x},R)},scrapeMotionValuesFromProps:scrapeMotionValuesFromProps,build:function(n,i,o,u,l){void 0!==n.isVisible&&(i.style.visibility=n.isVisible?"visible":"hidden"),buildHTMLStyles(i,o,u,l.transformTemplate)},render:renderHTML},t6=visualElement(t2),t5=visualElement((0,I.__assign)((0,I.__assign)({},t2),{getBaseTarget:function(n,i){return n[i]},readValueFromInstance:function(n,i){var o;return isTransformProp(i)?(null===(o=getDefaultValueType(i))||void 0===o?void 0:o.default)||0:(i=eV.has(i)?i:camelToDash(i),n.getAttribute(i))},scrapeMotionValuesFromProps:scrape_motion_values_scrapeMotionValuesFromProps,build:function(n,i,o,u,l){buildSVGAttrs(i,o,u,l.transformTemplate)},render:renderSVG})),create_visual_element_createDomVisualElement=function(n,i){return isSVGComponent(n)?t5(i,{enableHardwareAcceleration:!1}):t6(i,{enableHardwareAcceleration:!0})};function pixelsToPercent(n,i){return i.max===i.min?0:n/(i.max-i.min)*100}var t3={correct:function(n,i){if(!i.target)return n;if("string"==typeof n){if(!eD.test(n))return n;n=parseFloat(n)}var o=pixelsToPercent(n,i.target.x),u=pixelsToPercent(n,i.target.y);return"".concat(o,"% ").concat(u,"%")}},t8="_$css",t4=function(n){function MeasureLayoutWithContext(){return null!==n&&n.apply(this,arguments)||this}return(0,I.__extends)(MeasureLayoutWithContext,n),MeasureLayoutWithContext.prototype.componentDidMount=function(){var n=this,i=this.props,o=i.visualElement,u=i.layoutGroup,l=i.switchLayoutGroup,d=i.layoutId,x=o.projection;addScaleCorrector(t9),x&&((null==u?void 0:u.group)&&u.group.add(x),(null==l?void 0:l.register)&&d&&l.register(x),x.root.didUpdate(),x.addEventListener("animationComplete",function(){n.safeToRemove()}),x.setOptions((0,I.__assign)((0,I.__assign)({},x.options),{onExitComplete:function(){return n.safeToRemove()}}))),em.hasEverUpdated=!0},MeasureLayoutWithContext.prototype.getSnapshotBeforeUpdate=function(n){var i=this,o=this.props,u=o.layoutDependency,l=o.visualElement,d=o.drag,x=o.isPresent,I=l.projection;return I&&(I.isPresent=x,d||n.layoutDependency!==u||void 0===u?I.willUpdate():this.safeToRemove(),n.isPresent===x||(x?I.promote():I.relegate()||tA.ZP.postRender(function(){var n;(null===(n=I.getStack())||void 0===n?void 0:n.members.length)||i.safeToRemove()}))),null},MeasureLayoutWithContext.prototype.componentDidUpdate=function(){var n=this.props.visualElement.projection;n&&(n.root.didUpdate(),!n.currentAnimation&&n.isLead()&&this.safeToRemove())},MeasureLayoutWithContext.prototype.componentWillUnmount=function(){var n=this.props,i=n.visualElement,o=n.layoutGroup,u=n.switchLayoutGroup,l=i.projection;l&&(l.scheduleCheckAfterUnmount(),(null==o?void 0:o.group)&&o.group.remove(l),(null==u?void 0:u.deregister)&&u.deregister(l))},MeasureLayoutWithContext.prototype.safeToRemove=function(){var n=this.props.safeToRemove;null==n||n()},MeasureLayoutWithContext.prototype.render=function(){return null},MeasureLayoutWithContext}(R.Component);function MeasureLayout(n){var i=(0,I.__read)(usePresence(),2),o=i[0],u=i[1],l=(0,R.useContext)(ey.p);return R.createElement(t4,(0,I.__assign)({},n,{layoutGroup:l,switchLayoutGroup:(0,R.useContext)(eb),isPresent:o,safeToRemove:u}))}var t9={borderRadius:(0,I.__assign)((0,I.__assign)({},t3),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:t3,borderTopRightRadius:t3,borderBottomLeftRadius:t3,borderBottomRightRadius:t3,boxShadow:{correct:function(n,i){var o=i.treeScale,u=i.projectionDelta,l=n,d=n.includes("var("),x=[];d&&(n=n.replace(tY,function(n){return x.push(n),t8}));var I=tc.parse(n);if(I.length>5)return l;var R=tc.createTransformer(n),j="number"!=typeof I[0]?1:0,W=u.x.scale*o.x,J=u.y.scale*o.y;I[0+j]/=W,I[1+j]/=J;var et=mix(W,J,.5);"number"==typeof I[2+j]&&(I[2+j]/=et),"number"==typeof I[3+j]&&(I[3+j]/=et);var ei=R(I);if(d){var eo=0;ei=ei.replace(t8,function(){var n=x[eo];return eo++,n})}return ei}}};function animate_animate(n,i,o){void 0===o&&(o={});var u=isMotionValue(n)?n:motionValue(n);return startAnimation("",u,i,o),{stop:function(){return u.stop()},isAnimating:function(){return u.isAnimating()}}}var t7=["TopLeft","TopRight","BottomLeft","BottomRight"],rr=t7.length,asNumber=function(n){return"string"==typeof n?parseFloat(n):n},isPx=function(n){return"number"==typeof n||eD.test(n)};function mixValues(n,i,o,u,l,d){var x,I,R,j;l?(n.opacity=mix(0,null!==(x=o.opacity)&&void 0!==x?x:1,ri(u)),n.opacityExit=mix(null!==(I=i.opacity)&&void 0!==I?I:1,0,ro(u))):d&&(n.opacity=mix(null!==(R=i.opacity)&&void 0!==R?R:1,null!==(j=o.opacity)&&void 0!==j?j:1,u));for(var W=0;Wi?1:o(progress(n,i,u))}}function copyAxisInto(n,i){n.min=i.min,n.max=i.max}function copyBoxInto(n,i){copyAxisInto(n.x,i.x),copyAxisInto(n.y,i.y)}function removePointDelta(n,i,o,u,l){return n-=i,n=u+1/o*(n-u),void 0!==l&&(n=u+1/l*(n-u)),n}function removeAxisDelta(n,i,o,u,l,d,x){if(void 0===i&&(i=0),void 0===o&&(o=1),void 0===u&&(u=.5),void 0===d&&(d=n),void 0===x&&(x=n),eB.test(i)&&(i=parseFloat(i),i=mix(x.min,x.max,i/100)-x.min),"number"==typeof i){var I=mix(d.min,d.max,u);n===d&&(I-=i),n.min=removePointDelta(n.min,i,o,I,l),n.max=removePointDelta(n.max,i,o,I,l)}}function removeAxisTransforms(n,i,o,u,l){var d=(0,I.__read)(o,3),x=d[0],R=d[1],j=d[2];removeAxisDelta(n,i[x],i[R],i[j],i.scale,u,l)}var ra=["x","scaleX","originX"],rs=["y","scaleY","originY"];function removeBoxTransforms(n,i,o,u){removeAxisTransforms(n.x,i,ra,null==o?void 0:o.x,null==u?void 0:u.x),removeAxisTransforms(n.y,i,rs,null==o?void 0:o.y,null==u?void 0:u.y)}function isAxisDeltaZero(n){return 0===n.translate&&1===n.scale}function isDeltaZero(n){return isAxisDeltaZero(n.x)&&isAxisDeltaZero(n.y)}function boxEquals(n,i){return n.x.min===i.x.min&&n.x.max===i.x.max&&n.y.min===i.y.min&&n.y.max===i.y.max}var ru=function(){function NodeStack(){this.members=[]}return NodeStack.prototype.add=function(n){addUniqueItem(this.members,n),n.scheduleRender()},NodeStack.prototype.remove=function(n){if(removeItem(this.members,n),n===this.prevLead&&(this.prevLead=void 0),n===this.lead){var i=this.members[this.members.length-1];i&&this.promote(i)}},NodeStack.prototype.relegate=function(n){var i,o=this.members.findIndex(function(i){return n===i});if(0===o)return!1;for(var u=o;u>=0;u--){var l=this.members[u];if(!1!==l.isPresent){i=l;break}}return!!i&&(this.promote(i),!0)},NodeStack.prototype.promote=function(n,i){var o,u=this.lead;n!==u&&(this.prevLead=u,this.lead=n,n.show(),u&&(u.instance&&u.scheduleRender(),n.scheduleRender(),n.resumeFrom=u,i&&(n.resumeFrom.preserveOpacity=!0),u.snapshot&&(n.snapshot=u.snapshot,n.snapshot.latestValues=u.animationValues||u.latestValues,n.snapshot.isShared=!0),(null===(o=n.root)||void 0===o?void 0:o.isUpdating)&&(n.isLayoutDirty=!0),!1===n.options.crossfade&&u.hide()))},NodeStack.prototype.exitAnimationComplete=function(){this.members.forEach(function(n){var i,o,u,l,d;null===(o=(i=n.options).onExitComplete)||void 0===o||o.call(i),null===(d=null===(u=n.resumingFrom)||void 0===u?void 0:(l=u.options).onExitComplete)||void 0===d||d.call(l)})},NodeStack.prototype.scheduleRender=function(){this.members.forEach(function(n){n.instance&&n.scheduleRender(!1)})},NodeStack.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},NodeStack}();function buildProjectionTransform(n,i,o){var u=n.x.translate/i.x,l=n.y.translate/i.y,d="translate3d(".concat(u,"px, ").concat(l,"px, 0) ");if(d+="scale(".concat(1/i.x,", ").concat(1/i.y,") "),o){var x=o.rotate,I=o.rotateX,R=o.rotateY;x&&(d+="rotate(".concat(x,"deg) ")),I&&(d+="rotateX(".concat(I,"deg) ")),R&&(d+="rotateY(".concat(R,"deg) "))}var j=n.x.scale*i.x,W=n.y.scale*i.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"===(d+="scale(".concat(j,", ").concat(W,")"))?"none":d}var compareByDepth=function(n,i){return n.depth-i.depth},rc=function(){function FlatTree(){this.children=[],this.isDirty=!1}return FlatTree.prototype.add=function(n){addUniqueItem(this.children,n),this.isDirty=!0},FlatTree.prototype.remove=function(n){removeItem(this.children,n),this.isDirty=!0},FlatTree.prototype.forEach=function(n){this.isDirty&&this.children.sort(compareByDepth),this.isDirty=!1,this.children.forEach(n)},FlatTree}();function createProjectionNode(n){var i=n.attachResizeListener,o=n.defaultParent,u=n.measureScroll,l=n.checkIsScrollRoot,d=n.resetTransform;return function(){function ProjectionNode(n,i,u){var l=this;void 0===i&&(i={}),void 0===u&&(u=null==o?void 0:o()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){l.isUpdating&&(l.isUpdating=!1,l.clearAllSnapshots())},this.updateProjection=function(){l.nodes.forEach(resolveTargetDelta),l.nodes.forEach(calcProjection)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=n,this.latestValues=i,this.root=u?u.root||u:this,this.path=u?(0,I.__spreadArray)((0,I.__spreadArray)([],(0,I.__read)(u.path),!1),[u],!1):[],this.parent=u,this.depth=u?u.depth+1:0,n&&this.root.registerPotentialNode(n,this);for(var d=0;d=((null===(o=this.getStack())||void 0===o?void 0:o.members.length)||0),et=!!(W&&!J&&!0===this.options.crossfade&&!this.path.some(hasOpacityCrossfade));this.animationProgress=0,this.mixTargetDelta=function(i){var o,l=i/1e3;mixAxisDelta(R.x,n.x,l),mixAxisDelta(R.y,n.y,l),u.setTargetDelta(R),u.relativeTarget&&u.relativeTargetOrigin&&u.layout&&(null===(o=u.relativeParent)||void 0===o?void 0:o.layout)&&(calcRelativePosition(j,u.layout.actual,u.relativeParent.layout.actual),mixBox(u.relativeTarget,u.relativeTargetOrigin,j,l)),W&&(u.animationValues=x,mixValues(x,d,u.latestValues,l,et,J)),u.root.scheduleUpdateProjection(),u.scheduleRender(),u.animationProgress=l},this.mixTargetDelta(0)},ProjectionNode.prototype.startAnimation=function(n){var i,o,u=this;this.notifyListeners("animationStart"),null===(i=this.currentAnimation)||void 0===i||i.stop(),this.resumingFrom&&(null===(o=this.resumingFrom.currentAnimation)||void 0===o||o.stop()),this.pendingAnimation&&(tA.qY.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tA.ZP.update(function(){em.hasAnimatedSinceResize=!0,u.currentAnimation=animate_animate(0,1e3,(0,I.__assign)((0,I.__assign)({},n),{onUpdate:function(i){var o;u.mixTargetDelta(i),null===(o=n.onUpdate)||void 0===o||o.call(n,i)},onComplete:function(){var i;null===(i=n.onComplete)||void 0===i||i.call(n),u.completeAnimation()}})),u.resumingFrom&&(u.resumingFrom.currentAnimation=u.currentAnimation),u.pendingAnimation=void 0})},ProjectionNode.prototype.completeAnimation=function(){var n;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(n=this.getStack())||void 0===n||n.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},ProjectionNode.prototype.finishAnimation=function(){var n;this.currentAnimation&&(null===(n=this.mixTargetDelta)||void 0===n||n.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()},ProjectionNode.prototype.applyTransformsToTarget=function(){var n=this.getLead(),i=n.targetWithTransforms,o=n.target,u=n.layout,l=n.latestValues;i&&o&&u&&(copyBoxInto(i,o),transformBox(i,l),calcBoxDelta(this.projectionDeltaWithTransform,this.layoutCorrected,i,l))},ProjectionNode.prototype.registerSharedNode=function(n,i){var o,u,l;this.sharedNodes.has(n)||this.sharedNodes.set(n,new ru),this.sharedNodes.get(n).add(i),i.promote({transition:null===(o=i.options.initialPromotionConfig)||void 0===o?void 0:o.transition,preserveFollowOpacity:null===(l=null===(u=i.options.initialPromotionConfig)||void 0===u?void 0:u.shouldPreserveFollowOpacity)||void 0===l?void 0:l.call(u,i)})},ProjectionNode.prototype.isLead=function(){var n=this.getStack();return!n||n.lead===this},ProjectionNode.prototype.getLead=function(){var n;return this.options.layoutId&&(null===(n=this.getStack())||void 0===n?void 0:n.lead)||this},ProjectionNode.prototype.getPrevLead=function(){var n;return this.options.layoutId?null===(n=this.getStack())||void 0===n?void 0:n.prevLead:void 0},ProjectionNode.prototype.getStack=function(){var n=this.options.layoutId;if(n)return this.root.sharedNodes.get(n)},ProjectionNode.prototype.promote=function(n){var i=void 0===n?{}:n,o=i.needsReset,u=i.transition,l=i.preserveFollowOpacity,d=this.getStack();d&&d.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})},ProjectionNode.prototype.relegate=function(){var n=this.getStack();return!!n&&n.relegate(this)},ProjectionNode.prototype.resetRotation=function(){var n=this.options.visualElement;if(n){for(var i=!1,o={},u=0;u=0;u--)if(n.path[u].instance){o=n.path[u];break}var l=(o&&o!==n.root?o.instance:document).querySelector('[data-projection-id="'.concat(i,'"]'));l&&n.mount(l,!0)}function roundAxis(n){n.min=Math.round(n.min),n.max=Math.round(n.max)}function roundBox(n){roundAxis(n.x),roundAxis(n.y)}var rd=createProjectionNode({attachResizeListener:function(n,i){return addDomEvent(n,"resize",i)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),rf={current:void 0},rh=createProjectionNode({measureScroll:function(n){return{x:n.scrollLeft,y:n.scrollTop}},defaultParent:function(){if(!rf.current){var n=new rd(0,{});n.mount(window),n.setOptions({layoutScroll:!0}),rf.current=n}return rf.current},resetTransform:function(n,i){n.style.transform=null!=i?i:"none"},checkIsScrollRoot:function(n){return"fixed"===window.getComputedStyle(n).position}}),rp=(0,I.__assign)((0,I.__assign)((0,I.__assign)((0,I.__assign)({},tH),e5),tW),{measureLayout:MeasureLayout}),rm=createMotionProxy(function(n,i){return create_config_createDomMotionConfig(n,i,rp,create_visual_element_createDomVisualElement,rh)})},50693:function(n,i,o){"use strict";o.d(i,{L:function(){return filterProps},K:function(){return loadExternalIsValidProp}});var u=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function isValidMotionProp(n){return u.has(n)}var shouldForward=function(n){return!isValidMotionProp(n)};function loadExternalIsValidProp(n){n&&(shouldForward=function(i){return i.startsWith("on")?!isValidMotionProp(i):n(i)})}try{loadExternalIsValidProp(require("@emotion/is-prop-valid").default)}catch(n){}function filterProps(n,i,o){var u={};for(var l in n)(shouldForward(l)||!0===o&&isValidMotionProp(l)||!i&&!isValidMotionProp(l)||n.draggable&&l.startsWith("onDrag"))&&(u[l]=n[l]);return u}},62993:function(n,i,o){"use strict";o.d(i,{j:function(){return u}});var u="undefined"!=typeof document},63270:function(n,i,o){"use strict";o.d(i,{O:function(){return l}});var u=o(28070),l=(void 0===u||u.env,"production")},4310:function(n,i,o){"use strict";o.d(i,{h:function(){return useConstant}});var u=o(34270);function useConstant(n){var i=(0,u.useRef)(null);return null===i.current&&(i.current=n()),i.current}},76982:function(n,i,o){"use strict";o.d(i,{M:function(){return useId}});var u=o(4310),l=0,incrementId=function(){return l++},useId=function(){return(0,u.h)(incrementId)}},3869:function(n,i,o){"use strict";o.d(i,{L:function(){return l}});var u=o(34270),l=o(62993).j?u.useLayoutEffect:u.useEffect},83506:function(n,i,o){"use strict";o.d(i,{z:function(){return useUnmountEffect}});var u=o(34270);function useUnmountEffect(n){return(0,u.useEffect)(function(){return function(){return n()}},[])}},62897:function(n,i,o){"use strict";o.d(i,{qY:function(){return ei},ZP:function(){return es},iW:function(){return eo},$B:function(){return getFrameData}});let u=1/60*1e3,l="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),d="undefined"!=typeof window?n=>window.requestAnimationFrame(n):n=>setTimeout(()=>n(l()),u);function createRenderStep(n){let i=[],o=[],u=0,l=!1,d=!1,x=new WeakSet,I={schedule:(n,d=!1,I=!1)=>{let R=I&&l,j=R?i:o;return d&&x.add(n),-1===j.indexOf(n)&&(j.push(n),R&&l&&(u=i.length)),n},cancel:n=>{let i=o.indexOf(n);-1!==i&&o.splice(i,1),x.delete(n)},process:R=>{if(l){d=!0;return}if(l=!0,[i,o]=[o,i],o.length=0,u=i.length)for(let o=0;o(n[i]=createRenderStep(()=>I=!0),n),{}),et=W.reduce((n,i)=>{let o=J[i];return n[i]=(n,i=!1,u=!1)=>(I||startLoop(),o.schedule(n,i,u)),n},{}),ei=W.reduce((n,i)=>(n[i]=J[i].cancel,n),{}),eo=W.reduce((n,i)=>(n[i]=()=>J[i].process(j),n),{}),processStep=n=>J[n].process(j),processFrame=n=>{I=!1,j.delta=x?u:Math.max(Math.min(n-j.timestamp,40),1),j.timestamp=n,R=!0,W.forEach(processStep),R=!1,I&&(x=!1,d(processFrame))},startLoop=()=>{I=!0,x=!0,R||d(processFrame)},getFrameData=()=>j;var es=et},32944:function(n,i,o){"use strict";function getNativeWebSocket(){if("undefined"!=typeof WebSocket)return WebSocket;if(void 0!==global.WebSocket)return global.WebSocket;if(void 0!==window.WebSocket)return window.WebSocket;if(void 0!==self.WebSocket)return self.WebSocket;throw Error("`WebSocket` is not supported in this environment")}o.r(i),o.d(i,{WebSocket:function(){return u}});let u=getNativeWebSocket()},45081:function(n,i,o){"use strict";function requestProviders(n){let handler=i=>n(i.detail);return window.addEventListener("eip6963:announceProvider",handler),window.dispatchEvent(new CustomEvent("eip6963:requestProvider")),()=>window.removeEventListener("eip6963:announceProvider",handler)}function createStore(){let n=new Set,i=[],request=()=>requestProviders(o=>{i.some(({info:n})=>n.uuid===o.info.uuid)||(i=[...i,o],n.forEach(n=>n(i,{added:[o]})))}),o=request();return{_listeners:()=>n,clear(){n.forEach(n=>n([],{removed:[...i]})),i=[]},destroy(){this.clear(),n.clear(),o()},findProvider:({rdns:n})=>i.find(i=>i.info.rdns===n),getProviders:()=>i,reset(){this.clear(),o(),o=request()},subscribe:(o,{emitImmediately:u}={})=>(n.add(o),u&&o(i,{added:i}),()=>n.delete(o))}}o.d(i,{M:function(){return createStore}})},90701:function(n,i,o){"use strict";o.r(i),o.d(i,{__addDisposableResource:function(){return __addDisposableResource},__assign:function(){return __assign},__asyncDelegator:function(){return __asyncDelegator},__asyncGenerator:function(){return __asyncGenerator},__asyncValues:function(){return __asyncValues},__await:function(){return __await},__awaiter:function(){return __awaiter},__classPrivateFieldGet:function(){return __classPrivateFieldGet},__classPrivateFieldIn:function(){return __classPrivateFieldIn},__classPrivateFieldSet:function(){return __classPrivateFieldSet},__createBinding:function(){return u},__decorate:function(){return __decorate},__disposeResources:function(){return __disposeResources},__esDecorate:function(){return __esDecorate},__exportStar:function(){return __exportStar},__extends:function(){return __extends},__generator:function(){return __generator},__importDefault:function(){return __importDefault},__importStar:function(){return __importStar},__makeTemplateObject:function(){return __makeTemplateObject},__metadata:function(){return __metadata},__param:function(){return __param},__propKey:function(){return __propKey},__read:function(){return __read},__rest:function(){return __rest},__runInitializers:function(){return __runInitializers},__setFunctionName:function(){return __setFunctionName},__spread:function(){return __spread},__spreadArray:function(){return __spreadArray},__spreadArrays:function(){return __spreadArrays},__values:function(){return __values}});var extendStatics=function(n,i){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])})(n,i)};function __extends(n,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function __(){this.constructor=n}extendStatics(n,i),n.prototype=null===i?Object.create(i):(__.prototype=i.prototype,new __)}var __assign=function(){return(__assign=Object.assign||function(n){for(var i,o=1,u=arguments.length;oi.indexOf(u)&&(o[u]=n[u]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,u=Object.getOwnPropertySymbols(n);li.indexOf(u[l])&&Object.prototype.propertyIsEnumerable.call(n,u[l])&&(o[u[l]]=n[u[l]]);return o}function __decorate(n,i,o,u){var l,d=arguments.length,x=d<3?i:null===u?u=Object.getOwnPropertyDescriptor(i,o):u;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)x=Reflect.decorate(n,i,o,u);else for(var I=n.length-1;I>=0;I--)(l=n[I])&&(x=(d<3?l(x):d>3?l(i,o,x):l(i,o))||x);return d>3&&x&&Object.defineProperty(i,o,x),x}function __param(n,i){return function(o,u){i(o,u,n)}}function __esDecorate(n,i,o,u,l,d){function accept(n){if(void 0!==n&&"function"!=typeof n)throw TypeError("Function expected");return n}for(var x,I=u.kind,R="getter"===I?"get":"setter"===I?"set":"value",j=!i&&n?u.static?n:n.prototype:null,W=i||(j?Object.getOwnPropertyDescriptor(j,u.name):{}),J=!1,et=o.length-1;et>=0;et--){var ei={};for(var eo in u)ei[eo]="access"===eo?{}:u[eo];for(var eo in u.access)ei.access[eo]=u.access[eo];ei.addInitializer=function(n){if(J)throw TypeError("Cannot add initializers after decoration has completed");d.push(accept(n||null))};var es=(0,o[et])("accessor"===I?{get:W.get,set:W.set}:W[R],ei);if("accessor"===I){if(void 0===es)continue;if(null===es||"object"!=typeof es)throw TypeError("Object expected");(x=accept(es.get))&&(W.get=x),(x=accept(es.set))&&(W.set=x),(x=accept(es.init))&&l.unshift(x)}else(x=accept(es))&&("field"===I?l.unshift(x):W[R]=x)}j&&Object.defineProperty(j,u.name,W),J=!0}function __runInitializers(n,i,o){for(var u=arguments.length>2,l=0;l0&&l[l.length-1])&&(6===I[0]||2===I[0])){x=0;continue}if(3===I[0]&&(!l||I[1]>l[0]&&I[1]=n.length&&(n=void 0),{value:n&&n[u++],done:!n}}};throw TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(n,i){var o="function"==typeof Symbol&&n[Symbol.iterator];if(!o)return n;var u,l,d=o.call(n),x=[];try{for(;(void 0===i||i-- >0)&&!(u=d.next()).done;)x.push(u.value)}catch(n){l={error:n}}finally{try{u&&!u.done&&(o=d.return)&&o.call(d)}finally{if(l)throw l.error}}return x}function __spread(){for(var n=[],i=0;i1||resume(n,i)})})}function resume(n,i){try{step(l[n](i))}catch(n){settle(d[0][3],n)}}function step(n){n.value instanceof __await?Promise.resolve(n.value.v).then(fulfill,reject):settle(d[0][2],n)}function fulfill(n){resume("next",n)}function reject(n){resume("throw",n)}function settle(n,i){n(i),d.shift(),d.length&&resume(d[0][0],d[0][1])}}function __asyncDelegator(n){var i,o;return i={},verb("next"),verb("throw",function(n){throw n}),verb("return"),i[Symbol.iterator]=function(){return this},i;function verb(u,l){i[u]=n[u]?function(i){return(o=!o)?{value:__await(n[u](i)),done:!1}:l?l(i):i}:l}}function __asyncValues(n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var i,o=n[Symbol.asyncIterator];return o?o.call(n):(n=__values(n),i={},verb("next"),verb("throw"),verb("return"),i[Symbol.asyncIterator]=function(){return this},i);function verb(o){i[o]=n[o]&&function(i){return new Promise(function(u,l){settle(u,l,(i=n[o](i)).done,i.value)})}}function settle(n,i,o,u){Promise.resolve(u).then(function(i){n({value:i,done:o})},i)}}function __makeTemplateObject(n,i){return Object.defineProperty?Object.defineProperty(n,"raw",{value:i}):n.raw=i,n}var l=Object.create?function(n,i){Object.defineProperty(n,"default",{enumerable:!0,value:i})}:function(n,i){n.default=i};function __importStar(n){if(n&&n.__esModule)return n;var i={};if(null!=n)for(var o in n)"default"!==o&&Object.prototype.hasOwnProperty.call(n,o)&&u(i,n,o);return l(i,n),i}function __importDefault(n){return n&&n.__esModule?n:{default:n}}function __classPrivateFieldGet(n,i,o,u){if("a"===o&&!u)throw TypeError("Private accessor was defined without a getter");if("function"==typeof i?n!==i||!u:!i.has(n))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===o?u:"a"===o?u.call(n):u?u.value:i.get(n)}function __classPrivateFieldSet(n,i,o,u,l){if("m"===u)throw TypeError("Private method is not writable");if("a"===u&&!l)throw TypeError("Private accessor was defined without a setter");if("function"==typeof i?n!==i||!l:!i.has(n))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===u?l.call(n,o):l?l.value=o:i.set(n,o),o}function __classPrivateFieldIn(n,i){if(null===i||"object"!=typeof i&&"function"!=typeof i)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof n?i===n:n.has(i)}function __addDisposableResource(n,i,o){if(null!=i){var u;if("object"!=typeof i&&"function"!=typeof i)throw TypeError("Object expected.");if(o){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");u=i[Symbol.asyncDispose]}if(void 0===u){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");u=i[Symbol.dispose]}if("function"!=typeof u)throw TypeError("Object not disposable.");n.stack.push({value:i,dispose:u,async:o})}else o&&n.stack.push({async:!0});return i}var d="function"==typeof SuppressedError?SuppressedError:function(n,i,o){var u=Error(o);return u.name="SuppressedError",u.error=n,u.suppressed=i,u};function __disposeResources(n){function fail(i){n.error=n.hasError?new d(i,n.error,"An error was suppressed during disposal."):i,n.hasError=!0}function next(){for(;n.stack.length;){var i=n.stack.pop();try{var o=i.dispose&&i.dispose.call(i.value);if(i.async)return Promise.resolve(o).then(next,function(n){return fail(n),next()})}catch(n){fail(n)}}if(n.hasError)throw n.error}return next()}i.default={__extends,__assign,__rest,__decorate,__param,__metadata,__awaiter,__generator,__createBinding:u,__exportStar,__values,__read,__spread,__spreadArrays,__spreadArray,__await,__asyncGenerator,__asyncDelegator,__asyncValues,__makeTemplateObject,__importStar,__importDefault,__classPrivateFieldGet,__classPrivateFieldSet,__classPrivateFieldIn,__addDisposableResource,__disposeResources}},49754:function(n,i,o){"use strict";o.d(i,{E:function(){return allocUnsafe}});var u=o(61155);function allocUnsafe(n=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?(0,u.P)(globalThis.Buffer.allocUnsafe(n)):new Uint8Array(n)}},37839:function(n,i,o){"use strict";o.d(i,{z:function(){return concat}});var u=o(49754),l=o(61155);function concat(n,i){i||(i=n.reduce((n,i)=>n+i.length,0));let o=(0,u.E)(i),d=0;for(let i of n)o.set(i,d),d+=i.length;return(0,l.P)(o)}},93089:function(n,i,o){"use strict";o.d(i,{m:function(){return fromString}});var u=o(60638),l=o(61155);function fromString(n,i="utf8"){let o=u.Z[i];if(!o)throw Error(`Unsupported encoding "${i}"`);return("utf8"===i||"utf-8"===i)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?(0,l.P)(globalThis.Buffer.from(n,"utf-8")):o.decoder.decode(`${o.prefix}${n}`)}},27147:function(n,i,o){"use strict";o.d(i,{BB:function(){return d.B},mL:function(){return l.m},zo:function(){return u.z}});var u=o(37839),l=o(93089),d=o(12559)},12559:function(n,i,o){"use strict";o.d(i,{B:function(){return toString}});var u=o(60638);function toString(n,i="utf8"){let o=u.Z[i];if(!o)throw Error(`Unsupported encoding "${i}"`);return("utf8"===i||"utf-8"===i)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?globalThis.Buffer.from(n.buffer,n.byteOffset,n.byteLength).toString("utf8"):o.encoder.encode(n).substring(1)}},61155:function(n,i,o){"use strict";function asUint8Array(n){return null!=globalThis.Buffer?new Uint8Array(n.buffer,n.byteOffset,n.byteLength):n}o.d(i,{P:function(){return asUint8Array}})},60638:function(n,i,o){"use strict";o.d(i,{Z:function(){return e6}});var u={};o.r(u),o.d(u,{identity:function(){return ec}});var l={};o.r(l),o.d(l,{base2:function(){return el}});var d={};o.r(d),o.d(d,{base8:function(){return ed}});var x={};o.r(x),o.d(x,{base10:function(){return ef}});var I={};o.r(I),o.d(I,{base16:function(){return eh},base16upper:function(){return ep}});var R={};o.r(R),o.d(R,{base32:function(){return em},base32hex:function(){return ev},base32hexpad:function(){return ew},base32hexpadupper:function(){return eP},base32hexupper:function(){return eE},base32pad:function(){return ey},base32padupper:function(){return eb},base32upper:function(){return eg},base32z:function(){return ex}});var j={};o.r(j),o.d(j,{base36:function(){return eT},base36upper:function(){return eA}});var W={};o.r(W),o.d(W,{base58btc:function(){return eS},base58flickr:function(){return eC}});var J={};o.r(J),o.d(J,{base64:function(){return e_},base64pad:function(){return eO},base64url:function(){return eI},base64urlpad:function(){return eB}});var et={};o.r(et),o.d(et,{base256emoji:function(){return eM}});var ei={};o.r(ei),o.d(ei,{sha256:function(){return eF},sha512:function(){return eN}});var eo={};o.r(eo),o.d(eo,{identity:function(){return eU}});var es={};o.r(es),o.d(es,{code:function(){return eH},decode:function(){return raw_decode},encode:function(){return raw_encode},name:function(){return eL}});var eu={};o.r(eu),o.d(eu,{code:function(){return eV},decode:function(){return json_decode},encode:function(){return json_encode},name:function(){return ez}});var src=function(n,i){if(n.length>=255)throw TypeError("Alphabet too long");for(var o=new Uint8Array(256),u=0;u>>0,x=new Uint8Array(d);n[i];){var W=o[n.charCodeAt(i)];if(255===W)return;for(var J=0,et=d-1;(0!==W||J>>0,x[et]=W%256>>>0,W=W/256>>>0;if(0!==W)throw Error("Non-zero carry");l=J,i++}if(" "!==n[i]){for(var ei=d-l;ei!==d&&0===x[ei];)ei++;for(var eo=new Uint8Array(u+(d-ei)),es=u;ei!==d;)eo[es++]=x[ei++];return eo}}}function decode(n){var o=decodeUnsafe(n);if(o)return o;throw Error(`Non-${i} character`)}return{encode:function(i){if(i instanceof Uint8Array||(ArrayBuffer.isView(i)?i=new Uint8Array(i.buffer,i.byteOffset,i.byteLength):Array.isArray(i)&&(i=Uint8Array.from(i))),!(i instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(0===i.length)return"";for(var o=0,u=0,l=0,d=i.length;l!==d&&0===i[l];)l++,o++;for(var x=(d-l)*W+1>>>0,j=new Uint8Array(x);l!==d;){for(var J=i[l],et=0,ei=x-1;(0!==J||et>>0,j[ei]=J%I>>>0,J=J/I>>>0;if(0!==J)throw Error("Non-zero carry");u=et,l++}for(var eo=x-u;eo!==x&&0===j[eo];)eo++;for(var es=R.repeat(o);eo{if(n===i)return!0;if(n.byteLength!==i.byteLength)return!1;for(let o=0;o{if(n instanceof Uint8Array&&"Uint8Array"===n.constructor.name)return n;if(n instanceof ArrayBuffer)return new Uint8Array(n);if(ArrayBuffer.isView(n))return new Uint8Array(n.buffer,n.byteOffset,n.byteLength);throw Error("Unknown type, must be binary type")},fromString=n=>new TextEncoder().encode(n),bytes_toString=n=>new TextDecoder().decode(n);let Encoder=class Encoder{constructor(n,i,o){this.name=n,this.prefix=i,this.baseEncode=o}encode(n){if(n instanceof Uint8Array)return`${this.prefix}${this.baseEncode(n)}`;throw Error("Unknown type, must be binary type")}};let Decoder=class Decoder{constructor(n,i,o){if(this.name=n,this.prefix=i,void 0===i.codePointAt(0))throw Error("Invalid prefix character");this.prefixCodePoint=i.codePointAt(0),this.baseDecode=o}decode(n){if("string"==typeof n){if(n.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(n)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(n.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(n){return or(this,n)}};let ComposedDecoder=class ComposedDecoder{constructor(n){this.decoders=n}or(n){return or(this,n)}decode(n){let i=n[0],o=this.decoders[i];if(o)return o.decode(n);throw RangeError(`Unable to decode multibase string ${JSON.stringify(n)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}};let or=(n,i)=>new ComposedDecoder({...n.decoders||{[n.prefix]:n},...i.decoders||{[i.prefix]:i}});let Codec=class Codec{constructor(n,i,o,u){this.name=n,this.prefix=i,this.baseEncode=o,this.baseDecode=u,this.encoder=new Encoder(n,i,o),this.decoder=new Decoder(n,i,u)}encode(n){return this.encoder.encode(n)}decode(n){return this.decoder.decode(n)}};let from=({name:n,prefix:i,encode:o,decode:u})=>new Codec(n,i,o,u),baseX=({prefix:n,name:i,alphabet:o})=>{let{encode:u,decode:l}=src(o,i);return from({prefix:n,name:i,encode:u,decode:n=>coerce(l(n))})},decode=(n,i,o,u)=>{let l={};for(let n=0;n=8&&(I-=8,x[j++]=255&R>>I)}if(I>=o||255&R<<8-I)throw SyntaxError("Unexpected end of data");return x},encode=(n,i,o)=>{let u="="===i[i.length-1],l=(1<o;)x-=o,d+=i[l&I>>x];if(x&&(d+=i[l&I<from({prefix:i,name:n,encode:n=>encode(n,u,o),decode:i=>decode(i,u,o,n)}),ec=from({prefix:"\x00",name:"identity",encode:n=>bytes_toString(n),decode:n=>fromString(n)}),el=rfc4648({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),ed=rfc4648({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),ef=baseX({prefix:"9",name:"base10",alphabet:"0123456789"}),eh=rfc4648({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),ep=rfc4648({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),em=rfc4648({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),eg=rfc4648({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),ey=rfc4648({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),eb=rfc4648({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),ev=rfc4648({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),eE=rfc4648({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),ew=rfc4648({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),eP=rfc4648({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),ex=rfc4648({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),eT=baseX({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),eA=baseX({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),eS=baseX({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),eC=baseX({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),e_=rfc4648({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),eO=rfc4648({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),eI=rfc4648({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),eB=rfc4648({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),eD=Array.from("\uD83D\uDE80\uD83E\uDE90☄\uD83D\uDEF0\uD83C\uDF0C\uD83C\uDF11\uD83C\uDF12\uD83C\uDF13\uD83C\uDF14\uD83C\uDF15\uD83C\uDF16\uD83C\uDF17\uD83C\uDF18\uD83C\uDF0D\uD83C\uDF0F\uD83C\uDF0E\uD83D\uDC09☀\uD83D\uDCBB\uD83D\uDDA5\uD83D\uDCBE\uD83D\uDCBF\uD83D\uDE02❤\uD83D\uDE0D\uD83E\uDD23\uD83D\uDE0A\uD83D\uDE4F\uD83D\uDC95\uD83D\uDE2D\uD83D\uDE18\uD83D\uDC4D\uD83D\uDE05\uD83D\uDC4F\uD83D\uDE01\uD83D\uDD25\uD83E\uDD70\uD83D\uDC94\uD83D\uDC96\uD83D\uDC99\uD83D\uDE22\uD83E\uDD14\uD83D\uDE06\uD83D\uDE44\uD83D\uDCAA\uD83D\uDE09☺\uD83D\uDC4C\uD83E\uDD17\uD83D\uDC9C\uD83D\uDE14\uD83D\uDE0E\uD83D\uDE07\uD83C\uDF39\uD83E\uDD26\uD83C\uDF89\uD83D\uDC9E✌✨\uD83E\uDD37\uD83D\uDE31\uD83D\uDE0C\uD83C\uDF38\uD83D\uDE4C\uD83D\uDE0B\uD83D\uDC97\uD83D\uDC9A\uD83D\uDE0F\uD83D\uDC9B\uD83D\uDE42\uD83D\uDC93\uD83E\uDD29\uD83D\uDE04\uD83D\uDE00\uD83D\uDDA4\uD83D\uDE03\uD83D\uDCAF\uD83D\uDE48\uD83D\uDC47\uD83C\uDFB6\uD83D\uDE12\uD83E\uDD2D❣\uD83D\uDE1C\uD83D\uDC8B\uD83D\uDC40\uD83D\uDE2A\uD83D\uDE11\uD83D\uDCA5\uD83D\uDE4B\uD83D\uDE1E\uD83D\uDE29\uD83D\uDE21\uD83E\uDD2A\uD83D\uDC4A\uD83E\uDD73\uD83D\uDE25\uD83E\uDD24\uD83D\uDC49\uD83D\uDC83\uD83D\uDE33✋\uD83D\uDE1A\uD83D\uDE1D\uD83D\uDE34\uD83C\uDF1F\uD83D\uDE2C\uD83D\uDE43\uD83C\uDF40\uD83C\uDF37\uD83D\uDE3B\uD83D\uDE13⭐✅\uD83E\uDD7A\uD83C\uDF08\uD83D\uDE08\uD83E\uDD18\uD83D\uDCA6✔\uD83D\uDE23\uD83C\uDFC3\uD83D\uDC90☹\uD83C\uDF8A\uD83D\uDC98\uD83D\uDE20☝\uD83D\uDE15\uD83C\uDF3A\uD83C\uDF82\uD83C\uDF3B\uD83D\uDE10\uD83D\uDD95\uD83D\uDC9D\uD83D\uDE4A\uD83D\uDE39\uD83D\uDDE3\uD83D\uDCAB\uD83D\uDC80\uD83D\uDC51\uD83C\uDFB5\uD83E\uDD1E\uD83D\uDE1B\uD83D\uDD34\uD83D\uDE24\uD83C\uDF3C\uD83D\uDE2B⚽\uD83E\uDD19☕\uD83C\uDFC6\uD83E\uDD2B\uD83D\uDC48\uD83D\uDE2E\uD83D\uDE46\uD83C\uDF7B\uD83C\uDF43\uD83D\uDC36\uD83D\uDC81\uD83D\uDE32\uD83C\uDF3F\uD83E\uDDE1\uD83C\uDF81⚡\uD83C\uDF1E\uD83C\uDF88❌✊\uD83D\uDC4B\uD83D\uDE30\uD83E\uDD28\uD83D\uDE36\uD83E\uDD1D\uD83D\uDEB6\uD83D\uDCB0\uD83C\uDF53\uD83D\uDCA2\uD83E\uDD1F\uD83D\uDE41\uD83D\uDEA8\uD83D\uDCA8\uD83E\uDD2C✈\uD83C\uDF80\uD83C\uDF7A\uD83E\uDD13\uD83D\uDE19\uD83D\uDC9F\uD83C\uDF31\uD83D\uDE16\uD83D\uDC76\uD83E\uDD74▶➡❓\uD83D\uDC8E\uD83D\uDCB8⬇\uD83D\uDE28\uD83C\uDF1A\uD83E\uDD8B\uD83D\uDE37\uD83D\uDD7A⚠\uD83D\uDE45\uD83D\uDE1F\uD83D\uDE35\uD83D\uDC4E\uD83E\uDD32\uD83E\uDD20\uD83E\uDD27\uD83D\uDCCC\uD83D\uDD35\uD83D\uDC85\uD83E\uDDD0\uD83D\uDC3E\uD83C\uDF52\uD83D\uDE17\uD83E\uDD11\uD83C\uDF0A\uD83E\uDD2F\uD83D\uDC37☎\uD83D\uDCA7\uD83D\uDE2F\uD83D\uDC86\uD83D\uDC46\uD83C\uDFA4\uD83D\uDE47\uD83C\uDF51❄\uD83C\uDF34\uD83D\uDCA3\uD83D\uDC38\uD83D\uDC8C\uD83D\uDCCD\uD83E\uDD40\uD83E\uDD22\uD83D\uDC45\uD83D\uDCA1\uD83D\uDCA9\uD83D\uDC50\uD83D\uDCF8\uD83D\uDC7B\uD83E\uDD10\uD83E\uDD2E\uD83C\uDFBC\uD83E\uDD75\uD83D\uDEA9\uD83C\uDF4E\uD83C\uDF4A\uD83D\uDC7C\uD83D\uDC8D\uD83D\uDCE3\uD83E\uDD42"),eR=eD.reduce((n,i,o)=>(n[o]=i,n),[]),ej=eD.reduce((n,i,o)=>(n[i.codePointAt(0)]=o,n),[]);function base256emoji_encode(n){return n.reduce((n,i)=>n+=eR[i],"")}function base256emoji_decode(n){let i=[];for(let o of n){let n=ej[o.codePointAt(0)];if(void 0===n)throw Error(`Non-base256emoji character: ${o}`);i.push(n)}return new Uint8Array(i)}let eM=from({prefix:"\uD83D\uDE80",name:"base256emoji",encode:base256emoji_encode,decode:base256emoji_decode});function varint_encode(n,i,o){i=i||[];for(var u=o=o||0;n>=2147483648;)i[o++]=255&n|128,n/=128;for(;-128&n;)i[o++]=255&n|128,n>>>=7;return i[o]=0|n,varint_encode.bytes=o-u+1,i}function read(n,i){var o,u=0,i=i||0,l=0,d=i,x=n.length;do{if(d>=x)throw read.bytes=0,RangeError("Could not decode varint");o=n[d++],u+=l<28?(127&o)<=128);return read.bytes=d-i,u}var ek={encode:varint_encode,decode:read,encodingLength:function(n){return n<128?1:n<16384?2:n<2097152?3:n<268435456?4:n<34359738368?5:n<4398046511104?6:n<562949953421312?7:n<72057594037927940?8:n<0x7fffffffffffffff?9:10}};let src_varint_decode=(n,i=0)=>{let o=ek.decode(n,i);return[o,ek.decode.bytes]},encodeTo=(n,i,o=0)=>(ek.encode(n,i,o),i),encodingLength=n=>ek.encodingLength(n),create=(n,i)=>{let o=i.byteLength,u=encodingLength(n),l=u+encodingLength(o),d=new Uint8Array(l+o);return encodeTo(n,d,0),encodeTo(o,d,u),d.set(i,l),new Digest(n,o,i,d)},digest_decode=n=>{let i=coerce(n),[o,u]=src_varint_decode(i),[l,d]=src_varint_decode(i.subarray(u)),x=i.subarray(u+d);if(x.byteLength!==l)throw Error("Incorrect length");return new Digest(o,l,x,i)},digest_equals=(n,i)=>n===i||n.code===i.code&&n.size===i.size&&equals(n.bytes,i.bytes);let Digest=class Digest{constructor(n,i,o,u){this.code=n,this.size=i,this.digest=o,this.bytes=u}};let hasher_from=({name:n,code:i,encode:o})=>new Hasher(n,i,o);let Hasher=class Hasher{constructor(n,i,o){this.name=n,this.code=i,this.encode=o}digest(n){if(n instanceof Uint8Array){let i=this.encode(n);return i instanceof Uint8Array?create(this.code,i):i.then(n=>create(this.code,n))}throw Error("Unknown type, must be binary type")}};let sha=n=>async i=>new Uint8Array(await crypto.subtle.digest(n,i)),eF=hasher_from({name:"sha2-256",code:18,encode:sha("SHA-256")}),eN=hasher_from({name:"sha2-512",code:19,encode:sha("SHA-512")}),eU={code:0,name:"identity",encode:coerce,digest:n=>create(0,coerce(n))},eL="raw",eH=85,raw_encode=n=>coerce(n),raw_decode=n=>coerce(n),e$=new TextEncoder,eq=new TextDecoder,ez="json",eV=512,json_encode=n=>e$.encode(JSON.stringify(n)),json_decode=n=>JSON.parse(eq.decode(n));let CID=class CID{constructor(n,i,o,u){this.code=i,this.version=n,this.multihash=o,this.bytes=u,this.byteOffset=u.byteOffset,this.byteLength=u.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:eZ,byteLength:eZ,code:eQ,version:eQ,multihash:eQ,bytes:eQ,_baseCache:eZ,asCID:eZ})}toV0(){if(0===this.version)return this;{let{code:n,multihash:i}=this;if(n!==eG)throw Error("Cannot convert a non dag-pb CID to CIDv0");if(i.code!==eW)throw Error("Cannot convert non sha2-256 multihash CID to CIDv0");return CID.createV0(i)}}toV1(){switch(this.version){case 0:{let{code:n,digest:i}=this.multihash,o=create(n,i);return CID.createV1(this.code,o)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(n){return n&&this.code===n.code&&this.version===n.version&&digest_equals(this.multihash,n.multihash)}toString(n){let{bytes:i,version:o,_baseCache:u}=this;return 0===o?toStringV0(i,u,n||eS.encoder):toStringV1(i,u,n||em.encoder)}toJSON(){return{code:this.code,version:this.version,hash:this.multihash.bytes}}get[Symbol.toStringTag](){return"CID"}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}static isCID(n){return deprecate(/^0\.0/,eY),!!(n&&(n[eK]||n.asCID===n))}get toBaseEncodedString(){throw Error("Deprecated, use .toString()")}get codec(){throw Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw Error('"multibaseName" property is deprecated')}get prefix(){throw Error('"prefix" property is deprecated')}static asCID(n){if(n instanceof CID)return n;if(null!=n&&n.asCID===n){let{version:i,code:o,multihash:u,bytes:l}=n;return new CID(i,o,u,l||encodeCID(i,o,u.bytes))}if(null==n||!0!==n[eK])return null;{let{version:i,multihash:o,code:u}=n,l=digest_decode(o);return CID.create(i,u,l)}}static create(n,i,o){if("number"!=typeof i)throw Error("String codecs are no longer supported");switch(n){case 0:if(i===eG)return new CID(n,i,o,o.bytes);throw Error(`Version 0 CID must use dag-pb (code: ${eG}) block encoding`);case 1:{let u=encodeCID(n,i,o.bytes);return new CID(n,i,o,u)}default:throw Error("Invalid version")}}static createV0(n){return CID.create(0,eG,n)}static createV1(n,i){return CID.create(1,n,i)}static decode(n){let[i,o]=CID.decodeFirst(n);if(o.length)throw Error("Incorrect length");return i}static decodeFirst(n){let i=CID.inspectBytes(n),o=i.size-i.multihashSize,u=coerce(n.subarray(o,o+i.multihashSize));if(u.byteLength!==i.multihashSize)throw Error("Incorrect length");let l=u.subarray(i.multihashSize-i.digestSize),d=new Digest(i.multihashCode,i.digestSize,l,u),x=0===i.version?CID.createV0(d):CID.createV1(i.codec,d);return[x,n.subarray(i.size)]}static inspectBytes(n){let i=0,next=()=>{let[o,u]=src_varint_decode(n.subarray(i));return i+=u,o},o=next(),u=eG;if(18===o?(o=0,i=0):1===o&&(u=next()),0!==o&&1!==o)throw RangeError(`Invalid CID version ${o}`);let l=i,d=next(),x=next(),I=i+x;return{version:o,codec:u,multihashCode:d,digestSize:x,multihashSize:I-l,size:I}}static parse(n,i){let[o,u]=parseCIDtoBytes(n,i),l=CID.decode(u);return l._baseCache.set(o,n),l}};let parseCIDtoBytes=(n,i)=>{switch(n[0]){case"Q":return[eS.prefix,(i||eS).decode(`${eS.prefix}${n}`)];case eS.prefix:return[eS.prefix,(i||eS).decode(n)];case em.prefix:return[em.prefix,(i||em).decode(n)];default:if(null==i)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[n[0],i.decode(n)]}},toStringV0=(n,i,o)=>{let{prefix:u}=o;if(u!==eS.prefix)throw Error(`Cannot string encode V0 in ${o.name} encoding`);let l=i.get(u);if(null!=l)return l;{let l=o.encode(n).slice(1);return i.set(u,l),l}},toStringV1=(n,i,o)=>{let{prefix:u}=o,l=i.get(u);if(null!=l)return l;{let l=o.encode(n);return i.set(u,l),l}},eG=112,eW=18,encodeCID=(n,i,o)=>{let u=encodingLength(n),l=u+encodingLength(i),d=new Uint8Array(l+o.byteLength);return encodeTo(n,d,0),encodeTo(i,d,u),d.set(o,l),d},eK=Symbol.for("@ipld/js-cid/CID"),eQ={writable:!1,configurable:!1,enumerable:!0},eZ={writable:!1,enumerable:!1,configurable:!1},deprecate=(n,i)=>{if(n.test("0.0.0-dev"))console.warn(i);else throw Error(i)},eY=`CID.isCID(v) is deprecated and will be removed in the next major release. -Following code pattern: - -if (CID.isCID(value)) { - doSomethingWithCID(value) -} - -Is replaced with: - -const cid = CID.asCID(value) -if (cid) { - // Make sure to use cid instead of value - doSomethingWithCID(cid) -} -`,eX={...u,...l,...d,...x,...I,...R,...j,...W,...J,...et};({...ei,...eo});var eJ=o(49754);function createCodec(n,i,o,u){return{name:n,prefix:i,encoder:{name:n,prefix:i,encode:o},decoder:{decode:u}}}let e0=createCodec("utf8","u",n=>{let i=new TextDecoder("utf8");return"u"+i.decode(n)},n=>{let i=new TextEncoder;return i.encode(n.substring(1))}),e1=createCodec("ascii","a",n=>{let i="a";for(let o=0;o{n=n.substring(1);let i=(0,eJ.E)(n.length);for(let o=0;o{let i=(0,ei.k)(n,o);return i instanceof et.cj?n:i})();return new I.cg(u,{docsPath:i,...o})}var eo=o(22429),es=o(49637),eu=o(16360),ec=o(36211);async function call(n,i){let{account:l=n.account,batch:d=!!n.batch?.multicall,blockNumber:I,blockTag:R="latest",accessList:j,data:W,gas:et,gasPrice:ei,maxFeePerGas:eu,maxPriorityFeePerGas:el,nonce:ed,to:ef,value:eh,...ep}=i,em=l?(0,u.T)(l):void 0;try{(0,ec.F)(i);let o=I?(0,J.eC)(I):void 0,u=o||R,l=n.chain?.formatters?.transactionRequest?.format,eg=l||es.tG,ey=eg({...(0,eo.K)(ep,{format:l}),from:em?.address,accessList:j,data:W,gas:et,gasPrice:ei,maxFeePerGas:eu,maxPriorityFeePerGas:el,nonce:ed,to:ef,value:eh});if(d&&shouldPerformMulticall({request:ey}))try{return await scheduleMulticall(n,{...ey,blockNumber:I,blockTag:R})}catch(n){if(!(n instanceof x.pZ)&&!(n instanceof x.mm))throw n}let eb=await n.request({method:"eth_call",params:u?[ey,u]:[ey]});if("0x"===eb)return{data:void 0};return{data:eb}}catch(x){let u=getRevertErrorData(x),{offchainLookup:l,offchainLookupSignature:d}=await o.e(65).then(o.bind(o,95505));if(u?.slice(0,10)===d&&ef)return{data:await l(n,{data:u,to:ef})};throw getCallError(x,{...i,account:em,chain:n.chain})}}function shouldPerformMulticall({request:n}){let{data:i,to:o,...u}=n;return!(!i||i.startsWith("0x82ad56cb"))&&!!o&&!(Object.values(u).filter(n=>void 0!==n).length>0)}async function scheduleMulticall(n,i){let{batchSize:o=1024,wait:u=0}="object"==typeof n.batch?.multicall?n.batch.multicall:{},{blockNumber:d,blockTag:et="latest",data:ei,multicallAddress:eo,to:es}=i,ec=eo;if(!ec){if(!n.chain)throw new x.pZ;ec=(0,W.L)({blockNumber:d,chain:n.chain,contract:"multicall3"})}let el=d?(0,J.eC)(d):void 0,ed=el||et,{schedule:ef}=(0,eu.S)({id:`${n.uid}.${ed}`,wait:u,shouldSplitBatch(n){let i=n.reduce((n,{data:i})=>n+(i.length-2),0);return i>2*o},fn:async i=>{let o=i.map(n=>({allowFailure:!0,callData:n.data,target:n.to})),u=(0,j.R)({abi:l.F8,args:[o],functionName:"aggregate3"}),d=await n.request({method:"eth_call",params:[{data:u,to:ec},ed]});return(0,R.k)({abi:l.F8,args:[o],functionName:"aggregate3",data:d||"0x"})}}),[{returnData:eh,success:ep}]=await ef({data:ei,to:es});if(!ep)throw new I.VQ({data:eh});return"0x"===eh?{data:void 0}:{data:eh}}function getRevertErrorData(n){if(!(n instanceof d.G))return;let i=n.walk();return"object"==typeof i.data?i.data.data:i.data}},57971:function(n,i,o){"use strict";o.d(i,{C:function(){return internal_estimateFeesPerGas},X:function(){return estimateFeesPerGas}});var u=o(99261),l=o(75891),d=o(2933),x=o(9419),I=o(10124);async function estimateFeesPerGas(n,i){return internal_estimateFeesPerGas(n,i)}async function internal_estimateFeesPerGas(n,i){let{block:o,chain:R=n.chain,request:j,type:W="eip1559"}=i||{},J=await (async()=>"function"==typeof R?.fees?.baseFeeMultiplier?R.fees.baseFeeMultiplier({block:o,client:n,request:j}):R?.fees?.baseFeeMultiplier??1.2)();if(J<1)throw new u.Fz;let et=J.toString().split(".")[1]?.length??0,ei=10**et,multiply=n=>n*BigInt(Math.ceil(J*ei))/BigInt(ei),eo=o||await (0,l.s)(n,x.Q,"getBlock")({});if("function"==typeof R?.fees?.estimateFeesPerGas)return R.fees.estimateFeesPerGas({block:o,client:n,multiply,request:j,type:W});if("eip1559"===W){if("bigint"!=typeof eo.baseFeePerGas)throw new u.e5;let i=j?.maxPriorityFeePerGas?j.maxPriorityFeePerGas:await (0,d.h)(n,{block:eo,chain:R,request:j}),o=multiply(eo.baseFeePerGas),l=j?.maxFeePerGas??o+i;return{maxFeePerGas:l,maxPriorityFeePerGas:i}}let es=j?.gasPrice??multiply(await (0,l.s)(n,I.o,"getGasPrice")({}));return{gasPrice:es}}},85304:function(n,i,o){"use strict";o.d(i,{Q:function(){return estimateGas}});var u=o(70404),l=o(94369),d=o(21502),x=o(49338),I=o(84541),R=o(40882),j=o(82415);let EstimateGasExecutionError=class EstimateGasExecutionError extends R.G{constructor(n,{account:i,docsPath:o,chain:u,data:l,gas:d,gasPrice:R,maxFeePerGas:W,maxPriorityFeePerGas:J,nonce:et,to:ei,value:eo}){let es=(0,j.xr)({from:i?.address,to:ei,value:void 0!==eo&&`${(0,x.d)(eo)} ${u?.nativeCurrency?.symbol||"ETH"}`,data:l,gas:d,gasPrice:void 0!==R&&`${(0,I.o)(R)} gwei`,maxFeePerGas:void 0!==W&&`${(0,I.o)(W)} gwei`,maxPriorityFeePerGas:void 0!==J&&`${(0,I.o)(J)} gwei`,nonce:et});super(n.shortMessage,{cause:n,docsPath:o,metaMessages:[...n.metaMessages?[...n.metaMessages," "]:[],"Estimate Gas Arguments:",es].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EstimateGasExecutionError"}),this.cause=n}};var W=o(27368),J=o(14067);function getEstimateGasError(n,{docsPath:i,...o}){let u=(()=>{let i=(0,J.k)(n,o);return i instanceof W.cj?n:i})();return new EstimateGasExecutionError(u,{docsPath:i,...o})}var et=o(22429),ei=o(49637),eo=o(36211),es=o(1061);async function estimateGas(n,i){let o=i.account??n.account;if(!o)throw new l.o({docsPath:"/docs/actions/public/estimateGas"});let x=(0,u.T)(o);try{let{accessList:o,blockNumber:u,blockTag:l,data:I,gas:R,gasPrice:j,maxFeePerGas:W,maxPriorityFeePerGas:J,nonce:eu,to:ec,value:el,...ed}="local"===x.type?await (0,es.Z)(n,i):i,ef=u?(0,d.eC)(u):void 0,eh=ef||l;(0,eo.F)(i);let ep=n.chain?.formatters?.transactionRequest?.format,em=ep||ei.tG,eg=em({...(0,et.K)(ed,{format:ep}),from:x.address,accessList:o,data:I,gas:R,gasPrice:j,maxFeePerGas:W,maxPriorityFeePerGas:J,nonce:eu,to:ec,value:el}),ey=await n.request({method:"eth_estimateGas",params:eh?[eg,eh]:[eg]});return BigInt(ey)}catch(o){throw getEstimateGasError(o,{...i,account:x,chain:n.chain})}}},2933:function(n,i,o){"use strict";o.d(i,{_:function(){return estimateMaxPriorityFeePerGas},h:function(){return internal_estimateMaxPriorityFeePerGas}});var u=o(99261),l=o(81725),d=o(75891),x=o(9419),I=o(10124);async function estimateMaxPriorityFeePerGas(n,i){return internal_estimateMaxPriorityFeePerGas(n,i)}async function internal_estimateMaxPriorityFeePerGas(n,i){let{block:o,chain:R=n.chain,request:j}=i||{};if("function"==typeof R?.fees?.defaultPriorityFee){let i=o||await (0,d.s)(n,x.Q,"getBlock")({});return R.fees.defaultPriorityFee({block:i,client:n,request:j})}if(void 0!==R?.fees?.defaultPriorityFee)return R?.fees?.defaultPriorityFee;try{let i=await n.request({method:"eth_maxPriorityFeePerGas"});return(0,l.y_)(i)}catch{let[i,l]=await Promise.all([o?Promise.resolve(o):(0,d.s)(n,x.Q,"getBlock")({}),(0,d.s)(n,I.o,"getGasPrice")({})]);if("bigint"!=typeof i.baseFeePerGas)throw new u.e5;let R=l-i.baseFeePerGas;if(R<0n)return 0n;return R}}},9419:function(n,i,o){"use strict";o.d(i,{Q:function(){return getBlock}});var u=o(70160),l=o(21502),d=o(28753);async function getBlock(n,{blockHash:i,blockNumber:o,blockTag:x,includeTransactions:I}={}){let R=I??!1,j=void 0!==o?(0,l.eC)(o):void 0,W=null;if(!(W=i?await n.request({method:"eth_getBlockByHash",params:[i,R]}):await n.request({method:"eth_getBlockByNumber",params:[j||(x??"latest"),R]})))throw new u.f({blockHash:i,blockNumber:o});let J=n.chain?.formatters?.block?.format||d.Z;return J(W)}},70418:function(n,i,o){"use strict";o.d(i,{L:function(){return getChainId}});var u=o(81725);async function getChainId(n){let i=await n.request({method:"eth_chainId"});return(0,u.ly)(i)}},10124:function(n,i,o){"use strict";async function getGasPrice(n){let i=await n.request({method:"eth_gasPrice"});return BigInt(i)}o.d(i,{o:function(){return getGasPrice}})},20054:function(n,i,o){"use strict";o.d(i,{K:function(){return getTransactionCount}});var u=o(81725),l=o(21502);async function getTransactionCount(n,{address:i,blockTag:o="latest",blockNumber:d}){let x=await n.request({method:"eth_getTransactionCount",params:[i,d?(0,l.eC)(d):o]});return(0,u.ly)(x)}},1061:function(n,i,o){"use strict";o.d(i,{Z:function(){return prepareTransactionRequest}});var u=o(70404),l=o(57971),d=o(85304),x=o(9419),I=o(20054),R=o(94369),j=o(99261),W=o(75891),J=o(36211),et=o(82415);function getTransactionType(n){if(n.type)return n.type;if(void 0!==n.maxFeePerGas||void 0!==n.maxPriorityFeePerGas)return"eip1559";if(void 0!==n.gasPrice)return void 0!==n.accessList?"eip2930":"legacy";throw new et.j3({transaction:n})}async function prepareTransactionRequest(n,i){let{account:o=n.account,chain:et,gas:ei,nonce:eo,type:es}=i;if(!o)throw new R.o;let eu=(0,u.T)(o),ec=await (0,W.s)(n,x.Q,"getBlock")({blockTag:"latest"}),el={...i,from:eu.address};if(void 0===eo&&(el.nonce=await (0,W.s)(n,I.K,"getTransactionCount")({address:eu.address,blockTag:"pending"})),void 0===es)try{el.type=getTransactionType(el)}catch{el.type="bigint"==typeof ec.baseFeePerGas?"eip1559":"legacy"}if("eip1559"===el.type){let{maxFeePerGas:o,maxPriorityFeePerGas:u}=await (0,l.C)(n,{block:ec,chain:et,request:el});if(void 0===i.maxPriorityFeePerGas&&i.maxFeePerGas&&i.maxFeePerGas{if("string"==typeof n)return n;let i=x.Tr(n);return"0x7e"===i.typeHex&&(i.isSystemTx=n.isSystemTx,i.mint=n.mint?l.y_(n.mint):void 0,i.sourceHash=n.sourceHash,i.type="deposit"),i});return{transactions:i,stateRoot:n.stateRoot}}}),transaction:(0,x.y_)({format(n){let i={};return"0x7e"===n.type&&(i.isSystemTx=n.isSystemTx,i.mint=n.mint?(0,l.y_)(n.mint):void 0,i.sourceHash=n.sourceHash,i.type="deposit"),i}}),transactionReceipt:(0,I.d)({format:n=>({l1GasPrice:n.l1GasPrice?(0,l.y_)(n.l1GasPrice):null,l1GasUsed:n.l1GasUsed?(0,l.y_)(n.l1GasUsed):null,l1Fee:n.l1Fee?(0,l.y_)(n.l1Fee):null,l1FeeScalar:n.l1FeeScalar?Number(n.l1FeeScalar):null})})},j=(0,u.a)({id:10,name:"OP Mainnet",network:"optimism",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://opt-mainnet.g.alchemy.com/v2"],webSocket:["wss://opt-mainnet.g.alchemy.com/v2"]},infura:{http:["https://optimism-mainnet.infura.io/v3"],webSocket:["wss://optimism-mainnet.infura.io/ws/v3"]},default:{http:["https://mainnet.optimism.io"]},public:{http:["https://mainnet.optimism.io"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://optimistic.etherscan.io"},default:{name:"Optimism Explorer",url:"https://explorer.optimism.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4286263}}},{formatters:R})},33165:function(n,i,o){"use strict";o.d(i,{y:function(){return l}});var u=o(46319);let l=(0,u.a)({id:137,name:"Polygon",network:"matic",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{alchemy:{http:["https://polygon-mainnet.g.alchemy.com/v2"],webSocket:["wss://polygon-mainnet.g.alchemy.com/v2"]},infura:{http:["https://polygon-mainnet.infura.io/v3"],webSocket:["wss://polygon-mainnet.infura.io/ws/v3"]},default:{http:["https://polygon-rpc.com"]},public:{http:["https://polygon-rpc.com"]}},blockExplorers:{etherscan:{name:"PolygonScan",url:"https://polygonscan.com"},default:{name:"PolygonScan",url:"https://polygonscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}}})},67265:function(n,i,o){"use strict";let u;o.d(i,{e:function(){return createClient}});var l=o(70404);let d=256;function uid(n=11){if(!u||d+n>512){u="",d=0;for(let n=0;n<256;n++)u+=(256+256*Math.random()|0).toString(16).substring(1)}return u.substring(d,d+++n)}function createClient(n){let{batch:i,cacheTime:o=n.pollingInterval??4e3,key:u="base",name:d="Base Client",pollingInterval:x=4e3,type:I="base"}=n,R=n.chain,j=n.account?(0,l.T)(n.account):void 0,{config:W,request:J,value:et}=n.transport({chain:R,pollingInterval:x}),ei={...W,...et},eo={account:j,batch:i,cacheTime:o,chain:R,key:u,name:d,pollingInterval:x,request:J,transport:ei,type:I,uid:uid()};function extend(n){return i=>{let o=i(n);for(let n in eo)delete o[n];let u={...n,...o};return Object.assign(u,{extend:extend(u)})}}return Object.assign(eo,{extend:extend(eo)})}},13323:function(n,i,o){"use strict";o.d(i,{K:function(){return createWalletClient}});var u=o(67265),l=o(70418),d=o(21502);async function addChain(n,{chain:i}){let{id:o,name:u,nativeCurrency:l,rpcUrls:x,blockExplorers:I}=i;await n.request({method:"wallet_addEthereumChain",params:[{chainId:(0,d.eC)(o),chainName:u,nativeCurrency:l,rpcUrls:x.default.http,blockExplorerUrls:I?Object.values(I).map(({url:n})=>n):void 0}]})}var x=o(84928),I=o(70404),R=o(94369),j=o(9305);function assertCurrentChain({chain:n,currentChainId:i}){if(!n)throw new j.Bk;if(i!==n.id)throw new j.Yl({chain:n,currentChainId:i})}var W=o(27368),J=o(82415),et=o(14067);function getTransactionError(n,{docsPath:i,...o}){let u=(()=>{let i=(0,et.k)(n,o);return i instanceof W.cj?n:i})();return new J.mk(u,{docsPath:i,...o})}var ei=o(22429),eo=o(49637),es=o(75891),eu=o(36211),ec=o(1061),el=o(83444);async function sendTransaction(n,i){let{account:o=n.account,chain:u=n.chain,accessList:d,data:x,gas:j,gasPrice:W,maxFeePerGas:J,maxPriorityFeePerGas:et,nonce:ed,to:ef,value:eh,...ep}=i;if(!o)throw new R.o({docsPath:"/docs/actions/wallet/sendTransaction"});let em=(0,I.T)(o);try{let o;if((0,eu.F)(i),null!==u&&(o=await (0,es.s)(n,l.L,"getChainId")({}),assertCurrentChain({currentChainId:o,chain:u})),"local"===em.type){let i=await (0,es.s)(n,ec.Z,"prepareTransactionRequest")({account:em,accessList:d,chain:u,data:x,gas:j,gasPrice:W,maxFeePerGas:J,maxPriorityFeePerGas:et,nonce:ed,to:ef,value:eh,...ep});o||(o=await (0,es.s)(n,l.L,"getChainId")({}));let I=u?.serializers?.transaction,R=await em.signTransaction({...i,chainId:o},{serializer:I});return await (0,es.s)(n,el.p,"sendRawTransaction")({serializedTransaction:R})}let I=n.chain?.formatters?.transactionRequest?.format,R=I||eo.tG,eg=R({...(0,ei.K)(ep,{format:I}),accessList:d,data:x,from:em.address,gas:j,gasPrice:W,maxFeePerGas:J,maxPriorityFeePerGas:et,nonce:ed,to:ef,value:eh});return await n.request({method:"eth_sendTransaction",params:[eg]})}catch(n){throw getTransactionError(n,{...i,account:em,chain:i.chain||void 0})}}function deployContract(n,{abi:i,args:o,bytecode:u,...l}){let d=(0,x.w)({abi:i,args:o,bytecode:u});return sendTransaction(n,{...l,data:d})}var ed=o(95569);async function getAddresses(n){if(n.account?.type==="local")return[n.account.address];let i=await n.request({method:"eth_accounts"});return i.map(n=>(0,ed.x)(n))}async function getPermissions(n){let i=await n.request({method:"wallet_getPermissions"});return i}async function requestAddresses(n){let i=await n.request({method:"eth_requestAccounts"});return i.map(n=>(0,ed.K)(n))}async function requestPermissions(n,i){return n.request({method:"wallet_requestPermissions",params:[i]})}async function signMessage(n,{account:i=n.account,message:o}){if(!i)throw new R.o({docsPath:"/docs/actions/wallet/signMessage"});let u=(0,I.T)(i);if("local"===u.type)return u.signMessage({message:o});let l="string"==typeof o?(0,d.$G)(o):o.raw instanceof Uint8Array?(0,d.NC)(o.raw):o.raw;return n.request({method:"personal_sign",params:[l,u.address]})}async function signTransaction(n,i){let{account:o=n.account,chain:u=n.chain,...x}=i;if(!o)throw new R.o({docsPath:"/docs/actions/wallet/signTransaction"});let j=(0,I.T)(o);(0,eu.F)({account:j,...i});let W=await (0,es.s)(n,l.L,"getChainId")({});null!==u&&assertCurrentChain({currentChainId:W,chain:u});let J=u?.formatters||n.chain?.formatters,et=J?.transactionRequest?.format||eo.tG;return"local"===j.type?j.signTransaction({...x,chainId:W},{serializer:n.chain?.serializers?.transaction}):await n.request({method:"eth_signTransaction",params:[{...et(x),chainId:(0,d.eC)(W),from:j.address}]})}var ef=o(40996),eh=o(37035),ep=o(38684);async function signTypedData(n,{account:i=n.account,domain:o,message:u,primaryType:l,types:d}){if(!i)throw new R.o({docsPath:"/docs/actions/wallet/signTypedData"});let x=(0,I.T)(i),j={EIP712Domain:(0,ep.cj)({domain:o}),...d};if((0,ep.iC)({domain:o,message:u,primaryType:l,types:j}),"local"===x.type)return x.signTypedData({domain:o,primaryType:l,types:j,message:u});let W=(0,eh.P)({domain:o??{},primaryType:l,types:j,message:u},(n,i)=>(0,ef.v)(i)?i.toLowerCase():i);return n.request({method:"eth_signTypedData_v4",params:[x.address,W]})}async function switchChain(n,{id:i}){await n.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,d.eC)(i)}]})}async function watchAsset(n,i){let o=await n.request({method:"wallet_watchAsset",params:i});return o}var em=o(96701);async function writeContract(n,{abi:i,address:o,args:u,dataSuffix:l,functionName:d,...x}){let I=(0,em.R)({abi:i,args:u,functionName:d}),R=await (0,es.s)(n,sendTransaction,"sendTransaction")({data:`${I}${l?l.replace("0x",""):""}`,to:o,...x});return R}function walletActions(n){return{addChain:i=>addChain(n,i),deployContract:i=>deployContract(n,i),getAddresses:()=>getAddresses(n),getChainId:()=>(0,l.L)(n),getPermissions:()=>getPermissions(n),prepareTransactionRequest:i=>(0,ec.Z)(n,i),requestAddresses:()=>requestAddresses(n),requestPermissions:i=>requestPermissions(n,i),sendRawTransaction:i=>(0,el.p)(n,i),sendTransaction:i=>sendTransaction(n,i),signMessage:i=>signMessage(n,i),signTransaction:i=>signTransaction(n,i),signTypedData:i=>signTypedData(n,i),switchChain:i=>switchChain(n,i),watchAsset:i=>watchAsset(n,i),writeContract:i=>writeContract(n,i)}}function createWalletClient(n){let{key:i="wallet",name:o="Wallet Client",transport:l}=n,d=(0,u.e)({...n,key:i,name:o,transport:n=>l({...n,retryCount:0}),type:"walletClient"});return d.extend(walletActions)}},33365:function(n,i,o){"use strict";o.d(i,{q:function(){return createTransport}});var u=o(17202);function createTransport({key:n,name:i,request:o,retryCount:l=3,retryDelay:d=150,timeout:x,type:I},R){return{config:{key:n,name:i,request:o,retryCount:l,retryDelay:d,timeout:x,type:I},request:(0,u.n)(o,{retryCount:l,retryDelay:d}),value:R}}},99353:function(n,i,o){"use strict";o.d(i,{P:function(){return custom}});var u=o(33365);function custom(n,i={}){let{key:o="custom",name:l="Custom Provider",retryDelay:d}=i;return({retryCount:x})=>(0,u.q)({key:o,name:l,request:n.request.bind(n),retryCount:i.retryCount??x,retryDelay:d,type:"custom"})}},90248:function(n,i,o){"use strict";o.d(i,{$o:function(){return j},F8:function(){return u},X$:function(){return R},du:function(){return x},k3:function(){return d},nZ:function(){return I}});let u=[{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"}],l=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"}],d=[...l,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],x=[...l,{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"}]}],I=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],R=[{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"}]}],j=[{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"}]},42705:function(n,i,o){"use strict";o.d(i,{$:function(){return u},Up:function(){return l},hZ:function(){return d}});let u={1:"An `assert` condition failed.",17:"Arithmic 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."},l={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},d={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}},96228:function(n,i,o){"use strict";o.d(i,{Bd:function(){return d},Zn:function(){return l},ez:function(){return u}});let u={gwei:9,wei:18},l={ether:-9,wei:9},d={ether:-18,gwei:-9}},67035:function(n,i,o){"use strict";o.d(i,{CI:function(){return InvalidAbiDecodingTypeError},FM:function(){return AbiEventSignatureEmptyTopicsError},Gy:function(){return DecodeLogTopicsMismatch},KY:function(){return BytesSizeMismatchError},M4:function(){return AbiEncodingBytesSizeMismatchError},MX:function(){return AbiFunctionOutputsNotFoundError},S4:function(){return AbiItemAmbiguityError},SM:function(){return DecodeLogDataMismatch},cO:function(){return AbiConstructorParamsNotFoundError},dh:function(){return InvalidAbiEncodingTypeError},fM:function(){return AbiConstructorNotFoundError},fs:function(){return AbiEncodingLengthMismatchError},gr:function(){return AbiEncodingArrayLengthMismatchError},hn:function(){return InvalidArrayError},lC:function(){return AbiEventSignatureNotFoundError},mv:function(){return AbiEventNotFoundError},wM:function(){return InvalidDefinitionTypeError},wb:function(){return AbiDecodingZeroDataError},xB:function(){return AbiDecodingDataSizeTooSmallError},xL:function(){return AbiFunctionNotFoundError},yP:function(){return AbiErrorSignatureNotFoundError}});var u=o(48398),l=o(47193),d=o(40882);let AbiConstructorNotFoundError=class AbiConstructorNotFoundError extends d.G{constructor({docsPath:n}){super("A constructor was not found on the ABI.\nMake sure you are using the correct ABI and that the constructor exists on it.",{docsPath:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorNotFoundError"})}};let AbiConstructorParamsNotFoundError=class AbiConstructorParamsNotFoundError extends d.G{constructor({docsPath:n}){super("Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.\nMake sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists.",{docsPath:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorParamsNotFoundError"})}};let AbiDecodingDataSizeTooSmallError=class AbiDecodingDataSizeTooSmallError extends d.G{constructor({data:n,params:i,size:o}){super(`Data size of ${o} bytes is too small for given parameters.`,{metaMessages:[`Params: (${(0,u.h)(i,{includeName:!0})})`,`Data: ${n} (${o} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=n,this.params=i,this.size=o}};let AbiDecodingZeroDataError=class AbiDecodingZeroDataError extends d.G{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingZeroDataError"})}};let AbiEncodingArrayLengthMismatchError=class AbiEncodingArrayLengthMismatchError extends d.G{constructor({expectedLength:n,givenLength:i,type:o}){super(`ABI encoding array length mismatch for type ${o}. -Expected length: ${n} -Given length: ${i}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingArrayLengthMismatchError"})}};let AbiEncodingBytesSizeMismatchError=class AbiEncodingBytesSizeMismatchError extends d.G{constructor({expectedSize:n,value:i}){super(`Size of bytes "${i}" (bytes${(0,l.d)(i)}) does not match expected size (bytes${n}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingBytesSizeMismatchError"})}};let AbiEncodingLengthMismatchError=class AbiEncodingLengthMismatchError extends d.G{constructor({expectedLength:n,givenLength:i}){super(`ABI encoding params/values length mismatch. -Expected length (params): ${n} -Given length (values): ${i}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingLengthMismatchError"})}};let AbiErrorSignatureNotFoundError=class AbiErrorSignatureNotFoundError extends d.G{constructor(n,{docsPath:i}){super(`Encoded error signature "${n}" not found on 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=${n}.`,{docsPath:i}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=n}};let AbiEventSignatureEmptyTopicsError=class AbiEventSignatureEmptyTopicsError extends d.G{constructor({docsPath:n}){super("Cannot extract event signature from empty topics.",{docsPath:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureEmptyTopicsError"})}};let AbiEventSignatureNotFoundError=class AbiEventSignatureNotFoundError extends d.G{constructor(n,{docsPath:i}){super(`Encoded event signature "${n}" not found on ABI. -Make sure you are using the correct ABI and that the event exists on it. -You can look up the signature here: https://openchain.xyz/signatures?query=${n}.`,{docsPath:i}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureNotFoundError"})}};let AbiEventNotFoundError=class AbiEventNotFoundError extends d.G{constructor(n,{docsPath:i}={}){super(`Event ${n?`"${n}" `:""}not found on ABI. -Make sure you are using the correct ABI and that the event exists on it.`,{docsPath:i}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventNotFoundError"})}};let AbiFunctionNotFoundError=class AbiFunctionNotFoundError extends d.G{constructor(n,{docsPath:i}={}){super(`Function ${n?`"${n}" `:""}not found on ABI. -Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:i}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionNotFoundError"})}};let AbiFunctionOutputsNotFoundError=class AbiFunctionOutputsNotFoundError extends d.G{constructor(n,{docsPath:i}){super(`Function "${n}" does not contain any \`outputs\` on ABI. -Cannot decode function result without knowing what the parameter types are. -Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:i}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionOutputsNotFoundError"})}};let AbiItemAmbiguityError=class AbiItemAmbiguityError extends d.G{constructor(n,i){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${n.type}\` in \`${(0,u.t)(n.abiItem)}\`, and`,`\`${i.type}\` in \`${(0,u.t)(i.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:"AbiItemAmbiguityError"})}};let BytesSizeMismatchError=class BytesSizeMismatchError extends d.G{constructor({expectedSize:n,givenSize:i}){super(`Expected bytes${n}, got bytes${i}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BytesSizeMismatchError"})}};let DecodeLogDataMismatch=class DecodeLogDataMismatch extends d.G{constructor({abiItem:n,data:i,params:o,size:l}){super(`Data size of ${l} bytes is too small for non-indexed event parameters.`,{metaMessages:[`Params: (${(0,u.h)(o,{includeName:!0})})`,`Data: ${i} (${l} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=n,this.data=i,this.params=o,this.size=l}};let DecodeLogTopicsMismatch=class DecodeLogTopicsMismatch extends d.G{constructor({abiItem:n,param:i}){super(`Expected a topic for indexed event parameter${i.name?` "${i.name}"`:""} on event "${(0,u.t)(n,{includeName:!0})}".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=n}};let InvalidAbiEncodingTypeError=class InvalidAbiEncodingTypeError extends d.G{constructor(n,{docsPath:i}){super(`Type "${n}" is not a valid encoding type. -Please provide a valid ABI type.`,{docsPath:i}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiEncodingType"})}};let InvalidAbiDecodingTypeError=class InvalidAbiDecodingTypeError extends d.G{constructor(n,{docsPath:i}){super(`Type "${n}" is not a valid decoding type. -Please provide a valid ABI type.`,{docsPath:i}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiDecodingType"})}};let InvalidArrayError=class InvalidArrayError extends d.G{constructor(n){super(`Value "${n}" is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidArrayError"})}};let InvalidDefinitionTypeError=class InvalidDefinitionTypeError extends d.G{constructor(n){super(`"${n}" is not a valid definition type. -Valid types: "function", "event", "error"`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidDefinitionTypeError"})}}},94369:function(n,i,o){"use strict";o.d(i,{o:function(){return AccountNotFoundError}});var u=o(40882);let AccountNotFoundError=class AccountNotFoundError extends u.G{constructor({docsPath:n}={}){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 WalletClient.",{docsPath:n,docsSlug:"account"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AccountNotFoundError"})}}},6921:function(n,i,o){"use strict";o.d(i,{b:function(){return InvalidAddressError}});var u=o(40882);let InvalidAddressError=class InvalidAddressError extends u.G{constructor({address:n}){super(`Address "${n}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAddressError"})}}},40882:function(n,i,o){"use strict";o.d(i,{G:function(){return BaseError}});var u=o(87072);let BaseError=class BaseError extends Error{constructor(n,i={}){super(),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:"ViemError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:(0,u.bo)()});let o=i.cause instanceof BaseError?i.cause.details:i.cause?.message?i.cause.message:i.details,l=i.cause instanceof BaseError&&i.cause.docsPath||i.docsPath;this.message=[n||"An error occurred.","",...i.metaMessages?[...i.metaMessages,""]:[],...l?[`Docs: https://viem.sh${l}.html${i.docsSlug?`#${i.docsSlug}`:""}`]:[],...o?[`Details: ${o}`]:[],`Version: ${this.version}`].join("\n"),i.cause&&(this.cause=i.cause),this.details=o,this.docsPath=l,this.metaMessages=i.metaMessages,this.shortMessage=n}walk(n){return walk(this,n)}};function walk(n,i){return i?.(n)?n:n&&"object"==typeof n&&"cause"in n?walk(n.cause,i):i?null:n}},70160:function(n,i,o){"use strict";o.d(i,{f:function(){return BlockNotFoundError}});var u=o(40882);let BlockNotFoundError=class BlockNotFoundError extends u.G{constructor({blockHash:n,blockNumber:i}){let o="Block";n&&(o=`Block at hash "${n}"`),i&&(o=`Block at number "${i}"`),super(`${o} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BlockNotFoundError"})}}},9305:function(n,i,o){"use strict";o.d(i,{Bk:function(){return ChainNotFoundError},Yl:function(){return ChainMismatchError},hJ:function(){return InvalidChainIdError},mm:function(){return ChainDoesNotSupportContract},pZ:function(){return ClientChainNotConfiguredError}});var u=o(40882);let ChainDoesNotSupportContract=class ChainDoesNotSupportContract extends u.G{constructor({blockNumber:n,chain:i,contract:o}){super(`Chain "${i.name}" does not support contract "${o.name}".`,{metaMessages:["This could be due to any of the following:",...n&&o.blockCreated&&o.blockCreated>n?[`- The contract "${o.name}" was not deployed until block ${o.blockCreated} (current block ${n}).`]:[`- The chain does not have the contract "${o.name}" configured.`]]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDoesNotSupportContract"})}};let ChainMismatchError=class ChainMismatchError extends u.G{constructor({chain:n,currentChainId:i}){super(`The current chain of the wallet (id: ${i}) does not match the target chain for the transaction (id: ${n.id} – ${n.name}).`,{metaMessages:[`Current Chain ID: ${i}`,`Expected Chain ID: ${n.id} – ${n.name}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainMismatchError"})}};let ChainNotFoundError=class ChainNotFoundError extends u.G{constructor(){super("No chain was provided to the request.\nPlease provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotFoundError"})}};let ClientChainNotConfiguredError=class ClientChainNotConfiguredError extends u.G{constructor(){super("No chain was provided to the Client."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ClientChainNotConfiguredError"})}};let InvalidChainIdError=class InvalidChainIdError extends u.G{constructor({chainId:n}){super(`Chain ID "${n}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidChainIdError"})}}},51596:function(n,i,o){"use strict";o.d(i,{cg:function(){return CallExecutionError},uq:function(){return ContractFunctionExecutionError},Lu:function(){return ContractFunctionRevertedError},Dk:function(){return ContractFunctionZeroDataError},VQ:function(){return RawContractError}});var u=o(70404),l=o(42705),d=o(97483),x=o(48398),I=o(37035);function formatAbiItemWithArgs({abiItem:n,args:i,includeFunctionName:o=!0,includeName:u=!1}){if("name"in n&&"inputs"in n&&n.inputs)return`${o?n.name:""}(${n.inputs.map((n,o)=>`${u&&n.name?`${n.name}: `:""}${"object"==typeof i[o]?(0,I.P)(i[o]):i[o]}`).join(", ")})`}var R=o(66852),j=o(49338),W=o(84541),J=o(67035),et=o(40882),ei=o(82415),eo=o(87072);let CallExecutionError=class CallExecutionError extends et.G{constructor(n,{account:i,docsPath:o,chain:l,data:d,gas:x,gasPrice:I,maxFeePerGas:R,maxPriorityFeePerGas:J,nonce:et,to:eo,value:es}){let eu=i?(0,u.T)(i):void 0,ec=(0,ei.xr)({from:eu?.address,to:eo,value:void 0!==es&&`${(0,j.d)(es)} ${l?.nativeCurrency?.symbol||"ETH"}`,data:d,gas:x,gasPrice:void 0!==I&&`${(0,W.o)(I)} gwei`,maxFeePerGas:void 0!==R&&`${(0,W.o)(R)} gwei`,maxPriorityFeePerGas:void 0!==J&&`${(0,W.o)(J)} gwei`,nonce:et});super(n.shortMessage,{cause:n,docsPath:o,metaMessages:[...n.metaMessages?[...n.metaMessages," "]:[],"Raw Call Arguments:",ec].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CallExecutionError"}),this.cause=n}};let ContractFunctionExecutionError=class ContractFunctionExecutionError extends et.G{constructor(n,{abi:i,args:o,contractAddress:u,docsPath:l,functionName:d,sender:I}){let j=(0,R.mE)({abi:i,args:o,name:d}),W=j?formatAbiItemWithArgs({abiItem:j,args:o,includeFunctionName:!1,includeName:!1}):void 0,J=j?(0,x.t)(j,{includeName:!0}):void 0,et=(0,ei.xr)({address:u&&(0,eo.CR)(u),function:J,args:W&&"()"!==W&&`${[...Array(d?.length??0).keys()].map(()=>" ").join("")}${W}`,sender:I});super(n.shortMessage||`An unknown error occurred while executing the contract function "${d}".`,{cause:n,docsPath:l,metaMessages:[...n.metaMessages?[...n.metaMessages," "]:[],"Contract Call:",et].filter(Boolean)}),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}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionExecutionError"}),this.abi=i,this.args=o,this.cause=n,this.contractAddress=u,this.functionName=d,this.sender=I}};let ContractFunctionRevertedError=class ContractFunctionRevertedError extends et.G{constructor({abi:n,data:i,functionName:o,message:u}){let I,R,j,W,et;if(i&&"0x"!==i)try{et=(0,d.p)({abi:n,data:i});let{abiItem:o,errorName:u,args:I}=et;if("Error"===u)j=I[0];else if("Panic"===u){let[n]=I;j=l.$[n]}else{let n=o?(0,x.t)(o,{includeName:!0}):void 0,i=o&&I?formatAbiItemWithArgs({abiItem:o,args:I,includeFunctionName:!1,includeName:!1}):void 0;R=[n?`Error: ${n}`:"",i&&"()"!==i?` ${[...Array(u?.length??0).keys()].map(()=>" ").join("")}${i}`:""]}}catch(n){I=n}else u&&(j=u);I instanceof J.yP&&(W=I.signature,R=[`Unable to decode signature "${W}" 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=${W}.`]),super(j&&"execution reverted"!==j||W?[`The contract function "${o}" reverted with the following ${W?"signature":"reason"}:`,j||W].join("\n"):`The contract function "${o}" reverted.`,{cause:I,metaMessages:R}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{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=et,this.reason=j,this.signature=W}};let ContractFunctionZeroDataError=class ContractFunctionZeroDataError extends et.G{constructor({functionName:n}){super(`The contract function "${n}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${n}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionZeroDataError"})}};let RawContractError=class RawContractError extends et.G{constructor({data:n,message:i}){super(i||""),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RawContractError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=n}}},26567:function(n,i,o){"use strict";o.d(i,{$:function(){return SizeExceedsPaddingSizeError},m:function(){return SliceOffsetOutOfBoundsError}});var u=o(40882);let SliceOffsetOutOfBoundsError=class SliceOffsetOutOfBoundsError extends u.G{constructor({offset:n,position:i,size:o}){super(`Slice ${"start"===i?"starting":"ending"} at offset "${n}" is out-of-bounds (size: ${o}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SliceOffsetOutOfBoundsError"})}};let SizeExceedsPaddingSizeError=class SizeExceedsPaddingSizeError extends u.G{constructor({size:n,targetSize:i,type:o}){super(`${o.charAt(0).toUpperCase()}${o.slice(1).toLowerCase()} size (${n}) exceeds padding size (${i}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeExceedsPaddingSizeError"})}}},77179:function(n,i,o){"use strict";o.d(i,{Cd:function(){return InvalidHexBooleanError},J5:function(){return IntegerOutOfRangeError},M6:function(){return SizeOverflowError},P9:function(){return InvalidHexValueError}});var u=o(40882);let IntegerOutOfRangeError=class IntegerOutOfRangeError extends u.G{constructor({max:n,min:i,signed:o,size:u,value:l}){super(`Number "${l}" is not in safe ${u?`${8*u}-bit ${o?"signed":"unsigned"} `:""}integer range ${n?`(${i} to ${n})`:`(above ${i})`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntegerOutOfRangeError"})}};let InvalidHexBooleanError=class InvalidHexBooleanError extends u.G{constructor(n){super(`Hex value "${n}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidHexBooleanError"})}};let InvalidHexValueError=class InvalidHexValueError extends u.G{constructor(n){super(`Hex value "${n}" is an odd length (${n.length}). It must be an even length.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidHexValueError"})}};let SizeOverflowError=class SizeOverflowError extends u.G{constructor({givenSize:n,maxSize:i}){super(`Size cannot exceed ${i} bytes. Given size: ${n} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeOverflowError"})}}},99261:function(n,i,o){"use strict";o.d(i,{Fz:function(){return BaseFeeScalarError},e5:function(){return Eip1559FeesNotSupportedError},ld:function(){return MaxFeePerGasTooLowError}});var u=o(84541),l=o(40882);let BaseFeeScalarError=class BaseFeeScalarError extends l.G{constructor(){super("`baseFeeMultiplier` must be greater than 1."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseFeeScalarError"})}};let Eip1559FeesNotSupportedError=class Eip1559FeesNotSupportedError extends l.G{constructor(){super("Chain does not support EIP-1559 fees."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Eip1559FeesNotSupportedError"})}};let MaxFeePerGasTooLowError=class MaxFeePerGasTooLowError extends l.G{constructor({maxPriorityFeePerGas:n}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${(0,u.o)(n)} gwei).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MaxFeePerGasTooLowError"})}}},27368:function(n,i,o){"use strict";o.d(i,{C_:function(){return InsufficientFundsError},G$:function(){return FeeCapTooLowError},Hh:function(){return FeeCapTooHighError},M_:function(){return ExecutionRevertedError},WF:function(){return IntrinsicGasTooHighError},ZI:function(){return NonceTooHighError},cj:function(){return UnknownNodeError},cs:function(){return TipAboveFeeCapError},dR:function(){return IntrinsicGasTooLowError},pZ:function(){return TransactionTypeNotSupportedError},se:function(){return NonceMaxValueError},vU:function(){return NonceTooLowError}});var u=o(84541),l=o(40882);let ExecutionRevertedError=class ExecutionRevertedError extends l.G{constructor({cause:n,message:i}={}){let o=i?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${o?`with reason: ${o}`:"for an unknown reason"}.`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ExecutionRevertedError"})}};Object.defineProperty(ExecutionRevertedError,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(ExecutionRevertedError,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});let FeeCapTooHighError=class FeeCapTooHighError extends l.G{constructor({cause:n,maxFeePerGas:i}={}){super(`The fee cap (\`maxFeePerGas\`${i?` = ${(0,u.o)(i)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooHigh"})}};Object.defineProperty(FeeCapTooHighError,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});let FeeCapTooLowError=class FeeCapTooLowError extends l.G{constructor({cause:n,maxFeePerGas:i}={}){super(`The fee cap (\`maxFeePerGas\`${i?` = ${(0,u.o)(i)}`:""} gwei) cannot be lower than the block base fee.`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooLow"})}};Object.defineProperty(FeeCapTooLowError,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});let NonceTooHighError=class NonceTooHighError extends l.G{constructor({cause:n,nonce:i}={}){super(`Nonce provided for the transaction ${i?`(${i}) `:""}is higher than the next one expected.`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooHighError"})}};Object.defineProperty(NonceTooHighError,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});let NonceTooLowError=class NonceTooLowError extends l.G{constructor({cause:n,nonce:i}={}){super(`Nonce provided for the transaction ${i?`(${i}) `:""}is lower than the current nonce of the account. -Try increasing the nonce or find the latest nonce with \`getTransactionCount\`.`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooLowError"})}};Object.defineProperty(NonceTooLowError,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});let NonceMaxValueError=class NonceMaxValueError extends l.G{constructor({cause:n,nonce:i}={}){super(`Nonce provided for the transaction ${i?`(${i}) `:""}exceeds the maximum allowed nonce.`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceMaxValueError"})}};Object.defineProperty(NonceMaxValueError,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});let InsufficientFundsError=class InsufficientFundsError extends l.G{constructor({cause:n}={}){super("The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.",{cause:n,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InsufficientFundsError"})}};Object.defineProperty(InsufficientFundsError,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds/});let IntrinsicGasTooHighError=class IntrinsicGasTooHighError extends l.G{constructor({cause:n,gas:i}={}){super(`The amount of gas ${i?`(${i}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooHighError"})}};Object.defineProperty(IntrinsicGasTooHighError,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});let IntrinsicGasTooLowError=class IntrinsicGasTooLowError extends l.G{constructor({cause:n,gas:i}={}){super(`The amount of gas ${i?`(${i}) `:""}provided for the transaction is too low.`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooLowError"})}};Object.defineProperty(IntrinsicGasTooLowError,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});let TransactionTypeNotSupportedError=class TransactionTypeNotSupportedError extends l.G{constructor({cause:n}){super("The transaction type is not supported for this chain.",{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionTypeNotSupportedError"})}};Object.defineProperty(TransactionTypeNotSupportedError,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});let TipAboveFeeCapError=class TipAboveFeeCapError extends l.G{constructor({cause:n,maxPriorityFeePerGas:i,maxFeePerGas:o}={}){super(`The provided tip (\`maxPriorityFeePerGas\`${i?` = ${(0,u.o)(i)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${o?` = ${(0,u.o)(o)} gwei`:""}).`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TipAboveFeeCapError"})}};Object.defineProperty(TipAboveFeeCapError,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});let UnknownNodeError=class UnknownNodeError extends l.G{constructor({cause:n}){super(`An error occurred while executing: ${n?.shortMessage}`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownNodeError"})}}},26476:function(n,i,o){"use strict";o.d(i,{Gg:function(){return HttpRequestError},W5:function(){return TimeoutError},bs:function(){return RpcRequestError},c9:function(){return WebSocketRequestError}});var u=o(37035),l=o(40882),d=o(87072);let HttpRequestError=class HttpRequestError extends l.G{constructor({body:n,details:i,headers:o,status:l,url:x}){super("HTTP request failed.",{details:i,metaMessages:[l&&`Status: ${l}`,`URL: ${(0,d.Gr)(x)}`,n&&`Request body: ${(0,u.P)(n)}`].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"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=n,this.headers=o,this.status=l,this.url=x}};let WebSocketRequestError=class WebSocketRequestError extends l.G{constructor({body:n,details:i,url:o}){super("WebSocket request failed.",{details:i,metaMessages:[`URL: ${(0,d.Gr)(o)}`,`Request body: ${(0,u.P)(n)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WebSocketRequestError"})}};let RpcRequestError=class RpcRequestError extends l.G{constructor({body:n,error:i,url:o}){super("RPC Request failed.",{cause:i,details:i.message,metaMessages:[`URL: ${(0,d.Gr)(o)}`,`Request body: ${(0,u.P)(n)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=i.code}};let TimeoutError=class TimeoutError extends l.G{constructor({body:n,url:i}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,d.Gr)(i)}`,`Request body: ${(0,u.P)(n)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TimeoutError"})}}},14245:function(n,i,o){"use strict";o.d(i,{B:function(){return InvalidRequestRpcError},GD:function(){return JsonRpcVersionUnsupportedError},I0:function(){return ChainDisconnectedError},KB:function(){return TransactionRejectedRpcError},LX:function(){return MethodNotFoundRpcError},Og:function(){return ResourceNotFoundRpcError},PE:function(){return UnauthorizedProviderError},Pv:function(){return LimitExceededRpcError},Ts:function(){return UnsupportedProviderMethodError},XS:function(){return InternalRpcError},ab:function(){return UserRejectedRequestError},gS:function(){return MethodNotSupportedRpcError},ir:function(){return UnknownRpcError},nY:function(){return InvalidParamsRpcError},pT:function(){return ResourceUnavailableRpcError},s7:function(){return ParseRpcError},u5:function(){return ProviderDisconnectedError},x3:function(){return SwitchChainError},yR:function(){return InvalidInputRpcError}});var u=o(40882),l=o(26476);let RpcError=class RpcError extends u.G{constructor(n,{code:i,docsPath:o,metaMessages:u,shortMessage:d}){super(d,{cause:n,docsPath:o,metaMessages:u||n?.metaMessages}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=n.name,this.code=n instanceof l.bs?n.code:i??-1}};let ProviderRpcError=class ProviderRpcError extends RpcError{constructor(n,i){super(n,i),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderRpcError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=i.data}};let ParseRpcError=class ParseRpcError extends RpcError{constructor(n){super(n,{code:ParseRpcError.code,shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ParseRpcError"})}};Object.defineProperty(ParseRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});let InvalidRequestRpcError=class InvalidRequestRpcError extends RpcError{constructor(n){super(n,{code:InvalidRequestRpcError.code,shortMessage:"JSON is not a valid request object."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidRequestRpcError"})}};Object.defineProperty(InvalidRequestRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});let MethodNotFoundRpcError=class MethodNotFoundRpcError extends RpcError{constructor(n){super(n,{code:MethodNotFoundRpcError.code,shortMessage:"The method does not exist / is not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotFoundRpcError"})}};Object.defineProperty(MethodNotFoundRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});let InvalidParamsRpcError=class InvalidParamsRpcError extends RpcError{constructor(n){super(n,{code:InvalidParamsRpcError.code,shortMessage:"Invalid parameters were provided to the RPC method.\nDouble check you have provided the correct parameters."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParamsRpcError"})}};Object.defineProperty(InvalidParamsRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});let InternalRpcError=class InternalRpcError extends RpcError{constructor(n){super(n,{code:InternalRpcError.code,shortMessage:"An internal error was received."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InternalRpcError"})}};Object.defineProperty(InternalRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});let InvalidInputRpcError=class InvalidInputRpcError extends RpcError{constructor(n){super(n,{code:InvalidInputRpcError.code,shortMessage:"Missing or invalid parameters.\nDouble check you have provided the correct parameters."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidInputRpcError"})}};Object.defineProperty(InvalidInputRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});let ResourceNotFoundRpcError=class ResourceNotFoundRpcError extends RpcError{constructor(n){super(n,{code:ResourceNotFoundRpcError.code,shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}};Object.defineProperty(ResourceNotFoundRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});let ResourceUnavailableRpcError=class ResourceUnavailableRpcError extends RpcError{constructor(n){super(n,{code:ResourceUnavailableRpcError.code,shortMessage:"Requested resource not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceUnavailableRpcError"})}};Object.defineProperty(ResourceUnavailableRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});let TransactionRejectedRpcError=class TransactionRejectedRpcError extends RpcError{constructor(n){super(n,{code:TransactionRejectedRpcError.code,shortMessage:"Transaction creation failed."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionRejectedRpcError"})}};Object.defineProperty(TransactionRejectedRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});let MethodNotSupportedRpcError=class MethodNotSupportedRpcError extends RpcError{constructor(n){super(n,{code:MethodNotSupportedRpcError.code,shortMessage:"Method is not implemented."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotSupportedRpcError"})}};Object.defineProperty(MethodNotSupportedRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});let LimitExceededRpcError=class LimitExceededRpcError extends RpcError{constructor(n){super(n,{code:LimitExceededRpcError.code,shortMessage:"Request exceeds defined limit."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"LimitExceededRpcError"})}};Object.defineProperty(LimitExceededRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});let JsonRpcVersionUnsupportedError=class JsonRpcVersionUnsupportedError extends RpcError{constructor(n){super(n,{code:JsonRpcVersionUnsupportedError.code,shortMessage:"Version of JSON-RPC protocol is not supported."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"JsonRpcVersionUnsupportedError"})}};Object.defineProperty(JsonRpcVersionUnsupportedError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});let UserRejectedRequestError=class UserRejectedRequestError extends ProviderRpcError{constructor(n){super(n,{code:UserRejectedRequestError.code,shortMessage:"User rejected the request."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UserRejectedRequestError"})}};Object.defineProperty(UserRejectedRequestError,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});let UnauthorizedProviderError=class UnauthorizedProviderError extends ProviderRpcError{constructor(n){super(n,{code:UnauthorizedProviderError.code,shortMessage:"The requested method and/or account has not been authorized by the user."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnauthorizedProviderError"})}};Object.defineProperty(UnauthorizedProviderError,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});let UnsupportedProviderMethodError=class UnsupportedProviderMethodError extends ProviderRpcError{constructor(n){super(n,{code:UnsupportedProviderMethodError.code,shortMessage:"The Provider does not support the requested method."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedProviderMethodError"})}};Object.defineProperty(UnsupportedProviderMethodError,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});let ProviderDisconnectedError=class ProviderDisconnectedError extends ProviderRpcError{constructor(n){super(n,{code:ProviderDisconnectedError.code,shortMessage:"The Provider is disconnected from all chains."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderDisconnectedError"})}};Object.defineProperty(ProviderDisconnectedError,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});let ChainDisconnectedError=class ChainDisconnectedError extends ProviderRpcError{constructor(n){super(n,{code:ChainDisconnectedError.code,shortMessage:"The Provider is not connected to the requested chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDisconnectedError"})}};Object.defineProperty(ChainDisconnectedError,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});let SwitchChainError=class SwitchChainError extends ProviderRpcError{constructor(n){super(n,{code:SwitchChainError.code,shortMessage:"An error occurred when attempting to switch chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainError"})}};Object.defineProperty(SwitchChainError,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});let UnknownRpcError=class UnknownRpcError extends RpcError{constructor(n){super(n,{shortMessage:"An unknown RPC error occurred."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownRpcError"})}}},82415:function(n,i,o){"use strict";o.d(i,{Bh:function(){return TransactionNotFoundError},DU:function(){return InvalidSerializedTransactionTypeError},XZ:function(){return InvalidSerializedTransactionError},Yb:function(){return TransactionReceiptNotFoundError},j3:function(){return InvalidSerializableTransactionError},mc:function(){return WaitForTransactionReceiptTimeoutError},mk:function(){return TransactionExecutionError},vl:function(){return InvalidLegacyVError},xY:function(){return FeeConflictError},xr:function(){return prettyPrint}});var u=o(49338),l=o(84541),d=o(40882);function prettyPrint(n){let i=Object.entries(n).map(([n,i])=>void 0===i||!1===i?null:[n,i]).filter(Boolean),o=i.reduce((n,[i])=>Math.max(n,i.length),0);return i.map(([n,i])=>` ${`${n}:`.padEnd(o+1)} ${i}`).join("\n")}let FeeConflictError=class FeeConflictError extends d.G{constructor(){super("Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.\nUse `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeConflictError"})}};let InvalidLegacyVError=class InvalidLegacyVError extends d.G{constructor({v:n}){super(`Invalid \`v\` value "${n}". Expected 27 or 28.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidLegacyVError"})}};let InvalidSerializableTransactionError=class InvalidSerializableTransactionError extends d.G{constructor({transaction:n}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",prettyPrint(n),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- a Legacy Transaction with `gasPrice`"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializableTransactionError"})}};let InvalidSerializedTransactionTypeError=class InvalidSerializedTransactionTypeError extends d.G{constructor({serializedType:n}){super(`Serialized transaction type "${n}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializedTransactionType"}),Object.defineProperty(this,"serializedType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedType=n}};let InvalidSerializedTransactionError=class InvalidSerializedTransactionError extends d.G{constructor({attributes:n,serializedTransaction:i,type:o}){let u=Object.entries(n).map(([n,i])=>void 0===i?n:void 0).filter(Boolean);super(`Invalid serialized transaction of type "${o}" was provided.`,{metaMessages:[`Serialized Transaction: "${i}"`,u.length>0?`Missing Attributes: ${u.join(", ")}`:""].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializedTransactionError"}),Object.defineProperty(this,"serializedTransaction",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedTransaction=i,this.type=o}};let TransactionExecutionError=class TransactionExecutionError extends d.G{constructor(n,{account:i,docsPath:o,chain:d,data:x,gas:I,gasPrice:R,maxFeePerGas:j,maxPriorityFeePerGas:W,nonce:J,to:et,value:ei}){let eo=prettyPrint({chain:d&&`${d?.name} (id: ${d?.id})`,from:i?.address,to:et,value:void 0!==ei&&`${(0,u.d)(ei)} ${d?.nativeCurrency?.symbol||"ETH"}`,data:x,gas:I,gasPrice:void 0!==R&&`${(0,l.o)(R)} gwei`,maxFeePerGas:void 0!==j&&`${(0,l.o)(j)} gwei`,maxPriorityFeePerGas:void 0!==W&&`${(0,l.o)(W)} gwei`,nonce:J});super(n.shortMessage,{cause:n,docsPath:o,metaMessages:[...n.metaMessages?[...n.metaMessages," "]:[],"Request Arguments:",eo].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionExecutionError"}),this.cause=n}};let TransactionNotFoundError=class TransactionNotFoundError extends d.G{constructor({blockHash:n,blockNumber:i,blockTag:o,hash:u,index:l}){let d="Transaction";o&&void 0!==l&&(d=`Transaction at block time "${o}" at index "${l}"`),n&&void 0!==l&&(d=`Transaction at block hash "${n}" at index "${l}"`),i&&void 0!==l&&(d=`Transaction at block number "${i}" at index "${l}"`),u&&(d=`Transaction with hash "${u}"`),super(`${d} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionNotFoundError"})}};let TransactionReceiptNotFoundError=class TransactionReceiptNotFoundError extends d.G{constructor({hash:n}){super(`Transaction receipt with hash "${n}" could not be found. The Transaction may not be processed on a block yet.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionReceiptNotFoundError"})}};let WaitForTransactionReceiptTimeoutError=class WaitForTransactionReceiptTimeoutError extends d.G{constructor({hash:n}){super(`Timed out while waiting for transaction with hash "${n}" to be confirmed.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WaitForTransactionReceiptTimeoutError"})}}},87072:function(n,i,o){"use strict";o.d(i,{CR:function(){return getContractAddress},Gr:function(){return getUrl},bo:function(){return getVersion}});let getContractAddress=n=>n,getUrl=n=>n,getVersion=()=>"viem@1.20.0"},56834:function(n,i,o){"use strict";o.d(i,{r:function(){return decodeAbiParameters}});var u=o(67035),l=o(95569),d=o(47193),x=o(37169),I=o(95019),R=o(81725),j=o(9195);function decodeAbiParameters(n,i){if("0x"===i&&n.length>0)throw new u.wb;if((0,d.d)(i)&&32>(0,d.d)(i))throw new u.xB({data:i,params:n,size:(0,d.d)(i)});return decodeParams({data:i,params:n})}function decodeParams({data:n,params:i}){let o=[],l=0;for(let x=0;x=(0,d.d)(n))throw new u.xB({data:n,params:i,size:(0,d.d)(n)});let I=i[x],{consumed:R,value:j}=decodeParam({data:n,param:I,position:l});o.push(j),l+=R}return o}function decodeParam({data:n,param:i,position:o}){let l=(0,j.S)(i.type);if(l){let[u,d]=l;return decodeArray(n,{length:u,param:{...i,type:d},position:o})}if("tuple"===i.type)return decodeTuple(n,{param:i,position:o});if("string"===i.type)return decodeString(n,{position:o});if(i.type.startsWith("bytes"))return decodeBytes(n,{param:i,position:o});let d=(0,x.tP)(n,o,o+32,{strict:!0});if(i.type.startsWith("uint")||i.type.startsWith("int"))return decodeNumber(d,{param:i});if("address"===i.type)return decodeAddress(d);if("bool"===i.type)return decodeBool(d);throw new u.CI(i.type,{docsPath:"/docs/contract/decodeAbiParameters"})}function decodeAddress(n){return{consumed:32,value:(0,l.x)((0,x.tP)(n,-20))}}function decodeArray(n,{param:i,length:o,position:u}){if(!o){let o=(0,R.ly)((0,x.tP)(n,u,u+32,{strict:!0})),l=(0,R.ly)((0,x.tP)(n,o,o+32,{strict:!0})),d=0,I=[];for(let u=0;u48?(0,R.y_)(n,{signed:o}):(0,R.ly)(n,{signed:o})}}function decodeString(n,{position:i}){let o=(0,R.ly)((0,x.tP)(n,i,i+32,{strict:!0})),u=(0,R.ly)((0,x.tP)(n,o,o+32,{strict:!0}));if(0===u)return{consumed:32,value:""};let l=(0,R.rR)((0,I.f)((0,x.tP)(n,o+32,o+32+u,{strict:!0})));return{consumed:32,value:l}}function decodeTuple(n,{param:i,position:o}){let u=0===i.components.length||i.components.some(({name:n})=>!n),l=u?[]:{},d=0;if(hasDynamicChild(i)){let I=(0,R.ly)((0,x.tP)(n,o,o+32,{strict:!0}));for(let o=0;o"error"===n.type&&o===(0,x.o)((0,R.t)(n)));if(!W)throw new l.yP(o,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:W,args:"inputs"in W&&W.inputs&&W.inputs.length>0?(0,I.r)(W.inputs,(0,d.tP)(i,4)):void 0,errorName:W.name}}},92200:function(n,i,o){"use strict";o.d(i,{k:function(){return decodeFunctionResult}});var u=o(67035),l=o(56834),d=o(66852);let x="/docs/contract/decodeFunctionResult";function decodeFunctionResult({abi:n,args:i,functionName:o,data:I}){let R=n[0];if(o&&!(R=(0,d.mE)({abi:n,args:i,name:o})))throw new u.xL(o,{docsPath:x});if("function"!==R.type)throw new u.xL(void 0,{docsPath:x});if(!R.outputs)throw new u.MX(R.name,{docsPath:x});let j=(0,l.r)(R.outputs,I);return j&&j.length>1?j:j&&1===j.length?j[0]:void 0}},9195:function(n,i,o){"use strict";o.d(i,{E:function(){return encodeAbiParameters},S:function(){return getArrayComponents}});var u=o(67035),l=o(6921),d=o(53769),x=o(63864),I=o(76517),R=o(47193),j=o(37169),W=o(21502);function encodeAbiParameters(n,i){if(n.length!==i.length)throw new u.fs({expectedLength:n.length,givenLength:i.length});let o=prepareParams({params:n,values:i}),l=encodeParams(o);return 0===l.length?"0x":l}function prepareParams({params:n,values:i}){let o=[];for(let u=0;u0?(0,x.zo)([i,n]):i}}if(d)return{dynamic:!0,encoded:n}}return{dynamic:!1,encoded:(0,x.zo)(I.map(({encoded:n})=>n))}}function encodeBytes(n,{param:i}){let[,o]=i.type.split("bytes"),l=(0,R.d)(n);if(!o){let i=n;return l%32!=0&&(i=(0,I.gc)(i,{dir:"right",size:32*Math.ceil((n.length-2)/2/32)})),{dynamic:!0,encoded:(0,x.zo)([(0,I.gc)((0,W.eC)(l,{size:32})),i])}}if(l!==parseInt(o))throw new u.M4({expectedSize:parseInt(o),value:n});return{dynamic:!1,encoded:(0,I.gc)(n,{dir:"right"})}}function encodeBool(n){return{dynamic:!1,encoded:(0,I.gc)((0,W.C4)(n))}}function encodeNumber(n,{signed:i}){return{dynamic:!1,encoded:(0,W.eC)(n,{size:32,signed:i})}}function encodeString(n){let i=(0,W.$G)(n),o=Math.ceil((0,R.d)(i)/32),u=[];for(let n=0;nn))}}function getArrayComponents(n){let i=n.match(/^(.*)\[(\d+)?\]$/);return i?[i[2]?Number(i[2]):null,i[1]]:void 0}},84928:function(n,i,o){"use strict";o.d(i,{w:function(){return encodeDeployData}});var u=o(67035),l=o(63864),d=o(9195);let x="/docs/contract/encodeDeployData";function encodeDeployData({abi:n,args:i,bytecode:o}){if(!i||0===i.length)return o;let I=n.find(n=>"type"in n&&"constructor"===n.type);if(!I)throw new u.fM({docsPath:x});if(!("inputs"in I)||!I.inputs||0===I.inputs.length)throw new u.cO({docsPath:x});let R=(0,d.E)(I.inputs,i);return(0,l.SM)([o,R])}},96701:function(n,i,o){"use strict";o.d(i,{R:function(){return encodeFunctionData}});var u=o(67035),l=o(63864),d=o(68510),x=o(9195),I=o(48398),R=o(66852);function encodeFunctionData({abi:n,args:i,functionName:o}){let j=n[0];if(o&&!(j=(0,R.mE)({abi:n,args:i,name:o})))throw new u.xL(o,{docsPath:"/docs/contract/encodeFunctionData"});if("function"!==j.type)throw new u.xL(void 0,{docsPath:"/docs/contract/encodeFunctionData"});let W=(0,I.t)(j),J=(0,d.o)(W),et="inputs"in j&&j.inputs?(0,x.E)(j.inputs,i??[]):void 0;return(0,l.SM)([J,et??"0x"])}},48398:function(n,i,o){"use strict";o.d(i,{h:function(){return formatAbiParams},t:function(){return formatAbiItem}});var u=o(67035);function formatAbiItem(n,{includeName:i=!1}={}){if("function"!==n.type&&"event"!==n.type&&"error"!==n.type)throw new u.wM(n.type);return`${n.name}(${formatAbiParams(n.inputs,{includeName:i})})`}function formatAbiParams(n,{includeName:i=!1}={}){return n?n.map(n=>formatAbiParam(n,{includeName:i})).join(i?", ":","):""}function formatAbiParam(n,{includeName:i}){return n.type.startsWith("tuple")?`(${formatAbiParams(n.components,{includeName:i})})${n.type.slice(5)}`:n.type+(i&&n.name?` ${n.name}`:"")}},66852:function(n,i,o){"use strict";o.d(i,{mE:function(){return getAbiItem}});var u=o(67035),l=o(40996),d=o(48171),x=o(68510),I=o(53769);function getAbiItem({abi:n,args:i=[],name:o}){let I;let R=(0,l.v)(o,{strict:!1}),j=n.filter(n=>R?"function"===n.type?(0,x.o)(n)===o:"event"===n.type&&(0,d.e)(n)===o:"name"in n&&n.name===o);if(0!==j.length){if(1===j.length)return j[0];for(let n of j){if(!("inputs"in n))continue;if(!i||0===i.length){if(!n.inputs||0===n.inputs.length)return n;continue}if(!n.inputs||0===n.inputs.length||n.inputs.length!==i.length)continue;let o=i.every((i,o)=>{let u="inputs"in n&&n.inputs[o];return!!u&&isArgOfType(i,u)});if(o){if(I&&"inputs"in I&&I.inputs){let o=getAmbiguousTypes(n.inputs,I.inputs,i);if(o)throw new u.S4({abiItem:n,type:o[0]},{abiItem:I,type:o[1]})}I=n}}return I||j[0]}}function isArgOfType(n,i){let o=typeof n,u=i.type;switch(u){case"address":return(0,I.U)(n);case"bool":return"boolean"===o;case"function":case"string":return"string"===o;default:if("tuple"===u&&"components"in i)return Object.values(i.components).every((i,o)=>isArgOfType(Object.values(n)[o],i));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(u))return"number"===o||"bigint"===o;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(u))return"string"===o||n instanceof Uint8Array;if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(u))return Array.isArray(n)&&n.every(n=>isArgOfType(n,{...i,type:u.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}function getAmbiguousTypes(n,i,o){for(let u in n){let l=n[u],d=i[u];if("tuple"===l.type&&"tuple"===d.type&&"components"in l&&"components"in d)return getAmbiguousTypes(l.components,d.components,o[u]);let x=[l.type,d.type],R=!!(x.includes("address")&&x.includes("bytes20"))||!!(x.includes("address")&&x.includes("string")||x.includes("address")&&x.includes("bytes"))&&(0,I.U)(o[u]);if(R)return x}}},95569:function(n,i,o){"use strict";o.d(i,{K:function(){return getAddress},x:function(){return checksumAddress}});var u=o(6921),l=o(79179),d=o(33511),x=o(53769);function checksumAddress(n,i){let o=i?`${i}${n.toLowerCase()}`:n.substring(2).toLowerCase(),u=(0,d.w)((0,l.qX)(o),"bytes"),x=(i?o.substring(`${i}0x`.length):o).split("");for(let n=0;n<40;n+=2)u[n>>1]>>4>=8&&x[n]&&(x[n]=x[n].toUpperCase()),(15&u[n>>1])>=8&&x[n+1]&&(x[n+1]=x[n+1].toUpperCase());return`0x${x.join("")}`}function getAddress(n,i){if(!(0,x.U)(n))throw new u.b({address:n});return checksumAddress(n,i)}},53769:function(n,i,o){"use strict";o.d(i,{U:function(){return isAddress}});let u=/^0x[a-fA-F0-9]{40}$/;function isAddress(n){return u.test(n)}},17202:function(n,i,o){"use strict";o.d(i,{n:function(){return buildRequest},y:function(){return isDeterministicError}});var u=o(40882),l=o(26476),d=o(14245),x=o(98816);let isDeterministicError=n=>"code"in n?-1!==n.code&&-32004!==n.code&&-32005!==n.code&&-32042!==n.code&&-32603!==n.code:n instanceof l.Gg&&!!n.status&&403!==n.status&&408!==n.status&&413!==n.status&&429!==n.status&&500!==n.status&&502!==n.status&&503!==n.status&&504!==n.status;function buildRequest(n,{retryDelay:i=150,retryCount:o=3}={}){return async I=>(0,x.J)(async()=>{try{return await n(I)}catch(n){switch(n.code){case d.s7.code:throw new d.s7(n);case d.B.code:throw new d.B(n);case d.LX.code:throw new d.LX(n);case d.nY.code:throw new d.nY(n);case d.XS.code:throw new d.XS(n);case d.yR.code:throw new d.yR(n);case d.Og.code:throw new d.Og(n);case d.pT.code:throw new d.pT(n);case d.KB.code:throw new d.KB(n);case d.gS.code:throw new d.gS(n);case d.Pv.code:throw new d.Pv(n);case d.GD.code:throw new d.GD(n);case d.ab.code:throw new d.ab(n);case d.PE.code:throw new d.PE(n);case d.Ts.code:throw new d.Ts(n);case d.u5.code:throw new d.u5(n);case d.I0.code:throw new d.I0(n);case d.x3.code:throw new d.x3(n);case 5e3:throw new d.ab(n);default:if(n instanceof u.G)throw n;throw new d.ir(n)}}},{delay:({count:n,error:o})=>{if(o&&o instanceof l.Gg){let n=o?.headers?.get("Retry-After");if(n?.match(/\d/))return 1e3*parseInt(n)}return~~(1<!isDeterministicError(n)})}},46319:function(n,i,o){"use strict";function defineChain(n,i={}){let{fees:o=n.fees,formatters:u=n.formatters,serializers:l=n.serializers}=i;return{...n,fees:o,formatters:u,serializers:l}}o.d(i,{a:function(){return defineChain}})},77821:function(n,i,o){"use strict";o.d(i,{L:function(){return getChainContractAddress}});var u=o(9305);function getChainContractAddress({blockNumber:n,chain:i,contract:o}){let l=i?.contracts?.[o];if(!l)throw new u.mm({chain:i,contract:{name:o}});if(n&&l.blockCreated&&l.blockCreated>n)throw new u.mm({blockNumber:n,chain:i,contract:{name:o,blockCreated:l.blockCreated}});return l.address}},63864:function(n,i,o){"use strict";function concat(n){return"string"==typeof n[0]?concatHex(n):concatBytes(n)}function concatBytes(n){let i=0;for(let o of n)i+=o.length;let o=new Uint8Array(i),u=0;for(let i of n)o.set(i,u),u+=i.length;return o}function concatHex(n){return`0x${n.reduce((n,i)=>n+i.replace("0x",""),"")}`}o.d(i,{SM:function(){return concatHex},zo:function(){return concat}})},40996:function(n,i,o){"use strict";function isHex(n,{strict:i=!0}={}){return!!n&&"string"==typeof n&&(i?/^0x[0-9a-fA-F]*$/.test(n):n.startsWith("0x"))}o.d(i,{v:function(){return isHex}})},76517:function(n,i,o){"use strict";o.d(i,{gc:function(){return padHex},vk:function(){return pad}});var u=o(26567);function pad(n,{dir:i,size:o=32}={}){return"string"==typeof n?padHex(n,{dir:i,size:o}):padBytes(n,{dir:i,size:o})}function padHex(n,{dir:i,size:o=32}={}){if(null===o)return n;let l=n.replace("0x","");if(l.length>2*o)throw new u.$({size:Math.ceil(l.length/2),targetSize:o,type:"hex"});return`0x${l["right"===i?"padEnd":"padStart"](2*o,"0")}`}function padBytes(n,{dir:i,size:o=32}={}){if(null===o)return n;if(n.length>o)throw new u.$({size:n.length,targetSize:o,type:"bytes"});let l=new Uint8Array(o);for(let u=0;u0&&i>(0,d.d)(n)-1)throw new u.m({offset:i,position:"start",size:(0,d.d)(n)})}function assertEndOffset(n,i,o){if("number"==typeof i&&"number"==typeof o&&(0,d.d)(n)!==o-i)throw new u.m({offset:o,position:"end",size:(0,d.d)(n)})}function sliceBytes(n,i,o,{strict:u}={}){assertStartOffset(n,i);let l=n.slice(i,o);return u&&assertEndOffset(l,i,o),l}function sliceHex(n,i,o,{strict:u}={}){assertStartOffset(n,i);let l=`0x${n.replace("0x","").slice((i??0)*2,(o??n.length)*2)}`;return u&&assertEndOffset(l,i,o),l}},95019:function(n,i,o){"use strict";function trim(n,{dir:i="left"}={}){let o="string"==typeof n?n.replace("0x",""):n,u=0;for(let n=0;ni)throw new u.M6({givenSize:(0,l.d)(n),maxSize:i})}function hexToBigInt(n,i={}){let{signed:o}=i;i.size&&assertSize(n,{size:i.size});let u=BigInt(n);if(!o)return u;let l=(n.length-2)/2,d=(1n<<8n*BigInt(l)-1n)-1n;return u<=d?u:u-BigInt(`0x${"f".padStart(2*l,"f")}`)-1n}function hexToBool(n,i={}){let o=n;if(i.size&&(assertSize(o,{size:i.size}),o=(0,d.f)(o)),"0x00"===(0,d.f)(o))return!1;if("0x01"===(0,d.f)(o))return!0;throw new u.Cd(o)}function hexToNumber(n,i={}){return Number(hexToBigInt(n,i))}function hexToString(n,i={}){let o=(0,x.nr)(n);return i.size&&(assertSize(o,{size:i.size}),o=(0,d.f)(o,{dir:"right"})),new TextDecoder().decode(o)}},79179:function(n,i,o){"use strict";o.d(i,{O0:function(){return toBytes},nr:function(){return hexToBytes},qX:function(){return stringToBytes}});var u=o(40882),l=o(40996),d=o(76517),x=o(81725),I=o(21502);let R=new TextEncoder;function toBytes(n,i={}){return"number"==typeof n||"bigint"==typeof n?numberToBytes(n,i):"boolean"==typeof n?boolToBytes(n,i):(0,l.v)(n)?hexToBytes(n,i):stringToBytes(n,i)}function boolToBytes(n,i={}){let o=new Uint8Array(1);return(o[0]=Number(n),"number"==typeof i.size)?((0,x.Yf)(o,{size:i.size}),(0,d.vk)(o,{size:i.size})):o}let j={zero:48,nine:57,A:65,F:70,a:97,f:102};function charCodeToBase16(n){return n>=j.zero&&n<=j.nine?n-j.zero:n>=j.A&&n<=j.F?n-(j.A-10):n>=j.a&&n<=j.f?n-(j.a-10):void 0}function hexToBytes(n,i={}){let o=n;i.size&&((0,x.Yf)(o,{size:i.size}),o=(0,d.vk)(o,{dir:"right",size:i.size}));let l=o.slice(2);l.length%2&&(l=`0${l}`);let I=l.length/2,R=new Uint8Array(I);for(let n=0,i=0;ni.toString(16).padStart(2,"0"));function toHex(n,i={}){return"number"==typeof n||"bigint"==typeof n?numberToHex(n,i):"string"==typeof n?stringToHex(n,i):"boolean"==typeof n?boolToHex(n,i):bytesToHex(n,i)}function boolToHex(n,i={}){let o=`0x${Number(n)}`;return"number"==typeof i.size?((0,d.Yf)(o,{size:i.size}),(0,l.vk)(o,{size:i.size})):o}function bytesToHex(n,i={}){let o="";for(let i=0;io||In.code===l.M_.code);return d instanceof u.G?new l.M_({cause:n,message:d.details}):l.M_.nodeMessage.test(o)?new l.M_({cause:n,message:n.details}):l.Hh.nodeMessage.test(o)?new l.Hh({cause:n,maxFeePerGas:i?.maxFeePerGas}):l.G$.nodeMessage.test(o)?new l.G$({cause:n,maxFeePerGas:i?.maxFeePerGas}):l.ZI.nodeMessage.test(o)?new l.ZI({cause:n,nonce:i?.nonce}):l.vU.nodeMessage.test(o)?new l.vU({cause:n,nonce:i?.nonce}):l.se.nodeMessage.test(o)?new l.se({cause:n,nonce:i?.nonce}):l.C_.nodeMessage.test(o)?new l.C_({cause:n}):l.WF.nodeMessage.test(o)?new l.WF({cause:n,gas:i?.gas}):l.dR.nodeMessage.test(o)?new l.dR({cause:n,gas:i?.gas}):l.pZ.nodeMessage.test(o)?new l.pZ({cause:n}):l.cs.nodeMessage.test(o)?new l.cs({cause:n,maxFeePerGas:i?.maxFeePerGas,maxPriorityFeePerGas:i?.maxPriorityFeePerGas}):new l.cj({cause:n})}},28753:function(n,i,o){"use strict";o.d(i,{G:function(){return d},Z:function(){return formatBlock}});var u=o(29205),l=o(11872);function formatBlock(n){let i=n.transactions?.map(n=>"string"==typeof n?n:l.Tr(n));return{...n,baseFeePerGas:n.baseFeePerGas?BigInt(n.baseFeePerGas):null,difficulty:n.difficulty?BigInt(n.difficulty):void 0,gasLimit:n.gasLimit?BigInt(n.gasLimit):void 0,gasUsed:n.gasUsed?BigInt(n.gasUsed):void 0,hash:n.hash?n.hash:null,logsBloom:n.logsBloom?n.logsBloom:null,nonce:n.nonce?n.nonce:null,number:n.number?BigInt(n.number):null,size:n.size?BigInt(n.size):void 0,timestamp:n.timestamp?BigInt(n.timestamp):void 0,transactions:i,totalDifficulty:n.totalDifficulty?BigInt(n.totalDifficulty):null}}let d=(0,u.$)("block",formatBlock)},22429:function(n,i,o){"use strict";function extract(n,{format:i}){if(!i)return{};let o={};function extract_(i){let u=Object.keys(i);for(let l of u)l in n&&(o[l]=n[l]),i[l]&&"object"==typeof i[l]&&!Array.isArray(i[l])&&extract_(i[l])}let u=i(n||{});return extract_(u),o}o.d(i,{K:function(){return extract}})},29205:function(n,i,o){"use strict";function defineFormatter(n,i){return({exclude:o,format:u})=>({exclude:o,format:n=>{let l=i(n);if(o)for(let n of o)delete l[n];return{...l,...u(n)}},type:n})}o.d(i,{$:function(){return defineFormatter}})},46491:function(n,i,o){"use strict";function formatLog(n,{args:i,eventName:o}={}){return{...n,blockHash:n.blockHash?n.blockHash:null,blockNumber:n.blockNumber?BigInt(n.blockNumber):null,logIndex:n.logIndex?Number(n.logIndex):null,transactionHash:n.transactionHash?n.transactionHash:null,transactionIndex:n.transactionIndex?Number(n.transactionIndex):null,...o?{args:i,eventName:o}:{}}}o.d(i,{U:function(){return formatLog}})},11872:function(n,i,o){"use strict";o.d(i,{Tr:function(){return formatTransaction},c8:function(){return d},y_:function(){return x}});var u=o(81725),l=o(29205);let d={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559"};function formatTransaction(n){let i={...n,blockHash:n.blockHash?n.blockHash:null,blockNumber:n.blockNumber?BigInt(n.blockNumber):null,chainId:n.chainId?(0,u.ly)(n.chainId):void 0,gas:n.gas?BigInt(n.gas):void 0,gasPrice:n.gasPrice?BigInt(n.gasPrice):void 0,maxFeePerGas:n.maxFeePerGas?BigInt(n.maxFeePerGas):void 0,maxPriorityFeePerGas:n.maxPriorityFeePerGas?BigInt(n.maxPriorityFeePerGas):void 0,nonce:n.nonce?(0,u.ly)(n.nonce):void 0,to:n.to?n.to:null,transactionIndex:n.transactionIndex?Number(n.transactionIndex):null,type:n.type?d[n.type]:void 0,typeHex:n.type?n.type:void 0,value:n.value?BigInt(n.value):void 0,v:n.v?BigInt(n.v):void 0};return i.yParity=(()=>{if(n.yParity)return Number(n.yParity);if("bigint"==typeof i.v){if(0n===i.v||27n===i.v)return 0;if(1n===i.v||28n===i.v)return 1;if(i.v>=35n)return i.v%2n===0n?1:0}})(),"legacy"===i.type&&(delete i.accessList,delete i.maxFeePerGas,delete i.maxPriorityFeePerGas,delete i.yParity),"eip2930"===i.type&&(delete i.maxFeePerGas,delete i.maxPriorityFeePerGas),i}let x=(0,l.$)("transaction",formatTransaction)},87524:function(n,i,o){"use strict";o.d(i,{d:function(){return R},f:function(){return formatTransactionReceipt}});var u=o(81725),l=o(29205),d=o(46491),x=o(11872);let I={"0x0":"reverted","0x1":"success"};function formatTransactionReceipt(n){return{...n,blockNumber:n.blockNumber?BigInt(n.blockNumber):null,contractAddress:n.contractAddress?n.contractAddress:null,cumulativeGasUsed:n.cumulativeGasUsed?BigInt(n.cumulativeGasUsed):null,effectiveGasPrice:n.effectiveGasPrice?BigInt(n.effectiveGasPrice):null,gasUsed:n.gasUsed?BigInt(n.gasUsed):null,logs:n.logs?n.logs.map(n=>(0,d.U)(n)):null,to:n.to?n.to:null,transactionIndex:n.transactionIndex?(0,u.ly)(n.transactionIndex):null,status:n.status?I[n.status]:null,type:n.type?x.c8[n.type]||n.type:null}}let R=(0,l.$)("transactionReceipt",formatTransactionReceipt)},49637:function(n,i,o){"use strict";o.d(i,{tG:function(){return formatTransactionRequest}});var u=o(21502);let l={legacy:"0x0",eip2930:"0x1",eip1559:"0x2"};function formatTransactionRequest(n){return{...n,gas:void 0!==n.gas?(0,u.eC)(n.gas):void 0,gasPrice:void 0!==n.gasPrice?(0,u.eC)(n.gasPrice):void 0,maxFeePerGas:void 0!==n.maxFeePerGas?(0,u.eC)(n.maxFeePerGas):void 0,maxPriorityFeePerGas:void 0!==n.maxPriorityFeePerGas?(0,u.eC)(n.maxPriorityFeePerGas):void 0,nonce:void 0!==n.nonce?(0,u.eC)(n.nonce):void 0,type:void 0!==n.type?l[n.type]:void 0,value:void 0!==n.value?(0,u.eC)(n.value):void 0}}},75891:function(n,i,o){"use strict";function getAction(n,i,o){return u=>n[i.name||o]?.(u)??i(n,u)}o.d(i,{s:function(){return getAction}})},48171:function(n,i,o){"use strict";o.d(i,{e:function(){return getEventSelector}});var u=o(79179),l=o(60859);let getEventSignature=n=>(0,l.r)(n);var d=o(33511);let hash=n=>(0,d.w)((0,u.O0)(n)),getEventSelector=n=>hash(getEventSignature(n))},68510:function(n,i,o){"use strict";o.d(i,{o:function(){return getFunctionSelector}});var u=o(37169),l=o(79179),d=o(60859),x=o(33511);let hash=n=>(0,x.w)((0,l.O0)(n)),getFunctionSelector=n=>(0,u.tP)(hash((0,d.r)(n)),0,4)},60859:function(n,i,o){"use strict";function execTyped(n,i){let o=n.exec(i);return o?.groups}o.d(i,{r:function(){return getFunctionSignature}});let u=/^tuple(?(\[(\d*)\])*)$/;function formatAbiParameter(n){let i=n.type;if(u.test(n.type)&&"components"in n){i="(";let o=n.components.length;for(let u=0;u{let i="string"==typeof n?n:formatAbiItem(n);return normalizeSignature(i)}},33511:function(n,i,o){"use strict";function number(n){if(!Number.isSafeInteger(n)||n<0)throw Error(`Wrong positive integer: ${n}`)}function bytes(n,...i){if(!(n instanceof Uint8Array))throw Error("Expected Uint8Array");if(i.length>0&&!i.includes(n.length))throw Error(`Expected Uint8Array of length ${i}, not of length=${n.length}`)}function exists(n,i=!0){if(n.destroyed)throw Error("Hash instance has been destroyed");if(i&&n.finished)throw Error("Hash#digest() has already been called")}function output(n,i){bytes(n);let o=i.outputLen;if(n.length>l&u)}:{h:0|Number(n>>l&u),l:0|Number(n&u)}}function split(n,i=!1){let o=new Uint32Array(n.length),u=new Uint32Array(n.length);for(let l=0;ln<>>32-o,rotlSL=(n,i,o)=>i<>>32-o,rotlBH=(n,i,o)=>i<>>64-o,rotlBL=(n,i,o)=>n<>>64-o,u8a=n=>n instanceof Uint8Array,u32=n=>new Uint32Array(n.buffer,n.byteOffset,Math.floor(n.byteLength/4)),d=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];if(!d)throw Error("Non little-endian hardware is not supported");function utf8ToBytes(n){if("string"!=typeof n)throw Error(`utf8ToBytes expected string, got ${typeof n}`);return new Uint8Array(new TextEncoder().encode(n))}function toBytes(n){if("string"==typeof n&&(n=utf8ToBytes(n)),!u8a(n))throw Error(`expected Uint8Array, got ${typeof n}`);return n}let Hash=class Hash{clone(){return this._cloneInto()}};function wrapConstructor(n){let hashC=i=>n().update(toBytes(i)).digest(),i=n();return hashC.outputLen=i.outputLen,hashC.blockLen=i.blockLen,hashC.create=()=>n(),hashC}let[x,I,R]=[[],[],[]],j=BigInt(0),W=BigInt(1),J=BigInt(2),et=BigInt(7),ei=BigInt(256),eo=BigInt(113);for(let n=0,i=W,o=1,u=0;n<24;n++){[o,u]=[u,(2*o+3*u)%5],x.push(2*(5*u+o)),I.push((n+1)*(n+2)/2%64);let l=j;for(let n=0;n<7;n++)(i=(i<>et)*eo)%ei)&J&&(l^=W<<(W<o>32?rotlBH(n,i,o):rotlSH(n,i,o),rotlL=(n,i,o)=>o>32?rotlBL(n,i,o):rotlSL(n,i,o);function keccakP(n,i=24){let o=new Uint32Array(10);for(let u=24-i;u<24;u++){for(let i=0;i<10;i++)o[i]=n[i]^n[i+10]^n[i+20]^n[i+30]^n[i+40];for(let i=0;i<10;i+=2){let u=(i+8)%10,l=(i+2)%10,d=o[l],x=o[l+1],I=rotlH(d,x,1)^o[u],R=rotlL(d,x,1)^o[u+1];for(let o=0;o<50;o+=10)n[i+o]^=I,n[i+o+1]^=R}let i=n[2],l=n[3];for(let o=0;o<24;o++){let u=I[o],d=rotlH(i,l,u),R=rotlL(i,l,u),j=x[o];i=n[j],l=n[j+1],n[j]=d,n[j+1]=R}for(let i=0;i<50;i+=10){for(let u=0;u<10;u++)o[u]=n[i+u];for(let u=0;u<10;u++)n[i+u]^=~o[(u+2)%10]&o[(u+4)%10]}n[0]^=es[u],n[1]^=eu[u]}o.fill(0)}let Keccak=class Keccak extends Hash{constructor(n,i,o,u=!1,l=24){if(super(),this.blockLen=n,this.suffix=i,this.outputLen=o,this.enableXOF=u,this.rounds=l,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,number(o),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=u32(this.state)}keccak(){keccakP(this.state32,this.rounds),this.posOut=0,this.pos=0}update(n){exists(this);let{blockLen:i,state:o}=this;n=toBytes(n);let u=n.length;for(let l=0;l=o&&this.keccak();let d=Math.min(o-this.posOut,l-u);n.set(i.subarray(this.posOut,this.posOut+d),u),this.posOut+=d,u+=d}return n}xofInto(n){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(n)}xof(n){return number(n),this.xofInto(new Uint8Array(n))}digestInto(n){if(output(n,this),this.finished)throw Error("digest() was already called");return this.writeInto(n),this.destroy(),n}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(n){let{blockLen:i,suffix:o,outputLen:u,rounds:l,enableXOF:d}=this;return n||(n=new Keccak(i,o,u,d,l)),n.state32.set(this.state32),n.pos=this.pos,n.posOut=this.posOut,n.finished=this.finished,n.rounds=l,n.suffix=o,n.outputLen=u,n.enableXOF=d,n.destroyed=this.destroyed,n}};let ec=wrapConstructor(()=>new Keccak(136,1,32));var el=o(40996),ed=o(79179),ef=o(21502);function keccak256(n,i){let o=ec((0,el.v)(n,{strict:!1})?(0,ed.O0)(n):n);return"bytes"===(i||"hex")?o:(0,ef.NC)(o)}},16360:function(n,i,o){"use strict";o.d(i,{S:function(){return createBatchScheduler}});let u=new Map;function createBatchScheduler({fn:n,id:i,shouldSplitBatch:o,wait:l=0,sort:d}){let exec=async()=>{let i=getScheduler();flush();let o=i.map(({args:n})=>n);0!==o.length&&n(o).then(n=>{d&&Array.isArray(n)&&n.sort(d);for(let o=0;o{for(let o=0;ou.delete(i),getBatchedArgs=()=>getScheduler().map(({args:n})=>n),getScheduler=()=>u.get(i)||[],setScheduler=n=>u.set(i,[...getScheduler(),n]);return{flush,async schedule(n){let i={},u=new Promise((n,o)=>{i.resolve=n,i.reject=o}),d=o?.([...getBatchedArgs(),n]);d&&exec();let x=getScheduler().length>0;return x?setScheduler({args:n,pendingPromise:i}):(setScheduler({args:n,pendingPromise:i}),setTimeout(exec,l)),u}}}},98816:function(n,i,o){"use strict";o.d(i,{J:function(){return withRetry}});var u=o(42588);function withRetry(n,{delay:i=100,retryCount:o=2,shouldRetry:l=()=>!0}={}){return new Promise((d,x)=>{let attemptRetry=async({count:I=0}={})=>{let retry=async({error:n})=>{let o="function"==typeof i?i({count:I,error:n}):i;o&&await (0,u.D)(o),attemptRetry({count:I+1})};try{let i=await n();d(i)}catch(n){if(IJSON.stringify(n,(n,o)=>{let u="bigint"==typeof o?o.toString():o;return"function"==typeof i?i(n,u):u},o)},36211:function(n,i,o){"use strict";o.d(i,{F:function(){return assertRequest}});var u=o(70404),l=o(6921),d=o(27368),x=o(82415),I=o(53769);function assertRequest(n){let{account:i,gasPrice:o,maxFeePerGas:R,maxPriorityFeePerGas:j,to:W}=n,J=i?(0,u.T)(i):void 0;if(J&&!(0,I.U)(J.address))throw new l.b({address:J.address});if(W&&!(0,I.U)(W))throw new l.b({address:W});if(void 0!==o&&(void 0!==R||void 0!==j))throw new x.xY;if(R&&R>2n**256n-1n)throw new d.Hh({maxFeePerGas:R});if(j&&R&&j>R)throw new d.cs({maxFeePerGas:R,maxPriorityFeePerGas:j})}},38684:function(n,i,o){"use strict";o.d(i,{cj:function(){return getTypesForEIP712Domain},iC:function(){return validateTypedData}});var u=o(67035),l=o(6921),d=o(53769),x=o(47193),I=o(21502);let R=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,j=/^(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 validateTypedData({domain:n,message:i,primaryType:o,types:W}){let validateData=(n,i)=>{for(let o of n){let{name:n,type:J}=o,et=i[n],ei=J.match(j);if(ei&&("number"==typeof et||"bigint"==typeof et)){let[n,i,o]=ei;(0,I.eC)(et,{signed:"int"===i,size:parseInt(o)/8})}if("address"===J&&"string"==typeof et&&!(0,d.U)(et))throw new l.b({address:et});let eo=J.match(R);if(eo){let[n,i]=eo;if(i&&(0,x.d)(et)!==parseInt(i))throw new u.KY({expectedSize:parseInt(i),givenSize:(0,x.d)(et)})}let es=W[J];es&&validateData(es,et)}};if(W.EIP712Domain&&n&&validateData(W.EIP712Domain,n),"EIP712Domain"!==o){let n=W[o];validateData(n,i)}}function getTypesForEIP712Domain({domain:n}){return["string"==typeof n?.name&&{name:"name",type:"string"},n?.version&&{name:"version",type:"string"},"number"==typeof n?.chainId&&{name:"chainId",type:"uint256"},n?.verifyingContract&&{name:"verifyingContract",type:"address"},n?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean)}},49338:function(n,i,o){"use strict";o.d(i,{d:function(){return formatEther}});var u=o(96228),l=o(89492);function formatEther(n,i="wei"){return(0,l.b)(n,u.ez[i])}},84541:function(n,i,o){"use strict";o.d(i,{o:function(){return formatGwei}});var u=o(96228),l=o(89492);function formatGwei(n,i="wei"){return(0,l.b)(n,u.Zn[i])}},89492:function(n,i,o){"use strict";function formatUnits(n,i){let o=n.toString(),u=o.startsWith("-");u&&(o=o.slice(1));let[l,d]=[(o=o.padStart(i,"0")).slice(0,o.length-i),o.slice(o.length-i)];return d=d.replace(/(0+)$/,""),`${u?"-":""}${l||"0"}${d?`.${d}`:""}`}o.d(i,{b:function(){return formatUnits}})},42588:function(n,i,o){"use strict";async function wait(n){return new Promise(i=>setTimeout(i,n))}o.d(i,{D:function(){return wait}})},57235:function(n,i,o){"use strict";function createSyncStoragePersister({storage:n,key:i="REACT_QUERY_OFFLINE_CACHE",throttleTime:o=1e3,serialize:u=JSON.stringify,deserialize:l=JSON.parse,retry:d}){if(n){let trySave=o=>{try{n.setItem(i,u(o));return}catch(n){return n}};return{persistClient:throttle(n=>{let i=n,o=trySave(i),u=0;for(;o&&i;)u++,(i=null==d?void 0:d({persistedClient:i,error:o,errorCount:u}))&&(o=trySave(i))},o),restoreClient:()=>{let o=n.getItem(i);if(o)return l(o)},removeClient:()=>{n.removeItem(i)}}}return{persistClient:noop,restoreClient:()=>void 0,removeClient:noop}}function throttle(n,i=100){let o,u=null;return function(...l){o=l,null===u&&(u=setTimeout(()=>{n(...o),u=null},i))}}function noop(){}o.d(i,{eM:function(){return WagmiConfig},_g:function(){return createConfig},mA:function(){return useAccount},KQ:function(){return useBalance},$4:function(){return useConnect},qL:function(){return useDisconnect},S4:function(){return useEnsAddress},c9:function(){return useEnsAvatar},F6:function(){return useEnsName},LN:function(){return useNetwork},t_:function(){return usePublicClient},g0:function(){return useSwitchNetwork},py:function(){return useWalletClient}});let u="undefined"==typeof window||"Deno"in window;function utils_noop(){}function functionalUpdate(n,i){return"function"==typeof n?n(i):n}function isValidTimeout(n){return"number"==typeof n&&n>=0&&n!==1/0}function timeUntilStale(n,i){return Math.max(n+(i||0)-Date.now(),0)}function parseQueryArgs(n,i,o){return isQueryKey(n)?"function"==typeof i?{...o,queryKey:n,queryFn:i}:{...i,queryKey:n}:n}function parseMutationArgs(n,i,o){return isQueryKey(n)?"function"==typeof i?{...o,mutationKey:n,mutationFn:i}:{...i,mutationKey:n}:"function"==typeof n?{...i,mutationFn:n}:{...n}}function parseFilterArgs(n,i,o){return isQueryKey(n)?[{...i,queryKey:n},o]:[n||{},i]}function matchQuery(n,i){let{type:o="all",exact:u,fetchStatus:l,predicate:d,queryKey:x,stale:I}=n;if(isQueryKey(x)){if(u){if(i.queryHash!==hashQueryKeyByOptions(x,i.options))return!1}else{if(!partialDeepEqual(i.queryKey,x))return!1}}if("all"!==o){let n=i.isActive();if("active"===o&&!n||"inactive"===o&&n)return!1}return("boolean"!=typeof I||i.isStale()===I)&&(void 0===l||l===i.state.fetchStatus)&&(!d||!!d(i))}function matchMutation(n,i){let{exact:o,fetching:u,predicate:l,mutationKey:d}=n;if(isQueryKey(d)){if(!i.options.mutationKey)return!1;if(o){if(hashQueryKey(i.options.mutationKey)!==hashQueryKey(d))return!1}else{if(!partialDeepEqual(i.options.mutationKey,d))return!1}}return("boolean"!=typeof u||"loading"===i.state.status===u)&&(!l||!!l(i))}function hashQueryKeyByOptions(n,i){let o=(null==i?void 0:i.queryKeyHashFn)||hashQueryKey;return o(n)}function hashQueryKey(n){return JSON.stringify(n,(n,i)=>isPlainObject(i)?Object.keys(i).sort().reduce((n,o)=>(n[o]=i[o],n),{}):i)}function partialDeepEqual(n,i){return n===i||typeof n==typeof i&&!!n&&!!i&&"object"==typeof n&&"object"==typeof i&&!Object.keys(i).some(o=>!partialDeepEqual(n[o],i[o]))}function utils_replaceEqualDeep(n,i){if(n===i)return n;let o=isPlainArray(n)&&isPlainArray(i);if(o||isPlainObject(n)&&isPlainObject(i)){let u=o?n.length:Object.keys(n).length,l=o?i:Object.keys(i),d=l.length,x=o?[]:{},I=0;for(let u=0;u{setTimeout(i,n)})}function scheduleMicrotask(n){sleep(0).then(n)}function getAbortController(){if("function"==typeof AbortController)return new AbortController}function replaceData(n,i,o){return null!=o.isDataEqual&&o.isDataEqual(n,i)?n:"function"==typeof o.structuralSharing?o.structuralSharing(n,i):!1!==o.structuralSharing?utils_replaceEqualDeep(n,i):i}let l=console;function createNotifyManager(){let n=[],i=0,notifyFn=n=>{n()},batchNotifyFn=n=>{n()},schedule=o=>{i?n.push(o):scheduleMicrotask(()=>{notifyFn(o)})},flush=()=>{let i=n;n=[],i.length&&scheduleMicrotask(()=>{batchNotifyFn(()=>{i.forEach(n=>{notifyFn(n)})})})};return{batch:n=>{let o;i++;try{o=n()}finally{--i||flush()}return o},batchCalls:n=>(...i)=>{schedule(()=>{n(...i)})},schedule,setNotifyFunction:n=>{notifyFn=n},setBatchNotifyFunction:n=>{batchNotifyFn=n}}}let d=createNotifyManager();let Subscribable=class Subscribable{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){let i={listener:n};return this.listeners.add(i),this.onSubscribe(),()=>{this.listeners.delete(i),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};let FocusManager=class FocusManager extends Subscribable{constructor(){super(),this.setup=n=>{if(!u&&window.addEventListener){let listener=()=>n();return window.addEventListener("visibilitychange",listener,!1),window.addEventListener("focus",listener,!1),()=>{window.removeEventListener("visibilitychange",listener),window.removeEventListener("focus",listener)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var n;null==(n=this.cleanup)||n.call(this),this.cleanup=void 0}}setEventListener(n){var i;this.setup=n,null==(i=this.cleanup)||i.call(this),this.cleanup=n(n=>{"boolean"==typeof n?this.setFocused(n):this.onFocus()})}setFocused(n){let i=this.focused!==n;i&&(this.focused=n,this.onFocus())}onFocus(){this.listeners.forEach(({listener:n})=>{n()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}};let x=new FocusManager,I=["online","offline"];let OnlineManager=class OnlineManager extends Subscribable{constructor(){super(),this.setup=n=>{if(!u&&window.addEventListener){let listener=()=>n();return I.forEach(n=>{window.addEventListener(n,listener,!1)}),()=>{I.forEach(n=>{window.removeEventListener(n,listener)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var n;null==(n=this.cleanup)||n.call(this),this.cleanup=void 0}}setEventListener(n){var i;this.setup=n,null==(i=this.cleanup)||i.call(this),this.cleanup=n(n=>{"boolean"==typeof n?this.setOnline(n):this.onOnline()})}setOnline(n){let i=this.online!==n;i&&(this.online=n,this.onOnline())}onOnline(){this.listeners.forEach(({listener:n})=>{n()})}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}};let R=new OnlineManager;function defaultRetryDelay(n){return Math.min(1e3*2**n,3e4)}function canFetch(n){return(null!=n?n:"online")!=="online"||R.isOnline()}let CancelledError=class CancelledError{constructor(n){this.revert=null==n?void 0:n.revert,this.silent=null==n?void 0:n.silent}};function isCancelledError(n){return n instanceof CancelledError}function createRetryer(n){let i,o,u,l=!1,d=0,I=!1,j=new Promise((n,i)=>{o=n,u=i}),shouldPause=()=>!x.isFocused()||"always"!==n.networkMode&&!R.isOnline(),resolve=u=>{I||(I=!0,null==n.onSuccess||n.onSuccess(u),null==i||i(),o(u))},reject=o=>{I||(I=!0,null==n.onError||n.onError(o),null==i||i(),u(o))},pause=()=>new Promise(o=>{i=n=>{let i=I||!shouldPause();return i&&o(n),i},null==n.onPause||n.onPause()}).then(()=>{i=void 0,I||null==n.onContinue||n.onContinue()}),run=()=>{let i;if(!I){try{i=n.fn()}catch(n){i=Promise.reject(n)}Promise.resolve(i).then(resolve).catch(i=>{var o,u;if(I)return;let x=null!=(o=n.retry)?o:3,R=null!=(u=n.retryDelay)?u:defaultRetryDelay,j="function"==typeof R?R(d,i):R,W=!0===x||"number"==typeof x&&d{if(shouldPause())return pause()}).then(()=>{l?reject(i):run()})})}};return canFetch(n.networkMode)?run():pause().then(run),{promise:j,cancel:i=>{I||(reject(new CancelledError(i)),null==n.abort||n.abort())},continue:()=>{let n=null==i?void 0:i();return n?j:Promise.resolve()},cancelRetry:()=>{l=!0},continueRetry:()=>{l=!1}}}let Removable=class Removable{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),isValidTimeout(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(n){this.cacheTime=Math.max(this.cacheTime||0,null!=n?n:u?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}};let Query=class Query extends Removable{constructor(n){super(),this.abortSignalConsumed=!1,this.defaultOptions=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.cache=n.cache,this.logger=n.logger||l,this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.initialState=n.state||getDefaultState(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(n){this.options={...this.defaultOptions,...n},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(n,i){let o=replaceData(this.state.data,n,this.options);return this.dispatch({data:o,type:"success",dataUpdatedAt:null==i?void 0:i.updatedAt,manual:null==i?void 0:i.manual}),o}setState(n,i){this.dispatch({type:"setState",state:n,setStateOptions:i})}cancel(n){var i;let o=this.promise;return null==(i=this.retryer)||i.cancel(n),o?o.then(utils_noop).catch(utils_noop):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(n=>!1!==n.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(n=>n.getCurrentResult().isStale)}isStaleByTime(n=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!timeUntilStale(this.state.dataUpdatedAt,n)}onFocus(){var n;let i=this.observers.find(n=>n.shouldFetchOnWindowFocus());i&&i.refetch({cancelRefetch:!1}),null==(n=this.retryer)||n.continue()}onOnline(){var n;let i=this.observers.find(n=>n.shouldFetchOnReconnect());i&&i.refetch({cancelRefetch:!1}),null==(n=this.retryer)||n.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(i=>i!==n),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(n,i){var o,u,l,d;if("idle"!==this.state.fetchStatus){if(this.state.dataUpdatedAt&&null!=i&&i.cancelRefetch)this.cancel({silent:!0});else if(this.promise)return null==(l=this.retryer)||l.continueRetry(),this.promise}if(n&&this.setOptions(n),!this.options.queryFn){let n=this.observers.find(n=>n.options.queryFn);n&&this.setOptions(n.options)}let x=getAbortController(),I={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},addSignalProperty=n=>{Object.defineProperty(n,"signal",{enumerable:!0,get:()=>{if(x)return this.abortSignalConsumed=!0,x.signal}})};addSignalProperty(I);let R={fetchOptions:i,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(I)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};addSignalProperty(R),null==(o=this.options.behavior)||o.onFetch(R),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(u=R.fetchOptions)?void 0:u.meta))&&this.dispatch({type:"fetch",meta:null==(d=R.fetchOptions)?void 0:d.meta});let onError=n=>{if(isCancelledError(n)&&n.silent||this.dispatch({type:"error",error:n}),!isCancelledError(n)){var i,o,u,l;null==(i=(o=this.cache.config).onError)||i.call(o,n,this),null==(u=(l=this.cache.config).onSettled)||u.call(l,this.state.data,n,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=createRetryer({fn:R.fetchFn,abort:null==x?void 0:x.abort.bind(x),onSuccess:n=>{var i,o,u,l;if(void 0===n){onError(Error(this.queryHash+" data is undefined"));return}this.setData(n),null==(i=(o=this.cache.config).onSuccess)||i.call(o,n,this),null==(u=(l=this.cache.config).onSettled)||u.call(l,n,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError,onFail:(n,i)=>{this.dispatch({type:"failed",failureCount:n,error:i})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:R.options.retry,retryDelay:R.options.retryDelay,networkMode:R.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(n){this.state=(i=>{var o,u;switch(n.type){case"failed":return{...i,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(o=n.meta)?o:null,fetchStatus:canFetch(this.options.networkMode)?"fetching":"paused",...!i.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...i,data:n.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:null!=(u=n.dataUpdatedAt)?u:Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let l=n.error;if(isCancelledError(l)&&l.revert&&this.revertState)return{...this.revertState,fetchStatus:"idle"};return{...i,error:l,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...n.state}}})(this.state),d.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate(n)}),this.cache.notify({query:this,type:"updated",action:n})})}};function getDefaultState(n){let i="function"==typeof n.initialData?n.initialData():n.initialData,o=void 0!==i,u=o?"function"==typeof n.initialDataUpdatedAt?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:o?null!=u?u:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:o?"success":"loading",fetchStatus:"idle"}}let QueryCache=class QueryCache extends Subscribable{constructor(n){super(),this.config=n||{},this.queries=[],this.queriesMap={}}build(n,i,o){var u;let l=i.queryKey,d=null!=(u=i.queryHash)?u:hashQueryKeyByOptions(l,i),x=this.get(d);return x||(x=new Query({cache:this,logger:n.getLogger(),queryKey:l,queryHash:d,options:n.defaultQueryOptions(i),state:o,defaultOptions:n.getQueryDefaults(l)}),this.add(x)),x}add(n){this.queriesMap[n.queryHash]||(this.queriesMap[n.queryHash]=n,this.queries.push(n),this.notify({type:"added",query:n}))}remove(n){let i=this.queriesMap[n.queryHash];i&&(n.destroy(),this.queries=this.queries.filter(i=>i!==n),i===n&&delete this.queriesMap[n.queryHash],this.notify({type:"removed",query:n}))}clear(){d.batch(()=>{this.queries.forEach(n=>{this.remove(n)})})}get(n){return this.queriesMap[n]}getAll(){return this.queries}find(n,i){let[o]=parseFilterArgs(n,i);return void 0===o.exact&&(o.exact=!0),this.queries.find(n=>matchQuery(o,n))}findAll(n,i){let[o]=parseFilterArgs(n,i);return Object.keys(o).length>0?this.queries.filter(n=>matchQuery(o,n)):this.queries}notify(n){d.batch(()=>{this.listeners.forEach(({listener:i})=>{i(n)})})}onFocus(){d.batch(()=>{this.queries.forEach(n=>{n.onFocus()})})}onOnline(){d.batch(()=>{this.queries.forEach(n=>{n.onOnline()})})}};let Mutation=class Mutation extends Removable{constructor(n){super(),this.defaultOptions=n.defaultOptions,this.mutationId=n.mutationId,this.mutationCache=n.mutationCache,this.logger=n.logger||l,this.observers=[],this.state=n.state||mutation_getDefaultState(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options={...this.defaultOptions,...n},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(n){this.dispatch({type:"setState",state:n})}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.observers=this.observers.filter(i=>i!==n),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var n,i;return null!=(n=null==(i=this.retryer)?void 0:i.continue())?n:this.execute()}async execute(){var n,i,o,u,l,d,x,I,R,j,W,J,et,ei,eo,es,eu,ec,el,ed;let ef="loading"===this.state.status;try{if(!ef){this.dispatch({type:"loading",variables:this.options.variables}),await (null==(R=(j=this.mutationCache.config).onMutate)?void 0:R.call(j,this.state.variables,this));let n=await (null==(W=(J=this.options).onMutate)?void 0:W.call(J,this.state.variables));n!==this.state.context&&this.dispatch({type:"loading",context:n,variables:this.state.variables})}let et=await (()=>{var n;return this.retryer=createRetryer({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(n,i)=>{this.dispatch({type:"failed",failureCount:n,error:i})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(n=this.options.retry)?n:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise})();return await (null==(n=(i=this.mutationCache.config).onSuccess)?void 0:n.call(i,et,this.state.variables,this.state.context,this)),await (null==(o=(u=this.options).onSuccess)?void 0:o.call(u,et,this.state.variables,this.state.context)),await (null==(l=(d=this.mutationCache.config).onSettled)?void 0:l.call(d,et,null,this.state.variables,this.state.context,this)),await (null==(x=(I=this.options).onSettled)?void 0:x.call(I,et,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:et}),et}catch(n){try{throw await (null==(et=(ei=this.mutationCache.config).onError)?void 0:et.call(ei,n,this.state.variables,this.state.context,this)),await (null==(eo=(es=this.options).onError)?void 0:eo.call(es,n,this.state.variables,this.state.context)),await (null==(eu=(ec=this.mutationCache.config).onSettled)?void 0:eu.call(ec,void 0,n,this.state.variables,this.state.context,this)),await (null==(el=(ed=this.options).onSettled)?void 0:el.call(ed,void 0,n,this.state.variables,this.state.context)),n}finally{this.dispatch({type:"error",error:n})}}}dispatch(n){this.state=(i=>{switch(n.type){case"failed":return{...i,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"loading":return{...i,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!canFetch(this.options.networkMode),status:"loading",variables:n.variables};case"success":return{...i,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:n.error,failureCount:i.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"};case"setState":return{...i,...n.state}}})(this.state),d.batch(()=>{this.observers.forEach(i=>{i.onMutationUpdate(n)}),this.mutationCache.notify({mutation:this,type:"updated",action:n})})}};function mutation_getDefaultState(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}let MutationCache=class MutationCache extends Subscribable{constructor(n){super(),this.config=n||{},this.mutations=[],this.mutationId=0}build(n,i,o){let u=new Mutation({mutationCache:this,logger:n.getLogger(),mutationId:++this.mutationId,options:n.defaultMutationOptions(i),state:o,defaultOptions:i.mutationKey?n.getMutationDefaults(i.mutationKey):void 0});return this.add(u),u}add(n){this.mutations.push(n),this.notify({type:"added",mutation:n})}remove(n){this.mutations=this.mutations.filter(i=>i!==n),this.notify({type:"removed",mutation:n})}clear(){d.batch(()=>{this.mutations.forEach(n=>{this.remove(n)})})}getAll(){return this.mutations}find(n){return void 0===n.exact&&(n.exact=!0),this.mutations.find(i=>matchMutation(n,i))}findAll(n){return this.mutations.filter(i=>matchMutation(n,i))}notify(n){d.batch(()=>{this.listeners.forEach(({listener:i})=>{i(n)})})}resumePausedMutations(){var n;return this.resuming=(null!=(n=this.resuming)?n:Promise.resolve()).then(()=>{let n=this.mutations.filter(n=>n.state.isPaused);return d.batch(()=>n.reduce((n,i)=>n.then(()=>i.continue().catch(utils_noop)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}};function infiniteQueryBehavior(){return{onFetch:n=>{n.fetchFn=()=>{var i,o,u,l,d,x;let I;let R=null==(i=n.fetchOptions)?void 0:null==(o=i.meta)?void 0:o.refetchPage,j=null==(u=n.fetchOptions)?void 0:null==(l=u.meta)?void 0:l.fetchMore,W=null==j?void 0:j.pageParam,J=(null==j?void 0:j.direction)==="forward",et=(null==j?void 0:j.direction)==="backward",ei=(null==(d=n.state.data)?void 0:d.pages)||[],eo=(null==(x=n.state.data)?void 0:x.pageParams)||[],es=eo,eu=!1,addSignalProperty=i=>{Object.defineProperty(i,"signal",{enumerable:!0,get:()=>{var i,o;return null!=(i=n.signal)&&i.aborted?eu=!0:null==(o=n.signal)||o.addEventListener("abort",()=>{eu=!0}),n.signal}})},ec=n.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+n.options.queryHash+"'")),buildNewPages=(n,i,o,u)=>(es=u?[i,...es]:[...es,i],u?[o,...n]:[...n,o]),fetchPage=(i,o,u,l)=>{if(eu)return Promise.reject("Cancelled");if(void 0===u&&!o&&i.length)return Promise.resolve(i);let d={queryKey:n.queryKey,pageParam:u,meta:n.options.meta};addSignalProperty(d);let x=ec(d),I=Promise.resolve(x).then(n=>buildNewPages(i,u,n,l));return I};if(ei.length){if(J){let i=void 0!==W,o=i?W:getNextPageParam(n.options,ei);I=fetchPage(ei,i,o)}else if(et){let i=void 0!==W,o=i?W:getPreviousPageParam(n.options,ei);I=fetchPage(ei,i,o,!0)}else{es=[];let i=void 0===n.options.getNextPageParam,o=!R||!ei[0]||R(ei[0],0,ei);I=o?fetchPage([],i,eo[0]):Promise.resolve(buildNewPages([],eo[0],ei[0]));for(let o=1;o{let l=!R||!ei[o]||R(ei[o],o,ei);if(l){let l=i?eo[o]:getNextPageParam(n.options,u);return fetchPage(u,i,l)}return Promise.resolve(buildNewPages(u,eo[o],ei[o]))})}}else I=fetchPage([]);let el=I.then(n=>({pages:n,pageParams:es}));return el}}}}function getNextPageParam(n,i){return null==n.getNextPageParam?void 0:n.getNextPageParam(i[i.length-1],i)}function getPreviousPageParam(n,i){return null==n.getPreviousPageParam?void 0:n.getPreviousPageParam(i[0],i)}let QueryClient=class QueryClient{constructor(n={}){this.queryCache=n.queryCache||new QueryCache,this.mutationCache=n.mutationCache||new MutationCache,this.logger=n.logger||l,this.defaultOptions=n.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=x.subscribe(()=>{x.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=R.subscribe(()=>{R.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var n,i;this.mountCount--,0===this.mountCount&&(null==(n=this.unsubscribeFocus)||n.call(this),this.unsubscribeFocus=void 0,null==(i=this.unsubscribeOnline)||i.call(this),this.unsubscribeOnline=void 0)}isFetching(n,i){let[o]=parseFilterArgs(n,i);return o.fetchStatus="fetching",this.queryCache.findAll(o).length}isMutating(n){return this.mutationCache.findAll({...n,fetching:!0}).length}getQueryData(n,i){var o;return null==(o=this.queryCache.find(n,i))?void 0:o.state.data}ensureQueryData(n,i,o){let u=parseQueryArgs(n,i,o),l=this.getQueryData(u.queryKey);return l?Promise.resolve(l):this.fetchQuery(u)}getQueriesData(n){return this.getQueryCache().findAll(n).map(({queryKey:n,state:i})=>{let o=i.data;return[n,o]})}setQueryData(n,i,o){let u=this.queryCache.find(n),l=null==u?void 0:u.state.data,d=functionalUpdate(i,l);if(void 0===d)return;let x=parseQueryArgs(n),I=this.defaultQueryOptions(x);return this.queryCache.build(this,I).setData(d,{...o,manual:!0})}setQueriesData(n,i,o){return d.batch(()=>this.getQueryCache().findAll(n).map(({queryKey:n})=>[n,this.setQueryData(n,i,o)]))}getQueryState(n,i){var o;return null==(o=this.queryCache.find(n,i))?void 0:o.state}removeQueries(n,i){let[o]=parseFilterArgs(n,i),u=this.queryCache;d.batch(()=>{u.findAll(o).forEach(n=>{u.remove(n)})})}resetQueries(n,i,o){let[u,l]=parseFilterArgs(n,i,o),x=this.queryCache,I={type:"active",...u};return d.batch(()=>(x.findAll(u).forEach(n=>{n.reset()}),this.refetchQueries(I,l)))}cancelQueries(n,i,o){let[u,l={}]=parseFilterArgs(n,i,o);void 0===l.revert&&(l.revert=!0);let x=d.batch(()=>this.queryCache.findAll(u).map(n=>n.cancel(l)));return Promise.all(x).then(utils_noop).catch(utils_noop)}invalidateQueries(n,i,o){let[u,l]=parseFilterArgs(n,i,o);return d.batch(()=>{var n,i;if(this.queryCache.findAll(u).forEach(n=>{n.invalidate()}),"none"===u.refetchType)return Promise.resolve();let o={...u,type:null!=(n=null!=(i=u.refetchType)?i:u.type)?n:"active"};return this.refetchQueries(o,l)})}refetchQueries(n,i,o){let[u,l]=parseFilterArgs(n,i,o),x=d.batch(()=>this.queryCache.findAll(u).filter(n=>!n.isDisabled()).map(n=>{var i;return n.fetch(void 0,{...l,cancelRefetch:null==(i=null==l?void 0:l.cancelRefetch)||i,meta:{refetchPage:u.refetchPage}})})),I=Promise.all(x).then(utils_noop);return null!=l&&l.throwOnError||(I=I.catch(utils_noop)),I}fetchQuery(n,i,o){let u=parseQueryArgs(n,i,o),l=this.defaultQueryOptions(u);void 0===l.retry&&(l.retry=!1);let d=this.queryCache.build(this,l);return d.isStaleByTime(l.staleTime)?d.fetch(l):Promise.resolve(d.state.data)}prefetchQuery(n,i,o){return this.fetchQuery(n,i,o).then(utils_noop).catch(utils_noop)}fetchInfiniteQuery(n,i,o){let u=parseQueryArgs(n,i,o);return u.behavior=infiniteQueryBehavior(),this.fetchQuery(u)}prefetchInfiniteQuery(n,i,o){return this.fetchInfiniteQuery(n,i,o).then(utils_noop).catch(utils_noop)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(n){this.defaultOptions=n}setQueryDefaults(n,i){let o=this.queryDefaults.find(i=>hashQueryKey(n)===hashQueryKey(i.queryKey));o?o.defaultOptions=i:this.queryDefaults.push({queryKey:n,defaultOptions:i})}getQueryDefaults(n){if(!n)return;let i=this.queryDefaults.find(i=>partialDeepEqual(n,i.queryKey));return null==i?void 0:i.defaultOptions}setMutationDefaults(n,i){let o=this.mutationDefaults.find(i=>hashQueryKey(n)===hashQueryKey(i.mutationKey));o?o.defaultOptions=i:this.mutationDefaults.push({mutationKey:n,defaultOptions:i})}getMutationDefaults(n){if(!n)return;let i=this.mutationDefaults.find(i=>partialDeepEqual(n,i.mutationKey));return null==i?void 0:i.defaultOptions}defaultQueryOptions(n){if(null!=n&&n._defaulted)return n;let i={...this.defaultOptions.queries,...this.getQueryDefaults(null==n?void 0:n.queryKey),...n,_defaulted:!0};return!i.queryHash&&i.queryKey&&(i.queryHash=hashQueryKeyByOptions(i.queryKey,i)),void 0===i.refetchOnReconnect&&(i.refetchOnReconnect="always"!==i.networkMode),void 0===i.useErrorBoundary&&(i.useErrorBoundary=!!i.suspense),i}defaultMutationOptions(n){return null!=n&&n._defaulted?n:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==n?void 0:n.mutationKey),...n,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}};function dehydrateMutation(n){return{mutationKey:n.options.mutationKey,state:n.state}}function dehydrateQuery(n){return{state:n.state,queryKey:n.queryKey,queryHash:n.queryHash}}function defaultShouldDehydrateMutation(n){return n.state.isPaused}function defaultShouldDehydrateQuery(n){return"success"===n.state.status}function dehydrate(n,i={}){let o=[],u=[];if(!1!==i.dehydrateMutations){let u=i.shouldDehydrateMutation||defaultShouldDehydrateMutation;n.getMutationCache().getAll().forEach(n=>{u(n)&&o.push(dehydrateMutation(n))})}if(!1!==i.dehydrateQueries){let o=i.shouldDehydrateQuery||defaultShouldDehydrateQuery;n.getQueryCache().getAll().forEach(n=>{o(n)&&u.push(dehydrateQuery(n))})}return{mutations:o,queries:u}}function hydrate(n,i,o){if("object"!=typeof i||null===i)return;let u=n.getMutationCache(),l=n.getQueryCache(),d=i.mutations||[],x=i.queries||[];d.forEach(i=>{var l;u.build(n,{...null==o?void 0:null==(l=o.defaultOptions)?void 0:l.mutations,mutationKey:i.mutationKey},i.state)}),x.forEach(({queryKey:i,state:u,queryHash:d})=>{var x;let I=l.get(d);if(I){if(I.state.dataUpdatedAto,I=d.buster!==u;x||I?i.removeClient():hydrate(n,d.clientState,l)}else i.removeClient()}}catch(n){i.removeClient()}}async function persistQueryClientSave({queryClient:n,persister:i,buster:o="",dehydrateOptions:u}){let l={buster:o,timestamp:Date.now(),clientState:dehydrate(n,u)};await i.persistClient(l)}function persistQueryClientSubscribe(n){let i=n.queryClient.getQueryCache().subscribe(i=>{isCacheableEventType(i.type)&&persistQueryClientSave(n)}),o=n.queryClient.getMutationCache().subscribe(i=>{isCacheableEventType(i.type)&&persistQueryClientSave(n)});return()=>{i(),o()}}function persistQueryClient(n){let i,o=!1,u=persistQueryClientRestore(n).then(()=>{o||(i=persistQueryClientSubscribe(n))});return[()=>{o=!0,null==i||i()},u]}var W=o(36234),J=o(34270);let et=J.createContext(void 0),ei=J.createContext(!1);function getQueryClientContext(n,i){return n||(i&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=et),window.ReactQueryClientContext):et)}let useQueryClient=({context:n}={})=>{let i=J.useContext(getQueryClientContext(n,J.useContext(ei)));if(!i)throw Error("No QueryClient set, use QueryClientProvider to set one");return i},QueryClientProvider=({client:n,children:i,context:o,contextSharing:u=!1})=>{J.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]);let l=getQueryClientContext(o,u);return J.createElement(ei.Provider,{value:!o&&u},J.createElement(l.Provider,{value:n},i))},eo=J.createContext(!1),useIsRestoring=()=>J.useContext(eo);function createValue(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}eo.Provider;let es=J.createContext(createValue()),useQueryErrorResetBoundary=()=>J.useContext(es);var eu=o(33916);let MutationObserver=class MutationObserver extends Subscribable{constructor(n,i){super(),this.client=n,this.setOptions(i),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var i;let o=this.options;this.options=this.client.defaultMutationOptions(n),shallowEqualObjects(o,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(i=this.currentMutation)||i.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var n;null==(n=this.currentMutation)||n.removeObserver(this)}}onMutationUpdate(n){this.updateResult();let i={listeners:!0};"success"===n.type?i.onSuccess=!0:"error"===n.type&&(i.onError=!0),this.notify(i)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(n,i){return this.mutateOptions=i,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==n?n:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){let n=this.currentMutation?this.currentMutation.state:mutation_getDefaultState(),i={...n,isLoading:"loading"===n.status,isSuccess:"success"===n.status,isError:"error"===n.status,isIdle:"idle"===n.status,mutate:this.mutate,reset:this.reset};this.currentResult=i}notify(n){d.batch(()=>{if(this.mutateOptions&&this.hasListeners()){var i,o,u,l,d,x,I,R;n.onSuccess?(null==(i=(o=this.mutateOptions).onSuccess)||i.call(o,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(u=(l=this.mutateOptions).onSettled)||u.call(l,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)):n.onError&&(null==(d=(x=this.mutateOptions).onError)||d.call(x,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(I=(R=this.mutateOptions).onSettled)||I.call(R,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context))}n.listeners&&this.listeners.forEach(({listener:n})=>{n(this.currentResult)})})}};let ec=eu.useSyncExternalStore;function shouldThrowError(n,i){return"function"==typeof n?n(...i):!!n}function useMutation(n,i,o){let u=parseMutationArgs(n,i,o),l=useQueryClient({context:u.context}),[x]=J.useState(()=>new MutationObserver(l,u));J.useEffect(()=>{x.setOptions(u)},[x,u]);let I=ec(J.useCallback(n=>x.subscribe(d.batchCalls(n)),[x]),()=>x.getCurrentResult(),()=>x.getCurrentResult()),R=J.useCallback((n,i)=>{x.mutate(n,i).catch(useMutation_noop)},[x]);if(I.error&&shouldThrowError(x.options.useErrorBoundary,[I.error]))throw I.error;return{...I,mutate:R,mutateAsync:I.mutate}}function useMutation_noop(){}let QueryObserver=class QueryObserver extends Subscribable{constructor(n,i){super(),this.client=n,this.options=i,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(i)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),shouldFetchOnMount(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return shouldFetchOn(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return shouldFetchOn(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(n,i){let o=this.options,u=this.currentQuery;if(this.options=this.client.defaultQueryOptions(n),shallowEqualObjects(o,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=o.queryKey),this.updateQuery();let l=this.hasListeners();l&&shouldFetchOptionally(this.currentQuery,u,this.options,o)&&this.executeFetch(),this.updateResult(i),l&&(this.currentQuery!==u||this.options.enabled!==o.enabled||this.options.staleTime!==o.staleTime)&&this.updateStaleTimeout();let d=this.computeRefetchInterval();l&&(this.currentQuery!==u||this.options.enabled!==o.enabled||d!==this.currentRefetchInterval)&&this.updateRefetchInterval(d)}getOptimisticResult(n){let i=this.client.getQueryCache().build(this.client,n),o=this.createResult(i,n);return shouldAssignObserverCurrentProperties(this,o,n)&&(this.currentResult=o,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),o}getCurrentResult(){return this.currentResult}trackResult(n){let i={};return Object.keys(n).forEach(o=>{Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(o),n[o])})}),i}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:n,...i}={}){return this.fetch({...i,meta:{refetchPage:n}})}fetchOptimistic(n){let i=this.client.defaultQueryOptions(n),o=this.client.getQueryCache().build(this.client,i);return o.isFetchingOptimistic=!0,o.fetch().then(()=>this.createResult(o,i))}fetch(n){var i;return this.executeFetch({...n,cancelRefetch:null==(i=n.cancelRefetch)||i}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(n){this.updateQuery();let i=this.currentQuery.fetch(this.options,n);return null!=n&&n.throwOnError||(i=i.catch(utils_noop)),i}updateStaleTimeout(){if(this.clearStaleTimeout(),u||this.currentResult.isStale||!isValidTimeout(this.options.staleTime))return;let n=timeUntilStale(this.currentResult.dataUpdatedAt,this.options.staleTime);this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},n+1)}computeRefetchInterval(){var n;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(n=this.options.refetchInterval)&&n}updateRefetchInterval(n){this.clearRefetchInterval(),this.currentRefetchInterval=n,!u&&!1!==this.options.enabled&&isValidTimeout(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||x.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(n,i){let o;let u=this.currentQuery,l=this.options,d=this.currentResult,x=this.currentResultState,I=this.currentResultOptions,R=n!==u,j=R?n.state:this.currentQueryInitialState,W=R?this.currentResult:this.previousQueryResult,{state:J}=n,{dataUpdatedAt:et,error:ei,errorUpdatedAt:eo,fetchStatus:es,status:eu}=J,ec=!1,el=!1;if(i._optimisticResults){let o=this.hasListeners(),d=!o&&shouldFetchOnMount(n,i),x=o&&shouldFetchOptionally(n,u,i,l);(d||x)&&(es=canFetch(n.options.networkMode)?"fetching":"paused",et||(eu="loading")),"isRestoring"===i._optimisticResults&&(es="idle")}if(i.keepPreviousData&&!J.dataUpdatedAt&&null!=W&&W.isSuccess&&"error"!==eu)o=W.data,et=W.dataUpdatedAt,eu=W.status,ec=!0;else if(i.select&&void 0!==J.data){if(d&&J.data===(null==x?void 0:x.data)&&i.select===this.selectFn)o=this.selectResult;else try{this.selectFn=i.select,o=i.select(J.data),o=replaceData(null==d?void 0:d.data,o,i),this.selectResult=o,this.selectError=null}catch(n){this.selectError=n}}else o=J.data;if(void 0!==i.placeholderData&&void 0===o&&"loading"===eu){let n;if(null!=d&&d.isPlaceholderData&&i.placeholderData===(null==I?void 0:I.placeholderData))n=d.data;else if(n="function"==typeof i.placeholderData?i.placeholderData():i.placeholderData,i.select&&void 0!==n)try{n=i.select(n),this.selectError=null}catch(n){this.selectError=n}void 0!==n&&(eu="success",o=replaceData(null==d?void 0:d.data,n,i),el=!0)}this.selectError&&(ei=this.selectError,o=this.selectResult,eo=Date.now(),eu="error");let ed="fetching"===es,ef="loading"===eu,eh="error"===eu,ep={status:eu,fetchStatus:es,isLoading:ef,isSuccess:"success"===eu,isError:eh,isInitialLoading:ef&&ed,data:o,dataUpdatedAt:et,error:ei,errorUpdatedAt:eo,failureCount:J.fetchFailureCount,failureReason:J.fetchFailureReason,errorUpdateCount:J.errorUpdateCount,isFetched:J.dataUpdateCount>0||J.errorUpdateCount>0,isFetchedAfterMount:J.dataUpdateCount>j.dataUpdateCount||J.errorUpdateCount>j.errorUpdateCount,isFetching:ed,isRefetching:ed&&!ef,isLoadingError:eh&&0===J.dataUpdatedAt,isPaused:"paused"===es,isPlaceholderData:el,isPreviousData:ec,isRefetchError:eh&&0!==J.dataUpdatedAt,isStale:isStale(n,i),refetch:this.refetch,remove:this.remove};return ep}updateResult(n){let i=this.currentResult,o=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,shallowEqualObjects(o,i))return;this.currentResult=o;let u={cache:!0};(null==n?void 0:n.listeners)!==!1&&(()=>{if(!i)return!0;let{notifyOnChangeProps:n}=this.options,o="function"==typeof n?n():n;if("all"===o||!o&&!this.trackedProps.size)return!0;let u=new Set(null!=o?o:this.trackedProps);return this.options.useErrorBoundary&&u.add("error"),Object.keys(this.currentResult).some(n=>{let o=this.currentResult[n]!==i[n];return o&&u.has(n)})})()&&(u.listeners=!0),this.notify({...u,...n})}updateQuery(){let n=this.client.getQueryCache().build(this.client,this.options);if(n===this.currentQuery)return;let i=this.currentQuery;this.currentQuery=n,this.currentQueryInitialState=n.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==i||i.removeObserver(this),n.addObserver(this))}onQueryUpdate(n){let i={};"success"===n.type?i.onSuccess=!n.manual:"error"!==n.type||isCancelledError(n.error)||(i.onError=!0),this.updateResult(i),this.hasListeners()&&this.updateTimers()}notify(n){d.batch(()=>{var i,o,u,l,d,x,I,R;n.onSuccess?(null==(i=(o=this.options).onSuccess)||i.call(o,this.currentResult.data),null==(u=(l=this.options).onSettled)||u.call(l,this.currentResult.data,null)):n.onError&&(null==(d=(x=this.options).onError)||d.call(x,this.currentResult.error),null==(I=(R=this.options).onSettled)||I.call(R,void 0,this.currentResult.error)),n.listeners&&this.listeners.forEach(({listener:n})=>{n(this.currentResult)}),n.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}};function shouldLoadOnMount(n,i){return!1!==i.enabled&&!n.state.dataUpdatedAt&&!("error"===n.state.status&&!1===i.retryOnMount)}function shouldFetchOnMount(n,i){return shouldLoadOnMount(n,i)||n.state.dataUpdatedAt>0&&shouldFetchOn(n,i,i.refetchOnMount)}function shouldFetchOn(n,i,o){if(!1!==i.enabled){let u="function"==typeof o?o(n):o;return"always"===u||!1!==u&&isStale(n,i)}return!1}function shouldFetchOptionally(n,i,o,u){return!1!==o.enabled&&(n!==i||!1===u.enabled)&&(!o.suspense||"error"!==n.state.status)&&isStale(n,o)}function isStale(n,i){return n.isStaleByTime(i.staleTime)}function shouldAssignObserverCurrentProperties(n,i,o){return!o.keepPreviousData&&(void 0!==o.placeholderData?i.isPlaceholderData:!shallowEqualObjects(n.getCurrentResult(),i))}var el=o(40698);function createConfig({queryClient:n=new QueryClient({defaultOptions:{queries:{cacheTime:864e5,networkMode:"offlineFirst",refetchOnWindowFocus:!1,retry:0},mutations:{networkMode:"offlineFirst"}}}),storage:i=(0,W.o6)({storage:"undefined"!=typeof window&&window.localStorage?window.localStorage:W.wp}),persister:o="undefined"!=typeof window?createSyncStoragePersister({key:"cache",storage:i,serialize:n=>n,deserialize:n=>n}):void 0,...u}){let l=(0,W._g)({...u,storage:i});return o&&persistQueryClient({queryClient:n,persister:o,dehydrateOptions:{shouldDehydrateQuery:n=>0!==n.cacheTime&&!1!==n.queryKey[0].persist}}),Object.assign(l,{queryClient:n})}var ed=J.createContext(void 0),ef=J.createContext(void 0);function WagmiConfig({children:n,config:i}){return J.createElement(ed.Provider,{children:J.createElement(QueryClientProvider,{children:n,client:i.queryClient,context:ef}),value:i})}function useConfig(){let n=J.useContext(ed);if(!n)throw Error("`useConfig` must be used within `WagmiConfig`.\n\nRead more: https://wagmi.sh/react/WagmiConfig");return n}var eh=eu.useSyncExternalStore;function dist_isQueryKey(n){return Array.isArray(n)}function dist_isPlainObject(n){if(!dist_hasObjectPrototype(n))return!1;let i=n.constructor;if(void 0===i)return!0;let o=i.prototype;return!!(dist_hasObjectPrototype(o)&&o.hasOwnProperty("isPrototypeOf"))}function dist_hasObjectPrototype(n){return"[object Object]"===Object.prototype.toString.call(n)}function dist_parseQueryArgs(n,i,o){return dist_isQueryKey(n)?"function"==typeof i?{...o,queryKey:n,queryFn:i}:{...i,queryKey:n}:n}function queryKeyHashFn(n){return JSON.stringify(n,(n,i)=>dist_isPlainObject(i)?Object.keys(i).sort().reduce((n,o)=>(n[o]=i[o],n),{}):"bigint"==typeof i?i.toString():i)}function dist_shouldThrowError(n,i){return"function"==typeof n?n(...i):!!n}function trackResult(n,i){let o={};return Object.keys(n).forEach(u=>{Object.defineProperty(o,u,{configurable:!1,enumerable:!0,get:()=>(i.trackedProps.add(u),n[u])})}),o}function useBaseQuery(n,i){let o=useQueryClient({context:n.context}),u=useIsRestoring(),l=useQueryErrorResetBoundary(),x=o.defaultQueryOptions({...n,queryKeyHashFn});x._optimisticResults=u?"isRestoring":"optimistic",x.onError&&(x.onError=d.batchCalls(x.onError)),x.onSuccess&&(x.onSuccess=d.batchCalls(x.onSuccess)),x.onSettled&&(x.onSettled=d.batchCalls(x.onSettled)),x.suspense&&"number"!=typeof x.staleTime&&(x.staleTime=1e3),(x.suspense||x.useErrorBoundary)&&!l.isReset()&&(x.retryOnMount=!1);let[I]=J.useState(()=>new i(o,x)),R=I.getOptimisticResult(x);if(eh(J.useCallback(n=>u?()=>void 0:I.subscribe(d.batchCalls(n)),[I,u]),()=>I.getCurrentResult(),()=>I.getCurrentResult()),J.useEffect(()=>{l.clearReset()},[l]),J.useEffect(()=>{I.setOptions(x,{listeners:!1})},[x,I]),x.suspense&&R.isLoading&&R.isFetching&&!u)throw I.fetchOptimistic(x).then(({data:n})=>{x.onSuccess?.(n),x.onSettled?.(n,null)}).catch(n=>{l.clearReset(),x.onError?.(n),x.onSettled?.(void 0,n)});if(R.isError&&!l.isReset()&&!R.isFetching&&dist_shouldThrowError(x.useErrorBoundary,[R.error,I.getCurrentQuery()]))throw R.error;let j="loading"===R.status&&"idle"===R.fetchStatus?"idle":R.status,W="loading"===j&&"fetching"===R.fetchStatus;return{...R,defaultedOptions:x,isIdle:"idle"===j,isLoading:W,observer:I,status:j}}function dist_useMutation(n,i,o){let u=parseMutationArgs(n,i,o);return useMutation({context:ef,...u})}function useQuery(n,i,o){let u=dist_parseQueryArgs(n,i,o),l=useBaseQuery({context:ef,...u},QueryObserver),d={data:l.data,error:l.error,fetchStatus:l.fetchStatus,isError:l.isError,isFetched:l.isFetched,isFetchedAfterMount:l.isFetchedAfterMount,isFetching:l.isFetching,isIdle:l.isIdle,isLoading:l.isLoading,isRefetching:l.isRefetching,isSuccess:l.isSuccess,refetch:l.refetch,status:l.status,internal:{dataUpdatedAt:l.dataUpdatedAt,errorUpdatedAt:l.errorUpdatedAt,failureCount:l.failureCount,isFetchedAfterMount:l.isFetchedAfterMount,isLoadingError:l.isLoadingError,isPaused:l.isPaused,isPlaceholderData:l.isPlaceholderData,isPreviousData:l.isPreviousData,isRefetchError:l.isRefetchError,isStale:l.isStale,remove:l.remove}};return l.defaultedOptions.notifyOnChangeProps?d:trackResult(d,l.observer)}var useQueryClient2=()=>useQueryClient({context:ef});function usePublicClient({chainId:n}={}){return(0,el.useSyncExternalStoreWithSelector)(i=>(0,W.pC)({chainId:n},i),()=>(0,W.uV)({chainId:n}),()=>(0,W.uV)({chainId:n}),n=>n,(n,i)=>n.uid===i.uid)}function queryKey({chainId:n}){return[{entity:"walletClient",chainId:n,persist:!1}]}function queryFn({queryKey:[{chainId:n}]}){return(0,W.xz)({chainId:n})}function useWalletClient({chainId:n,suspense:i,onError:o,onSettled:u,onSuccess:l}={}){let{connector:d}=useAccount(),x=useChainId({chainId:n}),I=useQuery(queryKey({chainId:x}),queryFn,{cacheTime:0,enabled:!!d,staleTime:1/0,suspense:i,onError:o,onSettled:u,onSuccess:l}),R=useQueryClient2();return J.useEffect(()=>{let n=(0,W.Tb)({chainId:x},n=>{n?R.invalidateQueries(queryKey({chainId:x})):R.removeQueries(queryKey({chainId:x}))});return n},[R,x]),I}function useWebSocketPublicClient({chainId:n}={}){return(0,el.useSyncExternalStoreWithSelector)(i=>(0,W.fq)({chainId:n},i),()=>(0,W.jr)({chainId:n}),()=>(0,W.jr)({chainId:n}),n=>n,(n,i)=>n?.uid===i?.uid)}function useChainId({chainId:n}={}){let i=usePublicClient({chainId:n});return i.chain.id}function useForceUpdate(){let[,n]=J.useReducer(n=>n+1,0);return n}function queryKey2({chainId:n,scopeKey:i}){return[{entity:"blockNumber",chainId:n,scopeKey:i}]}function queryFn2({queryKey:[{chainId:n}]}){return(0,W.RQ)({chainId:n})}function useBlockNumber({cacheTime:n=0,chainId:i,enabled:o=!0,scopeKey:u,staleTime:l,suspense:d,watch:x=!1,onBlock:I,onError:R,onSettled:j,onSuccess:W}={}){let et=useChainId({chainId:i}),ei=usePublicClient({chainId:et}),eo=useWebSocketPublicClient({chainId:et}),es=useQueryClient2();return J.useEffect(()=>{if(!o||!x&&!I)return;let n=eo??ei,i=n.watchBlockNumber({onBlockNumber:n=>{x&&es.setQueryData(queryKey2({chainId:et,scopeKey:u}),n),I&&I(n)},emitOnBegin:!0});return i},[et,u,I,ei,es,x,eo,o]),useQuery(queryKey2({scopeKey:u,chainId:et}),queryFn2,{cacheTime:n,enabled:o,staleTime:l,suspense:d,onError:R,onSettled:j,onSuccess:W})}function useInvalidateOnBlock({chainId:n,enabled:i,queryKey:o}){let u=useQueryClient2(),l=J.useCallback(()=>u.invalidateQueries({queryKey:o},{cancelRefetch:!1}),[u,o]);useBlockNumber({chainId:n,enabled:i,onBlock:i?l:void 0,scopeKey:i?void 0:"idle"})}var isPlainObject2=n=>"object"==typeof n&&!Array.isArray(n);function useSyncExternalStoreWithTracked(n,i,o=i,u=W.vZ){let l=J.useRef([]),d=(0,el.useSyncExternalStoreWithSelector)(n,i,o,n=>n,(n,i)=>{if(isPlainObject2(n)&&isPlainObject2(i)&&l.current.length){for(let o of l.current){let l=u(n[o],i[o]);if(!l)return!1}return!0}return u(n,i)});if(isPlainObject2(d)){let n={...d};return Object.defineProperties(n,Object.entries(n).reduce((n,[i,o])=>({...n,[i]:{configurable:!1,enumerable:!0,get:()=>(l.current.includes(i)||l.current.push(i),o)}}),{})),n}return d}function useAccount({onConnect:n,onDisconnect:i}={}){let o=useConfig(),u=J.useCallback(n=>(0,W.uH)(n),[o]),l=useSyncExternalStoreWithTracked(u,W.D0),d=J.useRef(),x=d.current;return J.useEffect(()=>{x?.status!=="connected"&&"connected"===l.status&&n?.({address:l.address,connector:l.connector,isReconnected:x?.status==="reconnecting"||x?.status===void 0}),x?.status==="connected"&&"disconnected"===l.status&&i?.(),d.current=l},[n,i,x,l]),l}function queryKey4({address:n,chainId:i,formatUnits:o,scopeKey:u,token:l}){return[{entity:"balance",address:n,chainId:i,formatUnits:o,scopeKey:u,token:l}]}function queryFn4({queryKey:[{address:n,chainId:i,formatUnits:o,token:u}]}){if(!n)throw Error("address is required");return(0,W.EG)({address:n,chainId:i,formatUnits:o,token:u})}function useBalance({address:n,cacheTime:i,chainId:o,enabled:u=!0,formatUnits:l,scopeKey:d,staleTime:x,suspense:I,token:R,watch:j,onError:W,onSettled:et,onSuccess:ei}={}){let eo=useChainId({chainId:o}),es=J.useMemo(()=>queryKey4({address:n,chainId:eo,formatUnits:l,scopeKey:d,token:R}),[n,eo,l,d,R]),eu=useQuery(es,queryFn4,{cacheTime:i,enabled:!!(u&&n),staleTime:x,suspense:I,onError:W,onSettled:et,onSuccess:ei});return useInvalidateOnBlock({chainId:eo,enabled:!!(u&&j&&n),queryKey:es}),eu}var mutationKey=n=>[{entity:"connect",...n}],mutationFn=n=>{let{connector:i,chainId:o}=n;if(!i)throw Error("connector is required");return(0,W.$j)({connector:i,chainId:o})};function useConnect({chainId:n,connector:i,onError:o,onMutate:u,onSettled:l,onSuccess:d}={}){let x=useConfig(),{data:I,error:R,isError:j,isIdle:W,isLoading:et,isSuccess:ei,mutate:eo,mutateAsync:es,reset:eu,status:ec,variables:el}=dist_useMutation(mutationKey({connector:i,chainId:n}),mutationFn,{onError:o,onMutate:u,onSettled:l,onSuccess:d}),ed=J.useCallback(o=>eo({chainId:o?.chainId??n,connector:o?.connector??i}),[n,i,eo]),ef=J.useCallback(o=>es({chainId:o?.chainId??n,connector:o?.connector??i}),[n,i,es]);return{connect:ed,connectAsync:ef,connectors:x.connectors,data:I,error:R,isError:j,isIdle:W,isLoading:et,isSuccess:ei,pendingConnector:el?.connector,reset:eu,status:ec,variables:el}}var ep=[{entity:"disconnect"}],mutationFn2=()=>(0,W.zP)();function useDisconnect({onError:n,onMutate:i,onSettled:o,onSuccess:u}={}){let{error:l,isError:d,isIdle:x,isLoading:I,isSuccess:R,mutate:j,mutateAsync:W,reset:J,status:et}=dist_useMutation(ep,mutationFn2,{...n?{onError(i,o,u){n(i,u)}}:{},onMutate:i,...o?{onSettled(n,i,u,l){o(i,l)}}:{},...u?{onSuccess(n,i,o){u(o)}}:{}});return{disconnect:j,disconnectAsync:W,error:l,isError:d,isIdle:x,isLoading:I,isSuccess:R,reset:J,status:et}}function useNetwork(){let n=useConfig(),i=(0,J.useCallback)(n=>(0,W.QC)(n),[n]);return useSyncExternalStoreWithTracked(i,W.Hy)}var mutationKey5=n=>[{entity:"switchNetwork",...n}],mutationFn5=n=>{let{chainId:i}=n;if(!i)throw Error("chainId is required");return(0,W.If)({chainId:i})};function useSwitchNetwork({chainId:n,throwForSwitchChainNotSupported:i,onError:o,onMutate:u,onSettled:l,onSuccess:d}={}){let x,I;let R=useConfig(),j=useForceUpdate(),{data:W,error:et,isError:ei,isIdle:eo,isLoading:es,isSuccess:eu,mutate:ec,mutateAsync:el,reset:ed,status:ef,variables:eh}=dist_useMutation(mutationKey5({chainId:n}),mutationFn5,{onError:o,onMutate:u,onSettled:l,onSuccess:d}),ep=J.useCallback(i=>ec({chainId:i??n}),[n,ec]),em=J.useCallback(i=>el({chainId:i??n}),[n,el]);J.useEffect(()=>{let n=R.subscribe(({chains:n,connector:i})=>({chains:n,connector:i}),j);return n},[R,j]);let eg=!!R.connector?.switchChain;return(i||eg)&&(x=ep,I=em),{chains:R.chains??[],data:W,error:et,isError:ei,isIdle:eo,isLoading:es,isSuccess:eu,pendingChainId:eh?.chainId,reset:ed,status:ef,switchNetwork:x,switchNetworkAsync:I,variables:eh}}function queryKey10({chainId:n,name:i,scopeKey:o}){return[{entity:"ensAddress",chainId:n,name:i,scopeKey:o}]}function queryFn10({queryKey:[{chainId:n,name:i}]}){if(!i)throw Error("name is required");return(0,W.bh)({chainId:n,name:i})}function useEnsAddress({cacheTime:n,chainId:i,enabled:o=!0,name:u,scopeKey:l,staleTime:d=864e5,suspense:x,onError:I,onSettled:R,onSuccess:j}={}){let W=useChainId({chainId:i});return useQuery(queryKey10({chainId:W,name:u,scopeKey:l}),queryFn10,{cacheTime:n,enabled:!!(o&&W&&u),staleTime:d,suspense:x,onError:I,onSettled:R,onSuccess:j})}function queryKey11({name:n,chainId:i,scopeKey:o}){return[{entity:"ensAvatar",name:n,chainId:i,scopeKey:o}]}function queryFn11({queryKey:[{name:n,chainId:i}]}){if(!n)throw Error("name is required");return(0,W.w6)({name:n,chainId:i})}function useEnsAvatar({cacheTime:n,chainId:i,enabled:o=!0,name:u,scopeKey:l,staleTime:d=864e5,suspense:x,onError:I,onSettled:R,onSuccess:j}={}){let W=useChainId({chainId:i});return useQuery(queryKey11({name:u,chainId:W,scopeKey:l}),queryFn11,{cacheTime:n,enabled:!!(o&&u&&W),staleTime:d,suspense:x,onError:I,onSettled:R,onSuccess:j})}function queryKey12({address:n,chainId:i,scopeKey:o}){return[{entity:"ensName",address:n,chainId:i,scopeKey:o}]}function queryFn12({queryKey:[{address:n,chainId:i}]}){if(!n)throw Error("address is required");return(0,W.Lk)({address:n,chainId:i})}function useEnsName({address:n,cacheTime:i,chainId:o,enabled:u=!0,scopeKey:l,staleTime:d=864e5,suspense:x,onError:I,onSettled:R,onSuccess:j}={}){let W=useChainId({chainId:o});return useQuery(queryKey12({address:n,chainId:W,scopeKey:l}),queryFn12,{cacheTime:i,enabled:!!(u&&n&&W),staleTime:d,suspense:x,onError:I,onSettled:R,onSuccess:j})}},82826:function(n){"use strict";n.exports=JSON.parse('{"name":"@safe-global/safe-apps-sdk","version":"8.1.0","description":"SDK developed to integrate third-party apps with Safe app.","main":"dist/src/index.js","typings":"dist/src/index.d.ts","_files":["dist/**/*","src/**/*","CHANGELOG.md","README.md"],"sideEffects":false,"keywords":["Safe","sdk","apps"],"scripts":{"test":"jest","format-dist":"sed -i \'\' \'s/\\"files\\":/\\"_files\\":/\' dist/package.json","build":"yarn rimraf dist && tsc && yarn format-dist"},"author":"Safe (https://safe.global)","license":"MIT","dependencies":{"@safe-global/safe-gateway-typescript-sdk":"^3.5.3","viem":"^1.0.0"},"repository":{"type":"git","url":"git+https://github.com/safe-global/safe-apps-sdk.git"},"bugs":{"url":"https://github.com/safe-global/safe-apps-sdk/issues"},"homepage":"https://github.com/safe-global/safe-apps-sdk#readme","publishConfig":{"access":"public"}}')}}]); \ No newline at end of file diff --git a/_next/static/chunks/2193.f7e35a31c2b7168b.js b/_next/static/chunks/2193.f7e35a31c2b7168b.js new file mode 100644 index 0000000..59223c1 --- /dev/null +++ b/_next/static/chunks/2193.f7e35a31c2b7168b.js @@ -0,0 +1,54 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2193],{35859:function(r,i,c){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var l=c(61394);function readInt16BE(r,i){return void 0===i&&(i=0),(r[i+0]<<8|r[i+1])<<16>>16}function readUint16BE(r,i){return void 0===i&&(i=0),(r[i+0]<<8|r[i+1])>>>0}function readInt16LE(r,i){return void 0===i&&(i=0),(r[i+1]<<8|r[i])<<16>>16}function readUint16LE(r,i){return void 0===i&&(i=0),(r[i+1]<<8|r[i])>>>0}function writeUint16BE(r,i,c){return void 0===i&&(i=new Uint8Array(2)),void 0===c&&(c=0),i[c+0]=r>>>8,i[c+1]=r>>>0,i}function writeUint16LE(r,i,c){return void 0===i&&(i=new Uint8Array(2)),void 0===c&&(c=0),i[c+0]=r>>>0,i[c+1]=r>>>8,i}function readInt32BE(r,i){return void 0===i&&(i=0),r[i]<<24|r[i+1]<<16|r[i+2]<<8|r[i+3]}function readUint32BE(r,i){return void 0===i&&(i=0),(r[i]<<24|r[i+1]<<16|r[i+2]<<8|r[i+3])>>>0}function readInt32LE(r,i){return void 0===i&&(i=0),r[i+3]<<24|r[i+2]<<16|r[i+1]<<8|r[i]}function readUint32LE(r,i){return void 0===i&&(i=0),(r[i+3]<<24|r[i+2]<<16|r[i+1]<<8|r[i])>>>0}function writeUint32BE(r,i,c){return void 0===i&&(i=new Uint8Array(4)),void 0===c&&(c=0),i[c+0]=r>>>24,i[c+1]=r>>>16,i[c+2]=r>>>8,i[c+3]=r>>>0,i}function writeUint32LE(r,i,c){return void 0===i&&(i=new Uint8Array(4)),void 0===c&&(c=0),i[c+0]=r>>>0,i[c+1]=r>>>8,i[c+2]=r>>>16,i[c+3]=r>>>24,i}function readInt64BE(r,i){void 0===i&&(i=0);var c=readInt32BE(r,i),l=readInt32BE(r,i+4);return 4294967296*c+l-(l>>31)*4294967296}function readUint64BE(r,i){return void 0===i&&(i=0),4294967296*readUint32BE(r,i)+readUint32BE(r,i+4)}function readInt64LE(r,i){void 0===i&&(i=0);var c=readInt32LE(r,i);return 4294967296*readInt32LE(r,i+4)+c-(c>>31)*4294967296}function readUint64LE(r,i){void 0===i&&(i=0);var c=readUint32LE(r,i);return 4294967296*readUint32LE(r,i+4)+c}function writeUint64BE(r,i,c){return void 0===i&&(i=new Uint8Array(8)),void 0===c&&(c=0),writeUint32BE(r/4294967296>>>0,i,c),writeUint32BE(r>>>0,i,c+4),i}function writeUint64LE(r,i,c){return void 0===i&&(i=new Uint8Array(8)),void 0===c&&(c=0),writeUint32LE(r>>>0,i,c),writeUint32LE(r/4294967296>>>0,i,c+4),i}function readUintBE(r,i,c){if(void 0===c&&(c=0),r%8!=0)throw Error("readUintBE supports only bitLengths divisible by 8");if(r/8>i.length-c)throw Error("readUintBE: array is too short for the given bitLength");for(var l=0,p=1,D=r/8+c-1;D>=c;D--)l+=i[D]*p,p*=256;return l}function readUintLE(r,i,c){if(void 0===c&&(c=0),r%8!=0)throw Error("readUintLE supports only bitLengths divisible by 8");if(r/8>i.length-c)throw Error("readUintLE: array is too short for the given bitLength");for(var l=0,p=1,D=c;D=p;S--)c[S]=i/D&255,D*=256;return c}function writeUintLE(r,i,c,p){if(void 0===c&&(c=new Uint8Array(r/8)),void 0===p&&(p=0),r%8!=0)throw Error("writeUintLE supports only bitLengths divisible by 8");if(!l.isSafeInteger(i))throw Error("writeUintLE value must be an integer");for(var D=1,S=p;S16)throw Error("ChaCha20Poly1305: incorrect nonce length");var S,C=new Uint8Array(16);C.set(r,C.length-r.length);var P=new Uint8Array(32);l.stream(this._key,C,P,4);var M=i.length+this.tagLength;if(p){if(p.length!==M)throw Error("ChaCha20Poly1305: incorrect destination length");S=p}else S=new Uint8Array(M);return l.streamXOR(this._key,C,i,S,4),this._authenticate(S.subarray(S.length-this.tagLength,S.length),P,S.subarray(0,S.length-this.tagLength),c),D.wipe(C),S},ChaCha20Poly1305.prototype.open=function(r,i,c,p){if(r.length>16)throw Error("ChaCha20Poly1305: incorrect nonce length");if(i.length0&&C.update(P.subarray(l.length%16))),C.update(c),c.length%16>0&&C.update(P.subarray(c.length%16));var M=new Uint8Array(8);l&&S.writeUint64LE(l.length,M),C.update(M),S.writeUint64LE(c.length,M),C.update(M);for(var U=C.digest(),q=0;q>>16|eI<<16)|0,ey=ey>>>20|ey<<12,ex^=ea=ea+e_|0,e_^=eE=eE+(ex=ex>>>16|ex<<16)|0,e_=e_>>>20|e_<<12,eC^=ed=ed+em|0,em^=eD=eD+(eC=eC>>>16|eC<<16)|0,em=em>>>20|em<<12,eP^=ef=ef+eb|0,eb^=eS=eS+(eP=eP>>>16|eP<<16)|0,eb=eb>>>20|eb<<12,eC^=ed=ed+em|0,em^=eD=eD+(eC=eC>>>24|eC<<8)|0,em=em>>>25|em<<7,eP^=ef=ef+eb|0,eb^=eS=eS+(eP=eP>>>24|eP<<8)|0,eb=eb>>>25|eb<<7,ex^=ea=ea+e_|0,e_^=eE=eE+(ex=ex>>>24|ex<<8)|0,e_=e_>>>25|e_<<7,eI^=eo=eo+ey|0,ey^=ew=ew+(eI=eI>>>24|eI<<8)|0,ey=ey>>>25|ey<<7,eP^=eo=eo+e_|0,e_^=eD=eD+(eP=eP>>>16|eP<<16)|0,e_=e_>>>20|e_<<12,eI^=ea=ea+em|0,em^=eS=eS+(eI=eI>>>16|eI<<16)|0,em=em>>>20|em<<12,ex^=ed=ed+eb|0,eb^=ew=ew+(ex=ex>>>16|ex<<16)|0,eb=eb>>>20|eb<<12,eC^=ef=ef+ey|0,ey^=eE=eE+(eC=eC>>>16|eC<<16)|0,ey=ey>>>20|ey<<12,ex^=ed=ed+eb|0,eb^=ew=ew+(ex=ex>>>24|ex<<8)|0,eb=eb>>>25|eb<<7,eC^=ef=ef+ey|0,ey^=eE=eE+(eC=eC>>>24|eC<<8)|0,ey=ey>>>25|ey<<7,eI^=ea=ea+em|0,em^=eS=eS+(eI=eI>>>24|eI<<8)|0,em=em>>>25|em<<7,eP^=eo=eo+e_|0,e_^=eD=eD+(eP=eP>>>24|eP<<8)|0,e_=e_>>>25|e_<<7;l.writeUint32LE(eo+1634760805|0,r,0),l.writeUint32LE(ea+857760878|0,r,4),l.writeUint32LE(ed+2036477234|0,r,8),l.writeUint32LE(ef+1797285236|0,r,12),l.writeUint32LE(ey+p|0,r,16),l.writeUint32LE(e_+D|0,r,20),l.writeUint32LE(em+S|0,r,24),l.writeUint32LE(eb+C|0,r,28),l.writeUint32LE(ew+P|0,r,32),l.writeUint32LE(eE+M|0,r,36),l.writeUint32LE(eD+U|0,r,40),l.writeUint32LE(eS+q|0,r,44),l.writeUint32LE(eI+J|0,r,48),l.writeUint32LE(ex+X|0,r,52),l.writeUint32LE(eC+ee|0,r,56),l.writeUint32LE(eP+et|0,r,60)}function streamXOR(r,i,c,l,D){if(void 0===D&&(D=0),32!==r.length)throw Error("ChaCha: key size must be 32 bytes");if(l.length>>=8,i++;if(l>0)throw Error("ChaCha: counter overflow")}i.streamXOR=streamXOR,i.stream=stream},91216:function(r,i){"use strict";function select(r,i,c){return~(r-1)&i|r-1&c}function lessOrEqual(r,i){return(0|r)-(0|i)-1>>>31&1}function compare(r,i){if(r.length!==i.length)return 0;for(var c=0,l=0;l>>8}function equal(r,i){return 0!==r.length&&0!==i.length&&0!==compare(r,i)}Object.defineProperty(i,"__esModule",{value:!0}),i.select=select,i.lessOrEqual=lessOrEqual,i.compare=compare,i.equal=equal},56867:function(r,i,c){"use strict";i.Xx=i._w=i.aP=i.KS=i.jQ=void 0,c(69790);let l=c(61910);function gf(r){let i=new Float64Array(16);if(r)for(let c=0;c>16&1),c[r-1]&=65535;c[15]=l[15]-32767-(c[14]>>16&1);let r=c[15]>>16&1;c[14]&=65535,sel25519(l,c,1-r)}for(let i=0;i<16;i++)r[2*i]=255&l[i],r[2*i+1]=l[i]>>8}function verify32(r,i){let c=0;for(let l=0;l<32;l++)c|=r[l]^i[l];return(1&c-1>>>8)-1}function neq25519(r,i){let c=new Uint8Array(32),l=new Uint8Array(32);return pack25519(c,r),pack25519(l,i),verify32(c,l)}function par25519(r){let i=new Uint8Array(32);return pack25519(i,r),1&i[0]}function unpack25519(r,i){for(let c=0;c<16;c++)r[c]=i[2*c]+(i[2*c+1]<<8);r[15]&=32767}function add(r,i,c){for(let l=0;l<16;l++)r[l]=i[l]+c[l]}function sub(r,i,c){for(let l=0;l<16;l++)r[l]=i[l]-c[l]}function mul(r,i,c){let l,p,D=0,S=0,C=0,P=0,M=0,U=0,q=0,J=0,X=0,ee=0,et=0,eo=0,ea=0,ed=0,ef=0,ey=0,e_=0,em=0,eb=0,ew=0,eE=0,eD=0,eS=0,eI=0,ex=0,eC=0,eP=0,eO=0,eA=0,eR=0,eT=0,eN=c[0],eL=c[1],ek=c[2],ej=c[3],eM=c[4],eU=c[5],ez=c[6],eB=c[7],eH=c[8],eF=c[9],e$=c[10],eK=c[11],eV=c[12],eW=c[13],eG=c[14],eJ=c[15];D+=(l=i[0])*eN,S+=l*eL,C+=l*ek,P+=l*ej,M+=l*eM,U+=l*eU,q+=l*ez,J+=l*eB,X+=l*eH,ee+=l*eF,et+=l*e$,eo+=l*eK,ea+=l*eV,ed+=l*eW,ef+=l*eG,ey+=l*eJ,S+=(l=i[1])*eN,C+=l*eL,P+=l*ek,M+=l*ej,U+=l*eM,q+=l*eU,J+=l*ez,X+=l*eB,ee+=l*eH,et+=l*eF,eo+=l*e$,ea+=l*eK,ed+=l*eV,ef+=l*eW,ey+=l*eG,e_+=l*eJ,C+=(l=i[2])*eN,P+=l*eL,M+=l*ek,U+=l*ej,q+=l*eM,J+=l*eU,X+=l*ez,ee+=l*eB,et+=l*eH,eo+=l*eF,ea+=l*e$,ed+=l*eK,ef+=l*eV,ey+=l*eW,e_+=l*eG,em+=l*eJ,P+=(l=i[3])*eN,M+=l*eL,U+=l*ek,q+=l*ej,J+=l*eM,X+=l*eU,ee+=l*ez,et+=l*eB,eo+=l*eH,ea+=l*eF,ed+=l*e$,ef+=l*eK,ey+=l*eV,e_+=l*eW,em+=l*eG,eb+=l*eJ,M+=(l=i[4])*eN,U+=l*eL,q+=l*ek,J+=l*ej,X+=l*eM,ee+=l*eU,et+=l*ez,eo+=l*eB,ea+=l*eH,ed+=l*eF,ef+=l*e$,ey+=l*eK,e_+=l*eV,em+=l*eW,eb+=l*eG,ew+=l*eJ,U+=(l=i[5])*eN,q+=l*eL,J+=l*ek,X+=l*ej,ee+=l*eM,et+=l*eU,eo+=l*ez,ea+=l*eB,ed+=l*eH,ef+=l*eF,ey+=l*e$,e_+=l*eK,em+=l*eV,eb+=l*eW,ew+=l*eG,eE+=l*eJ,q+=(l=i[6])*eN,J+=l*eL,X+=l*ek,ee+=l*ej,et+=l*eM,eo+=l*eU,ea+=l*ez,ed+=l*eB,ef+=l*eH,ey+=l*eF,e_+=l*e$,em+=l*eK,eb+=l*eV,ew+=l*eW,eE+=l*eG,eD+=l*eJ,J+=(l=i[7])*eN,X+=l*eL,ee+=l*ek,et+=l*ej,eo+=l*eM,ea+=l*eU,ed+=l*ez,ef+=l*eB,ey+=l*eH,e_+=l*eF,em+=l*e$,eb+=l*eK,ew+=l*eV,eE+=l*eW,eD+=l*eG,eS+=l*eJ,X+=(l=i[8])*eN,ee+=l*eL,et+=l*ek,eo+=l*ej,ea+=l*eM,ed+=l*eU,ef+=l*ez,ey+=l*eB,e_+=l*eH,em+=l*eF,eb+=l*e$,ew+=l*eK,eE+=l*eV,eD+=l*eW,eS+=l*eG,eI+=l*eJ,ee+=(l=i[9])*eN,et+=l*eL,eo+=l*ek,ea+=l*ej,ed+=l*eM,ef+=l*eU,ey+=l*ez,e_+=l*eB,em+=l*eH,eb+=l*eF,ew+=l*e$,eE+=l*eK,eD+=l*eV,eS+=l*eW,eI+=l*eG,ex+=l*eJ,et+=(l=i[10])*eN,eo+=l*eL,ea+=l*ek,ed+=l*ej,ef+=l*eM,ey+=l*eU,e_+=l*ez,em+=l*eB,eb+=l*eH,ew+=l*eF,eE+=l*e$,eD+=l*eK,eS+=l*eV,eI+=l*eW,ex+=l*eG,eC+=l*eJ,eo+=(l=i[11])*eN,ea+=l*eL,ed+=l*ek,ef+=l*ej,ey+=l*eM,e_+=l*eU,em+=l*ez,eb+=l*eB,ew+=l*eH,eE+=l*eF,eD+=l*e$,eS+=l*eK,eI+=l*eV,ex+=l*eW,eC+=l*eG,eP+=l*eJ,ea+=(l=i[12])*eN,ed+=l*eL,ef+=l*ek,ey+=l*ej,e_+=l*eM,em+=l*eU,eb+=l*ez,ew+=l*eB,eE+=l*eH,eD+=l*eF,eS+=l*e$,eI+=l*eK,ex+=l*eV,eC+=l*eW,eP+=l*eG,eO+=l*eJ,ed+=(l=i[13])*eN,ef+=l*eL,ey+=l*ek,e_+=l*ej,em+=l*eM,eb+=l*eU,ew+=l*ez,eE+=l*eB,eD+=l*eH,eS+=l*eF,eI+=l*e$,ex+=l*eK,eC+=l*eV,eP+=l*eW,eO+=l*eG,eA+=l*eJ,ef+=(l=i[14])*eN,ey+=l*eL,e_+=l*ek,em+=l*ej,eb+=l*eM,ew+=l*eU,eE+=l*ez,eD+=l*eB,eS+=l*eH,eI+=l*eF,ex+=l*e$,eC+=l*eK,eP+=l*eV,eO+=l*eW,eA+=l*eG,eR+=l*eJ,ey+=(l=i[15])*eN,e_+=l*eL,em+=l*ek,eb+=l*ej,ew+=l*eM,eE+=l*eU,eD+=l*ez,eS+=l*eB,eI+=l*eH,ex+=l*eF,eC+=l*e$,eP+=l*eK,eO+=l*eV,eA+=l*eW,eR+=l*eG,eT+=l*eJ,D+=38*e_,S+=38*em,C+=38*eb,P+=38*ew,M+=38*eE,U+=38*eD,q+=38*eS,J+=38*eI,X+=38*ex,ee+=38*eC,et+=38*eP,eo+=38*eO,ea+=38*eA,ed+=38*eR,ef+=38*eT,p=Math.floor((l=D+(p=1)+65535)/65536),D=l-65536*p,p=Math.floor((l=S+p+65535)/65536),S=l-65536*p,p=Math.floor((l=C+p+65535)/65536),C=l-65536*p,p=Math.floor((l=P+p+65535)/65536),P=l-65536*p,p=Math.floor((l=M+p+65535)/65536),M=l-65536*p,p=Math.floor((l=U+p+65535)/65536),U=l-65536*p,p=Math.floor((l=q+p+65535)/65536),q=l-65536*p,p=Math.floor((l=J+p+65535)/65536),J=l-65536*p,p=Math.floor((l=X+p+65535)/65536),X=l-65536*p,p=Math.floor((l=ee+p+65535)/65536),ee=l-65536*p,p=Math.floor((l=et+p+65535)/65536),et=l-65536*p,p=Math.floor((l=eo+p+65535)/65536),eo=l-65536*p,p=Math.floor((l=ea+p+65535)/65536),ea=l-65536*p,p=Math.floor((l=ed+p+65535)/65536),ed=l-65536*p,p=Math.floor((l=ef+p+65535)/65536),ef=l-65536*p,p=Math.floor((l=ey+p+65535)/65536),ey=l-65536*p,D+=p-1+37*(p-1),p=Math.floor((l=D+(p=1)+65535)/65536),D=l-65536*p,p=Math.floor((l=S+p+65535)/65536),S=l-65536*p,p=Math.floor((l=C+p+65535)/65536),C=l-65536*p,p=Math.floor((l=P+p+65535)/65536),P=l-65536*p,p=Math.floor((l=M+p+65535)/65536),M=l-65536*p,p=Math.floor((l=U+p+65535)/65536),U=l-65536*p,p=Math.floor((l=q+p+65535)/65536),q=l-65536*p,p=Math.floor((l=J+p+65535)/65536),J=l-65536*p,p=Math.floor((l=X+p+65535)/65536),X=l-65536*p,p=Math.floor((l=ee+p+65535)/65536),ee=l-65536*p,p=Math.floor((l=et+p+65535)/65536),et=l-65536*p,p=Math.floor((l=eo+p+65535)/65536),eo=l-65536*p,p=Math.floor((l=ea+p+65535)/65536),ea=l-65536*p,p=Math.floor((l=ed+p+65535)/65536),ed=l-65536*p,p=Math.floor((l=ef+p+65535)/65536),ef=l-65536*p,p=Math.floor((l=ey+p+65535)/65536),ey=l-65536*p,D+=p-1+37*(p-1),r[0]=D,r[1]=S,r[2]=C,r[3]=P,r[4]=M,r[5]=U,r[6]=q,r[7]=J,r[8]=X,r[9]=ee,r[10]=et,r[11]=eo,r[12]=ea,r[13]=ed,r[14]=ef,r[15]=ey}function inv25519(r,i){let c;let l=gf();for(c=0;c<16;c++)l[c]=i[c];for(c=253;c>=0;c--)mul(l,l,l),2!==c&&4!==c&&mul(l,l,i);for(c=0;c<16;c++)r[c]=l[c]}function pow2523(r,i){let c;let l=gf();for(c=0;c<16;c++)l[c]=i[c];for(c=250;c>=0;c--)mul(l,l,l),1!==c&&mul(l,l,i);for(c=0;c<16;c++)r[c]=l[c]}function edadd(r,i){let c=gf(),l=gf(),p=gf(),D=gf(),S=gf(),C=gf(),M=gf(),U=gf(),q=gf();sub(c,r[1],r[0]),sub(q,i[1],i[0]),mul(c,c,q),add(l,r[0],r[1]),add(q,i[0],i[1]),mul(l,l,q),mul(p,r[3],i[3]),mul(p,p,P),mul(D,r[2],i[2]),add(D,D,D),sub(S,l,c),sub(C,D,p),add(M,D,p),add(U,l,c),mul(r[0],S,C),mul(r[1],U,M),mul(r[2],M,C),mul(r[3],S,U)}function cswap(r,i,c){for(let l=0;l<4;l++)sel25519(r[l],i[l],c)}function pack(r,i){let c=gf(),l=gf(),p=gf();inv25519(p,i[2]),mul(c,i[0],p),mul(l,i[1],p),pack25519(r,l),r[31]^=par25519(c)<<7}function scalarmult(r,i,c){set25519(r[0],D),set25519(r[1],S),set25519(r[2],S),set25519(r[3],D);for(let l=255;l>=0;--l){let p=c[l/8|0]>>(7&l)&1;cswap(r,i,p),edadd(i,r),edadd(r,r),cswap(r,i,p)}}function scalarbase(r,i){let c=[gf(),gf(),gf(),gf()];set25519(c[0],M),set25519(c[1],U),set25519(c[2],S),mul(c[3],M,U),scalarmult(r,c,i)}function generateKeyPairFromSeed(r){if(r.length!==i.aP)throw Error(`ed25519: seed must be ${i.aP} bytes`);let c=(0,l.hash)(r);c[0]&=248,c[31]&=127,c[31]|=64;let p=new Uint8Array(32),D=[gf(),gf(),gf(),gf()];scalarbase(D,c),pack(p,D);let S=new Uint8Array(64);return S.set(r),S.set(p,32),{publicKey:p,secretKey:S}}i._w=generateKeyPairFromSeed;let J=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function modL(r,i){let c,l,p,D;for(l=63;l>=32;--l){for(c=0,p=l-32,D=l-12;p>4)*J[p],c=i[p]>>8,i[p]&=255;for(p=0;p<32;p++)i[p]-=c*J[p];for(l=0;l<32;l++)i[l+1]+=i[l]>>8,r[l]=255&i[l]}function reduce(r){let i=new Float64Array(64);for(let c=0;c<64;c++)i[c]=r[c];for(let i=0;i<64;i++)r[i]=0;modL(r,i)}function sign(r,i){let c=new Float64Array(64),p=[gf(),gf(),gf(),gf()],D=(0,l.hash)(r.subarray(0,32));D[0]&=248,D[31]&=127,D[31]|=64;let S=new Uint8Array(64);S.set(D.subarray(32),32);let C=new l.SHA512;C.update(S.subarray(32)),C.update(i);let P=C.digest();C.clean(),reduce(P),scalarbase(p,P),pack(S,p),C.reset(),C.update(S.subarray(0,32)),C.update(r.subarray(32)),C.update(i);let M=C.digest();reduce(M);for(let r=0;r<32;r++)c[r]=P[r];for(let r=0;r<32;r++)for(let i=0;i<32;i++)c[r+i]+=M[r]*D[i];return modL(S.subarray(32),c),S}i.Xx=sign},16203:function(r,i){"use strict";function isSerializableHash(r){return void 0!==r.saveState&&void 0!==r.restoreState&&void 0!==r.cleanSavedState}Object.defineProperty(i,"__esModule",{value:!0}),i.isSerializableHash=isSerializableHash},36274:function(r,i,c){"use strict";var l=c(84430),p=c(62942),D=function(){function HKDF(r,i,c,p){void 0===c&&(c=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=r,this._info=p;var D=l.hmac(this._hash,c,i);this._hmac=new l.HMAC(r,D),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return HKDF.prototype._fillBuffer=function(){this._counter[0]++;var r=this._counter[0];if(0===r)throw Error("hkdf: cannot expand more");this._hmac.reset(),r>1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},HKDF.prototype.expand=function(r){for(var i=new Uint8Array(r),c=0;cthis.blockSize?this._inner.update(i).finish(c).clean():c.set(i);for(var p=0;p>>16&65535)*l+c*(i>>>16&65535)<<16>>>0)|0}function add(r,i){return r+i|0}function sub(r,i){return r-i|0}function rotl(r,i){return r<>>32-i}function rotr(r,i){return r<<32-i|r>>>i}function isIntegerShim(r){return"number"==typeof r&&isFinite(r)&&Math.floor(r)===r}Object.defineProperty(i,"__esModule",{value:!0}),i.mul=Math.imul||imulShim,i.add=add,i.sub=sub,i.rotl=rotl,i.rotr=rotr,i.isInteger=Number.isInteger||isIntegerShim,i.MAX_SAFE_INTEGER=9007199254740991,i.isSafeInteger=function(r){return i.isInteger(r)&&r>=-i.MAX_SAFE_INTEGER&&r<=i.MAX_SAFE_INTEGER}},63786:function(r,i,c){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var l=c(91216),p=c(62942);i.DIGEST_LENGTH=16;var D=function(){function Poly1305(r){this.digestLength=i.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var c=r[0]|r[1]<<8;this._r[0]=8191&c;var l=r[2]|r[3]<<8;this._r[1]=(c>>>13|l<<3)&8191;var p=r[4]|r[5]<<8;this._r[2]=(l>>>10|p<<6)&7939;var D=r[6]|r[7]<<8;this._r[3]=(p>>>7|D<<9)&8191;var S=r[8]|r[9]<<8;this._r[4]=(D>>>4|S<<12)&255,this._r[5]=S>>>1&8190;var C=r[10]|r[11]<<8;this._r[6]=(S>>>14|C<<2)&8191;var P=r[12]|r[13]<<8;this._r[7]=(C>>>11|P<<5)&8065;var M=r[14]|r[15]<<8;this._r[8]=(P>>>8|M<<8)&8191,this._r[9]=M>>>5&127,this._pad[0]=r[16]|r[17]<<8,this._pad[1]=r[18]|r[19]<<8,this._pad[2]=r[20]|r[21]<<8,this._pad[3]=r[22]|r[23]<<8,this._pad[4]=r[24]|r[25]<<8,this._pad[5]=r[26]|r[27]<<8,this._pad[6]=r[28]|r[29]<<8,this._pad[7]=r[30]|r[31]<<8}return Poly1305.prototype._blocks=function(r,i,c){for(var l=this._fin?0:2048,p=this._h[0],D=this._h[1],S=this._h[2],C=this._h[3],P=this._h[4],M=this._h[5],U=this._h[6],q=this._h[7],J=this._h[8],X=this._h[9],ee=this._r[0],et=this._r[1],eo=this._r[2],ea=this._r[3],ed=this._r[4],ef=this._r[5],ey=this._r[6],e_=this._r[7],em=this._r[8],eb=this._r[9];c>=16;){var ew,eE=r[i+0]|r[i+1]<<8;p+=8191&eE;var eD=r[i+2]|r[i+3]<<8;D+=(eE>>>13|eD<<3)&8191;var eS=r[i+4]|r[i+5]<<8;S+=(eD>>>10|eS<<6)&8191;var eI=r[i+6]|r[i+7]<<8;C+=(eS>>>7|eI<<9)&8191;var ex=r[i+8]|r[i+9]<<8;P+=(eI>>>4|ex<<12)&8191,M+=ex>>>1&8191;var eC=r[i+10]|r[i+11]<<8;U+=(ex>>>14|eC<<2)&8191;var eP=r[i+12]|r[i+13]<<8;q+=(eC>>>11|eP<<5)&8191;var eO=r[i+14]|r[i+15]<<8;J+=(eP>>>8|eO<<8)&8191,X+=eO>>>5|l;var eA=0;eA=(ew=0+p*ee+D*(5*eb)+S*(5*em)+C*(5*e_)+P*(5*ey))>>>13,ew&=8191,ew+=M*(5*ef)+U*(5*ed)+q*(5*ea)+J*(5*eo)+X*(5*et),eA+=ew>>>13,ew&=8191;var eR=eA;eR+=p*et+D*ee+S*(5*eb)+C*(5*em)+P*(5*e_),eA=eR>>>13,eR&=8191,eR+=M*(5*ey)+U*(5*ef)+q*(5*ed)+J*(5*ea)+X*(5*eo),eA+=eR>>>13,eR&=8191;var eT=eA;eT+=p*eo+D*et+S*ee+C*(5*eb)+P*(5*em),eA=eT>>>13,eT&=8191,eT+=M*(5*e_)+U*(5*ey)+q*(5*ef)+J*(5*ed)+X*(5*ea),eA+=eT>>>13,eT&=8191;var eN=eA;eN+=p*ea+D*eo+S*et+C*ee+P*(5*eb),eA=eN>>>13,eN&=8191,eN+=M*(5*em)+U*(5*e_)+q*(5*ey)+J*(5*ef)+X*(5*ed),eA+=eN>>>13,eN&=8191;var eL=eA;eL+=p*ed+D*ea+S*eo+C*et+P*ee,eA=eL>>>13,eL&=8191,eL+=M*(5*eb)+U*(5*em)+q*(5*e_)+J*(5*ey)+X*(5*ef),eA+=eL>>>13,eL&=8191;var ek=eA;ek+=p*ef+D*ed+S*ea+C*eo+P*et,eA=ek>>>13,ek&=8191,ek+=M*ee+U*(5*eb)+q*(5*em)+J*(5*e_)+X*(5*ey),eA+=ek>>>13,ek&=8191;var ej=eA;ej+=p*ey+D*ef+S*ed+C*ea+P*eo,eA=ej>>>13,ej&=8191,ej+=M*et+U*ee+q*(5*eb)+J*(5*em)+X*(5*e_),eA+=ej>>>13,ej&=8191;var eM=eA;eM+=p*e_+D*ey+S*ef+C*ed+P*ea,eA=eM>>>13,eM&=8191,eM+=M*eo+U*et+q*ee+J*(5*eb)+X*(5*em),eA+=eM>>>13,eM&=8191;var eU=eA;eU+=p*em+D*e_+S*ey+C*ef+P*ed,eA=eU>>>13,eU&=8191,eU+=M*ea+U*eo+q*et+J*ee+X*(5*eb),eA+=eU>>>13,eU&=8191;var ez=eA;ez+=p*eb+D*em+S*e_+C*ey+P*ef,eA=ez>>>13,ez&=8191,ez+=M*ed+U*ea+q*eo+J*et+X*ee,eA+=ez>>>13,ez&=8191,ew=8191&(eA=(eA=(eA<<2)+eA|0)+ew|0),eA>>>=13,eR+=eA,p=ew,D=eR,S=eT,C=eN,P=eL,M=ek,U=ej,q=eM,J=eU,X=ez,i+=16,c-=16}this._h[0]=p,this._h[1]=D,this._h[2]=S,this._h[3]=C,this._h[4]=P,this._h[5]=M,this._h[6]=U,this._h[7]=q,this._h[8]=J,this._h[9]=X},Poly1305.prototype.finish=function(r,i){void 0===i&&(i=0);var c,l,p,D,S=new Uint16Array(10);if(this._leftover){for(D=this._leftover,this._buffer[D++]=1;D<16;D++)this._buffer[D]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(c=this._h[1]>>>13,this._h[1]&=8191,D=2;D<10;D++)this._h[D]+=c,c=this._h[D]>>>13,this._h[D]&=8191;for(this._h[0]+=5*c,c=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=c,c=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=c,S[0]=this._h[0]+5,c=S[0]>>>13,S[0]&=8191,D=1;D<10;D++)S[D]=this._h[D]+c,c=S[D]>>>13,S[D]&=8191;for(S[9]-=8192,l=(1^c)-1,D=0;D<10;D++)S[D]&=l;for(D=0,l=~l;D<10;D++)this._h[D]=this._h[D]&l|S[D];for(D=1,this._h[0]=(this._h[0]|this._h[1]<<13)&65535,this._h[1]=(this._h[1]>>>3|this._h[2]<<10)&65535,this._h[2]=(this._h[2]>>>6|this._h[3]<<7)&65535,this._h[3]=(this._h[3]>>>9|this._h[4]<<4)&65535,this._h[4]=(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14)&65535,this._h[5]=(this._h[6]>>>2|this._h[7]<<11)&65535,this._h[6]=(this._h[7]>>>5|this._h[8]<<8)&65535,this._h[7]=(this._h[8]>>>8|this._h[9]<<5)&65535,p=this._h[0]+this._pad[0],this._h[0]=65535&p;D<8;D++)p=(this._h[D]+this._pad[D]|0)+(p>>>16)|0,this._h[D]=65535&p;return r[i+0]=this._h[0]>>>0,r[i+1]=this._h[0]>>>8,r[i+2]=this._h[1]>>>0,r[i+3]=this._h[1]>>>8,r[i+4]=this._h[2]>>>0,r[i+5]=this._h[2]>>>8,r[i+6]=this._h[3]>>>0,r[i+7]=this._h[3]>>>8,r[i+8]=this._h[4]>>>0,r[i+9]=this._h[4]>>>8,r[i+10]=this._h[5]>>>0,r[i+11]=this._h[5]>>>8,r[i+12]=this._h[6]>>>0,r[i+13]=this._h[6]>>>8,r[i+14]=this._h[7]>>>0,r[i+15]=this._h[7]>>>8,this._finished=!0,this},Poly1305.prototype.update=function(r){var i,c=0,l=r.length;if(this._leftover){(i=16-this._leftover)>l&&(i=l);for(var p=0;p=16&&(i=l-l%16,this._blocks(r,c,i),c+=i,l-=i),l){for(var p=0;p256)throw Error("randomString charset is too long");let p="",C=c.length,P=256-256%C;for(;r>0;){let i=randomBytes(Math.ceil(256*r/P),l);for(let l=0;l0;l++){let D=i[l];D0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=r[c++],i--;this._bufferLength===this.blockSize&&(hashBlocks(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(i>=this.blockSize&&(c=hashBlocks(this._temp,this._state,r,c,i),i%=this.blockSize);i>0;)this._buffer[this._bufferLength++]=r[c++],i--;return this},SHA256.prototype.finish=function(r){if(!this._finished){var i=this._bytesHashed,c=this._bufferLength,p=i%64<56?64:128;this._buffer[c]=128;for(var D=c+1;D0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},SHA256.prototype.restoreState=function(r){return this._state.set(r.state),this._bufferLength=r.bufferLength,r.buffer&&this._buffer.set(r.buffer),this._bytesHashed=r.bytesHashed,this._finished=!1,this},SHA256.prototype.cleanSavedState=function(r){p.wipe(r.state),r.buffer&&p.wipe(r.buffer),r.bufferLength=0,r.bytesHashed=0},SHA256}();i.mE=D;var S=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function hashBlocks(r,i,c,p,D){for(;D>=64;){for(var C=i[0],P=i[1],M=i[2],U=i[3],q=i[4],J=i[5],X=i[6],ee=i[7],et=0;et<16;et++){var eo=p+4*et;r[et]=l.readUint32BE(c,eo)}for(var et=16;et<64;et++){var ea=r[et-2],ed=(ea>>>17|ea<<15)^(ea>>>19|ea<<13)^ea>>>10,ef=((ea=r[et-15])>>>7|ea<<25)^(ea>>>18|ea<<14)^ea>>>3;r[et]=(ed+r[et-7]|0)+(ef+r[et-16]|0)}for(var et=0;et<64;et++){var ed=(((q>>>6|q<<26)^(q>>>11|q<<21)^(q>>>25|q<<7))+(q&J^~q&X)|0)+(ee+(S[et]+r[et]|0)|0)|0,ef=((C>>>2|C<<30)^(C>>>13|C<<19)^(C>>>22|C<<10))+(C&P^C&M^P&M)|0;ee=X,X=J,J=q,q=U+ed|0,U=M,M=P,P=C,C=ed+ef|0}i[0]+=C,i[1]+=P,i[2]+=M,i[3]+=U,i[4]+=q,i[5]+=J,i[6]+=X,i[7]+=ee,p+=64,D-=64}return p}function hash(r){var i=new D;i.update(r);var c=i.digest();return i.clean(),c}i.vp=hash},61910:function(r,i,c){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var l=c(35859),p=c(62942);i.DIGEST_LENGTH=64,i.BLOCK_SIZE=128;var D=function(){function SHA512(){this.digestLength=i.DIGEST_LENGTH,this.blockSize=i.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return SHA512.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},SHA512.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},SHA512.prototype.clean=function(){p.wipe(this._buffer),p.wipe(this._tempHi),p.wipe(this._tempLo),this.reset()},SHA512.prototype.update=function(r,c){if(void 0===c&&(c=r.length),this._finished)throw Error("SHA512: can't update because hash was finished.");var l=0;if(this._bytesHashed+=c,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=r[l++],c--;this._bufferLength===this.blockSize&&(hashBlocks(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(c>=this.blockSize&&(l=hashBlocks(this._tempHi,this._tempLo,this._stateHi,this._stateLo,r,l,c),c%=this.blockSize);c>0;)this._buffer[this._bufferLength++]=r[l++],c--;return this},SHA512.prototype.finish=function(r){if(!this._finished){var i=this._bytesHashed,c=this._bufferLength,p=i%128<112?128:256;this._buffer[c]=128;for(var D=c+1;D0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},SHA512.prototype.restoreState=function(r){return this._stateHi.set(r.stateHi),this._stateLo.set(r.stateLo),this._bufferLength=r.bufferLength,r.buffer&&this._buffer.set(r.buffer),this._bytesHashed=r.bytesHashed,this._finished=!1,this},SHA512.prototype.cleanSavedState=function(r){p.wipe(r.stateHi),p.wipe(r.stateLo),r.buffer&&p.wipe(r.buffer),r.bufferLength=0,r.bytesHashed=0},SHA512}();i.SHA512=D;var S=new Int32Array([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]);function hashBlocks(r,i,c,p,D,C,P){for(var M,U,q,J,X,ee,et,eo,ea=c[0],ed=c[1],ef=c[2],ey=c[3],e_=c[4],em=c[5],eb=c[6],ew=c[7],eE=p[0],eD=p[1],eS=p[2],eI=p[3],ex=p[4],eC=p[5],eP=p[6],eO=p[7];P>=128;){for(var eA=0;eA<16;eA++){var eR=8*eA+C;r[eA]=l.readUint32BE(D,eR),i[eA]=l.readUint32BE(D,eR+4)}for(var eA=0;eA<80;eA++){var eT=ea,eN=ed,eL=ef,ek=ey,ej=e_,eM=em,eU=eb,ez=ew,eB=eE,eH=eD,eF=eS,e$=eI,eK=ex,eV=eC,eW=eP,eG=eO;if(M=ew,X=65535&(U=eO),ee=U>>>16,et=65535&M,eo=M>>>16,M=(e_>>>14|ex<<18)^(e_>>>18|ex<<14)^(ex>>>9|e_<<23),X+=65535&(U=(ex>>>14|e_<<18)^(ex>>>18|e_<<14)^(e_>>>9|ex<<23)),ee+=U>>>16,et+=65535&M,eo+=M>>>16,M=e_&em^~e_&eb,X+=65535&(U=ex&eC^~ex&eP),ee+=U>>>16,et+=65535&M,eo+=M>>>16,M=S[2*eA],X+=65535&(U=S[2*eA+1]),ee+=U>>>16,et+=65535&M,eo+=M>>>16,M=r[eA%16],X+=65535&(U=i[eA%16]),ee+=U>>>16,et+=65535&M,eo+=M>>>16,ee+=X>>>16,et+=ee>>>16,eo+=et>>>16,q=65535&et|eo<<16,J=65535&X|ee<<16,M=q,X=65535&(U=J),ee=U>>>16,et=65535&M,eo=M>>>16,M=(ea>>>28|eE<<4)^(eE>>>2|ea<<30)^(eE>>>7|ea<<25),X+=65535&(U=(eE>>>28|ea<<4)^(ea>>>2|eE<<30)^(ea>>>7|eE<<25)),ee+=U>>>16,et+=65535&M,eo+=M>>>16,M=ea&ed^ea&ef^ed&ef,X+=65535&(U=eE&eD^eE&eS^eD&eS),ee+=U>>>16,et+=65535&M,eo+=M>>>16,ee+=X>>>16,et+=ee>>>16,eo+=et>>>16,ez=65535&et|eo<<16,eG=65535&X|ee<<16,M=ek,X=65535&(U=e$),ee=U>>>16,et=65535&M,eo=M>>>16,M=q,X+=65535&(U=J),ee+=U>>>16,et+=65535&M,eo+=M>>>16,ee+=X>>>16,et+=ee>>>16,eo+=et>>>16,ek=65535&et|eo<<16,e$=65535&X|ee<<16,ed=eT,ef=eN,ey=eL,e_=ek,em=ej,eb=eM,ew=eU,ea=ez,eD=eB,eS=eH,eI=eF,ex=e$,eC=eK,eP=eV,eO=eW,eE=eG,eA%16==15)for(var eR=0;eR<16;eR++)M=r[eR],X=65535&(U=i[eR]),ee=U>>>16,et=65535&M,eo=M>>>16,M=r[(eR+9)%16],X+=65535&(U=i[(eR+9)%16]),ee+=U>>>16,et+=65535&M,eo+=M>>>16,M=((q=r[(eR+1)%16])>>>1|(J=i[(eR+1)%16])<<31)^(q>>>8|J<<24)^q>>>7,X+=65535&(U=(J>>>1|q<<31)^(J>>>8|q<<24)^(J>>>7|q<<25)),ee+=U>>>16,et+=65535&M,eo+=M>>>16,M=((q=r[(eR+14)%16])>>>19|(J=i[(eR+14)%16])<<13)^(J>>>29|q<<3)^q>>>6,X+=65535&(U=(J>>>19|q<<13)^(q>>>29|J<<3)^(J>>>6|q<<26)),ee+=U>>>16,et+=65535&M,eo+=M>>>16,ee+=X>>>16,et+=ee>>>16,eo+=et>>>16,r[eR]=65535&et|eo<<16,i[eR]=65535&X|ee<<16}M=ea,X=65535&(U=eE),ee=U>>>16,et=65535&M,eo=M>>>16,M=c[0],X+=65535&(U=p[0]),ee+=U>>>16,et+=65535&M,eo+=M>>>16,ee+=X>>>16,et+=ee>>>16,eo+=et>>>16,c[0]=ea=65535&et|eo<<16,p[0]=eE=65535&X|ee<<16,M=ed,X=65535&(U=eD),ee=U>>>16,et=65535&M,eo=M>>>16,M=c[1],X+=65535&(U=p[1]),ee+=U>>>16,et+=65535&M,eo+=M>>>16,ee+=X>>>16,et+=ee>>>16,eo+=et>>>16,c[1]=ed=65535&et|eo<<16,p[1]=eD=65535&X|ee<<16,M=ef,X=65535&(U=eS),ee=U>>>16,et=65535&M,eo=M>>>16,M=c[2],X+=65535&(U=p[2]),ee+=U>>>16,et+=65535&M,eo+=M>>>16,ee+=X>>>16,et+=ee>>>16,eo+=et>>>16,c[2]=ef=65535&et|eo<<16,p[2]=eS=65535&X|ee<<16,M=ey,X=65535&(U=eI),ee=U>>>16,et=65535&M,eo=M>>>16,M=c[3],X+=65535&(U=p[3]),ee+=U>>>16,et+=65535&M,eo+=M>>>16,ee+=X>>>16,et+=ee>>>16,eo+=et>>>16,c[3]=ey=65535&et|eo<<16,p[3]=eI=65535&X|ee<<16,M=e_,X=65535&(U=ex),ee=U>>>16,et=65535&M,eo=M>>>16,M=c[4],X+=65535&(U=p[4]),ee+=U>>>16,et+=65535&M,eo+=M>>>16,ee+=X>>>16,et+=ee>>>16,eo+=et>>>16,c[4]=e_=65535&et|eo<<16,p[4]=ex=65535&X|ee<<16,M=em,X=65535&(U=eC),ee=U>>>16,et=65535&M,eo=M>>>16,M=c[5],X+=65535&(U=p[5]),ee+=U>>>16,et+=65535&M,eo+=M>>>16,ee+=X>>>16,et+=ee>>>16,eo+=et>>>16,c[5]=em=65535&et|eo<<16,p[5]=eC=65535&X|ee<<16,M=eb,X=65535&(U=eP),ee=U>>>16,et=65535&M,eo=M>>>16,M=c[6],X+=65535&(U=p[6]),ee+=U>>>16,et+=65535&M,eo+=M>>>16,ee+=X>>>16,et+=ee>>>16,eo+=et>>>16,c[6]=eb=65535&et|eo<<16,p[6]=eP=65535&X|ee<<16,M=ew,X=65535&(U=eO),ee=U>>>16,et=65535&M,eo=M>>>16,M=c[7],X+=65535&(U=p[7]),ee+=U>>>16,et+=65535&M,eo+=M>>>16,ee+=X>>>16,et+=ee>>>16,eo+=et>>>16,c[7]=ew=65535&et|eo<<16,p[7]=eO=65535&X|ee<<16,C+=128,P-=128}return C}function hash(r){var i=new D;i.update(r);var c=i.digest();return i.clean(),c}i.hash=hash},62942:function(r,i){"use strict";function wipe(r){for(var i=0;i>16&1),c[r-1]&=65535;c[15]=l[15]-32767-(c[14]>>16&1);let r=c[15]>>16&1;c[14]&=65535,sel25519(l,c,1-r)}for(let i=0;i<16;i++)r[2*i]=255&l[i],r[2*i+1]=l[i]>>8}function unpack25519(r,i){for(let c=0;c<16;c++)r[c]=i[2*c]+(i[2*c+1]<<8);r[15]&=32767}function add(r,i,c){for(let l=0;l<16;l++)r[l]=i[l]+c[l]}function sub(r,i,c){for(let l=0;l<16;l++)r[l]=i[l]-c[l]}function mul(r,i,c){let l,p,D=0,S=0,C=0,P=0,M=0,U=0,q=0,J=0,X=0,ee=0,et=0,eo=0,ea=0,ed=0,ef=0,ey=0,e_=0,em=0,eb=0,ew=0,eE=0,eD=0,eS=0,eI=0,ex=0,eC=0,eP=0,eO=0,eA=0,eR=0,eT=0,eN=c[0],eL=c[1],ek=c[2],ej=c[3],eM=c[4],eU=c[5],ez=c[6],eB=c[7],eH=c[8],eF=c[9],e$=c[10],eK=c[11],eV=c[12],eW=c[13],eG=c[14],eJ=c[15];D+=(l=i[0])*eN,S+=l*eL,C+=l*ek,P+=l*ej,M+=l*eM,U+=l*eU,q+=l*ez,J+=l*eB,X+=l*eH,ee+=l*eF,et+=l*e$,eo+=l*eK,ea+=l*eV,ed+=l*eW,ef+=l*eG,ey+=l*eJ,S+=(l=i[1])*eN,C+=l*eL,P+=l*ek,M+=l*ej,U+=l*eM,q+=l*eU,J+=l*ez,X+=l*eB,ee+=l*eH,et+=l*eF,eo+=l*e$,ea+=l*eK,ed+=l*eV,ef+=l*eW,ey+=l*eG,e_+=l*eJ,C+=(l=i[2])*eN,P+=l*eL,M+=l*ek,U+=l*ej,q+=l*eM,J+=l*eU,X+=l*ez,ee+=l*eB,et+=l*eH,eo+=l*eF,ea+=l*e$,ed+=l*eK,ef+=l*eV,ey+=l*eW,e_+=l*eG,em+=l*eJ,P+=(l=i[3])*eN,M+=l*eL,U+=l*ek,q+=l*ej,J+=l*eM,X+=l*eU,ee+=l*ez,et+=l*eB,eo+=l*eH,ea+=l*eF,ed+=l*e$,ef+=l*eK,ey+=l*eV,e_+=l*eW,em+=l*eG,eb+=l*eJ,M+=(l=i[4])*eN,U+=l*eL,q+=l*ek,J+=l*ej,X+=l*eM,ee+=l*eU,et+=l*ez,eo+=l*eB,ea+=l*eH,ed+=l*eF,ef+=l*e$,ey+=l*eK,e_+=l*eV,em+=l*eW,eb+=l*eG,ew+=l*eJ,U+=(l=i[5])*eN,q+=l*eL,J+=l*ek,X+=l*ej,ee+=l*eM,et+=l*eU,eo+=l*ez,ea+=l*eB,ed+=l*eH,ef+=l*eF,ey+=l*e$,e_+=l*eK,em+=l*eV,eb+=l*eW,ew+=l*eG,eE+=l*eJ,q+=(l=i[6])*eN,J+=l*eL,X+=l*ek,ee+=l*ej,et+=l*eM,eo+=l*eU,ea+=l*ez,ed+=l*eB,ef+=l*eH,ey+=l*eF,e_+=l*e$,em+=l*eK,eb+=l*eV,ew+=l*eW,eE+=l*eG,eD+=l*eJ,J+=(l=i[7])*eN,X+=l*eL,ee+=l*ek,et+=l*ej,eo+=l*eM,ea+=l*eU,ed+=l*ez,ef+=l*eB,ey+=l*eH,e_+=l*eF,em+=l*e$,eb+=l*eK,ew+=l*eV,eE+=l*eW,eD+=l*eG,eS+=l*eJ,X+=(l=i[8])*eN,ee+=l*eL,et+=l*ek,eo+=l*ej,ea+=l*eM,ed+=l*eU,ef+=l*ez,ey+=l*eB,e_+=l*eH,em+=l*eF,eb+=l*e$,ew+=l*eK,eE+=l*eV,eD+=l*eW,eS+=l*eG,eI+=l*eJ,ee+=(l=i[9])*eN,et+=l*eL,eo+=l*ek,ea+=l*ej,ed+=l*eM,ef+=l*eU,ey+=l*ez,e_+=l*eB,em+=l*eH,eb+=l*eF,ew+=l*e$,eE+=l*eK,eD+=l*eV,eS+=l*eW,eI+=l*eG,ex+=l*eJ,et+=(l=i[10])*eN,eo+=l*eL,ea+=l*ek,ed+=l*ej,ef+=l*eM,ey+=l*eU,e_+=l*ez,em+=l*eB,eb+=l*eH,ew+=l*eF,eE+=l*e$,eD+=l*eK,eS+=l*eV,eI+=l*eW,ex+=l*eG,eC+=l*eJ,eo+=(l=i[11])*eN,ea+=l*eL,ed+=l*ek,ef+=l*ej,ey+=l*eM,e_+=l*eU,em+=l*ez,eb+=l*eB,ew+=l*eH,eE+=l*eF,eD+=l*e$,eS+=l*eK,eI+=l*eV,ex+=l*eW,eC+=l*eG,eP+=l*eJ,ea+=(l=i[12])*eN,ed+=l*eL,ef+=l*ek,ey+=l*ej,e_+=l*eM,em+=l*eU,eb+=l*ez,ew+=l*eB,eE+=l*eH,eD+=l*eF,eS+=l*e$,eI+=l*eK,ex+=l*eV,eC+=l*eW,eP+=l*eG,eO+=l*eJ,ed+=(l=i[13])*eN,ef+=l*eL,ey+=l*ek,e_+=l*ej,em+=l*eM,eb+=l*eU,ew+=l*ez,eE+=l*eB,eD+=l*eH,eS+=l*eF,eI+=l*e$,ex+=l*eK,eC+=l*eV,eP+=l*eW,eO+=l*eG,eA+=l*eJ,ef+=(l=i[14])*eN,ey+=l*eL,e_+=l*ek,em+=l*ej,eb+=l*eM,ew+=l*eU,eE+=l*ez,eD+=l*eB,eS+=l*eH,eI+=l*eF,ex+=l*e$,eC+=l*eK,eP+=l*eV,eO+=l*eW,eA+=l*eG,eR+=l*eJ,ey+=(l=i[15])*eN,e_+=l*eL,em+=l*ek,eb+=l*ej,ew+=l*eM,eE+=l*eU,eD+=l*ez,eS+=l*eB,eI+=l*eH,ex+=l*eF,eC+=l*e$,eP+=l*eK,eO+=l*eV,eA+=l*eW,eR+=l*eG,eT+=l*eJ,D+=38*e_,S+=38*em,C+=38*eb,P+=38*ew,M+=38*eE,U+=38*eD,q+=38*eS,J+=38*eI,X+=38*ex,ee+=38*eC,et+=38*eP,eo+=38*eO,ea+=38*eA,ed+=38*eR,ef+=38*eT,p=Math.floor((l=D+(p=1)+65535)/65536),D=l-65536*p,p=Math.floor((l=S+p+65535)/65536),S=l-65536*p,p=Math.floor((l=C+p+65535)/65536),C=l-65536*p,p=Math.floor((l=P+p+65535)/65536),P=l-65536*p,p=Math.floor((l=M+p+65535)/65536),M=l-65536*p,p=Math.floor((l=U+p+65535)/65536),U=l-65536*p,p=Math.floor((l=q+p+65535)/65536),q=l-65536*p,p=Math.floor((l=J+p+65535)/65536),J=l-65536*p,p=Math.floor((l=X+p+65535)/65536),X=l-65536*p,p=Math.floor((l=ee+p+65535)/65536),ee=l-65536*p,p=Math.floor((l=et+p+65535)/65536),et=l-65536*p,p=Math.floor((l=eo+p+65535)/65536),eo=l-65536*p,p=Math.floor((l=ea+p+65535)/65536),ea=l-65536*p,p=Math.floor((l=ed+p+65535)/65536),ed=l-65536*p,p=Math.floor((l=ef+p+65535)/65536),ef=l-65536*p,p=Math.floor((l=ey+p+65535)/65536),ey=l-65536*p,D+=p-1+37*(p-1),p=Math.floor((l=D+(p=1)+65535)/65536),D=l-65536*p,p=Math.floor((l=S+p+65535)/65536),S=l-65536*p,p=Math.floor((l=C+p+65535)/65536),C=l-65536*p,p=Math.floor((l=P+p+65535)/65536),P=l-65536*p,p=Math.floor((l=M+p+65535)/65536),M=l-65536*p,p=Math.floor((l=U+p+65535)/65536),U=l-65536*p,p=Math.floor((l=q+p+65535)/65536),q=l-65536*p,p=Math.floor((l=J+p+65535)/65536),J=l-65536*p,p=Math.floor((l=X+p+65535)/65536),X=l-65536*p,p=Math.floor((l=ee+p+65535)/65536),ee=l-65536*p,p=Math.floor((l=et+p+65535)/65536),et=l-65536*p,p=Math.floor((l=eo+p+65535)/65536),eo=l-65536*p,p=Math.floor((l=ea+p+65535)/65536),ea=l-65536*p,p=Math.floor((l=ed+p+65535)/65536),ed=l-65536*p,p=Math.floor((l=ef+p+65535)/65536),ef=l-65536*p,p=Math.floor((l=ey+p+65535)/65536),ey=l-65536*p,D+=p-1+37*(p-1),r[0]=D,r[1]=S,r[2]=C,r[3]=P,r[4]=M,r[5]=U,r[6]=q,r[7]=J,r[8]=X,r[9]=ee,r[10]=et,r[11]=eo,r[12]=ea,r[13]=ed,r[14]=ef,r[15]=ey}function inv25519(r,i){let c=gf();for(let r=0;r<16;r++)c[r]=i[r];for(let r=253;r>=0;r--)mul(c,c,c),2!==r&&4!==r&&mul(c,c,i);for(let i=0;i<16;i++)r[i]=c[i]}function scalarMult(r,i){let c=new Uint8Array(32),l=new Float64Array(80),p=gf(),D=gf(),C=gf(),P=gf(),M=gf(),U=gf();for(let i=0;i<31;i++)c[i]=r[i];c[31]=127&r[31]|64,c[0]&=248,unpack25519(l,i);for(let r=0;r<16;r++)D[r]=l[r];p[0]=P[0]=1;for(let r=254;r>=0;--r){let i=c[r>>>3]>>>(7&r)&1;sel25519(p,D,i),sel25519(C,P,i),add(M,p,C),sub(p,p,C),add(C,D,P),sub(D,D,P),mul(P,M,M),mul(U,p,p),mul(p,C,p),mul(C,D,M),add(M,p,C),sub(p,p,C),mul(D,p,p),sub(C,P,U),mul(p,C,S),add(p,p,P),mul(C,C,p),mul(p,P,U),mul(P,D,l),mul(D,M,M),sel25519(p,D,i),sel25519(C,P,i)}for(let r=0;r<16;r++)l[r+16]=p[r],l[r+32]=C[r],l[r+48]=D[r],l[r+64]=P[r];let q=l.subarray(32),J=l.subarray(16);inv25519(q,q),mul(J,J,q);let X=new Uint8Array(32);return pack25519(X,J),X}function scalarMultBase(r){return scalarMult(r,D)}function generateKeyPairFromSeed(r){if(r.length!==i.KS)throw Error(`x25519: seed must be ${i.KS} bytes`);let c=new Uint8Array(r),l=scalarMultBase(c);return{publicKey:l,secretKey:c}}function generateKeyPair(r){let i=(0,l.randomBytes)(32,r),c=generateKeyPairFromSeed(i);return(0,p.wipe)(i),c}function sharedKey(r,c,l=!1){if(r.length!==i.kz)throw Error("X25519: incorrect secret key length");if(c.length!==i.kz)throw Error("X25519: incorrect public key length");let p=scalarMult(r,c);if(l){let r=0;for(let i=0;i{let r=new Map;return{name:"memory",options:{},hasItem:i=>r.has(i),getItem:i=>r.get(i)??null,getItemRaw:i=>r.get(i)??null,setItem(i,c){r.set(i,c)},setItemRaw(i,c){r.set(i,c)},removeItem(i){r.delete(i)},getKeys:()=>Array.from(r.keys()),clear(){r.clear()},dispose(){r.clear()}}});function createStorage(r={}){let i={mounts:{"":r.driver||J()},mountpoints:[""],watching:!1,watchListeners:[],unwatch:{}},getMount=r=>{for(let c of i.mountpoints)if(r.startsWith(c))return{base:c,relativeKey:r.slice(c.length),driver:i.mounts[c]};return{base:"",relativeKey:r,driver:i.mounts[""]}},getMounts=(r,c)=>i.mountpoints.filter(i=>i.startsWith(r)||c&&r.startsWith(i)).map(c=>({relativeBase:r.length>c.length?r.slice(c.length):void 0,mountpoint:c,driver:i.mounts[c]})),onChange=(r,c)=>{if(i.watching)for(let l of(c=normalizeKey(c),i.watchListeners))l(r,c)},startWatch=async()=>{if(!i.watching)for(let r in i.watching=!0,i.mounts)i.unwatch[r]=await watch(i.mounts[r],onChange,r)},stopWatch=async()=>{if(i.watching){for(let r in i.unwatch)await i.unwatch[r]();i.unwatch={},i.watching=!1}},runBatch=(r,i,c)=>{let l=new Map,getBatch=r=>{let i=l.get(r.base);return i||(i={driver:r.driver,base:r.base,items:[]},l.set(r.base,i)),i};for(let c of r){let r="string"==typeof c,l=normalizeKey(r?c:c.key),p=r?void 0:c.value,D=r||!c.options?i:{...i,...c.options},S=getMount(l);getBatch(S).items.push({key:l,value:p,relativeKey:S.relativeKey,options:D})}return Promise.all([...l.values()].map(r=>c(r))).then(r=>r.flat())},c={hasItem(r,i={}){r=normalizeKey(r);let{relativeKey:c,driver:l}=getMount(r);return asyncCall(l.hasItem,c,i)},getItem(r,i={}){r=normalizeKey(r);let{relativeKey:c,driver:l}=getMount(r);return asyncCall(l.getItem,c,i).then(r=>destr(r))},getItems:(r,i)=>runBatch(r,i,r=>r.driver.getItems?asyncCall(r.driver.getItems,r.items.map(r=>({key:r.relativeKey,options:r.options})),i).then(i=>i.map(i=>({key:joinKeys(r.base,i.key),value:destr(i.value)}))):Promise.all(r.items.map(i=>asyncCall(r.driver.getItem,i.relativeKey,i.options).then(r=>({key:i.key,value:destr(r)}))))),getItemRaw(r,i={}){r=normalizeKey(r);let{relativeKey:c,driver:l}=getMount(r);return l.getItemRaw?asyncCall(l.getItemRaw,c,i):asyncCall(l.getItem,c,i).then(r=>deserializeRaw(r))},async setItem(r,i,l={}){if(void 0===i)return c.removeItem(r);r=normalizeKey(r);let{relativeKey:p,driver:D}=getMount(r);D.setItem&&(await asyncCall(D.setItem,p,stringify(i),l),D.watch||onChange("update",r))},async setItems(r,i){await runBatch(r,i,async r=>{r.driver.setItems&&await asyncCall(r.driver.setItems,r.items.map(r=>({key:r.relativeKey,value:stringify(r.value),options:r.options})),i),r.driver.setItem&&await Promise.all(r.items.map(i=>asyncCall(r.driver.setItem,i.relativeKey,stringify(i.value),i.options)))})},async setItemRaw(r,i,l={}){if(void 0===i)return c.removeItem(r,l);r=normalizeKey(r);let{relativeKey:p,driver:D}=getMount(r);if(D.setItemRaw)await asyncCall(D.setItemRaw,p,i,l);else{if(!D.setItem)return;await asyncCall(D.setItem,p,serializeRaw(i),l)}D.watch||onChange("update",r)},async removeItem(r,i={}){"boolean"==typeof i&&(i={removeMeta:i}),r=normalizeKey(r);let{relativeKey:c,driver:l}=getMount(r);l.removeItem&&(await asyncCall(l.removeItem,c,i),(i.removeMeta||i.removeMata)&&await asyncCall(l.removeItem,c+"$",i),l.watch||onChange("remove",r))},async getMeta(r,i={}){"boolean"==typeof i&&(i={nativeOnly:i}),r=normalizeKey(r);let{relativeKey:c,driver:l}=getMount(r),p=Object.create(null);if(l.getMeta&&Object.assign(p,await asyncCall(l.getMeta,c,i)),!i.nativeOnly){let r=await asyncCall(l.getItem,c+"$",i).then(r=>destr(r));r&&"object"==typeof r&&("string"==typeof r.atime&&(r.atime=new Date(r.atime)),"string"==typeof r.mtime&&(r.mtime=new Date(r.mtime)),Object.assign(p,r))}return p},setMeta(r,i,c={}){return this.setItem(r+"$",i,c)},removeMeta(r,i={}){return this.removeItem(r+"$",i)},async getKeys(r,i={}){r=unstorage_8581f561_normalizeBaseKey(r);let c=getMounts(r,!0),l=[],p=[];for(let r of c){let c=await asyncCall(r.driver.getKeys,r.relativeBase,i),D=c.map(i=>r.mountpoint+normalizeKey(i)).filter(r=>!l.some(i=>r.startsWith(i)));p.push(...D),l=[r.mountpoint,...l.filter(i=>!i.startsWith(r.mountpoint))]}return r?p.filter(i=>i.startsWith(r)&&!i.endsWith("$")):p.filter(r=>!r.endsWith("$"))},async clear(r,i={}){r=unstorage_8581f561_normalizeBaseKey(r),await Promise.all(getMounts(r,!1).map(async r=>{if(r.driver.clear)return asyncCall(r.driver.clear,r.relativeBase,i);if(r.driver.removeItem){let c=await r.driver.getKeys(r.relativeBase||"",i);return Promise.all(c.map(c=>r.driver.removeItem(c,i)))}}))},async dispose(){await Promise.all(Object.values(i.mounts).map(r=>dispose(r)))},watch:async r=>(await startWatch(),i.watchListeners.push(r),async()=>{i.watchListeners=i.watchListeners.filter(i=>i!==r),0===i.watchListeners.length&&await stopWatch()}),async unwatch(){i.watchListeners=[],await stopWatch()},mount(r,l){if((r=unstorage_8581f561_normalizeBaseKey(r))&&i.mounts[r])throw Error(`already mounted at ${r}`);return r&&(i.mountpoints.push(r),i.mountpoints.sort((r,i)=>i.length-r.length)),i.mounts[r]=l,i.watching&&Promise.resolve(watch(l,onChange,r)).then(c=>{i.unwatch[r]=c}).catch(console.error),c},async unmount(r,c=!0){(r=unstorage_8581f561_normalizeBaseKey(r))&&i.mounts[r]&&(i.watching&&r in i.unwatch&&(i.unwatch[r](),delete i.unwatch[r]),c&&await dispose(i.mounts[r]),i.mountpoints=i.mountpoints.filter(i=>i!==r),delete i.mounts[r])},getMount(r=""){r=normalizeKey(r)+":";let i=getMount(r);return{driver:i.driver,base:i.base}},getMounts(r="",i={}){r=normalizeKey(r);let c=getMounts(r,i.parents);return c.map(r=>({driver:r.driver,base:r.mountpoint}))}};return c}function watch(r,i,c){return r.watch?r.watch((r,l)=>i(r,c+l)):()=>{}}async function dispose(r){"function"==typeof r.dispose&&await asyncCall(r.dispose)}function promisifyRequest(r){return new Promise((i,c)=>{r.oncomplete=r.onsuccess=()=>i(r.result),r.onabort=r.onerror=()=>c(r.error)})}function createStore(r,i){let c=indexedDB.open(r);c.onupgradeneeded=()=>c.result.createObjectStore(i);let l=promisifyRequest(c);return(r,c)=>l.then(l=>c(l.transaction(i,r).objectStore(i)))}function defaultGetStore(){return l||(l=createStore("keyval-store","keyval")),l}function get(r,i=defaultGetStore()){return i("readonly",i=>promisifyRequest(i.get(r)))}function set(r,i,c=defaultGetStore()){return c("readwrite",c=>(c.put(i,r),promisifyRequest(c.transaction)))}function del(r,i=defaultGetStore()){return i("readwrite",i=>(i.delete(r),promisifyRequest(i.transaction)))}function clear(r=defaultGetStore()){return r("readwrite",r=>(r.clear(),promisifyRequest(r.transaction)))}function eachCursor(r,i){return r.openCursor().onsuccess=function(){this.result&&(i(this.result),this.result.continue())},promisifyRequest(r.transaction)}function keys(r=defaultGetStore()){return r("readonly",r=>{if(r.getAllKeys)return promisifyRequest(r.getAllKeys());let i=[];return eachCursor(r,r=>i.push(r.key)).then(()=>i)})}let JSONStringify=r=>JSON.stringify(r,(r,i)=>"bigint"==typeof i?i.toString()+"n":i),JSONParse=r=>{let i=r.replace(/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,'$1"$2n"$3');return JSON.parse(i,(r,i)=>{let c="string"==typeof i&&i.match(/^\d+n$/);return c?BigInt(i.substring(0,i.length-1)):i})};function esm_safeJsonParse(r){if("string"!=typeof r)throw Error(`Cannot safe json parse value of type ${typeof r}`);try{return JSONParse(r)}catch(i){return r}}function safeJsonStringify(r){return"string"==typeof r?r:JSONStringify(r)||""}var z=(r={})=>{let i;let c=r.base&&r.base.length>0?`${r.base}:`:"",e=r=>c+r;return r.dbName&&r.storeName&&(i=createStore(r.dbName,r.storeName)),{name:"idb-keyval",options:r,hasItem:async r=>!(typeof await get(e(r),i)>"u"),getItem:async r=>await get(e(r),i)??null,setItem:(r,c)=>set(e(r),c,i),removeItem:r=>del(e(r),i),getKeys:()=>keys(i),clear:()=>clear(i)}};let _=class _{constructor(){this.indexedDb=createStorage({driver:z({dbName:"WALLET_CONNECT_V2_INDEXED_DB",storeName:"keyvaluestorage"})})}async getKeys(){return this.indexedDb.getKeys()}async getEntries(){return(await this.indexedDb.getItems(await this.indexedDb.getKeys())).map(r=>[r.key,r.value])}async getItem(r){let i=await this.indexedDb.getItem(r);if(null!==i)return i}async setItem(r,i){await this.indexedDb.setItem(r,safeJsonStringify(i))}async removeItem(r){await this.indexedDb.removeItem(r)}};var X="u">typeof globalThis?globalThis:"u">typeof window?window:"u">typeof c.g?c.g:"u">typeof self?self:{},ee={exports:{}};function k(r){var i;return[r[0],esm_safeJsonParse(null!=(i=r[1])?i:"")]}!function(){let r;function t(){}(r=t).prototype.getItem=function(r){return this.hasOwnProperty(r)?String(this[r]):null},r.prototype.setItem=function(r,i){this[r]=String(i)},r.prototype.removeItem=function(r){delete this[r]},r.prototype.clear=function(){let r=this;Object.keys(r).forEach(function(i){r[i]=void 0,delete r[i]})},r.prototype.key=function(r){return r=r||0,Object.keys(this)[r]},r.prototype.__defineGetter__("length",function(){return Object.keys(this).length}),"u">typeof X&&X.localStorage?ee.exports=X.localStorage:"u">typeof window&&window.localStorage?ee.exports=window.localStorage:ee.exports=new t}();let K=class K{constructor(){this.localStorage=ee.exports}async getKeys(){return Object.keys(this.localStorage)}async getEntries(){return Object.entries(this.localStorage).map(k)}async getItem(r){let i=this.localStorage.getItem(r);if(null!==i)return esm_safeJsonParse(i)}async setItem(r,i){this.localStorage.setItem(r,safeJsonStringify(i))}async removeItem(r){this.localStorage.removeItem(r)}};let O=async(r,i,c)=>{let l="wc_storage_version",p=await i.getItem(l);if(p&&p>=1){c(i);return}let D=await r.getKeys();if(!D.length){c(i);return}let S=[];for(;D.length;){let c=D.shift();if(!c)continue;let l=c.toLowerCase();if(l.includes("wc@")||l.includes("walletconnect")||l.includes("wc_")||l.includes("wallet_connect")){let l=await r.getItem(c);await i.setItem(c,l),S.push(c)}}await i.setItem(l,1),c(i),j(r,S)},j=async(r,i)=>{i.length&&i.forEach(async i=>{await r.removeItem(i)})};let h=class h{constructor(){this.initialized=!1,this.setInitialized=r=>{this.storage=r,this.initialized=!0};let r=new K;this.storage=r;try{let i=new _;O(r,i,this.setInitialized)}catch{this.initialized=!0}}async getKeys(){return await this.initialize(),this.storage.getKeys()}async getEntries(){return await this.initialize(),this.storage.getEntries()}async getItem(r){return await this.initialize(),this.storage.getItem(r)}async setItem(r,i){return await this.initialize(),this.storage.setItem(r,i)}async removeItem(r){return await this.initialize(),this.storage.removeItem(r)}async initialize(){this.initialized||await new Promise(r=>{let i=setInterval(()=>{this.initialized&&(clearInterval(i),r())},20)})}};var et=c(88316);let events_IEvents=class events_IEvents{};let n=class n extends events_IEvents{constructor(r){super()}};let eo=et.FIVE_SECONDS,ea={pulse:"heartbeat_pulse"};let index_es_i=class index_es_i extends n{constructor(r){super(r),this.events=new p.EventEmitter,this.interval=eo,this.interval=r?.interval||eo}static async init(r){let i=new index_es_i(r);return await i.init(),i}async init(){await this.initialize()}stop(){clearInterval(this.intervalRef)}on(r,i){this.events.on(r,i)}once(r,i){this.events.once(r,i)}off(r,i){this.events.off(r,i)}removeListener(r,i){this.events.removeListener(r,i)}async initialize(){this.intervalRef=setInterval(()=>this.pulse(),(0,et.toMiliseconds)(this.interval))}pulse(){this.events.emit(ea.pulse)}};var ed=c(2412),ef=c.n(ed);let ey={level:"info"},e_="custom_context";let index_es_O=class index_es_O{constructor(r){this.nodeValue=r,this.sizeInBytes=new TextEncoder().encode(this.nodeValue).length,this.next=null}get value(){return this.nodeValue}get size(){return this.sizeInBytes}};let d=class d{constructor(r){this.head=null,this.tail=null,this.lengthInNodes=0,this.maxSizeInBytes=r,this.sizeInBytes=0}append(r){let i=new index_es_O(r);if(i.size>this.maxSizeInBytes)throw Error(`[LinkedList] Value too big to insert into list: ${r} with size ${i.size}`);for(;this.size+i.size>this.maxSizeInBytes;)this.shift();this.head?this.tail&&(this.tail.next=i):this.head=i,this.tail=i,this.lengthInNodes++,this.sizeInBytes+=i.size}shift(){if(!this.head)return;let r=this.head;this.head=this.head.next,this.head||(this.tail=null),this.lengthInNodes--,this.sizeInBytes-=r.size}toArray(){let r=[],i=this.head;for(;null!==i;)r.push(i.value),i=i.next;return r}get length(){return this.lengthInNodes}get size(){return this.sizeInBytes}toOrderedArray(){return Array.from(this)}[Symbol.iterator](){let r=this.head;return{next:()=>{if(!r)return{done:!0,value:null};let i=r.value;return r=r.next,{done:!1,value:i}}}}};let L=class L{constructor(r,i=1024e3){this.level=r??"error",this.levelValue=ed.levels.values[this.level],this.MAX_LOG_SIZE_IN_BYTES=i,this.logs=new d(this.MAX_LOG_SIZE_IN_BYTES)}forwardToConsole(r,i){i===ed.levels.values.error?console.error(r):i===ed.levels.values.warn?console.warn(r):i===ed.levels.values.debug?console.debug(r):i===ed.levels.values.trace?console.trace(r):console.log(r)}appendToLogs(r){this.logs.append(safeJsonStringify({timestamp:new Date().toISOString(),log:r}));let i="string"==typeof r?JSON.parse(r).level:r.level;i>=this.levelValue&&this.forwardToConsole(r,i)}getLogs(){return this.logs}clearLogs(){this.logs=new d(this.MAX_LOG_SIZE_IN_BYTES)}getLogArray(){return Array.from(this.logs)}logsToBlob(r){let i=this.getLogArray();return i.push(safeJsonStringify({extraMetadata:r})),new Blob(i,{type:"application/json"})}};let m=class m{constructor(r,i=1024e3){this.baseChunkLogger=new L(r,i)}write(r){this.baseChunkLogger.appendToLogs(r)}getLogs(){return this.baseChunkLogger.getLogs()}clearLogs(){this.baseChunkLogger.clearLogs()}getLogArray(){return this.baseChunkLogger.getLogArray()}logsToBlob(r){return this.baseChunkLogger.logsToBlob(r)}downloadLogsBlobInBrowser(r){let i=URL.createObjectURL(this.logsToBlob(r)),c=document.createElement("a");c.href=i,c.download=`walletconnect-logs-${new Date().toISOString()}.txt`,document.body.appendChild(c),c.click(),document.body.removeChild(c),URL.revokeObjectURL(i)}};let B=class B{constructor(r,i=1024e3){this.baseChunkLogger=new L(r,i)}write(r){this.baseChunkLogger.appendToLogs(r)}getLogs(){return this.baseChunkLogger.getLogs()}clearLogs(){this.baseChunkLogger.clearLogs()}getLogArray(){return this.baseChunkLogger.getLogArray()}logsToBlob(r){return this.baseChunkLogger.logsToBlob(r)}};var em=Object.defineProperty,eb=Object.defineProperties,ew=Object.getOwnPropertyDescriptors,eE=Object.getOwnPropertySymbols,eD=Object.prototype.hasOwnProperty,eS=Object.prototype.propertyIsEnumerable,f=(r,i,c)=>i in r?em(r,i,{enumerable:!0,configurable:!0,writable:!0,value:c}):r[i]=c,dist_index_es_i=(r,i)=>{for(var c in i||(i={}))eD.call(i,c)&&f(r,c,i[c]);if(eE)for(var c of eE(i))eS.call(i,c)&&f(r,c,i[c]);return r},g=(r,i)=>eb(r,ew(i));function index_es_k(r){return g(dist_index_es_i({},r),{level:r?.level||ey.level})}function v(r,i=e_){return r[i]||""}function b(r,i,c=e_){return r[c]=i,r}function index_es_y(r,i=e_){return typeof r.bindings>"u"?v(r,i):r.bindings().context||""}function w(r,i,c=e_){let l=index_es_y(r,c);return l.trim()?`${l}/${i}`:i}function index_es_E(r,i,c=e_){let l=w(r,i,c),p=r.child({context:l});return b(p,l,c)}function index_es_C(r){var i,c;let l=new m(null==(i=r.opts)?void 0:i.level,r.maxSizeInBytes);return{logger:ef()(g(dist_index_es_i({},r.opts),{level:"trace",browser:g(dist_index_es_i({},null==(c=r.opts)?void 0:c.browser),{write:r=>l.write(r)})})),chunkLoggerController:l}}function I(r){var i;let c=new B(null==(i=r.opts)?void 0:i.level,r.maxSizeInBytes);return{logger:ef()(g(dist_index_es_i({},r.opts),{level:"trace"}),c),chunkLoggerController:c}}function A(r){return"u">typeof r.loggerOverride&&"string"!=typeof r.loggerOverride?{logger:r.loggerOverride,chunkLoggerController:null}:"u">typeof window?index_es_C(r):I(r)}let dist_index_es_n=class dist_index_es_n extends events_IEvents{constructor(r){super(),this.opts=r,this.protocol="wc",this.version=2}};let index_es_h=class index_es_h extends events_IEvents{constructor(r,i){super(),this.core=r,this.logger=i,this.records=new Map}};let a=class a{constructor(r,i){this.logger=r,this.core=i}};let u=class u extends events_IEvents{constructor(r,i){super(),this.relayer=r,this.logger=i}};let index_es_g=class index_es_g extends events_IEvents{constructor(r){super()}};let index_es_p=class index_es_p{constructor(r,i,c,l){this.core=r,this.logger=i,this.name=c}};let index_es_d=class index_es_d extends events_IEvents{constructor(r,i){super(),this.relayer=r,this.logger=i}};let dist_index_es_E=class dist_index_es_E extends events_IEvents{constructor(r,i){super(),this.core=r,this.logger=i}};let dist_index_es_y=class dist_index_es_y{constructor(r,i){this.projectId=r,this.logger=i}};let index_es_v=class index_es_v{constructor(r,i){this.projectId=r,this.logger=i}};let index_es_b=class index_es_b{constructor(r){this.opts=r,this.protocol="wc",this.version=2}};let index_es_w=class index_es_w{constructor(r){this.client=r}};var eI=c(56867),ex=c(69790);let eC="base64url",eP="base58btc";function as_uint8array_asUint8Array(r){return null!=globalThis.Buffer?new Uint8Array(r.buffer,r.byteOffset,r.byteLength):r}function allocUnsafe(r=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?as_uint8array_asUint8Array(globalThis.Buffer.allocUnsafe(r)):new Uint8Array(r)}function concat(r,i){i||(i=r.reduce((r,i)=>r+i.length,0));let c=allocUnsafe(i),l=0;for(let i of r)c.set(i,l),l+=i.length;return as_uint8array_asUint8Array(c)}var eO=c(89624);function createCodec(r,i,c,l){return{name:r,prefix:i,encoder:{name:r,prefix:i,encode:c},decoder:{decode:l}}}let eA=createCodec("utf8","u",r=>{let i=new TextDecoder("utf8");return"u"+i.decode(r)},r=>{let i=new TextEncoder;return i.encode(r.substring(1))}),eR=createCodec("ascii","a",r=>{let i="a";for(let c=0;c{r=r.substring(1);let i=allocUnsafe(r.length);for(let c=0;ci.code===r);return i||eM[ek]}function parseConnectionError(r,i,c){return r.message.includes("getaddrinfo ENOTFOUND")||r.message.includes("connect ECONNREFUSED")?Error(`Unavailable ${c} RPC url at ${i}`):r}var eU=c(30837);function payloadId(r=3){let i=Date.now()*Math.pow(10,r);return i+Math.floor(Math.random()*Math.pow(10,r))}function getBigIntRpcId(r=6){return BigInt(payloadId(r))}function formatJsonRpcRequest(r,i,c){return{id:c||payloadId(),jsonrpc:"2.0",method:r,params:i}}function formatJsonRpcResult(r,i){return{id:r,jsonrpc:"2.0",result:i}}function formatJsonRpcError(r,i,c){return{id:r,jsonrpc:"2.0",error:formatErrorMessage(i,c)}}function formatErrorMessage(r,i){return void 0===r?getError(eL):("string"==typeof r&&(r=Object.assign(Object.assign({},getError(ek)),{message:r})),void 0!==i&&(r.data=i),isReservedErrorCode(r.code)&&(r=getErrorByCode(r.code)),r)}let misc_IEvents=class misc_IEvents{};let IBaseJsonRpcProvider=class IBaseJsonRpcProvider extends misc_IEvents{constructor(){super()}};let IJsonRpcProvider=class IJsonRpcProvider extends IBaseJsonRpcProvider{constructor(r){super()}};function getUrlProtocol(r){let i=r.match(RegExp(/^\w+:/,"gi"));if(i&&i.length)return i[0]}function matchRegexProtocol(r,i){let c=getUrlProtocol(r);return void 0!==c&&new RegExp(i).test(c)}function isHttpUrl(r){return matchRegexProtocol(r,"^https?:")}function isWsUrl(r){return matchRegexProtocol(r,"^wss?:")}function isLocalhostUrl(r){return RegExp("wss?://localhost(:d{2,5})?").test(r)}function isJsonRpcPayload(r){return"object"==typeof r&&"id"in r&&"jsonrpc"in r&&"2.0"===r.jsonrpc}function isJsonRpcRequest(r){return isJsonRpcPayload(r)&&"method"in r}function isJsonRpcResponse(r){return isJsonRpcPayload(r)&&(isJsonRpcResult(r)||isJsonRpcError(r))}function isJsonRpcResult(r){return"result"in r}function isJsonRpcError(r){return"error"in r}let o=class o extends IJsonRpcProvider{constructor(r){super(r),this.events=new p.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(r),this.connection.connected&&this.registerEventListeners()}async connect(r=this.connection){await this.open(r)}async disconnect(){await this.close()}on(r,i){this.events.on(r,i)}once(r,i){this.events.once(r,i)}off(r,i){this.events.off(r,i)}removeListener(r,i){this.events.removeListener(r,i)}async request(r,i){return this.requestStrict(formatJsonRpcRequest(r.method,r.params||[],r.id||getBigIntRpcId().toString()),i)}async requestStrict(r,i){return new Promise(async(c,l)=>{if(!this.connection.connected)try{await this.open()}catch(r){l(r)}this.events.on(`${r.id}`,r=>{isJsonRpcError(r)?l(r.error):c(r.result)});try{await this.connection.send(r,i)}catch(r){l(r)}})}setConnection(r=this.connection){return r}onPayload(r){this.events.emit("payload",r),isJsonRpcResponse(r)?this.events.emit(`${r.id}`,r):this.events.emit("message",{type:r.method,data:r.params})}onClose(r){r&&3e3===r.code&&this.events.emit("error",Error(`WebSocket connection closed abnormally with code: ${r.code} ${r.reason?`(${r.reason})`:""}`)),this.events.emit("disconnect")}async open(r=this.connection){this.connection===r&&this.connection.connected||(this.connection.connected&&this.close(),"string"==typeof r&&(await this.connection.open(r),r=this.connection),this.connection=this.setConnection(r),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",r=>this.onPayload(r)),this.connection.on("close",r=>this.onClose(r)),this.connection.on("error",r=>this.events.emit("error",r)),this.connection.on("register_error",r=>this.onClose()),this.hasRegisteredEventListeners=!0)}};let dist_index_es_b=()=>"u">typeof WebSocket||"u">typeof c.g&&"u">typeof c.g.WebSocket||"u">typeof window&&"u">typeof window.WebSocket||"u">typeof self&&"u">typeof self.WebSocket,index_es_a=r=>r.split("?")[0],ez="u">typeof WebSocket?WebSocket:"u">typeof c.g&&"u">typeof c.g.WebSocket?c.g.WebSocket:"u">typeof window&&"u">typeof window.WebSocket?window.WebSocket:"u">typeof self&&"u">typeof self.WebSocket?self.WebSocket:c(13361);let index_es_f=class index_es_f{constructor(r){if(this.url=r,this.events=new p.EventEmitter,this.registering=!1,!isWsUrl(r))throw Error(`Provided URL is not compatible with WebSocket connection: ${r}`);this.url=r}get connected(){return"u">typeof this.socket}get connecting(){return this.registering}on(r,i){this.events.on(r,i)}once(r,i){this.events.once(r,i)}off(r,i){this.events.off(r,i)}removeListener(r,i){this.events.removeListener(r,i)}async open(r=this.url){await this.register(r)}async close(){return new Promise((r,i)=>{if(typeof this.socket>"u"){i(Error("Connection already closed"));return}this.socket.onclose=i=>{this.onClose(i),r()},this.socket.close()})}async send(r){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send(safeJsonStringify(r))}catch(i){this.onError(r.id,i)}}register(r=this.url){if(!isWsUrl(r))throw Error(`Provided URL is not compatible with WebSocket connection: ${r}`);if(this.registering){let r=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=r||this.events.listenerCount("open")>=r)&&this.events.setMaxListeners(r+1),new Promise((r,i)=>{this.events.once("register_error",r=>{this.resetMaxListeners(),i(r)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return i(Error("WebSocket connection is missing or invalid"));r(this.socket)})})}return this.url=r,this.registering=!0,new Promise((i,c)=>{let l=new URLSearchParams(r).get("origin"),p=(0,eU.isReactNative)()?{headers:{origin:l}}:{rejectUnauthorized:!isLocalhostUrl(r)},D=new ez(r,[],p);dist_index_es_b()?D.onerror=r=>{c(this.emitError(r.error))}:D.on("error",r=>{c(this.emitError(r))}),D.onopen=()=>{this.onOpen(D),i(D)}})}onOpen(r){r.onmessage=r=>this.onPayload(r),r.onclose=r=>this.onClose(r),this.socket=r,this.registering=!1,this.events.emit("open")}onClose(r){this.socket=void 0,this.registering=!1,this.events.emit("close",r)}onPayload(r){if(typeof r.data>"u")return;let i="string"==typeof r.data?esm_safeJsonParse(r.data):r.data;this.events.emit("payload",i)}onError(r,i){let c=this.parseError(i),l=c.message||c.toString(),p=formatJsonRpcError(r,l);this.events.emit("payload",p)}parseError(r,i=this.url){return parseConnectionError(r,index_es_a(i),"WS")}resetMaxListeners(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}emitError(r){let i=this.parseError(Error(r?.message||`WebSocket connection failed for host: ${index_es_a(this.url)}`));return this.events.emit("register_error",i),i}};var eB=c(36657),eH=c.n(eB),eF=c(99594),e$=c.n(eF),eK=c(28070),Ji=function(r,i){if(r.length>=255)throw TypeError("Alphabet too long");for(var c=new Uint8Array(256),l=0;l>>0,S=new Uint8Array(D);r[i];){var U=c[r.charCodeAt(i)];if(255===U)return;for(var q=0,J=D-1;(0!==U||q>>0,S[J]=U%256>>>0,U=U/256>>>0;if(0!==U)throw Error("Non-zero carry");p=q,i++}if(" "!==r[i]){for(var X=D-p;X!==D&&0===S[X];)X++;for(var ee=new Uint8Array(l+(D-X)),et=l;X!==D;)ee[et++]=S[X++];return ee}}}function L(r){var c=m(r);if(c)return c;throw Error(`Non-${i} character`)}return{encode:function(i){if(i instanceof Uint8Array||(ArrayBuffer.isView(i)?i=new Uint8Array(i.buffer,i.byteOffset,i.byteLength):Array.isArray(i)&&(i=Uint8Array.from(i))),!(i instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(0===i.length)return"";for(var c=0,l=0,p=0,D=i.length;p!==D&&0===i[p];)p++,c++;for(var S=(D-p)*U+1>>>0,M=new Uint8Array(S);p!==D;){for(var q=i[p],J=0,X=S-1;(0!==q||J>>0,M[X]=q%C>>>0,q=q/C>>>0;if(0!==q)throw Error("Non-zero carry");l=J,p++}for(var ee=S-l;ee!==S&&0===M[ee];)ee++;for(var et=P.repeat(c);ee{if(r instanceof Uint8Array&&"Uint8Array"===r.constructor.name)return r;if(r instanceof ArrayBuffer)return new Uint8Array(r);if(ArrayBuffer.isView(r))return new Uint8Array(r.buffer,r.byteOffset,r.byteLength);throw Error("Unknown type, must be binary type")},Wi=r=>new TextEncoder().encode(r),Qi=r=>new TextDecoder().decode(r);let Zi=class Zi{constructor(r,i,c){this.name=r,this.prefix=i,this.baseEncode=c}encode(r){if(r instanceof Uint8Array)return`${this.prefix}${this.baseEncode(r)}`;throw Error("Unknown type, must be binary type")}};let es=class es{constructor(r,i,c){if(this.name=r,this.prefix=i,void 0===i.codePointAt(0))throw Error("Invalid prefix character");this.prefixCodePoint=i.codePointAt(0),this.baseDecode=c}decode(r){if("string"==typeof r){if(r.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(r)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(r.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(r){return Fe(this,r)}};let ts=class ts{constructor(r){this.decoders=r}or(r){return Fe(this,r)}decode(r){let i=r[0],c=this.decoders[i];if(c)return c.decode(r);throw RangeError(`Unable to decode multibase string ${JSON.stringify(r)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}};let Fe=(r,i)=>new ts({...r.decoders||{[r.prefix]:r},...i.decoders||{[i.prefix]:i}});let is=class is{constructor(r,i,c,l){this.name=r,this.prefix=i,this.baseEncode=c,this.baseDecode=l,this.encoder=new Zi(r,i,c),this.decoder=new es(r,i,l)}encode(r){return this.encoder.encode(r)}decode(r){return this.decoder.decode(r)}};let Q=({name:r,prefix:i,encode:c,decode:l})=>new is(r,i,c,l),V=({prefix:r,name:i,alphabet:c})=>{let{encode:l,decode:p}=Ji(c,i);return Q({prefix:r,name:i,encode:l,decode:r=>Ue(p(r))})},ss=(r,i,c,l)=>{let p={};for(let r=0;r=8&&(C-=8,S[M++]=255&P>>C)}if(C>=c||255&P<<8-C)throw SyntaxError("Unexpected end of data");return S},rs=(r,i,c)=>{let l="="===i[i.length-1],p=(1<c;)S-=c,D+=i[p&C>>S];if(S&&(D+=i[p&C<Q({prefix:i,name:r,encode:r=>rs(r,l,c),decode:i=>ss(i,l,c,r)}),eV=Q({prefix:"\x00",name:"identity",encode:r=>Qi(r),decode:r=>Wi(r)});var eW=Object.freeze({__proto__:null,identity:eV});let eG=core_dist_index_es_y({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var eJ=Object.freeze({__proto__:null,base2:eG});let eY=core_dist_index_es_y({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var eQ=Object.freeze({__proto__:null,base8:eY});let eX=V({prefix:"9",name:"base10",alphabet:"0123456789"});var eZ=Object.freeze({__proto__:null,base10:eX});let e0=core_dist_index_es_y({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),e1=core_dist_index_es_y({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var e5=Object.freeze({__proto__:null,base16:e0,base16upper:e1});let e3=core_dist_index_es_y({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),e6=core_dist_index_es_y({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),e2=core_dist_index_es_y({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),e8=core_dist_index_es_y({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),e4=core_dist_index_es_y({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),e9=core_dist_index_es_y({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),e7=core_dist_index_es_y({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),te=core_dist_index_es_y({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),tn=core_dist_index_es_y({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var to=Object.freeze({__proto__:null,base32:e3,base32upper:e6,base32pad:e2,base32padupper:e8,base32hex:e4,base32hexupper:e9,base32hexpad:e7,base32hexpadupper:te,base32z:tn});let td=V({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),tg=V({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var ty=Object.freeze({__proto__:null,base36:td,base36upper:tg});let t_=V({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),tm=V({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var tb=Object.freeze({__proto__:null,base58btc:t_,base58flickr:tm});let tw=core_dist_index_es_y({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),tE=core_dist_index_es_y({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),tD=core_dist_index_es_y({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),tS=core_dist_index_es_y({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var tI=Object.freeze({__proto__:null,base64:tw,base64pad:tE,base64url:tD,base64urlpad:tS});let tx=Array.from("\uD83D\uDE80\uD83E\uDE90☄\uD83D\uDEF0\uD83C\uDF0C\uD83C\uDF11\uD83C\uDF12\uD83C\uDF13\uD83C\uDF14\uD83C\uDF15\uD83C\uDF16\uD83C\uDF17\uD83C\uDF18\uD83C\uDF0D\uD83C\uDF0F\uD83C\uDF0E\uD83D\uDC09☀\uD83D\uDCBB\uD83D\uDDA5\uD83D\uDCBE\uD83D\uDCBF\uD83D\uDE02❤\uD83D\uDE0D\uD83E\uDD23\uD83D\uDE0A\uD83D\uDE4F\uD83D\uDC95\uD83D\uDE2D\uD83D\uDE18\uD83D\uDC4D\uD83D\uDE05\uD83D\uDC4F\uD83D\uDE01\uD83D\uDD25\uD83E\uDD70\uD83D\uDC94\uD83D\uDC96\uD83D\uDC99\uD83D\uDE22\uD83E\uDD14\uD83D\uDE06\uD83D\uDE44\uD83D\uDCAA\uD83D\uDE09☺\uD83D\uDC4C\uD83E\uDD17\uD83D\uDC9C\uD83D\uDE14\uD83D\uDE0E\uD83D\uDE07\uD83C\uDF39\uD83E\uDD26\uD83C\uDF89\uD83D\uDC9E✌✨\uD83E\uDD37\uD83D\uDE31\uD83D\uDE0C\uD83C\uDF38\uD83D\uDE4C\uD83D\uDE0B\uD83D\uDC97\uD83D\uDC9A\uD83D\uDE0F\uD83D\uDC9B\uD83D\uDE42\uD83D\uDC93\uD83E\uDD29\uD83D\uDE04\uD83D\uDE00\uD83D\uDDA4\uD83D\uDE03\uD83D\uDCAF\uD83D\uDE48\uD83D\uDC47\uD83C\uDFB6\uD83D\uDE12\uD83E\uDD2D❣\uD83D\uDE1C\uD83D\uDC8B\uD83D\uDC40\uD83D\uDE2A\uD83D\uDE11\uD83D\uDCA5\uD83D\uDE4B\uD83D\uDE1E\uD83D\uDE29\uD83D\uDE21\uD83E\uDD2A\uD83D\uDC4A\uD83E\uDD73\uD83D\uDE25\uD83E\uDD24\uD83D\uDC49\uD83D\uDC83\uD83D\uDE33✋\uD83D\uDE1A\uD83D\uDE1D\uD83D\uDE34\uD83C\uDF1F\uD83D\uDE2C\uD83D\uDE43\uD83C\uDF40\uD83C\uDF37\uD83D\uDE3B\uD83D\uDE13⭐✅\uD83E\uDD7A\uD83C\uDF08\uD83D\uDE08\uD83E\uDD18\uD83D\uDCA6✔\uD83D\uDE23\uD83C\uDFC3\uD83D\uDC90☹\uD83C\uDF8A\uD83D\uDC98\uD83D\uDE20☝\uD83D\uDE15\uD83C\uDF3A\uD83C\uDF82\uD83C\uDF3B\uD83D\uDE10\uD83D\uDD95\uD83D\uDC9D\uD83D\uDE4A\uD83D\uDE39\uD83D\uDDE3\uD83D\uDCAB\uD83D\uDC80\uD83D\uDC51\uD83C\uDFB5\uD83E\uDD1E\uD83D\uDE1B\uD83D\uDD34\uD83D\uDE24\uD83C\uDF3C\uD83D\uDE2B⚽\uD83E\uDD19☕\uD83C\uDFC6\uD83E\uDD2B\uD83D\uDC48\uD83D\uDE2E\uD83D\uDE46\uD83C\uDF7B\uD83C\uDF43\uD83D\uDC36\uD83D\uDC81\uD83D\uDE32\uD83C\uDF3F\uD83E\uDDE1\uD83C\uDF81⚡\uD83C\uDF1E\uD83C\uDF88❌✊\uD83D\uDC4B\uD83D\uDE30\uD83E\uDD28\uD83D\uDE36\uD83E\uDD1D\uD83D\uDEB6\uD83D\uDCB0\uD83C\uDF53\uD83D\uDCA2\uD83E\uDD1F\uD83D\uDE41\uD83D\uDEA8\uD83D\uDCA8\uD83E\uDD2C✈\uD83C\uDF80\uD83C\uDF7A\uD83E\uDD13\uD83D\uDE19\uD83D\uDC9F\uD83C\uDF31\uD83D\uDE16\uD83D\uDC76\uD83E\uDD74▶➡❓\uD83D\uDC8E\uD83D\uDCB8⬇\uD83D\uDE28\uD83C\uDF1A\uD83E\uDD8B\uD83D\uDE37\uD83D\uDD7A⚠\uD83D\uDE45\uD83D\uDE1F\uD83D\uDE35\uD83D\uDC4E\uD83E\uDD32\uD83E\uDD20\uD83E\uDD27\uD83D\uDCCC\uD83D\uDD35\uD83D\uDC85\uD83E\uDDD0\uD83D\uDC3E\uD83C\uDF52\uD83D\uDE17\uD83E\uDD11\uD83C\uDF0A\uD83E\uDD2F\uD83D\uDC37☎\uD83D\uDCA7\uD83D\uDE2F\uD83D\uDC86\uD83D\uDC46\uD83C\uDFA4\uD83D\uDE47\uD83C\uDF51❄\uD83C\uDF34\uD83D\uDCA3\uD83D\uDC38\uD83D\uDC8C\uD83D\uDCCD\uD83E\uDD40\uD83E\uDD22\uD83D\uDC45\uD83D\uDCA1\uD83D\uDCA9\uD83D\uDC50\uD83D\uDCF8\uD83D\uDC7B\uD83E\uDD10\uD83E\uDD2E\uD83C\uDFBC\uD83E\uDD75\uD83D\uDEA9\uD83C\uDF4E\uD83C\uDF4A\uD83D\uDC7C\uD83D\uDC8D\uD83D\uDCE3\uD83E\uDD42"),tC=tx.reduce((r,i,c)=>(r[c]=i,r),[]),tP=tx.reduce((r,i,c)=>(r[i.codePointAt(0)]=c,r),[]);function Bs(r){return r.reduce((r,i)=>r+=tC[i],"")}function Ms(r){let i=[];for(let c of r){let r=tP[c.codePointAt(0)];if(void 0===r)throw Error(`Non-base256emoji character: ${c}`);i.push(r)}return new Uint8Array(i)}let tO=Q({prefix:"\uD83D\uDE80",name:"base256emoji",encode:Bs,decode:Ms});var tA=Object.freeze({__proto__:null,base256emoji:tO});function Me(r,i,c){i=i||[],c=c||0;for(var l=c;r>=2147483648;)i[c++]=255&r|128,r/=128;for(;-128&r;)i[c++]=255&r|128,r>>>=7;return i[c]=0|r,Me.bytes=c-l+1,i}function de(r,i){var c,l=0,i=i||0,p=0,D=i,S=r.length;do{if(D>=S)throw de.bytes=0,RangeError("Could not decode varint");c=r[D++],l+=p<28?(127&c)<=128);return de.bytes=D-i,l}var tR={encode:Me,decode:de,encodingLength:function(r){return r<128?1:r<16384?2:r<2097152?3:r<268435456?4:r<34359738368?5:r<4398046511104?6:r<562949953421312?7:r<72057594037927940?8:r<0x7fffffffffffffff?9:10}};let Ve=(r,i,c=0)=>(tR.encode(r,i,c),i),qe=r=>tR.encodingLength(r),ge=(r,i)=>{let c=i.byteLength,l=qe(r),p=l+qe(c),D=new Uint8Array(p+c);return Ve(r,D,0),Ve(c,D,l),D.set(i,p),new or(r,c,i,D)};let or=class or{constructor(r,i,c,l){this.code=r,this.size=i,this.digest=c,this.bytes=l}};let je=({name:r,code:i,encode:c})=>new ar(r,i,c);let ar=class ar{constructor(r,i,c){this.name=r,this.code=i,this.encode=c}digest(r){if(r instanceof Uint8Array){let i=this.encode(r);return i instanceof Uint8Array?ge(this.code,i):i.then(r=>ge(this.code,r))}throw Error("Unknown type, must be binary type")}};let Ge=r=>async i=>new Uint8Array(await crypto.subtle.digest(r,i)),tT=je({name:"sha2-256",code:18,encode:Ge("SHA-256")}),tN=je({name:"sha2-512",code:19,encode:Ge("SHA-512")});var tL=Object.freeze({__proto__:null,sha256:tT,sha512:tN}),tk=Object.freeze({__proto__:null,identity:{code:0,name:"identity",encode:Ue,digest:r=>ge(0,Ue(r))}});new TextEncoder,new TextDecoder;let tj={...eW,...eJ,...eQ,...eZ,...e5,...to,...ty,...tb,...tI,...tA};function Dr(r=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?globalThis.Buffer.allocUnsafe(r):new Uint8Array(r)}function Xe(r,i,c,l){return{name:r,prefix:i,encoder:{name:r,prefix:i,encode:c},decoder:{decode:l}}}({...tL,...tk});let tM=Xe("utf8","u",r=>"u"+new TextDecoder("utf8").decode(r),r=>new TextEncoder().encode(r.substring(1))),tU=Xe("ascii","a",r=>{let i="a";for(let c=0;c{r=r.substring(1);let i=Dr(r.length);for(let c=0;c{if(!this.initialized){let r=await this.getKeyChain();"u">typeof r&&(this.keychain=r),this.initialized=!0}},this.has=r=>(this.isInitialized(),this.keychain.has(r)),this.set=async(r,i)=>{this.isInitialized(),this.keychain.set(r,i),await this.persist()},this.get=r=>{this.isInitialized();let i=this.keychain.get(r);if(typeof i>"u"){let{message:i}=(0,S.kCb)("NO_MATCHING_KEY",`${this.name}: ${r}`);throw Error(i)}return i},this.del=async r=>{this.isInitialized(),this.keychain.delete(r),await this.persist()},this.core=r,this.logger=index_es_E(i,this.name)}get context(){return index_es_y(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setKeyChain(r){await this.core.storage.setItem(this.storageKey,(0,S.KCv)(r))}async getKeyChain(){let r=await this.core.storage.getItem(this.storageKey);return"u">typeof r?(0,S.IPd)(r):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){let{message:r}=(0,S.kCb)("NOT_INITIALIZED",this.name);throw Error(r)}}};let Ot=class Ot{constructor(r,i,c){this.core=r,this.logger=i,this.name="crypto",this.initialized=!1,this.init=async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)},this.hasKeys=r=>(this.isInitialized(),this.keychain.has(r)),this.getClientId=async()=>{this.isInitialized();let r=await this.getClientSeed(),i=generateKeyPair(r);return encodeIss(i.publicKey)},this.generateKeyPair=()=>{this.isInitialized();let r=(0,S.Au2)();return this.setPrivateKey(r.publicKey,r.privateKey)},this.signJWT=async r=>{this.isInitialized();let i=await this.getClientSeed(),c=generateKeyPair(i),l=(0,S.jdp)();return await signJWT(l,r,tK,c)},this.generateSharedKey=(r,i,c)=>{this.isInitialized();let l=this.getPrivateKey(r),p=(0,S.m$A)(l,i);return this.setSymKey(p,c)},this.setSymKey=async(r,i)=>{this.isInitialized();let c=i||(0,S.YmJ)(r);return await this.keychain.set(c,r),c},this.deleteKeyPair=async r=>{this.isInitialized(),await this.keychain.del(r)},this.deleteSymKey=async r=>{this.isInitialized(),await this.keychain.del(r)},this.encode=async(r,i,c)=>{this.isInitialized();let l=(0,S.ENt)(c),p=safeJsonStringify(i);if((0,S.Q8x)(l)){let i=l.senderPublicKey,c=l.receiverPublicKey;r=await this.generateSharedKey(i,c)}let D=this.getSymKey(r),{type:C,senderPublicKey:P}=l;return(0,S.HIp)({type:C,symKey:D,message:p,senderPublicKey:P})},this.decode=async(r,i,c)=>{this.isInitialized();let l=(0,S.Llj)(i,c);if((0,S.Q8x)(l)){let i=l.receiverPublicKey,c=l.senderPublicKey;r=await this.generateSharedKey(i,c)}try{let c=this.getSymKey(r),l=(0,S.peR)({symKey:c,encoded:i});return esm_safeJsonParse(l)}catch(i){this.logger.error(`Failed to decode message from topic: '${r}', clientId: '${await this.getClientId()}'`),this.logger.error(i)}},this.getPayloadType=r=>{let i=(0,S.vBi)(r);return(0,S.WGe)(i.type)},this.getPayloadSenderPublicKey=r=>{let i=(0,S.vBi)(r);return i.senderPublicKey?(0,eN.BB)(i.senderPublicKey,S.AWt):void 0},this.core=r,this.logger=index_es_E(i,this.name),this.keychain=c||new xt(this.core,this.logger)}get context(){return index_es_y(this.logger)}async setPrivateKey(r,i){return await this.keychain.set(r,i),r}getPrivateKey(r){return this.keychain.get(r)}async getClientSeed(){let r="";try{r=this.keychain.get(t$)}catch{r=(0,S.jdp)(),await this.keychain.set(t$,r)}return mr(r,"base16")}getSymKey(r){return this.keychain.get(r)}isInitialized(){if(!this.initialized){let{message:r}=(0,S.kCb)("NOT_INITIALIZED",this.name);throw Error(r)}}};let At=class At extends a{constructor(r,i){super(r,i),this.logger=r,this.core=i,this.messages=new Map,this.name="messages",this.version="0.3",this.initialized=!1,this.storagePrefix=tB,this.init=async()=>{if(!this.initialized){this.logger.trace("Initialized");try{let r=await this.getRelayerMessages();"u">typeof r&&(this.messages=r),this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",size:this.messages.size})}catch(r){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(r)}finally{this.initialized=!0}}},this.set=async(r,i)=>{this.isInitialized();let c=(0,S.rjm)(i),l=this.messages.get(r);return typeof l>"u"&&(l={}),"u">typeof l[c]||(l[c]=i,this.messages.set(r,l),await this.persist()),c},this.get=r=>{this.isInitialized();let i=this.messages.get(r);return typeof i>"u"&&(i={}),i},this.has=(r,i)=>{this.isInitialized();let c=this.get(r),l=(0,S.rjm)(i);return"u">typeof c[l]},this.del=async r=>{this.isInitialized(),this.messages.delete(r),await this.persist()},this.logger=index_es_E(r,this.name),this.core=i}get context(){return index_es_y(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setRelayerMessages(r){await this.core.storage.setItem(this.storageKey,(0,S.KCv)(r))}async getRelayerMessages(){let r=await this.core.storage.getItem(this.storageKey);return"u">typeof r?(0,S.IPd)(r):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){let{message:r}=(0,S.kCb)("NOT_INITIALIZED",this.name);throw Error(r)}}};let vr=class vr extends u{constructor(r,i){super(r,i),this.relayer=r,this.logger=i,this.events=new p.EventEmitter,this.name="publisher",this.queue=new Map,this.publishTimeout=(0,et.toMiliseconds)(et.ONE_MINUTE),this.failedPublishTimeout=(0,et.toMiliseconds)(et.ONE_SECOND),this.needsTransportRestart=!1,this.publish=async(r,i,c)=>{var l;this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:r,message:i,opts:c}});let p=c?.ttl||tV,D=(0,S._HE)(c),C=c?.prompt||!1,P=c?.tag||0,M=c?.id||getBigIntRpcId().toString(),U={topic:r,message:i,opts:{ttl:p,relay:D,prompt:C,tag:P,id:M}},q=`Failed to publish payload, please try again. id:${M} tag:${P}`,J=Date.now(),X,ee=1;try{for(;void 0===X;){if(Date.now()-J>this.publishTimeout)throw Error(q);this.logger.trace({id:M,attempts:ee},`publisher.publish - attempt ${ee}`),X=await await (0,S.hFY)(this.rpcPublish(r,i,p,D,C,P,M).catch(r=>this.logger.warn(r)),this.publishTimeout,q),ee++,X||await new Promise(r=>setTimeout(r,this.failedPublishTimeout))}this.relayer.events.emit(tJ.publish,U),this.logger.debug("Successfully Published Payload"),this.logger.trace({type:"method",method:"publish",params:{id:M,topic:r,message:i,opts:c}})}catch(r){if(this.logger.debug("Failed to Publish Payload"),this.logger.error(r),null!=(l=c?.internal)&&l.throwOnFailedPublish)throw r;this.queue.set(M,U)}},this.on=(r,i)=>{this.events.on(r,i)},this.once=(r,i)=>{this.events.once(r,i)},this.off=(r,i)=>{this.events.off(r,i)},this.removeListener=(r,i)=>{this.events.removeListener(r,i)},this.relayer=r,this.logger=index_es_E(i,this.name),this.registerEventListeners()}get context(){return index_es_y(this.logger)}rpcPublish(r,i,c,l,p,D,C){var P,M,U,q;let J={method:(0,S.cOS)(l.protocol).publish,params:{topic:r,message:i,ttl:c,prompt:p,tag:D},id:C};return(0,S.o8e)(null==(P=J.params)?void 0:P.prompt)&&(null==(M=J.params)||delete M.prompt),(0,S.o8e)(null==(U=J.params)?void 0:U.tag)&&(null==(q=J.params)||delete q.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:J}),this.relayer.request(J)}removeRequestFromQueue(r){this.queue.delete(r)}checkQueue(){this.queue.forEach(async r=>{let{topic:i,message:c,opts:l}=r;await this.publish(i,c,l)})}registerEventListeners(){this.relayer.core.heartbeat.on(ea.pulse,()=>{if(this.needsTransportRestart){this.needsTransportRestart=!1,this.relayer.events.emit(tJ.connection_stalled);return}this.checkQueue()}),this.relayer.on(tJ.message_ack,r=>{this.removeRequestFromQueue(r.id.toString())})}};let Ir=class Ir{constructor(){this.map=new Map,this.set=(r,i)=>{let c=this.get(r);this.exists(r,i)||this.map.set(r,[...c,i])},this.get=r=>this.map.get(r)||[],this.exists=(r,i)=>this.get(r).includes(i),this.delete=(r,i)=>{if(typeof i>"u"){this.map.delete(r);return}if(!this.map.has(r))return;let c=this.get(r);if(!this.exists(r,i))return;let l=c.filter(r=>r!==i);if(!l.length){this.map.delete(r);return}this.map.set(r,l)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}};var t9=Object.defineProperty,t7=Object.defineProperties,re=Object.getOwnPropertyDescriptors,rt=Object.getOwnPropertySymbols,ro=Object.prototype.hasOwnProperty,rp=Object.prototype.propertyIsEnumerable,Nt=(r,i,c)=>i in r?t9(r,i,{enumerable:!0,configurable:!0,writable:!0,value:c}):r[i]=c,index_es_j=(r,i)=>{for(var c in i||(i={}))ro.call(i,c)&&Nt(r,c,i[c]);if(rt)for(var c of rt(i))rp.call(i,c)&&Nt(r,c,i[c]);return r},fe=(r,i)=>t7(r,re(i));let Lt=class Lt extends index_es_d{constructor(r,i){super(r,i),this.relayer=r,this.logger=i,this.subscriptions=new Map,this.topicMap=new Ir,this.events=new p.EventEmitter,this.name="subscription",this.version="0.3",this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pollingInterval=20,this.storagePrefix=tB,this.subscribeTimeout=(0,et.toMiliseconds)(et.ONE_MINUTE),this.restartInProgress=!1,this.batchSubscribeTopicsLimit=500,this.pendingBatchMessages=[],this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),this.registerEventListeners(),this.clientId=await this.relayer.core.crypto.getClientId())},this.subscribe=async(r,i)=>{await this.restartToComplete(),this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:r,opts:i}});try{let c=(0,S._HE)(i),l={topic:r,relay:c};this.pending.set(r,l);let p=await this.rpcSubscribe(r,c);return"string"==typeof p&&(this.onSubscribe(p,l),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:r,opts:i}})),p}catch(r){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(r),r}},this.unsubscribe=async(r,i)=>{await this.restartToComplete(),this.isInitialized(),"u">typeof i?.id?await this.unsubscribeById(r,i.id,i):await this.unsubscribeByTopic(r,i)},this.isSubscribed=async r=>{if(this.topics.includes(r))return!0;let i=`${this.pendingSubscriptionWatchLabel}_${r}`;return await new Promise((c,l)=>{let p=new et.Watch;p.start(i);let D=setInterval(()=>{!this.pending.has(r)&&this.topics.includes(r)&&(clearInterval(D),p.stop(i),c(!0)),p.elapsed(i)>=tZ&&(clearInterval(D),p.stop(i),l(Error("Subscription resolution timeout")))},this.pollingInterval)}).catch(()=>!1)},this.on=(r,i)=>{this.events.on(r,i)},this.once=(r,i)=>{this.events.once(r,i)},this.off=(r,i)=>{this.events.off(r,i)},this.removeListener=(r,i)=>{this.events.removeListener(r,i)},this.start=async()=>{await this.onConnect()},this.stop=async()=>{await this.onDisconnect()},this.restart=async()=>{this.restartInProgress=!0,await this.restore(),await this.reset(),this.restartInProgress=!1},this.relayer=r,this.logger=index_es_E(i,this.name),this.clientId=""}get context(){return index_es_y(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.relayer.core.customStoragePrefix+"//"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}hasSubscription(r,i){let c=!1;try{c=this.getSubscription(r).topic===i}catch{}return c}onEnable(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear()}async unsubscribeByTopic(r,i){let c=this.topicMap.get(r);await Promise.all(c.map(async c=>await this.unsubscribeById(r,c,i)))}async unsubscribeById(r,i,c){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:r,id:i,opts:c}});try{let l=(0,S._HE)(c);await this.rpcUnsubscribe(r,i,l);let p=(0,S.D6H)("USER_DISCONNECTED",`${this.name}, ${r}`);await this.onUnsubscribe(r,i,p),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:r,id:i,opts:c}})}catch(r){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(r),r}}async rpcSubscribe(r,i){let c={method:(0,S.cOS)(i.protocol).subscribe,params:{topic:r}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:c});try{return await await (0,S.hFY)(this.relayer.request(c).catch(r=>this.logger.warn(r)),this.subscribeTimeout)?(0,S.rjm)(r+this.clientId):null}catch{this.logger.debug("Outgoing Relay Subscribe Payload stalled"),this.relayer.events.emit(tJ.connection_stalled)}return null}async rpcBatchSubscribe(r){if(!r.length)return;let i=r[0].relay,c={method:(0,S.cOS)(i.protocol).batchSubscribe,params:{topics:r.map(r=>r.topic)}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:c});try{return await await (0,S.hFY)(this.relayer.request(c).catch(r=>this.logger.warn(r)),this.subscribeTimeout)}catch{this.relayer.events.emit(tJ.connection_stalled)}}async rpcBatchFetchMessages(r){let i;if(!r.length)return;let c=r[0].relay,l={method:(0,S.cOS)(c.protocol).batchFetchMessages,params:{topics:r.map(r=>r.topic)}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:l});try{i=await await (0,S.hFY)(this.relayer.request(l).catch(r=>this.logger.warn(r)),this.subscribeTimeout)}catch{this.relayer.events.emit(tJ.connection_stalled)}return i}rpcUnsubscribe(r,i,c){let l={method:(0,S.cOS)(c.protocol).unsubscribe,params:{topic:r,id:i}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:l}),this.relayer.request(l)}onSubscribe(r,i){this.setSubscription(r,fe(index_es_j({},i),{id:r})),this.pending.delete(i.topic)}onBatchSubscribe(r){r.length&&r.forEach(r=>{this.setSubscription(r.id,index_es_j({},r)),this.pending.delete(r.topic)})}async onUnsubscribe(r,i,c){this.events.removeAllListeners(i),this.hasSubscription(i,r)&&this.deleteSubscription(i,c),await this.relayer.messages.del(r)}async setRelayerSubscriptions(r){await this.relayer.core.storage.setItem(this.storageKey,r)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(r,i){this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:r,subscription:i}),this.addSubscription(r,i)}addSubscription(r,i){this.subscriptions.set(r,index_es_j({},i)),this.topicMap.set(i.topic,r),this.events.emit(tX.created,i)}getSubscription(r){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:r});let i=this.subscriptions.get(r);if(!i){let{message:i}=(0,S.kCb)("NO_MATCHING_KEY",`${this.name}: ${r}`);throw Error(i)}return i}deleteSubscription(r,i){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:r,reason:i});let c=this.getSubscription(r);this.subscriptions.delete(r),this.topicMap.delete(c.topic,r),this.events.emit(tX.deleted,fe(index_es_j({},c),{reason:i}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit(tX.sync)}async reset(){if(this.cached.length){let r=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit);for(let i=0;i"u"||!r.length)return;if(this.subscriptions.size){let{message:r}=(0,S.kCb)("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),Error(r)}this.cached=r,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(r){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(r)}}async batchSubscribe(r){if(!r.length)return;let i=await this.rpcBatchSubscribe(r);(0,S.qt8)(i)&&this.onBatchSubscribe(i.map((i,c)=>fe(index_es_j({},r[c]),{id:i})))}async batchFetchMessages(r){if(!r.length)return;this.logger.trace(`Fetching batch messages for ${r.length} subscriptions`);let i=await this.rpcBatchFetchMessages(r);i&&i.messages&&(this.pendingBatchMessages=this.pendingBatchMessages.concat(i.messages))}async onConnect(){await this.restart(),this.onEnable()}onDisconnect(){this.onDisable()}async checkPending(){if(!this.initialized||!this.relayer.connected)return;let r=[];this.pending.forEach(i=>{r.push(i)}),await this.batchSubscribe(r),this.pendingBatchMessages.length&&(await this.relayer.handleBatchMessageEvents(this.pendingBatchMessages),this.pendingBatchMessages=[])}registerEventListeners(){this.relayer.core.heartbeat.on(ea.pulse,async()=>{await this.checkPending()}),this.events.on(tX.created,async r=>{let i=tX.created;this.logger.info(`Emitting ${i}`),this.logger.debug({type:"event",event:i,data:r}),await this.persist()}),this.events.on(tX.deleted,async r=>{let i=tX.deleted;this.logger.info(`Emitting ${i}`),this.logger.debug({type:"event",event:i,data:r}),await this.persist()})}isInitialized(){if(!this.initialized){let{message:r}=(0,S.kCb)("NOT_INITIALIZED",this.name);throw Error(r)}}async restartToComplete(){this.restartInProgress&&await new Promise(r=>{let i=setInterval(()=>{this.restartInProgress||(clearInterval(i),r())},this.pollingInterval)})}};var ry=Object.defineProperty,r_=Object.getOwnPropertySymbols,rm=Object.prototype.hasOwnProperty,rb=Object.prototype.propertyIsEnumerable,Ft=(r,i,c)=>i in r?ry(r,i,{enumerable:!0,configurable:!0,writable:!0,value:c}):r[i]=c,Ar=(r,i)=>{for(var c in i||(i={}))rm.call(i,c)&&Ft(r,c,i[c]);if(r_)for(var c of r_(i))rb.call(i,c)&&Ft(r,c,i[c]);return r};let $t=class $t extends index_es_g{constructor(r){super(r),this.protocol="wc",this.version=2,this.events=new p.EventEmitter,this.name="relayer",this.transportExplicitlyClosed=!1,this.initialized=!1,this.connectionAttemptInProgress=!1,this.connectionStatusPollingInterval=20,this.staleConnectionErrors=["socket hang up","stalled","interrupted"],this.hasExperiencedNetworkDisruption=!1,this.requestsInFlight=new Map,this.heartBeatTimeout=(0,et.toMiliseconds)(et.THIRTY_SECONDS+et.ONE_SECOND),this.request=async r=>{var i,c;this.logger.debug("Publishing Request Payload");let l=r.id||getBigIntRpcId().toString();await this.toEstablishConnection();try{let p=this.provider.request(r);this.requestsInFlight.set(l,{promise:p,request:r}),this.logger.trace({id:l,method:r.method,topic:null==(i=r.params)?void 0:i.topic},"relayer.request - attempt to publish...");let D=await new Promise(async(r,i)=>{let d=()=>{i(Error(`relayer.request - publish interrupted, id: ${l}`))};this.provider.on(tY.disconnect,d);let c=await p;this.provider.off(tY.disconnect,d),r(c)});return this.logger.trace({id:l,method:r.method,topic:null==(c=r.params)?void 0:c.topic},"relayer.request - published"),D}catch(r){throw this.logger.debug(`Failed to Publish Request: ${l}`),r}finally{this.requestsInFlight.delete(l)}},this.resetPingTimeout=()=>{if((0,S.UGU)())try{clearTimeout(this.pingTimeout),this.pingTimeout=setTimeout(()=>{var r,i,c;null==(c=null==(i=null==(r=this.provider)?void 0:r.connection)?void 0:i.socket)||c.terminate()},this.heartBeatTimeout)}catch(r){this.logger.warn(r)}},this.onPayloadHandler=r=>{this.onProviderPayload(r),this.resetPingTimeout()},this.onConnectHandler=()=>{this.startPingTimeout(),this.events.emit(tJ.connect)},this.onDisconnectHandler=()=>{this.onProviderDisconnect()},this.onProviderErrorHandler=r=>{this.logger.error(r),this.events.emit(tJ.error,r),this.logger.info("Fatal socket error received, closing transport"),this.transportClose()},this.registerProviderListeners=()=>{this.provider.on(tY.payload,this.onPayloadHandler),this.provider.on(tY.connect,this.onConnectHandler),this.provider.on(tY.disconnect,this.onDisconnectHandler),this.provider.on(tY.error,this.onProviderErrorHandler)},this.core=r.core,this.logger="u">typeof r.logger&&"string"!=typeof r.logger?index_es_E(r.logger,this.name):ef()(index_es_k({level:r.logger||"error"})),this.messages=new At(this.logger,r.core),this.subscriber=new Lt(this,this.logger),this.publisher=new vr(this,this.logger),this.relayUrl=r?.relayUrl||tW,this.projectId=r.projectId,this.bundleId=(0,S.X_B)(),this.provider={}}async init(){this.logger.trace("Initialized"),this.registerEventListeners(),await Promise.all([this.messages.init(),this.subscriber.init()]);try{await this.transportOpen()}catch{this.logger.warn(`Connection via ${this.relayUrl} failed, attempting to connect via failover domain ${tG}...`),await this.restartTransport(tG)}this.initialized=!0,setTimeout(async()=>{0===this.subscriber.topics.length&&0===this.subscriber.pending.size&&(this.logger.info("No topics subscribed to after init, closing transport"),await this.transportClose(),this.transportExplicitlyClosed=!1)},1e4)}get context(){return index_es_y(this.logger)}get connected(){var r,i,c;return(null==(c=null==(i=null==(r=this.provider)?void 0:r.connection)?void 0:i.socket)?void 0:c.readyState)===1}get connecting(){var r,i,c;return(null==(c=null==(i=null==(r=this.provider)?void 0:r.connection)?void 0:i.socket)?void 0:c.readyState)===0}async publish(r,i,c){this.isInitialized(),await this.publisher.publish(r,i,c),await this.recordMessageEvent({topic:r,message:i,publishedAt:Date.now()})}async subscribe(r,i){var c;this.isInitialized();let l=(null==(c=this.subscriber.topicMap.get(r))?void 0:c[0])||"",p,n=i=>{i.topic===r&&(this.subscriber.off(tX.created,n),p())};return await Promise.all([new Promise(r=>{p=r,this.subscriber.on(tX.created,n)}),new Promise(async c=>{l=await this.subscriber.subscribe(r,i)||l,c()})]),l}async unsubscribe(r,i){this.isInitialized(),await this.subscriber.unsubscribe(r,i)}on(r,i){this.events.on(r,i)}once(r,i){this.events.once(r,i)}off(r,i){this.events.off(r,i)}removeListener(r,i){this.events.removeListener(r,i)}async transportDisconnect(){if(!this.hasExperiencedNetworkDisruption&&this.connected&&this.requestsInFlight.size>0)try{await Promise.all(Array.from(this.requestsInFlight.values()).map(r=>r.promise))}catch(r){this.logger.warn(r)}this.hasExperiencedNetworkDisruption||this.connected?await (0,S.hFY)(this.provider.disconnect(),2e3,"provider.disconnect()").catch(()=>this.onProviderDisconnect()):this.onProviderDisconnect()}async transportClose(){this.transportExplicitlyClosed=!0,await this.transportDisconnect()}async transportOpen(r){await this.confirmOnlineStateOrThrow(),r&&r!==this.relayUrl&&(this.relayUrl=r,await this.transportDisconnect()),await this.createProvider(),this.connectionAttemptInProgress=!0,this.transportExplicitlyClosed=!1;try{await new Promise(async(r,i)=>{let s=()=>{this.provider.off(tY.disconnect,s),i(Error("Connection interrupted while trying to subscribe"))};this.provider.on(tY.disconnect,s),await (0,S.hFY)(this.provider.connect(),(0,et.toMiliseconds)(et.ONE_MINUTE),`Socket stalled when trying to connect to ${this.relayUrl}`).catch(r=>{i(r)}),await this.subscriber.start(),this.hasExperiencedNetworkDisruption=!1,r()})}catch(r){if(this.logger.error(r),this.hasExperiencedNetworkDisruption=!0,!this.isConnectionStalled(r.message))throw r}finally{this.connectionAttemptInProgress=!1}}async restartTransport(r){this.connectionAttemptInProgress||(this.relayUrl=r||this.relayUrl,await this.confirmOnlineStateOrThrow(),await this.transportClose(),await this.transportOpen())}async confirmOnlineStateOrThrow(){if(!await (0,S.Ggh)())throw Error("No internet connection detected. Please restart your network and try again.")}async handleBatchMessageEvents(r){if(r?.length===0){this.logger.trace("Batch message events is empty. Ignoring...");return}let i=r.sort((r,i)=>r.publishedAt-i.publishedAt);for(let r of(this.logger.trace(`Batch of ${i.length} message events sorted`),i))try{await this.onMessageEvent(r)}catch(r){this.logger.warn(r)}this.logger.trace(`Batch of ${i.length} message events processed`)}startPingTimeout(){var r,i,c,l,p;if((0,S.UGU)())try{null!=(i=null==(r=this.provider)?void 0:r.connection)&&i.socket&&(null==(p=null==(l=null==(c=this.provider)?void 0:c.connection)?void 0:l.socket)||p.once("ping",()=>{this.resetPingTimeout()})),this.resetPingTimeout()}catch(r){this.logger.warn(r)}}isConnectionStalled(r){return this.staleConnectionErrors.some(i=>r.includes(i))}async createProvider(){this.provider.connection&&this.unregisterProviderListeners();let r=await this.core.crypto.signJWT(this.relayUrl);this.provider=new o(new index_es_f((0,S.$0m)({sdkVersion:"2.13.0",protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:r,useOnCloseEvent:!0,bundleId:this.bundleId}))),this.registerProviderListeners()}async recordMessageEvent(r){let{topic:i,message:c}=r;await this.messages.set(i,c)}async shouldIgnoreMessageEvent(r){let{topic:i,message:c}=r;if(!c||0===c.length)return this.logger.debug(`Ignoring invalid/empty message: ${c}`),!0;if(!await this.subscriber.isSubscribed(i))return this.logger.debug(`Ignoring message for non-subscribed topic ${i}`),!0;let l=this.messages.has(i,c);return l&&this.logger.debug(`Ignoring duplicate message: ${c}`),l}async onProviderPayload(r){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:r}),isJsonRpcRequest(r)){if(!r.method.endsWith("_subscription"))return;let i=r.params,{topic:c,message:l,publishedAt:p}=i.data,D={topic:c,message:l,publishedAt:p};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(Ar({type:"event",event:i.id},D)),this.events.emit(i.id,D),await this.acknowledgePayload(r),await this.onMessageEvent(D)}else isJsonRpcResponse(r)&&this.events.emit(tJ.message_ack,r)}async onMessageEvent(r){await this.shouldIgnoreMessageEvent(r)||(this.events.emit(tJ.message,r),await this.recordMessageEvent(r))}async acknowledgePayload(r){let i=formatJsonRpcResult(r.id,!0);await this.provider.connection.send(i)}unregisterProviderListeners(){this.provider.off(tY.payload,this.onPayloadHandler),this.provider.off(tY.connect,this.onConnectHandler),this.provider.off(tY.disconnect,this.onDisconnectHandler),this.provider.off(tY.error,this.onProviderErrorHandler),clearTimeout(this.pingTimeout)}async registerEventListeners(){let r=await (0,S.Ggh)();(0,S.uwg)(async i=>{r!==i&&(r=i,i?await this.restartTransport().catch(r=>this.logger.error(r)):(this.hasExperiencedNetworkDisruption=!0,await this.transportDisconnect(),this.transportExplicitlyClosed=!1))})}async onProviderDisconnect(){await this.subscriber.stop(),this.requestsInFlight.clear(),clearTimeout(this.pingTimeout),this.events.emit(tJ.disconnect),this.connectionAttemptInProgress=!1,this.transportExplicitlyClosed||setTimeout(async()=>{await this.transportOpen().catch(r=>this.logger.error(r))},(0,et.toMiliseconds)(tQ))}isInitialized(){if(!this.initialized){let{message:r}=(0,S.kCb)("NOT_INITIALIZED",this.name);throw Error(r)}}async toEstablishConnection(){await this.confirmOnlineStateOrThrow(),this.connected||(this.connectionAttemptInProgress&&await new Promise(r=>{let i=setInterval(()=>{this.connected&&(clearInterval(i),r())},this.connectionStatusPollingInterval)}),await this.transportOpen())}};var rw=Object.defineProperty,rE=Object.getOwnPropertySymbols,rD=Object.prototype.hasOwnProperty,rS=Object.prototype.propertyIsEnumerable,Mt=(r,i,c)=>i in r?rw(r,i,{enumerable:!0,configurable:!0,writable:!0,value:c}):r[i]=c,kt=(r,i)=>{for(var c in i||(i={}))rD.call(i,c)&&Mt(r,c,i[c]);if(rE)for(var c of rE(i))rS.call(i,c)&&Mt(r,c,i[c]);return r};let Kt=class Kt extends index_es_p{constructor(r,i,c,l=tB,p){super(r,i,c,l),this.core=r,this.logger=i,this.name=c,this.map=new Map,this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=tB,this.recentlyDeleted=[],this.recentlyDeletedLimit=200,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(r=>{this.getKey&&null!==r&&!(0,S.o8e)(r)?this.map.set(this.getKey(r),r):(0,S.xWS)(r)?this.map.set(r.id,r):(0,S.h1R)(r)&&this.map.set(r.topic,r)}),this.cached=[],this.initialized=!0)},this.set=async(r,i)=>{this.isInitialized(),this.map.has(r)?await this.update(r,i):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:r,value:i}),this.map.set(r,i),await this.persist())},this.get=r=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:r}),this.getData(r)),this.getAll=r=>(this.isInitialized(),r?this.values.filter(i=>Object.keys(r).every(c=>eH()(i[c],r[c]))):this.values),this.update=async(r,i)=>{this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:r,update:i});let c=kt(kt({},this.getData(r)),i);this.map.set(r,c),await this.persist()},this.delete=async(r,i)=>{this.isInitialized(),this.map.has(r)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:r,reason:i}),this.map.delete(r),this.addToRecentlyDeleted(r),await this.persist())},this.logger=index_es_E(i,this.name),this.storagePrefix=l,this.getKey=p}get context(){return index_es_y(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}addToRecentlyDeleted(r){this.recentlyDeleted.push(r),this.recentlyDeleted.length>=this.recentlyDeletedLimit&&this.recentlyDeleted.splice(0,this.recentlyDeletedLimit/2)}async setDataStore(r){await this.core.storage.setItem(this.storageKey,r)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(r){let i=this.map.get(r);if(!i){if(this.recentlyDeleted.includes(r)){let{message:i}=(0,S.kCb)("MISSING_OR_INVALID",`Record was recently deleted - ${this.name}: ${r}`);throw this.logger.error(i),Error(i)}let{message:i}=(0,S.kCb)("NO_MATCHING_KEY",`${this.name}: ${r}`);throw this.logger.error(i),Error(i)}return i}async persist(){await this.setDataStore(this.values)}async restore(){try{let r=await this.getDataStore();if(typeof r>"u"||!r.length)return;if(this.map.size){let{message:r}=(0,S.kCb)("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),Error(r)}this.cached=r,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(r){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(r)}}isInitialized(){if(!this.initialized){let{message:r}=(0,S.kCb)("NOT_INITIALIZED",this.name);throw Error(r)}}};let Vt=class Vt{constructor(r,i){this.core=r,this.logger=i,this.name="pairing",this.version="0.3",this.events=new(D()),this.initialized=!1,this.storagePrefix=tB,this.ignoredPayloadTypes=[S.rVF],this.registeredMethods=[],this.init=async()=>{this.initialized||(await this.pairings.init(),await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace("Initialized"))},this.register=({methods:r})=>{this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...r])]},this.create=async r=>{this.isInitialized();let i=(0,S.jdp)(),c=await this.core.crypto.setSymKey(i),l=(0,S.gn4)(et.FIVE_MINUTES),p={protocol:"irn"},D=(0,S.Bvr)({protocol:this.core.protocol,version:this.core.version,topic:c,symKey:i,relay:p,expiryTimestamp:l,methods:r?.methods});return this.core.expirer.set(c,l),await this.pairings.set(c,{topic:c,expiry:l,relay:p,active:!1}),await this.core.relayer.subscribe(c),{topic:c,uri:D}},this.pair=async r=>{this.isInitialized(),this.isValidPair(r);let{topic:i,symKey:c,relay:l,expiryTimestamp:p,methods:D}=(0,S.heJ)(r.uri);if(this.pairings.keys.includes(i)&&this.pairings.get(i).active)throw Error(`Pairing already exists: ${i}. Please try again with a new connection URI.`);let C=p||(0,S.gn4)(et.FIVE_MINUTES),P={topic:i,relay:l,expiry:C,active:!1,methods:D};return this.core.expirer.set(i,C),await this.pairings.set(i,P),r.activatePairing&&await this.activate({topic:i}),this.events.emit(t1.create,P),this.core.crypto.keychain.has(i)||await this.core.crypto.setSymKey(c,i),await this.core.relayer.subscribe(i,{relay:l}),P},this.activate=async({topic:r})=>{this.isInitialized();let i=(0,S.gn4)(et.THIRTY_DAYS);this.core.expirer.set(r,i),await this.pairings.update(r,{active:!0,expiry:i})},this.ping=async r=>{this.isInitialized(),await this.isValidPing(r);let{topic:i}=r;if(this.pairings.keys.includes(i)){let r=await this.sendRequest(i,"wc_pairingPing",{}),{done:c,resolve:l,reject:p}=(0,S.H1S)();this.events.once((0,S.E0T)("pairing_ping",r),({error:r})=>{r?p(r):l()}),await c()}},this.updateExpiry=async({topic:r,expiry:i})=>{this.isInitialized(),await this.pairings.update(r,{expiry:i})},this.updateMetadata=async({topic:r,metadata:i})=>{this.isInitialized(),await this.pairings.update(r,{peerMetadata:i})},this.getPairings=()=>(this.isInitialized(),this.pairings.values),this.disconnect=async r=>{this.isInitialized(),await this.isValidDisconnect(r);let{topic:i}=r;this.pairings.keys.includes(i)&&(await this.sendRequest(i,"wc_pairingDelete",(0,S.D6H)("USER_DISCONNECTED")),await this.deletePairing(i))},this.sendRequest=async(r,i,c)=>{let l=formatJsonRpcRequest(i,c),p=await this.core.crypto.encode(r,l),D=t0[i].req;return this.core.history.set(r,l),this.core.relayer.publish(r,p,D),l.id},this.sendResult=async(r,i,c)=>{let l=formatJsonRpcResult(r,c),p=await this.core.crypto.encode(i,l),D=await this.core.history.get(i,r),S=t0[D.request.method].res;await this.core.relayer.publish(i,p,S),await this.core.history.resolve(l)},this.sendError=async(r,i,c)=>{let l=formatJsonRpcError(r,c),p=await this.core.crypto.encode(i,l),D=await this.core.history.get(i,r),S=t0[D.request.method]?t0[D.request.method].res:t0.unregistered_method.res;await this.core.relayer.publish(i,p,S),await this.core.history.resolve(l)},this.deletePairing=async(r,i)=>{await this.core.relayer.unsubscribe(r),await Promise.all([this.pairings.delete(r,(0,S.D6H)("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(r),i?Promise.resolve():this.core.expirer.del(r)])},this.cleanup=async()=>{let r=this.pairings.getAll().filter(r=>(0,S.BwD)(r.expiry));await Promise.all(r.map(r=>this.deletePairing(r.topic)))},this.onRelayEventRequest=r=>{let{topic:i,payload:c}=r;switch(c.method){case"wc_pairingPing":return this.onPairingPingRequest(i,c);case"wc_pairingDelete":return this.onPairingDeleteRequest(i,c);default:return this.onUnknownRpcMethodRequest(i,c)}},this.onRelayEventResponse=async r=>{let{topic:i,payload:c}=r,l=(await this.core.history.get(i,c.id)).request.method;return"wc_pairingPing"===l?this.onPairingPingResponse(i,c):this.onUnknownRpcMethodResponse(l)},this.onPairingPingRequest=async(r,i)=>{let{id:c}=i;try{this.isValidPing({topic:r}),await this.sendResult(c,r,!0),this.events.emit(t1.ping,{id:c,topic:r})}catch(i){await this.sendError(c,r,i),this.logger.error(i)}},this.onPairingPingResponse=(r,i)=>{let{id:c}=i;setTimeout(()=>{isJsonRpcResult(i)?this.events.emit((0,S.E0T)("pairing_ping",c),{}):isJsonRpcError(i)&&this.events.emit((0,S.E0T)("pairing_ping",c),{error:i.error})},500)},this.onPairingDeleteRequest=async(r,i)=>{let{id:c}=i;try{this.isValidDisconnect({topic:r}),await this.deletePairing(r),this.events.emit(t1.delete,{id:c,topic:r})}catch(i){await this.sendError(c,r,i),this.logger.error(i)}},this.onUnknownRpcMethodRequest=async(r,i)=>{let{id:c,method:l}=i;try{if(this.registeredMethods.includes(l))return;let i=(0,S.D6H)("WC_METHOD_UNSUPPORTED",l);await this.sendError(c,r,i),this.logger.error(i)}catch(i){await this.sendError(c,r,i),this.logger.error(i)}},this.onUnknownRpcMethodResponse=r=>{this.registeredMethods.includes(r)||this.logger.error((0,S.D6H)("WC_METHOD_UNSUPPORTED",r))},this.isValidPair=r=>{var i;if(!(0,S.EJd)(r)){let{message:i}=(0,S.kCb)("MISSING_OR_INVALID",`pair() params: ${r}`);throw Error(i)}if(!(0,S.jvJ)(r.uri)){let{message:i}=(0,S.kCb)("MISSING_OR_INVALID",`pair() uri: ${r.uri}`);throw Error(i)}let c=(0,S.heJ)(r.uri);if(!(null!=(i=c?.relay)&&i.protocol)){let{message:r}=(0,S.kCb)("MISSING_OR_INVALID","pair() uri#relay-protocol");throw Error(r)}if(!(null!=c&&c.symKey)){let{message:r}=(0,S.kCb)("MISSING_OR_INVALID","pair() uri#symKey");throw Error(r)}if(null!=c&&c.expiryTimestamp&&(0,et.toMiliseconds)(c?.expiryTimestamp){if(!(0,S.EJd)(r)){let{message:i}=(0,S.kCb)("MISSING_OR_INVALID",`ping() params: ${r}`);throw Error(i)}let{topic:i}=r;await this.isValidPairingTopic(i)},this.isValidDisconnect=async r=>{if(!(0,S.EJd)(r)){let{message:i}=(0,S.kCb)("MISSING_OR_INVALID",`disconnect() params: ${r}`);throw Error(i)}let{topic:i}=r;await this.isValidPairingTopic(i)},this.isValidPairingTopic=async r=>{if(!(0,S.M_r)(r,!1)){let{message:i}=(0,S.kCb)("MISSING_OR_INVALID",`pairing topic should be a string: ${r}`);throw Error(i)}if(!this.pairings.keys.includes(r)){let{message:i}=(0,S.kCb)("NO_MATCHING_KEY",`pairing topic doesn't exist: ${r}`);throw Error(i)}if((0,S.BwD)(this.pairings.get(r).expiry)){await this.deletePairing(r);let{message:i}=(0,S.kCb)("EXPIRED",`pairing topic: ${r}`);throw Error(i)}},this.core=r,this.logger=index_es_E(i,this.name),this.pairings=new Kt(this.core,this.logger,this.name,this.storagePrefix)}get context(){return index_es_y(this.logger)}isInitialized(){if(!this.initialized){let{message:r}=(0,S.kCb)("NOT_INITIALIZED",this.name);throw Error(r)}}registerRelayerEvents(){this.core.relayer.on(tJ.message,async r=>{let{topic:i,message:c}=r;if(!this.pairings.keys.includes(i)||this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(c)))return;let l=await this.core.crypto.decode(i,c);try{isJsonRpcRequest(l)?(this.core.history.set(i,l),this.onRelayEventRequest({topic:i,payload:l})):isJsonRpcResponse(l)&&(await this.core.history.resolve(l),await this.onRelayEventResponse({topic:i,payload:l}),this.core.history.delete(i,l.id))}catch(r){this.logger.error(r)}})}registerExpirerEvents(){this.core.expirer.on(t3.expired,async r=>{let{topic:i}=(0,S.iPz)(r.target);i&&this.pairings.keys.includes(i)&&(await this.deletePairing(i,!0),this.events.emit(t1.expire,{topic:i}))})}};let qt=class qt extends index_es_h{constructor(r,i){super(r,i),this.core=r,this.logger=i,this.records=new Map,this.events=new p.EventEmitter,this.name="history",this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=tB,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(r=>this.records.set(r.id,r)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.set=(r,i,c)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:r,request:i,chainId:c}),this.records.has(i.id))return;let l={id:i.id,topic:r,request:{method:i.method,params:i.params||null},chainId:c,expiry:(0,S.gn4)(et.THIRTY_DAYS)};this.records.set(l.id,l),this.persist(),this.events.emit(t5.created,l)},this.resolve=async r=>{if(this.isInitialized(),this.logger.debug("Updating JSON-RPC response history record"),this.logger.trace({type:"method",method:"update",response:r}),!this.records.has(r.id))return;let i=await this.getRecord(r.id);typeof i.response>"u"&&(i.response=isJsonRpcError(r)?{error:r.error}:{result:r.result},this.records.set(i.id,i),this.persist(),this.events.emit(t5.updated,i))},this.get=async(r,i)=>(this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:r,id:i}),await this.getRecord(i)),this.delete=(r,i)=>{this.isInitialized(),this.logger.debug("Deleting record"),this.logger.trace({type:"method",method:"delete",id:i}),this.values.forEach(c=>{c.topic!==r||"u">typeof i&&c.id!==i||(this.records.delete(c.id),this.events.emit(t5.deleted,c))}),this.persist()},this.exists=async(r,i)=>(this.isInitialized(),!!this.records.has(i)&&(await this.getRecord(i)).topic===r),this.on=(r,i)=>{this.events.on(r,i)},this.once=(r,i)=>{this.events.once(r,i)},this.off=(r,i)=>{this.events.off(r,i)},this.removeListener=(r,i)=>{this.events.removeListener(r,i)},this.logger=index_es_E(i,this.name)}get context(){return index_es_y(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){let r=[];return this.values.forEach(i=>{if("u">typeof i.response)return;let c={topic:i.topic,request:formatJsonRpcRequest(i.request.method,i.request.params,i.id),chainId:i.chainId};return r.push(c)}),r}async setJsonRpcRecords(r){await this.core.storage.setItem(this.storageKey,r)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(r){this.isInitialized();let i=this.records.get(r);if(!i){let{message:i}=(0,S.kCb)("NO_MATCHING_KEY",`${this.name}: ${r}`);throw Error(i)}return i}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit(t5.sync)}async restore(){try{let r=await this.getJsonRpcRecords();if(typeof r>"u"||!r.length)return;if(this.records.size){let{message:r}=(0,S.kCb)("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),Error(r)}this.cached=r,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(r){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(r)}}registerEventListeners(){this.events.on(t5.created,r=>{let i=t5.created;this.logger.info(`Emitting ${i}`),this.logger.debug({type:"event",event:i,record:r})}),this.events.on(t5.updated,r=>{let i=t5.updated;this.logger.info(`Emitting ${i}`),this.logger.debug({type:"event",event:i,record:r})}),this.events.on(t5.deleted,r=>{let i=t5.deleted;this.logger.info(`Emitting ${i}`),this.logger.debug({type:"event",event:i,record:r})}),this.core.heartbeat.on(ea.pulse,()=>{this.cleanup()})}cleanup(){try{this.isInitialized();let r=!1;this.records.forEach(i=>{(0,et.toMiliseconds)(i.expiry||0)-Date.now()<=0&&(this.logger.info(`Deleting expired history log: ${i.id}`),this.records.delete(i.id),this.events.emit(t5.deleted,i,!1),r=!0)}),r&&this.persist()}catch(r){this.logger.warn(r)}}isInitialized(){if(!this.initialized){let{message:r}=(0,S.kCb)("NOT_INITIALIZED",this.name);throw Error(r)}}};let jt=class jt extends dist_index_es_E{constructor(r,i){super(r,i),this.core=r,this.logger=i,this.expirations=new Map,this.events=new p.EventEmitter,this.name="expirer",this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=tB,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(r=>this.expirations.set(r.target,r)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.has=r=>{try{let i=this.formatTarget(r);return"u">typeof this.getExpiration(i)}catch{return!1}},this.set=(r,i)=>{this.isInitialized();let c=this.formatTarget(r),l={target:c,expiry:i};this.expirations.set(c,l),this.checkExpiry(c,l),this.events.emit(t3.created,{target:c,expiration:l})},this.get=r=>{this.isInitialized();let i=this.formatTarget(r);return this.getExpiration(i)},this.del=r=>{if(this.isInitialized(),this.has(r)){let i=this.formatTarget(r),c=this.getExpiration(i);this.expirations.delete(i),this.events.emit(t3.deleted,{target:i,expiration:c})}},this.on=(r,i)=>{this.events.on(r,i)},this.once=(r,i)=>{this.events.once(r,i)},this.off=(r,i)=>{this.events.off(r,i)},this.removeListener=(r,i)=>{this.events.removeListener(r,i)},this.logger=index_es_E(i,this.name)}get context(){return index_es_y(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(r){if("string"==typeof r)return(0,S.Z42)(r);if("number"==typeof r)return(0,S.GqV)(r);let{message:i}=(0,S.kCb)("UNKNOWN_TYPE",`Target type: ${typeof r}`);throw Error(i)}async setExpirations(r){await this.core.storage.setItem(this.storageKey,r)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit(t3.sync)}async restore(){try{let r=await this.getExpirations();if(typeof r>"u"||!r.length)return;if(this.expirations.size){let{message:r}=(0,S.kCb)("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),Error(r)}this.cached=r,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(r){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(r)}}getExpiration(r){let i=this.expirations.get(r);if(!i){let{message:i}=(0,S.kCb)("NO_MATCHING_KEY",`${this.name}: ${r}`);throw this.logger.warn(i),Error(i)}return i}checkExpiry(r,i){let{expiry:c}=i;(0,et.toMiliseconds)(c)-Date.now()<=0&&this.expire(r,i)}expire(r,i){this.expirations.delete(r),this.events.emit(t3.expired,{target:r,expiration:i})}checkExpirations(){this.core.relayer.connected&&this.expirations.forEach((r,i)=>this.checkExpiry(i,r))}registerEventListeners(){this.core.heartbeat.on(ea.pulse,()=>this.checkExpirations()),this.events.on(t3.created,r=>{let i=t3.created;this.logger.info(`Emitting ${i}`),this.logger.debug({type:"event",event:i,data:r}),this.persist()}),this.events.on(t3.expired,r=>{let i=t3.expired;this.logger.info(`Emitting ${i}`),this.logger.debug({type:"event",event:i,data:r}),this.persist()}),this.events.on(t3.deleted,r=>{let i=t3.deleted;this.logger.info(`Emitting ${i}`),this.logger.debug({type:"event",event:i,data:r}),this.persist()})}isInitialized(){if(!this.initialized){let{message:r}=(0,S.kCb)("NOT_INITIALIZED",this.name);throw Error(r)}}};let Gt=class Gt extends dist_index_es_y{constructor(r,i){super(r,i),this.projectId=r,this.logger=i,this.name=t6,this.initialized=!1,this.queue=[],this.verifyDisabled=!1,this.init=async r=>{if(this.verifyDisabled||(0,S.b$m)()||!(0,S.jUY)())return;let i=this.getVerifyUrl(r?.verifyUrl);this.verifyUrl!==i&&this.removeIframe(),this.verifyUrl=i;try{await this.createIframe()}catch(r){this.logger.info(`Verify iframe failed to load: ${this.verifyUrl}`),this.logger.info(r)}if(!this.initialized){this.removeIframe(),this.verifyUrl=t8;try{await this.createIframe()}catch(r){this.logger.info(`Verify iframe failed to load: ${this.verifyUrl}`),this.logger.info(r),this.verifyDisabled=!0}}},this.register=async r=>{this.initialized?this.sendPost(r.attestationId):(this.addToQueue(r.attestationId),await this.init())},this.resolve=async r=>{let i;if(this.isDevEnv)return"";let c=this.getVerifyUrl(r?.verifyUrl);try{i=await this.fetchAttestation(r.attestationId,c)}catch(l){this.logger.info(`failed to resolve attestation: ${r.attestationId} from url: ${c}`),this.logger.info(l),i=await this.fetchAttestation(r.attestationId,t8)}return i},this.fetchAttestation=async(r,i)=>{this.logger.info(`resolving attestation: ${r} from url: ${i}`);let c=this.startAbortTimer(2*et.ONE_SECOND),l=await fetch(`${i}/attestation/${r}`,{signal:this.abortController.signal});return clearTimeout(c),200===l.status?await l.json():void 0},this.addToQueue=r=>{this.queue.push(r)},this.processQueue=()=>{0!==this.queue.length&&(this.queue.forEach(r=>this.sendPost(r)),this.queue=[])},this.sendPost=r=>{var i;try{if(!this.iframe)return;null==(i=this.iframe.contentWindow)||i.postMessage(r,"*"),this.logger.info(`postMessage sent: ${r} ${this.verifyUrl}`)}catch{}},this.createIframe=async()=>{let r;let s=i=>{"verify_ready"===i.data&&(this.onInit(),window.removeEventListener("message",s),r())};await Promise.race([new Promise(i=>{let c=document.getElementById(t6);if(c)return this.iframe=c,this.onInit(),i();window.addEventListener("message",s);let l=document.createElement("iframe");l.id=t6,l.src=`${this.verifyUrl}/${this.projectId}`,l.style.display="none",document.body.append(l),this.iframe=l,r=i}),new Promise((r,i)=>setTimeout(()=>{window.removeEventListener("message",s),i("verify iframe load timeout")},(0,et.toMiliseconds)(et.FIVE_SECONDS)))])},this.onInit=()=>{this.initialized=!0,this.processQueue()},this.removeIframe=()=>{this.iframe&&(this.iframe.remove(),this.iframe=void 0,this.initialized=!1)},this.getVerifyUrl=r=>{let i=r||t2;return t4.includes(i)||(this.logger.info(`verify url: ${i}, not included in trusted list, assigning default: ${t2}`),i=t2),i},this.logger=index_es_E(i,this.name),this.verifyUrl=t2,this.abortController=new AbortController,this.isDevEnv=(0,S.UGU)()&&eK.env.IS_VITEST}get context(){return index_es_y(this.logger)}startAbortTimer(r){return this.abortController=new AbortController,setTimeout(()=>this.abortController.abort(),(0,et.toMiliseconds)(r))}};let Yt=class Yt extends index_es_v{constructor(r,i){super(r,i),this.projectId=r,this.logger=i,this.context="echo",this.registerDeviceToken=async r=>{let{clientId:i,token:c,notificationType:l,enableEncrypted:p=!1}=r,D=`https://echo.walletconnect.com/${this.projectId}/clients`;await e$()(D,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({client_id:i,type:l,token:c,always_raw:p})})},this.logger=index_es_E(i,this.context)}};var rI=Object.defineProperty,rx=Object.getOwnPropertySymbols,rC=Object.prototype.hasOwnProperty,rP=Object.prototype.propertyIsEnumerable,Jt=(r,i,c)=>i in r?rI(r,i,{enumerable:!0,configurable:!0,writable:!0,value:c}):r[i]=c,Xt=(r,i)=>{for(var c in i||(i={}))rC.call(i,c)&&Jt(r,c,i[c]);if(rx)for(var c of rx(i))rP.call(i,c)&&Jt(r,c,i[c]);return r};let ie=class ie extends dist_index_es_n{constructor(r){var i;super(r),this.protocol="wc",this.version=2,this.name=tz,this.events=new p.EventEmitter,this.initialized=!1,this.on=(r,i)=>this.events.on(r,i),this.once=(r,i)=>this.events.once(r,i),this.off=(r,i)=>this.events.off(r,i),this.removeListener=(r,i)=>this.events.removeListener(r,i),this.projectId=r?.projectId,this.relayUrl=r?.relayUrl||tW,this.customStoragePrefix=null!=r&&r.customStoragePrefix?`:${r.customStoragePrefix}`:"";let c=index_es_k({level:"string"==typeof r?.logger&&r.logger?r.logger:tH.logger}),{logger:l,chunkLoggerController:D}=A({opts:c,maxSizeInBytes:r?.maxLogBlobSizeInBytes,loggerOverride:r?.logger});this.logChunkController=D,null!=(i=this.logChunkController)&&i.downloadLogsBlobInBrowser&&(window.downloadLogsBlobInBrowser=async()=>{var r,i;null!=(r=this.logChunkController)&&r.downloadLogsBlobInBrowser&&(null==(i=this.logChunkController)||i.downloadLogsBlobInBrowser({clientId:await this.crypto.getClientId()}))}),this.logger=index_es_E(l,this.name),this.heartbeat=new index_es_i,this.crypto=new Ot(this,this.logger,r?.keychain),this.history=new qt(this,this.logger),this.expirer=new jt(this,this.logger),this.storage=null!=r&&r.storage?r.storage:new h(Xt(Xt({},tF),r?.storageOptions)),this.relayer=new $t({core:this,logger:this.logger,relayUrl:this.relayUrl,projectId:this.projectId}),this.pairing=new Vt(this,this.logger),this.verify=new Gt(this.projectId||"",this.logger),this.echoClient=new Yt(this.projectId||"",this.logger)}static async init(r){let i=new ie(r);await i.initialize();let c=await i.crypto.getClientId();return await i.storage.setItem("WALLETCONNECT_CLIENT_ID",c),i}get context(){return index_es_y(this.logger)}async start(){this.initialized||await this.initialize()}async getLogsBlob(){var r;return null==(r=this.logChunkController)?void 0:r.logsToBlob({clientId:await this.crypto.getClientId()})}async initialize(){this.logger.trace("Initialized");try{await this.crypto.init(),await this.history.init(),await this.expirer.init(),await this.relayer.init(),await this.heartbeat.init(),await this.pairing.init(),this.initialized=!0,this.logger.info("Core Initialization Success")}catch(r){throw this.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,r),this.logger.error(r.message),r}}};let rO="client",rA=`wc@2:${rO}:`,rR={name:rO,logger:"error"},rT="WALLETCONNECT_DEEPLINK_CHOICE",rN="Proposal expired",rL=et.SEVEN_DAYS,rk={wc_sessionPropose:{req:{ttl:et.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:et.FIVE_MINUTES,prompt:!1,tag:1101}},wc_sessionSettle:{req:{ttl:et.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:et.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:et.ONE_DAY,prompt:!1,tag:1104},res:{ttl:et.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:et.ONE_DAY,prompt:!1,tag:1106},res:{ttl:et.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:et.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:et.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:et.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:et.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:et.ONE_DAY,prompt:!1,tag:1112},res:{ttl:et.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:et.ONE_DAY,prompt:!1,tag:1114},res:{ttl:et.ONE_DAY,prompt:!1,tag:1115}},wc_sessionAuthenticate:{req:{ttl:et.ONE_HOUR,prompt:!0,tag:1116},res:{ttl:et.ONE_HOUR,prompt:!1,tag:1117}}},rj={min:et.FIVE_MINUTES,max:et.SEVEN_DAYS},rM={idle:"IDLE",active:"ACTIVE"},rU=["wc_sessionPropose","wc_sessionRequest","wc_authRequest"],rq="wc@1.5:auth:",rz=`${rq}:PUB_KEY`;var rB=Object.defineProperty,rH=Object.defineProperties,rF=Object.getOwnPropertyDescriptors,r$=Object.getOwnPropertySymbols,rK=Object.prototype.hasOwnProperty,rV=Object.prototype.propertyIsEnumerable,index_es_We=(r,i,c)=>i in r?rB(r,i,{enumerable:!0,configurable:!0,writable:!0,value:c}):r[i]=c,sign_client_dist_index_es_y=(r,i)=>{for(var c in i||(i={}))rK.call(i,c)&&index_es_We(r,c,i[c]);if(r$)for(var c of r$(i))rV.call(i,c)&&index_es_We(r,c,i[c]);return r},index_es_M=(r,i)=>rH(r,rF(i));let Zt=class Zt extends index_es_w{constructor(r){super(r),this.name="engine",this.events=new(D()),this.initialized=!1,this.requestQueue={state:rM.idle,queue:[]},this.sessionRequestQueue={state:rM.idle,queue:[]},this.requestQueueDelay=et.ONE_SECOND,this.expectedPairingMethodMap=new Map,this.recentlyDeletedMap=new Map,this.recentlyDeletedLimit=200,this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.registerPairingEvents(),this.client.core.pairing.register({methods:Object.keys(rk)}),this.initialized=!0,setTimeout(()=>{this.sessionRequestQueue.queue=this.getPendingSessionRequests(),this.processSessionRequestQueue()},(0,et.toMiliseconds)(this.requestQueueDelay)))},this.connect=async r=>{await this.isInitialized();let i=index_es_M(sign_client_dist_index_es_y({},r),{requiredNamespaces:r.requiredNamespaces||{},optionalNamespaces:r.optionalNamespaces||{}});await this.isValidConnect(i);let{pairingTopic:c,requiredNamespaces:l,optionalNamespaces:p,sessionProperties:D,relays:C}=i,P=c,M,U=!1;try{P&&(U=this.client.core.pairing.pairings.get(P).active)}catch(r){throw this.client.logger.error(`connect() -> pairing.get(${P}) failed`),r}if(!P||!U){let{topic:r,uri:i}=await this.client.core.pairing.create();P=r,M=i}if(!P){let{message:r}=(0,S.kCb)("NO_MATCHING_KEY",`connect() pairing topic: ${P}`);throw Error(r)}let q=await this.client.core.crypto.generateKeyPair(),J=rk.wc_sessionPropose.req.ttl||et.FIVE_MINUTES,X=(0,S.gn4)(J),ee=sign_client_dist_index_es_y({requiredNamespaces:l,optionalNamespaces:p,relays:C??[{protocol:"irn"}],proposer:{publicKey:q,metadata:this.client.metadata},expiryTimestamp:X},D&&{sessionProperties:D}),{reject:eo,resolve:ea,done:ed}=(0,S.H1S)(J,rN);this.events.once((0,S.E0T)("session_connect"),async({error:r,session:i})=>{if(r)eo(r);else if(i){i.self.publicKey=q;let r=index_es_M(sign_client_dist_index_es_y({},i),{requiredNamespaces:ee.requiredNamespaces,optionalNamespaces:ee.optionalNamespaces});await this.client.session.set(i.topic,r),await this.setExpiry(i.topic,i.expiry),P&&await this.client.core.pairing.updateMetadata({topic:P,metadata:i.peer.metadata}),ea(r)}});let ef=await this.sendRequest({topic:P,method:"wc_sessionPropose",params:ee,throwOnFailedPublish:!0});return await this.setProposal(ef,sign_client_dist_index_es_y({id:ef},ee)),{uri:M,approval:ed}},this.pair=async r=>{await this.isInitialized();try{return await this.client.core.pairing.pair(r)}catch(r){throw this.client.logger.error("pair() failed"),r}},this.approve=async r=>{let i;await this.isInitialized();try{await this.isValidApprove(r)}catch(r){throw this.client.logger.error("approve() -> isValidApprove() failed"),r}let{id:c,relayProtocol:l,namespaces:p,sessionProperties:D,sessionConfig:C}=r;try{i=this.client.proposal.get(c)}catch(r){throw this.client.logger.error(`approve() -> proposal.get(${c}) failed`),r}let{pairingTopic:P,proposer:M,requiredNamespaces:U,optionalNamespaces:q}=i;P=P||"";let J=await this.client.core.crypto.generateKeyPair(),X=M.publicKey,ee=await this.client.core.crypto.generateSharedKey(J,X),et=sign_client_dist_index_es_y(sign_client_dist_index_es_y({relay:{protocol:l??"irn"},namespaces:p,pairingTopic:P,controller:{publicKey:J,metadata:this.client.metadata},expiry:(0,S.gn4)(rL)},D&&{sessionProperties:D}),C&&{sessionConfig:C});await this.client.core.relayer.subscribe(ee);let eo=index_es_M(sign_client_dist_index_es_y({},et),{topic:ee,requiredNamespaces:U,optionalNamespaces:q,pairingTopic:P,acknowledged:!1,self:et.controller,peer:{publicKey:M.publicKey,metadata:M.metadata},controller:J});await this.client.session.set(ee,eo);try{await this.sendResult({id:c,topic:P,result:{relay:{protocol:l??"irn"},responderPublicKey:J},throwOnFailedPublish:!0}),await this.sendRequest({topic:ee,method:"wc_sessionSettle",params:et,throwOnFailedPublish:!0})}catch(r){throw this.client.logger.error(r),this.client.session.delete(ee,(0,S.D6H)("USER_DISCONNECTED")),await this.client.core.relayer.unsubscribe(ee),r}return await this.client.core.pairing.updateMetadata({topic:P,metadata:M.metadata}),await this.client.proposal.delete(c,(0,S.D6H)("USER_DISCONNECTED")),await this.client.core.pairing.activate({topic:P}),await this.setExpiry(ee,(0,S.gn4)(rL)),{topic:ee,acknowledged:()=>new Promise(r=>setTimeout(()=>r(this.client.session.get(ee)),500))}},this.reject=async r=>{let i;await this.isInitialized();try{await this.isValidReject(r)}catch(r){throw this.client.logger.error("reject() -> isValidReject() failed"),r}let{id:c,reason:l}=r;try{i=this.client.proposal.get(c).pairingTopic}catch(r){throw this.client.logger.error(`reject() -> proposal.get(${c}) failed`),r}i&&(await this.sendError({id:c,topic:i,error:l}),await this.client.proposal.delete(c,(0,S.D6H)("USER_DISCONNECTED")))},this.update=async r=>{await this.isInitialized();try{await this.isValidUpdate(r)}catch(r){throw this.client.logger.error("update() -> isValidUpdate() failed"),r}let{topic:i,namespaces:c}=r,{done:l,resolve:p,reject:D}=(0,S.H1S)(),C=payloadId(),P=getBigIntRpcId().toString(),M=this.client.session.get(i).namespaces;return this.events.once((0,S.E0T)("session_update",C),({error:r})=>{r?D(r):p()}),await this.client.session.update(i,{namespaces:c}),await this.sendRequest({topic:i,method:"wc_sessionUpdate",params:{namespaces:c},throwOnFailedPublish:!0,clientRpcId:C,relayRpcId:P}).catch(r=>{this.client.logger.error(r),this.client.session.update(i,{namespaces:M}),D(r)}),{acknowledged:l}},this.extend=async r=>{await this.isInitialized();try{await this.isValidExtend(r)}catch(r){throw this.client.logger.error("extend() -> isValidExtend() failed"),r}let{topic:i}=r,c=payloadId(),{done:l,resolve:p,reject:D}=(0,S.H1S)();return this.events.once((0,S.E0T)("session_extend",c),({error:r})=>{r?D(r):p()}),await this.setExpiry(i,(0,S.gn4)(rL)),this.sendRequest({topic:i,method:"wc_sessionExtend",params:{},clientRpcId:c,throwOnFailedPublish:!0}).catch(r=>{D(r)}),{acknowledged:l}},this.request=async r=>{await this.isInitialized();try{await this.isValidRequest(r)}catch(r){throw this.client.logger.error("request() -> isValidRequest() failed"),r}let{chainId:i,request:c,topic:l,expiry:p=rk.wc_sessionRequest.req.ttl}=r,D=this.client.session.get(l),C=payloadId(),P=getBigIntRpcId().toString(),{done:M,resolve:U,reject:q}=(0,S.H1S)(p,"Request expired. Please try again.");return this.events.once((0,S.E0T)("session_request",C),({error:r,result:i})=>{r?q(r):U(i)}),await Promise.all([new Promise(async r=>{await this.sendRequest({clientRpcId:C,relayRpcId:P,topic:l,method:"wc_sessionRequest",params:{request:index_es_M(sign_client_dist_index_es_y({},c),{expiryTimestamp:(0,S.gn4)(p)}),chainId:i},expiry:p,throwOnFailedPublish:!0}).catch(r=>q(r)),this.client.events.emit("session_request_sent",{topic:l,request:c,chainId:i,id:C}),r()}),new Promise(async r=>{var i;if(!(null!=(i=D.sessionConfig)&&i.disableDeepLink)){let r=await (0,S.bW6)(this.client.core.storage,rT);(0,S.HhN)({id:C,topic:l,wcDeepLink:r})}r()}),M()]).then(r=>r[2])},this.respond=async r=>{await this.isInitialized(),await this.isValidRespond(r);let{topic:i,response:c}=r,{id:l}=c;isJsonRpcResult(c)?await this.sendResult({id:l,topic:i,result:c.result,throwOnFailedPublish:!0}):isJsonRpcError(c)&&await this.sendError({id:l,topic:i,error:c.error}),this.cleanupAfterResponse(r)},this.ping=async r=>{await this.isInitialized();try{await this.isValidPing(r)}catch(r){throw this.client.logger.error("ping() -> isValidPing() failed"),r}let{topic:i}=r;if(this.client.session.keys.includes(i)){let r=payloadId(),c=getBigIntRpcId().toString(),{done:l,resolve:p,reject:D}=(0,S.H1S)();this.events.once((0,S.E0T)("session_ping",r),({error:r})=>{r?D(r):p()}),await Promise.all([this.sendRequest({topic:i,method:"wc_sessionPing",params:{},throwOnFailedPublish:!0,clientRpcId:r,relayRpcId:c}),l()])}else this.client.core.pairing.pairings.keys.includes(i)&&await this.client.core.pairing.ping({topic:i})},this.emit=async r=>{await this.isInitialized(),await this.isValidEmit(r);let{topic:i,event:c,chainId:l}=r,p=getBigIntRpcId().toString();await this.sendRequest({topic:i,method:"wc_sessionEvent",params:{event:c,chainId:l},throwOnFailedPublish:!0,relayRpcId:p})},this.disconnect=async r=>{await this.isInitialized(),await this.isValidDisconnect(r);let{topic:i}=r;if(this.client.session.keys.includes(i))await this.sendRequest({topic:i,method:"wc_sessionDelete",params:(0,S.D6H)("USER_DISCONNECTED"),throwOnFailedPublish:!0}),await this.deleteSession({topic:i,emitEvent:!1});else if(this.client.core.pairing.pairings.keys.includes(i))await this.client.core.pairing.disconnect({topic:i});else{let{message:r}=(0,S.kCb)("MISMATCHED_TOPIC",`Session or pairing topic not found: ${i}`);throw Error(r)}},this.find=r=>(this.isInitialized(),this.client.session.getAll().filter(i=>(0,S.Ih8)(i,r))),this.getPendingSessionRequests=()=>this.client.pendingRequest.getAll(),this.authenticate=async r=>{this.isInitialized(),this.isValidAuthenticate(r);let{chains:i,statement:c="",uri:l,domain:p,nonce:D,type:C,exp:P,nbf:M,methods:U=[],expiry:q}=r,J=[...r.resources||[]],{topic:X,uri:ee}=await this.client.core.pairing.create({methods:["wc_sessionAuthenticate"]});this.client.logger.info({message:"Generated new pairing",pairing:{topic:X,uri:ee}});let et=await this.client.core.crypto.generateKeyPair(),eo=(0,S.YmJ)(et);if(await Promise.all([this.client.auth.authKeys.set(rz,{responseTopic:eo,publicKey:et}),this.client.auth.pairingTopics.set(eo,{topic:eo,pairingTopic:X})]),await this.client.core.relayer.subscribe(eo),this.client.logger.info(`sending request to new pairing topic: ${X}`),U.length>0){let{namespace:r}=(0,S.DQe)(i[0]),c=(0,S.IkP)(r,"request",U);(0,S.hA9)(J)&&(c=(0,S.qJM)(c,J.pop())),J.push(c)}let ea=q&&q>rk.wc_sessionAuthenticate.req.ttl?q:rk.wc_sessionAuthenticate.req.ttl,ed={authPayload:{type:C??"caip122",chains:i,statement:c,aud:l,domain:p,version:"1",nonce:D,iat:new Date().toISOString(),exp:P,nbf:M,resources:J},requester:{publicKey:et,metadata:this.client.metadata},expiryTimestamp:(0,S.gn4)(ea)},ef={eip155:{chains:i,methods:[...new Set(["personal_sign",...U])],events:["chainChanged","accountsChanged"]}},ey={requiredNamespaces:{},optionalNamespaces:ef,relays:[{protocol:"irn"}],proposer:{publicKey:et,metadata:this.client.metadata},expiryTimestamp:(0,S.gn4)(rk.wc_sessionPropose.req.ttl)},{done:e_,resolve:em,reject:eb}=(0,S.H1S)(ea,"Request expired"),W=async({error:r,session:i})=>{if(this.events.off((0,S.E0T)("session_request",ew),ce),r)eb(r);else if(i){i.self.publicKey=et,await this.client.session.set(i.topic,i),await this.setExpiry(i.topic,i.expiry),X&&await this.client.core.pairing.updateMetadata({topic:X,metadata:i.peer.metadata});let r=this.client.session.get(i.topic);await this.deleteProposal(eE),em({session:r})}},ce=async r=>{let i;if(await this.deletePendingAuthRequest(ew,{message:"fulfilled",code:0}),r.error){let i=(0,S.D6H)("WC_METHOD_UNSUPPORTED","wc_sessionAuthenticate");return r.error.code===i.code?void 0:(this.events.off((0,S.E0T)("session_connect"),W),eb(r.error.message))}await this.deleteProposal(eE),this.events.off((0,S.E0T)("session_connect"),W);let{cacaos:c,responder:l}=r.result,p=[],D=[];for(let r of c){await (0,S.c4l)({cacao:r,projectId:this.client.core.projectId})||(this.client.logger.error(r,"Signature verification failed"),eb((0,S.D6H)("SESSION_SETTLEMENT_FAILED","Signature verification failed")));let{p:i}=r,c=(0,S.hA9)(i.resources),l=[(0,S.DJo)(i.iss)],C=(0,S.NmC)(i.iss);if(c){let r=(0,S.Y31)(c),i=(0,S.ouN)(c);p.push(...r),l.push(...i)}for(let r of l)D.push(`${r}:${C}`)}let C=await this.client.core.crypto.generateSharedKey(et,l.publicKey);p.length>0&&(i={topic:C,acknowledged:!0,self:{publicKey:et,metadata:this.client.metadata},peer:l,controller:l.publicKey,expiry:(0,S.gn4)(rL),requiredNamespaces:{},optionalNamespaces:{},relay:{protocol:"irn"},pairingTopic:X,namespaces:(0,S.E12)([...new Set(p)],[...new Set(D)])},await this.client.core.relayer.subscribe(C),await this.client.session.set(C,i),i=this.client.session.get(C)),em({auths:c,session:i})},ew=payloadId(),eE=payloadId();this.events.once((0,S.E0T)("session_connect"),W),this.events.once((0,S.E0T)("session_request",ew),ce);try{await Promise.all([this.sendRequest({topic:X,method:"wc_sessionAuthenticate",params:ed,expiry:r.expiry,throwOnFailedPublish:!0,clientRpcId:ew}),this.sendRequest({topic:X,method:"wc_sessionPropose",params:ey,expiry:rk.wc_sessionPropose.req.ttl,throwOnFailedPublish:!0,clientRpcId:eE})])}catch(r){throw this.events.off((0,S.E0T)("session_connect"),W),this.events.off((0,S.E0T)("session_request",ew),ce),r}return await this.setProposal(eE,sign_client_dist_index_es_y({id:eE},ey)),await this.setAuthRequest(ew,{request:index_es_M(sign_client_dist_index_es_y({},ed),{verifyContext:{}}),pairingTopic:X}),{uri:ee,response:e_}},this.approveSessionAuthenticate=async r=>{let i;this.isInitialized();let{id:c,auths:l}=r,p=this.getPendingAuthRequest(c);if(!p)throw Error(`Could not find pending auth request with id ${c}`);let D=p.requester.publicKey,C=await this.client.core.crypto.generateKeyPair(),P=(0,S.YmJ)(D),M={type:S.rVF,receiverPublicKey:D,senderPublicKey:C},U=[],q=[];for(let r of l){if(!await (0,S.c4l)({cacao:r,projectId:this.client.core.projectId})){let r=(0,S.D6H)("SESSION_SETTLEMENT_FAILED","Signature verification failed");throw await this.sendError({id:c,topic:P,error:r,encodeOpts:M}),Error(r.message)}let{p:i}=r,l=(0,S.hA9)(i.resources),p=[(0,S.DJo)(i.iss)],D=(0,S.NmC)(i.iss);if(l){let r=(0,S.Y31)(l),i=(0,S.ouN)(l);U.push(...r),p.push(...i)}for(let r of p)q.push(`${r}:${D}`)}let J=await this.client.core.crypto.generateSharedKey(C,D);return U?.length>0&&(i={topic:J,acknowledged:!0,self:{publicKey:C,metadata:this.client.metadata},peer:{publicKey:D,metadata:p.requester.metadata},controller:D,expiry:(0,S.gn4)(rL),authentication:l,requiredNamespaces:{},optionalNamespaces:{},relay:{protocol:"irn"},pairingTopic:"",namespaces:(0,S.E12)([...new Set(U)],[...new Set(q)])},await this.client.core.relayer.subscribe(J),await this.client.session.set(J,i)),await this.sendResult({topic:P,id:c,result:{cacaos:l,responder:{publicKey:C,metadata:this.client.metadata}},encodeOpts:M,throwOnFailedPublish:!0}),await this.client.auth.requests.delete(c,{message:"fullfilled",code:0}),await this.client.core.pairing.activate({topic:p.pairingTopic}),{session:i}},this.rejectSessionAuthenticate=async r=>{await this.isInitialized();let{id:i,reason:c}=r,l=this.getPendingAuthRequest(i);if(!l)throw Error(`Could not find pending auth request with id ${i}`);let p=l.requester.publicKey,D=await this.client.core.crypto.generateKeyPair(),C=(0,S.YmJ)(p),P={type:S.rVF,receiverPublicKey:p,senderPublicKey:D};await this.sendError({id:i,topic:C,error:c,encodeOpts:P}),await this.client.auth.requests.delete(i,{message:"rejected",code:0}),await this.client.proposal.delete(i,(0,S.D6H)("USER_DISCONNECTED"))},this.formatAuthMessage=r=>{this.isInitialized();let{request:i,iss:c}=r;return(0,S.wvx)(i,c)},this.cleanupDuplicatePairings=async r=>{if(r.pairingTopic)try{let i=this.client.core.pairing.pairings.get(r.pairingTopic),c=this.client.core.pairing.pairings.getAll().filter(c=>{var l,p;return(null==(l=c.peerMetadata)?void 0:l.url)&&(null==(p=c.peerMetadata)?void 0:p.url)===r.peer.metadata.url&&c.topic&&c.topic!==i.topic});if(0===c.length)return;this.client.logger.info(`Cleaning up ${c.length} duplicate pairing(s)`),await Promise.all(c.map(r=>this.client.core.pairing.disconnect({topic:r.topic}))),this.client.logger.info("Duplicate pairings clean up finished")}catch(r){this.client.logger.error(r)}},this.deleteSession=async r=>{let{topic:i,expirerHasDeleted:c=!1,emitEvent:l=!0,id:p=0}=r,{self:D}=this.client.session.get(i);await this.client.core.relayer.unsubscribe(i),await this.client.session.delete(i,(0,S.D6H)("USER_DISCONNECTED")),this.addToRecentlyDeleted(i,"session"),this.client.core.crypto.keychain.has(D.publicKey)&&await this.client.core.crypto.deleteKeyPair(D.publicKey),this.client.core.crypto.keychain.has(i)&&await this.client.core.crypto.deleteSymKey(i),c||this.client.core.expirer.del(i),this.client.core.storage.removeItem(rT).catch(r=>this.client.logger.warn(r)),this.getPendingSessionRequests().forEach(r=>{r.topic===i&&this.deletePendingSessionRequest(r.id,(0,S.D6H)("USER_DISCONNECTED"))}),l&&this.client.events.emit("session_delete",{id:p,topic:i})},this.deleteProposal=async(r,i)=>{await Promise.all([this.client.proposal.delete(r,(0,S.D6H)("USER_DISCONNECTED")),i?Promise.resolve():this.client.core.expirer.del(r)]),this.addToRecentlyDeleted(r,"proposal")},this.deletePendingSessionRequest=async(r,i,c=!1)=>{await Promise.all([this.client.pendingRequest.delete(r,i),c?Promise.resolve():this.client.core.expirer.del(r)]),this.addToRecentlyDeleted(r,"request"),this.sessionRequestQueue.queue=this.sessionRequestQueue.queue.filter(i=>i.id!==r),c&&(this.sessionRequestQueue.state=rM.idle,this.client.events.emit("session_request_expire",{id:r}))},this.deletePendingAuthRequest=async(r,i,c=!1)=>{await Promise.all([this.client.auth.requests.delete(r,i),c?Promise.resolve():this.client.core.expirer.del(r)])},this.setExpiry=async(r,i)=>{this.client.session.keys.includes(r)&&(this.client.core.expirer.set(r,i),await this.client.session.update(r,{expiry:i}))},this.setProposal=async(r,i)=>{this.client.core.expirer.set(r,(0,S.gn4)(rk.wc_sessionPropose.req.ttl)),await this.client.proposal.set(r,i)},this.setAuthRequest=async(r,i)=>{let{request:c,pairingTopic:l}=i;this.client.core.expirer.set(r,c.expiryTimestamp),await this.client.auth.requests.set(r,{authPayload:c.authPayload,requester:c.requester,expiryTimestamp:c.expiryTimestamp,id:r,pairingTopic:l,verifyContext:c.verifyContext})},this.setPendingSessionRequest=async r=>{let{id:i,topic:c,params:l,verifyContext:p}=r,D=l.request.expiryTimestamp||(0,S.gn4)(rk.wc_sessionRequest.req.ttl);this.client.core.expirer.set(i,D),await this.client.pendingRequest.set(i,{id:i,topic:c,params:l,verifyContext:p})},this.sendRequest=async r=>{let i;let{topic:c,method:l,params:p,expiry:D,relayRpcId:C,clientRpcId:P,throwOnFailedPublish:M}=r,U=formatJsonRpcRequest(l,p,P);if((0,S.jUY)()&&rU.includes(l)){let r=(0,S.rjm)(JSON.stringify(U));this.client.core.verify.register({attestationId:r})}try{i=await this.client.core.crypto.encode(c,U)}catch(r){throw await this.cleanup(),this.client.logger.error(`sendRequest() -> core.crypto.encode() for topic ${c} failed`),r}let q=rk[l].req;return D&&(q.ttl=D),C&&(q.id=C),this.client.core.history.set(c,U),M?(q.internal=index_es_M(sign_client_dist_index_es_y({},q.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(c,i,q)):this.client.core.relayer.publish(c,i,q).catch(r=>this.client.logger.error(r)),U.id},this.sendResult=async r=>{let i,c;let{id:l,topic:p,result:D,throwOnFailedPublish:S,encodeOpts:C}=r,P=formatJsonRpcResult(l,D);try{i=await this.client.core.crypto.encode(p,P,C)}catch(r){throw await this.cleanup(),this.client.logger.error(`sendResult() -> core.crypto.encode() for topic ${p} failed`),r}try{c=await this.client.core.history.get(p,l)}catch(r){throw this.client.logger.error(`sendResult() -> history.get(${p}, ${l}) failed`),r}let M=rk[c.request.method].res;S?(M.internal=index_es_M(sign_client_dist_index_es_y({},M.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(p,i,M)):this.client.core.relayer.publish(p,i,M).catch(r=>this.client.logger.error(r)),await this.client.core.history.resolve(P)},this.sendError=async r=>{let i,c;let{id:l,topic:p,error:D,encodeOpts:S}=r,C=formatJsonRpcError(l,D);try{i=await this.client.core.crypto.encode(p,C,S)}catch(r){throw await this.cleanup(),this.client.logger.error(`sendError() -> core.crypto.encode() for topic ${p} failed`),r}try{c=await this.client.core.history.get(p,l)}catch(r){throw this.client.logger.error(`sendError() -> history.get(${p}, ${l}) failed`),r}let P=rk[c.request.method].res;this.client.core.relayer.publish(p,i,P),await this.client.core.history.resolve(C)},this.cleanup=async()=>{let r=[],i=[];this.client.session.getAll().forEach(i=>{let c=!1;(0,S.BwD)(i.expiry)&&(c=!0),this.client.core.crypto.keychain.has(i.topic)||(c=!0),c&&r.push(i.topic)}),this.client.proposal.getAll().forEach(r=>{(0,S.BwD)(r.expiryTimestamp)&&i.push(r.id)}),await Promise.all([...r.map(r=>this.deleteSession({topic:r})),...i.map(r=>this.deleteProposal(r))])},this.onRelayEventRequest=async r=>{this.requestQueue.queue.push(r),await this.processRequestsQueue()},this.processRequestsQueue=async()=>{if(this.requestQueue.state===rM.active){this.client.logger.info("Request queue already active, skipping...");return}for(this.client.logger.info(`Request queue starting with ${this.requestQueue.queue.length} requests`);this.requestQueue.queue.length>0;){this.requestQueue.state=rM.active;let r=this.requestQueue.queue.shift();if(r)try{this.processRequest(r),await new Promise(r=>setTimeout(r,300))}catch(r){this.client.logger.warn(r)}}this.requestQueue.state=rM.idle},this.processRequest=r=>{let{topic:i,payload:c}=r,l=c.method;if(!this.shouldIgnorePairingRequest({topic:i,requestMethod:l}))switch(l){case"wc_sessionPropose":return this.onSessionProposeRequest(i,c);case"wc_sessionSettle":return this.onSessionSettleRequest(i,c);case"wc_sessionUpdate":return this.onSessionUpdateRequest(i,c);case"wc_sessionExtend":return this.onSessionExtendRequest(i,c);case"wc_sessionPing":return this.onSessionPingRequest(i,c);case"wc_sessionDelete":return this.onSessionDeleteRequest(i,c);case"wc_sessionRequest":return this.onSessionRequest(i,c);case"wc_sessionEvent":return this.onSessionEventRequest(i,c);case"wc_sessionAuthenticate":return this.onSessionAuthenticateRequest(i,c);default:return this.client.logger.info(`Unsupported request method ${l}`)}},this.onRelayEventResponse=async r=>{let{topic:i,payload:c}=r,l=(await this.client.core.history.get(i,c.id)).request.method;switch(l){case"wc_sessionPropose":return this.onSessionProposeResponse(i,c);case"wc_sessionSettle":return this.onSessionSettleResponse(i,c);case"wc_sessionUpdate":return this.onSessionUpdateResponse(i,c);case"wc_sessionExtend":return this.onSessionExtendResponse(i,c);case"wc_sessionPing":return this.onSessionPingResponse(i,c);case"wc_sessionRequest":return this.onSessionRequestResponse(i,c);case"wc_sessionAuthenticate":return this.onSessionAuthenticateResponse(i,c);default:return this.client.logger.info(`Unsupported response method ${l}`)}},this.onRelayEventUnknownPayload=r=>{let{topic:i}=r,{message:c}=(0,S.kCb)("MISSING_OR_INVALID",`Decoded payload on topic ${i} is not identifiable as a JSON-RPC request or a response.`);throw Error(c)},this.shouldIgnorePairingRequest=r=>{let{topic:i,requestMethod:c}=r,l=this.expectedPairingMethodMap.get(i);return!(!l||l.includes(c))&&!!(l.includes("wc_sessionAuthenticate")&&this.client.events.listenerCount("session_authenticate")>0)},this.onSessionProposeRequest=async(r,i)=>{let{params:c,id:l}=i;try{this.isValidConnect(sign_client_dist_index_es_y({},i.params));let p=c.expiryTimestamp||(0,S.gn4)(rk.wc_sessionPropose.req.ttl),D=sign_client_dist_index_es_y({id:l,pairingTopic:r,expiryTimestamp:p},c);await this.setProposal(l,D);let C=(0,S.rjm)(JSON.stringify(i)),P=await this.getVerifyContext(C,D.proposer.metadata);this.client.events.emit("session_proposal",{id:l,params:D,verifyContext:P})}catch(i){await this.sendError({id:l,topic:r,error:i}),this.client.logger.error(i)}},this.onSessionProposeResponse=async(r,i)=>{let{id:c}=i;if(isJsonRpcResult(i)){let{result:l}=i;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:l});let p=this.client.proposal.get(c);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:p});let D=p.proposer.publicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:D});let S=l.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:S});let C=await this.client.core.crypto.generateSharedKey(D,S);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:C});let P=await this.client.core.relayer.subscribe(C);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:P}),await this.client.core.pairing.activate({topic:r})}else if(isJsonRpcError(i)){await this.client.proposal.delete(c,(0,S.D6H)("USER_DISCONNECTED"));let r=(0,S.E0T)("session_connect");if(0===this.events.listenerCount(r))throw Error(`emitting ${r} without any listeners, 954`);this.events.emit((0,S.E0T)("session_connect"),{error:i.error})}},this.onSessionSettleRequest=async(r,i)=>{let{id:c,params:l}=i;try{this.isValidSessionSettleRequest(l);let{relay:c,controller:p,expiry:D,namespaces:C,sessionProperties:P,pairingTopic:M,sessionConfig:U}=i.params,q=sign_client_dist_index_es_y(sign_client_dist_index_es_y({topic:r,relay:c,expiry:D,namespaces:C,acknowledged:!0,pairingTopic:M,requiredNamespaces:{},optionalNamespaces:{},controller:p.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:p.publicKey,metadata:p.metadata}},P&&{sessionProperties:P}),U&&{sessionConfig:U});await this.sendResult({id:i.id,topic:r,result:!0,throwOnFailedPublish:!0});let J=(0,S.E0T)("session_connect");if(0===this.events.listenerCount(J))throw Error(`emitting ${J} without any listeners 997`);this.events.emit((0,S.E0T)("session_connect"),{session:q}),this.cleanupDuplicatePairings(q)}catch(i){await this.sendError({id:c,topic:r,error:i}),this.client.logger.error(i)}},this.onSessionSettleResponse=async(r,i)=>{let{id:c}=i;isJsonRpcResult(i)?(await this.client.session.update(r,{acknowledged:!0}),this.events.emit((0,S.E0T)("session_approve",c),{})):isJsonRpcError(i)&&(await this.client.session.delete(r,(0,S.D6H)("USER_DISCONNECTED")),this.events.emit((0,S.E0T)("session_approve",c),{error:i.error}))},this.onSessionUpdateRequest=async(r,i)=>{let{params:c,id:l}=i;try{let i=`${r}_session_update`,p=S.O6B.get(i);if(p&&this.isRequestOutOfSync(p,l)){this.client.logger.info(`Discarding out of sync request - ${l}`),this.sendError({id:l,topic:r,error:(0,S.D6H)("INVALID_UPDATE_REQUEST")});return}this.isValidUpdate(sign_client_dist_index_es_y({topic:r},c));try{S.O6B.set(i,l),await this.client.session.update(r,{namespaces:c.namespaces}),await this.sendResult({id:l,topic:r,result:!0,throwOnFailedPublish:!0})}catch(r){throw S.O6B.delete(i),r}this.client.events.emit("session_update",{id:l,topic:r,params:c})}catch(i){await this.sendError({id:l,topic:r,error:i}),this.client.logger.error(i)}},this.isRequestOutOfSync=(r,i)=>parseInt(i.toString().slice(0,-3))<=parseInt(r.toString().slice(0,-3)),this.onSessionUpdateResponse=(r,i)=>{let{id:c}=i,l=(0,S.E0T)("session_update",c);if(0===this.events.listenerCount(l))throw Error(`emitting ${l} without any listeners`);isJsonRpcResult(i)?this.events.emit((0,S.E0T)("session_update",c),{}):isJsonRpcError(i)&&this.events.emit((0,S.E0T)("session_update",c),{error:i.error})},this.onSessionExtendRequest=async(r,i)=>{let{id:c}=i;try{this.isValidExtend({topic:r}),await this.setExpiry(r,(0,S.gn4)(rL)),await this.sendResult({id:c,topic:r,result:!0,throwOnFailedPublish:!0}),this.client.events.emit("session_extend",{id:c,topic:r})}catch(i){await this.sendError({id:c,topic:r,error:i}),this.client.logger.error(i)}},this.onSessionExtendResponse=(r,i)=>{let{id:c}=i,l=(0,S.E0T)("session_extend",c);if(0===this.events.listenerCount(l))throw Error(`emitting ${l} without any listeners`);isJsonRpcResult(i)?this.events.emit((0,S.E0T)("session_extend",c),{}):isJsonRpcError(i)&&this.events.emit((0,S.E0T)("session_extend",c),{error:i.error})},this.onSessionPingRequest=async(r,i)=>{let{id:c}=i;try{this.isValidPing({topic:r}),await this.sendResult({id:c,topic:r,result:!0,throwOnFailedPublish:!0}),this.client.events.emit("session_ping",{id:c,topic:r})}catch(i){await this.sendError({id:c,topic:r,error:i}),this.client.logger.error(i)}},this.onSessionPingResponse=(r,i)=>{let{id:c}=i,l=(0,S.E0T)("session_ping",c);if(0===this.events.listenerCount(l))throw Error(`emitting ${l} without any listeners`);setTimeout(()=>{isJsonRpcResult(i)?this.events.emit((0,S.E0T)("session_ping",c),{}):isJsonRpcError(i)&&this.events.emit((0,S.E0T)("session_ping",c),{error:i.error})},500)},this.onSessionDeleteRequest=async(r,i)=>{let{id:c}=i;try{this.isValidDisconnect({topic:r,reason:i.params}),await Promise.all([new Promise(i=>{this.client.core.relayer.once(tJ.publish,async()=>{i(await this.deleteSession({topic:r,id:c}))})}),this.sendResult({id:c,topic:r,result:!0,throwOnFailedPublish:!0}),this.cleanupPendingSentRequestsForTopic({topic:r,error:(0,S.D6H)("USER_DISCONNECTED")})])}catch(r){this.client.logger.error(r)}},this.onSessionRequest=async(r,i)=>{var c;let{id:l,params:p}=i;try{await this.isValidRequest(sign_client_dist_index_es_y({topic:r},p));let i=(0,S.rjm)(JSON.stringify(formatJsonRpcRequest("wc_sessionRequest",p,l))),D=this.client.session.get(r),C=await this.getVerifyContext(i,D.peer.metadata),P={id:l,topic:r,params:p,verifyContext:C};await this.setPendingSessionRequest(P),null!=(c=this.client.signConfig)&&c.disableRequestQueue?this.emitSessionRequest(P):(this.addSessionRequestToSessionRequestQueue(P),this.processSessionRequestQueue())}catch(i){await this.sendError({id:l,topic:r,error:i}),this.client.logger.error(i)}},this.onSessionRequestResponse=(r,i)=>{let{id:c}=i,l=(0,S.E0T)("session_request",c);if(0===this.events.listenerCount(l))throw Error(`emitting ${l} without any listeners`);isJsonRpcResult(i)?this.events.emit((0,S.E0T)("session_request",c),{result:i.result}):isJsonRpcError(i)&&this.events.emit((0,S.E0T)("session_request",c),{error:i.error})},this.onSessionEventRequest=async(r,i)=>{let{id:c,params:l}=i;try{let i=`${r}_session_event_${l.event.name}`,p=S.O6B.get(i);if(p&&this.isRequestOutOfSync(p,c)){this.client.logger.info(`Discarding out of sync request - ${c}`);return}this.isValidEmit(sign_client_dist_index_es_y({topic:r},l)),this.client.events.emit("session_event",{id:c,topic:r,params:l}),S.O6B.set(i,c)}catch(i){await this.sendError({id:c,topic:r,error:i}),this.client.logger.error(i)}},this.onSessionAuthenticateResponse=(r,i)=>{let{id:c}=i;this.client.logger.trace({type:"method",method:"onSessionAuthenticateResponse",topic:r,payload:i}),isJsonRpcResult(i)?this.events.emit((0,S.E0T)("session_request",c),{result:i.result}):isJsonRpcError(i)&&this.events.emit((0,S.E0T)("session_request",c),{error:i.error})},this.onSessionAuthenticateRequest=async(r,i)=>{let{requester:c,authPayload:l,expiryTimestamp:p}=i.params,D=(0,S.rjm)(JSON.stringify(i)),C=await this.getVerifyContext(D,this.client.metadata),P={requester:c,pairingTopic:r,id:i.id,authPayload:l,verifyContext:C,expiryTimestamp:p};await this.setAuthRequest(i.id,{request:P,pairingTopic:r}),this.client.events.emit("session_authenticate",{topic:r,params:i.params,id:i.id})},this.addSessionRequestToSessionRequestQueue=r=>{this.sessionRequestQueue.queue.push(r)},this.cleanupAfterResponse=r=>{this.deletePendingSessionRequest(r.response.id,{message:"fulfilled",code:0}),setTimeout(()=>{this.sessionRequestQueue.state=rM.idle,this.processSessionRequestQueue()},(0,et.toMiliseconds)(this.requestQueueDelay))},this.cleanupPendingSentRequestsForTopic=({topic:r,error:i})=>{let c=this.client.core.history.pending;c.length>0&&c.filter(i=>i.topic===r&&"wc_sessionRequest"===i.request.method).forEach(r=>{let c=r.request.id,l=(0,S.E0T)("session_request",c);if(0===this.events.listenerCount(l))throw Error(`emitting ${l} without any listeners`);this.events.emit((0,S.E0T)("session_request",r.request.id),{error:i})})},this.processSessionRequestQueue=()=>{if(this.sessionRequestQueue.state===rM.active){this.client.logger.info("session request queue is already active.");return}let r=this.sessionRequestQueue.queue[0];if(!r){this.client.logger.info("session request queue is empty.");return}try{this.sessionRequestQueue.state=rM.active,this.emitSessionRequest(r)}catch(r){this.client.logger.error(r)}},this.emitSessionRequest=r=>{this.client.events.emit("session_request",r)},this.onPairingCreated=r=>{if(r.methods&&this.expectedPairingMethodMap.set(r.topic,r.methods),r.active)return;let i=this.client.proposal.getAll().find(i=>i.pairingTopic===r.topic);i&&this.onSessionProposeRequest(r.topic,formatJsonRpcRequest("wc_sessionPropose",{requiredNamespaces:i.requiredNamespaces,optionalNamespaces:i.optionalNamespaces,relays:i.relays,proposer:i.proposer,sessionProperties:i.sessionProperties},i.id))},this.isValidConnect=async r=>{if(!(0,S.EJd)(r)){let{message:i}=(0,S.kCb)("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(r)}`);throw Error(i)}let{pairingTopic:i,requiredNamespaces:c,optionalNamespaces:l,sessionProperties:p,relays:D}=r;if((0,S.o8e)(i)||await this.isValidPairingTopic(i),!(0,S.PMr)(D,!0)){let{message:r}=(0,S.kCb)("MISSING_OR_INVALID",`connect() relays: ${D}`);throw Error(r)}(0,S.o8e)(c)||0===(0,S.L5o)(c)||this.validateNamespaces(c,"requiredNamespaces"),(0,S.o8e)(l)||0===(0,S.L5o)(l)||this.validateNamespaces(l,"optionalNamespaces"),(0,S.o8e)(p)||this.validateSessionProps(p,"sessionProperties")},this.validateNamespaces=(r,i)=>{let c=(0,S.naP)(r,"connect()",i);if(c)throw Error(c.message)},this.isValidApprove=async r=>{if(!(0,S.EJd)(r))throw Error((0,S.kCb)("MISSING_OR_INVALID",`approve() params: ${r}`).message);let{id:i,namespaces:c,relayProtocol:l,sessionProperties:p}=r;this.checkRecentlyDeleted(i),await this.isValidProposalId(i);let D=this.client.proposal.get(i),C=(0,S.ing)(c,"approve()");if(C)throw Error(C.message);let P=(0,S.rFo)(D.requiredNamespaces,c,"approve()");if(P)throw Error(P.message);if(!(0,S.M_r)(l,!0)){let{message:r}=(0,S.kCb)("MISSING_OR_INVALID",`approve() relayProtocol: ${l}`);throw Error(r)}(0,S.o8e)(p)||this.validateSessionProps(p,"sessionProperties")},this.isValidReject=async r=>{if(!(0,S.EJd)(r)){let{message:i}=(0,S.kCb)("MISSING_OR_INVALID",`reject() params: ${r}`);throw Error(i)}let{id:i,reason:c}=r;if(this.checkRecentlyDeleted(i),await this.isValidProposalId(i),!(0,S.H4H)(c)){let{message:r}=(0,S.kCb)("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(c)}`);throw Error(r)}},this.isValidSessionSettleRequest=r=>{if(!(0,S.EJd)(r)){let{message:i}=(0,S.kCb)("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${r}`);throw Error(i)}let{relay:i,controller:c,namespaces:l,expiry:p}=r;if(!(0,S.Z26)(i)){let{message:r}=(0,S.kCb)("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw Error(r)}let D=(0,S.DdM)(c,"onSessionSettleRequest()");if(D)throw Error(D.message);let C=(0,S.ing)(l,"onSessionSettleRequest()");if(C)throw Error(C.message);if((0,S.BwD)(p)){let{message:r}=(0,S.kCb)("EXPIRED","onSessionSettleRequest()");throw Error(r)}},this.isValidUpdate=async r=>{if(!(0,S.EJd)(r)){let{message:i}=(0,S.kCb)("MISSING_OR_INVALID",`update() params: ${r}`);throw Error(i)}let{topic:i,namespaces:c}=r;this.checkRecentlyDeleted(i),await this.isValidSessionTopic(i);let l=this.client.session.get(i),p=(0,S.ing)(c,"update()");if(p)throw Error(p.message);let D=(0,S.rFo)(l.requiredNamespaces,c,"update()");if(D)throw Error(D.message)},this.isValidExtend=async r=>{if(!(0,S.EJd)(r)){let{message:i}=(0,S.kCb)("MISSING_OR_INVALID",`extend() params: ${r}`);throw Error(i)}let{topic:i}=r;this.checkRecentlyDeleted(i),await this.isValidSessionTopic(i)},this.isValidRequest=async r=>{if(!(0,S.EJd)(r)){let{message:i}=(0,S.kCb)("MISSING_OR_INVALID",`request() params: ${r}`);throw Error(i)}let{topic:i,request:c,chainId:l,expiry:p}=r;this.checkRecentlyDeleted(i),await this.isValidSessionTopic(i);let{namespaces:D}=this.client.session.get(i);if(!(0,S.p8o)(D,l)){let{message:r}=(0,S.kCb)("MISSING_OR_INVALID",`request() chainId: ${l}`);throw Error(r)}if(!(0,S.hHR)(c)){let{message:r}=(0,S.kCb)("MISSING_OR_INVALID",`request() ${JSON.stringify(c)}`);throw Error(r)}if(!(0,S.alS)(D,l,c.method)){let{message:r}=(0,S.kCb)("MISSING_OR_INVALID",`request() method: ${c.method}`);throw Error(r)}if(p&&!(0,S.ONw)(p,rj)){let{message:r}=(0,S.kCb)("MISSING_OR_INVALID",`request() expiry: ${p}. Expiry must be a number (in seconds) between ${rj.min} and ${rj.max}`);throw Error(r)}},this.isValidRespond=async r=>{var i;if(!(0,S.EJd)(r)){let{message:i}=(0,S.kCb)("MISSING_OR_INVALID",`respond() params: ${r}`);throw Error(i)}let{topic:c,response:l}=r;try{await this.isValidSessionTopic(c)}catch(c){throw null!=(i=r?.response)&&i.id&&this.cleanupAfterResponse(r),c}if(!(0,S.JTI)(l)){let{message:r}=(0,S.kCb)("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(l)}`);throw Error(r)}},this.isValidPing=async r=>{if(!(0,S.EJd)(r)){let{message:i}=(0,S.kCb)("MISSING_OR_INVALID",`ping() params: ${r}`);throw Error(i)}let{topic:i}=r;await this.isValidSessionOrPairingTopic(i)},this.isValidEmit=async r=>{if(!(0,S.EJd)(r)){let{message:i}=(0,S.kCb)("MISSING_OR_INVALID",`emit() params: ${r}`);throw Error(i)}let{topic:i,event:c,chainId:l}=r;await this.isValidSessionTopic(i);let{namespaces:p}=this.client.session.get(i);if(!(0,S.p8o)(p,l)){let{message:r}=(0,S.kCb)("MISSING_OR_INVALID",`emit() chainId: ${l}`);throw Error(r)}if(!(0,S.nfW)(c)){let{message:r}=(0,S.kCb)("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(c)}`);throw Error(r)}if(!(0,S.B95)(p,l,c.name)){let{message:r}=(0,S.kCb)("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(c)}`);throw Error(r)}},this.isValidDisconnect=async r=>{if(!(0,S.EJd)(r)){let{message:i}=(0,S.kCb)("MISSING_OR_INVALID",`disconnect() params: ${r}`);throw Error(i)}let{topic:i}=r;await this.isValidSessionOrPairingTopic(i)},this.isValidAuthenticate=r=>{let{chains:i,uri:c,domain:l,nonce:p}=r;if(!Array.isArray(i)||0===i.length)throw Error("chains is required and must be a non-empty array");if(!(0,S.M_r)(c,!1))throw Error("uri is required parameter");if(!(0,S.M_r)(l,!1))throw Error("domain is required parameter");if(!(0,S.M_r)(p,!1))throw Error("nonce is required parameter");if([...new Set(i.map(r=>(0,S.DQe)(r).namespace))].length>1)throw Error("Multi-namespace requests are not supported. Please request single namespace only.");let{namespace:D}=(0,S.DQe)(i[0]);if("eip155"!==D)throw Error("Only eip155 namespace is supported for authenticated sessions. Please use .connect() for non-eip155 chains.")},this.getVerifyContext=async(r,i)=>{let c={verified:{verifyUrl:i.verifyUrl||t2,validation:"UNKNOWN",origin:i.url||""}};try{let l=await this.client.core.verify.resolve({attestationId:r,verifyUrl:i.verifyUrl});l&&(c.verified.origin=l.origin,c.verified.isScam=l.isScam,c.verified.validation=l.origin===new URL(i.url).origin?"VALID":"INVALID")}catch(r){this.client.logger.info(r)}return this.client.logger.info(`Verify context: ${JSON.stringify(c)}`),c},this.validateSessionProps=(r,i)=>{Object.values(r).forEach(r=>{if(!(0,S.M_r)(r,!1)){let{message:c}=(0,S.kCb)("MISSING_OR_INVALID",`${i} must be in Record format. Received: ${JSON.stringify(r)}`);throw Error(c)}})},this.getPendingAuthRequest=r=>{let i=this.client.auth.requests.get(r);return"object"==typeof i?i:void 0},this.addToRecentlyDeleted=(r,i)=>{if(this.recentlyDeletedMap.set(r,i),this.recentlyDeletedMap.size>=this.recentlyDeletedLimit){let r=0,i=this.recentlyDeletedLimit/2;for(let c of this.recentlyDeletedMap.keys()){if(r++>=i)break;this.recentlyDeletedMap.delete(c)}}},this.checkRecentlyDeleted=r=>{let i=this.recentlyDeletedMap.get(r);if(i){let{message:c}=(0,S.kCb)("MISSING_OR_INVALID",`Record was recently deleted - ${i}: ${r}`);throw Error(c)}}}async isInitialized(){if(!this.initialized){let{message:r}=(0,S.kCb)("NOT_INITIALIZED",this.name);throw Error(r)}await this.client.core.relayer.confirmOnlineStateOrThrow()}registerRelayerEvents(){this.client.core.relayer.on(tJ.message,async r=>{let{topic:i,message:c}=r,{publicKey:l}=this.client.auth.authKeys.keys.includes(rz)?this.client.auth.authKeys.get(rz):{responseTopic:void 0,publicKey:void 0},p=await this.client.core.crypto.decode(i,c,{receiverPublicKey:l});try{isJsonRpcRequest(p)?(this.client.core.history.set(i,p),this.onRelayEventRequest({topic:i,payload:p})):isJsonRpcResponse(p)?(await this.client.core.history.resolve(p),await this.onRelayEventResponse({topic:i,payload:p}),this.client.core.history.delete(i,p.id)):this.onRelayEventUnknownPayload({topic:i,payload:p})}catch(r){this.client.logger.error(r)}})}registerExpirerEvents(){this.client.core.expirer.on(t3.expired,async r=>{let{topic:i,id:c}=(0,S.iPz)(r.target);return c&&this.client.pendingRequest.keys.includes(c)?await this.deletePendingSessionRequest(c,(0,S.kCb)("EXPIRED"),!0):c&&this.client.auth.requests.keys.includes(c)?await this.deletePendingAuthRequest(c,(0,S.kCb)("EXPIRED"),!0):void(i?this.client.session.keys.includes(i)&&(await this.deleteSession({topic:i,expirerHasDeleted:!0}),this.client.events.emit("session_expire",{topic:i})):c&&(await this.deleteProposal(c,!0),this.client.events.emit("proposal_expire",{id:c})))})}registerPairingEvents(){this.client.core.pairing.events.on(t1.create,r=>this.onPairingCreated(r)),this.client.core.pairing.events.on(t1.delete,r=>{this.addToRecentlyDeleted(r.topic,"pairing")})}isValidPairingTopic(r){if(!(0,S.M_r)(r,!1)){let{message:i}=(0,S.kCb)("MISSING_OR_INVALID",`pairing topic should be a string: ${r}`);throw Error(i)}if(!this.client.core.pairing.pairings.keys.includes(r)){let{message:i}=(0,S.kCb)("NO_MATCHING_KEY",`pairing topic doesn't exist: ${r}`);throw Error(i)}if((0,S.BwD)(this.client.core.pairing.pairings.get(r).expiry)){let{message:i}=(0,S.kCb)("EXPIRED",`pairing topic: ${r}`);throw Error(i)}}async isValidSessionTopic(r){if(!(0,S.M_r)(r,!1)){let{message:i}=(0,S.kCb)("MISSING_OR_INVALID",`session topic should be a string: ${r}`);throw Error(i)}if(this.checkRecentlyDeleted(r),!this.client.session.keys.includes(r)){let{message:i}=(0,S.kCb)("NO_MATCHING_KEY",`session topic doesn't exist: ${r}`);throw Error(i)}if((0,S.BwD)(this.client.session.get(r).expiry)){await this.deleteSession({topic:r});let{message:i}=(0,S.kCb)("EXPIRED",`session topic: ${r}`);throw Error(i)}if(!this.client.core.crypto.keychain.has(r)){let{message:i}=(0,S.kCb)("MISSING_OR_INVALID",`session topic does not exist in keychain: ${r}`);throw await this.deleteSession({topic:r}),Error(i)}}async isValidSessionOrPairingTopic(r){if(this.checkRecentlyDeleted(r),this.client.session.keys.includes(r))await this.isValidSessionTopic(r);else if(this.client.core.pairing.pairings.keys.includes(r))this.isValidPairingTopic(r);else if((0,S.M_r)(r,!1)){let{message:i}=(0,S.kCb)("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${r}`);throw Error(i)}else{let{message:i}=(0,S.kCb)("MISSING_OR_INVALID",`session or pairing topic should be a string: ${r}`);throw Error(i)}}async isValidProposalId(r){if(!(0,S.Q01)(r)){let{message:i}=(0,S.kCb)("MISSING_OR_INVALID",`proposal id should be a number: ${r}`);throw Error(i)}if(!this.client.proposal.keys.includes(r)){let{message:i}=(0,S.kCb)("NO_MATCHING_KEY",`proposal id doesn't exist: ${r}`);throw Error(i)}if((0,S.BwD)(this.client.proposal.get(r).expiryTimestamp)){await this.deleteProposal(r);let{message:i}=(0,S.kCb)("EXPIRED",`proposal id: ${r}`);throw Error(i)}}};let index_es_es=class index_es_es extends Kt{constructor(r,i){super(r,i,"proposal",rA),this.core=r,this.logger=i}};let index_es_Ze=class index_es_Ze extends Kt{constructor(r,i){super(r,i,"session",rA),this.core=r,this.logger=i}};let index_es_ts=class index_es_ts extends Kt{constructor(r,i){super(r,i,"request",rA,r=>r.id),this.core=r,this.logger=i}};let index_es_ss=class index_es_ss extends Kt{constructor(r,i){super(r,i,"authKeys",rq,()=>rz),this.core=r,this.logger=i}};let index_es_is=class index_es_is extends Kt{constructor(r,i){super(r,i,"pairingTopics",rq),this.core=r,this.logger=i}};let index_es_rs=class index_es_rs extends Kt{constructor(r,i){super(r,i,"requests",rq,r=>r.id),this.core=r,this.logger=i}};let index_es_ns=class index_es_ns{constructor(r,i){this.core=r,this.logger=i,this.authKeys=new index_es_ss(this.core,this.logger),this.pairingTopics=new index_es_is(this.core,this.logger),this.requests=new index_es_rs(this.core,this.logger)}async init(){await this.authKeys.init(),await this.pairingTopics.init(),await this.requests.init()}};let oe=class oe extends index_es_b{constructor(r){super(r),this.protocol="wc",this.version=2,this.name=rR.name,this.events=new p.EventEmitter,this.on=(r,i)=>this.events.on(r,i),this.once=(r,i)=>this.events.once(r,i),this.off=(r,i)=>this.events.off(r,i),this.removeListener=(r,i)=>this.events.removeListener(r,i),this.removeAllListeners=r=>this.events.removeAllListeners(r),this.connect=async r=>{try{return await this.engine.connect(r)}catch(r){throw this.logger.error(r.message),r}},this.pair=async r=>{try{return await this.engine.pair(r)}catch(r){throw this.logger.error(r.message),r}},this.approve=async r=>{try{return await this.engine.approve(r)}catch(r){throw this.logger.error(r.message),r}},this.reject=async r=>{try{return await this.engine.reject(r)}catch(r){throw this.logger.error(r.message),r}},this.update=async r=>{try{return await this.engine.update(r)}catch(r){throw this.logger.error(r.message),r}},this.extend=async r=>{try{return await this.engine.extend(r)}catch(r){throw this.logger.error(r.message),r}},this.request=async r=>{try{return await this.engine.request(r)}catch(r){throw this.logger.error(r.message),r}},this.respond=async r=>{try{return await this.engine.respond(r)}catch(r){throw this.logger.error(r.message),r}},this.ping=async r=>{try{return await this.engine.ping(r)}catch(r){throw this.logger.error(r.message),r}},this.emit=async r=>{try{return await this.engine.emit(r)}catch(r){throw this.logger.error(r.message),r}},this.disconnect=async r=>{try{return await this.engine.disconnect(r)}catch(r){throw this.logger.error(r.message),r}},this.find=r=>{try{return this.engine.find(r)}catch(r){throw this.logger.error(r.message),r}},this.getPendingSessionRequests=()=>{try{return this.engine.getPendingSessionRequests()}catch(r){throw this.logger.error(r.message),r}},this.authenticate=async r=>{try{return await this.engine.authenticate(r)}catch(r){throw this.logger.error(r.message),r}},this.formatAuthMessage=r=>{try{return this.engine.formatAuthMessage(r)}catch(r){throw this.logger.error(r.message),r}},this.approveSessionAuthenticate=async r=>{try{return await this.engine.approveSessionAuthenticate(r)}catch(r){throw this.logger.error(r.message),r}},this.rejectSessionAuthenticate=async r=>{try{return await this.engine.rejectSessionAuthenticate(r)}catch(r){throw this.logger.error(r.message),r}},this.name=r?.name||rR.name,this.metadata=r?.metadata||(0,S.DaH)(),this.signConfig=r?.signConfig;let i="u">typeof r?.logger&&"string"!=typeof r?.logger?r.logger:ef()(index_es_k({level:r?.logger||rR.logger}));this.core=r?.core||new ie(r),this.logger=index_es_E(i,this.name),this.session=new index_es_Ze(this.core,this.logger),this.proposal=new index_es_es(this.core,this.logger),this.pendingRequest=new index_es_ts(this.core,this.logger),this.engine=new Zt(this),this.auth=new index_es_ns(this.core,this.logger)}static async init(r){let i=new oe(r);return await i.initialize(),i}get context(){return index_es_y(this.logger)}get pairing(){return this.core.pairing.pairings}async initialize(){this.logger.trace("Initialized");try{await this.core.start(),await this.session.init(),await this.proposal.init(),await this.pendingRequest.init(),await this.engine.init(),await this.auth.init(),this.core.verify.init({verifyUrl:this.metadata.verifyUrl}),this.logger.info("SignClient Initialization Success")}catch(r){throw this.logger.info("SignClient Initialization Failure"),this.logger.error(r.message),r}}};var rW=c(20283),rG=c.n(rW),rJ=Object.defineProperty,rY=Object.defineProperties,rQ=Object.getOwnPropertyDescriptors,rX=Object.getOwnPropertySymbols,rZ=Object.prototype.hasOwnProperty,r0=Object.prototype.propertyIsEnumerable,jsonrpc_http_connection_dist_index_es_l=(r,i,c)=>i in r?rJ(r,i,{enumerable:!0,configurable:!0,writable:!0,value:c}):r[i]=c,dist_index_es_p=(r,i)=>{for(var c in i||(i={}))rZ.call(i,c)&&jsonrpc_http_connection_dist_index_es_l(r,c,i[c]);if(rX)for(var c of rX(i))r0.call(i,c)&&jsonrpc_http_connection_dist_index_es_l(r,c,i[c]);return r},dist_index_es_v=(r,i)=>rY(r,rQ(i));let r1={headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST"};let jsonrpc_http_connection_dist_index_es_f=class jsonrpc_http_connection_dist_index_es_f{constructor(r,i=!1){if(this.url=r,this.disableProviderPing=i,this.events=new p.EventEmitter,this.isAvailable=!1,this.registering=!1,!isHttpUrl(r))throw Error(`Provided URL is not compatible with HTTP connection: ${r}`);this.url=r,this.disableProviderPing=i}get connected(){return this.isAvailable}get connecting(){return this.registering}on(r,i){this.events.on(r,i)}once(r,i){this.events.once(r,i)}off(r,i){this.events.off(r,i)}removeListener(r,i){this.events.removeListener(r,i)}async open(r=this.url){await this.register(r)}async close(){if(!this.isAvailable)throw Error("Connection already closed");this.onClose()}async send(r){this.isAvailable||await this.register();try{let i=safeJsonStringify(r),c=await (await rG()(this.url,dist_index_es_v(dist_index_es_p({},r1),{body:i}))).json();this.onPayload({data:c})}catch(i){this.onError(r.id,i)}}async register(r=this.url){if(!isHttpUrl(r))throw Error(`Provided URL is not compatible with HTTP connection: ${r}`);if(this.registering){let r=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=r||this.events.listenerCount("open")>=r)&&this.events.setMaxListeners(r+1),new Promise((r,i)=>{this.events.once("register_error",r=>{this.resetMaxListeners(),i(r)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.isAvailable>"u")return i(Error("HTTP connection is missing or invalid"));r()})})}this.url=r,this.registering=!0;try{if(!this.disableProviderPing){let i=safeJsonStringify({id:1,jsonrpc:"2.0",method:"test",params:[]});await rG()(r,dist_index_es_v(dist_index_es_p({},r1),{body:i}))}this.onOpen()}catch(i){let r=this.parseError(i);throw this.events.emit("register_error",r),this.onClose(),r}}onOpen(){this.isAvailable=!0,this.registering=!1,this.events.emit("open")}onClose(){this.isAvailable=!1,this.registering=!1,this.events.emit("close")}onPayload(r){if(typeof r.data>"u")return;let i="string"==typeof r.data?esm_safeJsonParse(r.data):r.data;this.events.emit("payload",i)}onError(r,i){let c=this.parseError(i),l=c.message||c.toString(),p=formatJsonRpcError(r,l);this.events.emit("payload",p)}parseError(r,i=this.url){return parseConnectionError(r,i,"HTTP")}resetMaxListeners(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}};let r5="error",r3="wc@2:universal_provider:",r6={DEFAULT_CHAIN_CHANGED:"default_chain_changed"};var r2="u">typeof globalThis?globalThis:"u">typeof window?window:"u">typeof c.g?c.g:"u">typeof self?self:{},r8={exports:{}};/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */!function(r,i){(function(){var c,l="Expected a function",p="__lodash_hash_undefined__",D="__lodash_placeholder__",S=1/0,C=0/0,P=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],M="[object Arguments]",U="[object Array]",q="[object Boolean]",J="[object Date]",X="[object Error]",ee="[object Function]",et="[object GeneratorFunction]",eo="[object Map]",ea="[object Number]",ed="[object Object]",ef="[object Promise]",ey="[object RegExp]",e_="[object Set]",em="[object String]",eb="[object Symbol]",ew="[object WeakMap]",eE="[object ArrayBuffer]",eD="[object DataView]",eS="[object Float32Array]",eI="[object Float64Array]",ex="[object Int8Array]",eC="[object Int16Array]",eP="[object Int32Array]",eO="[object Uint8Array]",eA="[object Uint8ClampedArray]",eR="[object Uint16Array]",eT="[object Uint32Array]",eN=/\b__p \+= '';/g,eL=/\b(__p \+=) '' \+/g,ek=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ej=/&(?:amp|lt|gt|quot|#39);/g,eM=/[&<>"']/g,eU=RegExp(ej.source),ez=RegExp(eM.source),eB=/<%-([\s\S]+?)%>/g,eH=/<%([\s\S]+?)%>/g,eF=/<%=([\s\S]+?)%>/g,e$=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,eK=/^\w*$/,eV=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,eW=/[\\^$.*+?()[\]{}|]/g,eG=RegExp(eW.source),eJ=/^\s+/,eY=/\s/,eQ=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,eX=/\{\n\/\* \[wrapped with (.+)\] \*/,eZ=/,? & /,e0=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,e1=/[()=,{}\[\]\/\s]/,e5=/\\(\\)?/g,e3=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,e6=/\w*$/,e2=/^[-+]0x[0-9a-f]+$/i,e8=/^0b[01]+$/i,e4=/^\[object .+?Constructor\]$/,e9=/^0o[0-7]+$/i,e7=/^(?:0|[1-9]\d*)$/,te=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,tn=/($^)/,to=/['\n\r\u2028\u2029\\]/g,td="\ud800-\udfff",tg="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ty="\\u2700-\\u27bf",t_="a-z\\xdf-\\xf6\\xf8-\\xff",tm="A-Z\\xc0-\\xd6\\xd8-\\xde",tb="\\ufe0e\\ufe0f",tw="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",tE="['’]",tD="["+tw+"]",tS="["+tg+"]",tI="["+t_+"]",tx="[^"+td+tw+"\\d+"+ty+t_+tm+"]",tC="\ud83c[\udffb-\udfff]",tP="[^"+td+"]",tO="(?:\ud83c[\udde6-\uddff]){2}",tA="[\ud800-\udbff][\udc00-\udfff]",tR="["+tm+"]",tT="\\u200d",tN="(?:"+tI+"|"+tx+")",tL="(?:"+tE+"(?:d|ll|m|re|s|t|ve))?",tk="(?:"+tE+"(?:D|LL|M|RE|S|T|VE))?",tj="(?:"+tS+"|"+tC+")?",tM="["+tb+"]?",tU="(?:"+tT+"(?:"+[tP,tO,tA].join("|")+")"+tM+tj+")*",tq=tM+tj+tU,tz="(?:"+["["+ty+"]",tO,tA].join("|")+")"+tq,tB="(?:"+[tP+tS+"?",tS,tO,tA,"["+td+"]"].join("|")+")",tH=RegExp(tE,"g"),tF=RegExp(tS,"g"),t$=RegExp(tC+"(?="+tC+")|"+tB+tq,"g"),tK=RegExp([tR+"?"+tI+"+"+tL+"(?="+[tD,tR,"$"].join("|")+")","(?:"+tR+"|"+tx+")+"+tk+"(?="+[tD,tR+tN,"$"].join("|")+")",tR+"?"+tN+"+"+tL,tR+"+"+tk,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",tz].join("|"),"g"),tV=RegExp("["+tT+td+tg+tb+"]"),tW=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tG=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],tJ=-1,tY={};tY[eS]=tY[eI]=tY[ex]=tY[eC]=tY[eP]=tY[eO]=tY[eA]=tY[eR]=tY[eT]=!0,tY[M]=tY[U]=tY[eE]=tY[q]=tY[eD]=tY[J]=tY[X]=tY[ee]=tY[eo]=tY[ea]=tY[ed]=tY[ey]=tY[e_]=tY[em]=tY[ew]=!1;var tQ={};tQ[M]=tQ[U]=tQ[eE]=tQ[eD]=tQ[q]=tQ[J]=tQ[eS]=tQ[eI]=tQ[ex]=tQ[eC]=tQ[eP]=tQ[eo]=tQ[ea]=tQ[ed]=tQ[ey]=tQ[e_]=tQ[em]=tQ[eb]=tQ[eO]=tQ[eA]=tQ[eR]=tQ[eT]=!0,tQ[X]=tQ[ee]=tQ[ew]=!1;var tX={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tZ=parseFloat,t0=parseInt,t1="object"==typeof r2&&r2&&r2.Object===Object&&r2,t5="object"==typeof self&&self&&self.Object===Object&&self,t3=t1||t5||Function("return this")(),t6=i&&!i.nodeType&&i,t2=t6&&r&&!r.nodeType&&r,t8=t2&&t2.exports===t6,t4=t8&&t1.process,t9=function(){try{return t2&&t2.require&&t2.require("util").types||t4&&t4.binding&&t4.binding("util")}catch{}}(),t7=t9&&t9.isArrayBuffer,re=t9&&t9.isDate,rt=t9&&t9.isMap,ro=t9&&t9.isRegExp,rp=t9&&t9.isSet,ry=t9&&t9.isTypedArray;function cn(r,i,c){switch(c.length){case 0:return r.call(i);case 1:return r.call(i,c[0]);case 2:return r.call(i,c[0],c[1]);case 3:return r.call(i,c[0],c[1],c[2])}return r.apply(i,c)}function jo(r,i,c,l){for(var p=-1,D=null==r?0:r.length;++p-1}function Dr(r,i,c){for(var l=-1,p=null==r?0:r.length;++l-1;);return c}function Rs(r,i){for(var c=r.length;c--&&Tt(i,r[c],0)>-1;);return c}function ff(r,i){for(var c=r.length,l=0;c--;)r[c]===i&&++l;return l}var rm=Ur({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),rb=Ur({"&":"&","<":"<",">":">",'"':""","'":"'"});function lf(r){return"\\"+tX[r]}function pf(r,i){return null==r?c:r[i]}function Lt(r){return tV.test(r)}function df(r){return tW.test(r)}function gf(r){for(var i,c=[];!(i=r.next()).done;)c.push(i.value);return c}function qr(r){var i=-1,c=Array(r.size);return r.forEach(function(r,l){c[++i]=[l,r]}),c}function bs(r,i){return function(c){return r(i(c))}}function tt(r,i){for(var c=-1,l=r.length,p=0,S=[];++c",""":'"',"'":"'"});function Pf(r){for(var i=t$.lastIndex=0;t$.test(r);)++i;return i}function Af(r){return r.match(t$)||[]}function Cf(r){return r.match(tK)||[]}var rE=function h(r){var i,eY,e0=(r=null==r?t3:rE.defaults(t3.Object(),r,rE.pick(t3,tG))).Array,td=r.Date,tg=r.Error,ty=r.Function,t_=r.Math,tm=r.Object,tb=r.RegExp,tw=r.String,tE=r.TypeError,tD=e0.prototype,tS=ty.prototype,tI=tm.prototype,tx=r["__core-js_shared__"],tC=tS.toString,tP=tI.hasOwnProperty,tO=0,tA=(i=/[^.]+$/.exec(tx&&tx.keys&&tx.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"",tR=tI.toString,tT=tC.call(tm),tN=t3._,tL=tb("^"+tC.call(tP).replace(eW,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),tk=t8?r.Buffer:c,tj=r.Symbol,tM=r.Uint8Array,tU=tk?tk.allocUnsafe:c,tq=bs(tm.getPrototypeOf,tm),tz=tm.create,tB=tI.propertyIsEnumerable,t$=tD.splice,tK=tj?tj.isConcatSpreadable:c,tV=tj?tj.iterator:c,tW=tj?tj.toStringTag:c,tX=function(){try{var r=mt(tm,"defineProperty");return r({},"",{}),r}catch{}}(),t1=r.clearTimeout!==t3.clearTimeout&&r.clearTimeout,t5=td&&td.now!==t3.Date.now&&td.now,t6=r.setTimeout!==t3.setTimeout&&r.setTimeout,t2=t_.ceil,t4=t_.floor,t9=tm.getOwnPropertySymbols,r_=tk?tk.isBuffer:c,rD=r.isFinite,rS=tD.join,rI=bs(tm.keys,tm),rx=t_.max,rC=t_.min,rP=td.now,rO=r.parseInt,rA=t_.random,rR=tD.reverse,rT=mt(r,"DataView"),rN=mt(r,"Map"),rL=mt(r,"Promise"),rk=mt(r,"Set"),rj=mt(r,"WeakMap"),rM=mt(tm,"create"),rU=rj&&new rj,rq={},rz=wt(rT),rB=wt(rN),rH=wt(rL),rF=wt(rk),r$=wt(rj),rK=tj?tj.prototype:c,rV=rK?rK.valueOf:c,rW=rK?rK.toString:c;function a(r){if(Y(r)&&!iZ(r)&&!(r instanceof H)){if(r instanceof Pn)return r;if(tP.call(r,"__wrapped__"))return Mu(r)}return new Pn(r)}var rG=function(){function n(){}return function(r){if(!K(r))return{};if(tz)return tz(r);n.prototype=r;var i=new n;return n.prototype=c,i}}();function qe(){}function Pn(r,i){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=c}function H(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function zf(){var r=new H(this.__wrapped__);return r.__actions__=un(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=un(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=un(this.__views__),r}function Kf(){if(this.__filtered__){var r=new H(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function Yf(){var r=this.__wrapped__.value(),i=this.__dir__,c=iZ(r),l=i<0,p=c?r.length:0,D=ih(0,p,this.__views__),S=D.start,C=D.end,P=C-S,M=l?C:S-1,U=this.__iteratees__,q=U.length,J=0,X=rC(P,this.__takeCount__);if(!c||!l&&p==P&&X==P)return fu(r,this.__actions__);var ee=[];e:for(;P--&&J-1}function ec(r,i){var c=this.__data__,l=Be(c,r);return l<0?(++this.size,c.push([r,i])):c[l][1]=i,this}function Gn(r){var i=-1,c=null==r?0:r.length;for(this.clear();++i=i?r:i)),r}function An(r,i,l,p,D,S){var C,P=1&i,U=2&i,q=4&i;if(l&&(C=D?l(r,p,D,S):l(r)),C!==c)return C;if(!K(r))return r;var J=iZ(r);if(J){if(C=uh(r),!P)return un(r,C)}else{var X=r4(r),eo=X==ee||X==et;if(i1(r))return lu(r,P);if(X==ed||X==M||eo&&!D){if(C=U||eo?{}:Tu(r),!P)return U?Xc(r,mc(C,r)):Jc(r,Bs(C,r))}else{if(!tQ[X])return D?r:{};C=ah(r,X,P)}}S||(S=new Rn);var ea=S.get(r);if(ea)return ea;S.set(r,C),i2(r)?r.forEach(function(c){C.add(An(c,i,l,c,r,S))}):i3(r)&&r.forEach(function(c,p){C.set(p,An(c,i,l,p,r,S))});var ef=q?U?pi:li:U?on:V,ey=J?c:ef(r);return mn(ey||r,function(c,p){ey&&(c=r[p=c]),se(C,p,An(c,i,l,p,r,S))}),C}function wc(r){var i=V(r);return function(c){return Gs(c,r,i)}}function Gs(r,i,l){var p=l.length;if(null==r)return!p;for(r=tm(r);p--;){var D=l[p],S=i[D],C=r[D];if(C===c&&!(D in r)||!S(C))return!1}return!0}function zs(r,i,p){if("function"!=typeof r)throw new tE(l);return ir(function(){r.apply(c,p)},i)}function ue(r,i,c,l){var p=-1,D=Ee,S=!0,C=r.length,P=[],M=i.length;if(!C)return P;c&&(i=G(i,hn(c))),l?(D=Dr,S=!1):i.length>=200&&(D=jt,S=!1,i=new gt(i));e:for(;++pD?0:D+l),(p=p===c||p>D?D:R(p))<0&&(p+=D),p=l>p?0:oa(p);l0&&c(C)?i>1?j(C,i-1,c,l,p):nt(p,C):l||(p[p.length]=C)}return p}var rQ=mu(),rX=mu(!0);function $n(r,i){return r&&rQ(r,i,V)}function Xr(r,i){return r&&rX(r,i,V)}function ze(r,i){return jn(i,function(i){return Jn(r[i])})}function _t(r,i){i=st(i,r);for(var l=0,p=i.length;null!=r&&li}function Cc(r,i){return null!=r&&tP.call(r,i)}function Ic(r,i){return null!=r&&i in tm(r)}function xc(r,i,c){return r>=rC(i,c)&&r=120&&q.length>=120)?new gt(C&&q):c}q=r[0];var J=-1,X=P[0];e:for(;++J-1;)C!==r&&t$.call(C,P,1),t$.call(r,P,1);return r}function iu(r,i){for(var c=r?i.length:0,l=c-1;c--;){var p=i[c];if(c==l||p!==D){var D=p;Zn(p)?t$.call(r,p,1):si(r,p)}}return r}function ei(r,i){return r+t4(rA()*(i-r+1))}function Uc(r,i,c,l){for(var p=-1,D=rx(t2((i-r)/(c||1)),0),S=e0(D);D--;)S[l?D:++p]=r,r+=c;return S}function ri(r,i){var c="";if(!r||i<1||i>9007199254740991)return c;do i%2&&(c+=r),(i=t4(i/2))&&(r+=r);while(i);return c}function L(r,i){return io(Nu(r,i,fn),r+"")}function Wc(r){return qs(Gt(r))}function Fc(r,i){var c=Gt(r);return tr(c,vt(i,0,c.length))}function fe(r,i,l,p){if(!K(r))return r;i=st(i,r);for(var D=-1,S=i.length,C=S-1,P=r;null!=P&&++Dp?0:p+i),(c=c>p?p:c)<0&&(c+=p),p=i>c?0:c-i>>>0,i>>>=0;for(var D=e0(p);++l>>1,S=r[D];null!==S&&!pn(S)&&(c?S<=i:S=200){var M=i?null:r3(r);if(M)return Se(M);S=!1,p=jt,P=new gt}else P=i?[]:C;e:for(;++l=p?r:Cn(r,i,l)}var r5=t1||function(r){return t3.clearTimeout(r)};function lu(r,i){if(i)return r.slice();var c=r.length,l=tU?tU(c):new r.constructor(c);return r.copy(l),l}function fi(r){var i=new r.constructor(r.byteLength);return new tM(i).set(new tM(r)),i}function zc(r,i){var c=i?fi(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.byteLength)}function Kc(r){var i=new r.constructor(r.source,e6.exec(r));return i.lastIndex=r.lastIndex,i}function Yc(r){return rV?tm(rV.call(r)):{}}function pu(r,i){var c=i?fi(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.length)}function du(r,i){if(r!==i){var l=r!==c,p=null===r,D=r==r,S=pn(r),C=i!==c,P=null===i,M=i==i,U=pn(i);if(!P&&!U&&!S&&r>i||S&&C&&M&&!P&&!U||p&&C&&M||!l&&M||!D)return 1;if(!p&&!S&&!U&&r=C)return P;return P*("desc"==c[l]?-1:1)}}return r.index-i.index}function gu(r,i,c,l){for(var p=-1,D=r.length,S=c.length,C=-1,P=i.length,M=rx(D-S,0),U=e0(P+M),q=!l;++C1?l[D-1]:c,C=D>2?l[2]:c;for(S=r.length>3&&"function"==typeof S?(D--,S):c,C&&rn(l[0],l[1],C)&&(S=D<3?c:S,D=1),i=tm(i);++p-1?D[S?i[C]:C]:c}}function Au(r){return Yn(function(i){var p=i.length,D=p,S=Pn.prototype.thru;for(r&&i.reverse();D--;){var C=i[D];if("function"!=typeof C)throw new tE(l);if(S&&!P&&"wrapper"==je(C))var P=new Pn([],!0)}for(D=P?D:p;++D1&&ea.reverse(),q&&MP))return!1;var U=S.get(r),q=S.get(i);if(U&&q)return U==i&&q==r;var J=-1,X=!0,ee=2&l?new gt:c;for(S.set(r,i),S.set(i,r);++J1?"& ":"")+i[l],i=i.join(c>2?", ":" "),r.replace(eQ,`{ +/* [wrapped with `+i+`] */ +`)}function fh(r){return iZ(r)||iX(r)||!!(tK&&r&&r[tK])}function Zn(r,i){var c=typeof r;return!!(i=i??9007199254740991)&&("number"==c||"symbol"!=c&&e7.test(r))&&r>-1&&r%1==0&&r0){if(++i>=800)return arguments[0]}else i=0;return r.apply(c,arguments)}}function tr(r,i){var l=-1,p=r.length,D=p-1;for(i=i===c?p:i;++l1?r[i-1]:c;return l="function"==typeof l?(r.pop(),l):c,Yu(r,l)});function Zu(r){var i=a(r);return i.__chain__=!0,i}function Pl(r,i){return i(r),r}function er(r,i){return i(r)}var iT=Yn(function(r){var i=r.length,l=i?r[0]:0,p=this.__wrapped__,s=function(i){return Zr(i,r)};return!(i>1)&&!this.__actions__.length&&p instanceof H&&Zn(l)?((p=p.slice(l,+l+(i?1:0))).__actions__.push({func:er,args:[s],thisArg:c}),new Pn(p,this.__chain__).thru(function(r){return i&&!r.length&&r.push(c),r})):this.thru(s)});function Cl(){return Zu(this)}function Il(){return new Pn(this.value(),this.__chain__)}function xl(){this.__values__===c&&(this.__values__=aa(this.value()));var r=this.__index__>=this.__values__.length,i=r?c:this.__values__[this.__index__++];return{done:r,value:i}}function El(){return this}function yl(r){for(var i,l=this;l instanceof qe;){var p=Mu(l);p.__index__=0,p.__values__=c,i?D.__wrapped__=p:i=p;var D=p;l=l.__wrapped__}return D.__wrapped__=r,i}function Sl(){var r=this.__wrapped__;if(r instanceof H){var i=r;return this.__actions__.length&&(i=new H(this)),(i=i.reverse()).__actions__.push({func:er,args:[Ai],thisArg:c}),new Pn(i,this.__chain__)}return this.thru(Ai)}function Ol(){return fu(this.__wrapped__,this.__actions__)}var iN=Je(function(r,i,c){tP.call(r,c)?++r[c]:zn(r,c,1)});function bl(r,i,l){var p=iZ(r)?Cs:Pc;return l&&rn(r,i,l)&&(i=c),p(r,x(i,3))}function Tl(r,i){return(iZ(r)?jn:Ys)(r,x(i,3))}var iL=Pu(qu),ik=Pu(Bu);function Nl(r,i){return j(rr(r,i),1)}function Hl(r,i){return j(rr(r,i),S)}function $l(r,i,l){return l=l===c?1:R(l),j(rr(r,i),l)}function Ju(r,i){return(iZ(r)?mn:rJ)(r,x(i,3))}function Xu(r,i){return(iZ(r)?nf:rY)(r,x(i,3))}var ij=Je(function(r,i,c){tP.call(r,c)?r[c].push(i):zn(r,c,[i])});function Wl(r,i,c,l){r=an(r)?r:Gt(r),c=c&&!l?R(c):0;var p=r.length;return c<0&&(c=rx(p+c,0)),or(r)?c<=p&&r.indexOf(i,c)>-1:!!p&&Tt(r,i,c)>-1}var iM=L(function(r,i,c){var l=-1,p="function"==typeof i,D=an(r)?e0(r.length):[];return rJ(r,function(r){D[++l]=p?cn(i,r,c):ae(r,i,c)}),D}),iU=Je(function(r,i,c){zn(r,c,i)});function rr(r,i){return(iZ(r)?G:ks)(r,x(i,3))}function ql(r,i,l,p){return null==r?[]:(iZ(i)||(i=null==i?[]:[i]),iZ(l=p?c:l)||(l=null==l?[]:[l]),eu(r,i,l))}var iq=Je(function(r,i,c){r[c?0:1].push(i)},function(){return[[],[]]});function Gl(r,i,c){var l=iZ(r)?Nr:ys,p=arguments.length<3;return l(r,x(i,4),c,p,rJ)}function zl(r,i,c){var l=iZ(r)?tf:ys,p=arguments.length<3;return l(r,x(i,4),c,p,rY)}function Kl(r,i){return(iZ(r)?jn:Ys)(r,ur(x(i,3)))}function Yl(r){return(iZ(r)?qs:Wc)(r)}function Zl(r,i,l){return i=(l?rn(r,i,l):i===c)?1:R(i),(iZ(r)?gc:Fc)(r,i)}function Jl(r){return(iZ(r)?vc:qc)(r)}function Xl(r){if(null==r)return 0;if(an(r))return or(r)?Dt(r):r.length;var i=r4(r);return i==eo||i==e_?r.size:jr(r).length}function Ql(r,i,l){var p=iZ(r)?Hr:Bc;return l&&rn(r,i,l)&&(i=c),p(r,x(i,3))}var iz=L(function(r,i){if(null==r)return[];var c=i.length;return c>1&&rn(r,i[0],i[1])?i=[]:c>2&&rn(i[0],i[1],i[2])&&(i=[i[0]]),eu(r,j(i,1),[])}),iB=t5||function(){return t3.Date.now()};function kl(r,i){if("function"!=typeof i)throw new tE(l);return r=R(r),function(){if(--r<1)return i.apply(this,arguments)}}function Qu(r,i,l){return i=l?c:i,i=r&&null==i?r.length:i,Kn(r,128,c,c,c,c,i)}function Vu(r,i){var p;if("function"!=typeof i)throw new tE(l);return r=R(r),function(){return--r>0&&(p=i.apply(this,arguments)),r<=1&&(i=c),p}}var iH=L(function(r,i,c){var l=1;if(c.length){var p=tt(c,qt(iH));l|=32}return Kn(r,l,i,c,p)}),iF=L(function(r,i,c){var l=3;if(c.length){var p=tt(c,qt(iF));l|=32}return Kn(i,l,r,c,p)});function ju(r,i,l){i=l?c:i;var p=Kn(r,8,c,c,c,c,c,i);return p.placeholder=ju.placeholder,p}function na(r,i,l){i=l?c:i;var p=Kn(r,16,c,c,c,c,c,i);return p.placeholder=na.placeholder,p}function ta(r,i,p){var D,S,C,P,M,U,q=0,J=!1,X=!1,ee=!0;if("function"!=typeof r)throw new tE(l);function I(i){var l=D,p=S;return D=S=c,q=i,P=r.apply(p,l)}function E(r){return q=r,M=ir(N,i),J?I(r):P}function T(r){var c=r-U,l=r-q,p=i-c;return X?rC(p,C-l):p}function y(r){var l=r-U,p=r-q;return U===c||l>=i||l<0||X&&p>=C}function N(){var r=iB();if(y(r))return $(r);M=ir(N,T(r))}function $(r){return M=c,ee&&D?I(r):(D=S=c,P)}function dn(){M!==c&&r5(M),q=0,D=U=S=M=c}function sn(){return M===c?P:$(iB())}function gn(){var r=iB(),l=y(r);if(D=arguments,S=this,U=r,l){if(M===c)return E(U);if(X)return r5(M),M=ir(N,i),I(U)}return M===c&&(M=ir(N,i)),P}return i=xn(i)||0,K(p)&&(J=!!p.leading,C=(X="maxWait"in p)?rx(xn(p.maxWait)||0,i):C,ee="trailing"in p?!!p.trailing:ee),gn.cancel=dn,gn.flush=sn,gn}var i$=L(function(r,i){return zs(r,1,i)}),iK=L(function(r,i,c){return zs(r,xn(i)||0,c)});function tp(r){return Kn(r,512)}function sr(r,i){if("function"!=typeof r||null!=i&&"function"!=typeof i)throw new tE(l);var e=function(){var c=arguments,l=i?i.apply(this,c):c[0],p=e.cache;if(p.has(l))return p.get(l);var D=r.apply(this,c);return e.cache=p.set(l,D)||p,D};return e.cache=new(sr.Cache||Gn),e}function ur(r){if("function"!=typeof r)throw new tE(l);return function(){var i=arguments;switch(i.length){case 0:return!r.call(this);case 1:return!r.call(this,i[0]);case 2:return!r.call(this,i[0],i[1]);case 3:return!r.call(this,i[0],i[1],i[2])}return!r.apply(this,i)}}function ep(r){return Vu(2,r)}sr.Cache=Gn;var iV=r1(function(r,i){var c=(i=1==i.length&&iZ(i[0])?G(i[0],hn(x())):G(j(i,1),hn(x()))).length;return L(function(l){for(var p=-1,D=rC(l.length,c);++p=i}),iX=Xs(function(){return arguments}())?Xs:function(r){return Y(r)&&tP.call(r,"callee")&&!tB.call(r,"callee")},iZ=e0.isArray,i0=t7?hn(t7):yc;function an(r){return null!=r&&ar(r.length)&&!Jn(r)}function Z(r){return Y(r)&&an(r)}function wp(r){return!0===r||!1===r||Y(r)&&en(r)==q}var i1=r_||Hi,i5=re?hn(re):Sc;function Ap(r){return Y(r)&&1===r.nodeType&&!pe(r)}function Cp(r){if(null==r)return!0;if(an(r)&&(iZ(r)||"string"==typeof r||"function"==typeof r.splice||i1(r)||i8(r)||iX(r)))return!r.length;var i=r4(r);if(i==eo||i==e_)return!r.size;if(he(r))return!jr(r).length;for(var c in r)if(tP.call(r,c))return!1;return!0}function Ip(r,i){return oe(r,i)}function xp(r,i,l){var p=(l="function"==typeof l?l:c)?l(r,i):c;return p===c?oe(r,i,c,l):!!p}function Ei(r){if(!Y(r))return!1;var i=en(r);return i==X||"[object DOMException]"==i||"string"==typeof r.message&&"string"==typeof r.name&&!pe(r)}function Ep(r){return"number"==typeof r&&rD(r)}function Jn(r){if(!K(r))return!1;var i=en(r);return i==ee||i==et||"[object AsyncFunction]"==i||"[object Proxy]"==i}function ra(r){return"number"==typeof r&&r==R(r)}function ar(r){return"number"==typeof r&&r>-1&&r%1==0&&r<=9007199254740991}function K(r){var i=typeof r;return null!=r&&("object"==i||"function"==i)}function Y(r){return null!=r&&"object"==typeof r}var i3=rt?hn(rt):Rc;function yp(r,i){return r===i||kr(r,i,gi(i))}function Sp(r,i,l){return l="function"==typeof l?l:c,kr(r,i,gi(i),l)}function Op(r){return sa(r)&&r!=+r}function Rp(r){if(r9(r))throw new tg("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Qs(r)}function bp(r){return null===r}function Tp(r){return null==r}function sa(r){return"number"==typeof r||Y(r)&&en(r)==ea}function pe(r){if(!Y(r)||en(r)!=ed)return!1;var i=tq(r);if(null===i)return!0;var c=tP.call(i,"constructor")&&i.constructor;return"function"==typeof c&&c instanceof c&&tC.call(c)==tT}var i6=ro?hn(ro):bc;function Lp(r){return ra(r)&&r>=-9007199254740991&&r<=9007199254740991}var i2=rp?hn(rp):Tc;function or(r){return"string"==typeof r||!iZ(r)&&Y(r)&&en(r)==em}function pn(r){return"symbol"==typeof r||Y(r)&&en(r)==eb}var i8=ry?hn(ry):Lc;function Dp(r){return r===c}function Np(r){return Y(r)&&r4(r)==ew}function Hp(r){return Y(r)&&"[object WeakSet]"==en(r)}var i4=ke(ni),i9=ke(function(r,i){return r<=i});function aa(r){if(!r)return[];if(an(r))return or(r)?On(r):un(r);if(tV&&r[tV])return gf(r[tV]());var i=r4(r);return(i==eo?qr:i==e_?Se:Gt)(r)}function Xn(r){return r?(r=xn(r))===S||r===-S?(r<0?-1:1)*17976931348623157e292:r==r?r:0:0===r?r:0}function R(r){var i=Xn(r),c=i%1;return i==i?c?i-c:i:0}function oa(r){return r?vt(R(r),0,4294967295):0}function xn(r){if("number"==typeof r)return r;if(pn(r))return C;if(K(r)){var i="function"==typeof r.valueOf?r.valueOf():r;r=K(i)?i+"":i}if("string"!=typeof r)return 0===r?r:+r;r=Ss(r);var c=e8.test(r);return c||e9.test(r)?t0(r.slice(2),c?2:8):e2.test(r)?C:+r}function fa(r){return Un(r,on(r))}function Wp(r){return r?vt(R(r),-9007199254740991,9007199254740991):0===r?r:0}function W(r){return null==r?"":ln(r)}var i7=Ft(function(r,i){if(he(i)||an(i)){Un(i,V(i),r);return}for(var c in i)tP.call(i,c)&&se(r,c,i[c])}),ne=Ft(function(r,i){Un(i,on(i),r)}),nn=Ft(function(r,i,c,l){Un(i,on(i),r,l)}),ns=Ft(function(r,i,c,l){Un(i,V(i),r,l)}),no=Yn(Zr);function Bp(r,i){var c=rG(r);return null==i?c:Bs(c,i)}var nd=L(function(r,i){r=tm(r);var l=-1,p=i.length,D=p>2?i[2]:c;for(D&&rn(i[0],i[1],D)&&(p=1);++l1),i}),Un(r,pi(r),c),l&&(c=An(c,7,nh));for(var p=i.length;p--;)si(c,i[p]);return c});function ad(r,i){return la(r,ur(x(i)))}var nE=Yn(function(r,i){return null==r?{}:Hc(r,i)});function la(r,i){if(null==r)return{};var c=G(pi(r),function(r){return[r]});return i=x(i),ru(r,c,function(r,c){return i(r,c[0])})}function fd(r,i,l){i=st(i,r);var p=-1,D=i.length;for(D||(D=1,r=c);++pi){var p=r;r=i,i=p}if(l||r%1||i%1){var D=rA();return rC(r+D*(i-r+tZ("1e-"+((D+"").length-1))),i)}return ei(r,i)}var nI=Mt(function(r,i,c){return i=i.toLowerCase(),r+(c?ga(i):i)});function ga(r){return nT(W(r).toLowerCase())}function va(r){return(r=W(r))&&r.replace(te,rm).replace(tF,"")}function Ad(r,i,l){r=W(r),i=ln(i);var p=r.length,D=l=l===c?p:vt(R(l),0,p);return(l-=i.length)>=0&&r.slice(l,D)==i}function Cd(r){return(r=W(r))&&ez.test(r)?r.replace(eM,rb):r}function Id(r){return(r=W(r))&&eG.test(r)?r.replace(eW,"\\$&"):r}var nx=Mt(function(r,i,c){return r+(c?"-":"")+i.toLowerCase()}),nC=Mt(function(r,i,c){return r+(c?" ":"")+i.toLowerCase()}),nP=wu("toLowerCase");function Sd(r,i,c){r=W(r);var l=(i=R(i))?Dt(r):0;if(!i||l>=i)return r;var p=(i-l)/2;return Ve(t4(p),c)+r+Ve(t2(p),c)}function Od(r,i,c){r=W(r);var l=(i=R(i))?Dt(r):0;return i&&l>>0)?(r=W(r))&&("string"==typeof i||null!=i&&!i6(i))&&!(i=ln(i))&&Lt(r)?ut(On(r),0,l):r.split(i,l):[]}var nA=Mt(function(r,i,c){return r+(c?" ":"")+nT(i)});function $d(r,i,c){return r=W(r),c=null==c?0:vt(R(c),0,r.length),i=ln(i),r.slice(c,c+i.length)==i}function Ud(r,i,l){var p=a.templateSettings;l&&rn(r,i,l)&&(i=c),r=W(r),i=nn({},i,p,yu);var D,S,C=nn({},i.imports,p.imports,yu),P=V(C),M=Mr(C,P),U=0,q=i.interpolate||tn,J="__p += '",X=tb((i.escape||tn).source+"|"+q.source+"|"+(q===eF?e3:tn).source+"|"+(i.evaluate||tn).source+"|$","g"),ee="//# sourceURL="+(tP.call(i,"sourceURL")?(i.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++tJ+"]")+` +`;r.replace(X,function(i,c,l,p,C,P){return l||(l=p),J+=r.slice(U,P).replace(to,lf),c&&(D=!0,J+=`' + +__e(`+c+`) + +'`),C&&(S=!0,J+=`'; +`+C+`; +__p += '`),l&&(J+=`' + +((__t = (`+l+`)) == null ? '' : __t) + +'`),U=P+i.length,i}),J+=`'; +`;var et=tP.call(i,"variable")&&i.variable;if(et){if(e1.test(et))throw new tg("Invalid `variable` option passed into `_.template`")}else J=`with (obj) { +`+J+` +} +`;J=(S?J.replace(eN,""):J).replace(eL,"$1").replace(ek,"$1;"),J="function("+(et||"obj")+`) { +`+(et?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(D?", __e = _.escape":"")+(S?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+J+`return __p +}`;var eo=nN(function(){return ty(P,ee+"return "+J).apply(c,M)});if(eo.source=J,Ei(eo))throw eo;return eo}function Wd(r){return W(r).toLowerCase()}function Fd(r){return W(r).toUpperCase()}function Md(r,i,l){if((r=W(r))&&(l||i===c))return Ss(r);if(!r||!(i=ln(i)))return r;var p=On(r),D=On(i),S=Os(p,D),C=Rs(p,D)+1;return ut(p,S,C).join("")}function qd(r,i,l){if((r=W(r))&&(l||i===c))return r.slice(0,Ts(r)+1);if(!r||!(i=ln(i)))return r;var p=On(r),D=Rs(p,On(i))+1;return ut(p,0,D).join("")}function Bd(r,i,l){if((r=W(r))&&(l||i===c))return r.replace(eJ,"");if(!r||!(i=ln(i)))return r;var p=On(r),D=Os(p,On(i));return ut(p,D).join("")}function Gd(r,i){var l=30,p="...";if(K(i)){var D="separator"in i?i.separator:D;l="length"in i?R(i.length):l,p="omission"in i?ln(i.omission):p}var S=(r=W(r)).length;if(Lt(r)){var C=On(r);S=C.length}if(l>=S)return r;var P=l-Dt(p);if(P<1)return p;var M=C?ut(C,0,P).join(""):r.slice(0,P);if(D===c)return M+p;if(C&&(P+=M.length-P),i6(D)){if(r.slice(P).search(D)){var U,q=M;for(D.global||(D=tb(D.source,W(e6.exec(D))+"g")),D.lastIndex=0;U=D.exec(q);)var J=U.index;M=M.slice(0,J===c?P:J)}}else if(r.indexOf(ln(D),P)!=P){var X=M.lastIndexOf(D);X>-1&&(M=M.slice(0,X))}return M+p}function zd(r){return(r=W(r))&&eU.test(r)?r.replace(ej,rw):r}var nR=Mt(function(r,i,c){return r+(c?" ":"")+i.toUpperCase()}),nT=wu("toUpperCase");function _a(r,i,l){return r=W(r),(i=l?c:i)===c?df(r)?Cf(r):sf(r):r.match(i)||[]}var nN=L(function(r,i){try{return cn(r,c,i)}catch(r){return Ei(r)?r:new tg(r)}}),nL=Yn(function(r,i){return mn(i,function(i){zn(r,i=Wn(i),iH(r[i],r))}),r});function Zd(r){var i=null==r?0:r.length,c=x();return r=i?G(r,function(r){if("function"!=typeof r[1])throw new tE(l);return[c(r[0]),r[1]]}):[],L(function(c){for(var l=-1;++l9007199254740991)return[];var c=4294967295,l=rC(r,4294967295);i=x(i),r-=4294967295;for(var p=Fr(l,i);++c0||i<0)?new H(l):(r<0?l=l.takeRight(-r):r&&(l=l.drop(r)),i!==c&&(l=(i=R(i))<0?l.dropRight(-i):l.take(i-r)),l)},H.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},H.prototype.toArray=function(){return this.take(4294967295)},$n(H.prototype,function(r,i){var l=/^(?:filter|find|map|reject)|While$/.test(i),p=/^(?:head|last)$/.test(i),D=a[p?"take"+("last"==i?"Right":""):i],S=p||/^find/.test(i);D&&(a.prototype[i]=function(){var i=this.__wrapped__,C=p?[1]:arguments,P=i instanceof H,M=C[0],U=P||iZ(i),m=function(r){var i=D.apply(a,nt([r],C));return p&&q?i[0]:i};U&&l&&"function"==typeof M&&1!=M.length&&(P=U=!1);var q=this.__chain__,J=!!this.__actions__.length,X=S&&!q,ee=P&&!J;if(!S&&U){i=ee?i:new H(this);var et=r.apply(i,C);return et.__actions__.push({func:er,args:[m],thisArg:c}),new Pn(et,q)}return X&&ee?r.apply(this,C):(et=this.thru(m),X?p?et.value()[0]:et.value():et)})}),mn(["pop","push","shift","sort","splice","unshift"],function(r){var i=tD[r],c=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",l=/^(?:pop|shift)$/.test(r);a.prototype[r]=function(){var r=arguments;if(l&&!this.__chain__){var p=this.value();return i.apply(iZ(p)?p:[],r)}return this[c](function(c){return i.apply(iZ(c)?c:[],r)})}}),$n(H.prototype,function(r,i){var c=a[i];if(c){var l=c.name+"";tP.call(rq,l)||(rq[l]=[]),rq[l].push({name:i,func:c})}}),rq[Xe(c,2).name]=[{name:"wrapper",func:c}],H.prototype.clone=zf,H.prototype.reverse=Kf,H.prototype.value=Yf,a.prototype.at=iT,a.prototype.chain=Cl,a.prototype.commit=Il,a.prototype.next=xl,a.prototype.plant=yl,a.prototype.reverse=Sl,a.prototype.toJSON=a.prototype.valueOf=a.prototype.value=Ol,a.prototype.first=a.prototype.head,tV&&(a.prototype[tV]=El),a}();t2?((t2.exports=rE)._=rE,t6._=rE):t3._=rE}).call(r2)}(r8,r8.exports);var r4=Object.defineProperty,r9=Object.defineProperties,r7=Object.getOwnPropertyDescriptors,ir=Object.getOwnPropertySymbols,io=Object.prototype.hasOwnProperty,ia=Object.prototype.propertyIsEnumerable,Sa=(r,i,c)=>i in r?r4(r,i,{enumerable:!0,configurable:!0,writable:!0,value:c}):r[i]=c,index_es_cr=(r,i)=>{for(var c in i||(i={}))io.call(i,c)&&Sa(r,c,i[c]);if(ir)for(var c of ir(i))ia.call(i,c)&&Sa(r,c,i[c]);return r},Xg=(r,i)=>r9(r,r7(i));function index_es_ft(r,i,c){var l;let p=(0,S.DQe)(r);return(null==(l=i.rpcMap)?void 0:l[p.reference])||`https://rpc.walletconnect.com/v1/?chainId=${p.namespace}:${p.reference}&projectId=${c}`}function index_es_Ct(r){return r.includes(":")?r.split(":")[1]:r}function Oa(r){return r.map(r=>`${r.split(":")[0]}:${r.split(":")[1]}`)}function Qg(r,i){let c=Object.keys(i.namespaces).filter(i=>i.includes(r));if(!c.length)return[];let l=[];return c.forEach(r=>{let c=i.namespaces[r].accounts;l.push(...c)}),l}function index_es_Wi(r={},i={}){let c=Ra(r),l=Ra(i);return r8.exports.merge(c,l)}function Ra(r){var i,c,l,p;let D={};if(!(0,S.L5o)(r))return D;for(let[C,P]of Object.entries(r)){let r=(0,S.gpE)(C)?[C]:P.chains,M=P.methods||[],U=P.events||[],q=P.rpcMap||{},J=(0,S.Maj)(C);D[J]=Xg(index_es_cr(index_es_cr({},D[J]),P),{chains:(0,S.eGA)(r,null==(i=D[J])?void 0:i.chains),methods:(0,S.eGA)(M,null==(c=D[J])?void 0:c.methods),events:(0,S.eGA)(U,null==(l=D[J])?void 0:l.events),rpcMap:index_es_cr(index_es_cr({},q),null==(p=D[J])?void 0:p.rpcMap)})}return D}function Vg(r){return r.includes(":")?r.split(":")[2]:r}function ba(r){let i={};for(let[c,l]of Object.entries(r)){let r=l.methods||[],p=l.events||[],D=l.accounts||[],C=(0,S.gpE)(c)?[c]:l.chains?l.chains:Oa(l.accounts);i[c]={chains:C,methods:r,events:p,accounts:D}}return i}function Fi(r){return"number"==typeof r?r:r.includes("0x")?parseInt(r,16):isNaN(Number(r=r.includes(":")?r.split(":")[1]:r))?r:Number(r)}let ip={},universal_provider_dist_index_es_z=r=>ip[r],Mi=(r,i)=>{ip[r]=i};let kg=class kg{constructor(r){this.name="polkadot",this.namespace=r.namespace,this.events=universal_provider_dist_index_es_z("events"),this.client=universal_provider_dist_index_es_z("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(r){this.namespace=Object.assign(this.namespace,r)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let r=this.namespace.chains[0];if(!r)throw Error("ChainId not found");return r.split(":")[1]}request(r){return this.namespace.methods.includes(r.request.method)?this.client.request(r):this.getHttpProvider().request(r.request)}setDefaultChain(r,i){this.httpProviders[r]||this.setHttpProvider(r,i),this.chainId=r,this.events.emit(r6.DEFAULT_CHAIN_CHANGED,`${this.name}:${r}`)}getAccounts(){let r=this.namespace.accounts;return r&&r.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2])||[]}createHttpProviders(){let r={};return this.namespace.chains.forEach(i=>{var c;let l=index_es_Ct(i);r[l]=this.createHttpProvider(l,null==(c=this.namespace.rpcMap)?void 0:c[i])}),r}getHttpProvider(){let r=`${this.name}:${this.chainId}`,i=this.httpProviders[r];if(typeof i>"u")throw Error(`JSON-RPC provider for ${r} not found`);return i}setHttpProvider(r,i){let c=this.createHttpProvider(r,i);c&&(this.httpProviders[r]=c)}createHttpProvider(r,i){let c=i||index_es_ft(r,this.namespace,this.client.core.projectId);if(!c)throw Error(`No RPC url provided for chainId: ${r}`);return new o(new jsonrpc_http_connection_dist_index_es_f(c,universal_provider_dist_index_es_z("disableProviderPing")))}};let jg=class jg{constructor(r){this.name="eip155",this.namespace=r.namespace,this.events=universal_provider_dist_index_es_z("events"),this.client=universal_provider_dist_index_es_z("client"),this.httpProviders=this.createHttpProviders(),this.chainId=parseInt(this.getDefaultChain())}async request(r){switch(r.request.method){case"eth_requestAccounts":case"eth_accounts":return this.getAccounts();case"wallet_switchEthereumChain":return await this.handleSwitchChain(r);case"eth_chainId":return parseInt(this.getDefaultChain())}return this.namespace.methods.includes(r.request.method)?await this.client.request(r):this.getHttpProvider().request(r.request)}updateNamespace(r){this.namespace=Object.assign(this.namespace,r)}setDefaultChain(r,i){this.httpProviders[r]||this.setHttpProvider(parseInt(r),i),this.chainId=parseInt(r),this.events.emit(r6.DEFAULT_CHAIN_CHANGED,`${this.name}:${r}`)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId.toString();if(this.namespace.defaultChain)return this.namespace.defaultChain;let r=this.namespace.chains[0];if(!r)throw Error("ChainId not found");return r.split(":")[1]}createHttpProvider(r,i){let c=i||index_es_ft(`${this.name}:${r}`,this.namespace,this.client.core.projectId);if(!c)throw Error(`No RPC url provided for chainId: ${r}`);return new o(new jsonrpc_http_connection_dist_index_es_f(c,universal_provider_dist_index_es_z("disableProviderPing")))}setHttpProvider(r,i){let c=this.createHttpProvider(r,i);c&&(this.httpProviders[r]=c)}createHttpProviders(){let r={};return this.namespace.chains.forEach(i=>{var c;let l=parseInt(index_es_Ct(i));r[l]=this.createHttpProvider(l,null==(c=this.namespace.rpcMap)?void 0:c[i])}),r}getAccounts(){let r=this.namespace.accounts;return r?[...new Set(r.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2]))]:[]}getHttpProvider(){let r=this.chainId,i=this.httpProviders[r];if(typeof i>"u")throw Error(`JSON-RPC provider for ${r} not found`);return i}async handleSwitchChain(r){var i,c;let l=r.request.params?null==(i=r.request.params[0])?void 0:i.chainId:"0x0";l=l.startsWith("0x")?l:`0x${l}`;let p=parseInt(l,16);if(this.isChainApproved(p))this.setDefaultChain(`${p}`);else if(this.namespace.methods.includes("wallet_switchEthereumChain"))await this.client.request({topic:r.topic,request:{method:r.request.method,params:[{chainId:l}]},chainId:null==(c=this.namespace.chains)?void 0:c[0]}),this.setDefaultChain(`${p}`);else throw Error(`Failed to switch to chain 'eip155:${p}'. The chain is not approved or the wallet does not support 'wallet_switchEthereumChain' method.`);return null}isChainApproved(r){return this.namespace.chains.includes(`${this.name}:${r}`)}};let nv=class nv{constructor(r){this.name="solana",this.namespace=r.namespace,this.events=universal_provider_dist_index_es_z("events"),this.client=universal_provider_dist_index_es_z("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(r){this.namespace=Object.assign(this.namespace,r)}requestAccounts(){return this.getAccounts()}request(r){return this.namespace.methods.includes(r.request.method)?this.client.request(r):this.getHttpProvider().request(r.request)}setDefaultChain(r,i){this.httpProviders[r]||this.setHttpProvider(r,i),this.chainId=r,this.events.emit(r6.DEFAULT_CHAIN_CHANGED,`${this.name}:${r}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let r=this.namespace.chains[0];if(!r)throw Error("ChainId not found");return r.split(":")[1]}getAccounts(){let r=this.namespace.accounts;return r?[...new Set(r.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2]))]:[]}createHttpProviders(){let r={};return this.namespace.chains.forEach(i=>{var c;let l=index_es_Ct(i);r[l]=this.createHttpProvider(l,null==(c=this.namespace.rpcMap)?void 0:c[i])}),r}getHttpProvider(){let r=`${this.name}:${this.chainId}`,i=this.httpProviders[r];if(typeof i>"u")throw Error(`JSON-RPC provider for ${r} not found`);return i}setHttpProvider(r,i){let c=this.createHttpProvider(r,i);c&&(this.httpProviders[r]=c)}createHttpProvider(r,i){let c=i||index_es_ft(r,this.namespace,this.client.core.projectId);if(!c)throw Error(`No RPC url provided for chainId: ${r}`);return new o(new jsonrpc_http_connection_dist_index_es_f(c,universal_provider_dist_index_es_z("disableProviderPing")))}};let tv=class tv{constructor(r){this.name="cosmos",this.namespace=r.namespace,this.events=universal_provider_dist_index_es_z("events"),this.client=universal_provider_dist_index_es_z("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(r){this.namespace=Object.assign(this.namespace,r)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let r=this.namespace.chains[0];if(!r)throw Error("ChainId not found");return r.split(":")[1]}request(r){return this.namespace.methods.includes(r.request.method)?this.client.request(r):this.getHttpProvider().request(r.request)}setDefaultChain(r,i){this.httpProviders[r]||this.setHttpProvider(r,i),this.chainId=r,this.events.emit(r6.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){let r=this.namespace.accounts;return r?[...new Set(r.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2]))]:[]}createHttpProviders(){let r={};return this.namespace.chains.forEach(i=>{var c;let l=index_es_Ct(i);r[l]=this.createHttpProvider(l,null==(c=this.namespace.rpcMap)?void 0:c[i])}),r}getHttpProvider(){let r=`${this.name}:${this.chainId}`,i=this.httpProviders[r];if(typeof i>"u")throw Error(`JSON-RPC provider for ${r} not found`);return i}setHttpProvider(r,i){let c=this.createHttpProvider(r,i);c&&(this.httpProviders[r]=c)}createHttpProvider(r,i){let c=i||index_es_ft(r,this.namespace,this.client.core.projectId);if(!c)throw Error(`No RPC url provided for chainId: ${r}`);return new o(new jsonrpc_http_connection_dist_index_es_f(c,universal_provider_dist_index_es_z("disableProviderPing")))}};let ev=class ev{constructor(r){this.name="cip34",this.namespace=r.namespace,this.events=universal_provider_dist_index_es_z("events"),this.client=universal_provider_dist_index_es_z("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(r){this.namespace=Object.assign(this.namespace,r)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let r=this.namespace.chains[0];if(!r)throw Error("ChainId not found");return r.split(":")[1]}request(r){return this.namespace.methods.includes(r.request.method)?this.client.request(r):this.getHttpProvider().request(r.request)}setDefaultChain(r,i){this.httpProviders[r]||this.setHttpProvider(r,i),this.chainId=r,this.events.emit(r6.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){let r=this.namespace.accounts;return r?[...new Set(r.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2]))]:[]}createHttpProviders(){let r={};return this.namespace.chains.forEach(i=>{let c=this.getCardanoRPCUrl(i),l=index_es_Ct(i);r[l]=this.createHttpProvider(l,c)}),r}getHttpProvider(){let r=`${this.name}:${this.chainId}`,i=this.httpProviders[r];if(typeof i>"u")throw Error(`JSON-RPC provider for ${r} not found`);return i}getCardanoRPCUrl(r){let i=this.namespace.rpcMap;if(i)return i[r]}setHttpProvider(r,i){let c=this.createHttpProvider(r,i);c&&(this.httpProviders[r]=c)}createHttpProvider(r,i){let c=i||this.getCardanoRPCUrl(r);if(!c)throw Error(`No RPC url provided for chainId: ${r}`);return new o(new jsonrpc_http_connection_dist_index_es_f(c,universal_provider_dist_index_es_z("disableProviderPing")))}};let rv=class rv{constructor(r){this.name="elrond",this.namespace=r.namespace,this.events=universal_provider_dist_index_es_z("events"),this.client=universal_provider_dist_index_es_z("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(r){this.namespace=Object.assign(this.namespace,r)}requestAccounts(){return this.getAccounts()}request(r){return this.namespace.methods.includes(r.request.method)?this.client.request(r):this.getHttpProvider().request(r.request)}setDefaultChain(r,i){this.httpProviders[r]||this.setHttpProvider(r,i),this.chainId=r,this.events.emit(r6.DEFAULT_CHAIN_CHANGED,`${this.name}:${r}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let r=this.namespace.chains[0];if(!r)throw Error("ChainId not found");return r.split(":")[1]}getAccounts(){let r=this.namespace.accounts;return r?[...new Set(r.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2]))]:[]}createHttpProviders(){let r={};return this.namespace.chains.forEach(i=>{var c;let l=index_es_Ct(i);r[l]=this.createHttpProvider(l,null==(c=this.namespace.rpcMap)?void 0:c[i])}),r}getHttpProvider(){let r=`${this.name}:${this.chainId}`,i=this.httpProviders[r];if(typeof i>"u")throw Error(`JSON-RPC provider for ${r} not found`);return i}setHttpProvider(r,i){let c=this.createHttpProvider(r,i);c&&(this.httpProviders[r]=c)}createHttpProvider(r,i){let c=i||index_es_ft(r,this.namespace,this.client.core.projectId);if(!c)throw Error(`No RPC url provided for chainId: ${r}`);return new o(new jsonrpc_http_connection_dist_index_es_f(c,universal_provider_dist_index_es_z("disableProviderPing")))}};let iv=class iv{constructor(r){this.name="multiversx",this.namespace=r.namespace,this.events=universal_provider_dist_index_es_z("events"),this.client=universal_provider_dist_index_es_z("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(r){this.namespace=Object.assign(this.namespace,r)}requestAccounts(){return this.getAccounts()}request(r){return this.namespace.methods.includes(r.request.method)?this.client.request(r):this.getHttpProvider().request(r.request)}setDefaultChain(r,i){this.httpProviders[r]||this.setHttpProvider(r,i),this.chainId=r,this.events.emit(r6.DEFAULT_CHAIN_CHANGED,`${this.name}:${r}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let r=this.namespace.chains[0];if(!r)throw Error("ChainId not found");return r.split(":")[1]}getAccounts(){let r=this.namespace.accounts;return r?[...new Set(r.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2]))]:[]}createHttpProviders(){let r={};return this.namespace.chains.forEach(i=>{var c;let l=index_es_Ct(i);r[l]=this.createHttpProvider(l,null==(c=this.namespace.rpcMap)?void 0:c[i])}),r}getHttpProvider(){let r=`${this.name}:${this.chainId}`,i=this.httpProviders[r];if(typeof i>"u")throw Error(`JSON-RPC provider for ${r} not found`);return i}setHttpProvider(r,i){let c=this.createHttpProvider(r,i);c&&(this.httpProviders[r]=c)}createHttpProvider(r,i){let c=i||index_es_ft(r,this.namespace,this.client.core.projectId);if(!c)throw Error(`No RPC url provided for chainId: ${r}`);return new o(new jsonrpc_http_connection_dist_index_es_f(c,universal_provider_dist_index_es_z("disableProviderPing")))}};let sv=class sv{constructor(r){this.name="near",this.namespace=r.namespace,this.events=universal_provider_dist_index_es_z("events"),this.client=universal_provider_dist_index_es_z("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(r){this.namespace=Object.assign(this.namespace,r)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let r=this.namespace.chains[0];if(!r)throw Error("ChainId not found");return r.split(":")[1]}request(r){return this.namespace.methods.includes(r.request.method)?this.client.request(r):this.getHttpProvider().request(r.request)}setDefaultChain(r,i){if(this.chainId=r,!this.httpProviders[r]){let c=i||index_es_ft(`${this.name}:${r}`,this.namespace);if(!c)throw Error(`No RPC url provided for chainId: ${r}`);this.setHttpProvider(r,c)}this.events.emit(r6.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){let r=this.namespace.accounts;return r&&r.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2])||[]}createHttpProviders(){let r={};return this.namespace.chains.forEach(i=>{var c;r[i]=this.createHttpProvider(i,null==(c=this.namespace.rpcMap)?void 0:c[i])}),r}getHttpProvider(){let r=`${this.name}:${this.chainId}`,i=this.httpProviders[r];if(typeof i>"u")throw Error(`JSON-RPC provider for ${r} not found`);return i}setHttpProvider(r,i){let c=this.createHttpProvider(r,i);c&&(this.httpProviders[r]=c)}createHttpProvider(r,i){let c=i||index_es_ft(r,this.namespace);return typeof c>"u"?void 0:new o(new jsonrpc_http_connection_dist_index_es_f(c,universal_provider_dist_index_es_z("disableProviderPing")))}};var ig=Object.defineProperty,iy=Object.defineProperties,i_=Object.getOwnPropertyDescriptors,im=Object.getOwnPropertySymbols,ib=Object.prototype.hasOwnProperty,iw=Object.prototype.propertyIsEnumerable,Da=(r,i,c)=>i in r?ig(r,i,{enumerable:!0,configurable:!0,writable:!0,value:c}):r[i]=c,index_es_hr=(r,i)=>{for(var c in i||(i={}))ib.call(i,c)&&Da(r,c,i[c]);if(im)for(var c of im(i))iw.call(i,c)&&Da(r,c,i[c]);return r},qi=(r,i)=>iy(r,i_(i));let index_es_lr=class index_es_lr{constructor(r){this.events=new(D()),this.rpcProviders={},this.shouldAbortPairingAttempt=!1,this.maxPairingAttempts=10,this.disableProviderPing=!1,this.providerOpts=r,this.logger="u">typeof r?.logger&&"string"!=typeof r?.logger?r.logger:ef()(index_es_k({level:r?.logger||r5})),this.disableProviderPing=r?.disableProviderPing||!1}static async init(r){let i=new index_es_lr(r);return await i.initialize(),i}async request(r,i,c){let[l,p]=this.validateChain(i);if(!this.session)throw Error("Please call connect() before request()");return await this.getProvider(l).request({request:index_es_hr({},r),chainId:`${l}:${p}`,topic:this.session.topic,expiry:c})}sendAsync(r,i,c,l){let p=new Date().getTime();this.request(r,c,l).then(r=>i(null,formatJsonRpcResult(p,r))).catch(r=>i(r,void 0))}async enable(){if(!this.client)throw Error("Sign Client not initialized");return this.session||await this.connect({namespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties}),await this.requestAccounts()}async disconnect(){var r;if(!this.session)throw Error("Please call connect() before enable()");await this.client.disconnect({topic:null==(r=this.session)?void 0:r.topic,reason:(0,S.D6H)("USER_DISCONNECTED")}),await this.cleanup()}async connect(r){if(!this.client)throw Error("Sign Client not initialized");if(this.setNamespaces(r),await this.cleanupPendingPairings(),!r.skipPairing)return await this.pair(r.pairingTopic)}async authenticate(r){if(!this.client)throw Error("Sign Client not initialized");this.setNamespaces(r),await this.cleanupPendingPairings();let{uri:i,response:c}=await this.client.authenticate(r);i&&(this.uri=i,this.events.emit("display_uri",i));let l=await c();if(this.session=l.session,this.session){let r=ba(this.session.namespaces);this.namespaces=index_es_Wi(this.namespaces,r),this.persist("namespaces",this.namespaces),this.onConnect()}return l}on(r,i){this.events.on(r,i)}once(r,i){this.events.once(r,i)}removeListener(r,i){this.events.removeListener(r,i)}off(r,i){this.events.off(r,i)}get isWalletConnect(){return!0}async pair(r){this.shouldAbortPairingAttempt=!1;let i=0;do{if(this.shouldAbortPairingAttempt)throw Error("Pairing aborted");if(i>=this.maxPairingAttempts)throw Error("Max auto pairing attempts reached");let{uri:c,approval:l}=await this.client.connect({pairingTopic:r,requiredNamespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties});c&&(this.uri=c,this.events.emit("display_uri",c)),await l().then(r=>{this.session=r;let i=ba(r.namespaces);this.namespaces=index_es_Wi(this.namespaces,i),this.persist("namespaces",this.namespaces)}).catch(r=>{if(r.message!==rN)throw r;i++})}while(!this.session);return this.onConnect(),this.session}setDefaultChain(r,i){try{if(!this.session)return;let[c,l]=this.validateChain(r);this.getProvider(c).setDefaultChain(l,i)}catch(r){if(!/Please call connect/.test(r.message))throw r}}async cleanupPendingPairings(r={}){this.logger.info("Cleaning up inactive pairings...");let i=this.client.pairing.getAll();if((0,S.qt8)(i)){for(let c of i)r.deletePairings?this.client.core.expirer.set(c.topic,0):await this.client.core.relayer.subscriber.unsubscribe(c.topic);this.logger.info(`Inactive pairings cleared: ${i.length}`)}}abortPairingAttempt(){this.shouldAbortPairingAttempt=!0}async checkStorage(){if(this.namespaces=await this.getFromStore("namespaces"),this.optionalNamespaces=await this.getFromStore("optionalNamespaces")||{},this.client.session.length){let r=this.client.session.keys.length-1;this.session=this.client.session.get(this.client.session.keys[r]),this.createProviders()}}async initialize(){this.logger.trace("Initialized"),await this.createClient(),await this.checkStorage(),this.registerEventListeners()}async createClient(){this.client=this.providerOpts.client||await oe.init({logger:this.providerOpts.logger||r5,relayUrl:this.providerOpts.relayUrl||"wss://relay.walletconnect.com",projectId:this.providerOpts.projectId,metadata:this.providerOpts.metadata,storageOptions:this.providerOpts.storageOptions,storage:this.providerOpts.storage,name:this.providerOpts.name}),this.logger.trace("SignClient Initialized")}createProviders(){if(!this.client)throw Error("Sign Client not initialized");if(!this.session)throw Error("Session not initialized. Please call connect() before enable()");let r=[...new Set(Object.keys(this.session.namespaces).map(r=>(0,S.Maj)(r)))];Mi("client",this.client),Mi("events",this.events),Mi("disableProviderPing",this.disableProviderPing),r.forEach(r=>{if(!this.session)return;let i=Qg(r,this.session),c=Oa(i),l=index_es_Wi(this.namespaces,this.optionalNamespaces),p=qi(index_es_hr({},l[r]),{accounts:i,chains:c});switch(r){case"eip155":this.rpcProviders[r]=new jg({namespace:p});break;case"solana":this.rpcProviders[r]=new nv({namespace:p});break;case"cosmos":this.rpcProviders[r]=new tv({namespace:p});break;case"polkadot":this.rpcProviders[r]=new kg({namespace:p});break;case"cip34":this.rpcProviders[r]=new ev({namespace:p});break;case"elrond":this.rpcProviders[r]=new rv({namespace:p});break;case"multiversx":this.rpcProviders[r]=new iv({namespace:p});break;case"near":this.rpcProviders[r]=new sv({namespace:p})}})}registerEventListeners(){if(typeof this.client>"u")throw Error("Sign Client is not initialized");this.client.on("session_ping",r=>{this.events.emit("session_ping",r)}),this.client.on("session_event",r=>{let{params:i}=r,{event:c}=i;if("accountsChanged"===c.name){let r=c.data;r&&(0,S.qt8)(r)&&this.events.emit("accountsChanged",r.map(Vg))}else if("chainChanged"===c.name){let r=i.chainId,c=i.event.data,l=(0,S.Maj)(r),p=Fi(r)!==Fi(c)?`${l}:${Fi(c)}`:r;this.onChainChanged(p)}else this.events.emit(c.name,c.data);this.events.emit("session_event",r)}),this.client.on("session_update",({topic:r,params:i})=>{var c;let{namespaces:l}=i,p=null==(c=this.client)?void 0:c.session.get(r);this.session=qi(index_es_hr({},p),{namespaces:l}),this.onSessionUpdate(),this.events.emit("session_update",{topic:r,params:i})}),this.client.on("session_delete",async r=>{await this.cleanup(),this.events.emit("session_delete",r),this.events.emit("disconnect",qi(index_es_hr({},(0,S.D6H)("USER_DISCONNECTED")),{data:r.topic}))}),this.on(r6.DEFAULT_CHAIN_CHANGED,r=>{this.onChainChanged(r,!0)})}getProvider(r){if(!this.rpcProviders[r])throw Error(`Provider not found: ${r}`);return this.rpcProviders[r]}onSessionUpdate(){Object.keys(this.rpcProviders).forEach(r=>{var i;this.getProvider(r).updateNamespace(null==(i=this.session)?void 0:i.namespaces[r])})}setNamespaces(r){let{namespaces:i,optionalNamespaces:c,sessionProperties:l}=r;i&&Object.keys(i).length&&(this.namespaces=i),c&&Object.keys(c).length&&(this.optionalNamespaces=c),this.sessionProperties=l,this.persist("namespaces",i),this.persist("optionalNamespaces",c)}validateChain(r){let[i,c]=r?.split(":")||["",""];if(!this.namespaces||!Object.keys(this.namespaces).length)return[i,c];if(i&&!Object.keys(this.namespaces||{}).map(r=>(0,S.Maj)(r)).includes(i))throw Error(`Namespace '${i}' is not configured. Please call connect() first with namespace config.`);if(i&&c)return[i,c];let l=(0,S.Maj)(Object.keys(this.namespaces)[0]),p=this.rpcProviders[l].getDefaultChain();return[l,p]}async requestAccounts(){let[r]=this.validateChain();return await this.getProvider(r).requestAccounts()}onChainChanged(r,i=!1){if(!this.namespaces)return;let[c,l]=this.validateChain(r);l&&(i||this.getProvider(c).setDefaultChain(l),this.namespaces[c]?this.namespaces[c].defaultChain=l:this.namespaces[`${c}:${l}`]?this.namespaces[`${c}:${l}`].defaultChain=l:this.namespaces[`${c}:${l}`]={defaultChain:l},this.persist("namespaces",this.namespaces),this.events.emit("chainChanged",l))}onConnect(){this.createProviders(),this.events.emit("connect",{session:this.session})}async cleanup(){this.session=void 0,this.namespaces=void 0,this.optionalNamespaces=void 0,this.sessionProperties=void 0,this.persist("namespaces",void 0),this.persist("optionalNamespaces",void 0),this.persist("sessionProperties",void 0),await this.cleanupPendingPairings({deletePairings:!0})}persist(r,i){this.client.core.storage.setItem(`${r3}/${r}`,i)}async getFromStore(r){return await this.client.core.storage.getItem(`${r3}/${r}`)}};let iE=["eth_sendTransaction","personal_sign"],iD=["eth_accounts","eth_requestAccounts","eth_sendRawTransaction","eth_sign","eth_signTransaction","eth_signTypedData","eth_signTypedData_v3","eth_signTypedData_v4","eth_sendTransaction","personal_sign","wallet_switchEthereumChain","wallet_addEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode","wallet_sendCalls","wallet_getCapabilities","wallet_getCallsStatus","wallet_showCallsStatus"],iS=["chainChanged","accountsChanged"],iI=["chainChanged","accountsChanged","message","disconnect","connect"];var ix=Object.defineProperty,iC=Object.defineProperties,iP=Object.getOwnPropertyDescriptors,iO=Object.getOwnPropertySymbols,iA=Object.prototype.hasOwnProperty,iR=Object.prototype.propertyIsEnumerable,ethereum_provider_dist_index_es_b=(r,i,c)=>i in r?ix(r,i,{enumerable:!0,configurable:!0,writable:!0,value:c}):r[i]=c,ethereum_provider_dist_index_es_p=(r,i)=>{for(var c in i||(i={}))iA.call(i,c)&ðereum_provider_dist_index_es_b(r,c,i[c]);if(iO)for(var c of iO(i))iR.call(i,c)&ðereum_provider_dist_index_es_b(r,c,i[c]);return r},ethereum_provider_dist_index_es_E=(r,i)=>iC(r,iP(i));function dist_index_es_m(r){return Number(r[0].split(":")[1])}function ethereum_provider_dist_index_es_v(r){return`0x${r.toString(16)}`}function ethereum_provider_dist_index_es_L(r){let{chains:i,optionalChains:c,methods:l,optionalMethods:p,events:D,optionalEvents:C,rpcMap:P}=r;if(!(0,S.qt8)(i))throw Error("Invalid chains");let M={chains:i,methods:l||iE,events:D||iS,rpcMap:ethereum_provider_dist_index_es_p({},i.length?{[dist_index_es_m(i)]:P[dist_index_es_m(i)]}:{})},U=D?.filter(r=>!iS.includes(r)),q=l?.filter(r=>!iE.includes(r));if(!c&&!C&&!p&&!(null!=U&&U.length)&&!(null!=q&&q.length))return{required:i.length?M:void 0};let J=U?.length&&q?.length||!c,X={chains:[...new Set(J?M.chains.concat(c||[]):c)],methods:[...new Set(M.methods.concat(null!=p&&p.length?p:iD))],events:[...new Set(M.events.concat(null!=C&&C.length?C:iI))],rpcMap:P};return{required:i.length?M:void 0,optional:c.length?X:void 0}}let ethereum_provider_dist_index_es_C=class ethereum_provider_dist_index_es_C{constructor(){this.events=new p.EventEmitter,this.namespace="eip155",this.accounts=[],this.chainId=1,this.STORAGE_KEY="wc@2:ethereum_provider:",this.on=(r,i)=>(this.events.on(r,i),this),this.once=(r,i)=>(this.events.once(r,i),this),this.removeListener=(r,i)=>(this.events.removeListener(r,i),this),this.off=(r,i)=>(this.events.off(r,i),this),this.parseAccount=r=>this.isCompatibleChainId(r)?this.parseAccountId(r).address:r,this.signer={},this.rpc={}}static async init(r){let i=new ethereum_provider_dist_index_es_C;return await i.initialize(r),i}async request(r,i){return await this.signer.request(r,this.formatChainId(this.chainId),i)}sendAsync(r,i,c){this.signer.sendAsync(r,i,this.formatChainId(this.chainId),c)}get connected(){return!!this.signer.client&&this.signer.client.core.relayer.connected}get connecting(){return!!this.signer.client&&this.signer.client.core.relayer.connecting}async enable(){return this.session||await this.connect(),await this.request({method:"eth_requestAccounts"})}async connect(r){if(!this.signer.client)throw Error("Provider not initialized. Call init() first");this.loadConnectOpts(r);let{required:i,optional:c}=ethereum_provider_dist_index_es_L(this.rpc);try{let l=await new Promise(async(l,p)=>{var D;this.rpc.showQrModal&&(null==(D=this.modal)||D.subscribeModal(r=>{r.open||this.signer.session||(this.signer.abortPairingAttempt(),p(Error("Connection request reset. Please try again.")))})),await this.signer.connect(ethereum_provider_dist_index_es_E(ethereum_provider_dist_index_es_p({namespaces:ethereum_provider_dist_index_es_p({},i&&{[this.namespace]:i})},c&&{optionalNamespaces:{[this.namespace]:c}}),{pairingTopic:r?.pairingTopic})).then(r=>{l(r)}).catch(r=>{p(Error(r.message))})});if(!l)return;let p=(0,S.guN)(l.namespaces,[this.namespace]);this.setChainIds(this.rpc.chains.length?this.rpc.chains:p),this.setAccounts(p),this.events.emit("connect",{chainId:ethereum_provider_dist_index_es_v(this.chainId)})}catch(r){throw this.signer.logger.error(r),r}finally{this.modal&&this.modal.closeModal()}}async authenticate(r){if(!this.signer.client)throw Error("Provider not initialized. Call init() first");this.loadConnectOpts({chains:r?.chains});try{let i=await new Promise(async(i,c)=>{var l;this.rpc.showQrModal&&(null==(l=this.modal)||l.subscribeModal(r=>{r.open||this.signer.session||(this.signer.abortPairingAttempt(),c(Error("Connection request reset. Please try again.")))})),await this.signer.authenticate(ethereum_provider_dist_index_es_E(ethereum_provider_dist_index_es_p({},r),{chains:this.rpc.chains})).then(r=>{i(r)}).catch(r=>{c(Error(r.message))})}),c=i.session;if(c){let r=(0,S.guN)(c.namespaces,[this.namespace]);this.setChainIds(this.rpc.chains.length?this.rpc.chains:r),this.setAccounts(r),this.events.emit("connect",{chainId:ethereum_provider_dist_index_es_v(this.chainId)})}return i}catch(r){throw this.signer.logger.error(r),r}finally{this.modal&&this.modal.closeModal()}}async disconnect(){this.session&&await this.signer.disconnect(),this.reset()}get isWalletConnect(){return!0}get session(){return this.signer.session}registerEventListeners(){this.signer.on("session_event",r=>{let{params:i}=r,{event:c}=i;"accountsChanged"===c.name?(this.accounts=this.parseAccounts(c.data),this.events.emit("accountsChanged",this.accounts)):"chainChanged"===c.name?this.setChainId(this.formatChainId(c.data)):this.events.emit(c.name,c.data),this.events.emit("session_event",r)}),this.signer.on("chainChanged",r=>{let i=parseInt(r);this.chainId=i,this.events.emit("chainChanged",ethereum_provider_dist_index_es_v(this.chainId)),this.persist()}),this.signer.on("session_update",r=>{this.events.emit("session_update",r)}),this.signer.on("session_delete",r=>{this.reset(),this.events.emit("session_delete",r),this.events.emit("disconnect",ethereum_provider_dist_index_es_E(ethereum_provider_dist_index_es_p({},(0,S.D6H)("USER_DISCONNECTED")),{data:r.topic,name:"USER_DISCONNECTED"}))}),this.signer.on("display_uri",r=>{var i,c;this.rpc.showQrModal&&(null==(i=this.modal)||i.closeModal(),null==(c=this.modal)||c.openModal({uri:r})),this.events.emit("display_uri",r)})}switchEthereumChain(r){this.request({method:"wallet_switchEthereumChain",params:[{chainId:r.toString(16)}]})}isCompatibleChainId(r){return"string"==typeof r&&r.startsWith(`${this.namespace}:`)}formatChainId(r){return`${this.namespace}:${r}`}parseChainId(r){return Number(r.split(":")[1])}setChainIds(r){let i=r.filter(r=>this.isCompatibleChainId(r)).map(r=>this.parseChainId(r));i.length&&(this.chainId=i[0],this.events.emit("chainChanged",ethereum_provider_dist_index_es_v(this.chainId)),this.persist())}setChainId(r){if(this.isCompatibleChainId(r)){let i=this.parseChainId(r);this.chainId=i,this.switchEthereumChain(i)}}parseAccountId(r){let[i,c,l]=r.split(":");return{chainId:`${i}:${c}`,address:l}}setAccounts(r){this.accounts=r.filter(r=>this.parseChainId(this.parseAccountId(r).chainId)===this.chainId).map(r=>this.parseAccountId(r).address),this.events.emit("accountsChanged",this.accounts)}getRpcConfig(r){var i,c;let l=null!=(i=r?.chains)?i:[],p=null!=(c=r?.optionalChains)?c:[],D=l.concat(p);if(!D.length)throw Error("No chains specified in either `chains` or `optionalChains`");let S=l.length?r?.methods||iE:[],C=l.length?r?.events||iS:[],P=r?.optionalMethods||[],M=r?.optionalEvents||[],U=r?.rpcMap||this.buildRpcMap(D,r.projectId),q=r?.qrModalOptions||void 0;return{chains:l?.map(r=>this.formatChainId(r)),optionalChains:p.map(r=>this.formatChainId(r)),methods:S,events:C,optionalMethods:P,optionalEvents:M,rpcMap:U,showQrModal:!!(null!=r&&r.showQrModal),qrModalOptions:q,projectId:r.projectId,metadata:r.metadata}}buildRpcMap(r,i){let c={};return r.forEach(r=>{c[r]=this.getRpcUrl(r,i)}),c}async initialize(r){if(this.rpc=this.getRpcConfig(r),this.chainId=this.rpc.chains.length?dist_index_es_m(this.rpc.chains):dist_index_es_m(this.rpc.optionalChains),this.signer=await index_es_lr.init({projectId:this.rpc.projectId,metadata:this.rpc.metadata,disableProviderPing:r.disableProviderPing,relayUrl:r.relayUrl,storageOptions:r.storageOptions}),this.registerEventListeners(),await this.loadPersistedSession(),this.rpc.showQrModal){let r;try{let{WalletConnectModal:i}=await c.e(9254).then(c.bind(c,79254));r=i}catch{throw Error("To use QR modal, please install @walletconnect/modal package")}if(r)try{this.modal=new r(ethereum_provider_dist_index_es_p({projectId:this.rpc.projectId},this.rpc.qrModalOptions))}catch(r){throw this.signer.logger.error(r),Error("Could not generate WalletConnectModal Instance")}}}loadConnectOpts(r){if(!r)return;let{chains:i,optionalChains:c,rpcMap:l}=r;i&&(0,S.qt8)(i)&&(this.rpc.chains=i.map(r=>this.formatChainId(r)),i.forEach(r=>{this.rpc.rpcMap[r]=l?.[r]||this.getRpcUrl(r)})),c&&(0,S.qt8)(c)&&(this.rpc.optionalChains=[],this.rpc.optionalChains=c?.map(r=>this.formatChainId(r)),c.forEach(r=>{this.rpc.rpcMap[r]=l?.[r]||this.getRpcUrl(r)}))}getRpcUrl(r,i){var c;return(null==(c=this.rpc.rpcMap)?void 0:c[r])||`https://rpc.walletconnect.com/v1/?chainId=eip155:${r}&projectId=${i||this.rpc.projectId}`}async loadPersistedSession(){if(this.session)try{let r=await this.signer.client.core.storage.getItem(`${this.STORAGE_KEY}/chainId`),i=this.session.namespaces[`${this.namespace}:${r}`]?this.session.namespaces[`${this.namespace}:${r}`]:this.session.namespaces[this.namespace];this.setChainIds(r?[this.formatChainId(r)]:i?.accounts),this.setAccounts(i?.accounts)}catch(r){this.signer.logger.error("Failed to load persisted session, clearing state..."),this.signer.logger.error(r),await this.disconnect().catch(r=>this.signer.logger.warn(r))}}reset(){this.chainId=1,this.accounts=[]}persist(){this.session&&this.signer.client.core.storage.setItem(`${this.STORAGE_KEY}/chainId`,this.chainId)}parseAccounts(r){return"string"==typeof r||r instanceof String?[this.parseAccount(r)]:r.map(r=>this.parseAccount(r))}};let iT=ethereum_provider_dist_index_es_C},49478:function(r,i,c){"use strict";c.d(i,{iO:function(){return l}});let l={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe",batchFetchMessages:"waku_batchFetchMessages"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe",batchFetchMessages:"irn_batchFetchMessages"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe",batchFetchMessages:"iridium_batchFetchMessages"}}},97947:function(){},37001:function(r,i,c){"use strict";Object.defineProperty(i,"__esModule",{value:!0});let l=c(96579);l.__exportStar(c(19282),i),l.__exportStar(c(60793),i)},19282:function(r,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.ONE_THOUSAND=i.ONE_HUNDRED=void 0,i.ONE_HUNDRED=100,i.ONE_THOUSAND=1e3},60793:function(r,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.ONE_YEAR=i.FOUR_WEEKS=i.THREE_WEEKS=i.TWO_WEEKS=i.ONE_WEEK=i.THIRTY_DAYS=i.SEVEN_DAYS=i.FIVE_DAYS=i.THREE_DAYS=i.ONE_DAY=i.TWENTY_FOUR_HOURS=i.TWELVE_HOURS=i.SIX_HOURS=i.THREE_HOURS=i.ONE_HOUR=i.SIXTY_MINUTES=i.THIRTY_MINUTES=i.TEN_MINUTES=i.FIVE_MINUTES=i.ONE_MINUTE=i.SIXTY_SECONDS=i.THIRTY_SECONDS=i.TEN_SECONDS=i.FIVE_SECONDS=i.ONE_SECOND=void 0,i.ONE_SECOND=1,i.FIVE_SECONDS=5,i.TEN_SECONDS=10,i.THIRTY_SECONDS=30,i.SIXTY_SECONDS=60,i.ONE_MINUTE=i.SIXTY_SECONDS,i.FIVE_MINUTES=5*i.ONE_MINUTE,i.TEN_MINUTES=10*i.ONE_MINUTE,i.THIRTY_MINUTES=30*i.ONE_MINUTE,i.SIXTY_MINUTES=60*i.ONE_MINUTE,i.ONE_HOUR=i.SIXTY_MINUTES,i.THREE_HOURS=3*i.ONE_HOUR,i.SIX_HOURS=6*i.ONE_HOUR,i.TWELVE_HOURS=12*i.ONE_HOUR,i.TWENTY_FOUR_HOURS=24*i.ONE_HOUR,i.ONE_DAY=i.TWENTY_FOUR_HOURS,i.THREE_DAYS=3*i.ONE_DAY,i.FIVE_DAYS=5*i.ONE_DAY,i.SEVEN_DAYS=7*i.ONE_DAY,i.THIRTY_DAYS=30*i.ONE_DAY,i.ONE_WEEK=i.SEVEN_DAYS,i.TWO_WEEKS=2*i.ONE_WEEK,i.THREE_WEEKS=3*i.ONE_WEEK,i.FOUR_WEEKS=4*i.ONE_WEEK,i.ONE_YEAR=365*i.ONE_DAY},88316:function(r,i,c){"use strict";Object.defineProperty(i,"__esModule",{value:!0});let l=c(96579);l.__exportStar(c(51199),i),l.__exportStar(c(82892),i),l.__exportStar(c(9733),i),l.__exportStar(c(37001),i)},9733:function(r,i,c){"use strict";Object.defineProperty(i,"__esModule",{value:!0});let l=c(96579);l.__exportStar(c(77378),i)},77378:function(r,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.IWatch=void 0;let IWatch=class IWatch{};i.IWatch=IWatch},29937:function(r,i,c){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.fromMiliseconds=i.toMiliseconds=void 0;let l=c(37001);function toMiliseconds(r){return r*l.ONE_THOUSAND}function fromMiliseconds(r){return Math.floor(r/l.ONE_THOUSAND)}i.toMiliseconds=toMiliseconds,i.fromMiliseconds=fromMiliseconds},79837:function(r,i){"use strict";function delay(r){return new Promise(i=>{setTimeout(()=>{i(!0)},r)})}Object.defineProperty(i,"__esModule",{value:!0}),i.delay=void 0,i.delay=delay},51199:function(r,i,c){"use strict";Object.defineProperty(i,"__esModule",{value:!0});let l=c(96579);l.__exportStar(c(79837),i),l.__exportStar(c(29937),i)},82892:function(r,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.Watch=void 0;let Watch=class Watch{constructor(){this.timestamps=new Map}start(r){if(this.timestamps.has(r))throw Error(`Watch already started for label: ${r}`);this.timestamps.set(r,{started:Date.now()})}stop(r){let i=this.get(r);if(void 0!==i.elapsed)throw Error(`Watch already stopped for label: ${r}`);let c=Date.now()-i.started;this.timestamps.set(r,{started:i.started,elapsed:c})}get(r){let i=this.timestamps.get(r);if(void 0===i)throw Error(`No timestamp found for label: ${r}`);return i}elapsed(r){let i=this.get(r),c=i.elapsed||Date.now()-i.started;return c}};i.Watch=Watch,i.default=Watch},1193:function(r,i){"use strict";function getFromWindow(r){let i;return"undefined"!=typeof window&&void 0!==window[r]&&(i=window[r]),i}function getFromWindowOrThrow(r){let i=getFromWindow(r);if(!i)throw Error(`${r} is not defined in Window`);return i}function getDocumentOrThrow(){return getFromWindowOrThrow("document")}function getDocument(){return getFromWindow("document")}function getNavigatorOrThrow(){return getFromWindowOrThrow("navigator")}function getNavigator(){return getFromWindow("navigator")}function getLocationOrThrow(){return getFromWindowOrThrow("location")}function getLocation(){return getFromWindow("location")}function getCryptoOrThrow(){return getFromWindowOrThrow("crypto")}function getCrypto(){return getFromWindow("crypto")}function getLocalStorageOrThrow(){return getFromWindowOrThrow("localStorage")}function getLocalStorage(){return getFromWindow("localStorage")}Object.defineProperty(i,"__esModule",{value:!0}),i.getLocalStorage=i.getLocalStorageOrThrow=i.getCrypto=i.getCryptoOrThrow=i.getLocation=i.getLocationOrThrow=i.getNavigator=i.getNavigatorOrThrow=i.getDocument=i.getDocumentOrThrow=i.getFromWindowOrThrow=i.getFromWindow=void 0,i.getFromWindow=getFromWindow,i.getFromWindowOrThrow=getFromWindowOrThrow,i.getDocumentOrThrow=getDocumentOrThrow,i.getDocument=getDocument,i.getNavigatorOrThrow=getNavigatorOrThrow,i.getNavigator=getNavigator,i.getLocationOrThrow=getLocationOrThrow,i.getLocation=getLocation,i.getCryptoOrThrow=getCryptoOrThrow,i.getCrypto=getCrypto,i.getLocalStorageOrThrow=getLocalStorageOrThrow,i.getLocalStorage=getLocalStorage},35775:function(r,i,c){"use strict";i.D=void 0;let l=c(1193);function getWindowMetadata(){let r,i;try{r=l.getDocumentOrThrow(),i=l.getLocationOrThrow()}catch(r){return null}function getIcons(){let c=r.getElementsByTagName("link"),l=[];for(let r=0;r-1){let r=p.getAttribute("href");if(r){if(-1===r.toLowerCase().indexOf("https:")&&-1===r.toLowerCase().indexOf("http:")&&0!==r.indexOf("//")){let c=i.protocol+"//"+i.host;if(0===r.indexOf("/"))c+=r;else{let l=i.pathname.split("/");l.pop();let p=l.join("/");c+=p+"/"+r}l.push(c)}else if(0===r.indexOf("//")){let c=i.protocol+r;l.push(c)}else l.push(r)}}}return l}function getWindowMetadataOfAny(...i){let c=r.getElementsByTagName("meta");for(let r=0;rl.getAttribute(r)).filter(r=>!!r&&i.includes(r));if(p.length&&p){let r=l.getAttribute("content");if(r)return r}}return""}function getName(){let i=getWindowMetadataOfAny("name","og:site_name","og:title","twitter:title");return i||(i=r.title),i}function getDescription(){let r=getWindowMetadataOfAny("description","og:description","twitter:description","keywords");return r}let c=getName(),p=getDescription(),D=i.origin,S=getIcons();return{description:p,url:D,icons:S,name:c}}i.D=getWindowMetadata},20283:function(r,i){var c="undefined"!=typeof self?self:this,l=function(){function F(){this.fetch=!1,this.DOMException=c.DOMException}return F.prototype=c,new F}();(function(r){var i={searchParams:"URLSearchParams"in l,iterable:"Symbol"in l&&"iterator"in Symbol,blob:"FileReader"in l&&"Blob"in l&&function(){try{return new Blob,!0}catch(r){return!1}}(),formData:"FormData"in l,arrayBuffer:"ArrayBuffer"in l};function isDataView(r){return r&&DataView.prototype.isPrototypeOf(r)}if(i.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],p=ArrayBuffer.isView||function(r){return r&&c.indexOf(Object.prototype.toString.call(r))>-1};function normalizeName(r){if("string"!=typeof r&&(r=String(r)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(r))throw TypeError("Invalid character in header field name");return r.toLowerCase()}function normalizeValue(r){return"string"!=typeof r&&(r=String(r)),r}function iteratorFor(r){var c={next:function(){var i=r.shift();return{done:void 0===i,value:i}}};return i.iterable&&(c[Symbol.iterator]=function(){return c}),c}function Headers(r){this.map={},r instanceof Headers?r.forEach(function(r,i){this.append(i,r)},this):Array.isArray(r)?r.forEach(function(r){this.append(r[0],r[1])},this):r&&Object.getOwnPropertyNames(r).forEach(function(i){this.append(i,r[i])},this)}function consumed(r){if(r.bodyUsed)return Promise.reject(TypeError("Already read"));r.bodyUsed=!0}function fileReaderReady(r){return new Promise(function(i,c){r.onload=function(){i(r.result)},r.onerror=function(){c(r.error)}})}function readBlobAsArrayBuffer(r){var i=new FileReader,c=fileReaderReady(i);return i.readAsArrayBuffer(r),c}function readBlobAsText(r){var i=new FileReader,c=fileReaderReady(i);return i.readAsText(r),c}function readArrayBufferAsText(r){for(var i=new Uint8Array(r),c=Array(i.length),l=0;l-1?i:r}function Request(r,i){var c=(i=i||{}).body;if(r instanceof Request){if(r.bodyUsed)throw TypeError("Already read");this.url=r.url,this.credentials=r.credentials,i.headers||(this.headers=new Headers(r.headers)),this.method=r.method,this.mode=r.mode,this.signal=r.signal,c||null==r._bodyInit||(c=r._bodyInit,r.bodyUsed=!0)}else this.url=String(r);if(this.credentials=i.credentials||this.credentials||"same-origin",(i.headers||!this.headers)&&(this.headers=new Headers(i.headers)),this.method=normalizeMethod(i.method||this.method||"GET"),this.mode=i.mode||this.mode||null,this.signal=i.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&c)throw TypeError("Body not allowed for GET or HEAD requests");this._initBody(c)}function decode(r){var i=new FormData;return r.trim().split("&").forEach(function(r){if(r){var c=r.split("="),l=c.shift().replace(/\+/g," "),p=c.join("=").replace(/\+/g," ");i.append(decodeURIComponent(l),decodeURIComponent(p))}}),i}function parseHeaders(r){var i=new Headers;return r.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(r){var c=r.split(":"),l=c.shift().trim();if(l){var p=c.join(":").trim();i.append(l,p)}}),i}function Response(r,i){i||(i={}),this.type="default",this.status=void 0===i.status?200:i.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in i?i.statusText:"OK",this.headers=new Headers(i.headers),this.url=i.url||"",this._initBody(r)}Request.prototype.clone=function(){return new Request(this,{body:this._bodyInit})},Body.call(Request.prototype),Body.call(Response.prototype),Response.prototype.clone=function(){return new Response(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Headers(this.headers),url:this.url})},Response.error=function(){var r=new Response(null,{status:0,statusText:""});return r.type="error",r};var S=[301,302,303,307,308];Response.redirect=function(r,i){if(-1===S.indexOf(i))throw RangeError("Invalid status code");return new Response(null,{status:i,headers:{location:r}})},r.DOMException=l.DOMException;try{new r.DOMException}catch(i){r.DOMException=function(r,i){this.message=r,this.name=i;var c=Error(r);this.stack=c.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function fetch(c,l){return new Promise(function(p,D){var S=new Request(c,l);if(S.signal&&S.signal.aborted)return D(new r.DOMException("Aborted","AbortError"));var C=new XMLHttpRequest;function abortXhr(){C.abort()}C.onload=function(){var r={status:C.status,statusText:C.statusText,headers:parseHeaders(C.getAllResponseHeaders()||"")};r.url="responseURL"in C?C.responseURL:r.headers.get("X-Request-URL"),p(new Response("response"in C?C.response:C.responseText,r))},C.onerror=function(){D(TypeError("Network request failed"))},C.ontimeout=function(){D(TypeError("Network request failed"))},C.onabort=function(){D(new r.DOMException("Aborted","AbortError"))},C.open(S.method,S.url,!0),"include"===S.credentials?C.withCredentials=!0:"omit"===S.credentials&&(C.withCredentials=!1),"responseType"in C&&i.blob&&(C.responseType="blob"),S.headers.forEach(function(r,i){C.setRequestHeader(i,r)}),S.signal&&(S.signal.addEventListener("abort",abortXhr),C.onreadystatechange=function(){4===C.readyState&&S.signal.removeEventListener("abort",abortXhr)}),C.send(void 0===S._bodyInit?null:S._bodyInit)})}fetch.polyfill=!0,l.fetch||(l.fetch=fetch,l.Headers=Headers,l.Request=Request,l.Response=Response),r.Headers=Headers,r.Request=Request,r.Response=Response,r.fetch=fetch,Object.defineProperty(r,"__esModule",{value:!0})})({}),l.fetch.ponyfill=!0,delete l.fetch.polyfill,(i=l.fetch).default=l.fetch,i.fetch=l.fetch,i.Headers=l.Headers,i.Request=l.Request,i.Response=l.Response,r.exports=i},77372:function(r){"use strict";var i="%[a-f0-9]{2}",c=RegExp("("+i+")|([^%]+?)","gi"),l=RegExp("("+i+")+","gi");function decodeComponents(r,i){try{return[decodeURIComponent(r.join(""))]}catch(r){}if(1===r.length)return r;i=i||1;var c=r.slice(0,i),l=r.slice(i);return Array.prototype.concat.call([],decodeComponents(c),decodeComponents(l))}function decode(r){try{return decodeURIComponent(r)}catch(p){for(var i=r.match(c)||[],l=1;l-1}function listCacheSet(r,i){var c=this.__data__,l=assocIndexOf(c,r);return l<0?(++this.size,c.push([r,i])):c[l][1]=i,this}function MapCache(r){var i=-1,c=null==r?0:r.length;for(this.clear();++iC))return!1;var M=D.get(r);if(M&&D.get(i))return M==i;var U=-1,q=!0,J=2&c?new SetCache:void 0;for(D.set(r,i),D.set(i,r);++U-1&&r%1==0&&r-1&&r%1==0&&r<=9007199254740991}function isObject(r){var i=typeof r;return null!=r&&("object"==i||"function"==i)}function isObjectLike(r){return null!=r&&"object"==typeof r}var td=eO?baseUnary(eO):baseIsTypedArray;function keys(r){return isArrayLike(r)?arrayLikeKeys(r):baseKeys(r)}function stubArray(){return[]}function stubFalse(){return!1}r.exports=isEqual},99594:function(r){"use strict";let i=self.fetch.bind(self);r.exports=i,r.exports.default=r.exports},84875:function(r,i,c){"use strict";let l=c(55517),p=c(77372),D=c(31770),S=c(65194),isNullOrUndefined=r=>null==r,C=Symbol("encodeFragmentIdentifier");function encoderForArrayFormat(r){switch(r.arrayFormat){case"index":return i=>(c,l)=>{let p=c.length;return void 0===l||r.skipNull&&null===l||r.skipEmptyString&&""===l?c:null===l?[...c,[encode(i,r),"[",p,"]"].join("")]:[...c,[encode(i,r),"[",encode(p,r),"]=",encode(l,r)].join("")]};case"bracket":return i=>(c,l)=>void 0===l||r.skipNull&&null===l||r.skipEmptyString&&""===l?c:null===l?[...c,[encode(i,r),"[]"].join("")]:[...c,[encode(i,r),"[]=",encode(l,r)].join("")];case"colon-list-separator":return i=>(c,l)=>void 0===l||r.skipNull&&null===l||r.skipEmptyString&&""===l?c:null===l?[...c,[encode(i,r),":list="].join("")]:[...c,[encode(i,r),":list=",encode(l,r)].join("")];case"comma":case"separator":case"bracket-separator":{let i="bracket-separator"===r.arrayFormat?"[]=":"=";return c=>(l,p)=>void 0===p||r.skipNull&&null===p||r.skipEmptyString&&""===p?l:(p=null===p?"":p,0===l.length)?[[encode(c,r),i,encode(p,r)].join("")]:[[l,encode(p,r)].join(r.arrayFormatSeparator)]}default:return i=>(c,l)=>void 0===l||r.skipNull&&null===l||r.skipEmptyString&&""===l?c:null===l?[...c,encode(i,r)]:[...c,[encode(i,r),"=",encode(l,r)].join("")]}}function parserForArrayFormat(r){let i;switch(r.arrayFormat){case"index":return(r,c,l)=>{if(i=/\[(\d*)\]$/.exec(r),r=r.replace(/\[\d*\]$/,""),!i){l[r]=c;return}void 0===l[r]&&(l[r]={}),l[r][i[1]]=c};case"bracket":return(r,c,l)=>{if(i=/(\[\])$/.exec(r),r=r.replace(/\[\]$/,""),!i){l[r]=c;return}if(void 0===l[r]){l[r]=[c];return}l[r]=[].concat(l[r],c)};case"colon-list-separator":return(r,c,l)=>{if(i=/(:list)$/.exec(r),r=r.replace(/:list$/,""),!i){l[r]=c;return}if(void 0===l[r]){l[r]=[c];return}l[r]=[].concat(l[r],c)};case"comma":case"separator":return(i,c,l)=>{let p="string"==typeof c&&c.includes(r.arrayFormatSeparator),D="string"==typeof c&&!p&&decode(c,r).includes(r.arrayFormatSeparator);c=D?decode(c,r):c;let S=p||D?c.split(r.arrayFormatSeparator).map(i=>decode(i,r)):null===c?c:decode(c,r);l[i]=S};case"bracket-separator":return(i,c,l)=>{let p=/(\[\])$/.test(i);if(i=i.replace(/\[\]$/,""),!p){l[i]=c?decode(c,r):c;return}let D=null===c?[]:c.split(r.arrayFormatSeparator).map(i=>decode(i,r));if(void 0===l[i]){l[i]=D;return}l[i]=[].concat(l[i],D)};default:return(r,i,c)=>{if(void 0===c[r]){c[r]=i;return}c[r]=[].concat(c[r],i)}}}function validateArrayFormatSeparator(r){if("string"!=typeof r||1!==r.length)throw TypeError("arrayFormatSeparator must be single character string")}function encode(r,i){return i.encode?i.strict?l(r):encodeURIComponent(r):r}function decode(r,i){return i.decode?p(r):r}function keysSorter(r){return Array.isArray(r)?r.sort():"object"==typeof r?keysSorter(Object.keys(r)).sort((r,i)=>Number(r)-Number(i)).map(i=>r[i]):r}function removeHash(r){let i=r.indexOf("#");return -1!==i&&(r=r.slice(0,i)),r}function getHash(r){let i="",c=r.indexOf("#");return -1!==c&&(i=r.slice(c)),i}function extract(r){r=removeHash(r);let i=r.indexOf("?");return -1===i?"":r.slice(i+1)}function parseValue(r,i){return i.parseNumbers&&!Number.isNaN(Number(r))&&"string"==typeof r&&""!==r.trim()?r=Number(r):i.parseBooleans&&null!==r&&("true"===r.toLowerCase()||"false"===r.toLowerCase())&&(r="true"===r.toLowerCase()),r}function parse(r,i){validateArrayFormatSeparator((i=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},i)).arrayFormatSeparator);let c=parserForArrayFormat(i),l=Object.create(null);if("string"!=typeof r||!(r=r.trim().replace(/^[?#&]/,"")))return l;for(let p of r.split("&")){if(""===p)continue;let[r,S]=D(i.decode?p.replace(/\+/g," "):p,"=");S=void 0===S?null:["comma","separator","bracket-separator"].includes(i.arrayFormat)?S:decode(S,i),c(decode(r,i),S,l)}for(let r of Object.keys(l)){let c=l[r];if("object"==typeof c&&null!==c)for(let r of Object.keys(c))c[r]=parseValue(c[r],i);else l[r]=parseValue(c,i)}return!1===i.sort?l:(!0===i.sort?Object.keys(l).sort():Object.keys(l).sort(i.sort)).reduce((r,i)=>{let c=l[i];return c&&"object"==typeof c&&!Array.isArray(c)?r[i]=keysSorter(c):r[i]=c,r},Object.create(null))}i.extract=extract,i.parse=parse,i.stringify=(r,i)=>{if(!r)return"";validateArrayFormatSeparator((i=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},i)).arrayFormatSeparator);let shouldFilter=c=>i.skipNull&&isNullOrUndefined(r[c])||i.skipEmptyString&&""===r[c],c=encoderForArrayFormat(i),l={};for(let i of Object.keys(r))shouldFilter(i)||(l[i]=r[i]);let p=Object.keys(l);return!1!==i.sort&&p.sort(i.sort),p.map(l=>{let p=r[l];return void 0===p?"":null===p?encode(l,i):Array.isArray(p)?0===p.length&&"bracket-separator"===i.arrayFormat?encode(l,i)+"[]":p.reduce(c(l),[]).join("&"):encode(l,i)+"="+encode(p,i)}).filter(r=>r.length>0).join("&")},i.parseUrl=(r,i)=>{i=Object.assign({decode:!0},i);let[c,l]=D(r,"#");return Object.assign({url:c.split("?")[0]||"",query:parse(extract(r),i)},i&&i.parseFragmentIdentifier&&l?{fragmentIdentifier:decode(l,i)}:{})},i.stringifyUrl=(r,c)=>{c=Object.assign({encode:!0,strict:!0,[C]:!0},c);let l=removeHash(r.url).split("?")[0]||"",p=i.extract(r.url),D=i.parse(p,{sort:!1}),S=Object.assign(D,r.query),P=i.stringify(S,c);P&&(P=`?${P}`);let M=getHash(r.url);return r.fragmentIdentifier&&(M=`#${c[C]?encode(r.fragmentIdentifier,c):r.fragmentIdentifier}`),`${l}${P}${M}`},i.pick=(r,c,l)=>{l=Object.assign({parseFragmentIdentifier:!0,[C]:!1},l);let{url:p,query:D,fragmentIdentifier:P}=i.parseUrl(r,l);return i.stringifyUrl({url:p,query:S(D,c),fragmentIdentifier:P},l)},i.exclude=(r,c,l)=>{let p=Array.isArray(c)?r=>!c.includes(r):(r,i)=>!c(r,i);return i.pick(r,p,l)}},3280:function(r){"use strict";function tryStringify(r){try{return JSON.stringify(r)}catch(r){return'"[Circular]"'}}function format(r,i,c){var l=c&&c.stringify||tryStringify;if("object"==typeof r&&null!==r){var p=i.length+1;if(1===p)return r;var D=Array(p);D[0]=l(r);for(var S=1;S-1?U:0,r.charCodeAt(J+1)){case 100:case 102:if(M>=C||null==i[M])break;U=C||null==i[M])break;U=C||void 0===i[M])break;U",U=J+2,J++;break}P+=l(i[M]),U=J+2,J++;break;case 115:if(M>=C)break;U{if(!("string"==typeof r&&"string"==typeof i))throw TypeError("Expected the arguments to be of type `string`");if(""===i)return[r];let c=r.indexOf(i);return -1===c?[r]:[r.slice(0,c),r.slice(c+i.length)]}},55517:function(r){"use strict";r.exports=r=>encodeURIComponent(r).replace(/[!'()*]/g,r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`)},96579:function(r,i,c){"use strict";c.r(i),c.d(i,{__assign:function(){return __assign},__asyncDelegator:function(){return __asyncDelegator},__asyncGenerator:function(){return __asyncGenerator},__asyncValues:function(){return __asyncValues},__await:function(){return __await},__awaiter:function(){return __awaiter},__classPrivateFieldGet:function(){return __classPrivateFieldGet},__classPrivateFieldSet:function(){return __classPrivateFieldSet},__createBinding:function(){return __createBinding},__decorate:function(){return __decorate},__exportStar:function(){return __exportStar},__extends:function(){return __extends},__generator:function(){return __generator},__importDefault:function(){return __importDefault},__importStar:function(){return __importStar},__makeTemplateObject:function(){return __makeTemplateObject},__metadata:function(){return __metadata},__param:function(){return __param},__read:function(){return __read},__rest:function(){return __rest},__spread:function(){return __spread},__spreadArrays:function(){return __spreadArrays},__values:function(){return __values}});/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var extendStatics=function(r,i){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var c in i)i.hasOwnProperty(c)&&(r[c]=i[c])})(r,i)};function __extends(r,i){function __(){this.constructor=r}extendStatics(r,i),r.prototype=null===i?Object.create(i):(__.prototype=i.prototype,new __)}var __assign=function(){return(__assign=Object.assign||function(r){for(var i,c=1,l=arguments.length;ci.indexOf(l)&&(c[l]=r[l]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols)for(var p=0,l=Object.getOwnPropertySymbols(r);pi.indexOf(l[p])&&Object.prototype.propertyIsEnumerable.call(r,l[p])&&(c[l[p]]=r[l[p]]);return c}function __decorate(r,i,c,l){var p,D=arguments.length,S=D<3?i:null===l?l=Object.getOwnPropertyDescriptor(i,c):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)S=Reflect.decorate(r,i,c,l);else for(var C=r.length-1;C>=0;C--)(p=r[C])&&(S=(D<3?p(S):D>3?p(i,c,S):p(i,c))||S);return D>3&&S&&Object.defineProperty(i,c,S),S}function __param(r,i){return function(c,l){i(c,l,r)}}function __metadata(r,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(r,i)}function __awaiter(r,i,c,l){function adopt(r){return r instanceof c?r:new c(function(i){i(r)})}return new(c||(c=Promise))(function(c,p){function fulfilled(r){try{step(l.next(r))}catch(r){p(r)}}function rejected(r){try{step(l.throw(r))}catch(r){p(r)}}function step(r){r.done?c(r.value):adopt(r.value).then(fulfilled,rejected)}step((l=l.apply(r,i||[])).next())})}function __generator(r,i){var c,l,p,D,S={label:0,sent:function(){if(1&p[0])throw p[1];return p[1]},trys:[],ops:[]};return D={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(D[Symbol.iterator]=function(){return this}),D;function verb(r){return function(i){return step([r,i])}}function step(D){if(c)throw TypeError("Generator is already executing.");for(;S;)try{if(c=1,l&&(p=2&D[0]?l.return:D[0]?l.throw||((p=l.return)&&p.call(l),0):l.next)&&!(p=p.call(l,D[1])).done)return p;switch(l=0,p&&(D=[2&D[0],p.value]),D[0]){case 0:case 1:p=D;break;case 4:return S.label++,{value:D[1],done:!1};case 5:S.label++,l=D[1],D=[0];continue;case 7:D=S.ops.pop(),S.trys.pop();continue;default:if(!(p=(p=S.trys).length>0&&p[p.length-1])&&(6===D[0]||2===D[0])){S=0;continue}if(3===D[0]&&(!p||D[1]>p[0]&&D[1]=r.length&&(r=void 0),{value:r&&r[l++],done:!r}}};throw TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(r,i){var c="function"==typeof Symbol&&r[Symbol.iterator];if(!c)return r;var l,p,D=c.call(r),S=[];try{for(;(void 0===i||i-- >0)&&!(l=D.next()).done;)S.push(l.value)}catch(r){p={error:r}}finally{try{l&&!l.done&&(c=D.return)&&c.call(D)}finally{if(p)throw p.error}}return S}function __spread(){for(var r=[],i=0;i1||resume(r,i)})})}function resume(r,i){try{step(p[r](i))}catch(r){settle(D[0][3],r)}}function step(r){r.value instanceof __await?Promise.resolve(r.value.v).then(fulfill,reject):settle(D[0][2],r)}function fulfill(r){resume("next",r)}function reject(r){resume("throw",r)}function settle(r,i){r(i),D.shift(),D.length&&resume(D[0][0],D[0][1])}}function __asyncDelegator(r){var i,c;return i={},verb("next"),verb("throw",function(r){throw r}),verb("return"),i[Symbol.iterator]=function(){return this},i;function verb(l,p){i[l]=r[l]?function(i){return(c=!c)?{value:__await(r[l](i)),done:"return"===l}:p?p(i):i}:p}}function __asyncValues(r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var i,c=r[Symbol.asyncIterator];return c?c.call(r):(r=__values(r),i={},verb("next"),verb("throw"),verb("return"),i[Symbol.asyncIterator]=function(){return this},i);function verb(c){i[c]=r[c]&&function(i){return new Promise(function(l,p){settle(l,p,(i=r[c](i)).done,i.value)})}}function settle(r,i,c,l){Promise.resolve(l).then(function(i){r({value:i,done:c})},i)}}function __makeTemplateObject(r,i){return Object.defineProperty?Object.defineProperty(r,"raw",{value:i}):r.raw=i,r}function __importStar(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var c in r)Object.hasOwnProperty.call(r,c)&&(i[c]=r[c]);return i.default=r,i}function __importDefault(r){return r&&r.__esModule?r:{default:r}}function __classPrivateFieldGet(r,i){if(!i.has(r))throw TypeError("attempted to get private field on non-instance");return i.get(r)}function __classPrivateFieldSet(r,i,c){if(!i.has(r))throw TypeError("attempted to set private field on non-instance");return i.set(r,c),c}},13361:function(r){"use strict";r.exports=function(){throw Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}},2412:function(r,i,c){"use strict";let l=c(3280);r.exports=pino;let p=pfGlobalThisOrFallback().console||{};function shouldSerialize(r,i){if(Array.isArray(r)){let i=r.filter(function(r){return"!stdSerializers.err"!==r});return i}return!0===r&&Object.keys(i)}function pino(r){(r=r||{}).browser=r.browser||{};let i=r.browser.transmit;if(i&&"function"!=typeof i.send)throw Error("pino: transmit option must have a send function");let c=r.browser.write||p;r.browser.write&&(r.browser.asObject=!0);let l=r.serializers||{},D=shouldSerialize(r.browser.serialize,l),S=r.browser.serialize;Array.isArray(r.browser.serialize)&&r.browser.serialize.indexOf("!stdSerializers.err")>-1&&(S=!1),"function"==typeof c&&(c.error=c.fatal=c.warn=c.info=c.debug=c.trace=c),!1===r.enabled&&(r.level="silent");let C=r.level||"info",P=Object.create(c);P.log||(P.log=noop),Object.defineProperty(P,"levelVal",{get:getLevelVal}),Object.defineProperty(P,"level",{get:getLevel,set:setLevel});let M={transmit:i,serialize:D,asObject:r.browser.asObject,levels:["error","fatal","warn","info","debug","trace"],timestamp:getTimeFunction(r)};function getLevelVal(){return"silent"===this.level?1/0:this.levels.values[this.level]}function getLevel(){return this._level}function setLevel(r){if("silent"!==r&&!this.levels.values[r])throw Error("unknown level "+r);this._level=r,set(M,P,"error","log"),set(M,P,"fatal","error"),set(M,P,"warn","error"),set(M,P,"info","log"),set(M,P,"debug","log"),set(M,P,"trace","log")}function child(c,p){if(!c)throw Error("missing bindings for child Pino");p=p||{},D&&c.serializers&&(p.serializers=c.serializers);let S=p.serializers;if(D&&S){var C=Object.assign({},l,S),P=!0===r.browser.serialize?Object.keys(C):D;delete c.serializers,applySerializers([c],P,C,this._stdErrSerialize)}function Child(r){this._childLevel=(0|r._childLevel)+1,this.error=bind(r,c,"error"),this.fatal=bind(r,c,"fatal"),this.warn=bind(r,c,"warn"),this.info=bind(r,c,"info"),this.debug=bind(r,c,"debug"),this.trace=bind(r,c,"trace"),C&&(this.serializers=C,this._serialize=P),i&&(this._logEvent=createLogEventShape([].concat(r._logEvent.bindings,c)))}return Child.prototype=this,new Child(this)}return P.levels=pino.levels,P.level=C,P.setMaxListeners=P.getMaxListeners=P.emit=P.addListener=P.on=P.prependListener=P.once=P.prependOnceListener=P.removeListener=P.removeAllListeners=P.listeners=P.listenerCount=P.eventNames=P.write=P.flush=noop,P.serializers=l,P._serialize=D,P._stdErrSerialize=S,P.child=child,i&&(P._logEvent=createLogEventShape()),P}function set(r,i,c,l){let D=Object.getPrototypeOf(i);i[c]=i.levelVal>i.levels.values[c]?noop:D[c]?D[c]:p[c]||p[l]||noop,wrap(r,i,c)}function wrap(r,i,c){if(r.transmit||i[c]!==noop){var l;i[c]=(l=i[c],function(){let D=r.timestamp(),S=Array(arguments.length),C=Object.getPrototypeOf&&Object.getPrototypeOf(this)===p?p:this;for(var P=0;P-1&&l in c&&(r[p][l]=c[l](r[p][l]))}function bind(r,i,c){return function(){let l=Array(1+arguments.length);l[0]=i;for(var p=1;p=255)throw TypeError("Alphabet too long");for(var c=new Uint8Array(256),l=0;l>>0,S=new Uint8Array(D);r[i];){var U=c[r.charCodeAt(i)];if(255===U)return;for(var q=0,J=D-1;(0!==U||q>>0,S[J]=U%256>>>0,U=U/256>>>0;if(0!==U)throw Error("Non-zero carry");p=q,i++}if(" "!==r[i]){for(var X=D-p;X!==D&&0===S[X];)X++;for(var ee=new Uint8Array(l+(D-X)),et=l;X!==D;)ee[et++]=S[X++];return ee}}}function decode(r){var c=decodeUnsafe(r);if(c)return c;throw Error(`Non-${i} character`)}return{encode:function(i){if(i instanceof Uint8Array||(ArrayBuffer.isView(i)?i=new Uint8Array(i.buffer,i.byteOffset,i.byteLength):Array.isArray(i)&&(i=Uint8Array.from(i))),!(i instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(0===i.length)return"";for(var c=0,l=0,p=0,D=i.length;p!==D&&0===i[p];)p++,c++;for(var S=(D-p)*U+1>>>0,M=new Uint8Array(S);p!==D;){for(var q=i[p],J=0,X=S-1;(0!==q||J>>0,M[X]=q%C>>>0,q=q/C>>>0;if(0!==q)throw Error("Non-zero carry");l=J,p++}for(var ee=S-l;ee!==S&&0===M[ee];)ee++;for(var et=P.repeat(c);ee{if(r===i)return!0;if(r.byteLength!==i.byteLength)return!1;for(let c=0;c{if(r instanceof Uint8Array&&"Uint8Array"===r.constructor.name)return r;if(r instanceof ArrayBuffer)return new Uint8Array(r);if(ArrayBuffer.isView(r))return new Uint8Array(r.buffer,r.byteOffset,r.byteLength);throw Error("Unknown type, must be binary type")},fromString=r=>new TextEncoder().encode(r),bytes_toString=r=>new TextDecoder().decode(r);let Encoder=class Encoder{constructor(r,i,c){this.name=r,this.prefix=i,this.baseEncode=c}encode(r){if(r instanceof Uint8Array)return`${this.prefix}${this.baseEncode(r)}`;throw Error("Unknown type, must be binary type")}};let Decoder=class Decoder{constructor(r,i,c){if(this.name=r,this.prefix=i,void 0===i.codePointAt(0))throw Error("Invalid prefix character");this.prefixCodePoint=i.codePointAt(0),this.baseDecode=c}decode(r){if("string"==typeof r){if(r.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(r)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(r.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(r){return or(this,r)}};let ComposedDecoder=class ComposedDecoder{constructor(r){this.decoders=r}or(r){return or(this,r)}decode(r){let i=r[0],c=this.decoders[i];if(c)return c.decode(r);throw RangeError(`Unable to decode multibase string ${JSON.stringify(r)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}};let or=(r,i)=>new ComposedDecoder({...r.decoders||{[r.prefix]:r},...i.decoders||{[i.prefix]:i}});let Codec=class Codec{constructor(r,i,c,l){this.name=r,this.prefix=i,this.baseEncode=c,this.baseDecode=l,this.encoder=new Encoder(r,i,c),this.decoder=new Decoder(r,i,l)}encode(r){return this.encoder.encode(r)}decode(r){return this.decoder.decode(r)}};let from=({name:r,prefix:i,encode:c,decode:l})=>new Codec(r,i,c,l),baseX=({prefix:r,name:i,alphabet:c})=>{let{encode:l,decode:p}=src(c,i);return from({prefix:r,name:i,encode:l,decode:r=>coerce(p(r))})},decode=(r,i,c,l)=>{let p={};for(let r=0;r=8&&(C-=8,S[M++]=255&P>>C)}if(C>=c||255&P<<8-C)throw SyntaxError("Unexpected end of data");return S},encode=(r,i,c)=>{let l="="===i[i.length-1],p=(1<c;)S-=c,D+=i[p&C>>S];if(S&&(D+=i[p&C<from({prefix:i,name:r,encode:r=>encode(r,l,c),decode:i=>decode(i,l,c,r)}),ea=from({prefix:"\x00",name:"identity",encode:r=>bytes_toString(r),decode:r=>fromString(r)}),ed=rfc4648({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),ef=rfc4648({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),ey=baseX({prefix:"9",name:"base10",alphabet:"0123456789"}),e_=rfc4648({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),em=rfc4648({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),eb=rfc4648({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),ew=rfc4648({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),eE=rfc4648({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),eD=rfc4648({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),eS=rfc4648({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),eI=rfc4648({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),ex=rfc4648({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),eC=rfc4648({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),eP=rfc4648({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),eO=baseX({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),eA=baseX({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),eR=baseX({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),eT=baseX({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),eN=rfc4648({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),eL=rfc4648({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),ek=rfc4648({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),ej=rfc4648({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),eM=Array.from("\uD83D\uDE80\uD83E\uDE90☄\uD83D\uDEF0\uD83C\uDF0C\uD83C\uDF11\uD83C\uDF12\uD83C\uDF13\uD83C\uDF14\uD83C\uDF15\uD83C\uDF16\uD83C\uDF17\uD83C\uDF18\uD83C\uDF0D\uD83C\uDF0F\uD83C\uDF0E\uD83D\uDC09☀\uD83D\uDCBB\uD83D\uDDA5\uD83D\uDCBE\uD83D\uDCBF\uD83D\uDE02❤\uD83D\uDE0D\uD83E\uDD23\uD83D\uDE0A\uD83D\uDE4F\uD83D\uDC95\uD83D\uDE2D\uD83D\uDE18\uD83D\uDC4D\uD83D\uDE05\uD83D\uDC4F\uD83D\uDE01\uD83D\uDD25\uD83E\uDD70\uD83D\uDC94\uD83D\uDC96\uD83D\uDC99\uD83D\uDE22\uD83E\uDD14\uD83D\uDE06\uD83D\uDE44\uD83D\uDCAA\uD83D\uDE09☺\uD83D\uDC4C\uD83E\uDD17\uD83D\uDC9C\uD83D\uDE14\uD83D\uDE0E\uD83D\uDE07\uD83C\uDF39\uD83E\uDD26\uD83C\uDF89\uD83D\uDC9E✌✨\uD83E\uDD37\uD83D\uDE31\uD83D\uDE0C\uD83C\uDF38\uD83D\uDE4C\uD83D\uDE0B\uD83D\uDC97\uD83D\uDC9A\uD83D\uDE0F\uD83D\uDC9B\uD83D\uDE42\uD83D\uDC93\uD83E\uDD29\uD83D\uDE04\uD83D\uDE00\uD83D\uDDA4\uD83D\uDE03\uD83D\uDCAF\uD83D\uDE48\uD83D\uDC47\uD83C\uDFB6\uD83D\uDE12\uD83E\uDD2D❣\uD83D\uDE1C\uD83D\uDC8B\uD83D\uDC40\uD83D\uDE2A\uD83D\uDE11\uD83D\uDCA5\uD83D\uDE4B\uD83D\uDE1E\uD83D\uDE29\uD83D\uDE21\uD83E\uDD2A\uD83D\uDC4A\uD83E\uDD73\uD83D\uDE25\uD83E\uDD24\uD83D\uDC49\uD83D\uDC83\uD83D\uDE33✋\uD83D\uDE1A\uD83D\uDE1D\uD83D\uDE34\uD83C\uDF1F\uD83D\uDE2C\uD83D\uDE43\uD83C\uDF40\uD83C\uDF37\uD83D\uDE3B\uD83D\uDE13⭐✅\uD83E\uDD7A\uD83C\uDF08\uD83D\uDE08\uD83E\uDD18\uD83D\uDCA6✔\uD83D\uDE23\uD83C\uDFC3\uD83D\uDC90☹\uD83C\uDF8A\uD83D\uDC98\uD83D\uDE20☝\uD83D\uDE15\uD83C\uDF3A\uD83C\uDF82\uD83C\uDF3B\uD83D\uDE10\uD83D\uDD95\uD83D\uDC9D\uD83D\uDE4A\uD83D\uDE39\uD83D\uDDE3\uD83D\uDCAB\uD83D\uDC80\uD83D\uDC51\uD83C\uDFB5\uD83E\uDD1E\uD83D\uDE1B\uD83D\uDD34\uD83D\uDE24\uD83C\uDF3C\uD83D\uDE2B⚽\uD83E\uDD19☕\uD83C\uDFC6\uD83E\uDD2B\uD83D\uDC48\uD83D\uDE2E\uD83D\uDE46\uD83C\uDF7B\uD83C\uDF43\uD83D\uDC36\uD83D\uDC81\uD83D\uDE32\uD83C\uDF3F\uD83E\uDDE1\uD83C\uDF81⚡\uD83C\uDF1E\uD83C\uDF88❌✊\uD83D\uDC4B\uD83D\uDE30\uD83E\uDD28\uD83D\uDE36\uD83E\uDD1D\uD83D\uDEB6\uD83D\uDCB0\uD83C\uDF53\uD83D\uDCA2\uD83E\uDD1F\uD83D\uDE41\uD83D\uDEA8\uD83D\uDCA8\uD83E\uDD2C✈\uD83C\uDF80\uD83C\uDF7A\uD83E\uDD13\uD83D\uDE19\uD83D\uDC9F\uD83C\uDF31\uD83D\uDE16\uD83D\uDC76\uD83E\uDD74▶➡❓\uD83D\uDC8E\uD83D\uDCB8⬇\uD83D\uDE28\uD83C\uDF1A\uD83E\uDD8B\uD83D\uDE37\uD83D\uDD7A⚠\uD83D\uDE45\uD83D\uDE1F\uD83D\uDE35\uD83D\uDC4E\uD83E\uDD32\uD83E\uDD20\uD83E\uDD27\uD83D\uDCCC\uD83D\uDD35\uD83D\uDC85\uD83E\uDDD0\uD83D\uDC3E\uD83C\uDF52\uD83D\uDE17\uD83E\uDD11\uD83C\uDF0A\uD83E\uDD2F\uD83D\uDC37☎\uD83D\uDCA7\uD83D\uDE2F\uD83D\uDC86\uD83D\uDC46\uD83C\uDFA4\uD83D\uDE47\uD83C\uDF51❄\uD83C\uDF34\uD83D\uDCA3\uD83D\uDC38\uD83D\uDC8C\uD83D\uDCCD\uD83E\uDD40\uD83E\uDD22\uD83D\uDC45\uD83D\uDCA1\uD83D\uDCA9\uD83D\uDC50\uD83D\uDCF8\uD83D\uDC7B\uD83E\uDD10\uD83E\uDD2E\uD83C\uDFBC\uD83E\uDD75\uD83D\uDEA9\uD83C\uDF4E\uD83C\uDF4A\uD83D\uDC7C\uD83D\uDC8D\uD83D\uDCE3\uD83E\uDD42"),eU=eM.reduce((r,i,c)=>(r[c]=i,r),[]),ez=eM.reduce((r,i,c)=>(r[i.codePointAt(0)]=c,r),[]);function base256emoji_encode(r){return r.reduce((r,i)=>r+=eU[i],"")}function base256emoji_decode(r){let i=[];for(let c of r){let r=ez[c.codePointAt(0)];if(void 0===r)throw Error(`Non-base256emoji character: ${c}`);i.push(r)}return new Uint8Array(i)}let eB=from({prefix:"\uD83D\uDE80",name:"base256emoji",encode:base256emoji_encode,decode:base256emoji_decode});function varint_encode(r,i,c){i=i||[];for(var l=c=c||0;r>=2147483648;)i[c++]=255&r|128,r/=128;for(;-128&r;)i[c++]=255&r|128,r>>>=7;return i[c]=0|r,varint_encode.bytes=c-l+1,i}function read(r,i){var c,l=0,i=i||0,p=0,D=i,S=r.length;do{if(D>=S)throw read.bytes=0,RangeError("Could not decode varint");c=r[D++],l+=p<28?(127&c)<=128);return read.bytes=D-i,l}var eH={encode:varint_encode,decode:read,encodingLength:function(r){return r<128?1:r<16384?2:r<2097152?3:r<268435456?4:r<34359738368?5:r<4398046511104?6:r<562949953421312?7:r<72057594037927940?8:r<0x7fffffffffffffff?9:10}};let src_varint_decode=(r,i=0)=>{let c=eH.decode(r,i);return[c,eH.decode.bytes]},encodeTo=(r,i,c=0)=>(eH.encode(r,i,c),i),encodingLength=r=>eH.encodingLength(r),create=(r,i)=>{let c=i.byteLength,l=encodingLength(r),p=l+encodingLength(c),D=new Uint8Array(p+c);return encodeTo(r,D,0),encodeTo(c,D,l),D.set(i,p),new Digest(r,c,i,D)},digest_decode=r=>{let i=coerce(r),[c,l]=src_varint_decode(i),[p,D]=src_varint_decode(i.subarray(l)),S=i.subarray(l+D);if(S.byteLength!==p)throw Error("Incorrect length");return new Digest(c,p,S,i)},digest_equals=(r,i)=>r===i||r.code===i.code&&r.size===i.size&&equals(r.bytes,i.bytes);let Digest=class Digest{constructor(r,i,c,l){this.code=r,this.size=i,this.digest=c,this.bytes=l}};let hasher_from=({name:r,code:i,encode:c})=>new Hasher(r,i,c);let Hasher=class Hasher{constructor(r,i,c){this.name=r,this.code=i,this.encode=c}digest(r){if(r instanceof Uint8Array){let i=this.encode(r);return i instanceof Uint8Array?create(this.code,i):i.then(r=>create(this.code,r))}throw Error("Unknown type, must be binary type")}};let sha=r=>async i=>new Uint8Array(await crypto.subtle.digest(r,i)),eF=hasher_from({name:"sha2-256",code:18,encode:sha("SHA-256")}),e$=hasher_from({name:"sha2-512",code:19,encode:sha("SHA-512")}),eK={code:0,name:"identity",encode:coerce,digest:r=>create(0,coerce(r))},eV="raw",eW=85,raw_encode=r=>coerce(r),raw_decode=r=>coerce(r),eG=new TextEncoder,eJ=new TextDecoder,eY="json",eQ=512,json_encode=r=>eG.encode(JSON.stringify(r)),json_decode=r=>JSON.parse(eJ.decode(r));let CID=class CID{constructor(r,i,c,l){this.code=i,this.version=r,this.multihash=c,this.bytes=l,this.byteOffset=l.byteOffset,this.byteLength=l.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:e5,byteLength:e5,code:e1,version:e1,multihash:e1,bytes:e1,_baseCache:e5,asCID:e5})}toV0(){if(0===this.version)return this;{let{code:r,multihash:i}=this;if(r!==eX)throw Error("Cannot convert a non dag-pb CID to CIDv0");if(i.code!==eZ)throw Error("Cannot convert non sha2-256 multihash CID to CIDv0");return CID.createV0(i)}}toV1(){switch(this.version){case 0:{let{code:r,digest:i}=this.multihash,c=create(r,i);return CID.createV1(this.code,c)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(r){return r&&this.code===r.code&&this.version===r.version&&digest_equals(this.multihash,r.multihash)}toString(r){let{bytes:i,version:c,_baseCache:l}=this;return 0===c?toStringV0(i,l,r||eR.encoder):toStringV1(i,l,r||eb.encoder)}toJSON(){return{code:this.code,version:this.version,hash:this.multihash.bytes}}get[Symbol.toStringTag](){return"CID"}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}static isCID(r){return deprecate(/^0\.0/,e3),!!(r&&(r[e0]||r.asCID===r))}get toBaseEncodedString(){throw Error("Deprecated, use .toString()")}get codec(){throw Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw Error('"multibaseName" property is deprecated')}get prefix(){throw Error('"prefix" property is deprecated')}static asCID(r){if(r instanceof CID)return r;if(null!=r&&r.asCID===r){let{version:i,code:c,multihash:l,bytes:p}=r;return new CID(i,c,l,p||encodeCID(i,c,l.bytes))}if(null==r||!0!==r[e0])return null;{let{version:i,multihash:c,code:l}=r,p=digest_decode(c);return CID.create(i,l,p)}}static create(r,i,c){if("number"!=typeof i)throw Error("String codecs are no longer supported");switch(r){case 0:if(i===eX)return new CID(r,i,c,c.bytes);throw Error(`Version 0 CID must use dag-pb (code: ${eX}) block encoding`);case 1:{let l=encodeCID(r,i,c.bytes);return new CID(r,i,c,l)}default:throw Error("Invalid version")}}static createV0(r){return CID.create(0,eX,r)}static createV1(r,i){return CID.create(1,r,i)}static decode(r){let[i,c]=CID.decodeFirst(r);if(c.length)throw Error("Incorrect length");return i}static decodeFirst(r){let i=CID.inspectBytes(r),c=i.size-i.multihashSize,l=coerce(r.subarray(c,c+i.multihashSize));if(l.byteLength!==i.multihashSize)throw Error("Incorrect length");let p=l.subarray(i.multihashSize-i.digestSize),D=new Digest(i.multihashCode,i.digestSize,p,l),S=0===i.version?CID.createV0(D):CID.createV1(i.codec,D);return[S,r.subarray(i.size)]}static inspectBytes(r){let i=0,next=()=>{let[c,l]=src_varint_decode(r.subarray(i));return i+=l,c},c=next(),l=eX;if(18===c?(c=0,i=0):1===c&&(l=next()),0!==c&&1!==c)throw RangeError(`Invalid CID version ${c}`);let p=i,D=next(),S=next(),C=i+S;return{version:c,codec:l,multihashCode:D,digestSize:S,multihashSize:C-p,size:C}}static parse(r,i){let[c,l]=parseCIDtoBytes(r,i),p=CID.decode(l);return p._baseCache.set(c,r),p}};let parseCIDtoBytes=(r,i)=>{switch(r[0]){case"Q":return[eR.prefix,(i||eR).decode(`${eR.prefix}${r}`)];case eR.prefix:return[eR.prefix,(i||eR).decode(r)];case eb.prefix:return[eb.prefix,(i||eb).decode(r)];default:if(null==i)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[r[0],i.decode(r)]}},toStringV0=(r,i,c)=>{let{prefix:l}=c;if(l!==eR.prefix)throw Error(`Cannot string encode V0 in ${c.name} encoding`);let p=i.get(l);if(null!=p)return p;{let p=c.encode(r).slice(1);return i.set(l,p),p}},toStringV1=(r,i,c)=>{let{prefix:l}=c,p=i.get(l);if(null!=p)return p;{let p=c.encode(r);return i.set(l,p),p}},eX=112,eZ=18,encodeCID=(r,i,c)=>{let l=encodingLength(r),p=l+encodingLength(i),D=new Uint8Array(p+c.byteLength);return encodeTo(r,D,0),encodeTo(i,D,l),D.set(c,p),D},e0=Symbol.for("@ipld/js-cid/CID"),e1={writable:!1,configurable:!1,enumerable:!0},e5={writable:!1,enumerable:!1,configurable:!1},deprecate=(r,i)=>{if(r.test("0.0.0-dev"))console.warn(i);else throw Error(i)},e3=`CID.isCID(v) is deprecated and will be removed in the next major release. +Following code pattern: + +if (CID.isCID(value)) { + doSomethingWithCID(value) +} + +Is replaced with: + +const cid = CID.asCID(value) +if (cid) { + // Make sure to use cid instead of value + doSomethingWithCID(cid) +} +`,e6={...l,...p,...D,...S,...C,...P,...M,...U,...q,...J};({...X,...ee})},14195:function(r,i,c){"use strict";function allocUnsafe(r=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?globalThis.Buffer.allocUnsafe(r):new Uint8Array(r)}function concat(r,i){i||(i=r.reduce((r,i)=>r+i.length,0));let c=allocUnsafe(i),l=0;for(let i of r)c.set(i,l),l+=i.length;return c}c.d(i,{zo:function(){return concat},mL:function(){return fromString},BB:function(){return to_string_toString}});var l=c(89624);function createCodec(r,i,c,l){return{name:r,prefix:i,encoder:{name:r,prefix:i,encode:c},decoder:{decode:l}}}let p=createCodec("utf8","u",r=>{let i=new TextDecoder("utf8");return"u"+i.decode(r)},r=>{let i=new TextEncoder;return i.encode(r.substring(1))}),D=createCodec("ascii","a",r=>{let i="a";for(let c=0;c{r=r.substring(1);let i=allocUnsafe(r.length);for(let c=0;ce&&(n.has(e)?n.get(e):o(e)===Object.prototype||o(e)===Array.prototype),y=e=>l(e)&&e[r]||null,h=(e,t=!0)=>{n.set(e,t)},isObject=e=>"object"==typeof e&&null!==e,i=new WeakMap,a=new WeakSet,buildProxyFunction=(e=Object.is,t=(e,t)=>new Proxy(e,t),s=e=>isObject(e)&&!a.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer),r=e=>{switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e}},o=new WeakMap,n=(e,t,s=r)=>{let c=o.get(e);if((null==c?void 0:c[0])===t)return c[1];let p=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e));return h(p,!0),o.set(e,[t,p]),Reflect.ownKeys(e).forEach(t=>{if(Object.getOwnPropertyDescriptor(p,t))return;let r=Reflect.get(e,t),o={value:r,enumerable:!0,configurable:!0};if(a.has(r))h(r,!1);else if(r instanceof Promise)delete o.value,o.get=()=>s(r);else if(i.has(r)){let[e,t]=i.get(r);o.value=n(e,t(),s)}Object.defineProperty(p,t,o)}),Object.preventExtensions(p)},c=new WeakMap,p=[1,1],u=r=>{if(!isObject(r))throw Error("object required");let o=c.get(r);if(o)return o;let f=p[0],b=new Set,notifyUpdate=(e,t=++p[0])=>{f!==t&&(f=t,b.forEach(s=>s(e,t)))},m=p[1],ensureVersion=(e=++p[1])=>(m===e||b.size||(m=e,g.forEach(([t])=>{let s=t[1](e);s>f&&(f=s)})),f),createPropListener=e=>(t,s)=>{let r=[...t];r[1]=[e,...r[1]],notifyUpdate(r,s)},g=new Map,addPropListener=(e,t)=>{if(g.has(e))throw Error("prop listener already exists");if(b.size){let s=t[3](createPropListener(e));g.set(e,[t,s])}else g.set(e,[t])},removePropListener=e=>{var t;let s=g.get(e);s&&(g.delete(e),null==(t=s[1])||t.call(s))},addListener=e=>{b.add(e),1===b.size&&g.forEach(([e,t],s)=>{if(t)throw Error("remove already exists");let r=e[3](createPropListener(s));g.set(s,[e,r])});let removeListener=()=>{b.delete(e),0===b.size&&g.forEach(([e,t],s)=>{t&&(t(),g.set(s,[e]))})};return removeListener},v=Array.isArray(r)?[]:Object.create(Object.getPrototypeOf(r)),w={deleteProperty(e,t){let s=Reflect.get(e,t);removePropListener(t);let r=Reflect.deleteProperty(e,t);return r&¬ifyUpdate(["delete",[t],s]),r},set(t,r,o,n){let p=Reflect.has(t,r),f=Reflect.get(t,r,n);if(p&&(e(f,o)||c.has(o)&&e(f,c.get(o))))return!0;removePropListener(r),isObject(o)&&(o=y(o)||o);let b=o;if(o instanceof Promise)o.then(e=>{o.status="fulfilled",o.value=e,notifyUpdate(["resolve",[r],e])}).catch(e=>{o.status="rejected",o.reason=e,notifyUpdate(["reject",[r],e])});else{!i.has(o)&&s(o)&&(b=u(o));let e=!a.has(b)&&i.get(b);e&&addPropListener(r,e)}return Reflect.set(t,r,b,n),notifyUpdate(["set",[r],o,f]),!0}},I=t(v,w);c.set(r,I);let C=[v,ensureVersion,n,addListener];return i.set(I,C),Reflect.ownKeys(r).forEach(e=>{let t=Object.getOwnPropertyDescriptor(r,e);"value"in t&&(I[e]=r[e],delete t.value,delete t.writable),Object.defineProperty(v,e,t)}),I})=>[u,i,a,e,t,s,r,o,n,c,p],[c]=buildProxyFunction();function proxy(e={}){return c(e)}function subscribe(e,t,s){let r;let o=i.get(e);o||console.warn("Please use proxy object");let n=[],a=o[3],c=!1,p=a(e=>{if(n.push(e),s){t(n.splice(0));return}r||(r=Promise.resolve().then(()=>{r=void 0,c&&t(n.splice(0))}))});return c=!0,()=>{c=!1,p()}}function snapshot(e,t){let s=i.get(e);s||console.warn("Please use proxy object");let[r,o,n]=s;return n(r,o(),t)}let p=proxy({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),u={state:p,subscribe:e=>subscribe(p,()=>e(p)),push(e,t){e!==p.view&&(p.view=e,t&&(p.data=t),p.history.push(e))},reset(e){p.view=e,p.history=[e]},replace(e){p.history.length>1&&(p.history[p.history.length-1]=e,p.view=e)},goBack(){if(p.history.length>1){p.history.pop();let[e]=p.history.slice(-1);p.view=e}},setData(e){p.data=e}},f={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile:()=>"u">typeof window&&!!(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)),isAndroid:()=>f.isMobile()&&navigator.userAgent.toLowerCase().includes("android"),isIos(){let e=navigator.userAgent.toLowerCase();return f.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isHttpUrl:e=>e.startsWith("http://")||e.startsWith("https://"),isArray:e=>Array.isArray(e)&&e.length>0,formatNativeUrl(e,t,s){if(f.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let r=e;r.includes("://")||(r=e.replaceAll("/","").replaceAll(":",""),r=`${r}://`),r.endsWith("/")||(r=`${r}/`),this.setWalletConnectDeepLink(r,s);let o=encodeURIComponent(t);return`${r}wc?uri=${o}`},formatUniversalUrl(e,t,s){if(!f.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let r=e;r.endsWith("/")||(r=`${r}/`),this.setWalletConnectDeepLink(r,s);let o=encodeURIComponent(t);return`${r}wc?uri=${o}`},wait:async e=>new Promise(t=>{setTimeout(t,e)}),openHref(e,t){window.open(e,t,"noreferrer noopener")},setWalletConnectDeepLink(e,t){try{localStorage.setItem(f.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}))}catch{console.info("Unable to set WalletConnect deep link")}},setWalletConnectAndroidDeepLink(e){try{let[t]=e.split("?");localStorage.setItem(f.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}))}catch{console.info("Unable to set WalletConnect android deep link")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(f.WALLETCONNECT_DEEPLINK_CHOICE)}catch{console.info("Unable to remove WalletConnect deep link")}},setModalVersionInStorage(){try{"u">typeof localStorage&&localStorage.setItem(f.WCM_VERSION,"2.6.2")}catch{console.info("Unable to set Web3Modal version in storage")}},getWalletRouterData(){var e;let t=null==(e=u.state.data)?void 0:e.Wallet;if(!t)throw Error('Missing "Wallet" view data');return t}},b="u">typeof location&&(location.hostname.includes("localhost")||location.protocol.includes("https")),m=proxy({enabled:b,userSessionId:"",events:[],connectedWalletId:void 0}),g={state:m,subscribe:e=>subscribe(m.events,()=>e(snapshot(m.events[m.events.length-1]))),initialize(){m.enabled&&"u">typeof(null==crypto?void 0:crypto.randomUUID)&&(m.userSessionId=crypto.randomUUID())},setConnectedWalletId(e){m.connectedWalletId=e},click(e){if(m.enabled){let t={type:"CLICK",name:e.name,userSessionId:m.userSessionId,timestamp:Date.now(),data:e};m.events.push(t)}},track(e){if(m.enabled){let t={type:"TRACK",name:e.name,userSessionId:m.userSessionId,timestamp:Date.now(),data:e};m.events.push(t)}},view(e){if(m.enabled){let t={type:"VIEW",name:e.name,userSessionId:m.userSessionId,timestamp:Date.now(),data:e};m.events.push(t)}}},v=proxy({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),w={state:v,subscribe:e=>subscribe(v,()=>e(v)),setChains(e){v.chains=e},setWalletConnectUri(e){v.walletConnectUri=e},setIsCustomDesktop(e){v.isCustomDesktop=e},setIsCustomMobile(e){v.isCustomMobile=e},setIsDataLoaded(e){v.isDataLoaded=e},setIsUiLoaded(e){v.isUiLoaded=e},setIsAuth(e){v.isAuth=e}},I=proxy({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),C={state:I,subscribe:e=>subscribe(I,()=>e(I)),setConfig(e){var t,s;g.initialize(),w.setChains(e.chains),w.setIsAuth(!!e.enableAuthMode),w.setIsCustomMobile(!!(null==(t=e.mobileWallets)?void 0:t.length)),w.setIsCustomDesktop(!!(null==(s=e.desktopWallets)?void 0:s.length)),f.setModalVersionInStorage(),Object.assign(I,e)}};var O=Object.defineProperty,L=Object.getOwnPropertySymbols,W=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,M=(e,t,s)=>t in e?O(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,K=(e,t)=>{for(var s in t||(t={}))W.call(t,s)&&M(e,s,t[s]);if(L)for(var s of L(t))E.call(t,s)&&M(e,s,t[s]);return e};let j="https://explorer-api.walletconnect.com",A="js-2.6.2";async function dist_w(e,t){let s=K({sdkType:"wcm",sdkVersion:A},t),r=new URL(e,j);return r.searchParams.append("projectId",C.state.projectId),Object.entries(s).forEach(([e,t])=>{t&&r.searchParams.append(e,String(t))}),(await fetch(r)).json()}let U={getDesktopListings:async e=>dist_w("/w3m/v1/getDesktopListings",e),getMobileListings:async e=>dist_w("/w3m/v1/getMobileListings",e),getInjectedListings:async e=>dist_w("/w3m/v1/getInjectedListings",e),getAllListings:async e=>dist_w("/w3m/v1/getAllListings",e),getWalletImageUrl:e=>`${j}/w3m/v1/getWalletImage/${e}?projectId=${C.state.projectId}&sdkType=wcm&sdkVersion=${A}`,getAssetImageUrl:e=>`${j}/w3m/v1/getAssetImage/${e}?projectId=${C.state.projectId}&sdkType=wcm&sdkVersion=${A}`};var P=Object.defineProperty,D=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable,k=(e,t,s)=>t in e?P(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,F=(e,t)=>{for(var s in t||(t={}))x.call(t,s)&&k(e,s,t[s]);if(D)for(var s of D(t))N.call(t,s)&&k(e,s,t[s]);return e};let T=f.isMobile(),_=proxy({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),R={state:_,async getRecomendedWallets(){let{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=C.state;if("NONE"===e||"ALL"===t&&!e)return _.recomendedWallets;if(f.isArray(e)){let t={recommendedIds:e.join(",")},{listings:s}=await U.getAllListings(t),r=Object.values(s);r.sort((t,s)=>{let r=e.indexOf(t.id),o=e.indexOf(s.id);return r-o}),_.recomendedWallets=r}else{let{chains:e,isAuth:s}=w.state,r=e?.join(","),o=f.isArray(t),n={page:1,sdks:s?"auth_v1":void 0,entries:f.RECOMMENDED_WALLET_AMOUNT,chains:r,version:2,excludedIds:o?t.join(","):void 0},{listings:i}=T?await U.getMobileListings(n):await U.getDesktopListings(n);_.recomendedWallets=Object.values(i)}return _.recomendedWallets},async getWallets(e){let t=F({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:r}=C.state,{recomendedWallets:o}=_;if("ALL"===r)return _.wallets;o.length?t.excludedIds=o.map(e=>e.id).join(","):f.isArray(s)&&(t.excludedIds=s.join(",")),f.isArray(r)&&(t.excludedIds=[t.excludedIds,r].filter(Boolean).join(",")),w.state.isAuth&&(t.sdks="auth_v1");let{page:n,search:i}=e,{listings:a,total:c}=T?await U.getMobileListings(t):await U.getDesktopListings(t),p=Object.values(a),u=i?"search":"wallets";return _[u]={listings:[..._[u].listings,...p],total:c,page:n??1},{listings:p,total:c}},getWalletImageUrl:e=>U.getWalletImageUrl(e),getAssetImageUrl:e=>U.getAssetImageUrl(e),resetSearch(){_.search={listings:[],total:0,page:1}}},$=proxy({open:!1}),V={state:$,subscribe:e=>subscribe($,()=>e($)),open:async e=>new Promise(t=>{let{isUiLoaded:s,isDataLoaded:r}=w.state;if(f.removeWalletConnectDeepLink(),w.setWalletConnectUri(e?.uri),w.setChains(e?.chains),u.reset("ConnectWallet"),s&&r)$.open=!0,t();else{let e=setInterval(()=>{let s=w.state;s.isUiLoaded&&s.isDataLoaded&&(clearInterval(e),$.open=!0,t())},200)}}),close(){$.open=!1}};var H=Object.defineProperty,z=Object.getOwnPropertySymbols,B=Object.prototype.hasOwnProperty,J=Object.prototype.propertyIsEnumerable,S=(e,t,s)=>t in e?H(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Y=(e,t)=>{for(var s in t||(t={}))B.call(t,s)&&S(e,s,t[s]);if(z)for(var s of z(t))J.call(t,s)&&S(e,s,t[s]);return e};function Z(){return"u">typeof matchMedia&&matchMedia("(prefers-color-scheme: dark)").matches}let q=proxy({themeMode:Z()?"dark":"light"}),G={state:q,subscribe:e=>subscribe(q,()=>e(q)),setThemeConfig(e){let{themeMode:t,themeVariables:s}=e;t&&(q.themeMode=t),s&&(q.themeVariables=Y({},s))}},Q=proxy({open:!1,message:"",variant:"success"}),X={state:Q,subscribe:e=>subscribe(Q,()=>e(Q)),openToast(e,t){Q.open=!0,Q.message=e,Q.variant=t},closeToast(){Q.open=!1}}},79254:function(e,t,s){s.d(t,{WalletConnectModal:function(){return d}});var r=s(30369);let d=class d{constructor(e){this.openModal=r.jb.open,this.closeModal=r.jb.close,this.subscribeModal=r.jb.subscribe,this.setTheme=r.ThemeCtrl.setThemeConfig,r.ThemeCtrl.setThemeConfig(e),r.ConfigCtrl.setConfig(e),this.initUi()}async initUi(){if("u">typeof window){await s.e(289).then(s.bind(s,15289));let e=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",e),r.OptionsCtrl.setIsUiLoaded(!0)}}}}}]); \ No newline at end of file diff --git a/_next/static/chunks/2803-bc4e4dbb3ad91ce2.js b/_next/static/chunks/2803-bc4e4dbb3ad91ce2.js new file mode 100644 index 0000000..0351144 --- /dev/null +++ b/_next/static/chunks/2803-bc4e4dbb3ad91ce2.js @@ -0,0 +1,5 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2803],{30329:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return addLocale}}),r(80084);let addLocale=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&o(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,o=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>o,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{o=!0,t.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(e)}})}function getDynamicProps(e){let[t,r]=i.version.split(".",2),n=parseInt(t,10),o=parseInt(r,10);return n>18||18===n&&o>=3?{fetchPriority:e}:{fetchpriority:e}}let g=(0,i.forwardRef)((e,t)=>{let{src:r,srcSet:n,sizes:o,height:a,width:l,decoding:u,className:s,style:c,fetchPriority:f,placeholder:d,loading:p,unoptimized:g,fill:m,onLoadRef:h,onLoadingCompleteRef:y,setBlurComplete:b,setShowAltText:v,onLoad:_,onError:P,...S}=e;return i.default.createElement("img",{...S,...getDynamicProps(f),loading:p,width:l,height:a,decoding:u,"data-nimg":m?"fill":"1",className:s,style:c,sizes:o,srcSet:n,src:r,ref:(0,i.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(P&&(e.src=e.src),e.complete&&handleLoading(e,d,h,y,b,g))},[r,d,h,y,b,P,g,t]),onLoad:e=>{let t=e.currentTarget;handleLoading(t,d,h,y,b,g)},onError:e=>{v(!0),"empty"!==d&&b(!0),P&&P(e)}})});function ImagePreload(e){let{isAppRouter:t,imgAttributes:r}=e,n={as:"image",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,...getDynamicProps(r.fetchPriority)};return t&&a.default.preload?(a.default.preload(r.src,n),null):i.default.createElement(l.default,null,i.default.createElement("link",{key:"__nimg-"+r.src+r.srcSet+r.sizes,rel:"preload",href:r.srcSet?void 0:r.src,...n}))}let m=(0,i.forwardRef)((e,t)=>{let r=(0,i.useContext)(f.RouterContext),n=(0,i.useContext)(c.ImageConfigContext),o=(0,i.useMemo)(()=>{let e=p||n||s.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),r=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:r}},[n]),{onLoad:a,onLoadingComplete:l}=e,m=(0,i.useRef)(a);(0,i.useEffect)(()=>{m.current=a},[a]);let h=(0,i.useRef)(l);(0,i.useEffect)(()=>{h.current=l},[l]);let[y,b]=(0,i.useState)(!1),[v,_]=(0,i.useState)(!1),{props:P,meta:S}=(0,u.getImgProps)(e,{defaultLoader:d.default,imgConf:o,blurComplete:y,showAltText:v});return i.default.createElement(i.default.Fragment,null,i.default.createElement(g,{...P,unoptimized:S.unoptimized,placeholder:S.placeholder,fill:S.fill,onLoadRef:m,onLoadingCompleteRef:h,setBlurComplete:b,setShowAltText:_,ref:t}),S.priority?i.default.createElement(ImagePreload,{isAppRouter:!r,imgAttributes:P}):null)});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},50296:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return b}});let n=r(97295),o=n._(r(94488)),i=r(68401),a=r(81244),l=r(40284),u=r(7764),s=r(30329),c=r(50273),f=r(30786),d=r(46625),p=r(24393),g=r(44164),m=r(76161),h=new Set;function prefetch(e,t,r,n,o,i){if(!i&&!(0,a.isLocalURL)(t))return;if(!n.bypassPrefetchedCheck){let o=void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0,i=t+"%"+r+"%"+o;if(h.has(i))return;h.add(i)}let l=i?e.prefetch(t,o):e.prefetch(t,r,n);Promise.resolve(l).catch(e=>{})}function isModifiedEvent(e){let t=e.currentTarget,r=t.getAttribute("target");return r&&"_self"!==r||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}function linkClicked(e,t,r,n,i,l,u,s,c,f){let{nodeName:d}=e.currentTarget,p="A"===d.toUpperCase();if(p&&(isModifiedEvent(e)||!c&&!(0,a.isLocalURL)(r)))return;e.preventDefault();let navigate=()=>{let e=null==u||u;"beforePopState"in t?t[i?"replace":"push"](r,n,{shallow:l,locale:s,scroll:e}):t[i?"replace":"push"](n||r,{forceOptimisticNavigation:!f,scroll:e})};c?o.default.startTransition(navigate):navigate()}function formatStringOrUrl(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let y=o.default.forwardRef(function(e,t){let r,n;let{href:a,as:l,children:h,prefetch:y=null,passHref:b,replace:v,shallow:_,scroll:P,locale:S,onClick:O,onMouseEnter:R,onTouchStart:w,legacyBehavior:E=!1,...j}=e;r=h,E&&("string"==typeof r||"number"==typeof r)&&(r=o.default.createElement("a",null,r));let x=o.default.useContext(c.RouterContext),C=o.default.useContext(f.AppRouterContext),M=null!=x?x:C,I=!x,N=!1!==y,k=null===y?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,{href:U,as:L}=o.default.useMemo(()=>{if(!x){let e=formatStringOrUrl(a);return{href:e,as:l?formatStringOrUrl(l):e}}let[e,t]=(0,i.resolveHref)(x,a,!0);return{href:e,as:l?(0,i.resolveHref)(x,l):t||e}},[x,a,l]),z=o.default.useRef(U),A=o.default.useRef(L);E&&(n=o.default.Children.only(r));let T=E?n&&"object"==typeof n&&n.ref:t,[D,W,F]=(0,d.useIntersection)({rootMargin:"200px"}),B=o.default.useCallback(e=>{(A.current!==L||z.current!==U)&&(F(),A.current=L,z.current=U),D(e),T&&("function"==typeof T?T(e):"object"==typeof T&&(T.current=e))},[L,T,U,F,D]);o.default.useEffect(()=>{M&&W&&N&&prefetch(M,U,L,{locale:S},{kind:k},I)},[L,U,W,S,N,null==x?void 0:x.locale,M,I,k]);let q={ref:B,onClick(e){E||"function"!=typeof O||O(e),E&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),M&&!e.defaultPrevented&&linkClicked(e,M,U,L,v,_,P,S,I,N)},onMouseEnter(e){E||"function"!=typeof R||R(e),E&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),M&&(N||!I)&&prefetch(M,U,L,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:k},I)},onTouchStart(e){E||"function"!=typeof w||w(e),E&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),M&&(N||!I)&&prefetch(M,U,L,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:k},I)}};if((0,u.isAbsoluteUrl)(L))q.href=L;else if(!E||b||"a"===n.type&&!("href"in n.props)){let e=void 0!==S?S:null==x?void 0:x.locale,t=(null==x?void 0:x.isLocaleDomain)&&(0,p.getDomainLocale)(L,e,null==x?void 0:x.locales,null==x?void 0:x.domainLocales);q.href=t||(0,g.addBasePath)((0,s.addLocale)(L,e,null==x?void 0:x.defaultLocale))}return E?o.default.cloneElement(n,q):o.default.createElement("a",{...j,...q},r)}),b=y;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},70116:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{requestIdleCallback:function(){return r},cancelIdleCallback:function(){return n}});let r="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},n="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},68401:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return resolveHref}});let n=r(12671),o=r(40284),i=r(84443),a=r(7764),l=r(80084),u=r(81244),s=r(85908),c=r(6075);function resolveHref(e,t,r){let f;let d="string"==typeof t?t:(0,o.formatWithValidation)(t),p=d.match(/^[a-zA-Z]{1,}:\/\//),g=p?d.slice(p[0].length):d,m=g.split("?",1);if((m[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+d+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,a.normalizeRepeatedSlashes)(g);d=(p?p[0]:"")+t}if(!(0,u.isLocalURL)(d))return r?[d]:d;try{f=new URL(d.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){f=new URL("/","http://n")}try{let e=new URL(d,f);e.pathname=(0,l.normalizePathTrailingSlash)(e.pathname);let t="";if((0,s.isDynamicRoute)(e.pathname)&&e.searchParams&&r){let r=(0,n.searchParamsToUrlQuery)(e.searchParams),{result:a,params:l}=(0,c.interpolateAs)(e.pathname,e.pathname,r);a&&(t=(0,o.formatWithValidation)({pathname:a,hash:e.hash,query:(0,i.omit)(r,l)}))}let a=e.origin===f.origin?e.href.slice(e.origin.length):e.href;return r?[a,t||a]:a}catch(e){return r?[d]:d}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},46625:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return useIntersection}});let n=r(94488),o=r(70116),i="function"==typeof IntersectionObserver,a=new Map,l=[];function createObserver(e){let t;let r={root:e.root||null,margin:e.rootMargin||""},n=l.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=a.get(n)))return t;let o=new Map,i=new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e);return t={id:r,observer:i,elements:o},l.push(r),a.set(r,t),t}function observe(e,t,r){let{id:n,observer:o,elements:i}=createObserver(r);return i.set(e,t),o.observe(e),function(){if(i.delete(e),o.unobserve(e),0===i.size){o.disconnect(),a.delete(n);let e=l.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&l.splice(e,1)}}}function useIntersection(e){let{rootRef:t,rootMargin:r,disabled:a}=e,l=a||!i,[u,s]=(0,n.useState)(!1),c=(0,n.useRef)(null),f=(0,n.useCallback)(e=>{c.current=e},[]);(0,n.useEffect)(()=>{if(i){if(l||u)return;let e=c.current;if(e&&e.tagName){let n=observe(e,e=>e&&s(e),{root:null==t?void 0:t.current,rootMargin:r});return n}}else if(!u){let e=(0,o.requestIdleCallback)(()=>s(!0));return()=>(0,o.cancelIdleCallback)(e)}},[l,r,t,u,c.current]);let d=(0,n.useCallback)(()=>{s(!1)},[]);return[f,u,d]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},44733:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return i}});let n=r(97295),o=n._(r(94488)),i=o.default.createContext({})},60390:function(e,t){"use strict";function isInAmpMode(e){let{ampFirst:t=!1,hybrid:r=!1,hasQuery:n=!1}=void 0===e?{}:e;return t||r&&n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return isInAmpMode}})},65241:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return escapeStringRegexp}});let r=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function escapeStringRegexp(e){return r.test(e)?e.replace(n,"\\$&"):e}},82348:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return getImgProps}}),r(54051);let n=r(782),o=r(79615);function isStaticRequire(e){return void 0!==e.default}function isStaticImageData(e){return void 0!==e.src}function isStaticImport(e){return"object"==typeof e&&(isStaticRequire(e)||isStaticImageData(e))}function getInt(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function getWidths(e,t,r){let{deviceSizes:n,allSizes:o}=e;if(r){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(r);n)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:o.filter(t=>t>=n[0]*e),kind:"w"}}return{widths:o,kind:"w"}}if("number"!=typeof t)return{widths:n,kind:"w"};let i=[...new Set([t,2*t].map(e=>o.find(t=>t>=e)||o[o.length-1]))];return{widths:i,kind:"x"}}function generateImgAttrs(e){let{config:t,src:r,unoptimized:n,width:o,quality:i,sizes:a,loader:l}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:u,kind:s}=getWidths(t,o,a),c=u.length-1;return{sizes:a||"w"!==s?a:"100vw",srcSet:u.map((e,n)=>l({config:t,src:r,quality:i,width:e})+" "+("w"===s?e:n+1)+s).join(", "),src:l({config:t,src:r,quality:i,width:u[c]})}}function getImgProps(e,t){let r,i,a,{src:l,sizes:u,unoptimized:s=!1,priority:c=!1,loading:f,className:d,quality:p,width:g,height:m,fill:h=!1,style:y,onLoad:b,onLoadingComplete:v,placeholder:_="empty",blurDataURL:P,fetchPriority:S,layout:O,objectFit:R,objectPosition:w,lazyBoundary:E,lazyRoot:j,...x}=e,{imgConf:C,showAltText:M,blurComplete:I,defaultLoader:N}=t,k=C||o.imageConfigDefault;if("allSizes"in k)r=k;else{let e=[...k.deviceSizes,...k.imageSizes].sort((e,t)=>e-t),t=k.deviceSizes.sort((e,t)=>e-t);r={...k,allSizes:e,deviceSizes:t}}let U=x.loader||N;delete x.loader,delete x.srcSet;let L="__next_img_default"in U;if(L){if("custom"===r.loader)throw Error('Image with src "'+l+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=U;U=t=>{let{config:r,...n}=t;return e(n)}}if(O){"fill"===O&&(h=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[O];e&&(y={...y,...e});let t={responsive:"100vw",fill:"100vw"}[O];t&&!u&&(u=t)}let z="",A=getInt(g),T=getInt(m);if(isStaticImport(l)){let e=isStaticRequire(l)?l.default:l;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(i=e.blurWidth,a=e.blurHeight,P=P||e.blurDataURL,z=e.src,!h){if(A||T){if(A&&!T){let t=A/e.width;T=Math.round(e.height*t)}else if(!A&&T){let t=T/e.height;A=Math.round(e.width*t)}}else A=e.width,T=e.height}}let D=!c&&("lazy"===f||void 0===f);(!(l="string"==typeof l?l:z)||l.startsWith("data:")||l.startsWith("blob:"))&&(s=!0,D=!1),r.unoptimized&&(s=!0),L&&l.endsWith(".svg")&&!r.dangerouslyAllowSVG&&(s=!0),c&&(S="high");let W=getInt(p),F=Object.assign(h?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:R,objectPosition:w}:{},M?{}:{color:"transparent"},y),B=I||"empty"===_?null:"blur"===_?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:A,heightInt:T,blurWidth:i,blurHeight:a,blurDataURL:P||"",objectFit:F.objectFit})+'")':'url("'+_+'")',q=B?{backgroundSize:F.objectFit||"cover",backgroundPosition:F.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:B}:{},G=generateImgAttrs({config:r,src:l,unoptimized:s,width:A,quality:W,sizes:u,loader:U}),K={...x,loading:D?"lazy":f,fetchPriority:S,width:A,height:T,decoding:"async",className:d,style:{...F,...q},sizes:G.sizes,srcSet:G.srcSet,src:G.src},H={unoptimized:s,priority:c,placeholder:_,fill:h};return{props:K,meta:H}}},58608:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{defaultHead:function(){return defaultHead},default:function(){return f}});let n=r(97295),o=r(3589),i=o._(r(94488)),a=n._(r(20412)),l=r(44733),u=r(13221),s=r(60390);function defaultHead(e){void 0===e&&(e=!1);let t=[i.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(i.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function onlyReactElement(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===i.default.Fragment?e.concat(i.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}r(54051);let c=["name","httpEquiv","charSet","itemProp"];function unique(){let e=new Set,t=new Set,r=new Set,n={};return o=>{let i=!0,a=!1;if(o.key&&"number"!=typeof o.key&&o.key.indexOf("$")>0){a=!0;let t=o.key.slice(o.key.indexOf("$")+1);e.has(t)?i=!1:e.add(t)}switch(o.type){case"title":case"base":t.has(o.type)?i=!1:t.add(o.type);break;case"meta":for(let e=0,t=c.length;e{let n=e.key||t;if(!r&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,i.default.cloneElement(e,t)}return i.default.cloneElement(e,{key:n})})}function Head(e){let{children:t}=e,r=(0,i.useContext)(l.AmpStateContext),n=(0,i.useContext)(u.HeadManagerContext);return i.default.createElement(a.default,{reduceComponentsToState:reduceComponents,headManager:n,inAmpMode:(0,s.isInAmpMode)(r)},t)}let f=Head;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},782:function(e,t){"use strict";function getImageBlurSvg(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:o,blurDataURL:i,objectFit:a}=e,l=n?40*n:t,u=o?40*o:r,s=l&&u?"viewBox='0 0 "+l+" "+u+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+s+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(s?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+i+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return getImageBlurSvg}})},54069:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return a}});let n=r(97295),o=n._(r(94488)),i=r(79615),a=o.default.createContext(i.imageConfigDefault)},79615:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});let r=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",remotePatterns:[],unoptimized:!1}},47737:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{unstable_getImgProps:function(){return unstable_getImgProps},default:function(){return u}});let n=r(97295),o=r(82348),i=r(54051),a=r(4006),l=n._(r(9812)),unstable_getImgProps=e=>{(0,i.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");let{props:t}=(0,o.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}},u=a.Image},9812:function(e,t){"use strict";function defaultLoader(e){let{config:t,src:r,width:n,quality:o}=e;return t.path+"?url="+encodeURIComponent(r)+"&w="+n+"&q="+(o||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),defaultLoader.__next_img_default=!0;let r=defaultLoader},50273:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return i}});let n=r(97295),o=n._(r(94488)),i=o.default.createContext(null)},40284:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{formatUrl:function(){return formatUrl},urlObjectKeys:function(){return a},formatWithValidation:function(){return formatWithValidation}});let n=r(3589),o=n._(r(12671)),i=/https?|ftp|gopher|file/;function formatUrl(e){let{auth:t,hostname:r}=e,n=e.protocol||"",a=e.pathname||"",l=e.hash||"",u=e.query||"",s=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?s=t+e.host:r&&(s=t+(~r.indexOf(":")?"["+r+"]":r),e.port&&(s+=":"+e.port)),u&&"object"==typeof u&&(u=String(o.urlQueryToSearchParams(u)));let c=e.search||u&&"?"+u||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||i.test(n))&&!1!==s?(s="//"+(s||""),a&&"/"!==a[0]&&(a="/"+a)):s||(s=""),l&&"#"!==l[0]&&(l="#"+l),c&&"?"!==c[0]&&(c="?"+c),""+n+s+(a=a.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+l}let a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function formatWithValidation(e){return formatUrl(e)}},85908:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});let n=r(63335),o=r(36803)},6075:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return interpolateAs}});let n=r(71063),o=r(44052);function interpolateAs(e,t,r){let i="",a=(0,o.getRouteRegex)(e),l=a.groups,u=(t!==e?(0,n.getRouteMatcher)(a)(t):"")||r;i=e;let s=Object.keys(l);return s.every(e=>{let t=u[e]||"",{repeat:r,optional:n}=l[e],o="["+(r?"...":"")+e+"]";return n&&(o=(t?"":"/")+"["+o+"]"),r&&!Array.isArray(t)&&(t=[t]),(n||e in u)&&(i=i.replace(o,r?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(i=""),{params:s,result:i}}},36803:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return isDynamicRoute}});let r=/\/\[[^/]+?\](?=\/|$)/;function isDynamicRoute(e){return r.test(e)}},81244:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return isLocalURL}});let n=r(7764),o=r(50525);function isLocalURL(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},84443:function(e,t){"use strict";function omit(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return omit}})},12671:function(e,t){"use strict";function searchParamsToUrlQuery(e){let t={};return e.forEach((e,r)=>{void 0===t[r]?t[r]=e:Array.isArray(t[r])?t[r].push(e):t[r]=[t[r],e]}),t}function stringifyUrlQueryParam(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function urlQueryToSearchParams(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[r,n]=e;Array.isArray(n)?n.forEach(e=>t.append(r,stringifyUrlQueryParam(e))):t.set(r,stringifyUrlQueryParam(n))}),t}function assign(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,r)=>e.append(r,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{searchParamsToUrlQuery:function(){return searchParamsToUrlQuery},urlQueryToSearchParams:function(){return urlQueryToSearchParams},assign:function(){return assign}})},71063:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return getRouteMatcher}});let n=r(7764);function getRouteMatcher(e){let{re:t,groups:r}=e;return e=>{let o=t.exec(e);if(!o)return!1;let decode=e=>{try{return decodeURIComponent(e)}catch(e){throw new n.DecodeError("failed to decode param")}},i={};return Object.keys(r).forEach(e=>{let t=r[e],n=o[t.pos];void 0!==n&&(i[e]=~n.indexOf("/")?n.split("/").map(e=>decode(e)):t.repeat?[decode(n)]:decode(n))}),i}}},44052:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getRouteRegex:function(){return getRouteRegex},getNamedRouteRegex:function(){return getNamedRouteRegex},getNamedMiddlewareRegex:function(){return getNamedMiddlewareRegex}});let n=r(24488),o=r(65241),i=r(41052);function parseParameter(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let r=e.startsWith("...");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}function getParametrizedRoute(e){let t=(0,i.removeTrailingSlash)(e).slice(1).split("/"),r={},a=1;return{parameterizedRoute:t.map(e=>{let t=n.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),i=e.match(/\[((?:\[.*\])|.+)\]/);if(t&&i){let{key:e,optional:n,repeat:l}=parseParameter(i[1]);return r[e]={pos:a++,repeat:l,optional:n},"/"+(0,o.escapeStringRegexp)(t)+"([^/]+?)"}if(!i)return"/"+(0,o.escapeStringRegexp)(e);{let{key:e,repeat:t,optional:n}=parseParameter(i[1]);return r[e]={pos:a++,repeat:t,optional:n},t?n?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:r}}function getRouteRegex(e){let{parameterizedRoute:t,groups:r}=getParametrizedRoute(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:r}}function buildGetSafeRouteKey(){let e=0;return()=>{let t="",r=++e;for(;r>0;)t+=String.fromCharCode(97+(r-1)%26),r=Math.floor((r-1)/26);return t}}function getSafeKeyFromSegment(e){let{getSafeRouteKey:t,segment:r,routeKeys:n,keyPrefix:o}=e,{key:i,optional:a,repeat:l}=parseParameter(r),u=i.replace(/\W/g,"");o&&(u=""+o+u);let s=!1;return(0===u.length||u.length>30)&&(s=!0),isNaN(parseInt(u.slice(0,1)))||(s=!0),s&&(u=t()),o?n[u]=""+o+i:n[u]=""+i,l?a?"(?:/(?<"+u+">.+?))?":"/(?<"+u+">.+?)":"/(?<"+u+">[^/]+?)"}function getNamedParametrizedRoute(e,t){let r=(0,i.removeTrailingSlash)(e).slice(1).split("/"),a=buildGetSafeRouteKey(),l={};return{namedParameterizedRoute:r.map(e=>{let r=n.INTERCEPTION_ROUTE_MARKERS.some(t=>e.startsWith(t)),i=e.match(/\[((?:\[.*\])|.+)\]/);return r&&i?getSafeKeyFromSegment({getSafeRouteKey:a,segment:i[1],routeKeys:l,keyPrefix:t?"nxtI":void 0}):i?getSafeKeyFromSegment({getSafeRouteKey:a,segment:i[1],routeKeys:l,keyPrefix:t?"nxtP":void 0}):"/"+(0,o.escapeStringRegexp)(e)}).join(""),routeKeys:l}}function getNamedRouteRegex(e,t){let r=getNamedParametrizedRoute(e,t);return{...getRouteRegex(e),namedRegex:"^"+r.namedParameterizedRoute+"(?:/)?$",routeKeys:r.routeKeys}}function getNamedMiddlewareRegex(e,t){let{parameterizedRoute:r}=getParametrizedRoute(e),{catchAll:n=!0}=t;if("/"===r)return{namedRegex:"^/"+(n?".*":"")+"$"};let{namedParameterizedRoute:o}=getNamedParametrizedRoute(e,!1);return{namedRegex:"^"+o+(n?"(?:(/.*)?)":"")+"$"}}},63335:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return getSortedRoutes}});let UrlNode=class UrlNode{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let r=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&r.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');r.unshift(t)}return null!==this.restSlugName&&r.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&r.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),r}_insert(e,t,r){if(0===e.length){this.placeholder=!1;return}if(r)throw Error("Catch-all must be the last part of the URL.");let n=e[0];if(n.startsWith("[")&&n.endsWith("]")){let o=n.slice(1,-1),i=!1;if(o.startsWith("[")&&o.endsWith("]")&&(o=o.slice(1,-1),i=!0),o.startsWith("...")&&(o=o.substring(3),r=!0),o.startsWith("[")||o.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+o+"').");if(o.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+o+"').");function handleSlug(e,r){if(null!==e&&e!==r)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+r+"').");t.forEach(e=>{if(e===r)throw Error('You cannot have the same slug name "'+r+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===n.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+r+'" differ only by non-word symbols within a single dynamic path')}),t.push(r)}if(r){if(i){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');handleSlug(this.optionalRestSlugName,o),this.optionalRestSlugName=o,n="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');handleSlug(this.restSlugName,o),this.restSlugName=o,n="[...]"}}else{if(i)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');handleSlug(this.slugName,o),this.slugName=o,n="[]"}}this.children.has(n)||this.children.set(n,new UrlNode),this.children.get(n)._insert(e.slice(1),t,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}};function getSortedRoutes(e){let t=new UrlNode;return e.forEach(e=>t.insert(e)),t.smoosh()}},20412:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return SideEffect}});let n=r(94488),o=n.useLayoutEffect,i=n.useEffect;function SideEffect(e){let{headManager:t,reduceComponentsToState:r}=e;function emitChange(){if(t&&t.mountedInstances){let o=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(o,e))}}return o(()=>{var r;return null==t||null==(r=t.mountedInstances)||r.add(e.children),()=>{var r;null==t||null==(r=t.mountedInstances)||r.delete(e.children)}}),o(()=>(t&&(t._pendingUpdate=emitChange),()=>{t&&(t._pendingUpdate=emitChange)})),i(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},7764:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{WEB_VITALS:function(){return r},execOnce:function(){return execOnce},isAbsoluteUrl:function(){return isAbsoluteUrl},getLocationOrigin:function(){return getLocationOrigin},getURL:function(){return getURL},getDisplayName:function(){return getDisplayName},isResSent:function(){return isResSent},normalizeRepeatedSlashes:function(){return normalizeRepeatedSlashes},loadGetInitialProps:function(){return loadGetInitialProps},SP:function(){return o},ST:function(){return i},DecodeError:function(){return DecodeError},NormalizeError:function(){return NormalizeError},PageNotFoundError:function(){return PageNotFoundError},MissingStaticPage:function(){return MissingStaticPage},MiddlewareNotFoundError:function(){return MiddlewareNotFoundError},stringifyError:function(){return stringifyError}});let r=["CLS","FCP","FID","INP","LCP","TTFB"];function execOnce(e){let t,r=!1;return function(){for(var n=arguments.length,o=Array(n),i=0;in.test(e);function getLocationOrigin(){let{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function getURL(){let{href:e}=window.location,t=getLocationOrigin();return e.substring(t.length)}function getDisplayName(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function isResSent(e){return e.finished||e.headersSent}function normalizeRepeatedSlashes(e){let t=e.split("?"),r=t[0];return r.replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function loadGetInitialProps(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await loadGetInitialProps(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&isResSent(r))return n;if(!n){let t='"'+getDisplayName(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.';throw Error(t)}return n}let o="undefined"!=typeof performance,i=o&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);let DecodeError=class DecodeError extends Error{};let NormalizeError=class NormalizeError extends Error{};let PageNotFoundError=class PageNotFoundError extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}};let MissingStaticPage=class MissingStaticPage extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}};let MiddlewareNotFoundError=class MiddlewareNotFoundError extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}};function stringifyError(e){return JSON.stringify({message:e.message,stack:e.stack})}},54051:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return warnOnce}});let warnOnce=e=>{}},87254:function(e,t,r){e.exports=r(47737)},44475:function(e,t,r){e.exports=r(50296)},31151:function(e,t,r){e.exports=r(21149)},46908:function(e,t,r){"use strict";r.d(t,{w_:function(){return GenIcon}});var n=r(94488),o={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},i=n.createContext&&n.createContext(o),__assign=function(){return(__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function Tree2Element(e){return e&&e.map(function(e,t){return n.createElement(e.tag,__assign({key:t},e.attr),Tree2Element(e.child))})}function GenIcon(e){return function(t){return n.createElement(IconBase,__assign({attr:__assign({},e.attr)},t),Tree2Element(e.child))}}function IconBase(e){var elem=function(t){var r,o=e.attr,i=e.size,a=e.title,l=__rest(e,["attr","size","title"]),u=i||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),n.createElement("svg",__assign({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,o,l,{className:r,style:__assign(__assign({color:e.color||t.color},t.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),a&&n.createElement("title",null,a),e.children)};return void 0!==i?n.createElement(i.Consumer,null,function(e){return elem(e)}):elem(o)}},43359:function(e,t){var r;/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/!function(){"use strict";var n={}.hasOwnProperty;function classNames(){for(var e="",t=0;t=e||this.events.listenerCount("open")>=e)&&this.events.setMaxListeners(e+1),new Promise((e,t)=>{this.events.once("register_error",e=>{this.resetMaxListeners(),t(e)}),this.events.once("open",()=>{if(this.resetMaxListeners(),void 0===this.isAvailable)return t(Error("HTTP connection is missing or invalid"));e()})})}this.url=e,this.registering=!0;try{if(!this.disableProviderPing){let t=(0,i.u)({id:1,jsonrpc:"2.0",method:"test",params:[]});await s()(e,Object.assign(Object.assign({},c),{body:t}))}this.onOpen()}catch(t){let e=this.parseError(t);throw this.events.emit("register_error",e),this.onClose(),e}}onOpen(){this.isAvailable=!0,this.registering=!1,this.events.emit("open")}onClose(){this.isAvailable=!1,this.registering=!1,this.events.emit("close")}onPayload(e){if(void 0===e.data)return;let t="string"==typeof e.data?(0,i.D)(e.data):e.data;this.events.emit("payload",t)}onError(e,t){let r=this.parseError(t),n=r.message||r.toString(),o=(0,a.formatJsonRpcError)(e,n);this.events.emit("payload",o)}parseError(e,t=this.url){return(0,a.parseConnectionError)(e,t,"HTTP")}resetMaxListeners(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}};var u=HttpConnection},87878:function(e,t,r){"use strict";r.d(t,{r:function(){return JsonRpcProvider}});var n=r(68495),o=r(78102);let JsonRpcProvider=class JsonRpcProvider extends o.IJsonRpcProvider{constructor(e){super(e),this.events=new n.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(e),this.connection.connected&&this.registerEventListeners()}async connect(e=this.connection){await this.open(e)}async disconnect(){await this.close()}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async request(e,t){return this.requestStrict((0,o.formatJsonRpcRequest)(e.method,e.params||[],e.id||(0,o.getBigIntRpcId)().toString()),t)}async requestStrict(e,t){return new Promise(async(r,n)=>{if(!this.connection.connected)try{await this.open()}catch(e){n(e)}this.events.on(`${e.id}`,e=>{(0,o.isJsonRpcError)(e)?n(e.error):r(e.result)});try{await this.connection.send(e,t)}catch(e){n(e)}})}setConnection(e=this.connection){return e}onPayload(e){this.events.emit("payload",e),(0,o.isJsonRpcResponse)(e)?this.events.emit(`${e.id}`,e):this.events.emit("message",{type:e.method,data:e.params})}onClose(e){e&&3e3===e.code&&this.events.emit("error",Error(`WebSocket connection closed abnormally with code: ${e.code} ${e.reason?`(${e.reason})`:""}`)),this.events.emit("disconnect")}async open(e=this.connection){this.connection===e&&this.connection.connected||(this.connection.connected&&this.close(),"string"==typeof e&&(await this.connection.open(e),e=this.connection),this.connection=this.setConnection(e),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",e=>this.onPayload(e)),this.connection.on("close",e=>this.onClose(e)),this.connection.on("error",e=>this.events.emit("error",e)),this.connection.on("register_error",e=>this.onClose()),this.hasRegisteredEventListeners=!0)}}},88688:function(e,t,r){"use strict";r.d(t,{XR:function(){return IJsonRpcConnection},x0:function(){return IJsonRpcProvider}});let IEvents=class IEvents{};let IJsonRpcConnection=class IJsonRpcConnection extends IEvents{constructor(e){super()}};let IBaseJsonRpcProvider=class IBaseJsonRpcProvider extends IEvents{constructor(){super()}};let IJsonRpcProvider=class IJsonRpcProvider extends IBaseJsonRpcProvider{constructor(e){super()}}},45196:function(e,t,r){"use strict";r.d(t,{CA:function(){return o},JV:function(){return a},O4:function(){return n},dQ:function(){return s},xK:function(){return i}});let n="INTERNAL_ERROR",o="SERVER_ERROR",s=[-32700,-32600,-32601,-32602,-32603],i={PARSE_ERROR:{code:-32700,message:"Parse error"},INVALID_REQUEST:{code:-32600,message:"Invalid Request"},METHOD_NOT_FOUND:{code:-32601,message:"Method not found"},INVALID_PARAMS:{code:-32602,message:"Invalid params"},[n]:{code:-32603,message:"Internal error"},[o]:{code:-32e3,message:"Server error"}},a=o},18485:function(e,t,r){"use strict";var n=r(30837);r.o(n,"IJsonRpcProvider")&&r.d(t,{IJsonRpcProvider:function(){return n.IJsonRpcProvider}}),r.o(n,"formatJsonRpcError")&&r.d(t,{formatJsonRpcError:function(){return n.formatJsonRpcError}}),r.o(n,"formatJsonRpcRequest")&&r.d(t,{formatJsonRpcRequest:function(){return n.formatJsonRpcRequest}}),r.o(n,"formatJsonRpcResult")&&r.d(t,{formatJsonRpcResult:function(){return n.formatJsonRpcResult}}),r.o(n,"getBigIntRpcId")&&r.d(t,{getBigIntRpcId:function(){return n.getBigIntRpcId}}),r.o(n,"isHttpUrl")&&r.d(t,{isHttpUrl:function(){return n.isHttpUrl}}),r.o(n,"isJsonRpcError")&&r.d(t,{isJsonRpcError:function(){return n.isJsonRpcError}}),r.o(n,"isJsonRpcRequest")&&r.d(t,{isJsonRpcRequest:function(){return n.isJsonRpcRequest}}),r.o(n,"isJsonRpcResponse")&&r.d(t,{isJsonRpcResponse:function(){return n.isJsonRpcResponse}}),r.o(n,"isJsonRpcResult")&&r.d(t,{isJsonRpcResult:function(){return n.isJsonRpcResult}}),r.o(n,"isLocalhostUrl")&&r.d(t,{isLocalhostUrl:function(){return n.isLocalhostUrl}}),r.o(n,"isReactNative")&&r.d(t,{isReactNative:function(){return n.isReactNative}}),r.o(n,"isWsUrl")&&r.d(t,{isWsUrl:function(){return n.isWsUrl}}),r.o(n,"payloadId")&&r.d(t,{payloadId:function(){return n.payloadId}})},28375:function(e,t,r){"use strict";r.d(t,{CX:function(){return parseConnectionError},L2:function(){return getErrorByCode},by:function(){return getError},i5:function(){return isReservedErrorCode}});var n=r(45196);function isReservedErrorCode(e){return n.dQ.includes(e)}function getError(e){return Object.keys(n.xK).includes(e)?n.xK[e]:n.xK[n.JV]}function getErrorByCode(e){let t=Object.values(n.xK).find(t=>t.code===e);return t||n.xK[n.JV]}function parseConnectionError(e,t,r){return e.message.includes("getaddrinfo ENOTFOUND")||e.message.includes("connect ECONNREFUSED")?Error(`Unavailable ${r} RPC url at ${t}`):e}},55281:function(e,t,r){"use strict";r.d(t,{CS:function(){return getBigIntRpcId},RI:function(){return formatJsonRpcError},o0:function(){return payloadId},sT:function(){return formatJsonRpcRequest},tm:function(){return formatJsonRpcResult}});var n=r(28375),o=r(45196);function payloadId(e=3){let t=Date.now()*Math.pow(10,e);return t+Math.floor(Math.random()*Math.pow(10,e))}function getBigIntRpcId(e=6){return BigInt(payloadId(e))}function formatJsonRpcRequest(e,t,r){return{id:r||payloadId(),jsonrpc:"2.0",method:e,params:t}}function formatJsonRpcResult(e,t){return{id:e,jsonrpc:"2.0",result:t}}function formatJsonRpcError(e,t,r){return{id:e,jsonrpc:"2.0",error:formatErrorMessage(t,r)}}function formatErrorMessage(e,t){return void 0===e?(0,n.by)(o.O4):("string"==typeof e&&(e=Object.assign(Object.assign({},(0,n.by)(o.CA)),{message:e})),void 0!==t&&(e.data=t),(0,n.i5)(e.code)&&(e=(0,n.L2)(e.code)),e)}},78102:function(e,t,r){"use strict";r.d(t,{IJsonRpcProvider:function(){return i.x0},formatJsonRpcError:function(){return s.RI},formatJsonRpcRequest:function(){return s.sT},formatJsonRpcResult:function(){return s.tm},getBigIntRpcId:function(){return s.CS},isHttpUrl:function(){return a.jK},isJsonRpcError:function(){return c.jg},isJsonRpcRequest:function(){return c.DW},isJsonRpcResponse:function(){return c.u},isJsonRpcResult:function(){return c.k4},isLocalhostUrl:function(){return a.JF},isWsUrl:function(){return a.UZ},parseConnectionError:function(){return n.CX},payloadId:function(){return s.o0}}),r(45196);var n=r(28375),o=r(18485);r.o(o,"IJsonRpcProvider")&&r.d(t,{IJsonRpcProvider:function(){return o.IJsonRpcProvider}}),r.o(o,"formatJsonRpcError")&&r.d(t,{formatJsonRpcError:function(){return o.formatJsonRpcError}}),r.o(o,"formatJsonRpcRequest")&&r.d(t,{formatJsonRpcRequest:function(){return o.formatJsonRpcRequest}}),r.o(o,"formatJsonRpcResult")&&r.d(t,{formatJsonRpcResult:function(){return o.formatJsonRpcResult}}),r.o(o,"getBigIntRpcId")&&r.d(t,{getBigIntRpcId:function(){return o.getBigIntRpcId}}),r.o(o,"isHttpUrl")&&r.d(t,{isHttpUrl:function(){return o.isHttpUrl}}),r.o(o,"isJsonRpcError")&&r.d(t,{isJsonRpcError:function(){return o.isJsonRpcError}}),r.o(o,"isJsonRpcRequest")&&r.d(t,{isJsonRpcRequest:function(){return o.isJsonRpcRequest}}),r.o(o,"isJsonRpcResponse")&&r.d(t,{isJsonRpcResponse:function(){return o.isJsonRpcResponse}}),r.o(o,"isJsonRpcResult")&&r.d(t,{isJsonRpcResult:function(){return o.isJsonRpcResult}}),r.o(o,"isLocalhostUrl")&&r.d(t,{isLocalhostUrl:function(){return o.isLocalhostUrl}}),r.o(o,"isReactNative")&&r.d(t,{isReactNative:function(){return o.isReactNative}}),r.o(o,"isWsUrl")&&r.d(t,{isWsUrl:function(){return o.isWsUrl}}),r.o(o,"payloadId")&&r.d(t,{payloadId:function(){return o.payloadId}});var s=r(55281),i=r(57136),a=r(98418),c=r(31080)},57136:function(e,t,r){"use strict";r.d(t,{x0:function(){return n.x0}});var n=r(88688)},98418:function(e,t,r){"use strict";function getUrlProtocol(e){let t=e.match(RegExp(/^\w+:/,"gi"));if(t&&t.length)return t[0]}function matchRegexProtocol(e,t){let r=getUrlProtocol(e);return void 0!==r&&new RegExp(t).test(r)}function isHttpUrl(e){return matchRegexProtocol(e,"^https?:")}function isWsUrl(e){return matchRegexProtocol(e,"^wss?:")}function isLocalhostUrl(e){return RegExp("wss?://localhost(:d{2,5})?").test(e)}r.d(t,{JF:function(){return isLocalhostUrl},UZ:function(){return isWsUrl},jK:function(){return isHttpUrl}})},31080:function(e,t,r){"use strict";function isJsonRpcPayload(e){return"object"==typeof e&&"id"in e&&"jsonrpc"in e&&"2.0"===e.jsonrpc}function isJsonRpcRequest(e){return isJsonRpcPayload(e)&&"method"in e}function isJsonRpcResponse(e){return isJsonRpcPayload(e)&&(isJsonRpcResult(e)||isJsonRpcError(e))}function isJsonRpcResult(e){return"result"in e}function isJsonRpcError(e){return"error"in e}r.d(t,{DW:function(){return isJsonRpcRequest},jg:function(){return isJsonRpcError},k4:function(){return isJsonRpcResult},u:function(){return isJsonRpcResponse}})},74087:function(e,t,r){"use strict";r.d(t,{D:function(){return safeJsonParse},u:function(){return safeJsonStringify}});let JSONStringify=e=>JSON.stringify(e,(e,t)=>"bigint"==typeof t?t.toString()+"n":t),JSONParse=e=>{let t=e.replace(/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,'$1"$2n"$3');return JSON.parse(t,(e,t)=>{let r="string"==typeof t&&t.match(/^\d+n$/);return r?BigInt(t.substring(0,t.length-1)):t})};function safeJsonParse(e){if("string"!=typeof e)throw Error(`Cannot safe json parse value of type ${typeof e}`);try{return JSONParse(e)}catch(t){return e}}function safeJsonStringify(e){return"string"==typeof e?e:JSONStringify(e)||""}},20283:function(e,t){var r="undefined"!=typeof self?self:this,n=function(){function F(){this.fetch=!1,this.DOMException=r.DOMException}return F.prototype=r,new F}();(function(e){var t={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};function isDataView(e){return e&&DataView.prototype.isPrototypeOf(e)}if(t.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],o=ArrayBuffer.isView||function(e){return e&&r.indexOf(Object.prototype.toString.call(e))>-1};function normalizeName(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw TypeError("Invalid character in header field name");return e.toLowerCase()}function normalizeValue(e){return"string"!=typeof e&&(e=String(e)),e}function iteratorFor(e){var r={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t.iterable&&(r[Symbol.iterator]=function(){return r}),r}function Headers(e){this.map={},e instanceof Headers?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function consumed(e){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}function fileReaderReady(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function readBlobAsArrayBuffer(e){var t=new FileReader,r=fileReaderReady(t);return t.readAsArrayBuffer(e),r}function readBlobAsText(e){var t=new FileReader,r=fileReaderReady(t);return t.readAsText(e),r}function readArrayBufferAsText(e){for(var t=new Uint8Array(e),r=Array(t.length),n=0;n-1?t:e}function Request(e,t){var r=(t=t||{}).body;if(e instanceof Request){if(e.bodyUsed)throw TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new Headers(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new Headers(t.headers)),this.method=normalizeMethod(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function decode(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}}),t}function parseHeaders(e){var t=new Headers;return e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(e){var r=e.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();t.append(n,o)}}),t}function Response(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new Headers(t.headers),this.url=t.url||"",this._initBody(e)}Request.prototype.clone=function(){return new Request(this,{body:this._bodyInit})},Body.call(Request.prototype),Body.call(Response.prototype),Response.prototype.clone=function(){return new Response(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Headers(this.headers),url:this.url})},Response.error=function(){var e=new Response(null,{status:0,statusText:""});return e.type="error",e};var i=[301,302,303,307,308];Response.redirect=function(e,t){if(-1===i.indexOf(t))throw RangeError("Invalid status code");return new Response(null,{status:t,headers:{location:e}})},e.DOMException=n.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function fetch(r,n){return new Promise(function(o,s){var i=new Request(r,n);if(i.signal&&i.signal.aborted)return s(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function abortXhr(){a.abort()}a.onload=function(){var e={status:a.status,statusText:a.statusText,headers:parseHeaders(a.getAllResponseHeaders()||"")};e.url="responseURL"in a?a.responseURL:e.headers.get("X-Request-URL"),o(new Response("response"in a?a.response:a.responseText,e))},a.onerror=function(){s(TypeError("Network request failed"))},a.ontimeout=function(){s(TypeError("Network request failed"))},a.onabort=function(){s(new e.DOMException("Aborted","AbortError"))},a.open(i.method,i.url,!0),"include"===i.credentials?a.withCredentials=!0:"omit"===i.credentials&&(a.withCredentials=!1),"responseType"in a&&t.blob&&(a.responseType="blob"),i.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),i.signal&&(i.signal.addEventListener("abort",abortXhr),a.onreadystatechange=function(){4===a.readyState&&i.signal.removeEventListener("abort",abortXhr)}),a.send(void 0===i._bodyInit?null:i._bodyInit)})}fetch.polyfill=!0,n.fetch||(n.fetch=fetch,n.Headers=Headers,n.Request=Request,n.Response=Response),e.Headers=Headers,e.Request=Request,e.Response=Response,e.fetch=fetch,Object.defineProperty(e,"__esModule",{value:!0})})({}),n.fetch.ponyfill=!0,delete n.fetch.polyfill,(t=n.fetch).default=n.fetch,t.fetch=n.fetch,t.Headers=n.Headers,t.Request=n.Request,t.Response=n.Response,e.exports=t}}]); \ No newline at end of file diff --git a/_next/static/chunks/3962.643d09c97b5b093d.js b/_next/static/chunks/3962.643d09c97b5b093d.js new file mode 100644 index 0000000..0ec7266 --- /dev/null +++ b/_next/static/chunks/3962.643d09c97b5b093d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3962],{13962:function(l,f,v){v.r(f),v.d(f,{default:function(){return t}});var t='data:image/svg+xml,'}}]); \ No newline at end of file diff --git a/_next/static/chunks/4335.89cfa6f61787ec4e.js b/_next/static/chunks/4335.89cfa6f61787ec4e.js new file mode 100644 index 0000000..da1d453 --- /dev/null +++ b/_next/static/chunks/4335.89cfa6f61787ec4e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4335],{74335:function(l,e,t){t.r(e),t.d(e,{default:function(){return f}});var f='data:image/svg+xml,'}}]); \ No newline at end of file diff --git a/_next/static/chunks/441.ff1a637d66cd1909.js b/_next/static/chunks/441.ff1a637d66cd1909.js new file mode 100644 index 0000000..5663887 --- /dev/null +++ b/_next/static/chunks/441.ff1a637d66cd1909.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[441],{80441:function(a,e,s){s.r(e),s.d(e,{default:function(){return t}});var t='data:image/svg+xml,%0A %0A %0A %0A %0A %0A %0A %0A %0A'}}]); \ No newline at end of file diff --git a/_next/static/chunks/4464.771a35c485788fca.js b/_next/static/chunks/4464.771a35c485788fca.js new file mode 100644 index 0000000..b81f38f --- /dev/null +++ b/_next/static/chunks/4464.771a35c485788fca.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4464],{54464:function(e,l,t){t.r(l),t.d(l,{default:function(){return i}});var i='data:image/svg+xml,%0A%0A%0A%0A'}}]); \ No newline at end of file diff --git a/_next/static/chunks/4855.5b7df21c89b7d898.js b/_next/static/chunks/4855.5b7df21c89b7d898.js new file mode 100644 index 0000000..7ba1bea --- /dev/null +++ b/_next/static/chunks/4855.5b7df21c89b7d898.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4855,9016],{79391:function(){},87942:function(){},82880:function(){}}]); \ No newline at end of file diff --git a/_next/static/chunks/505-cda1db134b50858c.js b/_next/static/chunks/505-cda1db134b50858c.js deleted file mode 100644 index 67dd5fb..0000000 --- a/_next/static/chunks/505-cda1db134b50858c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[505],{42852:function(t,n,o){o.d(n,{d:function(){return i}});let i="0x0000000000000000000000000000000000000000"},44103:function(t,n,o){o.d(n,{ZP:function(){return eH}});var __assign=function(){return(__assign=Object.assign||function(t){for(var n,o=1,i=arguments.length;o0?Utility_charat(C,--A):0,S--,10===k&&(S=1,_--),k}function next(){return k=A2||token(k)>3?"":" "}function escaping(t,n){for(var o;--n&&next()&&!(k<48)&&!(k>102)&&(!(k>57)||!(k<65))&&(!(k>70)||!(k<97)););return o=A+(n<6&&32==peek()&&32==next()),Utility_substr(C,t,o)}function delimiter(t){for(;next();)switch(k){case t:return A;case 34:case 39:34!==t&&39!==t&&delimiter(k);break;case 40:41===t&&delimiter(t);break;case 92:next()}return A}function commenter(t,n){for(;next();)if(t+k===57)break;else if(t+k===84&&47===peek())break;return"/*"+Utility_substr(C,n,A-1)+"*"+w(47===t?t:next())}function identifier(t){for(;!token(peek());)next();return Utility_substr(C,t,A)}function serialize(t,n){for(var o="",i=0;i6)switch(Utility_charat(t,n+1)){case 109:if(45!==Utility_charat(t,n+4))break;case 102:return replace(t,/(.+:)(.+)-([^]+)/,"$1"+f+"$2-$3$1"+d+(108==Utility_charat(t,n+3)?"$3":"$2-$3"))+t;case 115:return~indexof(t,"stretch",0)?prefix(replace(t,"stretch","fill-available"),n,o)+t:t}break;case 5152:case 5920:return replace(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,o,i,a,c,d,f){return u+o+":"+i+f+(a?u+o+"-span:"+(c?d:+d-+i)+f:"")+t});case 4949:if(121===Utility_charat(t,n+6))return replace(t,":",":"+f)+t;break;case 6444:switch(Utility_charat(t,45===Utility_charat(t,14)?18:11)){case 120:return replace(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+f+(45===Utility_charat(t,14)?"inline-":"")+"box$3$1"+f+"$2$3$1"+u+"$2box$3")+t;case 100:return replace(t,":",":"+u)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return replace(t,"scroll-","scroll-snap-")+t}return t}function middleware(t){var n=t.length;return function(o,i,a,c){for(var u="",d=0;d-1&&!t.return)switch(t.type){case b:t.return=prefix(t.value,t.length,o);return;case y:return serialize([copy(t,{value:replace(t.value,"@","@"+f)})],i);case g:if(t.length)return Utility_combine(o=t.props,function(n){switch(match(n,i=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":lift(copy(t,{props:[replace(n,/:(read-\w+)/,":"+d+"$1")]})),lift(copy(t,{props:[n]})),E(t,{props:filter(o,i)});break;case"::placeholder":lift(copy(t,{props:[replace(n,/:(plac\w+)/,":"+f+"input-$1")]})),lift(copy(t,{props:[replace(n,/:(plac\w+)/,":"+d+"$1")]})),lift(copy(t,{props:[replace(n,/:(plac\w+)/,u+"input-$1")]})),lift(copy(t,{props:[n]})),E(t,{props:filter(o,i)})}return""})}}function compile(t){return dealloc(parse("",null,null,null,[""],t=alloc(t),0,[0],t))}function parse(t,n,o,i,a,c,u,d,f){for(var m=0,g=0,b=u,y=0,E=0,_=0,S=1,P=1,k=1,C=0,T="",N=a,H=c,D=i,F=T;P;)switch(_=C,C=next()){case 40:if(108!=_&&58==Utility_charat(F,b-1)){-1!=indexof(F+=replace(delimit(C),"&","&\f"),"&\f",v(m?d[m-1]:0))&&(k=-1);break}case 34:case 39:case 91:F+=delimit(C);break;case 9:case 10:case 13:case 32:F+=whitespace(_);break;case 92:F+=escaping(A-1,7);continue;case 47:switch(peek()){case 42:case 47:Utility_append(comment(commenter(next(),A),n,o,f),f);break;default:F+="/"}break;case 123*S:d[m++]=Utility_strlen(F)*k;case 125*S:case 59:case 0:switch(C){case 0:case 125:P=0;case 59+g:-1==k&&(F=replace(F,/\f/g,"")),E>0&&Utility_strlen(F)-b&&Utility_append(E>32?declaration(F+";",i,o,b-1,f):declaration(replace(F," ","")+";",i,o,b-2,f),f);break;case 59:F+=";";default:if(Utility_append(D=ruleset(F,n,o,m,g,a,d,T,N=[],H=[],b,c),c),123===C){if(0===g)parse(F,n,D,D,N,c,b,d,H);else switch(99===y&&110===Utility_charat(F,3)?100:y){case 100:case 108:case 109:case 115:parse(t,D,D,i&&Utility_append(ruleset(t,D,D,0,0,a,d,T,a,N=[],b,H),H),a,H,b,d,i?N:H);break;default:parse(F,D,D,D,[""],H,0,d,H)}}}m=g=E=0,S=k=1,T=F="",b=u;break;case 58:b=1+Utility_strlen(F),E=_;default:if(S<1){if(123==C)--S;else if(125==C&&0==S++&&125==prev())continue}switch(F+=w(C),C*S){case 38:k=g>0?1:(F+="\f",-1);break;case 44:d[m++]=(Utility_strlen(F)-1)*k,k=1;break;case 64:45===peek()&&(F+=delimit(next())),y=peek(),g=b=Utility_strlen(T=F+=identifier(A)),C++;break;case 45:45===_&&2==Utility_strlen(F)&&(S=0)}}return c}function ruleset(t,n,o,i,a,c,u,d,f,m,b,y){for(var w=a-1,E=0===a?c:[""],_=E.length,S=0,P=0,A=0;S0?E[k]+" "+C:replace(C,/&\f/g,E[k])).trim())&&(f[A++]=T);return node(t,n,o,0===a?g:d,f,m,b,y)}function comment(t,n,o,i){return node(t,n,o,m,w(Tokenizer_char()),Utility_substr(t,2,-2),0,i)}function declaration(t,n,o,i,a){return node(t,n,o,b,Utility_substr(t,0,i),Utility_substr(t,i+1,-1),i,a)}var T={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},N=o(28070),H=void 0!==N&&void 0!==N.env&&(N.env.REACT_APP_SC_ATTR||N.env.SC_ATTR)||"data-styled",D="active",F="data-styled-version",U="6.1.8",G="/*!sc*/\n",V="undefined"!=typeof window&&"HTMLElement"in window,W=!!("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==N&&void 0!==N.env&&void 0!==N.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==N.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==N.env.REACT_APP_SC_DISABLE_SPEEDY&&N.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==N&&void 0!==N.env&&void 0!==N.env.SC_DISABLE_SPEEDY&&""!==N.env.SC_DISABLE_SPEEDY&&"false"!==N.env.SC_DISABLE_SPEEDY&&N.env.SC_DISABLE_SPEEDY),q=Object.freeze([]),K=Object.freeze({});function I(t,n,o){return void 0===o&&(o=K),t.theme!==o.theme&&t.theme||n||o.theme}var Z=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Y=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,J=/(^-|-$)/g;function R(t){return t.replace(Y,"-").replace(J,"")}var Q=/(a)(d)/gi,j=function(t){return String.fromCharCode(t+(t>25?39:97))};function x(t){var n,o="";for(n=Math.abs(t);n>52;n=n/52|0)o=j(n%52)+o;return(j(n%52)+o).replace(Q,"$1-$2")}var ee,M=function(t,n){for(var o=n.length;o;)t=33*t^n.charCodeAt(--o);return t},$=function(t){return M(5381,t)};function z(t){return x($(t)>>>0)}function B(t){return t.displayName||t.name||"Component"}function L(t){return"string"==typeof t}var et="function"==typeof Symbol&&Symbol.for,er=et?Symbol.for("react.memo"):60115,en=et?Symbol.for("react.forward_ref"):60112,eo={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ei={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ea={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},es=((ee={})[en]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ee[er]=ea,ee);function X(t){return("type"in t&&t.type.$$typeof)===er?ea:"$$typeof"in t?es[t.$$typeof]:eo}var el=Object.defineProperty,ec=Object.getOwnPropertyNames,eu=Object.getOwnPropertySymbols,ed=Object.getOwnPropertyDescriptor,ef=Object.getPrototypeOf,eh=Object.prototype;function oe(t,n,o){if("string"!=typeof n){if(eh){var i=ef(n);i&&i!==eh&&oe(t,i,o)}var a=ec(n);eu&&(a=a.concat(eu(n)));for(var c=X(t),u=X(n),d=0;d0?" Args: ".concat(n.join(", ")):""))}var ep=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,o=0;o=this.groupSizes.length){for(var o=this.groupSizes,i=o.length,a=i;t>=a;)if((a<<=1)<0)throw he(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(o),this.length=a;for(var c=i;c=this.length||0===this.groupSizes[t])return n;for(var o=this.groupSizes[t],i=this.indexOfGroup(t),a=i+o,c=i;c=0){var o=document.createTextNode(n);return this.element.insertBefore(o,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t0&&(f+="".concat(t,","))}),i+="".concat(u).concat(d,'{content:"').concat(f,'"}').concat(G)}}})(a);return i}(i)})}return e.registerId=function(t){return ge(t)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(__assign(__assign({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){var t,n,o;return this.tag||(this.tag=(n=(t=this.options).useCSSOMInjection,o=t.target,new ep(t.isServer?new eE(o):n?new ew(o):new ex(o))))},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(ge(t),this.names.has(t))this.names.get(t).add(n);else{var o=new Set;o.add(n),this.names.set(t,o)}},e.prototype.insertRules=function(t,n,o){this.registerName(t,n),this.getTag().insertRules(ge(t),o)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(ge(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),eP=/&/g,eA=/^\s*\/\/.*$/gm;function je(t,n){return t.map(function(t){return"rule"===t.type&&(t.value="".concat(n," ").concat(t.value),t.value=t.value.replaceAll(",",",".concat(n," ")),t.props=t.props.map(function(t){return"".concat(n," ").concat(t)})),Array.isArray(t.children)&&"@keyframes"!==t.type&&(t.children=je(t.children,n)),t})}function xe(t){var n,o,i,a=void 0===t?K:t,c=a.options,u=void 0===c?K:c,d=a.plugins,f=void 0===d?q:d,l=function(t,i,a){return a.startsWith(o)&&a.endsWith(o)&&a.replaceAll(o,"").length>0?".".concat(n):t},m=f.slice();m.push(function(t){t.type===g&&t.value.includes("&")&&(t.props[0]=t.props[0].replace(eP,o).replace(i,l))}),u.prefix&&m.push(prefixer),m.push(stringify);var p=function(t,a,c,d){void 0===a&&(a=""),void 0===c&&(c=""),void 0===d&&(d="&"),n=d,o=a,i=RegExp("\\".concat(o,"\\b"),"g");var f=t.replace(eA,""),g=compile(c||a?"".concat(c," ").concat(a," { ").concat(f," }"):f);u.namespace&&(g=je(g,u.namespace));var b=[];return serialize(g,middleware(m.concat(rulesheet(function(t){return b.push(t)})))),b};return p.hash=f.length?f.reduce(function(t,n){return n.name||he(15),M(t,n.name)},5381).toString():"",p}var ek=new e$,eI=xe(),eB=i.createContext({shouldForwardProp:void 0,styleSheet:ek,stylis:eI}),eC=(eB.Consumer,i.createContext(void 0));function Be(){return(0,i.useContext)(eB)}function Le(t){var n=(0,i.useState)(t.stylisPlugins),o=n[0],a=n[1],u=Be().styleSheet,d=(0,i.useMemo)(function(){var n=u;return t.sheet?n=t.sheet:t.target&&(n=n.reconstructWithOptions({target:t.target},!1)),t.disableCSSOMInjection&&(n=n.reconstructWithOptions({useCSSOMInjection:!1})),n},[t.disableCSSOMInjection,t.sheet,t.target,u]),f=(0,i.useMemo)(function(){return xe({options:{namespace:t.namespace,prefix:t.enableVendorPrefixes},plugins:o})},[t.enableVendorPrefixes,t.namespace,o]);(0,i.useEffect)(function(){c()(o,t.stylisPlugins)||a(t.stylisPlugins)},[t.stylisPlugins]);var m=(0,i.useMemo)(function(){return{shouldForwardProp:t.shouldForwardProp,styleSheet:d,stylis:f}},[t.shouldForwardProp,d,f]);return i.createElement(eB.Provider,{value:m},i.createElement(eC.Provider,{value:f},t.children))}var eT=function(){function e(t,n){var o=this;this.inject=function(t,n){void 0===n&&(n=eI);var i=o.name+n.hash;t.hasNameForId(o.id,i)||t.insertRules(o.id,i,n(o.rules,i,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,ue(this,function(){throw he(12,String(o.name))})}return e.prototype.getName=function(t){return void 0===t&&(t=eI),this.name+t.hash},e}();function We(t){for(var n="",o=0;o="A"&&i<="Z"?n+="-"+i.toLowerCase():n+=i}return n.startsWith("ms-")?"-"+n:n}var qe=function(t){return null==t||!1===t||""===t},He=function(t){var n=[];for(var o in t){var i=t[o];t.hasOwnProperty(o)&&!qe(i)&&(Array.isArray(i)&&i.isCss||re(i)?n.push("".concat(We(o),":"),i,";"):ce(i)?n.push.apply(n,__spreadArray(__spreadArray(["".concat(o," {")],He(i),!1),["}"],!1)):n.push("".concat(We(o),": ").concat(null==i||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||o in T||o.startsWith("--")?String(i).trim():"".concat(i,"px"),";")))}return n};function Ue(t,n,o,i){return qe(t)?[]:se(t)?[".".concat(t.styledComponentId)]:re(t)?!re(t)||t.prototype&&t.prototype.isReactComponent||!n?[t]:Ue(t(n),n,o,i):t instanceof eT?o?(t.inject(o,i),[t.getName(i)]):[t]:ce(t)?He(t):Array.isArray(t)?Array.prototype.concat.apply(q,t.map(function(t){return Ue(t,n,o,i)})):[t.toString()]}function Je(t){for(var n=0;n>>0);if(!n.hasNameForId(this.componentId,c)){var u=o(a,".".concat(c),void 0,this.componentId);n.insertRules(this.componentId,c,u)}i=ie(i,c),this.staticRulesId=c}}else{for(var d=M(this.baseHash,o.hash),f="",m=0;m>>0);n.hasNameForId(this.componentId,y)||n.insertRules(this.componentId,y,o(f,".".concat(y),void 0,this.componentId)),i=ie(i,y)}}return i},e}(),eL=i.createContext(void 0);eL.Consumer;var eN={};function rt(t,n,o){var a,c,u,d,f=se(t),m=!L(t),g=n.attrs,b=void 0===g?q:g,y=n.componentId,v=void 0===y?(a=n.displayName,c=n.parentComponentId,eN[u="string"!=typeof a?"sc":R(a)]=(eN[u]||0)+1,d="".concat(u,"-").concat(z(U+u+eN[u])),c?"".concat(c,"-").concat(d):d):y,w=n.displayName,E=void 0===w?L(t)?"styled.".concat(t):"Styled(".concat(B(t),")"):w,_=n.displayName&&n.componentId?"".concat(R(n.displayName),"-").concat(n.componentId):n.componentId||v,S=f&&t.attrs?t.attrs.concat(b).filter(Boolean):b,P=n.shouldForwardProp;if(f&&t.shouldForwardProp){var A=t.shouldForwardProp;if(n.shouldForwardProp){var k=n.shouldForwardProp;P=function(t,n){return A(t,n)&&k(t,n)}}else P=A}var C=new eR(o,_,f?t.componentStyle:void 0);function O(t,n){return function(t,n,o){var a,c=t.attrs,u=t.componentStyle,d=t.defaultProps,f=t.foldedComponentIds,m=t.styledComponentId,g=t.target,b=i.useContext(eL),y=Be(),v=t.shouldForwardProp||y.shouldForwardProp,w=I(n,b,d)||K,E=function(t,n,o){for(var i,a=__assign(__assign({},n),{className:void 0,theme:o}),c=0;c2&&e$.registerId(this.componentId+t),this.removeStyles(t,o),this.createStyles(t,n,o,i)}}(),function(){function e(){var t=this;this._emitSheetCSS=function(){var n=t.instance.toString(),i=o.nc,a=ae([i&&'nonce="'.concat(i,'"'),"".concat(H,'="true"'),"".concat(F,'="').concat(U,'"')].filter(Boolean)," ");return"")},this.getStyleTags=function(){if(t.sealed)throw he(2);return t._emitSheetCSS()},this.getStyleElement=function(){if(t.sealed)throw he(2);var n,a=((n={})[H]="",n[F]=U,n.dangerouslySetInnerHTML={__html:t.instance.toString()},n),c=o.nc;return c&&(a.nonce=c),[i.createElement("style",__assign({},a,{key:"sc-0-0"}))]},this.seal=function(){t.sealed=!0},this.instance=new e$({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(t){if(this.sealed)throw he(2);return i.createElement(Le,{sheet:this.instance},t)},e.prototype.interleaveWithNodeStream=function(t){throw he(3)}}()},42770:function(t,n,o){o.d(n,{qo:function(){return g},Gn:function(){return Common}});var i,a,c,u,d,f,m,g,b,y,v,w,E,_,S=o(94433),P=o(61900),create_buffer=(t,n)=>P.Buffer.from(t,n);function defineCrc(t,n){let result=(t,o)=>n(create_buffer(t),o)>>>0;return result.signed=(t,o)=>n(create_buffer(t),o),result.unsigned=result,result.model=t,result}defineCrc("crc1",(t,n=0)=>{let o=~~n,i=0;for(let n=0;n{let o=~~n;for(let n=0;n{let o=~~n;for(let n=0;n{let o=~~n;for(let n=0;n{let o=~~n;for(let n=0;n>8)&65535;return o});let N=[0,4129,8258,12387,16516,20645,24774,28903,33032,37161,41290,45419,49548,53677,57806,61935,4657,528,12915,8786,21173,17044,29431,25302,37689,33560,45947,41818,54205,50076,62463,58334,9314,13379,1056,5121,25830,29895,17572,21637,42346,46411,34088,38153,58862,62927,50604,54669,13907,9842,5649,1584,30423,26358,22165,18100,46939,42874,38681,34616,63455,59390,55197,51132,18628,22757,26758,30887,2112,6241,10242,14371,51660,55789,59790,63919,35144,39273,43274,47403,23285,19156,31415,27286,6769,2640,14899,10770,56317,52188,64447,60318,39801,35672,47931,43802,27814,31879,19684,23749,11298,15363,3168,7233,60846,64911,52716,56781,44330,48395,36200,40265,32407,28342,24277,20212,15891,11826,7761,3696,65439,61374,57309,53244,48923,44858,40793,36728,37256,33193,45514,41451,53516,49453,61774,57711,4224,161,12482,8419,20484,16421,28742,24679,33721,37784,41979,46042,49981,54044,58239,62302,689,4752,8947,13010,16949,21012,25207,29270,46570,42443,38312,34185,62830,58703,54572,50445,13538,9411,5280,1153,29798,25671,21540,17413,42971,47098,34713,38840,59231,63358,50973,55100,9939,14066,1681,5808,26199,30326,17941,22068,55628,51565,63758,59695,39368,35305,47498,43435,22596,18533,30726,26663,6336,2273,14466,10403,52093,56156,60223,64286,35833,39896,43963,48026,19061,23124,27191,31254,2801,6864,10931,14994,64814,60687,56684,52557,48554,44427,40424,36297,31782,27655,23652,19525,15522,11395,7392,3265,61215,65342,53085,57212,44955,49082,36825,40952,28183,32310,20053,24180,11923,16050,3793,7920];"undefined"!=typeof Int32Array&&(N=new Int32Array(N)),defineCrc("ccitt",(t,n)=>{let o=void 0!==n?~~n:65535;for(let n=0;n>8^t[n])&255]^o<<8)&65535;return o});let H=[0,49345,49537,320,49921,960,640,49729,50689,1728,1920,51009,1280,50625,50305,1088,52225,3264,3456,52545,3840,53185,52865,3648,2560,51905,52097,2880,51457,2496,2176,51265,55297,6336,6528,55617,6912,56257,55937,6720,7680,57025,57217,8e3,56577,7616,7296,56385,5120,54465,54657,5440,55041,6080,5760,54849,53761,4800,4992,54081,4352,53697,53377,4160,61441,12480,12672,61761,13056,62401,62081,12864,13824,63169,63361,14144,62721,13760,13440,62529,15360,64705,64897,15680,65281,16320,16e3,65089,64001,15040,15232,64321,14592,63937,63617,14400,10240,59585,59777,10560,60161,11200,10880,59969,60929,11968,12160,61249,11520,60865,60545,11328,58369,9408,9600,58689,9984,59329,59009,9792,8704,58049,58241,9024,57601,8640,8320,57409,40961,24768,24960,41281,25344,41921,41601,25152,26112,42689,42881,26432,42241,26048,25728,42049,27648,44225,44417,27968,44801,28608,28288,44609,43521,27328,27520,43841,26880,43457,43137,26688,30720,47297,47489,31040,47873,31680,31360,47681,48641,32448,32640,48961,32e3,48577,48257,31808,46081,29888,30080,46401,30464,47041,46721,30272,29184,45761,45953,29504,45313,29120,28800,45121,20480,37057,37249,20800,37633,21440,21120,37441,38401,22208,22400,38721,21760,38337,38017,21568,39937,23744,23936,40257,24320,40897,40577,24128,23040,39617,39809,23360,39169,22976,22656,38977,34817,18624,18816,35137,19200,35777,35457,19008,19968,36545,36737,20288,36097,19904,19584,35905,17408,33985,34177,17728,34561,18368,18048,34369,33281,17088,17280,33601,16640,33217,32897,16448];"undefined"!=typeof Int32Array&&(H=new Int32Array(H)),defineCrc("crc-16-modbus",(t,n)=>{let o=void 0!==n?~~n:65535;for(let n=0;n>8)&65535;return o}),defineCrc("xmodem",(t,n)=>{let o=void 0!==n?~~n:0;for(let n=0;n>>8&255;i^=255&t[n],i^=i>>>4,o=o<<8&65535^i^(i=i<<5&65535)^(i=i<<7&65535)}return o});let D=[0,4489,8978,12955,17956,22445,25910,29887,35912,40385,44890,48851,51820,56293,59774,63735,4225,264,13203,8730,22181,18220,30135,25662,40137,36160,49115,44626,56045,52068,63999,59510,8450,12427,528,5017,26406,30383,17460,21949,44362,48323,36440,40913,60270,64231,51324,55797,12675,8202,4753,792,30631,26158,21685,17724,48587,44098,40665,36688,64495,60006,55549,51572,16900,21389,24854,28831,1056,5545,10034,14011,52812,57285,60766,64727,34920,39393,43898,47859,21125,17164,29079,24606,5281,1320,14259,9786,57037,53060,64991,60502,39145,35168,48123,43634,25350,29327,16404,20893,9506,13483,1584,6073,61262,65223,52316,56789,43370,47331,35448,39921,29575,25102,20629,16668,13731,9258,5809,1848,65487,60998,56541,52564,47595,43106,39673,35696,33800,38273,42778,46739,49708,54181,57662,61623,2112,6601,11090,15067,20068,24557,28022,31999,38025,34048,47003,42514,53933,49956,61887,57398,6337,2376,15315,10842,24293,20332,32247,27774,42250,46211,34328,38801,58158,62119,49212,53685,10562,14539,2640,7129,28518,32495,19572,24061,46475,41986,38553,34576,62383,57894,53437,49460,14787,10314,6865,2904,32743,28270,23797,19836,50700,55173,58654,62615,32808,37281,41786,45747,19012,23501,26966,30943,3168,7657,12146,16123,54925,50948,62879,58390,37033,33056,46011,41522,23237,19276,31191,26718,7393,3432,16371,11898,59150,63111,50204,54677,41258,45219,33336,37809,27462,31439,18516,23005,11618,15595,3696,8185,63375,58886,54429,50452,45483,40994,37561,33584,31687,27214,22741,18780,15843,11370,7921,3960];"undefined"!=typeof Int32Array&&(D=new Int32Array(D)),defineCrc("kermit",(t,n)=>{let o=void 0!==n?~~n:0;for(let n=0;n>8)&65535;return o});let F=[0,8801531,9098509,825846,9692897,1419802,1651692,10452759,10584377,2608578,2839604,11344079,3303384,11807523,12104405,4128302,12930697,4391538,5217156,13227903,5679208,13690003,14450021,5910942,6606768,14844747,15604413,6837830,16197969,7431594,8256604,16494759,840169,9084178,8783076,18463,10434312,1670131,1434117,9678590,11358416,2825259,2590173,10602790,4109873,12122826,11821884,3289031,13213536,5231515,4409965,12912278,5929345,14431610,13675660,5693559,6823513,15618722,14863188,6588335,16513208,8238147,7417269,16212302,1680338,10481449,9664223,1391140,9061683,788936,36926,8838341,12067563,4091408,3340262,11844381,2868234,11372785,10555655,2579964,14478683,5939616,5650518,13661357,5180346,13190977,12967607,4428364,8219746,16457881,16234863,7468436,15633027,6866552,6578062,14816117,1405499,9649856,10463030,1698765,8819930,55329,803287,9047340,11858690,3325945,4072975,12086004,2561507,10574104,11387118,2853909,13647026,5664841,5958079,14460228,4446803,12949160,13176670,5194661,7454091,16249200,16476294,8201341,14834538,6559633,6852199,15647388,3360676,11864927,12161705,4185682,10527045,2551230,2782280,11286707,9619101,1346150,1577872,10379115,73852,8875143,9172337,899466,16124205,7357910,8182816,16421083,6680524,14918455,15678145,6911546,5736468,13747439,14507289,5968354,12873461,4334094,5159928,13170435,4167245,12180150,11879232,3346363,11301036,2767959,2532769,10545498,10360692,1596303,1360505,9604738,913813,9157998,8856728,92259,16439492,8164415,7343561,16138546,6897189,15692510,14936872,6662099,5986813,14488838,13733104,5750795,13156124,5174247,4352529,12855018,2810998,11315341,10498427,2522496,12124823,4148844,3397530,11901793,9135439,862644,110658,8912057,1606574,10407765,9590435,1317464,15706879,6940164,6651890,14889737,8145950,16384229,16161043,7394792,5123014,13133629,12910283,4370992,14535975,5997020,5707818,13718737,2504095,10516836,11329682,2796649,11916158,3383173,4130419,12143240,8893606,129117,876971,9121104,1331783,9576124,10389322,1625009,14908182,6633453,6925851,15721184,7380471,16175372,16402682,8127489,4389423,12891860,13119266,5137369,13704398,5722165,6015427,14517560];"undefined"!=typeof Int32Array&&(F=new Int32Array(F)),defineCrc("crc-24",(t,n)=>{let o=void 0!==n?~~n:11994318;for(let n=0;n>16^t[n])&255]^o<<8)&16777215;return o});let U=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];"undefined"!=typeof Int32Array&&(U=new Int32Array(U));var G=defineCrc("crc-32",(t,n)=>{let o=0===n?0:-1^~~n;for(let n=0;n>>8;return -1^o});let V=[0,79764919,159529838,222504665,319059676,398814059,445009330,507990021,638119352,583659535,797628118,726387553,890018660,835552979,1015980042,944750013,1276238704,1221641927,1167319070,1095957929,1595256236,1540665371,1452775106,1381403509,1780037320,1859660671,1671105958,1733955601,2031960084,2111593891,1889500026,1952343757,2552477408,2632100695,2443283854,2506133561,2334638140,2414271883,2191915858,2254759653,3190512472,3135915759,3081330742,3009969537,2905550212,2850959411,2762807018,2691435357,3560074640,3505614887,3719321342,3648080713,3342211916,3287746299,3467911202,3396681109,4063920168,4143685023,4223187782,4286162673,3779000052,3858754371,3904687514,3967668269,881225847,809987520,1023691545,969234094,662832811,591600412,771767749,717299826,311336399,374308984,453813921,533576470,25881363,88864420,134795389,214552010,2023205639,2086057648,1897238633,1976864222,1804852699,1867694188,1645340341,1724971778,1587496639,1516133128,1461550545,1406951526,1302016099,1230646740,1142491917,1087903418,2896545431,2825181984,2770861561,2716262478,3215044683,3143675388,3055782693,3001194130,2326604591,2389456536,2200899649,2280525302,2578013683,2640855108,2418763421,2498394922,3769900519,3832873040,3912640137,3992402750,4088425275,4151408268,4197601365,4277358050,3334271071,3263032808,3476998961,3422541446,3585640067,3514407732,3694837229,3640369242,1762451694,1842216281,1619975040,1682949687,2047383090,2127137669,1938468188,2001449195,1325665622,1271206113,1183200824,1111960463,1543535498,1489069629,1434599652,1363369299,622672798,568075817,748617968,677256519,907627842,853037301,1067152940,995781531,51762726,131386257,177728840,240578815,269590778,349224269,429104020,491947555,4046411278,4126034873,4172115296,4234965207,3794477266,3874110821,3953728444,4016571915,3609705398,3555108353,3735388376,3664026991,3290680682,3236090077,3449943556,3378572211,3174993278,3120533705,3032266256,2961025959,2923101090,2868635157,2813903052,2742672763,2604032198,2683796849,2461293480,2524268063,2284983834,2364738477,2175806836,2238787779,1569362073,1498123566,1409854455,1355396672,1317987909,1246755826,1192025387,1137557660,2072149281,2135122070,1912620623,1992383480,1753615357,1816598090,1627664531,1707420964,295390185,358241886,404320391,483945776,43990325,106832002,186451547,266083308,932423249,861060070,1041341759,986742920,613929101,542559546,756411363,701822548,3316196985,3244833742,3425377559,3370778784,3601682597,3530312978,3744426955,3689838204,3819031489,3881883254,3928223919,4007849240,4037393693,4100235434,4180117107,4259748804,2310601993,2373574846,2151335527,2231098320,2596047829,2659030626,2470359227,2550115596,2947551409,2876312838,2788305887,2733848168,3165939309,3094707162,3040238851,2985771188];"undefined"!=typeof Int32Array&&(V=new Int32Array(V)),defineCrc("crc-32-mpeg",(t,n)=>{let o=void 0!==n?~~n:4294967295;for(let n=0;n>24^t[n])&255]^o<<8;return o});let W=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];"undefined"!=typeof Int32Array&&(W=new Int32Array(W)),defineCrc("jam",(t,n=-1)=>{let o=0===n?0:~~n;for(let n=0;n>>8;return o});var q=o(68495);let K={mainnet:{name:"mainnet",chainId:1,networkId:1,defaultHardfork:"shanghai",consensus:{type:"pow",algorithm:"ethash",ethash:{}},comment:"The Ethereum main chain",url:"https://ethstats.net/",genesis:{gasLimit:5e3,difficulty:17179869184,nonce:"0x0000000000000042",extraData:"0x11bbe8db4e347b4e8c937c1c8370e4b5ed33adb3db69cbdb7a38e1e50b1b82fa"},hardforks:[{name:"chainstart",block:0,forkHash:"0xfc64ec04"},{name:"homestead",block:115e4,forkHash:"0x97c2c34c"},{name:"dao",block:192e4,forkHash:"0x91d1f948"},{name:"tangerineWhistle",block:2463e3,forkHash:"0x7a64da13"},{name:"spuriousDragon",block:2675e3,forkHash:"0x3edd5b10"},{name:"byzantium",block:437e4,forkHash:"0xa00bc324"},{name:"constantinople",block:728e4,forkHash:"0x668db0af"},{name:"petersburg",block:728e4,forkHash:"0x668db0af"},{name:"istanbul",block:9069e3,forkHash:"0x879d6e30"},{name:"muirGlacier",block:92e5,forkHash:"0xe029e991"},{name:"berlin",block:12244e3,forkHash:"0x0eb440f6"},{name:"london",block:12965e3,forkHash:"0xb715077d"},{name:"arrowGlacier",block:13773e3,forkHash:"0x20c327fc"},{name:"grayGlacier",block:1505e4,forkHash:"0xf0afd0e3"},{name:"paris",ttd:"58750000000000000000000",block:15537394,forkHash:"0xf0afd0e3"},{name:"mergeForkIdTransition",block:null,forkHash:null},{name:"shanghai",block:null,timestamp:"1681338455",forkHash:"0xdce96c2d"},{name:"cancun",block:null,forkHash:null}],bootstrapNodes:[{ip:"18.138.108.67",port:30303,id:"d860a01f9722d78051619d1e2351aba3f43f943f6f00718d1b9baa4101932a1f5011f16bb2b1bb35db20d6fe28fa0bf09636d26a87d31de9ec6203eeedb1f666",location:"ap-southeast-1-001",comment:"bootnode-aws-ap-southeast-1-001"},{ip:"3.209.45.79",port:30303,id:"22a8232c3abc76a16ae9d6c3b164f98775fe226f0917b0ca871128a74a8e9630b458460865bab457221f1d448dd9791d24c4e5d88786180ac185df813a68d4de",location:"us-east-1-001",comment:"bootnode-aws-us-east-1-001"},{ip:"65.108.70.101",port:30303,id:"2b252ab6a1d0f971d9722cb839a42cb81db019ba44c08754628ab4a823487071b5695317c8ccd085219c3a03af063495b2f1da8d18218da2d6a82981b45e6ffc",location:"eu-west-1-001",comment:"bootnode-hetzner-hel"},{ip:"157.90.35.166",port:30303,id:"4aeb4ab6c14b23e2c4cfdce879c04b0748a20d8e9b59e25ded2a08143e265c6c25936e74cbc8e641e3312ca288673d91f2f93f8e277de3cfa444ecdaaf982052",location:"eu-central-1-001",comment:"bootnode-hetzner-fsn"}],dnsNetworks:["enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.mainnet.ethdisco.net"]},goerli:{name:"goerli",chainId:5,networkId:5,defaultHardfork:"shanghai",consensus:{type:"poa",algorithm:"clique",clique:{period:15,epoch:3e4}},comment:"Cross-client PoA test network",url:"https://github.com/goerli/testnet",genesis:{timestamp:"0x5c51a607",gasLimit:10485760,difficulty:1,nonce:"0x0000000000000000",extraData:"0x22466c6578692069732061207468696e6722202d204166726900000000000000e0a2bd4258d2768837baa26a28fe71dc079f84c70000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"},hardforks:[{name:"chainstart",block:0,forkHash:"0xa3f5ab08"},{name:"homestead",block:0,forkHash:"0xa3f5ab08"},{name:"tangerineWhistle",block:0,forkHash:"0xa3f5ab08"},{name:"spuriousDragon",block:0,forkHash:"0xa3f5ab08"},{name:"byzantium",block:0,forkHash:"0xa3f5ab08"},{name:"constantinople",block:0,forkHash:"0xa3f5ab08"},{name:"petersburg",block:0,forkHash:"0xa3f5ab08"},{name:"istanbul",block:1561651,forkHash:"0xc25efa5c"},{name:"berlin",block:4460644,forkHash:"0x757a1c47"},{name:"london",block:5062605,forkHash:"0xb8c6299d"},{name:"paris",ttd:"10790000",block:7382819,forkHash:"0xb8c6299d"},{name:"mergeForkIdTransition",block:null,forkHash:null},{name:"shanghai",block:null,timestamp:"1678832736",forkHash:"0xf9843abf"},{name:"cancun",block:null,forkHash:null}],bootstrapNodes:[{ip:"51.141.78.53",port:30303,id:"011f758e6552d105183b1761c5e2dea0111bc20fd5f6422bc7f91e0fabbec9a6595caf6239b37feb773dddd3f87240d99d859431891e4a642cf2a0a9e6cbb98a",location:"",comment:"Upstream bootnode 1"},{ip:"13.93.54.137",port:30303,id:"176b9417f511d05b6b2cf3e34b756cf0a7096b3094572a8f6ef4cdcb9d1f9d00683bf0f83347eebdf3b81c3521c2332086d9592802230bf528eaf606a1d9677b",location:"",comment:"Upstream bootnode 2"},{ip:"94.237.54.114",port:30313,id:"46add44b9f13965f7b9875ac6b85f016f341012d84f975377573800a863526f4da19ae2c620ec73d11591fa9510e992ecc03ad0751f53cc02f7c7ed6d55c7291",location:"",comment:"Upstream bootnode 3"},{ip:"18.218.250.66",port:30313,id:"b5948a2d3e9d486c4d75bf32713221c2bd6cf86463302339299bd227dc2e276cd5a1c7ca4f43a0e9122fe9af884efed563bd2a1fd28661f3b5f5ad7bf1de5949",location:"",comment:"Upstream bootnode 4"},{ip:"3.11.147.67",port:30303,id:"a61215641fb8714a373c80edbfa0ea8878243193f57c96eeb44d0bc019ef295abd4e044fd619bfc4c59731a73fb79afe84e9ab6da0c743ceb479cbb6d263fa91",location:"",comment:"Ethereum Foundation bootnode"},{ip:"51.15.116.226",port:30303,id:"a869b02cec167211fb4815a82941db2e7ed2936fd90e78619c53eb17753fcf0207463e3419c264e2a1dd8786de0df7e68cf99571ab8aeb7c4e51367ef186b1dd",location:"",comment:"Goerli Initiative bootnode"},{ip:"51.15.119.157",port:30303,id:"807b37ee4816ecf407e9112224494b74dd5933625f655962d892f2f0f02d7fbbb3e2a94cf87a96609526f30c998fd71e93e2f53015c558ffc8b03eceaf30ee33",location:"",comment:"Goerli Initiative bootnode"},{ip:"51.15.119.157",port:40303,id:"a59e33ccd2b3e52d578f1fbd70c6f9babda2650f0760d6ff3b37742fdcdfdb3defba5d56d315b40c46b70198c7621e63ffa3f987389c7118634b0fefbbdfa7fd",location:"",comment:"Goerli Initiative bootnode"}],dnsNetworks:["enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.goerli.ethdisco.net"]},sepolia:{name:"sepolia",chainId:11155111,networkId:11155111,defaultHardfork:"shanghai",consensus:{type:"pow",algorithm:"ethash",ethash:{}},comment:"PoW test network to replace Ropsten",url:"https://github.com/ethereum/go-ethereum/pull/23730",genesis:{timestamp:"0x6159af19",gasLimit:3e7,difficulty:131072,nonce:"0x0000000000000000",extraData:"0x5365706f6c69612c20417468656e732c204174746963612c2047726565636521"},hardforks:[{name:"chainstart",block:0,forkHash:"0xfe3366e7"},{name:"homestead",block:0,forkHash:"0xfe3366e7"},{name:"tangerineWhistle",block:0,forkHash:"0xfe3366e7"},{name:"spuriousDragon",block:0,forkHash:"0xfe3366e7"},{name:"byzantium",block:0,forkHash:"0xfe3366e7"},{name:"constantinople",block:0,forkHash:"0xfe3366e7"},{name:"petersburg",block:0,forkHash:"0xfe3366e7"},{name:"istanbul",block:0,forkHash:"0xfe3366e7"},{name:"muirGlacier",block:0,forkHash:"0xfe3366e7"},{name:"berlin",block:0,forkHash:"0xfe3366e7"},{name:"london",block:0,forkHash:"0xfe3366e7"},{name:"paris",ttd:"17000000000000000",block:1450409,forkHash:"0xfe3366e7"},{name:"mergeForkIdTransition",block:1735371,forkHash:"0xb96cbd13"},{name:"shanghai",block:null,timestamp:"1677557088",forkHash:"0xf7f9bc08"},{name:"cancun",block:null,forkHash:null}],bootstrapNodes:[{ip:"18.168.182.86",port:30303,id:"9246d00bc8fd1742e5ad2428b80fc4dc45d786283e05ef6edbd9002cbc335d40998444732fbe921cb88e1d2c73d1b1de53bae6a2237996e9bfe14f871baf7066",location:"",comment:"geth"},{ip:"52.14.151.177",port:30303,id:"ec66ddcf1a974950bd4c782789a7e04f8aa7110a72569b6e65fcd51e937e74eed303b1ea734e4d19cfaec9fbff9b6ee65bf31dcb50ba79acce9dd63a6aca61c7",location:"",comment:"besu"},{ip:"165.22.196.173",port:30303,id:"ce970ad2e9daa9e14593de84a8b49da3d54ccfdf83cbc4fe519cb8b36b5918ed4eab087dedd4a62479b8d50756b492d5f762367c8d20329a7854ec01547568a6",location:"",comment:"EF"},{ip:"65.108.95.67",port:30303,id:"075503b13ed736244896efcde2a992ec0b451357d46cb7a8132c0384721742597fc8f0d91bbb40bb52e7d6e66728d36a1fda09176294e4a30cfac55dcce26bc6",location:"",comment:"lodestar"}],dnsNetworks:["enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.sepolia.ethdisco.net"]},holesky:{name:"holesky",chainId:17e3,networkId:17e3,defaultHardfork:"paris",consensus:{type:"pos",algorithm:"casper"},comment:"PoS test network to replace Goerli",url:"https://github.com/eth-clients/holesky/",genesis:{baseFeePerGas:"0x3B9ACA00",difficulty:"0x01",extraData:"0x",gasLimit:"0x17D7840",nonce:"0x0000000000001234",timestamp:"0x65156994"},hardforks:[{name:"chainstart",block:0,forkHash:"0xc61a6098"},{name:"homestead",block:0,forkHash:"0xc61a6098"},{name:"tangerineWhistle",block:0,forkHash:"0xc61a6098"},{name:"spuriousDragon",block:0,forkHash:"0xc61a6098"},{name:"byzantium",block:0,forkHash:"0xc61a6098"},{name:"constantinople",block:0,forkHash:"0xc61a6098"},{name:"petersburg",block:0,forkHash:"0xc61a6098"},{name:"istanbul",block:0,forkHash:"0xc61a6098"},{name:"muirGlacier",block:0,forkHash:"0xc61a6098"},{name:"berlin",block:0,forkHash:"0xc61a6098"},{name:"london",block:0,forkHash:"0xc61a6098"},{name:"paris",ttd:"0",block:0,forkHash:"0xc61a6098"},{name:"mergeForkIdTransition",block:0,forkHash:"0xc61a6098"},{name:"shanghai",block:null,timestamp:"1696000704",forkHash:"0xfd4f016b"},{name:"cancun",block:null,forkHash:null}],bootstrapNodes:[{ip:"146.190.13.128",port:30303,id:"ac906289e4b7f12df423d654c5a962b6ebe5b3a74cc9e06292a85221f9a64a6f1cfdd6b714ed6dacef51578f92b34c60ee91e9ede9c7f8fadc4d347326d95e2b",location:"",comment:"bootnode 1"},{ip:"178.128.136.233",port:30303,id:"a3435a0155a3e837c02f5e7f5662a2f1fbc25b48e4dc232016e1c51b544cb5b4510ef633ea3278c0e970fa8ad8141e2d4d0f9f95456c537ff05fdf9b31c15072",location:"",comment:"bootnode 2"}],dnsNetworks:["enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.holesky.ethdisco.net"]}};(i=g||(g={}))[i.Mainnet=1]="Mainnet",i[i.Goerli=5]="Goerli",i[i.Sepolia=11155111]="Sepolia",i[i.Holesky=17e3]="Holesky",g.Mainnet,S.N$,(0,S.nr)("0xd7f8974fb5ac78d9ac099b9ad5018bedc2ce0a72dad1827a1709da30580f0544"),g.Goerli,S.N$,(0,S.nr)("0x5d6cded585e73c4e322c30c2f782a336316f17dd85a4863b9d838d2d4b8b3008"),g.Sepolia,S.N$,(0,S.nr)("0x5eb6e371a698b8d68f665192350ffcecbbbf322916f4b51bd79bb6887da3f494"),g.Holesky,S.N$,(0,S.nr)("0x69d8c9d72f6fa4ad42d4702b433707212f90db395eb54dc20bc85de253788783"),(a=b||(b={})).Chainstart="chainstart",a.Homestead="homestead",a.Dao="dao",a.TangerineWhistle="tangerineWhistle",a.SpuriousDragon="spuriousDragon",a.Byzantium="byzantium",a.Constantinople="constantinople",a.Petersburg="petersburg",a.Istanbul="istanbul",a.MuirGlacier="muirGlacier",a.Berlin="berlin",a.London="london",a.ArrowGlacier="arrowGlacier",a.GrayGlacier="grayGlacier",a.MergeForkIdTransition="mergeForkIdTransition",a.Paris="paris",a.Shanghai="shanghai",a.Cancun="cancun",(c=y||(y={})).ProofOfStake="pos",c.ProofOfWork="pow",c.ProofOfAuthority="poa",(u=v||(v={})).Ethash="ethash",u.Clique="clique",u.Casper="casper",(d=w||(w={})).PolygonMainnet="polygon-mainnet",d.PolygonMumbai="polygon-mumbai",d.ArbitrumOne="arbitrum-one",d.xDaiChain="x-dai-chain",d.OptimisticKovan="optimistic-kovan",d.OptimisticEthereum="optimistic-ethereum",(f=E||(E={})).Draft="draft",f.Review="review",f.Final="final";let Z={1153:{comment:"Transient storage opcodes",url:"https://eips.ethereum.org/EIPS/eip-1153",status:E.Review,minimumHardfork:b.Chainstart,requiredEIPs:[],gasPrices:{tstore:{v:100,d:"Base fee of the TSTORE opcode"},tload:{v:100,d:"Base fee of the TLOAD opcode"}}},1559:{comment:"Fee market change for ETH 1.0 chain",url:"https://eips.ethereum.org/EIPS/eip-1559",status:E.Final,minimumHardfork:b.Berlin,requiredEIPs:[2930],gasConfig:{baseFeeMaxChangeDenominator:{v:8,d:"Maximum base fee change denominator"},elasticityMultiplier:{v:2,d:"Maximum block gas target elasticity"},initialBaseFee:{v:1e9,d:"Initial base fee on first EIP1559 block"}}},2315:{comment:"Simple subroutines for the EVM",url:"https://eips.ethereum.org/EIPS/eip-2315",status:E.Draft,minimumHardfork:b.Istanbul,requiredEIPs:[],gasPrices:{beginsub:{v:2,d:"Base fee of the BEGINSUB opcode"},returnsub:{v:5,d:"Base fee of the RETURNSUB opcode"},jumpsub:{v:10,d:"Base fee of the JUMPSUB opcode"}}},2565:{comment:"ModExp gas cost",url:"https://eips.ethereum.org/EIPS/eip-2565",status:E.Final,minimumHardfork:b.Byzantium,requiredEIPs:[],gasPrices:{modexpGquaddivisor:{v:3,d:"Gquaddivisor from modexp precompile for gas calculation"}}},2718:{comment:"Typed Transaction Envelope",url:"https://eips.ethereum.org/EIPS/eip-2718",status:E.Final,minimumHardfork:b.Chainstart,requiredEIPs:[]},2929:{comment:"Gas cost increases for state access opcodes",url:"https://eips.ethereum.org/EIPS/eip-2929",status:E.Final,minimumHardfork:b.Chainstart,requiredEIPs:[],gasPrices:{coldsload:{v:2100,d:"Gas cost of the first read of storage from a given location (per transaction)"},coldaccountaccess:{v:2600,d:"Gas cost of the first read of a given address (per transaction)"},warmstorageread:{v:100,d:"Gas cost of reading storage locations which have already loaded 'cold'"},sstoreCleanGasEIP2200:{v:2900,d:"Once per SSTORE operation from clean non-zero to something else"},sstoreNoopGasEIP2200:{v:100,d:"Once per SSTORE operation if the value doesn't change"},sstoreDirtyGasEIP2200:{v:100,d:"Once per SSTORE operation if a dirty value is changed"},sstoreInitRefundEIP2200:{v:19900,d:"Once per SSTORE operation for resetting to the original zero value"},sstoreCleanRefundEIP2200:{v:4900,d:"Once per SSTORE operation for resetting to the original non-zero value"},call:{v:0,d:"Base fee of the CALL opcode"},callcode:{v:0,d:"Base fee of the CALLCODE opcode"},delegatecall:{v:0,d:"Base fee of the DELEGATECALL opcode"},staticcall:{v:0,d:"Base fee of the STATICCALL opcode"},balance:{v:0,d:"Base fee of the BALANCE opcode"},extcodesize:{v:0,d:"Base fee of the EXTCODESIZE opcode"},extcodecopy:{v:0,d:"Base fee of the EXTCODECOPY opcode"},extcodehash:{v:0,d:"Base fee of the EXTCODEHASH opcode"},sload:{v:0,d:"Base fee of the SLOAD opcode"},sstore:{v:0,d:"Base fee of the SSTORE opcode"}}},2930:{comment:"Optional access lists",url:"https://eips.ethereum.org/EIPS/eip-2930",status:E.Final,minimumHardfork:b.Istanbul,requiredEIPs:[2718,2929],gasPrices:{accessListStorageKeyCost:{v:1900,d:"Gas cost per storage key in an Access List transaction"},accessListAddressCost:{v:2400,d:"Gas cost per storage key in an Access List transaction"}}},3074:{comment:"AUTH and AUTHCALL opcodes",url:"https://eips.ethereum.org/EIPS/eip-3074",status:E.Review,minimumHardfork:b.London,requiredEIPs:[],gasPrices:{auth:{v:3100,d:"Gas cost of the AUTH opcode"},authcall:{v:0,d:"Gas cost of the AUTHCALL opcode"},authcallValueTransfer:{v:6700,d:"Paid for CALL when the value transfer is non-zero"}}},3198:{comment:"BASEFEE opcode",url:"https://eips.ethereum.org/EIPS/eip-3198",status:E.Final,minimumHardfork:b.London,requiredEIPs:[],gasPrices:{basefee:{v:2,d:"Gas cost of the BASEFEE opcode"}}},3529:{comment:"Reduction in refunds",url:"https://eips.ethereum.org/EIPS/eip-3529",status:E.Final,minimumHardfork:b.Berlin,requiredEIPs:[2929],gasConfig:{maxRefundQuotient:{v:5,d:"Maximum refund quotient; max tx refund is min(tx.gasUsed/maxRefundQuotient, tx.gasRefund)"}},gasPrices:{selfdestructRefund:{v:0,d:"Refunded following a selfdestruct operation"},sstoreClearRefundEIP2200:{v:4800,d:"Once per SSTORE operation for clearing an originally existing storage slot"}}},3540:{comment:"EVM Object Format (EOF) v1",url:"https://eips.ethereum.org/EIPS/eip-3540",status:E.Review,minimumHardfork:b.London,requiredEIPs:[3541]},3541:{comment:"Reject new contracts starting with the 0xEF byte",url:"https://eips.ethereum.org/EIPS/eip-3541",status:E.Final,minimumHardfork:b.Berlin,requiredEIPs:[]},3554:{comment:"Difficulty Bomb Delay to December 1st 2021",url:"https://eips.ethereum.org/EIPS/eip-3554",status:E.Final,minimumHardfork:b.MuirGlacier,requiredEIPs:[],pow:{difficultyBombDelay:{v:95e5,d:"the amount of blocks to delay the difficulty bomb with"}}},3607:{comment:"Reject transactions from senders with deployed code",url:"https://eips.ethereum.org/EIPS/eip-3607",status:E.Final,minimumHardfork:b.Chainstart,requiredEIPs:[]},3651:{comment:"Warm COINBASE",url:"https://eips.ethereum.org/EIPS/eip-3651",status:E.Review,minimumHardfork:b.London,requiredEIPs:[2929]},3670:{comment:"EOF - Code Validation",url:"https://eips.ethereum.org/EIPS/eip-3670",status:"Review",minimumHardfork:b.London,requiredEIPs:[3540],gasConfig:{},gasPrices:{},vm:{},pow:{}},3675:{comment:"Upgrade consensus to Proof-of-Stake",url:"https://eips.ethereum.org/EIPS/eip-3675",status:E.Final,minimumHardfork:b.London,requiredEIPs:[]},3855:{comment:"PUSH0 instruction",url:"https://eips.ethereum.org/EIPS/eip-3855",status:E.Review,minimumHardfork:b.Chainstart,requiredEIPs:[],gasPrices:{push0:{v:2,d:"Base fee of the PUSH0 opcode"}}},3860:{comment:"Limit and meter initcode",url:"https://eips.ethereum.org/EIPS/eip-3860",status:E.Review,minimumHardfork:b.SpuriousDragon,requiredEIPs:[],gasPrices:{initCodeWordCost:{v:2,d:"Gas to pay for each word (32 bytes) of initcode when creating a contract"}},vm:{maxInitCodeSize:{v:49152,d:"Maximum length of initialization code when creating a contract"}}},4345:{comment:"Difficulty Bomb Delay to June 2022",url:"https://eips.ethereum.org/EIPS/eip-4345",status:E.Final,minimumHardfork:b.London,requiredEIPs:[],pow:{difficultyBombDelay:{v:107e5,d:"the amount of blocks to delay the difficulty bomb with"}}},4399:{comment:"Supplant DIFFICULTY opcode with PREVRANDAO",url:"https://eips.ethereum.org/EIPS/eip-4399",status:E.Review,minimumHardfork:b.London,requiredEIPs:[],gasPrices:{prevrandao:{v:2,d:"Base fee of the PREVRANDAO opcode (previously DIFFICULTY)"}}},4788:{comment:"Beacon block root in the EVM",url:"https://eips.ethereum.org/EIPS/eip-4788",status:E.Draft,minimumHardfork:b.Cancun,requiredEIPs:[],gasPrices:{},vm:{historicalRootsLength:{v:8191,d:"The modulo parameter of the beaconroot ring buffer in the beaconroot statefull precompile"}}},4844:{comment:"Shard Blob Transactions",url:"https://eips.ethereum.org/EIPS/eip-4844",status:E.Draft,minimumHardfork:b.Paris,requiredEIPs:[1559,2718,2930,4895],gasConfig:{blobGasPerBlob:{v:131072,d:"The base fee for blob gas per blob"},targetBlobGasPerBlock:{v:393216,d:"The target blob gas consumed per block"},maxblobGasPerBlock:{v:786432,d:"The max blob gas allowable per block"},blobGasPriceUpdateFraction:{v:3338477,d:"The denominator used in the exponential when calculating a blob gas price"}},gasPrices:{simpleGasPerBlob:{v:12e3,d:"The basic gas fee for each blob"},minBlobGasPrice:{v:1,d:"The minimum fee per blob gas"},kzgPointEvaluationGasPrecompilePrice:{v:5e4,d:"The fee associated with the point evaluation precompile"},blobhash:{v:3,d:"Base fee of the BLOBHASH opcode"}},sharding:{blobCommitmentVersionKzg:{v:1,d:"The number indicated a versioned hash is a KZG commitment"},fieldElementsPerBlob:{v:4096,d:"The number of field elements allowed per blob"}}},4895:{comment:"Beacon chain push withdrawals as operations",url:"https://eips.ethereum.org/EIPS/eip-4895",status:E.Review,minimumHardfork:b.Paris,requiredEIPs:[]},5133:{comment:"Delaying Difficulty Bomb to mid-September 2022",url:"https://eips.ethereum.org/EIPS/eip-5133",status:E.Draft,minimumHardfork:b.GrayGlacier,requiredEIPs:[],pow:{difficultyBombDelay:{v:114e5,d:"the amount of blocks to delay the difficulty bomb with"}}},5656:{comment:"MCOPY - Memory copying instruction",url:"https://eips.ethereum.org/EIPS/eip-5656",status:E.Draft,minimumHardfork:b.Shanghai,requiredEIPs:[],gasPrices:{mcopy:{v:3,d:"Base fee of the MCOPY opcode"}}},6780:{comment:"SELFDESTRUCT only in same transaction",url:"https://eips.ethereum.org/EIPS/eip-6780",status:E.Draft,minimumHardfork:b.London,requiredEIPs:[]},7516:{comment:"BLOBBASEFEE opcode",url:"https://eips.ethereum.org/EIPS/eip-7516",status:E.Draft,minimumHardfork:b.Paris,requiredEIPs:[4844],gasPrices:{blobbasefee:{v:2,d:"Gas cost of the BLOBBASEFEE opcode"}}}};(m=_||(_={})).Draft="draft",m.Review="review",m.Final="final";let Y={chainstart:{name:"chainstart",comment:"Start of the Ethereum main chain",url:"",status:_.Final,gasConfig:{minGasLimit:{v:5e3,d:"Minimum the gas limit may ever be"},gasLimitBoundDivisor:{v:1024,d:"The bound divisor of the gas limit, used in update calculations"},maxRefundQuotient:{v:2,d:"Maximum refund quotient; max tx refund is min(tx.gasUsed/maxRefundQuotient, tx.gasRefund)"}},gasPrices:{base:{v:2,d:"Gas base cost, used e.g. for ChainID opcode (Istanbul)"},exp:{v:10,d:"Base fee of the EXP opcode"},expByte:{v:10,d:"Times ceil(log256(exponent)) for the EXP instruction"},keccak256:{v:30,d:"Base fee of the SHA3 opcode"},keccak256Word:{v:6,d:"Once per word of the SHA3 operation's data"},sload:{v:50,d:"Base fee of the SLOAD opcode"},sstoreSet:{v:2e4,d:"Once per SSTORE operation if the zeroness changes from zero"},sstoreReset:{v:5e3,d:"Once per SSTORE operation if the zeroness does not change from zero"},sstoreRefund:{v:15e3,d:"Once per SSTORE operation if the zeroness changes to zero"},jumpdest:{v:1,d:"Base fee of the JUMPDEST opcode"},log:{v:375,d:"Base fee of the LOG opcode"},logData:{v:8,d:"Per byte in a LOG* operation's data"},logTopic:{v:375,d:"Multiplied by the * of the LOG*, per LOG transaction. e.g. LOG0 incurs 0 * c_txLogTopicGas, LOG4 incurs 4 * c_txLogTopicGas"},create:{v:32e3,d:"Base fee of the CREATE opcode"},call:{v:40,d:"Base fee of the CALL opcode"},callStipend:{v:2300,d:"Free gas given at beginning of call"},callValueTransfer:{v:9e3,d:"Paid for CALL when the value transfor is non-zero"},callNewAccount:{v:25e3,d:"Paid for CALL when the destination address didn't exist prior"},selfdestructRefund:{v:24e3,d:"Refunded following a selfdestruct operation"},memory:{v:3,d:"Times the address of the (highest referenced byte in memory + 1). NOTE: referencing happens on read, write and in instructions such as RETURN and CALL"},quadCoeffDiv:{v:512,d:"Divisor for the quadratic particle of the memory cost equation"},createData:{v:200,d:""},tx:{v:21e3,d:"Per transaction. NOTE: Not payable on data of calls between transactions"},txCreation:{v:32e3,d:"The cost of creating a contract via tx"},txDataZero:{v:4,d:"Per byte of data attached to a transaction that equals zero. NOTE: Not payable on data of calls between transactions"},txDataNonZero:{v:68,d:"Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions"},copy:{v:3,d:"Multiplied by the number of 32-byte words that are copied (round up) for any *COPY operation and added"},ecRecover:{v:3e3,d:""},sha256:{v:60,d:""},sha256Word:{v:12,d:""},ripemd160:{v:600,d:""},ripemd160Word:{v:120,d:""},identity:{v:15,d:""},identityWord:{v:3,d:""},stop:{v:0,d:"Base fee of the STOP opcode"},add:{v:3,d:"Base fee of the ADD opcode"},mul:{v:5,d:"Base fee of the MUL opcode"},sub:{v:3,d:"Base fee of the SUB opcode"},div:{v:5,d:"Base fee of the DIV opcode"},sdiv:{v:5,d:"Base fee of the SDIV opcode"},mod:{v:5,d:"Base fee of the MOD opcode"},smod:{v:5,d:"Base fee of the SMOD opcode"},addmod:{v:8,d:"Base fee of the ADDMOD opcode"},mulmod:{v:8,d:"Base fee of the MULMOD opcode"},signextend:{v:5,d:"Base fee of the SIGNEXTEND opcode"},lt:{v:3,d:"Base fee of the LT opcode"},gt:{v:3,d:"Base fee of the GT opcode"},slt:{v:3,d:"Base fee of the SLT opcode"},sgt:{v:3,d:"Base fee of the SGT opcode"},eq:{v:3,d:"Base fee of the EQ opcode"},iszero:{v:3,d:"Base fee of the ISZERO opcode"},and:{v:3,d:"Base fee of the AND opcode"},or:{v:3,d:"Base fee of the OR opcode"},xor:{v:3,d:"Base fee of the XOR opcode"},not:{v:3,d:"Base fee of the NOT opcode"},byte:{v:3,d:"Base fee of the BYTE opcode"},address:{v:2,d:"Base fee of the ADDRESS opcode"},balance:{v:20,d:"Base fee of the BALANCE opcode"},origin:{v:2,d:"Base fee of the ORIGIN opcode"},caller:{v:2,d:"Base fee of the CALLER opcode"},callvalue:{v:2,d:"Base fee of the CALLVALUE opcode"},calldataload:{v:3,d:"Base fee of the CALLDATALOAD opcode"},calldatasize:{v:2,d:"Base fee of the CALLDATASIZE opcode"},calldatacopy:{v:3,d:"Base fee of the CALLDATACOPY opcode"},codesize:{v:2,d:"Base fee of the CODESIZE opcode"},codecopy:{v:3,d:"Base fee of the CODECOPY opcode"},gasprice:{v:2,d:"Base fee of the GASPRICE opcode"},extcodesize:{v:20,d:"Base fee of the EXTCODESIZE opcode"},extcodecopy:{v:20,d:"Base fee of the EXTCODECOPY opcode"},blockhash:{v:20,d:"Base fee of the BLOCKHASH opcode"},coinbase:{v:2,d:"Base fee of the COINBASE opcode"},timestamp:{v:2,d:"Base fee of the TIMESTAMP opcode"},number:{v:2,d:"Base fee of the NUMBER opcode"},difficulty:{v:2,d:"Base fee of the DIFFICULTY opcode"},gaslimit:{v:2,d:"Base fee of the GASLIMIT opcode"},pop:{v:2,d:"Base fee of the POP opcode"},mload:{v:3,d:"Base fee of the MLOAD opcode"},mstore:{v:3,d:"Base fee of the MSTORE opcode"},mstore8:{v:3,d:"Base fee of the MSTORE8 opcode"},sstore:{v:0,d:"Base fee of the SSTORE opcode"},jump:{v:8,d:"Base fee of the JUMP opcode"},jumpi:{v:10,d:"Base fee of the JUMPI opcode"},pc:{v:2,d:"Base fee of the PC opcode"},msize:{v:2,d:"Base fee of the MSIZE opcode"},gas:{v:2,d:"Base fee of the GAS opcode"},push:{v:3,d:"Base fee of the PUSH opcode"},dup:{v:3,d:"Base fee of the DUP opcode"},swap:{v:3,d:"Base fee of the SWAP opcode"},callcode:{v:40,d:"Base fee of the CALLCODE opcode"},return:{v:0,d:"Base fee of the RETURN opcode"},invalid:{v:0,d:"Base fee of the INVALID opcode"},selfdestruct:{v:0,d:"Base fee of the SELFDESTRUCT opcode"}},vm:{stackLimit:{v:1024,d:"Maximum size of VM stack allowed"},callCreateDepth:{v:1024,d:"Maximum depth of call/create stack"},maxExtraDataSize:{v:32,d:"Maximum size extra data may be after Genesis"}},pow:{minimumDifficulty:{v:131072,d:"The minimum that the difficulty may ever be"},difficultyBoundDivisor:{v:2048,d:"The bound divisor of the difficulty, used in the update calculations"},durationLimit:{v:13,d:"The decision boundary on the blocktime duration used to determine whether difficulty should go up or not"},epochDuration:{v:3e4,d:"Duration between proof-of-work epochs"},timebombPeriod:{v:1e5,d:"Exponential difficulty timebomb period"},minerReward:{v:BigInt("5000000000000000000"),d:"the amount a miner get rewarded for mining a block"},difficultyBombDelay:{v:0,d:"the amount of blocks to delay the difficulty bomb with"}}},homestead:{name:"homestead",comment:"Homestead hardfork with protocol and network changes",url:"https://eips.ethereum.org/EIPS/eip-606",status:_.Final,gasPrices:{delegatecall:{v:40,d:"Base fee of the DELEGATECALL opcode"}}},dao:{name:"dao",comment:"DAO rescue hardfork",url:"https://eips.ethereum.org/EIPS/eip-779",status:_.Final},tangerineWhistle:{name:"tangerineWhistle",comment:"Hardfork with gas cost changes for IO-heavy operations",url:"https://eips.ethereum.org/EIPS/eip-608",status:_.Final,gasPrices:{sload:{v:200,d:"Once per SLOAD operation"},call:{v:700,d:"Once per CALL operation & message call transaction"},extcodesize:{v:700,d:"Base fee of the EXTCODESIZE opcode"},extcodecopy:{v:700,d:"Base fee of the EXTCODECOPY opcode"},balance:{v:400,d:"Base fee of the BALANCE opcode"},delegatecall:{v:700,d:"Base fee of the DELEGATECALL opcode"},callcode:{v:700,d:"Base fee of the CALLCODE opcode"},selfdestruct:{v:5e3,d:"Base fee of the SELFDESTRUCT opcode"}}},spuriousDragon:{name:"spuriousDragon",comment:"HF with EIPs for simple replay attack protection, EXP cost increase, state trie clearing, contract code size limit",url:"https://eips.ethereum.org/EIPS/eip-607",status:_.Final,gasPrices:{expByte:{v:50,d:"Times ceil(log256(exponent)) for the EXP instruction"}},vm:{maxCodeSize:{v:24576,d:"Maximum length of contract code"}}},byzantium:{name:"byzantium",comment:"Hardfork with new precompiles, instructions and other protocol changes",url:"https://eips.ethereum.org/EIPS/eip-609",status:_.Final,gasPrices:{modexpGquaddivisor:{v:20,d:"Gquaddivisor from modexp precompile for gas calculation"},ecAdd:{v:500,d:"Gas costs for curve addition precompile"},ecMul:{v:4e4,d:"Gas costs for curve multiplication precompile"},ecPairing:{v:1e5,d:"Base gas costs for curve pairing precompile"},ecPairingWord:{v:8e4,d:"Gas costs regarding curve pairing precompile input length"},revert:{v:0,d:"Base fee of the REVERT opcode"},staticcall:{v:700,d:"Base fee of the STATICCALL opcode"},returndatasize:{v:2,d:"Base fee of the RETURNDATASIZE opcode"},returndatacopy:{v:3,d:"Base fee of the RETURNDATACOPY opcode"}},pow:{minerReward:{v:BigInt("3000000000000000000"),d:"the amount a miner get rewarded for mining a block"},difficultyBombDelay:{v:3e6,d:"the amount of blocks to delay the difficulty bomb with"}}},constantinople:{name:"constantinople",comment:"Postponed hardfork including EIP-1283 (SSTORE gas metering changes)",url:"https://eips.ethereum.org/EIPS/eip-1013",status:_.Final,gasPrices:{netSstoreNoopGas:{v:200,d:"Once per SSTORE operation if the value doesn't change"},netSstoreInitGas:{v:2e4,d:"Once per SSTORE operation from clean zero"},netSstoreCleanGas:{v:5e3,d:"Once per SSTORE operation from clean non-zero"},netSstoreDirtyGas:{v:200,d:"Once per SSTORE operation from dirty"},netSstoreClearRefund:{v:15e3,d:"Once per SSTORE operation for clearing an originally existing storage slot"},netSstoreResetRefund:{v:4800,d:"Once per SSTORE operation for resetting to the original non-zero value"},netSstoreResetClearRefund:{v:19800,d:"Once per SSTORE operation for resetting to the original zero value"},shl:{v:3,d:"Base fee of the SHL opcode"},shr:{v:3,d:"Base fee of the SHR opcode"},sar:{v:3,d:"Base fee of the SAR opcode"},extcodehash:{v:400,d:"Base fee of the EXTCODEHASH opcode"},create2:{v:32e3,d:"Base fee of the CREATE2 opcode"}},pow:{minerReward:{v:BigInt("2000000000000000000"),d:"The amount a miner gets rewarded for mining a block"},difficultyBombDelay:{v:5e6,d:"the amount of blocks to delay the difficulty bomb with"}}},petersburg:{name:"petersburg",comment:"Aka constantinopleFix, removes EIP-1283, activate together with or after constantinople",url:"https://eips.ethereum.org/EIPS/eip-1716",status:_.Final,gasPrices:{netSstoreNoopGas:{v:null,d:"Removed along EIP-1283"},netSstoreInitGas:{v:null,d:"Removed along EIP-1283"},netSstoreCleanGas:{v:null,d:"Removed along EIP-1283"},netSstoreDirtyGas:{v:null,d:"Removed along EIP-1283"},netSstoreClearRefund:{v:null,d:"Removed along EIP-1283"},netSstoreResetRefund:{v:null,d:"Removed along EIP-1283"},netSstoreResetClearRefund:{v:null,d:"Removed along EIP-1283"}}},istanbul:{name:"istanbul",comment:"HF targeted for December 2019 following the Constantinople/Petersburg HF",url:"https://eips.ethereum.org/EIPS/eip-1679",status:_.Final,gasConfig:{},gasPrices:{blake2Round:{v:1,d:"Gas cost per round for the Blake2 F precompile"},ecAdd:{v:150,d:"Gas costs for curve addition precompile"},ecMul:{v:6e3,d:"Gas costs for curve multiplication precompile"},ecPairing:{v:45e3,d:"Base gas costs for curve pairing precompile"},ecPairingWord:{v:34e3,d:"Gas costs regarding curve pairing precompile input length"},txDataNonZero:{v:16,d:"Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions"},sstoreSentryGasEIP2200:{v:2300,d:"Minimum gas required to be present for an SSTORE call, not consumed"},sstoreNoopGasEIP2200:{v:800,d:"Once per SSTORE operation if the value doesn't change"},sstoreDirtyGasEIP2200:{v:800,d:"Once per SSTORE operation if a dirty value is changed"},sstoreInitGasEIP2200:{v:2e4,d:"Once per SSTORE operation from clean zero to non-zero"},sstoreInitRefundEIP2200:{v:19200,d:"Once per SSTORE operation for resetting to the original zero value"},sstoreCleanGasEIP2200:{v:5e3,d:"Once per SSTORE operation from clean non-zero to something else"},sstoreCleanRefundEIP2200:{v:4200,d:"Once per SSTORE operation for resetting to the original non-zero value"},sstoreClearRefundEIP2200:{v:15e3,d:"Once per SSTORE operation for clearing an originally existing storage slot"},balance:{v:700,d:"Base fee of the BALANCE opcode"},extcodehash:{v:700,d:"Base fee of the EXTCODEHASH opcode"},chainid:{v:2,d:"Base fee of the CHAINID opcode"},selfbalance:{v:5,d:"Base fee of the SELFBALANCE opcode"},sload:{v:800,d:"Base fee of the SLOAD opcode"}}},muirGlacier:{name:"muirGlacier",comment:"HF to delay the difficulty bomb",url:"https://eips.ethereum.org/EIPS/eip-2384",status:_.Final,pow:{difficultyBombDelay:{v:9e6,d:"the amount of blocks to delay the difficulty bomb with"}}},berlin:{name:"berlin",comment:"HF targeted for July 2020 following the Muir Glacier HF",url:"https://eips.ethereum.org/EIPS/eip-2070",status:_.Final,eips:[2565,2929,2718,2930]},london:{name:"london",comment:"HF targeted for July 2021 following the Berlin fork",url:"https://github.com/ethereum/eth1.0-specs/blob/master/network-upgrades/mainnet-upgrades/london.md",status:_.Final,eips:[1559,3198,3529,3541]},arrowGlacier:{name:"arrowGlacier",comment:"HF to delay the difficulty bomb",url:"https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/arrow-glacier.md",status:_.Final,eips:[4345]},grayGlacier:{name:"grayGlacier",comment:"Delaying the difficulty bomb to Mid September 2022",url:"https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/gray-glacier.md",status:_.Final,eips:[5133]},paris:{name:"paris",comment:"Hardfork to upgrade the consensus mechanism to Proof-of-Stake",url:"https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/merge.md",status:_.Final,consensus:{type:"pos",algorithm:"casper",casper:{}},eips:[3675,4399]},mergeForkIdTransition:{name:"mergeForkIdTransition",comment:"Pre-merge hardfork to fork off non-upgraded clients",url:"https://eips.ethereum.org/EIPS/eip-3675",status:_.Final,eips:[]},shanghai:{name:"shanghai",comment:"Next feature hardfork after the merge hardfork having withdrawals, warm coinbase, push0, limit/meter initcode",url:"https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/shanghai.md",status:_.Final,eips:[3651,3855,3860,4895]},cancun:{name:"cancun",comment:"Next feature hardfork after shanghai, includes proto-danksharding EIP 4844 blobs (still WIP hence not for production use), transient storage opcodes, parent beacon block root availability in EVM, selfdestruct only in same transaction, and blob base fee opcode",url:"https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/cancun.md",status:_.Final,eips:[1153,4844,4788,5656,6780,7516]}};function formatNonce(t){return t&&"0x0"!==t?(0,S.Lo)(t)?"0x"+(0,S.MT)(t).padStart(16,"0"):"0x"+t.padStart(16,"0"):"0x0000000000000000"}function parseGethParams(t,n=!0){let{name:o,config:i,difficulty:a,mixHash:c,gasLimit:u,coinbase:d,baseFeePerGas:f,excessBlobGas:m}=t,{extraData:g,timestamp:y,nonce:v}=t,w=Number(y),{chainId:E}=i;if(""===g&&(g="0x"),(0,S.Lo)(y)||(y=(0,S.I4)(parseInt(y))),18!==v.length&&(v=formatNonce(v)),i.eip155Block!==i.eip158Block)throw Error("EIP155 block number must equal EIP 158 block number since both are part of SpuriousDragon hardfork and the client only supports activating the full hardfork");let _={name:o,chainId:E,networkId:E,genesis:{timestamp:y,gasLimit:u,difficulty:a,nonce:v,extraData:g,mixHash:c,coinbase:d,baseFeePerGas:f,excessBlobGas:m},hardfork:void 0,hardforks:[],bootstrapNodes:[],consensus:void 0!==i.clique?{type:"poa",algorithm:"clique",clique:{period:i.clique.period??i.clique.blockperiodseconds,epoch:i.clique.epoch??i.clique.epochlength}}:{type:"pow",algorithm:"ethash",ethash:{}}},P={[b.Homestead]:{name:"homesteadBlock"},[b.Dao]:{name:"daoForkBlock"},[b.TangerineWhistle]:{name:"eip150Block"},[b.SpuriousDragon]:{name:"eip155Block"},[b.Byzantium]:{name:"byzantiumBlock"},[b.Constantinople]:{name:"constantinopleBlock"},[b.Petersburg]:{name:"petersburgBlock"},[b.Istanbul]:{name:"istanbulBlock"},[b.MuirGlacier]:{name:"muirGlacierBlock"},[b.Berlin]:{name:"berlinBlock"},[b.London]:{name:"londonBlock"},[b.MergeForkIdTransition]:{name:"mergeForkBlock",postMerge:n},[b.Shanghai]:{name:"shanghaiTime",postMerge:!0,isTimestamp:!0},[b.Cancun]:{name:"cancunTime",postMerge:!0,isTimestamp:!0}},A=Object.keys(P).reduce((t,n)=>(t[P[n].name]=n,t),{}),k=Object.keys(i).filter(t=>void 0!==A[t]&&void 0!==i[t]&&null!==i[t]);for(let t of(_.hardforks=k.map(t=>({name:A[t],block:!0===P[A[t]].isTimestamp||"number"!=typeof i[t]?null:i[t],timestamp:!0===P[A[t]].isTimestamp&&"number"==typeof i[t]?i[t]:void 0})).filter(t=>null!==t.block||void 0!==t.timestamp),_.hardforks))t.timestamp===w&&(t.timestamp=0);if(_.hardforks.sort(function(t,n){return(t.block??1/0)-(n.block??1/0)}),_.hardforks.sort(function(t,n){return(t.timestamp??w)-(n.timestamp??w)}),void 0!==i.terminalTotalDifficulty){let t={name:b.Paris,ttd:i.terminalTotalDifficulty,block:null},n=_.hardforks.findIndex(t=>P[t.name]?.postMerge===!0);-1!==n?_.hardforks.splice(n,0,t):_.hardforks.push(t)}let C=_.hardforks.length>0?_.hardforks.slice(-1)[0]:void 0;return _.hardfork=C?.name,_.hardforks.unshift({name:b.Chainstart,block:0}),_}function parseGethGenesis(t,n,o){try{let i=["config","difficulty","gasLimit","nonce","alloc"];if(i.some(n=>!(n in t))){let n=i.filter(n=>!(n in t));throw Error(`Invalid format, expected geth genesis field "${n}" missing`)}return void 0!==n&&(t.name=n),parseGethParams(t,o)}catch(t){throw Error(`Error parsing parameters file: ${t.message}`)}}let Common=class Common{constructor(t){this._eips=[],this._paramsCache={},this._activatedEIPsCache=[],this.events=new q.EventEmitter,this._customChains=t.customChains??[],this._chainParams=this.setChain(t.chain),this.DEFAULT_HARDFORK=this._chainParams.defaultHardfork??b.Shanghai,this.HARDFORK_CHANGES=this.hardforks().map(t=>[t.name,Y[t.name]]),this._hardfork=this.DEFAULT_HARDFORK,void 0!==t.hardfork&&this.setHardfork(t.hardfork),t.eips&&this.setEIPs(t.eips),0===Object.keys(this._paramsCache).length&&(this._buildParamsCache(),this._buildActivatedEIPsCache())}static custom(t,n={}){let o=n.baseChain??"mainnet",i={...Common._getChainParams(o)};if(i.name="custom-chain","string"!=typeof t)return new Common({chain:{...i,...t},...n});if(t===w.PolygonMainnet)return Common.custom({name:w.PolygonMainnet,chainId:137,networkId:137},n);if(t===w.PolygonMumbai)return Common.custom({name:w.PolygonMumbai,chainId:80001,networkId:80001},n);if(t===w.ArbitrumOne)return Common.custom({name:w.ArbitrumOne,chainId:42161,networkId:42161},n);if(t===w.xDaiChain)return Common.custom({name:w.xDaiChain,chainId:100,networkId:100},n);if(t===w.OptimisticKovan)return Common.custom({name:w.OptimisticKovan,chainId:69,networkId:69},{hardfork:b.Berlin,...n});if(t===w.OptimisticEthereum)return Common.custom({name:w.OptimisticEthereum,chainId:10,networkId:10},{hardfork:b.Berlin,...n});throw Error(`Custom chain ${t} not supported`)}static fromGethGenesis(t,{chain:n,eips:o,genesisHash:i,hardfork:a,mergeForkIdPostMerge:c}){let u=parseGethGenesis(t,n,c),d=new Common({chain:u.name??"custom",customChains:[u],eips:o,hardfork:a??u.hardfork});return void 0!==i&&d.setForkHashes(i),d}static isSupportedChainId(t){let n=this.getInitializedChains();return!!n.names[t.toString()]}static _getChainParams(t,n){let o=this.getInitializedChains(n);if("number"==typeof t||"bigint"==typeof t){if(t=t.toString(),o.names[t]){let n=o.names[t];return o[n]}throw Error(`Chain with ID ${t} not supported`)}if(void 0!==o[t])return o[t];throw Error(`Chain with name ${t} not supported`)}setChain(t){if("number"==typeof t||"bigint"==typeof t||"string"==typeof t)this._chainParams=Common._getChainParams(t,this._customChains);else if("object"==typeof t){if(this._customChains.length>0)throw Error("Chain must be a string, number, or bigint when initialized with customChains passed in");for(let n of["networkId","genesis","hardforks","bootstrapNodes"])if(!(n in t))throw Error(`Missing required chain parameter: ${n}`);this._chainParams=t}else throw Error("Wrong input format");for(let t of this.hardforks())if(void 0===t.block)throw Error("Hardfork cannot have undefined block number");return this._chainParams}setHardfork(t){let n=!1;for(let o of this.HARDFORK_CHANGES)o[0]===t&&(this._hardfork!==t&&(this._hardfork=t,this._buildParamsCache(),this._buildActivatedEIPsCache(),this.events.emit("hardforkChanged",t)),n=!0);if(!n)throw Error(`Hardfork with name ${t} not supported`)}getHardforkBy(t){let{blockNumber:n,timestamp:o,td:i}=t;n=(0,S.Fy)(n,S.qT.BigInt),i=(0,S.Fy)(i,S.qT.BigInt),o=(0,S.Fy)(o,S.qT.BigInt);let a=this.hardforks().filter(t=>null!==t.block||null!==t.ttd&&void 0!==t.ttd||void 0!==t.timestamp),c=a.findIndex(t=>null!==t.ttd&&void 0!==t.ttd),u=a.slice(c+1).findIndex(t=>null!==t.ttd&&void 0!==t.ttd);if(u>=0)throw Error("More than one merge hardforks found with ttd specified");let d=a.findIndex(t=>void 0!==n&&null!==t.block&&BigInt(t.block)>n||void 0!==o&&void 0!==t.timestamp&&t.timestamp>o);if(-1===d)d=a.length;else if(0===d)throw Error("Must have at least one hardfork at block 0");if(void 0===o){let t=a.slice(0,d).reverse().findIndex(t=>null!==t.block||void 0!==t.ttd);d-=t}if(null===a[d-=1].block&&void 0===a[d].timestamp)(null==i||BigInt(a[d].ttd)>i)&&(d-=1);else if(c>=0&&null!=i){if(d>=c&&BigInt(a[c].ttd)>i)throw Error("Maximum HF determined by total difficulty is lower than the block number HF");if(dMath.max(Number(n.timestamp??"0"),t),0);if(t>o)throw Error("Maximum HF determined by timestamp is lower than the block number/ttd HF");let n=a.slice(d+1).reduce((t,n)=>Math.min(Number(n.timestamp??o),t),Number(o));if(n=o}activeOnBlock(t){return this.hardforkIsActiveOnBlock(null,t)}hardforkGteHardfork(t,n){t=t??this._hardfork;let o=this.hardforks(),i=-1,a=-1,c=0;for(let u of o)u.name===t&&(i=c),u.name===n&&(a=c),c+=1;return i>=a&&-1!==a}gteHardfork(t){return this.hardforkGteHardfork(null,t)}hardforkBlock(t){t=t??this._hardfork;let n=this._getHardfork(t)?.block;return null==n?null:BigInt(n)}hardforkTimestamp(t){t=t??this._hardfork;let n=this._getHardfork(t)?.timestamp;return null==n?null:BigInt(n)}eipBlock(t){for(let n of this.HARDFORK_CHANGES){let o=n[1];if("eips"in o&&o.eips.includes(t))return this.hardforkBlock(n[0])}return null}hardforkTTD(t){t=t??this._hardfork;let n=this._getHardfork(t)?.ttd;return null==n?null:BigInt(n)}nextHardforkBlockOrTimestamp(t){t=t??this._hardfork;let n=this.hardforks(),o=n.findIndex(n=>n.name===t);if(t===b.Paris&&(o-=1),o<0)return null;let i=n[o].timestamp??n[o].block;i=null!=i?Number(i):null;let a=n.slice(o+1).find(t=>{let n=t.timestamp??t.block;return n=null!=n?Number(n):null,t.name!==b.Paris&&null!=n&&n!==i});if(void 0===a)return null;let c=a.timestamp??a.block;return null==c?null:BigInt(c)}_calcForkHash(t,n){let o=new Uint8Array(0),i=0;for(let n of this.hardforks()){let{block:a,timestamp:c,name:u}=n,d=c??a;if("number"==typeof(d=null!==d?Number(d):null)&&0!==d&&d!==i&&u!==b.Paris){let t=(0,S.nr)("0x"+d.toString(16).padStart(16,"0"));o=(0,S.eV)(o,t),i=d}if(n.name===t)break}let a=(0,S.eV)(n,o),c=(0,S.ci)((0,S.sO)(G(a)>>>0));return c}forkHash(t,n){t=t??this._hardfork;let o=this._getHardfork(t);if(null===o||o?.block===null&&o?.timestamp===void 0&&o?.ttd===void 0)throw Error("No fork hash calculation possible for future hardfork");if(o?.forkHash!==null&&o?.forkHash!==void 0)return o.forkHash;if(!n)throw Error("genesisHash required for forkHash calculation");return this._calcForkHash(t,n)}hardforkForForkHash(t){let n=this.hardforks().filter(n=>n.forkHash===t);return n.length>=1?n[n.length-1]:null}setForkHashes(t){for(let n of this.hardforks()){let o=n.timestamp??n.block;(null===n.forkHash||void 0===n.forkHash)&&(null!=o||void 0!==n.ttd)&&(n.forkHash=this.forkHash(n.name,t))}}genesis(){return this._chainParams.genesis}hardforks(){return this._chainParams.hardforks}bootstrapNodes(){return this._chainParams.bootstrapNodes}dnsNetworks(){return this._chainParams.dnsNetworks}hardfork(){return this._hardfork}chainId(){return BigInt(this._chainParams.chainId)}chainName(){return this._chainParams.name}networkId(){return BigInt(this._chainParams.networkId)}eips(){return this._eips}consensusType(){let t;let n=this.hardfork();for(let o of this.HARDFORK_CHANGES)if("consensus"in o[1]&&(t=o[1].consensus.type),o[0]===n)break;return t??this._chainParams.consensus.type}consensusAlgorithm(){let t;let n=this.hardfork();for(let o of this.HARDFORK_CHANGES)if("consensus"in o[1]&&(t=o[1].consensus.algorithm),o[0]===n)break;return t??this._chainParams.consensus.algorithm}consensusConfig(){let t;let n=this.hardfork();for(let o of this.HARDFORK_CHANGES){if("consensus"in o[1]){let n=o[1],i=n.consensus.algorithm;t=n.consensus[i]}if(o[0]===n)break}return t??this._chainParams.consensus[this.consensusAlgorithm()]??{}}copy(){let t=Object.assign(Object.create(Object.getPrototypeOf(this)),this);return t.events=new q.EventEmitter,t}static getInitializedChains(t){let n={};for(let[t,o]of Object.entries(g))n[o]=t.toLowerCase();let o={...K};if(t)for(let i of t){let{name:t}=i;n[i.chainId.toString()]=t,o[t]=i}return o.names=n,o}}},39321:function(t,n,o){function encode(t){if(Array.isArray(t)){let n=[],o=0;for(let i=0;it.length)throw Error("invalid RLP (safeSlice): end slice of Uint8Array out-of-bounds");return t.slice(n,o)}function decodeLength(t){if(0===t[0])throw Error("invalid RLP: extra zeros");return parseHexByte(bytesToHex(t))}function encodeLength(t,n){if(t<56)return Uint8Array.from([t+n]);let o=numberToHex(t),i=o.length/2,a=numberToHex(n+55+i);return Uint8Array.from(hexToBytes(a+o))}function decode(t,n=!1){if(null==t||0===t.length)return Uint8Array.from([]);let o=toBytes(t),i=_decode(o);if(n)return i;if(0!==i.remainder.length)throw Error("invalid RLP: remainder must be zero");return i.data}function _decode(t){let n,o,i,a,c;let u=[],d=t[0];if(d<=127)return{data:t.slice(0,1),remainder:t.slice(1)};if(d<=183){if(n=d-127,i=128===d?Uint8Array.from([]):safeSlice(t,1,n),2===n&&i[0]<128)throw Error("invalid RLP encoding: invalid prefix, single byte < 0x80 are not prefixed");return{data:i,remainder:t.slice(n)}}if(d<=191){if(o=d-182,t.length-1t.length)throw Error("invalid RLP: total length is larger than the data");for(a=safeSlice(t,o,i);a.length;)c=_decode(a),u.push(c.data),a=c.remainder;return{data:u,remainder:t.slice(i)}}}o.d(n,{yH:function(){return a}});let i=Array.from({length:256},(t,n)=>n.toString(16).padStart(2,"0"));function bytesToHex(t){let n="";for(let o=0;ot+n.length,0),o=new Uint8Array(n);for(let n=0,i=0;n=2&&"0"===t[0]&&"x"===t[1]}function stripHexPrefix(t){return"string"!=typeof t?t:isHexPrefixed(t)?t.slice(2):t}function toBytes(t){if(t instanceof Uint8Array)return t;if("string"==typeof t)return isHexPrefixed(t)?hexToBytes(padToEven(stripHexPrefix(t))):utf8ToBytes(t);if("number"==typeof t||"bigint"==typeof t)return t?hexToBytes(numberToHex(t)):Uint8Array.from([]);if(null==t)return Uint8Array.from([]);throw Error("toBytes: received unsupported type "+typeof t)}let a={encode,decode}},35848:function(t,n,o){o.d(n,{fx:function(){return eip4844Transaction_BlobEIP4844Transaction}});var i,a,c,u,d=o(39321),f=o(94433),m=o(42770);function isAccessListBytes(t){if(0===t.length)return!0;let n=t[0];return!!Array.isArray(n)}function isAccessList(t){return!isAccessListBytes(t)}function checkMaxInitCodeSize(t,n){let o=t.param("vm","maxInitCodeSize");if(o&&BigInt(n)>o)throw Error(`the initcode size of this transaction is too large: it is ${n} while the max is ${t.param("vm","maxInitCodeSize")}`)}(i=c||(c={}))[i.EIP155ReplayProtection=155]="EIP155ReplayProtection",i[i.EIP1559FeeMarket=1559]="EIP1559FeeMarket",i[i.EIP2718TypedTransaction=2718]="EIP2718TypedTransaction",i[i.EIP2930AccessLists=2930]="EIP2930AccessLists",(a=u||(u={}))[a.Legacy=0]="Legacy",a[a.AccessListEIP2930=1]="AccessListEIP2930",a[a.FeeMarketEIP1559=2]="FeeMarketEIP1559",a[a.BlobEIP4844=3]="BlobEIP4844";let util_AccessLists=class util_AccessLists{static getAccessListData(t){let n,o;if(isAccessList(t)){n=t;let i=[];for(let n=0;n0?new f.kL(v):void 0,this.value=(0,f.v3)((0,f.O0)(""===c?"0x":c)),this.data=(0,f.O0)(""===u?"0x":u),this.v=w.length>0?(0,f.v3)(w):void 0,this.r=E.length>0?(0,f.v3)(E):void 0,this.s=_.length>0?(0,f.v3)(_):void 0,this._validateCannotExceedMaxInteger({value:this.value,r:this.r,s:this.s}),this._validateCannotExceedMaxInteger({gasLimit:this.gasLimit},64),this._validateCannotExceedMaxInteger({nonce:this.nonce},64,!0);let S=void 0===this.to||null===this.to,P=n.allowUnlimitedInitCodeSize??!1,A=n.common??this._getCommon();S&&A.isActivatedEIP(3860)&&!1===P&&checkMaxInitCodeSize(A,this.data.length)}get type(){return this._type}supports(t){return this.activeCapabilities.includes(t)}getValidationErrors(){let t=[];return this.isSigned()&&!this.verifySignature()&&t.push("Invalid Signature"),this.getBaseFee()>this.gasLimit&&t.push(`gasLimit is too low. given ${this.gasLimit}, need at least ${this.getBaseFee()}`),t}isValid(){let t=this.getValidationErrors();return 0===t.length}getBaseFee(){let t=this.common.param("gasPrices","tx"),n=this.getDataFee();if(t&&(n+=t),this.common.gteHardfork("homestead")&&this.toCreationAddress()){let t=this.common.param("gasPrices","txCreation");t&&(n+=t)}return n}getDataFee(){let t=this.common.param("gasPrices","txDataZero"),n=this.common.param("gasPrices","txDataNonZero"),o=f.N$;for(let i=0;i-1&&this.activeCapabilities.splice(t,1)}return m}toJSON(){return{type:(0,f.Z4)(BigInt(this.type)),nonce:(0,f.Z4)(this.nonce),gasLimit:(0,f.Z4)(this.gasLimit),to:void 0!==this.to?this.to.toString():void 0,value:(0,f.Z4)(this.value),data:(0,f.ci)(this.data),v:void 0!==this.v?(0,f.Z4)(this.v):void 0,r:void 0!==this.r?(0,f.Z4)(this.r):void 0,s:void 0!==this.s?(0,f.Z4)(this.s):void 0}}_getCommon(t,n){if(void 0===n)return t?.copy()??new m.Gn({chain:this.DEFAULT_CHAIN});{let o=(0,f.v3)((0,f.O0)(n));if(t){if(t.chainId()!==o){let t=this._errorMsg("The chain ID does not match the chain ID of Common");throw Error(t)}return t.copy()}return m.Gn.isSupportedChainId(o)?new m.Gn({chain:o}):m.Gn.custom({name:"custom-chain",networkId:o,chainId:o},{baseChain:this.DEFAULT_CHAIN})}}_validateCannotExceedMaxInteger(t,n=256,o=!1){for(let[i,a]of Object.entries(t))switch(n){case 64:if(o){if(void 0!==a&&a>=f.np){let t=this._errorMsg(`${i} cannot equal or exceed MAX_UINT64 (2^64-1), given ${a}`);throw Error(t)}}else if(void 0!==a&&a>f.np){let t=this._errorMsg(`${i} cannot exceed MAX_UINT64 (2^64-1), given ${a}`);throw Error(t)}break;case 256:if(o){if(void 0!==a&&a>=f.E2){let t=this._errorMsg(`${i} cannot equal or exceed MAX_INTEGER (2^256-1), given ${a}`);throw Error(t)}}else if(void 0!==a&&a>f.E2){let t=this._errorMsg(`${i} cannot exceed MAX_INTEGER (2^256-1), given ${a}`);throw Error(t)}break;default:{let t=this._errorMsg("unimplemented bits value");throw Error(t)}}}static _validateNotArray(t){let n=["nonce","gasPrice","gasLimit","to","value","data","v","r","s","type","baseFee","maxFeePerGas","chainId"];for(let[o,i]of Object.entries(t))if(n.includes(o)&&Array.isArray(i))throw Error(`${o} cannot be an array`)}_getSharedErrorPostfix(){let t="";try{t=this.isSigned()?(0,f.ci)(this.hash()):"not available (unsigned)"}catch(n){t="error"}let n="";try{n=this.isSigned().toString()}catch(n){t="error"}let o="";try{o=this.common.hardfork()}catch(t){o="error"}return`tx type=${this.type} hash=${t} nonce=${this.nonce} value=${this.value} signed=${n} hf=${o}`}};var g=o(78589);function errorMsg(t,n){return`${n} (${t.errorStr()})`}function getDataFee(t,n){if(t.cache.dataFee&&t.cache.dataFee.hardfork===t.common.hardfork())return t.cache.dataFee.value;let o=baseTransaction_BaseTransaction.prototype.getDataFee.bind(t)()+(n??0n);return Object.isFrozen(t)&&(t.cache.dataFee={value:o,hardfork:t.common.hardfork()}),o}function hash(t){if(!t.isSigned()){let n=errorMsg(t,"Cannot call hash method if transaction is not signed");throw Error(n)}return Object.isFrozen(t)?(t.cache.hash||(t.cache.hash=(0,g.wn)(t.serialize())),t.cache.hash):(0,g.wn)(t.serialize())}function validateHighS(t){let{s:n}=t;if(t.common.gteHardfork("homestead")&&void 0!==n&&n>f.Sr){let n=errorMsg(t,"Invalid Signature: s-values greater than secp256k1n/2 are considered invalid");throw Error(n)}}function getSenderPublicKey(t){if(void 0!==t.cache.senderPubKey)return t.cache.senderPubKey;let n=t.getMessageToVerifySignature(),{v:o,r:i,s:a}=t;validateHighS(t);try{let u=(0,f.Js)(n,o,(0,f.XD)(i),(0,f.XD)(a),t.supports(c.EIP155ReplayProtection)?t.common.chainId():void 0);return Object.isFrozen(t)&&(t.cache.senderPubKey=u),u}catch(o){let n=errorMsg(t,"Invalid Signature");throw Error(n)}}function getHashedMessageToSign(t){return(0,g.wn)(t.getMessageToSign())}function serialize(t,n){return(0,f.eV)(util_txTypeBytes(t.type),d.yH.encode(n??t.raw()))}function validateYParity(t){let{v:n}=t;if(void 0!==n&&n!==f.N$&&n!==f.jm){let n=errorMsg(t,"The y-parity of the transaction should either be 0 or 1");throw Error(n)}}function eip2930_getDataFee(t){return getDataFee(t,BigInt(util_AccessLists.getDataFeeEIP2930(t.accessList,t.common)))}function getUpfrontCost(t,n){let o=t.maxPriorityFeePerGas,i=t.maxFeePerGas-n;return t.gasLimit*((o{let c;if(!(t.length===n.length&&n.length===o.length))throw Error("Number of blobVersionedHashes, blobs, and commitments not all equal");if(0===t.length)throw Error("Invalid transaction with empty blobs");try{c=f.V7.verifyBlobKzgProofBatch(n,o,i)}catch(t){throw Error(`KZG verification of blobs fail with error=${t}`)}if(!c)throw Error("KZG proof cannot be verified from blobs/commitments");for(let n=0;nf.E2){let t=this._errorMsg("gasLimit * maxFeePerGas cannot exceed MAX_INTEGER (2^256-1)");throw Error(t)}if(this.maxFeePerGas(0,f.O0)(t)),validateYParity(this),validateHighS(this),this.blobVersionedHashes)){if(32!==n.length){let t=this._errorMsg("versioned hash is invalid length");throw Error(t)}if(BigInt(n[0])!==this.common.param("sharding","blobCommitmentVersionKzg")){let t=this._errorMsg("versioned hash does not start with KZG commitment version");throw Error(t)}}if(this.blobVersionedHashes.length>16777216){let t=this._errorMsg("tx can contain at most 16777216 blobs");throw Error(t)}this.blobs=t.blobs?.map(t=>f.O0(t)),this.kzgCommitments=t.kzgCommitments?.map(t=>f.O0(t)),this.kzgProofs=t.kzgProofs?.map(t=>f.O0(t));let g=n?.freeze??!0;g&&Object.freeze(this)}static fromTxData(t,n){if(void 0!==t.blobsData){if(void 0!==t.blobs)throw Error("cannot have both raw blobs data and encoded blobs in constructor");if(void 0!==t.kzgCommitments)throw Error("cannot have both raw blobs data and KZG commitments in constructor");if(void 0!==t.blobVersionedHashes)throw Error("cannot have both raw blobs data and versioned hashes in constructor");if(void 0!==t.kzgProofs)throw Error("cannot have both raw blobs data and KZG proofs in constructor");t.blobs=(0,f.KR)(t.blobsData.reduce((t,n)=>t+n)),t.kzgCommitments=(0,f.PS)(t.blobs),t.blobVersionedHashes=(0,f.CW)(t.kzgCommitments),t.kzgProofs=(0,f.y9)(t.blobs,t.kzgCommitments)}return new eip4844Transaction_BlobEIP4844Transaction(t,n)}static minimalFromNetworkWrapper(t,n){let o=eip4844Transaction_BlobEIP4844Transaction.fromTxData({...t,blobs:void 0,kzgCommitments:void 0,kzgProofs:void 0},n);return o}static fromSerializedTx(t,n={}){if(!1===(0,f.hD)(t.subarray(0,1),util_txTypeBytes(u.BlobEIP4844)))throw Error(`Invalid serialized tx input: not an EIP-4844 transaction (wrong tx type, expected: ${u.BlobEIP4844}, received: ${(0,f.ci)(t.subarray(0,1))}`);let o=d.yH.decode(t.subarray(1));if(!Array.isArray(o))throw Error("Invalid serialized tx input: must be array");return eip4844Transaction_BlobEIP4844Transaction.fromValuesArray(o,n)}static fromValuesArray(t,n={}){if(11!==t.length&&14!==t.length)throw Error("Invalid EIP-4844 transaction. Only expecting 11 values (for unsigned tx) or 14 values (for signed tx).");let[o,i,a,c,u,d,m,g,b,y,v,w,E,_]=t;return this._validateNotArray({chainId:o,v:w}),(0,f.jY)({nonce:i,maxPriorityFeePerGas:a,maxFeePerGas:c,gasLimit:u,value:m,maxFeePerBlobGas:y,v:w,r:E,s:_}),new eip4844Transaction_BlobEIP4844Transaction({chainId:(0,f.v3)(o),nonce:i,maxPriorityFeePerGas:a,maxFeePerGas:c,gasLimit:u,to:d,value:m,data:g,accessList:b??[],maxFeePerBlobGas:y,blobVersionedHashes:v,v:void 0!==w?(0,f.v3)(w):void 0,r:E,s:_},n)}static fromSerializedBlobTxNetworkWrapper(t,n){if(!n||!n.common)throw Error("common instance required to validate versioned hashes");if(!1===(0,f.hD)(t.subarray(0,1),util_txTypeBytes(u.BlobEIP4844)))throw Error(`Invalid serialized tx input: not an EIP-4844 transaction (wrong tx type, expected: ${u.BlobEIP4844}, received: ${(0,f.ci)(t.subarray(0,1))}`);let o=d.yH.decode(t.subarray(1));if(4!==o.length)throw Error("Expected 4 values in the deserialized network transaction");let[i,a,c,m]=o,g=eip4844Transaction_BlobEIP4844Transaction.fromValuesArray(i,{...n,freeze:!1});if(void 0===g.to)throw Error("BlobEIP4844Transaction can not be send without a valid `to`");let b=Number(n.common.param("sharding","blobCommitmentVersionKzg"));validateBlobTransactionNetworkWrapper(g.blobVersionedHashes,a,c,m,b),g.blobs=a,g.kzgCommitments=c,g.kzgProofs=m;let y=n?.freeze??!0;return y&&Object.freeze(g),g}getDataFee(){return eip2930_getDataFee(this)}getUpfrontCost(t=f.N$){return getUpfrontCost(this,t)}raw(){return[(0,f.XD)(this.chainId),(0,f.XD)(this.nonce),(0,f.XD)(this.maxPriorityFeePerGas),(0,f.XD)(this.maxFeePerGas),(0,f.XD)(this.gasLimit),void 0!==this.to?this.to.bytes:new Uint8Array(0),(0,f.XD)(this.value),this.data,this.accessList,(0,f.XD)(this.maxFeePerBlobGas),this.blobVersionedHashes,void 0!==this.v?(0,f.XD)(this.v):new Uint8Array(0),void 0!==this.r?(0,f.XD)(this.r):new Uint8Array(0),void 0!==this.s?(0,f.XD)(this.s):new Uint8Array(0)]}serialize(){return serialize(this)}serializeNetworkWrapper(){if(void 0===this.blobs||void 0===this.kzgCommitments||void 0===this.kzgProofs)throw Error("cannot serialize network wrapper without blobs, KZG commitments and KZG proofs provided");return serialize(this,[this.raw(),this.blobs,this.kzgCommitments,this.kzgProofs])}getMessageToSign(){return serialize(this,this.raw().slice(0,11))}getHashedMessageToSign(){return getHashedMessageToSign(this)}hash(){return hash(this)}getMessageToVerifySignature(){return this.getHashedMessageToSign()}getSenderPublicKey(){return getSenderPublicKey(this)}toJSON(){let t=util_AccessLists.getAccessListJSON(this.accessList),n=super.toJSON();return{...n,chainId:(0,f.Z4)(this.chainId),maxPriorityFeePerGas:(0,f.Z4)(this.maxPriorityFeePerGas),maxFeePerGas:(0,f.Z4)(this.maxFeePerGas),accessList:t,maxFeePerBlobGas:(0,f.Z4)(this.maxFeePerBlobGas),blobVersionedHashes:this.blobVersionedHashes.map(t=>(0,f.ci)(t))}}_processSignature(t,n,o){let i={...this.txOptions,common:this.common};return eip4844Transaction_BlobEIP4844Transaction.fromTxData({chainId:this.chainId,nonce:this.nonce,maxPriorityFeePerGas:this.maxPriorityFeePerGas,maxFeePerGas:this.maxFeePerGas,gasLimit:this.gasLimit,to:this.to,value:this.value,data:this.data,accessList:this.accessList,v:t-f.Ym,r:(0,f.v3)(n),s:(0,f.v3)(o),maxFeePerBlobGas:this.maxFeePerBlobGas,blobVersionedHashes:this.blobVersionedHashes,blobs:this.blobs,kzgCommitments:this.kzgCommitments,kzgProofs:this.kzgProofs},i)}errorStr(){return this._getSharedErrorPostfix()+` maxFeePerGas=${this.maxFeePerGas} maxPriorityFeePerGas=${this.maxPriorityFeePerGas}`}_errorMsg(t){return errorMsg(this,t)}numBlobs(){return this.blobVersionedHashes.length}}},94433:function(t,n,o){o.d(n,{kL:function(){return address_Address},N$:function(){return em},jm:function(){return eg},Ym:function(){return ey},E2:function(){return eh},np:function(){return ef},Sr:function(){return ep},qT:function(){return f},Z4:function(){return bytes_bigIntToHex},XD:function(){return bytes_bigIntToUnpaddedBytes},PS:function(){return blobsToCommitments},y9:function(){return blobsToProofs},v3:function(){return bytes_bytesToBigInt},ci:function(){return bytes_bytesToHex},CW:function(){return commitmentsToVersionedHashes},h$:function(){return computeVersionedHash},eV:function(){return bytes_concatBytes},Js:function(){return ecrecover},v4:function(){return ecsign},hD:function(){return el.hD},KR:function(){return getBlobs},nr:function(){return bytes_hexToBytes},sO:function(){return intToBytes},I4:function(){return intToHex},Lo:function(){return internal_isHexPrefixed},V7:function(){return e_},fB:function(){return ex},V_:function(){return bytes_setLengthLeft},MT:function(){return internal_stripHexPrefix},O0:function(){return bytes_toBytes},Fy:function(){return types_toType},_K:function(){return unpadBytes},jY:function(){return validateNoLeadingZeroes}});var i,a,c,u,d,f,m={};o.r(m),o.d(m,{dQ:function(){return bitMask},ci:function(){return utils_bytesToHex},bytesToNumberBE:function(){return utils_bytesToNumberBE},ty:function(){return bytesToNumberLE},eV:function(){return utils_concatBytes},n$:function(){return createHmacDrbg},ql:function(){return utils_ensureBytes},hexToBytes:function(){return hexToBytes},tL:function(){return utils_numberToBytesBE},S5:function(){return numberToBytesLE},FF:function(){return utils_validateObject}});var g=o(91072),b=o(68209);function setBigUint64(t,n,o,i){if("function"==typeof t.setBigUint64)return t.setBigUint64(n,o,i);let a=BigInt(32),c=BigInt(4294967295),u=Number(o>>a&c),d=Number(o&c),f=i?4:0,m=i?0:4;t.setUint32(n+f,u,i),t.setUint32(n+m,d,i)}let SHA2=class SHA2 extends b.kb{constructor(t,n,o,i){super(),this.blockLen=t,this.outputLen=n,this.padOffset=o,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=(0,b.GL)(this.buffer)}update(t){g.ZP.exists(this);let{view:n,buffer:o,blockLen:i}=this;t=(0,b.O0)(t);let a=t.length;for(let c=0;ci-c&&(this.process(o,0),c=0);for(let t=c;tm.length)throw Error("_sha2: outputLen bigger than state");for(let t=0;tt&n^~t&o,Maj=(t,n,o)=>t&n^t&o^n&o,y=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),v=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),w=new Uint32Array(64);let SHA256=class SHA256 extends SHA2{constructor(){super(64,32,8,!1),this.A=0|v[0],this.B=0|v[1],this.C=0|v[2],this.D=0|v[3],this.E=0|v[4],this.F=0|v[5],this.G=0|v[6],this.H=0|v[7]}get(){let{A:t,B:n,C:o,D:i,E:a,F:c,G:u,H:d}=this;return[t,n,o,i,a,c,u,d]}set(t,n,o,i,a,c,u,d){this.A=0|t,this.B=0|n,this.C=0|o,this.D=0|i,this.E=0|a,this.F=0|c,this.G=0|u,this.H=0|d}process(t,n){for(let o=0;o<16;o++,n+=4)w[o]=t.getUint32(n,!1);for(let t=16;t<64;t++){let n=w[t-15],o=w[t-2],i=(0,b.np)(n,7)^(0,b.np)(n,18)^n>>>3,a=(0,b.np)(o,17)^(0,b.np)(o,19)^o>>>10;w[t]=a+w[t-7]+i+w[t-16]|0}let{A:o,B:i,C:a,D:c,E:u,F:d,G:f,H:m}=this;for(let t=0;t<64;t++){let n=(0,b.np)(u,6)^(0,b.np)(u,11)^(0,b.np)(u,25),g=m+n+Chi(u,d,f)+y[t]+w[t]|0,v=(0,b.np)(o,2)^(0,b.np)(o,13)^(0,b.np)(o,22),E=v+Maj(o,i,a)|0;m=f,f=d,d=u,u=c+g|0,c=a,a=i,i=o,o=g+E|0}o=o+this.A|0,i=i+this.B|0,a=a+this.C|0,c=c+this.D|0,u=u+this.E|0,d=d+this.F|0,f=f+this.G|0,m=m+this.H|0,this.set(o,i,a,c,u,d,f,m)}roundClean(){w.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}};let SHA224=class SHA224 extends SHA256{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}};let E=(0,b.hE)(()=>new SHA256);(0,b.hE)(()=>new SHA224),BigInt(0);let _=BigInt(1),S=BigInt(2),u8a=t=>t instanceof Uint8Array,P=Array.from({length:256},(t,n)=>n.toString(16).padStart(2,"0"));function utils_bytesToHex(t){if(!u8a(t))throw Error("Uint8Array expected");let n="";for(let o=0;ot+n.length,0)),o=0;return t.forEach(t=>{if(!u8a(t))throw Error("Uint8Array expected");n.set(t,o),o+=t.length}),n}let bitMask=t=>(S<new Uint8Array(t),u8fr=t=>Uint8Array.from(t);function createHmacDrbg(t,n,o){if("number"!=typeof t||t<2)throw Error("hashLen must be a number");if("number"!=typeof n||n<2)throw Error("qByteLen must be a number");if("function"!=typeof o)throw Error("hmacFn must be a function");let i=u8n(t),a=u8n(t),c=0,reset=()=>{i.fill(1),a.fill(0),c=0},h=(...t)=>o(a,i,...t),reseed=(t=u8n())=>{a=h(u8fr([0]),t),i=h(),0!==t.length&&(a=h(u8fr([1]),t),i=h())},gen=()=>{if(c++>=1e3)throw Error("drbg: tried 1000 values");let t=0,o=[];for(;t{let o;for(reset(),reseed(t);!(o=n(gen()));)reseed();return reset(),o}}let A={bigint:t=>"bigint"==typeof t,function:t=>"function"==typeof t,boolean:t=>"boolean"==typeof t,string:t=>"string"==typeof t,isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,n)=>n.Fp.isValid(t),hash:t=>"function"==typeof t&&Number.isSafeInteger(t.outputLen)};function utils_validateObject(t,n,o={}){let checkField=(n,o,i)=>{let a=A[o];if("function"!=typeof a)throw Error(`Invalid validator "${o}", expected function`);let c=t[n];if((!i||void 0!==c)&&!a(c,t))throw Error(`Invalid param ${String(n)}=${c} (${typeof c}), expected ${o}`)};for(let[t,o]of Object.entries(n))checkField(t,o,!1);for(let[t,n]of Object.entries(o))checkField(t,n,!0);return t}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let k=BigInt(0),C=BigInt(1),T=BigInt(2),N=BigInt(3),H=BigInt(4),D=BigInt(5),F=BigInt(8);function modular_mod(t,n){let o=t%n;return o>=k?o:n+o}function pow(t,n,o){if(o<=k||n 0");if(o===C)return k;let i=C;for(;n>k;)n&C&&(i=i*t%o),t=t*t%o,n>>=C;return i}function pow2(t,n,o){let i=t;for(;n-- >k;)i*=i,i%=o;return i}function invert(t,n){if(t===k||n<=k)throw Error(`invert: expected positive integers, got n=${t} mod=${n}`);let o=modular_mod(t,n),i=n,a=k,c=C,u=C,d=k;for(;o!==k;){let t=i/o,n=i%o,f=a-u*t,m=c-d*t;i=o,o=n,a=u,c=d,u=f,d=m}let f=i;if(f!==C)throw Error("invert: does not exist");return modular_mod(a,n)}function tonelliShanks(t){let n,o,i;let a=(t-C)/T;for(n=t-C,o=0;n%T===k;n/=T,o++);for(i=T;i(t[n]="function",t),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return utils_validateObject(t,n)}function FpPow(t,n,o){if(o 0");if(o===k)return t.ONE;if(o===C)return n;let i=t.ONE,a=n;for(;o>k;)o&C&&(i=t.mul(i,a)),a=t.sqr(a),o>>=C;return i}function FpInvertBatch(t,n){let o=Array(n.length),i=n.reduce((n,i,a)=>t.is0(i)?n:(o[a]=n,t.mul(n,i)),t.ONE),a=t.inv(i);return n.reduceRight((n,i,a)=>t.is0(i)?n:(o[a]=t.mul(n,o[a]),t.mul(n,i)),a),o}function nLength(t,n){let o=void 0!==n?n:t.toString(2).length;return{nBitLength:o,nByteLength:Math.ceil(o/8)}}function Field(t,n,o=!1,i={}){if(t<=k)throw Error(`Expected Fp ORDER > 0, got ${t}`);let{nBitLength:a,nByteLength:c}=nLength(t,n);if(c>2048)throw Error("Field lengths over 2048 bytes are not supported");let u=FpSqrt(t),d=Object.freeze({ORDER:t,BITS:a,BYTES:c,MASK:bitMask(a),ZERO:k,ONE:C,create:n=>modular_mod(n,t),isValid:n=>{if("bigint"!=typeof n)throw Error(`Invalid field element: expected bigint, got ${typeof n}`);return k<=n&&nt===k,isOdd:t=>(t&C)===C,neg:n=>modular_mod(-n,t),eql:(t,n)=>t===n,sqr:n=>modular_mod(n*n,t),add:(n,o)=>modular_mod(n+o,t),sub:(n,o)=>modular_mod(n-o,t),mul:(n,o)=>modular_mod(n*o,t),pow:(t,n)=>FpPow(d,t,n),div:(n,o)=>modular_mod(n*invert(o,t),t),sqrN:t=>t*t,addN:(t,n)=>t+n,subN:(t,n)=>t-n,mulN:(t,n)=>t*n,inv:n=>invert(n,t),sqrt:i.sqrt||(t=>u(d,t)),invertBatch:t=>FpInvertBatch(d,t),cmov:(t,n,o)=>o?n:t,toBytes:t=>o?numberToBytesLE(t,c):utils_numberToBytesBE(t,c),fromBytes:t=>{if(t.length!==c)throw Error(`Fp.fromBytes: expected ${c}, got ${t.length}`);return o?bytesToNumberLE(t):utils_bytesToNumberBE(t)}});return Object.freeze(d)}function hashToPrivateScalar(t,n,o=!1){t=utils_ensureBytes("privateHash",t);let i=t.length,a=nLength(n).nByteLength+8;if(a<24||i1024)throw Error(`hashToPrivateScalar: expected ${a}-1024 bytes of input, got ${i}`);let c=o?bytesToNumberLE(t):utils_bytesToNumberBE(t);return modular_mod(c,n-C)+C}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let G=BigInt(0),V=BigInt(1);function wNAF(t,n){let constTimeNegate=(t,n)=>{let o=n.negate();return t?o:n},opts=t=>({windows:Math.ceil(n/t)+1,windowSize:2**(t-1)});return{constTimeNegate,unsafeLadder(n,o){let i=t.ZERO,a=n;for(;o>G;)o&V&&(i=i.add(a)),a=a.double(),o>>=V;return i},precomputeWindow(t,n){let{windows:o,windowSize:i}=opts(n),a=[],c=t,u=c;for(let t=0;t>=g,a>c&&(a-=m,i+=V);let b=n+Math.abs(a)-1,y=t%2!=0,v=a<0;0===a?d=d.add(constTimeNegate(y,o[n])):u=u.add(constTimeNegate(v,o[b]))}return{p:u,f:d}},wNAFCached(t,n,o,i){let a=t._WINDOW_SIZE||1,c=n.get(t);return c||(c=this.precomputeWindow(t,a),1!==a&&n.set(t,i(c))),this.wNAF(a,c,o)}}}function validateBasic(t){return validateField(t.Fp),utils_validateObject(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...nLength(t.n,t.nBitLength),...t,p:t.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function validatePointOpts(t){let n=validateBasic(t);utils_validateObject(n,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});let{endo:o,Fp:i,a}=n;if(o){if(!i.eql(a,i.ZERO))throw Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof o||"bigint"!=typeof o.beta||"function"!=typeof o.splitScalar)throw Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...n})}let{bytesToNumberBE:W,hexToBytes:q}=m,K={Err:class extends Error{constructor(t=""){super(t)}},_parseInt(t){let{Err:n}=K;if(t.length<2||2!==t[0])throw new n("Invalid signature integer tag");let o=t[1],i=t.subarray(2,o+2);if(!o||i.length!==o)throw new n("Invalid signature integer: wrong length");if(128&i[0])throw new n("Invalid signature integer: negative");if(0===i[0]&&!(128&i[1]))throw new n("Invalid signature integer: unnecessary leading zero");return{d:W(i),l:t.subarray(o+2)}},toSig(t){let{Err:n}=K,o="string"==typeof t?q(t):t;if(!(o instanceof Uint8Array))throw Error("ui8a expected");let i=o.length;if(i<2||48!=o[0])throw new n("Invalid signature tag");if(o[1]!==i-2)throw new n("Invalid signature: incorrect length");let{d:a,l:c}=K._parseInt(o.subarray(2)),{d:u,l:d}=K._parseInt(c);if(d.length)throw new n("Invalid signature: left bytes after parsing");return{r:a,s:u}},hexFromSig(t){let slice=t=>8&Number.parseInt(t[0],16)?"00"+t:t,h=t=>{let n=t.toString(16);return 1&n.length?`0${n}`:n},n=slice(h(t.s)),o=slice(h(t.r)),i=n.length/2,a=o.length/2,c=h(i),u=h(a);return`30${h(a+i+4)}02${u}${o}02${c}${n}`}},Z=BigInt(0),Y=BigInt(1),J=(BigInt(2),BigInt(3));function weierstrassPoints(t){let n=validatePointOpts(t),{Fp:o}=n,i=n.toBytes||((t,n,i)=>{let a=n.toAffine();return utils_concatBytes(Uint8Array.from([4]),o.toBytes(a.x),o.toBytes(a.y))}),a=n.fromBytes||(t=>{let n=t.subarray(1),i=o.fromBytes(n.subarray(0,o.BYTES)),a=o.fromBytes(n.subarray(o.BYTES,2*o.BYTES));return{x:i,y:a}});function weierstrassEquation(t){let{a:i,b:a}=n,c=o.sqr(t),u=o.mul(c,t);return o.add(o.add(u,o.mul(t,i)),a)}if(!o.eql(o.sqr(n.Gy),weierstrassEquation(n.Gx)))throw Error("bad generator point: equation left != right");function isWithinCurveOrder(t){return"bigint"==typeof t&&Zo.eql(t,o.ZERO);return is0(n)&&is0(i)?Point.ZERO:new Point(n,i,o.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(t){let n=o.invertBatch(t.map(t=>t.pz));return t.map((t,o)=>t.toAffine(n[o])).map(Point.fromAffine)}static fromHex(t){let n=Point.fromAffine(a(utils_ensureBytes("pointHex",t)));return n.assertValidity(),n}static fromPrivateKey(t){return Point.BASE.multiply(normPrivateKeyToScalar(t))}_setWindowSize(t){this._WINDOW_SIZE=t,c.delete(this)}assertValidity(){if(this.is0()){if(n.allowInfinityPoint)return;throw Error("bad point: ZERO")}let{x:t,y:i}=this.toAffine();if(!o.isValid(t)||!o.isValid(i))throw Error("bad point: x or y not FE");let a=o.sqr(i),c=weierstrassEquation(t);if(!o.eql(a,c))throw Error("bad point: equation left != right");if(!this.isTorsionFree())throw Error("bad point: not in prime-order subgroup")}hasEvenY(){let{y:t}=this.toAffine();if(o.isOdd)return!o.isOdd(t);throw Error("Field doesn't support isOdd")}equals(t){assertPrjPoint(t);let{px:n,py:i,pz:a}=this,{px:c,py:u,pz:d}=t,f=o.eql(o.mul(n,d),o.mul(c,a)),m=o.eql(o.mul(i,d),o.mul(u,a));return f&&m}negate(){return new Point(this.px,o.neg(this.py),this.pz)}double(){let{a:t,b:i}=n,a=o.mul(i,J),{px:c,py:u,pz:d}=this,f=o.ZERO,m=o.ZERO,g=o.ZERO,b=o.mul(c,c),y=o.mul(u,u),v=o.mul(d,d),w=o.mul(c,u);return w=o.add(w,w),g=o.mul(c,d),g=o.add(g,g),f=o.mul(t,g),m=o.mul(a,v),m=o.add(f,m),f=o.sub(y,m),m=o.add(y,m),m=o.mul(f,m),f=o.mul(w,f),g=o.mul(a,g),v=o.mul(t,v),w=o.sub(b,v),w=o.mul(t,w),w=o.add(w,g),g=o.add(b,b),b=o.add(g,b),b=o.add(b,v),b=o.mul(b,w),m=o.add(m,b),v=o.mul(u,d),v=o.add(v,v),b=o.mul(v,w),f=o.sub(f,b),g=o.mul(v,y),g=o.add(g,g),new Point(f,m,g=o.add(g,g))}add(t){assertPrjPoint(t);let{px:i,py:a,pz:c}=this,{px:u,py:d,pz:f}=t,m=o.ZERO,g=o.ZERO,b=o.ZERO,y=n.a,v=o.mul(n.b,J),w=o.mul(i,u),E=o.mul(a,d),_=o.mul(c,f),S=o.add(i,a),P=o.add(u,d);S=o.mul(S,P),P=o.add(w,E),S=o.sub(S,P),P=o.add(i,c);let A=o.add(u,f);return P=o.mul(P,A),A=o.add(w,_),P=o.sub(P,A),A=o.add(a,c),m=o.add(d,f),A=o.mul(A,m),m=o.add(E,_),A=o.sub(A,m),b=o.mul(y,P),m=o.mul(v,_),b=o.add(m,b),m=o.sub(E,b),b=o.add(E,b),g=o.mul(m,b),E=o.add(w,w),E=o.add(E,w),_=o.mul(y,_),P=o.mul(v,P),E=o.add(E,_),_=o.sub(w,_),_=o.mul(y,_),P=o.add(P,_),w=o.mul(E,P),g=o.add(g,w),w=o.mul(A,P),m=o.mul(S,m),m=o.sub(m,w),w=o.mul(S,E),b=o.mul(A,b),new Point(m,g,b=o.add(b,w))}subtract(t){return this.add(t.negate())}is0(){return this.equals(Point.ZERO)}wNAF(t){return d.wNAFCached(this,c,t,t=>{let n=o.invertBatch(t.map(t=>t.pz));return t.map((t,o)=>t.toAffine(n[o])).map(Point.fromAffine)})}multiplyUnsafe(t){let i=Point.ZERO;if(t===Z)return i;if(assertGE(t),t===Y)return this;let{endo:a}=n;if(!a)return d.unsafeLadder(this,t);let{k1neg:c,k1:u,k2neg:f,k2:m}=a.splitScalar(t),g=i,b=i,y=this;for(;u>Z||m>Z;)u&Y&&(g=g.add(y)),m&Y&&(b=b.add(y)),y=y.double(),u>>=Y,m>>=Y;return c&&(g=g.negate()),f&&(b=b.negate()),b=new Point(o.mul(b.px,a.beta),b.py,b.pz),g.add(b)}multiply(t){let i,a;assertGE(t);let{endo:c}=n;if(c){let{k1neg:n,k1:u,k2neg:f,k2:m}=c.splitScalar(t),{p:g,f:b}=this.wNAF(u),{p:y,f:v}=this.wNAF(m);g=d.constTimeNegate(n,g),y=d.constTimeNegate(f,y),y=new Point(o.mul(y.px,c.beta),y.py,y.pz),i=g.add(y),a=b.add(v)}else{let{p:n,f:o}=this.wNAF(t);i=n,a=o}return Point.normalizeZ([i,a])[0]}multiplyAndAddUnsafe(t,n,o){let i=Point.BASE,mul=(t,n)=>n!==Z&&n!==Y&&t.equals(i)?t.multiply(n):t.multiplyUnsafe(n),a=mul(this,n).add(mul(t,o));return a.is0()?void 0:a}toAffine(t){let{px:n,py:i,pz:a}=this,c=this.is0();null==t&&(t=c?o.ONE:o.inv(a));let u=o.mul(n,t),d=o.mul(i,t),f=o.mul(a,t);if(c)return{x:o.ZERO,y:o.ZERO};if(!o.eql(f,o.ONE))throw Error("invZ was invalid");return{x:u,y:d}}isTorsionFree(){let{h:t,isTorsionFree:o}=n;if(t===Y)return!0;if(o)return o(Point,this);throw Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h:t,clearCofactor:o}=n;return t===Y?this:o?o(Point,this):this.multiplyUnsafe(n.h)}toRawBytes(t=!0){return this.assertValidity(),i(Point,this,t)}toHex(t=!0){return utils_bytesToHex(this.toRawBytes(t))}};Point.BASE=new Point(n.Gx,n.Gy,o.ONE),Point.ZERO=new Point(o.ZERO,o.ONE,o.ZERO);let u=n.nBitLength,d=wNAF(Point,n.endo?Math.ceil(u/2):u);return{CURVE:n,ProjectivePoint:Point,normPrivateKeyToScalar,weierstrassEquation,isWithinCurveOrder}}function validateOpts(t){let n=validateBasic(t);return utils_validateObject(n,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...n})}function weierstrass(t){let n=validateOpts(t),{Fp:o,n:i}=n,a=o.BYTES+1,c=2*o.BYTES+1;function isValidFieldElement(t){return Zutils_bytesToHex(utils_numberToBytesBE(t,n.nByteLength));function isBiggerThanHalfOrder(t){let n=i>>Y;return t>n}function normalizeS(t){return isBiggerThanHalfOrder(t)?modN(-t):t}let slcNum=(t,n,o)=>utils_bytesToNumberBE(t.slice(n,o));let Signature=class Signature{constructor(t,n,o){this.r=t,this.s=n,this.recovery=o,this.assertValidity()}static fromCompact(t){let o=n.nByteLength;return new Signature(slcNum(t=utils_ensureBytes("compactSignature",t,2*o),0,o),slcNum(t,o,2*o))}static fromDER(t){let{r:n,s:o}=K.toSig(utils_ensureBytes("DER",t));return new Signature(n,o)}assertValidity(){if(!m(this.r))throw Error("r must be 0 < r < CURVE.n");if(!m(this.s))throw Error("s must be 0 < s < CURVE.n")}addRecoveryBit(t){return new Signature(this.r,this.s,t)}recoverPublicKey(t){let{r:a,s:c,recovery:d}=this,f=b(utils_ensureBytes("msgHash",t));if(null==d||![0,1,2,3].includes(d))throw Error("recovery id invalid");let m=2===d||3===d?a+n.n:a;if(m>=o.ORDER)throw Error("recovery id 2 or 3 invalid");let g=(1&d)==0?"02":"03",y=u.fromHex(g+numToNByteStr(m)),v=invert(m,i),w=modN(-f*v),E=modN(c*v),_=u.BASE.multiplyAndAddUnsafe(y,w,E);if(!_)throw Error("point at infinify");return _.assertValidity(),_}hasHighS(){return isBiggerThanHalfOrder(this.s)}normalizeS(){return this.hasHighS()?new Signature(this.r,modN(-this.s),this.recovery):this}toDERRawBytes(){return hexToBytes(this.toDERHex())}toDERHex(){return K.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return hexToBytes(this.toCompactHex())}toCompactHex(){return numToNByteStr(this.r)+numToNByteStr(this.s)}};function getPublicKey(t,n=!0){return u.fromPrivateKey(t).toRawBytes(n)}function isProbPub(t){let n=t instanceof Uint8Array,o="string"==typeof t,i=(n||o)&&t.length;return n?i===a||i===c:o?i===2*a||i===2*c:t instanceof u}function getSharedSecret(t,n,o=!0){if(isProbPub(t))throw Error("first arg must be private key");if(!isProbPub(n))throw Error("second arg must be public key");let i=u.fromHex(n);return i.multiply(d(t)).toRawBytes(o)}let g=n.bits2int||function(t){let o=utils_bytesToNumberBE(t),i=8*t.length-n.nBitLength;return i>0?o>>BigInt(i):o},b=n.bits2int_modN||function(t){return modN(g(t))},y=bitMask(n.nBitLength);function int2octets(t){if("bigint"!=typeof t)throw Error("bigint expected");if(!(Z<=t&&tt in c))throw Error("sign() legacy options not supported");let{hash:f,randomBytes:y}=n,{lowS:w,prehash:E,extraEntropy:_}=c;null==w&&(w=!0),t=utils_ensureBytes("msgHash",t),E&&(t=utils_ensureBytes("prehashed msgHash",f(t)));let S=b(t),P=d(a),A=[int2octets(P),int2octets(S)];if(null!=_){let t=!0===_?y(o.BYTES):_;A.push(utils_ensureBytes("extraEntropy",t,o.BYTES))}let k=utils_concatBytes(...A);return{seed:k,k2sig:function(t){let n=g(t);if(!m(n))return;let o=invert(n,i),a=u.BASE.multiply(n).toAffine(),c=modN(a.x);if(c===Z)return;let d=modN(o*modN(S+c*P));if(d===Z)return;let f=(a.x===c?0:2)|Number(a.y&Y),b=d;return w&&isBiggerThanHalfOrder(d)&&(b=normalizeS(d),f^=1),new Signature(c,b,f)}}}let v={lowS:n.lowS,prehash:!1},w={lowS:n.lowS,prehash:!1};function sign(t,o,i=v){let{seed:a,k2sig:c}=prepSig(t,o,i),u=createHmacDrbg(n.hash.outputLen,n.nByteLength,n.hmac);return u(a,c)}function verify(t,o,a,c=w){let d,f;if(o=utils_ensureBytes("msgHash",o),a=utils_ensureBytes("publicKey",a),"strict"in c)throw Error("options.strict was renamed to lowS");let{lowS:m,prehash:g}=c;try{if("string"==typeof t||t instanceof Uint8Array)try{f=Signature.fromDER(t)}catch(n){if(!(n instanceof K.Err))throw n;f=Signature.fromCompact(t)}else if("object"==typeof t&&"bigint"==typeof t.r&&"bigint"==typeof t.s){let{r:n,s:o}=t;f=new Signature(n,o)}else throw Error("PARSE");d=u.fromHex(a)}catch(t){if("PARSE"===t.message)throw Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(m&&f.hasHighS())return!1;g&&(o=n.hash(o));let{r:y,s:v}=f,E=b(o),_=invert(v,i),S=modN(E*_),P=modN(y*_),A=u.BASE.multiplyAndAddUnsafe(d,S,P)?.toAffine();if(!A)return!1;let k=modN(A.x);return k===y}return u.BASE._setWindowSize(8),{CURVE:n,getPublicKey,getSharedSecret,sign,verify,ProjectivePoint:u,Signature,utils:{isValidPrivateKey(t){try{return d(t),!0}catch(t){return!1}},normPrivateKeyToScalar:d,randomPrivateKey:()=>{let t=n.randomBytes(o.BYTES+8),a=hashToPrivateScalar(t,i);return utils_numberToBytesBE(a,n.nByteLength)},precompute:(t=8,n=u.BASE)=>(n._setWindowSize(t),n.multiply(BigInt(3)),n)}}}BigInt(4);let HMAC=class HMAC extends b.kb{constructor(t,n){super(),this.finished=!1,this.destroyed=!1,g.ZP.hash(t);let o=(0,b.O0)(n);if(this.iHash=t.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 i=this.blockLen,a=new Uint8Array(i);a.set(o.length>i?t.create().update(o).digest():o);for(let t=0;tnew HMAC(t,n).update(o).digest();/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function getHash(t){return{hash:t,hmac:(n,...o)=>hmac(t,n,(0,b.eV)(...o)),randomBytes:b.O6}}function createCurve(t,n){let create=n=>weierstrass({...t,...getHash(n)});return Object.freeze({...create(n),create})}hmac.create=(t,n)=>new HMAC(t,n);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let Q=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),ee=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),et=BigInt(1),er=BigInt(2),divNearest=(t,n)=>(t+n/er)/n;function sqrtMod(t){let n=BigInt(3),o=BigInt(6),i=BigInt(11),a=BigInt(22),c=BigInt(23),u=BigInt(44),d=BigInt(88),f=t*t*t%Q,m=f*f*t%Q,g=pow2(m,n,Q)*m%Q,b=pow2(g,n,Q)*m%Q,y=pow2(b,er,Q)*f%Q,v=pow2(y,i,Q)*y%Q,w=pow2(v,a,Q)*v%Q,E=pow2(w,u,Q)*w%Q,_=pow2(E,d,Q)*E%Q,S=pow2(_,u,Q)*w%Q,P=pow2(S,n,Q)*m%Q,A=pow2(P,c,Q)*v%Q,k=pow2(A,o,Q)*f%Q,C=pow2(k,er,Q);if(!en.eql(en.sqr(C),t))throw Error("Cannot find square root");return C}let en=Field(Q,void 0,void 0,{sqrt:sqrtMod}),eo=createCurve({a:BigInt(0),b:BigInt(7),Fp:en,n:ee,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:t=>{let n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),o=-et*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),a=BigInt("0x100000000000000000000000000000000"),c=divNearest(n*t,ee),u=divNearest(-o*t,ee),d=modular_mod(t-c*n-u*i,ee),f=modular_mod(-c*o-u*n,ee),m=d>a,g=f>a;if(m&&(d=ee-d),g&&(f=ee-f),d>a||f>a)throw Error("splitScalar: Endomorphism failed, k="+t);return{k1neg:m,k1:d,k2neg:g,k2:f}}}},E),ei=BigInt(0),fe=t=>"bigint"==typeof t&&eit.charCodeAt(0)));o=concatBytes(n,n),ea[t]=o}return sha256(concatBytes(o,...n))}let modP=t=>mod(t,Q),modN=t=>mod(t,ee),es=eo.ProjectivePoint;var el=o(17070);function internal_isHexPrefixed(t){if("string"!=typeof t)throw Error(`[isHexPrefixed] input must be type 'string', received type ${typeof t}`);return"0"===t[0]&&"x"===t[1]}let internal_stripHexPrefix=t=>{if("string"!=typeof t)throw Error(`[stripHexPrefix] input must be type 'string', received ${typeof t}`);return internal_isHexPrefixed(t)?t.slice(2):t};function padToEven(t){let n=t;if("string"!=typeof n)throw Error(`[padToEven] value must be type 'string', received ${typeof n}`);return n.length%2&&(n=`0${n}`),n}function internal_isHexString(t,n){return"string"==typeof t&&!!t.match(/^0x[0-9A-Fa-f]*$/)&&(void 0===n||!(n>0)||t.length===2+2*n)}let helpers_assertIsBytes=function(t){if(!(t instanceof Uint8Array)){let n=`This method only supports Uint8Array but input was: ${t}`;throw Error(n)}},helpers_assertIsString=function(t){if("string"!=typeof t){let n=`This method only supports strings but input was: ${t}`;throw Error(n)}},ec=BigInt(0),unprefixedHexToBytes=t=>{if("0x"!==t.slice(0,2))return(0,el.nr)(padToEven(t));throw Error("hex string is prefixed with 0x, should be unprefixed")},eu=Array.from({length:256},(t,n)=>n.toString(16).padStart(2,"0")),bytes_bytesToHex=t=>{let n="0x";if(void 0===t||0===t.length)return n;for(let o of t)n+=eu[o];return n},ed=[];for(let t=0;t<=65535;t++)ed[t]=BigInt(t);let bytes_bytesToBigInt=t=>{let n=bytes_bytesToHex(t);return"0x"===n?ec:4===n.length?ed[t[0]]:6===n.length?ed[256*t[0]+t[1]]:BigInt(n)},bytes_hexToBytes=t=>{if("string"!=typeof t)throw Error(`hex argument type ${typeof t} must be of type string`);if(!t.startsWith("0x"))throw Error(`prefixed hex input should start with 0x, got ${t.substring(0,2)}`);(t=t.slice(2)).length%2!=0&&(t=padToEven(t));let n=t.length/2,o=new Uint8Array(n);for(let i=0;i{if(!Number.isSafeInteger(t)||t<0)throw Error(`Received an invalid integer type: ${t}`);return`0x${t.toString(16)}`},intToBytes=t=>{let n=intToHex(t);return bytes_hexToBytes(n)},bigIntToBytes=t=>bytes_toBytes("0x"+padToEven(t.toString(16))),bytes_zeros=t=>new Uint8Array(t),setLength=(t,n,o)=>o?t.length(helpers_assertIsBytes(t),setLength(t,n,!1)),stripZeros=t=>{let n=t[0];for(;t.length>0&&"0"===n.toString();)n=(t=t.slice(1))[0];return t},unpadBytes=t=>(helpers_assertIsBytes(t),stripZeros(t)),bytes_toBytes=t=>{if(null==t)return new Uint8Array;if(Array.isArray(t)||t instanceof Uint8Array)return Uint8Array.from(t);if("string"==typeof t){if(!internal_isHexString(t))throw Error(`Cannot convert string to Uint8Array. toBytes only supports 0x-prefixed hex strings and this string was given: ${t}`);return bytes_hexToBytes(t)}if("number"==typeof t)return intToBytes(t);if("bigint"==typeof t){if(t{for(let[n,o]of Object.entries(t))if(void 0!==o&&o.length>0&&0===o[0])throw Error(`${n} cannot have leading zeroes, received: ${bytes_bytesToHex(o)}`)},bytes_bigIntToHex=t=>"0x"+t.toString(16),bytes_bigIntToUnpaddedBytes=t=>unpadBytes(bigIntToBytes(t)),bytes_concatBytes=(...t)=>{if(1===t.length)return t[0];let n=t.reduce((t,n)=>t+n.length,0),o=new Uint8Array(n);for(let n=0,i=0;n=em&&t<=n}toString(){return bytes_bytesToHex(this.bytes)}toBytes(){return new Uint8Array(this.bytes)}};function types_toType(t,n){if(null===t)return null;if(void 0===t)return;if("string"!=typeof t||internal_isHexString(t)){if("number"==typeof t&&!Number.isSafeInteger(t))throw Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)")}else throw Error(`A string must be provided with a 0x-prefix, given: ${t}`);let o=bytes_toBytes(t);switch(n){case f.Uint8Array:return o;case f.BigInt:return bytes_bytesToBigInt(o);case f.Number:{let t=bytes_bytesToBigInt(o);if(t>BigInt(Number.MAX_SAFE_INTEGER))throw Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return Number(t)}case f.PrefixedHexString:return bytes_bytesToHex(o);default:throw Error("unknown outputType")}}function ecsign(t,n,o){let i=eo.sign(t,n),a=i.toCompactRawBytes(),c=a.slice(0,32),u=a.slice(32,64),d=void 0===o?BigInt(i.recovery+27):BigInt(i.recovery+35)+BigInt(o)*eb;return{r:c,s:u,v:d}}function calculateSigRecovery(t,n){return t===em||t===eg?t:void 0===n?t-ey:t-(n*eb+BigInt(35))}function isValidSigRecovery(t){return t===em||t===eg}(i=u||(u={})).String="string",i.Bytes="view",i.Number="number",(a=d||(d={})).String="string",a.Bytes="view",a.JSON="json",(c=f||(f={}))[c.Number=0]="Number",c[c.BigInt=1]="BigInt",c[c.Uint8Array=2]="Uint8Array",c[c.PrefixedHexString=3]="PrefixedHexString";let ecrecover=function(t,n,o,i,a){let c=bytes_concatBytes(bytes_setLengthLeft(o,32),bytes_setLengthLeft(i,32)),u=calculateSigRecovery(n,a);if(!isValidSigRecovery(u))throw Error("Invalid signature v value");let d=eo.Signature.fromCompact(c).addRecoveryBit(Number(u)),f=d.recoverPublicKey(t);return f.toRawBytes(!1).slice(1)};o(68495);let eE=(0,el.gn)(E);function kzgNotLoaded(){throw Error("kzg library not loaded")}let e_={loadTrustedSetup:kzgNotLoaded,blobToKzgCommitment:kzgNotLoaded,computeBlobKzgProof:kzgNotLoaded,verifyKzgProof:kzgNotLoaded,verifyBlobKzgProofBatch:kzgNotLoaded};function get_padded(t,n){let o=new Uint8Array(131072*n).fill(0);return o.set(t),o[t.byteLength]=128,o}function get_blob(t){let n=new Uint8Array(131072);for(let o=0;o<4096;o++){let i=new Uint8Array(32);i.set(t.subarray(31*o,(o+1)*31),0),n.set(i,32*o)}return n}let getBlobs=t=>{let n=(0,el.iY)(t),o=n.byteLength;if(0===o)throw Error("invalid blob data");if(o>262143)throw Error("blob data is too large");let i=Math.ceil(o/131072),a=get_padded(n,i),c=[];for(let t=0;t{let n=[];for(let o of t)n.push(e_.blobToKzgCommitment(o));return n},blobsToProofs=(t,n)=>{let o=t.map((t,o)=>e_.computeBlobKzgProof(t,n[o]));return o},computeVersionedHash=(t,n)=>{let o=new Uint8Array(32);return o.set([n],0),o.set(eE(t).subarray(1),1),o},commitmentsToVersionedHashes=t=>{let n=[];for(let o of t)n.push(computeVersionedHash(o,1));return n}},91072:function(t,n,o){function number(t){if(!Number.isSafeInteger(t)||t<0)throw Error(`Wrong positive integer: ${t}`)}function bool(t){if("boolean"!=typeof t)throw Error(`Expected boolean, not ${t}`)}function bytes(t,...n){if(!(t instanceof Uint8Array))throw Error("Expected Uint8Array");if(n.length>0&&!n.includes(t.length))throw Error(`Expected Uint8Array of length ${n}, not of length=${t.length}`)}function hash(t){if("function"!=typeof t||"function"!=typeof t.create)throw Error("Hash should be wrapped by utils.wrapConstructor");number(t.outputLen),number(t.blockLen)}function exists(t,n=!0){if(t.destroyed)throw Error("Hash instance has been destroyed");if(n&&t.finished)throw Error("Hash#digest() has already been called")}function output(t,n){bytes(t);let o=n.outputLen;if(t.lengtht instanceof Uint8Array,u32=t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4)),createView=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),rotr=(t,n)=>t<<32-n|t>>>n,a=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];if(!a)throw Error("Non little-endian hardware is not supported");function hexToBytes(t){if("string"!=typeof t)throw Error("hex string expected, got "+typeof t);let n=t.length;if(n%2)throw Error("padded hex string expected, got unpadded hex of length "+n);let o=new Uint8Array(n/2);for(let n=0;nt+n.length,0)),o=0;return t.forEach(t=>{if(!u8a(t))throw Error("Uint8Array expected");n.set(t,o),o+=t.length}),n}Array.from({length:256},(t,n)=>n.toString(16).padStart(2,"0"));let Hash=class Hash{clone(){return this._cloneInto()}};function wrapConstructor(t){let hashC=n=>t().update(toBytes(n)).digest(),n=t();return hashC.outputLen=n.outputLen,hashC.blockLen=n.blockLen,hashC.create=()=>t(),hashC}function wrapXOFConstructorWithOpts(t){let hashC=(n,o)=>t(o).update(toBytes(n)).digest(),n=t({});return hashC.outputLen=n.outputLen,hashC.blockLen=n.blockLen,hashC.create=n=>t(n),hashC}function randomBytes(t=32){if(i&&"function"==typeof i.getRandomValues)return i.getRandomValues(new Uint8Array(t));throw Error("crypto.getRandomValues must be defined")}},30682:function(t,n,o){let i;function _extends(){return(_extends=Object.assign?Object.assign.bind():function(t){for(var n=1;nt.forEach(t=>$6ed0406888f73fc4$var$setRef(t,n))}function $6ed0406888f73fc4$export$c7b2cbe3552a0d05(...t){return(0,d.useCallback)($6ed0406888f73fc4$export$43e446d32b3d21af(...t),t)}function $c512c27ab02ef895$export$50c7b4e9d9f19c1(t,n=[]){let o=[];function $c512c27ab02ef895$export$fd42f52fd3ae1109(n,i){let a=(0,d.createContext)(i),c=o.length;function Provider(n){let{scope:o,children:i,...u}=n,f=(null==o?void 0:o[t][c])||a,m=(0,d.useMemo)(()=>u,Object.values(u));return(0,d.createElement)(f.Provider,{value:m},i)}function useContext(o,u){let f=(null==u?void 0:u[t][c])||a,m=(0,d.useContext)(f);if(m)return m;if(void 0!==i)return i;throw Error(`\`${o}\` must be used within \`${n}\``)}return o=[...o,i],Provider.displayName=n+"Provider",[Provider,useContext]}let createScope=()=>{let n=o.map(t=>(0,d.createContext)(t));return function(o){let i=(null==o?void 0:o[t])||n;return(0,d.useMemo)(()=>({[`__scope${t}`]:{...o,[t]:i}}),[o,i])}};return createScope.scopeName=t,[$c512c27ab02ef895$export$fd42f52fd3ae1109,$c512c27ab02ef895$var$composeContextScopes(createScope,...n)]}function $c512c27ab02ef895$var$composeContextScopes(...t){let n=t[0];if(1===t.length)return n;let createScope1=()=>{let o=t.map(t=>({useScope:t(),scopeName:t.scopeName}));return function(t){let i=o.reduce((n,{useScope:o,scopeName:i})=>{let a=o(t),c=a[`__scope${i}`];return{...n,...c}},{});return(0,d.useMemo)(()=>({[`__scope${n.scopeName}`]:i}),[i])}};return createScope1.scopeName=n.scopeName,createScope1}function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(t){let n=(0,d.useRef)(t);return(0,d.useEffect)(()=>{n.current=t}),(0,d.useMemo)(()=>(...t)=>{var o;return null===(o=n.current)||void 0===o?void 0:o.call(n,...t)},[])}function $71cd76cc60e0454e$export$6f32135080cb4c3({prop:t,defaultProp:n,onChange:o=()=>{}}){let[i,a]=$71cd76cc60e0454e$var$useUncontrolledState({defaultProp:n,onChange:o}),c=void 0!==t,u=c?t:i,f=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(o),m=(0,d.useCallback)(n=>{if(c){let o="function"==typeof n?n(t):n;o!==t&&f(o)}else a(n)},[c,t,a,f]);return[u,m]}function $71cd76cc60e0454e$var$useUncontrolledState({defaultProp:t,onChange:n}){let o=(0,d.useState)(t),[i]=o,a=(0,d.useRef)(i),c=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(n);return(0,d.useEffect)(()=>{a.current!==i&&(c(i),a.current=i)},[i,a,c]),o}var m=o(43062);let g=(0,d.forwardRef)((t,n)=>{let{children:o,...i}=t,a=d.Children.toArray(o),c=a.find($5e63c961fc1ce211$var$isSlottable);if(c){let t=c.props.children,o=a.map(n=>n!==c?n:d.Children.count(t)>1?d.Children.only(null):(0,d.isValidElement)(t)?t.props.children:null);return(0,d.createElement)(b,_extends({},i,{ref:n}),(0,d.isValidElement)(t)?(0,d.cloneElement)(t,void 0,o):null)}return(0,d.createElement)(b,_extends({},i,{ref:n}),o)});g.displayName="Slot";let b=(0,d.forwardRef)((t,n)=>{let{children:o,...i}=t;return(0,d.isValidElement)(o)?(0,d.cloneElement)(o,{...$5e63c961fc1ce211$var$mergeProps(i,o.props),ref:n?$6ed0406888f73fc4$export$43e446d32b3d21af(n,o.ref):o.ref}):d.Children.count(o)>1?d.Children.only(null):null});b.displayName="SlotClone";let $5e63c961fc1ce211$export$d9f1ccf0bdb05d45=({children:t})=>(0,d.createElement)(d.Fragment,null,t);function $5e63c961fc1ce211$var$isSlottable(t){return(0,d.isValidElement)(t)&&t.type===$5e63c961fc1ce211$export$d9f1ccf0bdb05d45}function $5e63c961fc1ce211$var$mergeProps(t,n){let o={...n};for(let i in n){let a=t[i],c=n[i],u=/^on[A-Z]/.test(i);u?a&&c?o[i]=(...t)=>{c(...t),a(...t)}:a&&(o[i]=a):"style"===i?o[i]={...a,...c}:"className"===i&&(o[i]=[a,c].filter(Boolean).join(" "))}return{...t,...o}}let y=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((t,n)=>{let o=(0,d.forwardRef)((t,o)=>{let{asChild:i,...a}=t,c=i?g:n;return(0,d.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,d.createElement)(c,_extends({},a,{ref:o}))});return o.displayName=`Primitive.${n}`,{...t,[n]:o}},{});function $8927f6f2acc4f386$export$6d1a0317bde7de7f(t,n){t&&(0,m.flushSync)(()=>t.dispatchEvent(n))}function $e02a7d9cb1dc128c$export$c74125a8e3af6bb2(t){let n=t+"CollectionProvider",[o,i]=$c512c27ab02ef895$export$50c7b4e9d9f19c1(n),[a,c]=o(n,{collectionRef:{current:null},itemMap:new Map}),u=t+"CollectionSlot",f=d.forwardRef((t,n)=>{let{scope:o,children:i}=t,a=c(u,o),f=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(n,a.collectionRef);return d.createElement(g,{ref:f},i)}),m=t+"CollectionItemSlot",b="data-radix-collection-item",y=d.forwardRef((t,n)=>{let{scope:o,children:i,...a}=t,u=d.useRef(null),f=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(n,u),y=c(m,o);return d.useEffect(()=>(y.itemMap.set(u,{ref:u,...a}),()=>void y.itemMap.delete(u))),d.createElement(g,{[b]:"",ref:f},i)});return[{Provider:t=>{let{scope:n,children:o}=t,i=d.useRef(null),c=d.useRef(new Map).current;return d.createElement(a,{scope:n,itemMap:c,collectionRef:i},o)},Slot:f,ItemSlot:y},function(n){let o=c(t+"CollectionConsumer",n),i=d.useCallback(()=>{let t=o.collectionRef.current;if(!t)return[];let n=Array.from(t.querySelectorAll(`[${b}]`)),i=Array.from(o.itemMap.values()),a=i.sort((t,o)=>n.indexOf(t.ref.current)-n.indexOf(o.ref.current));return a},[o.collectionRef,o.itemMap]);return i},i]}let v=(0,d.createContext)(void 0);function $f631663db3294ace$export$b39126d51d94e6f3(t){let n=(0,d.useContext)(v);return t||n||"ltr"}function $addc16e1bbe58fd0$export$3a72a57244d6e765(t,n=null==globalThis?void 0:globalThis.document){let o=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(t);(0,d.useEffect)(()=>{let handleKeyDown=t=>{"Escape"===t.key&&o(t)};return n.addEventListener("keydown",handleKeyDown),()=>n.removeEventListener("keydown",handleKeyDown)},[o,n])}let w="dismissableLayer.update",E=(0,d.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_=(0,d.forwardRef)((t,n)=>{var o;let{disableOutsidePointerEvents:a=!1,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:m,onDismiss:g,...b}=t,v=(0,d.useContext)(E),[_,S]=(0,d.useState)(null),P=null!==(o=null==_?void 0:_.ownerDocument)&&void 0!==o?o:null==globalThis?void 0:globalThis.document,[,A]=(0,d.useState)({}),k=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(n,t=>S(t)),C=Array.from(v.layers),[T]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),N=C.indexOf(T),H=_?C.indexOf(_):-1,D=v.layersWithOutsidePointerEventsDisabled.size>0,F=H>=N,U=$5cb92bef7577960e$var$usePointerDownOutside(t=>{let n=t.target,o=[...v.branches].some(t=>t.contains(n));!F||o||(null==u||u(t),null==m||m(t),t.defaultPrevented||null==g||g())},P),G=$5cb92bef7577960e$var$useFocusOutside(t=>{let n=t.target,o=[...v.branches].some(t=>t.contains(n));o||(null==f||f(t),null==m||m(t),t.defaultPrevented||null==g||g())},P);return $addc16e1bbe58fd0$export$3a72a57244d6e765(t=>{let n=H===v.layers.size-1;n&&(null==c||c(t),!t.defaultPrevented&&g&&(t.preventDefault(),g()))},P),(0,d.useEffect)(()=>{if(_)return a&&(0===v.layersWithOutsidePointerEventsDisabled.size&&(i=P.body.style.pointerEvents,P.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(_)),v.layers.add(_),$5cb92bef7577960e$var$dispatchUpdate(),()=>{a&&1===v.layersWithOutsidePointerEventsDisabled.size&&(P.body.style.pointerEvents=i)}},[_,P,a,v]),(0,d.useEffect)(()=>()=>{_&&(v.layers.delete(_),v.layersWithOutsidePointerEventsDisabled.delete(_),$5cb92bef7577960e$var$dispatchUpdate())},[_,v]),(0,d.useEffect)(()=>{let handleUpdate=()=>A({});return document.addEventListener(w,handleUpdate),()=>document.removeEventListener(w,handleUpdate)},[]),(0,d.createElement)(y.div,_extends({},b,{ref:k,style:{pointerEvents:D?F?"auto":"none":void 0,...t.style},onFocusCapture:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onFocusCapture,G.onFocusCapture),onBlurCapture:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onBlurCapture,G.onBlurCapture),onPointerDownCapture:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onPointerDownCapture,U.onPointerDownCapture)}))});function $5cb92bef7577960e$var$usePointerDownOutside(t,n=null==globalThis?void 0:globalThis.document){let o=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(t),i=(0,d.useRef)(!1),a=(0,d.useRef)(()=>{});return(0,d.useEffect)(()=>{let handlePointerDown=t=>{if(t.target&&!i.current){let i={originalEvent:t};function handleAndDispatchPointerDownOutsideEvent(){$5cb92bef7577960e$var$handleAndDispatchCustomEvent("dismissableLayer.pointerDownOutside",o,i,{discrete:!0})}"touch"===t.pointerType?(n.removeEventListener("click",a.current),a.current=handleAndDispatchPointerDownOutsideEvent,n.addEventListener("click",a.current,{once:!0})):handleAndDispatchPointerDownOutsideEvent()}else n.removeEventListener("click",a.current);i.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",handlePointerDown)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",handlePointerDown),n.removeEventListener("click",a.current)}},[n,o]),{onPointerDownCapture:()=>i.current=!0}}function $5cb92bef7577960e$var$useFocusOutside(t,n=null==globalThis?void 0:globalThis.document){let o=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(t),i=(0,d.useRef)(!1);return(0,d.useEffect)(()=>{let handleFocus=t=>{t.target&&!i.current&&$5cb92bef7577960e$var$handleAndDispatchCustomEvent("dismissableLayer.focusOutside",o,{originalEvent:t},{discrete:!1})};return n.addEventListener("focusin",handleFocus),()=>n.removeEventListener("focusin",handleFocus)},[n,o]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function $5cb92bef7577960e$var$dispatchUpdate(){let t=new CustomEvent(w);document.dispatchEvent(t)}function $5cb92bef7577960e$var$handleAndDispatchCustomEvent(t,n,o,{discrete:i}){let a=o.originalEvent.target,c=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:o});n&&a.addEventListener(t,n,{once:!0}),i?$8927f6f2acc4f386$export$6d1a0317bde7de7f(a,c):a.dispatchEvent(c)}let S=0;function $3db38b7d1fb3fe6a$export$b7ece24a22aeda8c(){(0,d.useEffect)(()=>{var t,n;let o=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(t=o[0])&&void 0!==t?t:$3db38b7d1fb3fe6a$var$createFocusGuard()),document.body.insertAdjacentElement("beforeend",null!==(n=o[1])&&void 0!==n?n:$3db38b7d1fb3fe6a$var$createFocusGuard()),S++,()=>{1===S&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),S--}},[])}function $3db38b7d1fb3fe6a$var$createFocusGuard(){let t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",t}let P="focusScope.autoFocusOnMount",A="focusScope.autoFocusOnUnmount",k={bubbles:!1,cancelable:!0},C=(0,d.forwardRef)((t,n)=>{let{loop:o=!1,trapped:i=!1,onMountAutoFocus:a,onUnmountAutoFocus:c,...u}=t,[f,m]=(0,d.useState)(null),g=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(a),b=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(c),v=(0,d.useRef)(null),w=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(n,t=>m(t)),E=(0,d.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,d.useEffect)(()=>{if(i){function handleFocusIn(t){if(E.paused||!f)return;let n=t.target;f.contains(n)?v.current=n:$d3863c46a17e8a28$var$focus(v.current,{select:!0})}function handleFocusOut(t){if(E.paused||!f)return;let n=t.relatedTarget;null===n||f.contains(n)||$d3863c46a17e8a28$var$focus(v.current,{select:!0})}function handleMutations(t){let n=document.activeElement;if(n===document.body)for(let n of t)n.removedNodes.length>0&&$d3863c46a17e8a28$var$focus(f)}document.addEventListener("focusin",handleFocusIn),document.addEventListener("focusout",handleFocusOut);let t=new MutationObserver(handleMutations);return f&&t.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",handleFocusIn),document.removeEventListener("focusout",handleFocusOut),t.disconnect()}}},[i,f,E.paused]),(0,d.useEffect)(()=>{if(f){T.add(E);let t=document.activeElement,n=f.contains(t);if(!n){let n=new CustomEvent(P,k);f.addEventListener(P,g),f.dispatchEvent(n),n.defaultPrevented||($d3863c46a17e8a28$var$focusFirst($d3863c46a17e8a28$var$removeLinks($d3863c46a17e8a28$var$getTabbableCandidates(f)),{select:!0}),document.activeElement===t&&$d3863c46a17e8a28$var$focus(f))}return()=>{f.removeEventListener(P,g),setTimeout(()=>{let n=new CustomEvent(A,k);f.addEventListener(A,b),f.dispatchEvent(n),n.defaultPrevented||$d3863c46a17e8a28$var$focus(null!=t?t:document.body,{select:!0}),f.removeEventListener(A,b),T.remove(E)},0)}}},[f,g,b,E]);let _=(0,d.useCallback)(t=>{if(!o&&!i||E.paused)return;let n="Tab"===t.key&&!t.altKey&&!t.ctrlKey&&!t.metaKey,a=document.activeElement;if(n&&a){let n=t.currentTarget,[i,c]=$d3863c46a17e8a28$var$getTabbableEdges(n),u=i&&c;u?t.shiftKey||a!==c?t.shiftKey&&a===i&&(t.preventDefault(),o&&$d3863c46a17e8a28$var$focus(c,{select:!0})):(t.preventDefault(),o&&$d3863c46a17e8a28$var$focus(i,{select:!0})):a===n&&t.preventDefault()}},[o,i,E.paused]);return(0,d.createElement)(y.div,_extends({tabIndex:-1},u,{ref:w,onKeyDown:_}))});function $d3863c46a17e8a28$var$focusFirst(t,{select:n=!1}={}){let o=document.activeElement;for(let i of t)if($d3863c46a17e8a28$var$focus(i,{select:n}),document.activeElement!==o)return}function $d3863c46a17e8a28$var$getTabbableEdges(t){let n=$d3863c46a17e8a28$var$getTabbableCandidates(t),o=$d3863c46a17e8a28$var$findVisible(n,t),i=$d3863c46a17e8a28$var$findVisible(n.reverse(),t);return[o,i]}function $d3863c46a17e8a28$var$getTabbableCandidates(t){let n=[],o=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>{let n="INPUT"===t.tagName&&"hidden"===t.type;return t.disabled||t.hidden||n?NodeFilter.FILTER_SKIP:t.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)n.push(o.currentNode);return n}function $d3863c46a17e8a28$var$findVisible(t,n){for(let o of t)if(!$d3863c46a17e8a28$var$isHidden(o,{upTo:n}))return o}function $d3863c46a17e8a28$var$isHidden(t,{upTo:n}){if("hidden"===getComputedStyle(t).visibility)return!0;for(;t&&(void 0===n||t!==n);){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1}function $d3863c46a17e8a28$var$isSelectableInput(t){return t instanceof HTMLInputElement&&"select"in t}function $d3863c46a17e8a28$var$focus(t,{select:n=!1}={}){if(t&&t.focus){let o=document.activeElement;t.focus({preventScroll:!0}),t!==o&&$d3863c46a17e8a28$var$isSelectableInput(t)&&n&&t.select()}}let T=$d3863c46a17e8a28$var$createFocusScopesStack();function $d3863c46a17e8a28$var$createFocusScopesStack(){let t=[];return{add(n){let o=t[0];n!==o&&(null==o||o.pause()),(t=$d3863c46a17e8a28$var$arrayRemove(t,n)).unshift(n)},remove(n){var o;null===(o=(t=$d3863c46a17e8a28$var$arrayRemove(t,n))[0])||void 0===o||o.resume()}}}function $d3863c46a17e8a28$var$arrayRemove(t,n){let o=[...t],i=o.indexOf(n);return -1!==i&&o.splice(i,1),o}function $d3863c46a17e8a28$var$removeLinks(t){return t.filter(t=>"A"!==t.tagName)}let N=(null==globalThis?void 0:globalThis.document)?d.useLayoutEffect:()=>{},H=f["useId".toString()]||(()=>void 0),D=0;function $1746a345f3d73bb7$export$f680877a34711e37(t){let[n,o]=d.useState(H());return N(()=>{t||o(t=>null!=t?t:String(D++))},[t]),t||(n?`radix-${n}`:"")}let F=["top","right","bottom","left"],U=Math.min,G=Math.max,V=Math.round,W=Math.floor,createCoords=t=>({x:t,y:t}),q={left:"right",right:"left",bottom:"top",top:"bottom"},K={start:"end",end:"start"};function floating_ui_utils_evaluate(t,n){return"function"==typeof t?t(n):t}function floating_ui_utils_getSide(t){return t.split("-")[0]}function floating_ui_utils_getAlignment(t){return t.split("-")[1]}function getOppositeAxis(t){return"x"===t?"y":"x"}function getAxisLength(t){return"y"===t?"height":"width"}function floating_ui_utils_getSideAxis(t){return["top","bottom"].includes(floating_ui_utils_getSide(t))?"y":"x"}function floating_ui_utils_getAlignmentSides(t,n,o){void 0===o&&(o=!1);let i=floating_ui_utils_getAlignment(t),a=getOppositeAxis(floating_ui_utils_getSideAxis(t)),c=getAxisLength(a),u="x"===a?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return n.reference[c]>n.floating[c]&&(u=getOppositePlacement(u)),[u,getOppositePlacement(u)]}function getExpandedPlacements(t){let n=getOppositePlacement(t);return[floating_ui_utils_getOppositeAlignmentPlacement(t),n,floating_ui_utils_getOppositeAlignmentPlacement(n)]}function floating_ui_utils_getOppositeAlignmentPlacement(t){return t.replace(/start|end/g,t=>K[t])}function getSideList(t,n,o){let i=["left","right"],a=["right","left"];switch(t){case"top":case"bottom":if(o)return n?a:i;return n?i:a;case"left":case"right":return n?["top","bottom"]:["bottom","top"];default:return[]}}function getOppositeAxisPlacements(t,n,o,i){let a=floating_ui_utils_getAlignment(t),c=getSideList(floating_ui_utils_getSide(t),"start"===o,i);return a&&(c=c.map(t=>t+"-"+a),n&&(c=c.concat(c.map(floating_ui_utils_getOppositeAlignmentPlacement)))),c}function getOppositePlacement(t){return t.replace(/left|right|bottom|top/g,t=>q[t])}function expandPaddingObject(t){return{top:0,right:0,bottom:0,left:0,...t}}function floating_ui_utils_getPaddingObject(t){return"number"!=typeof t?expandPaddingObject(t):{top:t,right:t,bottom:t,left:t}}function floating_ui_utils_rectToClientRect(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function computeCoordsFromPlacement(t,n,o){let i,{reference:a,floating:c}=t,u=floating_ui_utils_getSideAxis(n),d=getOppositeAxis(floating_ui_utils_getSideAxis(n)),f=getAxisLength(d),m=floating_ui_utils_getSide(n),g="y"===u,b=a.x+a.width/2-c.width/2,y=a.y+a.height/2-c.height/2,v=a[f]/2-c[f]/2;switch(m){case"top":i={x:b,y:a.y-c.height};break;case"bottom":i={x:b,y:a.y+a.height};break;case"right":i={x:a.x+a.width,y:y};break;case"left":i={x:a.x-c.width,y:y};break;default:i={x:a.x,y:a.y}}switch(floating_ui_utils_getAlignment(n)){case"start":i[d]-=v*(o&&g?-1:1);break;case"end":i[d]+=v*(o&&g?-1:1)}return i}let computePosition=async(t,n,o)=>{let{placement:i="bottom",strategy:a="absolute",middleware:c=[],platform:u}=o,d=c.filter(Boolean),f=await (null==u.isRTL?void 0:u.isRTL(n)),m=await u.getElementRects({reference:t,floating:n,strategy:a}),{x:g,y:b}=computeCoordsFromPlacement(m,i,f),y=i,v={},w=0;for(let o=0;ot[n]>=0)}async function convertValueToCoords(t,n){let{placement:o,platform:i,elements:a}=t,c=await (null==i.isRTL?void 0:i.isRTL(a.floating)),u=floating_ui_utils_getSide(o),d=floating_ui_utils_getAlignment(o),f="y"===floating_ui_utils_getSideAxis(o),m=["left","top"].includes(u)?-1:1,g=c&&f?-1:1,b=floating_ui_utils_evaluate(n,t),{mainAxis:y,crossAxis:v,alignmentAxis:w}="number"==typeof b?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...b};return d&&"number"==typeof w&&(v="end"===d?-1*w:w),f?{x:v*g,y:y*m}:{x:y*m,y:v*g}}function getNodeName(t){return isNode(t)?(t.nodeName||"").toLowerCase():"#document"}function getWindow(t){var n;return(null==t||null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function getDocumentElement(t){var n;return null==(n=(isNode(t)?t.ownerDocument:t.document)||window.document)?void 0:n.documentElement}function isNode(t){return t instanceof Node||t instanceof getWindow(t).Node}function isElement(t){return t instanceof Element||t instanceof getWindow(t).Element}function isHTMLElement(t){return t instanceof HTMLElement||t instanceof getWindow(t).HTMLElement}function isShadowRoot(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof getWindow(t).ShadowRoot)}function isOverflowElement(t){let{overflow:n,overflowX:o,overflowY:i,display:a}=floating_ui_utils_dom_getComputedStyle(t);return/auto|scroll|overlay|hidden|clip/.test(n+i+o)&&!["inline","contents"].includes(a)}function isTableElement(t){return["table","td","th"].includes(getNodeName(t))}function isContainingBlock(t){let n=isWebKit(),o=floating_ui_utils_dom_getComputedStyle(t);return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!n&&!!o.backdropFilter&&"none"!==o.backdropFilter||!n&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some(t=>(o.willChange||"").includes(t))||["paint","layout","strict","content"].some(t=>(o.contain||"").includes(t))}function getContainingBlock(t){let n=getParentNode(t);for(;isHTMLElement(n)&&!isLastTraversableNode(n);){if(isContainingBlock(n))return n;n=getParentNode(n)}return null}function isWebKit(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode(t){return["html","body","#document"].includes(getNodeName(t))}function floating_ui_utils_dom_getComputedStyle(t){return getWindow(t).getComputedStyle(t)}function getNodeScroll(t){return isElement(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function getParentNode(t){if("html"===getNodeName(t))return t;let n=t.assignedSlot||t.parentNode||isShadowRoot(t)&&t.host||getDocumentElement(t);return isShadowRoot(n)?n.host:n}function getNearestOverflowAncestor(t){let n=getParentNode(t);return isLastTraversableNode(n)?t.ownerDocument?t.ownerDocument.body:t.body:isHTMLElement(n)&&isOverflowElement(n)?n:getNearestOverflowAncestor(n)}function getOverflowAncestors(t,n,o){var i;void 0===n&&(n=[]),void 0===o&&(o=!0);let a=getNearestOverflowAncestor(t),c=a===(null==(i=t.ownerDocument)?void 0:i.body),u=getWindow(a);return c?n.concat(u,u.visualViewport||[],isOverflowElement(a)?a:[],u.frameElement&&o?getOverflowAncestors(u.frameElement):[]):n.concat(a,getOverflowAncestors(a,[],o))}function getCssDimensions(t){let n=floating_ui_utils_dom_getComputedStyle(t),o=parseFloat(n.width)||0,i=parseFloat(n.height)||0,a=isHTMLElement(t),c=a?t.offsetWidth:o,u=a?t.offsetHeight:i,d=V(o)!==c||V(i)!==u;return d&&(o=c,i=u),{width:o,height:i,$:d}}function unwrapElement(t){return isElement(t)?t:t.contextElement}function getScale(t){let n=unwrapElement(t);if(!isHTMLElement(n))return createCoords(1);let o=n.getBoundingClientRect(),{width:i,height:a,$:c}=getCssDimensions(n),u=(c?V(o.width):o.width)/i,d=(c?V(o.height):o.height)/a;return u&&Number.isFinite(u)||(u=1),d&&Number.isFinite(d)||(d=1),{x:u,y:d}}let Z=createCoords(0);function getVisualOffsets(t){let n=getWindow(t);return isWebKit()&&n.visualViewport?{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}:Z}function shouldAddVisualOffsets(t,n,o){return void 0===n&&(n=!1),!!o&&(!n||o===getWindow(t))&&n}function getBoundingClientRect(t,n,o,i){void 0===n&&(n=!1),void 0===o&&(o=!1);let a=t.getBoundingClientRect(),c=unwrapElement(t),u=createCoords(1);n&&(i?isElement(i)&&(u=getScale(i)):u=getScale(t));let d=shouldAddVisualOffsets(c,o,i)?getVisualOffsets(c):createCoords(0),f=(a.left+d.x)/u.x,m=(a.top+d.y)/u.y,g=a.width/u.x,b=a.height/u.y;if(c){let t=getWindow(c),n=i&&isElement(i)?getWindow(i):i,o=t.frameElement;for(;o&&i&&n!==t;){let t=getScale(o),n=o.getBoundingClientRect(),i=floating_ui_utils_dom_getComputedStyle(o),a=n.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,c=n.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;f*=t.x,m*=t.y,g*=t.x,b*=t.y,f+=a,m+=c,o=getWindow(o).frameElement}}return floating_ui_utils_rectToClientRect({width:g,height:b,x:f,y:m})}function convertOffsetParentRelativeRectToViewportRelativeRect(t){let{rect:n,offsetParent:o,strategy:i}=t,a=isHTMLElement(o),c=getDocumentElement(o);if(o===c)return n;let u={scrollLeft:0,scrollTop:0},d=createCoords(1),f=createCoords(0);if((a||!a&&"fixed"!==i)&&(("body"!==getNodeName(o)||isOverflowElement(c))&&(u=getNodeScroll(o)),isHTMLElement(o))){let t=getBoundingClientRect(o);d=getScale(o),f.x=t.x+o.clientLeft,f.y=t.y+o.clientTop}return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-u.scrollLeft*d.x+f.x,y:n.y*d.y-u.scrollTop*d.y+f.y}}function getClientRects(t){return Array.from(t.getClientRects())}function getWindowScrollBarX(t){return getBoundingClientRect(getDocumentElement(t)).left+getNodeScroll(t).scrollLeft}function getDocumentRect(t){let n=getDocumentElement(t),o=getNodeScroll(t),i=t.ownerDocument.body,a=G(n.scrollWidth,n.clientWidth,i.scrollWidth,i.clientWidth),c=G(n.scrollHeight,n.clientHeight,i.scrollHeight,i.clientHeight),u=-o.scrollLeft+getWindowScrollBarX(t),d=-o.scrollTop;return"rtl"===floating_ui_utils_dom_getComputedStyle(i).direction&&(u+=G(n.clientWidth,i.clientWidth)-a),{width:a,height:c,x:u,y:d}}function getViewportRect(t,n){let o=getWindow(t),i=getDocumentElement(t),a=o.visualViewport,c=i.clientWidth,u=i.clientHeight,d=0,f=0;if(a){c=a.width,u=a.height;let t=isWebKit();(!t||t&&"fixed"===n)&&(d=a.offsetLeft,f=a.offsetTop)}return{width:c,height:u,x:d,y:f}}function getInnerBoundingClientRect(t,n){let o=getBoundingClientRect(t,!0,"fixed"===n),i=o.top+t.clientTop,a=o.left+t.clientLeft,c=isHTMLElement(t)?getScale(t):createCoords(1),u=t.clientWidth*c.x,d=t.clientHeight*c.y,f=a*c.x,m=i*c.y;return{width:u,height:d,x:f,y:m}}function getClientRectFromClippingAncestor(t,n,o){let i;if("viewport"===n)i=getViewportRect(t,o);else if("document"===n)i=getDocumentRect(getDocumentElement(t));else if(isElement(n))i=getInnerBoundingClientRect(n,o);else{let o=getVisualOffsets(t);i={...n,x:n.x-o.x,y:n.y-o.y}}return floating_ui_utils_rectToClientRect(i)}function hasFixedPositionAncestor(t,n){let o=getParentNode(t);return!(o===n||!isElement(o)||isLastTraversableNode(o))&&("fixed"===floating_ui_utils_dom_getComputedStyle(o).position||hasFixedPositionAncestor(o,n))}function getClippingElementAncestors(t,n){let o=n.get(t);if(o)return o;let i=getOverflowAncestors(t,[],!1).filter(t=>isElement(t)&&"body"!==getNodeName(t)),a=null,c="fixed"===floating_ui_utils_dom_getComputedStyle(t).position,u=c?getParentNode(t):t;for(;isElement(u)&&!isLastTraversableNode(u);){let n=floating_ui_utils_dom_getComputedStyle(u),o=isContainingBlock(u);o||"fixed"!==n.position||(a=null);let d=c?!o&&!a:!o&&"static"===n.position&&!!a&&["absolute","fixed"].includes(a.position)||isOverflowElement(u)&&!o&&hasFixedPositionAncestor(t,u);d?i=i.filter(t=>t!==u):a=n,u=getParentNode(u)}return n.set(t,i),i}function getClippingRect(t){let{element:n,boundary:o,rootBoundary:i,strategy:a}=t,c="clippingAncestors"===o?getClippingElementAncestors(n,this._c):[].concat(o),u=[...c,i],d=u[0],f=u.reduce((t,o)=>{let i=getClientRectFromClippingAncestor(n,o,a);return t.top=G(i.top,t.top),t.right=U(i.right,t.right),t.bottom=U(i.bottom,t.bottom),t.left=G(i.left,t.left),t},getClientRectFromClippingAncestor(n,d,a));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function getDimensions(t){let{width:n,height:o}=getCssDimensions(t);return{width:n,height:o}}function getRectRelativeToOffsetParent(t,n,o){let i=isHTMLElement(n),a=getDocumentElement(n),c="fixed"===o,u=getBoundingClientRect(t,!0,c,n),d={scrollLeft:0,scrollTop:0},f=createCoords(0);if(i||!i&&!c){if(("body"!==getNodeName(n)||isOverflowElement(a))&&(d=getNodeScroll(n)),i){let t=getBoundingClientRect(n,!0,c,n);f.x=t.x+n.clientLeft,f.y=t.y+n.clientTop}else a&&(f.x=getWindowScrollBarX(a))}return{x:u.left+d.scrollLeft-f.x,y:u.top+d.scrollTop-f.y,width:u.width,height:u.height}}function getTrueOffsetParent(t,n){return isHTMLElement(t)&&"fixed"!==floating_ui_utils_dom_getComputedStyle(t).position?n?n(t):t.offsetParent:null}function getOffsetParent(t,n){let o=getWindow(t);if(!isHTMLElement(t))return o;let i=getTrueOffsetParent(t,n);for(;i&&isTableElement(i)&&"static"===floating_ui_utils_dom_getComputedStyle(i).position;)i=getTrueOffsetParent(i,n);return i&&("html"===getNodeName(i)||"body"===getNodeName(i)&&"static"===floating_ui_utils_dom_getComputedStyle(i).position&&!isContainingBlock(i))?o:i||getContainingBlock(t)||o}let getElementRects=async function(t){let{reference:n,floating:o,strategy:i}=t,a=this.getOffsetParent||getOffsetParent,c=this.getDimensions;return{reference:getRectRelativeToOffsetParent(n,await a(o),i),floating:{x:0,y:0,...await c(o)}}};function isRTL(t){return"rtl"===floating_ui_utils_dom_getComputedStyle(t).direction}let Y={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement:getDocumentElement,getClippingRect,getOffsetParent,getElementRects,getClientRects,getDimensions,getScale,isElement:isElement,isRTL};function observeMove(t,n){let o,i=null,a=getDocumentElement(t);function cleanup(){clearTimeout(o),i&&i.disconnect(),i=null}function refresh(c,u){void 0===c&&(c=!1),void 0===u&&(u=1),cleanup();let{left:d,top:f,width:m,height:g}=t.getBoundingClientRect();if(c||n(),!m||!g)return;let b=W(f),y=W(a.clientWidth-(d+m)),v=W(a.clientHeight-(f+g)),w=W(d),E={rootMargin:-b+"px "+-y+"px "+-v+"px "+-w+"px",threshold:G(0,U(1,u))||1},_=!0;function handleObserve(t){let n=t[0].intersectionRatio;if(n!==u){if(!_)return refresh();n?refresh(!1,n):o=setTimeout(()=>{refresh(!1,1e-7)},100)}_=!1}try{i=new IntersectionObserver(handleObserve,{...E,root:a.ownerDocument})}catch(t){i=new IntersectionObserver(handleObserve,E)}i.observe(t)}return refresh(!0),cleanup}function autoUpdate(t,n,o,i){let a;void 0===i&&(i={});let{ancestorScroll:c=!0,ancestorResize:u=!0,elementResize:d="function"==typeof ResizeObserver,layoutShift:f="function"==typeof IntersectionObserver,animationFrame:m=!1}=i,g=unwrapElement(t),b=c||u?[...g?getOverflowAncestors(g):[],...getOverflowAncestors(n)]:[];b.forEach(t=>{c&&t.addEventListener("scroll",o,{passive:!0}),u&&t.addEventListener("resize",o)});let y=g&&f?observeMove(g,o):null,v=-1,w=null;d&&(w=new ResizeObserver(t=>{let[i]=t;i&&i.target===g&&w&&(w.unobserve(n),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{w&&w.observe(n)})),o()}),g&&!m&&w.observe(g),w.observe(n));let E=m?getBoundingClientRect(t):null;function frameLoop(){let n=getBoundingClientRect(t);E&&(n.x!==E.x||n.y!==E.y||n.width!==E.width||n.height!==E.height)&&o(),E=n,a=requestAnimationFrame(frameLoop)}return m&&frameLoop(),o(),()=>{b.forEach(t=>{c&&t.removeEventListener("scroll",o),u&&t.removeEventListener("resize",o)}),y&&y(),w&&w.disconnect(),w=null,m&&cancelAnimationFrame(a)}}let floating_ui_dom_arrow=t=>({name:"arrow",options:t,async fn(n){let{x:o,y:i,placement:a,rects:c,platform:u,elements:d,middlewareData:f}=n,{element:m,padding:g=0}=floating_ui_utils_evaluate(t,n)||{};if(null==m)return{};let b=floating_ui_utils_getPaddingObject(g),y={x:o,y:i},v=getOppositeAxis(floating_ui_utils_getSideAxis(a)),w=getAxisLength(v),E=await u.getDimensions(m),_="y"===v,S=_?"clientHeight":"clientWidth",P=c.reference[w]+c.reference[v]-y[v]-c.floating[w],A=y[v]-c.reference[v],k=await (null==u.getOffsetParent?void 0:u.getOffsetParent(m)),C=k?k[S]:0;C&&await (null==u.isElement?void 0:u.isElement(k))||(C=d.floating[S]||c.floating[w]);let T=C/2-E[w]/2-1,N=U(b[_?"top":"left"],T),H=U(b[_?"bottom":"right"],T),D=C-E[w]-H,F=C/2-E[w]/2+(P/2-A/2),V=G(N,U(F,D)),W=!f.arrow&&null!=floating_ui_utils_getAlignment(a)&&F!=V&&c.reference[w]/2-(F{let i=new Map,a={platform:Y,...o},c={...a.platform,_c:i};return computePosition(t,n,{...a,platform:c})},floating_ui_react_dom_arrow=t=>{function isRef(t){return({}).hasOwnProperty.call(t,"current")}return{name:"arrow",options:t,fn(n){let{element:o,padding:i}="function"==typeof t?t(n):t;return o&&isRef(o)?null!=o.current?floating_ui_dom_arrow({element:o.current,padding:i}).fn(n):{}:o?floating_ui_dom_arrow({element:o,padding:i}).fn(n):{}}}};var J="undefined"!=typeof document?d.useLayoutEffect:d.useEffect;function deepEqual(t,n){let o,i,a;if(t===n)return!0;if(typeof t!=typeof n)return!1;if("function"==typeof t&&t.toString()===n.toString())return!0;if(t&&n&&"object"==typeof t){if(Array.isArray(t)){if((o=t.length)!==n.length)return!1;for(i=o;0!=i--;)if(!deepEqual(t[i],n[i]))return!1;return!0}if((o=(a=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=o;0!=i--;)if(!({}).hasOwnProperty.call(n,a[i]))return!1;for(i=o;0!=i--;){let o=a[i];if(("_owner"!==o||!t.$$typeof)&&!deepEqual(t[o],n[o]))return!1}return!0}return t!=t&&n!=n}function getDPR(t){if("undefined"==typeof window)return 1;let n=t.ownerDocument.defaultView||window;return n.devicePixelRatio||1}function roundByDPR(t,n){let o=getDPR(t);return Math.round(n*o)/o}function useLatestRef(t){let n=d.useRef(t);return J(()=>{n.current=t}),n}function useFloating(t){void 0===t&&(t={});let{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a,elements:{reference:c,floating:u}={},transform:f=!0,whileElementsMounted:g,open:b}=t,[y,v]=d.useState({x:0,y:0,strategy:o,placement:n,middlewareData:{},isPositioned:!1}),[w,E]=d.useState(i);deepEqual(w,i)||E(i);let[_,S]=d.useState(null),[P,A]=d.useState(null),k=d.useCallback(t=>{t!==H.current&&(H.current=t,S(t))},[]),C=d.useCallback(t=>{t!==D.current&&(D.current=t,A(t))},[]),T=c||_,N=u||P,H=d.useRef(null),D=d.useRef(null),F=d.useRef(y),U=null!=g,G=useLatestRef(g),V=useLatestRef(a),W=d.useCallback(()=>{if(!H.current||!D.current)return;let t={placement:n,strategy:o,middleware:w};V.current&&(t.platform=V.current),floating_ui_dom_computePosition(H.current,D.current,t).then(t=>{let n={...t,isPositioned:!0};q.current&&!deepEqual(F.current,n)&&(F.current=n,m.flushSync(()=>{v(n)}))})},[w,n,o,V]);J(()=>{!1===b&&F.current.isPositioned&&(F.current.isPositioned=!1,v(t=>({...t,isPositioned:!1})))},[b]);let q=d.useRef(!1);J(()=>(q.current=!0,()=>{q.current=!1}),[]),J(()=>{if(T&&(H.current=T),N&&(D.current=N),T&&N){if(G.current)return G.current(T,N,W);W()}},[T,N,W,G,U]);let K=d.useMemo(()=>({reference:H,floating:D,setReference:k,setFloating:C}),[k,C]),Z=d.useMemo(()=>({reference:T,floating:N}),[T,N]),Y=d.useMemo(()=>{let t={position:o,left:0,top:0};if(!Z.floating)return t;let n=roundByDPR(Z.floating,y.x),i=roundByDPR(Z.floating,y.y);return f?{...t,transform:"translate("+n+"px, "+i+"px)",...getDPR(Z.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:n,top:i}},[o,f,Z.floating,y.x,y.y]);return d.useMemo(()=>({...y,update:W,refs:K,elements:Z,floatingStyles:Y}),[y,W,K,Z,Y])}let Q=(0,d.forwardRef)((t,n)=>{let{children:o,width:i=10,height:a=5,...c}=t;return(0,d.createElement)(y.svg,_extends({},c,{ref:n,width:i,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),t.asChild?o:(0,d.createElement)("polygon",{points:"0,0 30,0 15,10"}))});function $db6c3485150b8e66$export$1ab7ae714698c4b8(t){let[n,o]=(0,d.useState)(void 0);return N(()=>{if(t){o({width:t.offsetWidth,height:t.offsetHeight});let n=new ResizeObserver(n=>{let i,a;if(!Array.isArray(n)||!n.length)return;let c=n[0];if("borderBoxSize"in c){let t=c.borderBoxSize,n=Array.isArray(t)?t[0]:t;i=n.inlineSize,a=n.blockSize}else i=t.offsetWidth,a=t.offsetHeight;o({width:i,height:a})});return n.observe(t,{box:"border-box"}),()=>n.unobserve(t)}o(void 0)},[t]),n}let ee="Popper",[et,er]=$c512c27ab02ef895$export$50c7b4e9d9f19c1(ee),[en,eo]=et(ee),ei=(0,d.forwardRef)((t,n)=>{let{__scopePopper:o,virtualRef:i,...a}=t,c=eo("PopperAnchor",o),u=(0,d.useRef)(null),f=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(n,u);return(0,d.useEffect)(()=>{c.onAnchorChange((null==i?void 0:i.current)||u.current)}),i?null:(0,d.createElement)(y.div,_extends({},a,{ref:f}))}),ea="PopperContent",[es,el]=et(ea),ec=(0,d.forwardRef)((t,n)=>{var o,i,a,c,u,f,m,g,b,v,w,E,_,S;let{__scopePopper:P,side:A="bottom",sideOffset:k=0,align:C="center",alignOffset:T=0,arrowPadding:H=0,avoidCollisions:D=!0,collisionBoundary:F=[],collisionPadding:V=0,sticky:W="partial",hideWhenDetached:q=!1,updatePositionStrategy:K="optimized",onPlaced:Z,...Y}=t,J=eo(ea,P),[Q,ee]=(0,d.useState)(null),et=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(n,t=>ee(t)),[er,en]=(0,d.useState)(null),ei=$db6c3485150b8e66$export$1ab7ae714698c4b8(er),el=null!==(o=null==ei?void 0:ei.width)&&void 0!==o?o:0,ec=null!==(i=null==ei?void 0:ei.height)&&void 0!==i?i:0,eu="number"==typeof V?V:{top:0,right:0,bottom:0,left:0,...V},ed=Array.isArray(F)?F:[F],ef=ed.length>0,eh={padding:eu,boundary:ed.filter($cf1ac5d9fe0e8206$var$isNotNull),altBoundary:ef},{refs:ep,floatingStyles:em,placement:eg,isPositioned:eb,middlewareData:ey}=useFloating({strategy:"fixed",placement:A+("center"!==C?"-"+C:""),whileElementsMounted:(...t)=>{let n=autoUpdate(...t,{animationFrame:"always"===K});return n},elements:{reference:J.anchor},middleware:[{name:"offset",options:b={mainAxis:k+ec,alignmentAxis:T},async fn(t){var n,o;let{x:i,y:a,placement:c,middlewareData:u}=t,d=await convertValueToCoords(t,b);return c===(null==(n=u.offset)?void 0:n.placement)&&null!=(o=u.arrow)&&o.alignmentOffset?{}:{x:i+d.x,y:a+d.y,data:{...d,placement:c}}}},D&&{name:"shift",options:w={mainAxis:!0,crossAxis:!1,limiter:"partial"===W?(void 0===v&&(v={}),{options:v,fn(t){let{x:n,y:o,placement:i,rects:a,middlewareData:c}=t,{offset:u=0,mainAxis:d=!0,crossAxis:f=!0}=floating_ui_utils_evaluate(v,t),m={x:n,y:o},g=floating_ui_utils_getSideAxis(i),b=getOppositeAxis(g),y=m[b],w=m[g],E=floating_ui_utils_evaluate(u,t),_="number"==typeof E?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(d){let t="y"===b?"height":"width",n=a.reference[b]-a.floating[t]+_.mainAxis,o=a.reference[b]+a.reference[t]-_.mainAxis;yo&&(y=o)}if(f){var S,P;let t="y"===b?"width":"height",n=["top","left"].includes(floating_ui_utils_getSide(i)),o=a.reference[g]-a.floating[t]+(n&&(null==(S=c.offset)?void 0:S[g])||0)+(n?0:_.crossAxis),u=a.reference[g]+a.reference[t]+(n?0:(null==(P=c.offset)?void 0:P[g])||0)-(n?_.crossAxis:0);wu&&(w=u)}return{[b]:y,[g]:w}}}):void 0,...eh},async fn(t){let{x:n,y:o,placement:i}=t,{mainAxis:a=!0,crossAxis:c=!1,limiter:u={fn:t=>{let{x:n,y:o}=t;return{x:n,y:o}}},...d}=floating_ui_utils_evaluate(w,t),f={x:n,y:o},m=await detectOverflow(t,d),g=floating_ui_utils_getSideAxis(floating_ui_utils_getSide(i)),b=getOppositeAxis(g),y=f[b],v=f[g];if(a){let t=y+m["y"===b?"top":"left"],n=y-m["y"===b?"bottom":"right"];y=G(t,U(y,n))}if(c){let t="y"===g?"top":"left",n="y"===g?"bottom":"right",o=v+m[t],i=v-m[n];v=G(o,U(v,i))}let E=u.fn({...t,[b]:y,[g]:v});return{...E,data:{x:E.x-n,y:E.y-o}}}},D&&{name:"flip",options:E={...eh},async fn(t){var n,o,i,a,c;let{placement:u,middlewareData:d,rects:f,initialPlacement:m,platform:g,elements:b}=t,{mainAxis:y=!0,crossAxis:v=!0,fallbackPlacements:w,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:P=!0,...A}=floating_ui_utils_evaluate(E,t);if(null!=(n=d.arrow)&&n.alignmentOffset)return{};let k=floating_ui_utils_getSide(u),C=floating_ui_utils_getSide(m)===m,T=await (null==g.isRTL?void 0:g.isRTL(b.floating)),N=w||(C||!P?[getOppositePlacement(m)]:getExpandedPlacements(m));w||"none"===S||N.push(...getOppositeAxisPlacements(m,P,S,T));let H=[m,...N],D=await detectOverflow(t,A),F=[],U=(null==(o=d.flip)?void 0:o.overflows)||[];if(y&&F.push(D[k]),v){let t=floating_ui_utils_getAlignmentSides(u,f,T);F.push(D[t[0]],D[t[1]])}if(U=[...U,{placement:u,overflows:F}],!F.every(t=>t<=0)){let t=((null==(i=d.flip)?void 0:i.index)||0)+1,n=H[t];if(n)return{data:{index:t,overflows:U},reset:{placement:n}};let o=null==(a=U.filter(t=>t.overflows[0]<=0).sort((t,n)=>t.overflows[1]-n.overflows[1])[0])?void 0:a.placement;if(!o)switch(_){case"bestFit":{let t=null==(c=U.map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,n)=>t+n,0)]).sort((t,n)=>t[1]-n[1])[0])?void 0:c[0];t&&(o=t);break}case"initialPlacement":o=m}if(u!==o)return{reset:{placement:o}}}return{}}},{name:"size",options:_={...eh,apply:({elements:t,rects:n,availableWidth:o,availableHeight:i})=>{let{width:a,height:c}=n.reference,u=t.floating.style;u.setProperty("--radix-popper-available-width",`${o}px`),u.setProperty("--radix-popper-available-height",`${i}px`),u.setProperty("--radix-popper-anchor-width",`${a}px`),u.setProperty("--radix-popper-anchor-height",`${c}px`)}},async fn(t){let n,o;let{placement:i,rects:a,platform:c,elements:u}=t,{apply:d=()=>{},...f}=floating_ui_utils_evaluate(_,t),m=await detectOverflow(t,f),g=floating_ui_utils_getSide(i),b=floating_ui_utils_getAlignment(i),y="y"===floating_ui_utils_getSideAxis(i),{width:v,height:w}=a.floating;"top"===g||"bottom"===g?(n=g,o=b===(await (null==c.isRTL?void 0:c.isRTL(u.floating))?"start":"end")?"left":"right"):(o=g,n="end"===b?"top":"bottom");let E=w-m[n],S=v-m[o],P=!t.middlewareData.shift,A=E,k=S;if(y){let t=v-m.left-m.right;k=b||P?U(S,t):t}else{let t=w-m.top-m.bottom;A=b||P?U(E,t):t}if(P&&!b){let t=G(m.left,0),n=G(m.right,0),o=G(m.top,0),i=G(m.bottom,0);y?k=v-2*(0!==t||0!==n?t+n:G(m.left,m.right)):A=w-2*(0!==o||0!==i?o+i:G(m.top,m.bottom))}await d({...t,availableWidth:k,availableHeight:A});let C=await c.getDimensions(u.floating);return v!==C.width||w!==C.height?{reset:{rects:!0}}:{}}},er&&floating_ui_react_dom_arrow({element:er,padding:H}),$cf1ac5d9fe0e8206$var$transformOrigin({arrowWidth:el,arrowHeight:ec}),q&&{name:"hide",options:S={strategy:"referenceHidden",...eh},async fn(t){let{rects:n}=t,{strategy:o="referenceHidden",...i}=floating_ui_utils_evaluate(S,t);switch(o){case"referenceHidden":{let o=await detectOverflow(t,{...i,elementContext:"reference"}),a=getSideOffsets(o,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:isAnySideFullyClipped(a)}}}case"escaped":{let o=await detectOverflow(t,{...i,altBoundary:!0}),a=getSideOffsets(o,n.floating);return{data:{escapedOffsets:a,escaped:isAnySideFullyClipped(a)}}}default:return{}}}}]}),[ev,ew]=$cf1ac5d9fe0e8206$var$getSideAndAlignFromPlacement(eg),ex=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(Z);N(()=>{eb&&(null==ex||ex())},[eb,ex]);let eE=null===(a=ey.arrow)||void 0===a?void 0:a.x,e_=null===(c=ey.arrow)||void 0===c?void 0:c.y,eS=(null===(u=ey.arrow)||void 0===u?void 0:u.centerOffset)!==0,[e$,eP]=(0,d.useState)();return N(()=>{Q&&eP(window.getComputedStyle(Q).zIndex)},[Q]),(0,d.createElement)("div",{ref:ep.setFloating,"data-radix-popper-content-wrapper":"",style:{...em,transform:eb?em.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:e$,"--radix-popper-transform-origin":[null===(f=ey.transformOrigin)||void 0===f?void 0:f.x,null===(m=ey.transformOrigin)||void 0===m?void 0:m.y].join(" ")},dir:t.dir},(0,d.createElement)(es,{scope:P,placedSide:ev,onArrowChange:en,arrowX:eE,arrowY:e_,shouldHideArrow:eS},(0,d.createElement)(y.div,_extends({"data-side":ev,"data-align":ew},Y,{ref:et,style:{...Y.style,animation:eb?void 0:"none",opacity:null!==(g=ey.hide)&&void 0!==g&&g.referenceHidden?0:void 0}}))))}),eu={top:"bottom",right:"left",bottom:"top",left:"right"},ed=(0,d.forwardRef)(function(t,n){let{__scopePopper:o,...i}=t,a=el("PopperArrow",o),c=eu[a.placedSide];return(0,d.createElement)("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0}},(0,d.createElement)(Q,_extends({},i,{ref:n,style:{...i.style,display:"block"}})))});function $cf1ac5d9fe0e8206$var$isNotNull(t){return null!==t}let $cf1ac5d9fe0e8206$var$transformOrigin=t=>({name:"transformOrigin",options:t,fn(n){var o,i,a,c,u;let{placement:d,rects:f,middlewareData:m}=n,g=(null===(o=m.arrow)||void 0===o?void 0:o.centerOffset)!==0,b=g?0:t.arrowWidth,y=g?0:t.arrowHeight,[v,w]=$cf1ac5d9fe0e8206$var$getSideAndAlignFromPlacement(d),E={start:"0%",center:"50%",end:"100%"}[w],_=(null!==(i=null===(a=m.arrow)||void 0===a?void 0:a.x)&&void 0!==i?i:0)+b/2,S=(null!==(c=null===(u=m.arrow)||void 0===u?void 0:u.y)&&void 0!==c?c:0)+y/2,P="",A="";return"bottom"===v?(P=g?E:`${_}px`,A=`${-y}px`):"top"===v?(P=g?E:`${_}px`,A=`${f.floating.height+y}px`):"right"===v?(P=`${-y}px`,A=g?E:`${S}px`):"left"===v&&(P=`${f.floating.width+y}px`,A=g?E:`${S}px`),{data:{x:P,y:A}}}});function $cf1ac5d9fe0e8206$var$getSideAndAlignFromPlacement(t){let[n,o="center"]=t.split("-");return[n,o]}let $cf1ac5d9fe0e8206$export$be92b6f5f03c0fe9=t=>{let{__scopePopper:n,children:o}=t,[i,a]=(0,d.useState)(null);return(0,d.createElement)(en,{scope:n,anchor:i,onAnchorChange:a},o)},ef=(0,d.forwardRef)((t,n)=>{var o;let{container:i=null==globalThis?void 0:null===(o=globalThis.document)||void 0===o?void 0:o.body,...a}=t;return i?m.createPortal((0,d.createElement)(y.div,_extends({},a,{ref:n})),i):null});function $fe963b355347cc68$export$3e6543de14f8614f(t,n){return(0,d.useReducer)((t,o)=>{let i=n[t][o];return null!=i?i:t},t)}let $921a889cee6df7e8$export$99c2b779aa4e8b8b=t=>{let{present:n,children:o}=t,i=$921a889cee6df7e8$var$usePresence(n),a="function"==typeof o?o({present:i.isPresent}):d.Children.only(o),c=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(i.ref,a.ref),u="function"==typeof o;return u||i.isPresent?(0,d.cloneElement)(a,{ref:c}):null};function $921a889cee6df7e8$var$usePresence(t){let[n,o]=(0,d.useState)(),i=(0,d.useRef)({}),a=(0,d.useRef)(t),c=(0,d.useRef)("none"),u=t?"mounted":"unmounted",[f,g]=$fe963b355347cc68$export$3e6543de14f8614f(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,d.useEffect)(()=>{let t=$921a889cee6df7e8$var$getAnimationName(i.current);c.current="mounted"===f?t:"none"},[f]),N(()=>{let n=i.current,o=a.current,u=o!==t;if(u){let i=c.current,u=$921a889cee6df7e8$var$getAnimationName(n);t?g("MOUNT"):"none"===u||(null==n?void 0:n.display)==="none"?g("UNMOUNT"):o&&i!==u?g("ANIMATION_OUT"):g("UNMOUNT"),a.current=t}},[t,g]),N(()=>{if(n){let handleAnimationEnd=t=>{let o=$921a889cee6df7e8$var$getAnimationName(i.current),a=o.includes(t.animationName);t.target===n&&a&&(0,m.flushSync)(()=>g("ANIMATION_END"))},handleAnimationStart=t=>{t.target===n&&(c.current=$921a889cee6df7e8$var$getAnimationName(i.current))};return n.addEventListener("animationstart",handleAnimationStart),n.addEventListener("animationcancel",handleAnimationEnd),n.addEventListener("animationend",handleAnimationEnd),()=>{n.removeEventListener("animationstart",handleAnimationStart),n.removeEventListener("animationcancel",handleAnimationEnd),n.removeEventListener("animationend",handleAnimationEnd)}}g("ANIMATION_END")},[n,g]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:(0,d.useCallback)(t=>{t&&(i.current=getComputedStyle(t)),o(t)},[])}}function $921a889cee6df7e8$var$getAnimationName(t){return(null==t?void 0:t.animationName)||"none"}$921a889cee6df7e8$export$99c2b779aa4e8b8b.displayName="Presence";let eh="rovingFocusGroup.onEntryFocus",ep={bubbles:!1,cancelable:!0},em="RovingFocusGroup",[eg,eb,ey]=$e02a7d9cb1dc128c$export$c74125a8e3af6bb2(em),[ev,ew]=$c512c27ab02ef895$export$50c7b4e9d9f19c1(em,[ey]),[ex,eE]=ev(em),e_=(0,d.forwardRef)((t,n)=>(0,d.createElement)(eg.Provider,{scope:t.__scopeRovingFocusGroup},(0,d.createElement)(eg.Slot,{scope:t.__scopeRovingFocusGroup},(0,d.createElement)(eS,_extends({},t,{ref:n}))))),eS=(0,d.forwardRef)((t,n)=>{let{__scopeRovingFocusGroup:o,orientation:i,loop:a=!1,dir:c,currentTabStopId:u,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:m,onEntryFocus:g,...b}=t,v=(0,d.useRef)(null),w=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(n,v),E=$f631663db3294ace$export$b39126d51d94e6f3(c),[_=null,S]=$71cd76cc60e0454e$export$6f32135080cb4c3({prop:u,defaultProp:f,onChange:m}),[P,A]=(0,d.useState)(!1),k=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(g),C=eb(o),T=(0,d.useRef)(!1),[N,H]=(0,d.useState)(0);return(0,d.useEffect)(()=>{let t=v.current;if(t)return t.addEventListener(eh,k),()=>t.removeEventListener(eh,k)},[k]),(0,d.createElement)(ex,{scope:o,orientation:i,dir:E,loop:a,currentTabStopId:_,onItemFocus:(0,d.useCallback)(t=>S(t),[S]),onItemShiftTab:(0,d.useCallback)(()=>A(!0),[]),onFocusableItemAdd:(0,d.useCallback)(()=>H(t=>t+1),[]),onFocusableItemRemove:(0,d.useCallback)(()=>H(t=>t-1),[])},(0,d.createElement)(y.div,_extends({tabIndex:P||0===N?-1:0,"data-orientation":i},b,{ref:w,style:{outline:"none",...t.style},onMouseDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onMouseDown,()=>{T.current=!0}),onFocus:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onFocus,t=>{let n=!T.current;if(t.target===t.currentTarget&&n&&!P){let n=new CustomEvent(eh,ep);if(t.currentTarget.dispatchEvent(n),!n.defaultPrevented){let t=C().filter(t=>t.focusable),n=t.find(t=>t.active),o=t.find(t=>t.id===_),i=[n,o,...t].filter(Boolean),a=i.map(t=>t.ref.current);$d7bdfb9eb0fdf311$var$focusFirst(a)}}T.current=!1}),onBlur:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onBlur,()=>A(!1))})))}),e$=(0,d.forwardRef)((t,n)=>{let{__scopeRovingFocusGroup:o,focusable:i=!0,active:a=!1,tabStopId:c,...u}=t,f=$1746a345f3d73bb7$export$f680877a34711e37(),m=c||f,g=eE("RovingFocusGroupItem",o),b=g.currentTabStopId===m,v=eb(o),{onFocusableItemAdd:w,onFocusableItemRemove:E}=g;return(0,d.useEffect)(()=>{if(i)return w(),()=>E()},[i,w,E]),(0,d.createElement)(eg.ItemSlot,{scope:o,id:m,focusable:i,active:a},(0,d.createElement)(y.span,_extends({tabIndex:b?0:-1,"data-orientation":g.orientation},u,{ref:n,onMouseDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onMouseDown,t=>{i?g.onItemFocus(m):t.preventDefault()}),onFocus:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onFocus,()=>g.onItemFocus(m)),onKeyDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onKeyDown,t=>{if("Tab"===t.key&&t.shiftKey){g.onItemShiftTab();return}if(t.target!==t.currentTarget)return;let n=$d7bdfb9eb0fdf311$var$getFocusIntent(t,g.orientation,g.dir);if(void 0!==n){t.preventDefault();let o=v().filter(t=>t.focusable),i=o.map(t=>t.ref.current);if("last"===n)i.reverse();else if("prev"===n||"next"===n){"prev"===n&&i.reverse();let o=i.indexOf(t.currentTarget);i=g.loop?$d7bdfb9eb0fdf311$var$wrapArray(i,o+1):i.slice(o+1)}setTimeout(()=>$d7bdfb9eb0fdf311$var$focusFirst(i))}})})))}),eP={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function $d7bdfb9eb0fdf311$var$getDirectionAwareKey(t,n){return"rtl"!==n?t:"ArrowLeft"===t?"ArrowRight":"ArrowRight"===t?"ArrowLeft":t}function $d7bdfb9eb0fdf311$var$getFocusIntent(t,n,o){let i=$d7bdfb9eb0fdf311$var$getDirectionAwareKey(t.key,o);if(!("vertical"===n&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===n&&["ArrowUp","ArrowDown"].includes(i)))return eP[i]}function $d7bdfb9eb0fdf311$var$focusFirst(t){let n=document.activeElement;for(let o of t)if(o===n||(o.focus(),document.activeElement!==n))return}function $d7bdfb9eb0fdf311$var$wrapArray(t,n){return t.map((o,i)=>t[(n+i)%t.length])}var eA=new WeakMap,ek=new WeakMap,eI={},eB=0,unwrapHost=function(t){return t&&(t.host||unwrapHost(t.parentNode))},applyAttributeToOthers=function(t,n,o,i){var a=(Array.isArray(t)?t:[t]).map(function(t){if(n.contains(t))return t;var o=unwrapHost(t);return o&&n.contains(o)?o:(console.error("aria-hidden",t,"in not contained inside",n,". Doing nothing"),null)}).filter(function(t){return!!t});eI[o]||(eI[o]=new WeakMap);var c=eI[o],u=[],d=new Set,f=new Set(a),keep=function(t){!t||d.has(t)||(d.add(t),keep(t.parentNode))};a.forEach(keep);var deep=function(t){!t||f.has(t)||Array.prototype.forEach.call(t.children,function(t){if(d.has(t))deep(t);else{var n=t.getAttribute(i),a=null!==n&&"false"!==n,f=(eA.get(t)||0)+1,m=(c.get(t)||0)+1;eA.set(t,f),c.set(t,m),u.push(t),1===f&&a&&ek.set(t,!0),1===m&&t.setAttribute(o,"true"),a||t.setAttribute(i,"true")}})};return deep(n),d.clear(),eB++,function(){u.forEach(function(t){var n=eA.get(t)-1,a=c.get(t)-1;eA.set(t,n),c.set(t,a),n||(ek.has(t)||t.removeAttribute(i),ek.delete(t)),a||t.removeAttribute(o)}),--eB||(eA=new WeakMap,eA=new WeakMap,ek=new WeakMap,eI={})}},hideOthers=function(t,n,o){void 0===o&&(o="data-aria-hidden");var i=Array.from(Array.isArray(t)?t:[t]),a=n||("undefined"==typeof document?null:(Array.isArray(t)?t[0]:t).ownerDocument.body);return a?(i.push.apply(i,Array.from(a.querySelectorAll("[aria-live]"))),applyAttributeToOthers(i,a,o,"aria-hidden")):function(){return null}},eC=o(90701),eT="right-scroll-bar-position",eO="width-before-scroll-bar";function assignRef(t,n){return"function"==typeof t?t(n):t&&(t.current=n),t}function useCallbackRef(t,n){var o=(0,d.useState)(function(){return{value:t,callback:n,facade:{get current(){return o.value},set current(value){var i=o.value;i!==value&&(o.value=value,o.callback(value,i))}}}})[0];return o.callback=n,o.facade}var eR=new WeakMap;function useMergeRefs(t,n){var o=useCallbackRef(n||null,function(n){return t.forEach(function(t){return assignRef(t,n)})});return d.useLayoutEffect(function(){var n=eR.get(o);if(n){var i=new Set(n),a=new Set(t),c=o.current;i.forEach(function(t){a.has(t)||assignRef(t,null)}),a.forEach(function(t){i.has(t)||assignRef(t,c)})}eR.set(o,t)},[t]),o}function ItoI(t){return t}var eL=(void 0===a&&(a={}),(c=function innerCreateMedium(t,n){void 0===n&&(n=ItoI);var o=[],i=!1;return{read:function(){if(i)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:t},useMedium:function(t){var a=n(t,i);return o.push(a),function(){o=o.filter(function(t){return t!==a})}},assignSyncMedium:function(t){for(i=!0;o.length;){var n=o;o=[],n.forEach(t)}o={push:function(n){return t(n)},filter:function(){return o}}},assignMedium:function(t){i=!0;var n=[];if(o.length){var a=o;o=[],a.forEach(t),n=o}var executeQueue=function(){var o=n;n=[],o.forEach(t)},cycle=function(){return Promise.resolve().then(executeQueue)};cycle(),o={push:function(t){n.push(t),cycle()},filter:function(t){return n=n.filter(t),o}}}}}(null)).options=(0,eC.__assign)({async:!0,ssr:!1},a),c),nothing=function(){},eN=d.forwardRef(function(t,n){var o=d.useRef(null),i=d.useState({onScrollCapture:nothing,onWheelCapture:nothing,onTouchMoveCapture:nothing}),a=i[0],c=i[1],u=t.forwardProps,f=t.children,m=t.className,g=t.removeScrollBar,b=t.enabled,y=t.shards,v=t.sideCar,w=t.noIsolation,E=t.inert,_=t.allowPinchZoom,S=t.as,P=void 0===S?"div":S,A=(0,eC.__rest)(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),k=useMergeRefs([o,n]),C=(0,eC.__assign)((0,eC.__assign)({},A),a);return d.createElement(d.Fragment,null,b&&d.createElement(v,{sideCar:eL,removeScrollBar:g,shards:y,noIsolation:w,inert:E,setCallbacks:c,allowPinchZoom:!!_,lockRef:o}),u?d.cloneElement(d.Children.only(f),(0,eC.__assign)((0,eC.__assign)({},C),{ref:k})):d.createElement(P,(0,eC.__assign)({},C,{className:m,ref:k}),f))});eN.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},eN.classNames={fullWidth:eO,zeroRight:eT};var SideCar=function(t){var n=t.sideCar,o=(0,eC.__rest)(t,["sideCar"]);if(!n)throw Error("Sidecar: please provide `sideCar` property to import the right car");var i=n.read();if(!i)throw Error("Sidecar medium not found");return d.createElement(i,(0,eC.__assign)({},o))};function exportSidecar(t,n){return t.useMedium(n),SideCar}function makeStyleTag(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var n=u||o.nc;return n&&t.setAttribute("nonce",n),t}function injectStyles(t,n){t.styleSheet?t.styleSheet.cssText=n:t.appendChild(document.createTextNode(n))}function insertStyleTag(t){(document.head||document.getElementsByTagName("head")[0]).appendChild(t)}SideCar.isSideCarExport=!0;var stylesheetSingleton=function(){var t=0,n=null;return{add:function(o){0==t&&(n=makeStyleTag())&&(injectStyles(n,o),insertStyleTag(n)),t++},remove:function(){--t||!n||(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},styleHookSingleton=function(){var t=stylesheetSingleton();return function(n,o){d.useEffect(function(){return t.add(n),function(){t.remove()}},[n&&o])}},styleSingleton=function(){var t=styleHookSingleton();return function(n){return t(n.styles,n.dynamic),null}},eH={left:0,top:0,right:0,gap:0},parse=function(t){return parseInt(t||"",10)||0},getOffset=function(t){var n=window.getComputedStyle(document.body),o=n["padding"===t?"paddingLeft":"marginLeft"],i=n["padding"===t?"paddingTop":"marginTop"],a=n["padding"===t?"paddingRight":"marginRight"];return[parse(o),parse(i),parse(a)]},getGapWidth=function(t){if(void 0===t&&(t="margin"),"undefined"==typeof window)return eH;var n=getOffset(t),o=document.documentElement.clientWidth,i=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,i-o+n[2]-n[0])}},eD=styleSingleton(),getStyles=function(t,n,o,i){var a=t.left,c=t.top,u=t.right,d=t.gap;return void 0===o&&(o="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(i,";\n padding-right: ").concat(d,"px ").concat(i,";\n }\n body {\n overflow: hidden ").concat(i,";\n overscroll-behavior: contain;\n ").concat([n&&"position: relative ".concat(i,";"),"margin"===o&&"\n padding-left: ".concat(a,"px;\n padding-top: ").concat(c,"px;\n padding-right: ").concat(u,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(d,"px ").concat(i,";\n "),"padding"===o&&"padding-right: ".concat(d,"px ").concat(i,";")].filter(Boolean).join(""),"\n }\n \n .").concat(eT," {\n right: ").concat(d,"px ").concat(i,";\n }\n \n .").concat(eO," {\n margin-right: ").concat(d,"px ").concat(i,";\n }\n \n .").concat(eT," .").concat(eT," {\n right: 0 ").concat(i,";\n }\n \n .").concat(eO," .").concat(eO," {\n margin-right: 0 ").concat(i,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(d,"px;\n }\n")},RemoveScrollBar=function(t){var n=t.noRelative,o=t.noImportant,i=t.gapMode,a=void 0===i?"margin":i,c=d.useMemo(function(){return getGapWidth(a)},[a]);return d.createElement(eD,{styles:getStyles(c,!n,a,o?"":"!important")})},eF=!1;if("undefined"!=typeof window)try{var eM=Object.defineProperty({},"passive",{get:function(){return eF=!0,!0}});window.addEventListener("test",eM,eM),window.removeEventListener("test",eM,eM)}catch(t){eF=!1}var eU=!!eF&&{passive:!1},elementCanBeScrolled=function(t,n){var o=window.getComputedStyle(t);return"hidden"!==o[n]&&!(o.overflowY===o.overflowX&&"TEXTAREA"!==t.tagName&&"visible"===o[n])},locationCouldBeScrolled=function(t,n){var o=n;do{if("undefined"!=typeof ShadowRoot&&o instanceof ShadowRoot&&(o=o.host),elementCouldBeScrolled(t,o)){var i=getScrollVariables(t,o);if(i[1]>i[2])return!0}o=o.parentNode}while(o&&o!==document.body);return!1},elementCouldBeScrolled=function(t,n){return"v"===t?elementCanBeScrolled(n,"overflowY"):elementCanBeScrolled(n,"overflowX")},getScrollVariables=function(t,n){return"v"===t?[n.scrollTop,n.scrollHeight,n.clientHeight]:[n.scrollLeft,n.scrollWidth,n.clientWidth]},handleScroll=function(t,n,o,i,a){var c,u=(c=window.getComputedStyle(n).direction,"h"===t&&"rtl"===c?-1:1),d=u*i,f=o.target,m=n.contains(f),g=!1,b=d>0,y=0,v=0;do{var w=getScrollVariables(t,f),E=w[0],_=w[1]-w[2]-u*E;(E||_)&&elementCouldBeScrolled(t,f)&&(y+=_,v+=E),f=f.parentNode}while(!m&&f!==document.body||m&&(n.contains(f)||n===f));return b&&(a&&0===y||!a&&d>y)?g=!0:!b&&(a&&0===v||!a&&-d>v)&&(g=!0),g},getTouchXY=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},getDeltaXY=function(t){return[t.deltaX,t.deltaY]},extractRef=function(t){return t&&"current"in t?t.current:t},ez=0,eG=[],eV=exportSidecar(eL,function(t){var n=d.useRef([]),o=d.useRef([0,0]),i=d.useRef(),a=d.useState(ez++)[0],c=d.useState(function(){return styleSingleton()})[0],u=d.useRef(t);d.useEffect(function(){u.current=t},[t]),d.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(a));var n=(0,eC.__spreadArray)([t.lockRef.current],(t.shards||[]).map(extractRef),!0).filter(Boolean);return n.forEach(function(t){return t.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),n.forEach(function(t){return t.classList.remove("allow-interactivity-".concat(a))})}}},[t.inert,t.lockRef.current,t.shards]);var f=d.useCallback(function(t,n){if("touches"in t&&2===t.touches.length)return!u.current.allowPinchZoom;var a,c=getTouchXY(t),d=o.current,f="deltaX"in t?t.deltaX:d[0]-c[0],m="deltaY"in t?t.deltaY:d[1]-c[1],g=t.target,b=Math.abs(f)>Math.abs(m)?"h":"v";if("touches"in t&&"h"===b&&"range"===g.type)return!1;var y=locationCouldBeScrolled(b,g);if(!y)return!0;if(y?a=b:(a="v"===b?"h":"v",y=locationCouldBeScrolled(b,g)),!y)return!1;if(!i.current&&"changedTouches"in t&&(f||m)&&(i.current=a),!a)return!0;var v=i.current||a;return handleScroll(v,n,t,"h"===v?f:m,!0)},[]),m=d.useCallback(function(t){if(eG.length&&eG[eG.length-1]===c){var o="deltaY"in t?getDeltaXY(t):getTouchXY(t),i=n.current.filter(function(n){var i;return n.name===t.type&&n.target===t.target&&(i=n.delta)[0]===o[0]&&i[1]===o[1]})[0];if(i&&i.should){t.cancelable&&t.preventDefault();return}if(!i){var a=(u.current.shards||[]).map(extractRef).filter(Boolean).filter(function(n){return n.contains(t.target)});(a.length>0?f(t,a[0]):!u.current.noIsolation)&&t.cancelable&&t.preventDefault()}}},[]),g=d.useCallback(function(t,o,i,a){var c={name:t,delta:o,target:i,should:a};n.current.push(c),setTimeout(function(){n.current=n.current.filter(function(t){return t!==c})},1)},[]),b=d.useCallback(function(t){o.current=getTouchXY(t),i.current=void 0},[]),y=d.useCallback(function(n){g(n.type,getDeltaXY(n),n.target,f(n,t.lockRef.current))},[]),v=d.useCallback(function(n){g(n.type,getTouchXY(n),n.target,f(n,t.lockRef.current))},[]);d.useEffect(function(){return eG.push(c),t.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:v}),document.addEventListener("wheel",m,eU),document.addEventListener("touchmove",m,eU),document.addEventListener("touchstart",b,eU),function(){eG=eG.filter(function(t){return t!==c}),document.removeEventListener("wheel",m,eU),document.removeEventListener("touchmove",m,eU),document.removeEventListener("touchstart",b,eU)}},[]);var w=t.removeScrollBar,E=t.inert;return d.createElement(d.Fragment,null,E?d.createElement(c,{styles:"\n .block-interactivity-".concat(a," {pointer-events: none;}\n .allow-interactivity-").concat(a," {pointer-events: all;}\n")}):null,w?d.createElement(RemoveScrollBar,{gapMode:"margin"}):null)}),eW=d.forwardRef(function(t,n){return d.createElement(eN,(0,eC.__assign)({},t,{ref:n,sideCar:eV}))});eW.classNames=eN.classNames;let eq=["Enter"," "],ej=["ArrowUp","PageDown","End"],eK=["ArrowDown","PageUp","Home",...ej],eZ={ltr:[...eq,"ArrowRight"],rtl:[...eq,"ArrowLeft"]},eY={ltr:["ArrowLeft"],rtl:["ArrowRight"]},eX="Menu",[eJ,eQ,e0]=$e02a7d9cb1dc128c$export$c74125a8e3af6bb2(eX),[e1,e2]=$c512c27ab02ef895$export$50c7b4e9d9f19c1(eX,[e0,er,ew]),e3=er(),e4=ew(),[e5,e6]=e1(eX),[e8,e7]=e1(eX),e9=(0,d.forwardRef)((t,n)=>{let{__scopeMenu:o,...i}=t,a=e3(o);return(0,d.createElement)(ei,_extends({},a,i,{ref:n}))}),te="MenuPortal",[tt,tr]=e1(te,{forceMount:void 0}),tn="MenuContent",[to,ti]=e1(tn),ta=(0,d.forwardRef)((t,n)=>{let o=tr(tn,t.__scopeMenu),{forceMount:i=o.forceMount,...a}=t,c=e6(tn,t.__scopeMenu),u=e7(tn,t.__scopeMenu);return(0,d.createElement)(eJ.Provider,{scope:t.__scopeMenu},(0,d.createElement)($921a889cee6df7e8$export$99c2b779aa4e8b8b,{present:i||c.open},(0,d.createElement)(eJ.Slot,{scope:t.__scopeMenu},u.modal?(0,d.createElement)(ts,_extends({},a,{ref:n})):(0,d.createElement)(tl,_extends({},a,{ref:n})))))}),ts=(0,d.forwardRef)((t,n)=>{let o=e6(tn,t.__scopeMenu),i=(0,d.useRef)(null),a=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(n,i);return(0,d.useEffect)(()=>{let t=i.current;if(t)return hideOthers(t)},[]),(0,d.createElement)(tc,_extends({},t,{ref:a,trapFocus:o.open,disableOutsidePointerEvents:o.open,disableOutsideScroll:!0,onFocusOutside:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onFocusOutside,t=>t.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>o.onOpenChange(!1)}))}),tl=(0,d.forwardRef)((t,n)=>{let o=e6(tn,t.__scopeMenu);return(0,d.createElement)(tc,_extends({},t,{ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>o.onOpenChange(!1)}))}),tc=(0,d.forwardRef)((t,n)=>{let{__scopeMenu:o,loop:i=!1,trapFocus:a,onOpenAutoFocus:c,onCloseAutoFocus:u,disableOutsidePointerEvents:f,onEntryFocus:m,onEscapeKeyDown:b,onPointerDownOutside:y,onFocusOutside:v,onInteractOutside:w,onDismiss:E,disableOutsideScroll:S,...P}=t,A=e6(tn,o),k=e7(tn,o),T=e3(o),N=e4(o),H=eQ(o),[D,F]=(0,d.useState)(null),U=(0,d.useRef)(null),G=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(n,U,A.onContentChange),V=(0,d.useRef)(0),W=(0,d.useRef)(""),q=(0,d.useRef)(0),K=(0,d.useRef)(null),Z=(0,d.useRef)("right"),Y=(0,d.useRef)(0),J=S?eW:d.Fragment,Q=S?{as:g,allowPinchZoom:!0}:void 0,handleTypeaheadSearch=t=>{var n,o;let i=W.current+t,a=H().filter(t=>!t.disabled),c=document.activeElement,u=null===(n=a.find(t=>t.ref.current===c))||void 0===n?void 0:n.textValue,d=a.map(t=>t.textValue),f=$6cc32821e9371a1c$var$getNextMatch(d,i,u),m=null===(o=a.find(t=>t.textValue===f))||void 0===o?void 0:o.ref.current;!function updateSearch(t){W.current=t,window.clearTimeout(V.current),""!==t&&(V.current=window.setTimeout(()=>updateSearch(""),1e3))}(i),m&&setTimeout(()=>m.focus())};(0,d.useEffect)(()=>()=>window.clearTimeout(V.current),[]),$3db38b7d1fb3fe6a$export$b7ece24a22aeda8c();let ee=(0,d.useCallback)(t=>{var n,o;let i=Z.current===(null===(n=K.current)||void 0===n?void 0:n.side);return i&&$6cc32821e9371a1c$var$isPointerInGraceArea(t,null===(o=K.current)||void 0===o?void 0:o.area)},[]);return(0,d.createElement)(to,{scope:o,searchRef:W,onItemEnter:(0,d.useCallback)(t=>{ee(t)&&t.preventDefault()},[ee]),onItemLeave:(0,d.useCallback)(t=>{var n;ee(t)||(null===(n=U.current)||void 0===n||n.focus(),F(null))},[ee]),onTriggerLeave:(0,d.useCallback)(t=>{ee(t)&&t.preventDefault()},[ee]),pointerGraceTimerRef:q,onPointerGraceIntentChange:(0,d.useCallback)(t=>{K.current=t},[])},(0,d.createElement)(J,Q,(0,d.createElement)(C,{asChild:!0,trapped:a,onMountAutoFocus:$e42e1063c40fb3ef$export$b9ecd428b558ff10(c,t=>{var n;t.preventDefault(),null===(n=U.current)||void 0===n||n.focus()}),onUnmountAutoFocus:u},(0,d.createElement)(_,{asChild:!0,disableOutsidePointerEvents:f,onEscapeKeyDown:b,onPointerDownOutside:y,onFocusOutside:v,onInteractOutside:w,onDismiss:E},(0,d.createElement)(e_,_extends({asChild:!0},N,{dir:k.dir,orientation:"vertical",loop:i,currentTabStopId:D,onCurrentTabStopIdChange:F,onEntryFocus:$e42e1063c40fb3ef$export$b9ecd428b558ff10(m,t=>{k.isUsingKeyboardRef.current||t.preventDefault()})}),(0,d.createElement)(ec,_extends({role:"menu","aria-orientation":"vertical","data-state":$6cc32821e9371a1c$var$getOpenState(A.open),"data-radix-menu-content":"",dir:k.dir},T,P,{ref:G,style:{outline:"none",...P.style},onKeyDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(P.onKeyDown,t=>{let n=t.target,o=n.closest("[data-radix-menu-content]")===t.currentTarget,i=t.ctrlKey||t.altKey||t.metaKey,a=1===t.key.length;o&&("Tab"===t.key&&t.preventDefault(),!i&&a&&handleTypeaheadSearch(t.key));let c=U.current;if(t.target!==c||!eK.includes(t.key))return;t.preventDefault();let u=H().filter(t=>!t.disabled),d=u.map(t=>t.ref.current);ej.includes(t.key)&&d.reverse(),$6cc32821e9371a1c$var$focusFirst(d)}),onBlur:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onBlur,t=>{t.currentTarget.contains(t.target)||(window.clearTimeout(V.current),W.current="")}),onPointerMove:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onPointerMove,$6cc32821e9371a1c$var$whenMouse(t=>{let n=t.target,o=Y.current!==t.clientX;if(t.currentTarget.contains(n)&&o){let n=t.clientX>Y.current?"right":"left";Z.current=n,Y.current=t.clientX}}))})))))))}),tu=(0,d.forwardRef)((t,n)=>{let{__scopeMenu:o,...i}=t;return(0,d.createElement)(y.div,_extends({role:"group"},i,{ref:n}))}),td=(0,d.forwardRef)((t,n)=>{let{__scopeMenu:o,...i}=t;return(0,d.createElement)(y.div,_extends({},i,{ref:n}))}),tf="MenuItem",th="menu.itemSelect",tp=(0,d.forwardRef)((t,n)=>{let{disabled:o=!1,onSelect:i,...a}=t,c=(0,d.useRef)(null),u=e7(tf,t.__scopeMenu),f=ti(tf,t.__scopeMenu),m=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(n,c),g=(0,d.useRef)(!1);return(0,d.createElement)(tm,_extends({},a,{ref:m,disabled:o,onClick:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onClick,()=>{let t=c.current;if(!o&&t){let n=new CustomEvent(th,{bubbles:!0,cancelable:!0});t.addEventListener(th,t=>null==i?void 0:i(t),{once:!0}),$8927f6f2acc4f386$export$6d1a0317bde7de7f(t,n),n.defaultPrevented?g.current=!1:u.onClose()}}),onPointerDown:n=>{var o;null===(o=t.onPointerDown)||void 0===o||o.call(t,n),g.current=!0},onPointerUp:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onPointerUp,t=>{var n;g.current||null===(n=t.currentTarget)||void 0===n||n.click()}),onKeyDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onKeyDown,t=>{let n=""!==f.searchRef.current;!o&&(!n||" "!==t.key)&&eq.includes(t.key)&&(t.currentTarget.click(),t.preventDefault())})}))}),tm=(0,d.forwardRef)((t,n)=>{let{__scopeMenu:o,disabled:i=!1,textValue:a,...c}=t,u=ti(tf,o),f=e4(o),m=(0,d.useRef)(null),g=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(n,m),[b,v]=(0,d.useState)(!1),[w,E]=(0,d.useState)("");return(0,d.useEffect)(()=>{let t=m.current;if(t){var n;E((null!==(n=t.textContent)&&void 0!==n?n:"").trim())}},[c.children]),(0,d.createElement)(eJ.ItemSlot,{scope:o,disabled:i,textValue:null!=a?a:w},(0,d.createElement)(e$,_extends({asChild:!0},f,{focusable:!i}),(0,d.createElement)(y.div,_extends({role:"menuitem","data-highlighted":b?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0},c,{ref:g,onPointerMove:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onPointerMove,$6cc32821e9371a1c$var$whenMouse(t=>{if(i)u.onItemLeave(t);else if(u.onItemEnter(t),!t.defaultPrevented){let n=t.currentTarget;n.focus()}})),onPointerLeave:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onPointerLeave,$6cc32821e9371a1c$var$whenMouse(t=>u.onItemLeave(t))),onFocus:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onFocus,()=>v(!0)),onBlur:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onBlur,()=>v(!1))}))))}),tg=(0,d.forwardRef)((t,n)=>{let{checked:o=!1,onCheckedChange:i,...a}=t;return(0,d.createElement)(tE,{scope:t.__scopeMenu,checked:o},(0,d.createElement)(tp,_extends({role:"menuitemcheckbox","aria-checked":$6cc32821e9371a1c$var$isIndeterminate(o)?"mixed":o},a,{ref:n,"data-state":$6cc32821e9371a1c$var$getCheckedState(o),onSelect:$e42e1063c40fb3ef$export$b9ecd428b558ff10(a.onSelect,()=>null==i?void 0:i(!!$6cc32821e9371a1c$var$isIndeterminate(o)||!o),{checkForDefaultPrevented:!1})})))}),[tb,ty]=e1("MenuRadioGroup",{value:void 0,onValueChange:()=>{}}),tv=(0,d.forwardRef)((t,n)=>{let{value:o,onValueChange:i,...a}=t,c=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(i);return(0,d.createElement)(tb,{scope:t.__scopeMenu,value:o,onValueChange:c},(0,d.createElement)(tu,_extends({},a,{ref:n})))}),tw=(0,d.forwardRef)((t,n)=>{let{value:o,...i}=t,a=ty("MenuRadioItem",t.__scopeMenu),c=o===a.value;return(0,d.createElement)(tE,{scope:t.__scopeMenu,checked:c},(0,d.createElement)(tp,_extends({role:"menuitemradio","aria-checked":c},i,{ref:n,"data-state":$6cc32821e9371a1c$var$getCheckedState(c),onSelect:$e42e1063c40fb3ef$export$b9ecd428b558ff10(i.onSelect,()=>{var t;return null===(t=a.onValueChange)||void 0===t?void 0:t.call(a,o)},{checkForDefaultPrevented:!1})})))}),tx="MenuItemIndicator",[tE,t_]=e1(tx,{checked:!1}),tS=(0,d.forwardRef)((t,n)=>{let{__scopeMenu:o,forceMount:i,...a}=t,c=t_(tx,o);return(0,d.createElement)($921a889cee6df7e8$export$99c2b779aa4e8b8b,{present:i||$6cc32821e9371a1c$var$isIndeterminate(c.checked)||!0===c.checked},(0,d.createElement)(y.span,_extends({},a,{ref:n,"data-state":$6cc32821e9371a1c$var$getCheckedState(c.checked)})))}),t$=(0,d.forwardRef)((t,n)=>{let{__scopeMenu:o,...i}=t;return(0,d.createElement)(y.div,_extends({role:"separator","aria-orientation":"horizontal"},i,{ref:n}))}),tP=((t,n)=>{let{__scopeMenu:o,...i}=t,a=e3(o);return(0,d.createElement)(ed,_extends({},a,i,{ref:n}))},"MenuSub"),[tA,tk]=e1(tP),tI="MenuSubTrigger",tB=(0,d.forwardRef)((t,n)=>{let o=e6(tI,t.__scopeMenu),i=e7(tI,t.__scopeMenu),a=tk(tI,t.__scopeMenu),c=ti(tI,t.__scopeMenu),u=(0,d.useRef)(null),{pointerGraceTimerRef:f,onPointerGraceIntentChange:m}=c,g={__scopeMenu:t.__scopeMenu},b=(0,d.useCallback)(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return(0,d.useEffect)(()=>b,[b]),(0,d.useEffect)(()=>{let t=f.current;return()=>{window.clearTimeout(t),m(null)}},[f,m]),(0,d.createElement)(e9,_extends({asChild:!0},g),(0,d.createElement)(tm,_extends({id:a.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":a.contentId,"data-state":$6cc32821e9371a1c$var$getOpenState(o.open)},t,{ref:$6ed0406888f73fc4$export$43e446d32b3d21af(n,a.onTriggerChange),onClick:n=>{var i;null===(i=t.onClick)||void 0===i||i.call(t,n),t.disabled||n.defaultPrevented||(n.currentTarget.focus(),o.open||o.onOpenChange(!0))},onPointerMove:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onPointerMove,$6cc32821e9371a1c$var$whenMouse(n=>{c.onItemEnter(n),n.defaultPrevented||t.disabled||o.open||u.current||(c.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{o.onOpenChange(!0),b()},100))})),onPointerLeave:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onPointerLeave,$6cc32821e9371a1c$var$whenMouse(t=>{var n,i;b();let a=null===(n=o.content)||void 0===n?void 0:n.getBoundingClientRect();if(a){let n=null===(i=o.content)||void 0===i?void 0:i.dataset.side,u="right"===n,d=a[u?"left":"right"],m=a[u?"right":"left"];c.onPointerGraceIntentChange({area:[{x:t.clientX+(u?-5:5),y:t.clientY},{x:d,y:a.top},{x:m,y:a.top},{x:m,y:a.bottom},{x:d,y:a.bottom}],side:n}),window.clearTimeout(f.current),f.current=window.setTimeout(()=>c.onPointerGraceIntentChange(null),300)}else{if(c.onTriggerLeave(t),t.defaultPrevented)return;c.onPointerGraceIntentChange(null)}})),onKeyDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onKeyDown,n=>{let a=""!==c.searchRef.current;if(!t.disabled&&(!a||" "!==n.key)&&eZ[i.dir].includes(n.key)){var u;o.onOpenChange(!0),null===(u=o.content)||void 0===u||u.focus(),n.preventDefault()}})})))}),tC=(0,d.forwardRef)((t,n)=>{let o=tr(tn,t.__scopeMenu),{forceMount:i=o.forceMount,...a}=t,c=e6(tn,t.__scopeMenu),u=e7(tn,t.__scopeMenu),f=tk("MenuSubContent",t.__scopeMenu),m=(0,d.useRef)(null),g=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(n,m);return(0,d.createElement)(eJ.Provider,{scope:t.__scopeMenu},(0,d.createElement)($921a889cee6df7e8$export$99c2b779aa4e8b8b,{present:i||c.open},(0,d.createElement)(eJ.Slot,{scope:t.__scopeMenu},(0,d.createElement)(tc,_extends({id:f.contentId,"aria-labelledby":f.triggerId},a,{ref:g,align:"start",side:"rtl"===u.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:t=>{var n;u.isUsingKeyboardRef.current&&(null===(n=m.current)||void 0===n||n.focus()),t.preventDefault()},onCloseAutoFocus:t=>t.preventDefault(),onFocusOutside:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onFocusOutside,t=>{t.target!==f.trigger&&c.onOpenChange(!1)}),onEscapeKeyDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onEscapeKeyDown,t=>{u.onClose(),t.preventDefault()}),onKeyDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onKeyDown,t=>{let n=t.currentTarget.contains(t.target),o=eY[u.dir].includes(t.key);if(n&&o){var i;c.onOpenChange(!1),null===(i=f.trigger)||void 0===i||i.focus(),t.preventDefault()}})})))))});function $6cc32821e9371a1c$var$getOpenState(t){return t?"open":"closed"}function $6cc32821e9371a1c$var$isIndeterminate(t){return"indeterminate"===t}function $6cc32821e9371a1c$var$getCheckedState(t){return $6cc32821e9371a1c$var$isIndeterminate(t)?"indeterminate":t?"checked":"unchecked"}function $6cc32821e9371a1c$var$focusFirst(t){let n=document.activeElement;for(let o of t)if(o===n||(o.focus(),document.activeElement!==n))return}function $6cc32821e9371a1c$var$wrapArray(t,n){return t.map((o,i)=>t[(n+i)%t.length])}function $6cc32821e9371a1c$var$getNextMatch(t,n,o){let i=n.length>1&&Array.from(n).every(t=>t===n[0]),a=i?n[0]:n,c=o?t.indexOf(o):-1,u=$6cc32821e9371a1c$var$wrapArray(t,Math.max(c,0)),d=1===a.length;d&&(u=u.filter(t=>t!==o));let f=u.find(t=>t.toLowerCase().startsWith(a.toLowerCase()));return f!==o?f:void 0}function $6cc32821e9371a1c$var$isPointInPolygon(t,n){let{x:o,y:i}=t,a=!1;for(let t=0,c=n.length-1;ti!=m>i&&o<(f-u)*(i-d)/(m-d)+u;g&&(a=!a)}return a}function $6cc32821e9371a1c$var$isPointerInGraceArea(t,n){if(!n)return!1;let o={x:t.clientX,y:t.clientY};return $6cc32821e9371a1c$var$isPointInPolygon(o,n)}function $6cc32821e9371a1c$var$whenMouse(t){return n=>"mouse"===n.pointerType?t(n):void 0}let $6cc32821e9371a1c$export$be92b6f5f03c0fe9=t=>{let{__scopeMenu:n,open:o=!1,children:i,dir:a,onOpenChange:c,modal:u=!0}=t,f=e3(n),[m,g]=(0,d.useState)(null),b=(0,d.useRef)(!1),y=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(c),v=$f631663db3294ace$export$b39126d51d94e6f3(a);return(0,d.useEffect)(()=>{let handleKeyDown=()=>{b.current=!0,document.addEventListener("pointerdown",handlePointer,{capture:!0,once:!0}),document.addEventListener("pointermove",handlePointer,{capture:!0,once:!0})},handlePointer=()=>b.current=!1;return document.addEventListener("keydown",handleKeyDown,{capture:!0}),()=>{document.removeEventListener("keydown",handleKeyDown,{capture:!0}),document.removeEventListener("pointerdown",handlePointer,{capture:!0}),document.removeEventListener("pointermove",handlePointer,{capture:!0})}},[]),(0,d.createElement)($cf1ac5d9fe0e8206$export$be92b6f5f03c0fe9,f,(0,d.createElement)(e5,{scope:n,open:o,onOpenChange:y,content:m,onContentChange:g},(0,d.createElement)(e8,{scope:n,onClose:(0,d.useCallback)(()=>y(!1),[y]),isUsingKeyboardRef:b,dir:v,modal:u},i)))},$6cc32821e9371a1c$export$602eac185826482c=t=>{let{__scopeMenu:n,forceMount:o,children:i,container:a}=t,c=e6(te,n);return(0,d.createElement)(tt,{scope:n,forceMount:o},(0,d.createElement)($921a889cee6df7e8$export$99c2b779aa4e8b8b,{present:o||c.open},(0,d.createElement)(ef,{asChild:!0,container:a},i)))},$6cc32821e9371a1c$export$d7a01e11500dfb6f=t=>{let{__scopeMenu:n,children:o,open:i=!1,onOpenChange:a}=t,c=e6(tP,n),u=e3(n),[f,m]=(0,d.useState)(null),[g,b]=(0,d.useState)(null),y=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(a);return(0,d.useEffect)(()=>(!1===c.open&&y(!1),()=>y(!1)),[c.open,y]),(0,d.createElement)($cf1ac5d9fe0e8206$export$be92b6f5f03c0fe9,u,(0,d.createElement)(e5,{scope:n,open:i,onOpenChange:y,content:g,onContentChange:b},(0,d.createElement)(tA,{scope:n,contentId:$1746a345f3d73bb7$export$f680877a34711e37(),triggerId:$1746a345f3d73bb7$export$f680877a34711e37(),trigger:f,onTriggerChange:m},o)))},tT="DropdownMenu",[tO,tR]=$c512c27ab02ef895$export$50c7b4e9d9f19c1(tT,[e2]),tL=e2(),[tN,tH]=tO(tT),tD=(0,d.forwardRef)((t,n)=>{let{__scopeDropdownMenu:o,disabled:i=!1,...a}=t,c=tH("DropdownMenuTrigger",o),u=tL(o);return(0,d.createElement)(e9,_extends({asChild:!0},u),(0,d.createElement)(y.button,_extends({type:"button",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":c.open?"open":"closed","data-disabled":i?"":void 0,disabled:i},a,{ref:$6ed0406888f73fc4$export$43e446d32b3d21af(n,c.triggerRef),onPointerDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onPointerDown,t=>{i||0!==t.button||!1!==t.ctrlKey||(c.onOpenToggle(),c.open||t.preventDefault())}),onKeyDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onKeyDown,t=>{!i&&(["Enter"," "].includes(t.key)&&c.onOpenToggle(),"ArrowDown"===t.key&&c.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(t.key)&&t.preventDefault())})})))}),tF=(0,d.forwardRef)((t,n)=>{let{__scopeDropdownMenu:o,...i}=t,a=tH("DropdownMenuContent",o),c=tL(o),u=(0,d.useRef)(!1);return(0,d.createElement)(ta,_extends({id:a.contentId,"aria-labelledby":a.triggerId},c,i,{ref:n,onCloseAutoFocus:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onCloseAutoFocus,t=>{var n;u.current||null===(n=a.triggerRef.current)||void 0===n||n.focus(),u.current=!1,t.preventDefault()}),onInteractOutside:$e42e1063c40fb3ef$export$b9ecd428b558ff10(t.onInteractOutside,t=>{let n=t.detail.originalEvent,o=0===n.button&&!0===n.ctrlKey,i=2===n.button||o;(!a.modal||i)&&(u.current=!0)}),style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),tM=(0,d.forwardRef)((t,n)=>{let{__scopeDropdownMenu:o,...i}=t,a=tL(o);return(0,d.createElement)(tu,_extends({},a,i,{ref:n}))}),tU=(0,d.forwardRef)((t,n)=>{let{__scopeDropdownMenu:o,...i}=t,a=tL(o);return(0,d.createElement)(td,_extends({},a,i,{ref:n}))}),tz=(0,d.forwardRef)((t,n)=>{let{__scopeDropdownMenu:o,...i}=t,a=tL(o);return(0,d.createElement)(tp,_extends({},a,i,{ref:n}))}),tG=(0,d.forwardRef)((t,n)=>{let{__scopeDropdownMenu:o,...i}=t,a=tL(o);return(0,d.createElement)(tg,_extends({},a,i,{ref:n}))}),tV=(0,d.forwardRef)((t,n)=>{let{__scopeDropdownMenu:o,...i}=t,a=tL(o);return(0,d.createElement)(tv,_extends({},a,i,{ref:n}))}),tW=(0,d.forwardRef)((t,n)=>{let{__scopeDropdownMenu:o,...i}=t,a=tL(o);return(0,d.createElement)(tw,_extends({},a,i,{ref:n}))}),tq=(0,d.forwardRef)((t,n)=>{let{__scopeDropdownMenu:o,...i}=t,a=tL(o);return(0,d.createElement)(tS,_extends({},a,i,{ref:n}))}),tj=(0,d.forwardRef)((t,n)=>{let{__scopeDropdownMenu:o,...i}=t,a=tL(o);return(0,d.createElement)(t$,_extends({},a,i,{ref:n}))}),tK=(0,d.forwardRef)((t,n)=>{let{__scopeDropdownMenu:o,...i}=t,a=tL(o);return(0,d.createElement)(tB,_extends({},a,i,{ref:n}))}),tZ=(0,d.forwardRef)((t,n)=>{let{__scopeDropdownMenu:o,...i}=t,a=tL(o);return(0,d.createElement)(tC,_extends({},a,i,{ref:n,style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),$d08ef79370b62062$export$be92b6f5f03c0fe9=t=>{let{__scopeDropdownMenu:n,children:o,dir:i,open:a,defaultOpen:c,onOpenChange:u,modal:f=!0}=t,m=tL(n),g=(0,d.useRef)(null),[b=!1,y]=$71cd76cc60e0454e$export$6f32135080cb4c3({prop:a,defaultProp:c,onChange:u});return(0,d.createElement)(tN,{scope:n,triggerId:$1746a345f3d73bb7$export$f680877a34711e37(),triggerRef:g,contentId:$1746a345f3d73bb7$export$f680877a34711e37(),open:b,onOpenChange:y,onOpenToggle:(0,d.useCallback)(()=>y(t=>!t),[y]),modal:f},(0,d.createElement)($6cc32821e9371a1c$export$be92b6f5f03c0fe9,_extends({},m,{open:b,onOpenChange:y,dir:i,modal:f}),o))},tY=tD,$d08ef79370b62062$export$602eac185826482c=t=>{let{__scopeDropdownMenu:n,...o}=t,i=tL(n);return(0,d.createElement)($6cc32821e9371a1c$export$602eac185826482c,_extends({},i,o))},tX=tF,tJ=tM,tQ=tU,t0=tz,t1=tG,t2=tV,t3=tW,t4=tq,t5=tj,$d08ef79370b62062$export$d7a01e11500dfb6f=t=>{let{__scopeDropdownMenu:n,children:o,open:i,onOpenChange:a,defaultOpen:c}=t,u=tL(n),[f=!1,m]=$71cd76cc60e0454e$export$6f32135080cb4c3({prop:i,defaultProp:c,onChange:a});return(0,d.createElement)($6cc32821e9371a1c$export$d7a01e11500dfb6f,_extends({},u,{open:f,onOpenChange:m}),o)},t6=tK,t8=tZ},45489:function(t,n,o){o.d(n,{_:function(){return _tagged_template_literal}});function _tagged_template_literal(t,n){return n||(n=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))}},54457:function(t,n,o){function r(t){var n,o,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t)){var a=t.length;for(n=0;n>c&a)}:{h:0|Number(t>>c&a),l:0|Number(t&a)}}function split(t,n=!1){let o=new Uint32Array(t.length),i=new Uint32Array(t.length);for(let a=0;aBigInt(t>>>0)<>>0),shrSH:(t,n,o)=>t>>>o,shrSL:(t,n,o)=>t<<32-o|n>>>o,rotrSH:(t,n,o)=>t>>>o|n<<32-o,rotrSL:(t,n,o)=>t<<32-o|n>>>o,rotrBH:(t,n,o)=>t<<64-o|n>>>o-32,rotrBL:(t,n,o)=>t>>>o-32|n<<64-o,rotr32H:(t,n)=>n,rotr32L:(t,n)=>t,rotlSH:(t,n,o)=>t<>>32-o,rotlSL:(t,n,o)=>n<>>32-o,rotlBH:(t,n,o)=>n<>>64-o,rotlBL:(t,n,o)=>t<>>64-o,add:function(t,n,o,i){let a=(n>>>0)+(i>>>0);return{h:t+o+(a/4294967296|0)|0,l:0|a}},add3L:(t,n,o)=>(t>>>0)+(n>>>0)+(o>>>0),add3H:(t,n,o,i)=>n+o+i+(t/4294967296|0)|0,add4L:(t,n,o,i)=>(t>>>0)+(n>>>0)+(o>>>0)+(i>>>0),add4H:(t,n,o,i,a)=>n+o+i+a+(t/4294967296|0)|0,add5H:(t,n,o,i,a,c)=>n+o+i+a+c+(t/4294967296|0)|0,add5L:(t,n,o,i,a)=>(t>>>0)+(n>>>0)+(o>>>0)+(i>>>0)+(a>>>0)},d=o(68209);let[f,m,g]=[[],[],[]],b=BigInt(0),y=BigInt(1),v=BigInt(2),w=BigInt(7),E=BigInt(256),_=BigInt(113);for(let t=0,n=y,o=1,i=0;t<24;t++){[o,i]=[i,(2*o+3*i)%5],f.push(2*(5*i+o)),m.push((t+1)*(t+2)/2%64);let a=b;for(let t=0;t<7;t++)(n=(n<>w)*_)%E)&v&&(a^=y<<(y<o>32?u.rotlBH(t,n,o):u.rotlSH(t,n,o),rotlL=(t,n,o)=>o>32?u.rotlBL(t,n,o):u.rotlSL(t,n,o);function keccakP(t,n=24){let o=new Uint32Array(10);for(let i=24-n;i<24;i++){for(let n=0;n<10;n++)o[n]=t[n]^t[n+10]^t[n+20]^t[n+30]^t[n+40];for(let n=0;n<10;n+=2){let i=(n+8)%10,a=(n+2)%10,c=o[a],u=o[a+1],d=rotlH(c,u,1)^o[i],f=rotlL(c,u,1)^o[i+1];for(let o=0;o<50;o+=10)t[n+o]^=d,t[n+o+1]^=f}let n=t[2],a=t[3];for(let o=0;o<24;o++){let i=m[o],c=rotlH(n,a,i),u=rotlL(n,a,i),d=f[o];n=t[d],a=t[d+1],t[d]=c,t[d+1]=u}for(let n=0;n<50;n+=10){for(let i=0;i<10;i++)o[i]=t[n+i];for(let i=0;i<10;i++)t[n+i]^=~o[(i+2)%10]&o[(i+4)%10]}t[0]^=S[i],t[1]^=P[i]}o.fill(0)}let Keccak=class Keccak extends d.kb{constructor(t,n,o,a=!1,c=24){if(super(),this.blockLen=t,this.suffix=n,this.outputLen=o,this.enableXOF=a,this.rounds=c,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,i.ZP.number(o),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,d.Jq)(this.state)}keccak(){keccakP(this.state32,this.rounds),this.posOut=0,this.pos=0}update(t){i.ZP.exists(this);let{blockLen:n,state:o}=this;t=(0,d.O0)(t);let a=t.length;for(let i=0;i=o&&this.keccak();let c=Math.min(o-this.posOut,a-i);t.set(n.subarray(this.posOut,this.posOut+c),i),this.posOut+=c,i+=c}return t}xofInto(t){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return i.ZP.number(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(i.ZP.output(t,this),this.finished)throw Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){let{blockLen:n,suffix:o,outputLen:i,rounds:a,enableXOF:c}=this;return t||(t=new Keccak(n,o,i,c,a)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=a,t.suffix=o,t.outputLen=i,t.enableXOF=c,t.destroyed=this.destroyed,t}};let gen=(t,n,o)=>(0,d.hE)(()=>new Keccak(n,t,o));gen(6,144,28),gen(6,136,32),gen(6,104,48),gen(6,72,64);let A=gen(1,144,28),k=gen(1,136,32),C=gen(1,104,48),T=gen(1,72,64),genShake=(t,n,o)=>(0,d.gz)((i={})=>new Keccak(n,t,void 0===i.dkLen?o:i.dkLen,!0));genShake(31,168,16),genShake(31,136,32);var N=o(17070);(0,N.gn)(A);let H=(()=>{let t=(0,N.gn)(k);return t.create=k.create,t})();(0,N.gn)(C),(0,N.gn)(T)},17070:function(t,n,o){o.d(n,{gn:function(){return wrapHash},hD:function(){return equalsBytes},iY:function(){return a.iY},nr:function(){return hexToBytes}});var i=o(91072),a=o(68209);function hexToBytes(t){let n=t.startsWith("0x")?t.substring(2):t;return(0,a.nr)(n)}function equalsBytes(t,n){if(t.length!==n.length)return!1;for(let o=0;o(i.ZP.bytes(n),t(n))}i.ZP.bool,i.ZP.bytes,(()=>{let t="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,n="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);return n&&!t?n("crypto"):void 0})()},25997:function(t,n,o){function createClassUtils(t){let n=createClassMap(t),{conflictingClassGroups:o,conflictingClassGroupModifiers:i}=t;return{getClassGroupId:function(t){let o=t.split("-");return""===o[0]&&1!==o.length&&o.shift(),getGroupRecursive(o,n)||getGroupIdForArbitraryProperty(t)},getConflictingClassGroupIds:function(t,n){let a=o[t]||[];return n&&i[t]?[...a,...i[t]]:a}}}function getGroupRecursive(t,n){if(0===t.length)return n.classGroupId;let o=t[0],i=n.nextPart.get(o),a=i?getGroupRecursive(t.slice(1),i):void 0;if(a)return a;if(0===n.validators.length)return;let c=t.join("-");return n.validators.find(({validator:t})=>t(c))?.classGroupId}o.d(n,{m6:function(){return E}});let i=/^\[(.+)\]$/;function getGroupIdForArbitraryProperty(t){if(i.test(t)){let n=i.exec(t)[1],o=n?.substring(0,n.indexOf(":"));if(o)return"arbitrary.."+o}}function createClassMap(t){let{theme:n,prefix:o}=t,i={nextPart:new Map,validators:[]},a=getPrefixedClassGroupEntries(Object.entries(t.classGroups),o);return a.forEach(([t,o])=>{processClassesRecursively(o,i,t,n)}),i}function processClassesRecursively(t,n,o,i){t.forEach(t=>{if("string"==typeof t){let i=""===t?n:getPart(n,t);i.classGroupId=o;return}if("function"==typeof t){if(isThemeGetter(t)){processClassesRecursively(t(i),n,o,i);return}n.validators.push({validator:t,classGroupId:o});return}Object.entries(t).forEach(([t,a])=>{processClassesRecursively(a,getPart(n,t),o,i)})})}function getPart(t,n){let o=t;return n.split("-").forEach(t=>{o.nextPart.has(t)||o.nextPart.set(t,{nextPart:new Map,validators:[]}),o=o.nextPart.get(t)}),o}function isThemeGetter(t){return t.isThemeGetter}function getPrefixedClassGroupEntries(t,n){return n?t.map(([t,o])=>{let i=o.map(t=>"string"==typeof t?n+t:"object"==typeof t?Object.fromEntries(Object.entries(t).map(([t,o])=>[n+t,o])):t);return[t,i]}):t}function createLruCache(t){if(t<1)return{get:()=>void 0,set:()=>{}};let n=0,o=new Map,i=new Map;function update(a,c){o.set(a,c),++n>t&&(n=0,i=o,o=new Map)}return{get(t){let n=o.get(t);return void 0!==n?n:void 0!==(n=i.get(t))?(update(t,n),n):void 0},set(t,n){o.has(t)?o.set(t,n):update(t,n)}}}function createSplitModifiers(t){let n=t.separator,o=1===n.length,i=n[0],a=n.length;return function(t){let c;let u=[],d=0,f=0;for(let m=0;mf?c-f:void 0;return{modifiers:u,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:y}}}function sortModifiers(t){if(t.length<=1)return t;let n=[],o=[];return t.forEach(t=>{let i="["===t[0];i?(n.push(...o.sort(),t),o=[]):o.push(t)}),n.push(...o.sort()),n}function createConfigUtils(t){return{cache:createLruCache(t.cacheSize),splitModifiers:createSplitModifiers(t),...createClassUtils(t)}}let a=/\s+/;function mergeClassList(t,n){let{splitModifiers:o,getClassGroupId:i,getConflictingClassGroupIds:c}=n,u=new Set;return t.trim().split(a).map(t=>{let{modifiers:n,hasImportantModifier:a,baseClassName:c,maybePostfixModifierPosition:u}=o(t),d=i(u?c.substring(0,u):c),f=!!u;if(!d){if(!u||!(d=i(c)))return{isTailwindClass:!1,originalClassName:t};f=!1}let m=sortModifiers(n).join(":");return{isTailwindClass:!0,modifierId:a?m+"!":m,classGroupId:d,originalClassName:t,hasPostfixModifier:f}}).reverse().filter(t=>{if(!t.isTailwindClass)return!0;let{modifierId:n,classGroupId:o,hasPostfixModifier:i}=t,a=n+o;return!u.has(a)&&(u.add(a),c(o,i).forEach(t=>u.add(n+t)),!0)}).reverse().map(t=>t.originalClassName).join(" ")}function twJoin(){let t,n,o=0,i="";for(;on(t),t());return i=(o=createConfigUtils(d)).cache.get,a=o.cache.set,c=tailwindMerge,tailwindMerge(u)}function tailwindMerge(t){let n=i(t);if(n)return n;let c=mergeClassList(t,o);return a(t,c),c}return function(){return c(twJoin.apply(null,arguments))}}function fromTheme(t){let themeGetter=n=>n[t]||[];return themeGetter.isThemeGetter=!0,themeGetter}let c=/^\[(?:([a-z-]+):)?(.+)\]$/i,u=/^\d+\/\d+$/,d=new Set(["px","full","screen"]),f=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,m=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,g=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,b=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,y=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function isLength(t){return isNumber(t)||d.has(t)||u.test(t)}function isArbitraryLength(t){return getIsArbitraryValue(t,"length",isLengthOnly)}function isNumber(t){return!!t&&!Number.isNaN(Number(t))}function isArbitraryNumber(t){return getIsArbitraryValue(t,"number",isNumber)}function isInteger(t){return!!t&&Number.isInteger(Number(t))}function isPercent(t){return t.endsWith("%")&&isNumber(t.slice(0,-1))}function isArbitraryValue(t){return c.test(t)}function isTshirtSize(t){return f.test(t)}let v=new Set(["length","size","percentage"]);function isArbitrarySize(t){return getIsArbitraryValue(t,v,isNever)}function isArbitraryPosition(t){return getIsArbitraryValue(t,"position",isNever)}let w=new Set(["image","url"]);function isArbitraryImage(t){return getIsArbitraryValue(t,w,isImage)}function isArbitraryShadow(t){return getIsArbitraryValue(t,"",isShadow)}function isAny(){return!0}function getIsArbitraryValue(t,n,o){let i=c.exec(t);return!!i&&(i[1]?"string"==typeof n?i[1]===n:n.has(i[1]):o(i[2]))}function isLengthOnly(t){return m.test(t)&&!g.test(t)}function isNever(){return!1}function isShadow(t){return b.test(t)}function isImage(t){return y.test(t)}function getDefaultConfig(){let t=fromTheme("colors"),n=fromTheme("spacing"),o=fromTheme("blur"),i=fromTheme("brightness"),a=fromTheme("borderColor"),c=fromTheme("borderRadius"),u=fromTheme("borderSpacing"),d=fromTheme("borderWidth"),f=fromTheme("contrast"),m=fromTheme("grayscale"),g=fromTheme("hueRotate"),b=fromTheme("invert"),y=fromTheme("gap"),v=fromTheme("gradientColorStops"),w=fromTheme("gradientColorStopPositions"),E=fromTheme("inset"),_=fromTheme("margin"),S=fromTheme("opacity"),P=fromTheme("padding"),A=fromTheme("saturate"),k=fromTheme("scale"),C=fromTheme("sepia"),T=fromTheme("skew"),N=fromTheme("space"),H=fromTheme("translate"),getOverscroll=()=>["auto","contain","none"],getOverflow=()=>["auto","hidden","clip","visible","scroll"],getSpacingWithAutoAndArbitrary=()=>["auto",isArbitraryValue,n],getSpacingWithArbitrary=()=>[isArbitraryValue,n],getLengthWithEmptyAndArbitrary=()=>["",isLength,isArbitraryLength],getNumberWithAutoAndArbitrary=()=>["auto",isNumber,isArbitraryValue],getPositions=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],getLineStyles=()=>["solid","dashed","dotted","double","none"],getBlendModes=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],getAlign=()=>["start","end","center","between","around","evenly","stretch"],getZeroAndEmpty=()=>["","0",isArbitraryValue],getBreaks=()=>["auto","avoid","all","avoid-page","page","left","right","column"],getNumber=()=>[isNumber,isArbitraryNumber],getNumberAndArbitrary=()=>[isNumber,isArbitraryValue];return{cacheSize:500,separator:":",theme:{colors:[isAny],spacing:[isLength,isArbitraryLength],blur:["none","",isTshirtSize,isArbitraryValue],brightness:getNumber(),borderColor:[t],borderRadius:["none","","full",isTshirtSize,isArbitraryValue],borderSpacing:getSpacingWithArbitrary(),borderWidth:getLengthWithEmptyAndArbitrary(),contrast:getNumber(),grayscale:getZeroAndEmpty(),hueRotate:getNumberAndArbitrary(),invert:getZeroAndEmpty(),gap:getSpacingWithArbitrary(),gradientColorStops:[t],gradientColorStopPositions:[isPercent,isArbitraryLength],inset:getSpacingWithAutoAndArbitrary(),margin:getSpacingWithAutoAndArbitrary(),opacity:getNumber(),padding:getSpacingWithArbitrary(),saturate:getNumber(),scale:getNumber(),sepia:getZeroAndEmpty(),skew:getNumberAndArbitrary(),space:getSpacingWithArbitrary(),translate:getSpacingWithArbitrary()},classGroups:{aspect:[{aspect:["auto","square","video",isArbitraryValue]}],container:["container"],columns:[{columns:[isTshirtSize]}],"break-after":[{"break-after":getBreaks()}],"break-before":[{"break-before":getBreaks()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...getPositions(),isArbitraryValue]}],overflow:[{overflow:getOverflow()}],"overflow-x":[{"overflow-x":getOverflow()}],"overflow-y":[{"overflow-y":getOverflow()}],overscroll:[{overscroll:getOverscroll()}],"overscroll-x":[{"overscroll-x":getOverscroll()}],"overscroll-y":[{"overscroll-y":getOverscroll()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[E]}],"inset-x":[{"inset-x":[E]}],"inset-y":[{"inset-y":[E]}],start:[{start:[E]}],end:[{end:[E]}],top:[{top:[E]}],right:[{right:[E]}],bottom:[{bottom:[E]}],left:[{left:[E]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",isInteger,isArbitraryValue]}],basis:[{basis:getSpacingWithAutoAndArbitrary()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",isArbitraryValue]}],grow:[{grow:getZeroAndEmpty()}],shrink:[{shrink:getZeroAndEmpty()}],order:[{order:["first","last","none",isInteger,isArbitraryValue]}],"grid-cols":[{"grid-cols":[isAny]}],"col-start-end":[{col:["auto",{span:["full",isInteger,isArbitraryValue]},isArbitraryValue]}],"col-start":[{"col-start":getNumberWithAutoAndArbitrary()}],"col-end":[{"col-end":getNumberWithAutoAndArbitrary()}],"grid-rows":[{"grid-rows":[isAny]}],"row-start-end":[{row:["auto",{span:[isInteger,isArbitraryValue]},isArbitraryValue]}],"row-start":[{"row-start":getNumberWithAutoAndArbitrary()}],"row-end":[{"row-end":getNumberWithAutoAndArbitrary()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",isArbitraryValue]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",isArbitraryValue]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...getAlign()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...getAlign(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...getAlign(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[P]}],px:[{px:[P]}],py:[{py:[P]}],ps:[{ps:[P]}],pe:[{pe:[P]}],pt:[{pt:[P]}],pr:[{pr:[P]}],pb:[{pb:[P]}],pl:[{pl:[P]}],m:[{m:[_]}],mx:[{mx:[_]}],my:[{my:[_]}],ms:[{ms:[_]}],me:[{me:[_]}],mt:[{mt:[_]}],mr:[{mr:[_]}],mb:[{mb:[_]}],ml:[{ml:[_]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",isArbitraryValue,n]}],"min-w":[{"min-w":[isArbitraryValue,n,"min","max","fit"]}],"max-w":[{"max-w":[isArbitraryValue,n,"none","full","min","max","fit","prose",{screen:[isTshirtSize]},isTshirtSize]}],h:[{h:[isArbitraryValue,n,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[isArbitraryValue,n,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[isArbitraryValue,n,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[isArbitraryValue,n,"auto","min","max","fit"]}],"font-size":[{text:["base",isTshirtSize,isArbitraryLength]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",isArbitraryNumber]}],"font-family":[{font:[isAny]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",isArbitraryValue]}],"line-clamp":[{"line-clamp":["none",isNumber,isArbitraryNumber]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",isLength,isArbitraryValue]}],"list-image":[{"list-image":["none",isArbitraryValue]}],"list-style-type":[{list:["none","disc","decimal",isArbitraryValue]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[S]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[S]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...getLineStyles(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",isLength,isArbitraryLength]}],"underline-offset":[{"underline-offset":["auto",isLength,isArbitraryValue]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:getSpacingWithArbitrary()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",isArbitraryValue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",isArbitraryValue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[S]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...getPositions(),isArbitraryPosition]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",isArbitrarySize]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},isArbitraryImage]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[c]}],"rounded-s":[{"rounded-s":[c]}],"rounded-e":[{"rounded-e":[c]}],"rounded-t":[{"rounded-t":[c]}],"rounded-r":[{"rounded-r":[c]}],"rounded-b":[{"rounded-b":[c]}],"rounded-l":[{"rounded-l":[c]}],"rounded-ss":[{"rounded-ss":[c]}],"rounded-se":[{"rounded-se":[c]}],"rounded-ee":[{"rounded-ee":[c]}],"rounded-es":[{"rounded-es":[c]}],"rounded-tl":[{"rounded-tl":[c]}],"rounded-tr":[{"rounded-tr":[c]}],"rounded-br":[{"rounded-br":[c]}],"rounded-bl":[{"rounded-bl":[c]}],"border-w":[{border:[d]}],"border-w-x":[{"border-x":[d]}],"border-w-y":[{"border-y":[d]}],"border-w-s":[{"border-s":[d]}],"border-w-e":[{"border-e":[d]}],"border-w-t":[{"border-t":[d]}],"border-w-r":[{"border-r":[d]}],"border-w-b":[{"border-b":[d]}],"border-w-l":[{"border-l":[d]}],"border-opacity":[{"border-opacity":[S]}],"border-style":[{border:[...getLineStyles(),"hidden"]}],"divide-x":[{"divide-x":[d]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[d]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[S]}],"divide-style":[{divide:getLineStyles()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...getLineStyles()]}],"outline-offset":[{"outline-offset":[isLength,isArbitraryValue]}],"outline-w":[{outline:[isLength,isArbitraryLength]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:getLengthWithEmptyAndArbitrary()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[S]}],"ring-offset-w":[{"ring-offset":[isLength,isArbitraryLength]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",isTshirtSize,isArbitraryShadow]}],"shadow-color":[{shadow:[isAny]}],opacity:[{opacity:[S]}],"mix-blend":[{"mix-blend":getBlendModes()}],"bg-blend":[{"bg-blend":getBlendModes()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[i]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",isTshirtSize,isArbitraryValue]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[b]}],saturate:[{saturate:[A]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g]}],"backdrop-invert":[{"backdrop-invert":[b]}],"backdrop-opacity":[{"backdrop-opacity":[S]}],"backdrop-saturate":[{"backdrop-saturate":[A]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[u]}],"border-spacing-x":[{"border-spacing-x":[u]}],"border-spacing-y":[{"border-spacing-y":[u]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",isArbitraryValue]}],duration:[{duration:getNumberAndArbitrary()}],ease:[{ease:["linear","in","out","in-out",isArbitraryValue]}],delay:[{delay:getNumberAndArbitrary()}],animate:[{animate:["none","spin","ping","pulse","bounce",isArbitraryValue]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[k]}],"scale-x":[{"scale-x":[k]}],"scale-y":[{"scale-y":[k]}],rotate:[{rotate:[isInteger,isArbitraryValue]}],"translate-x":[{"translate-x":[H]}],"translate-y":[{"translate-y":[H]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",isArbitraryValue]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",isArbitraryValue]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":getSpacingWithArbitrary()}],"scroll-mx":[{"scroll-mx":getSpacingWithArbitrary()}],"scroll-my":[{"scroll-my":getSpacingWithArbitrary()}],"scroll-ms":[{"scroll-ms":getSpacingWithArbitrary()}],"scroll-me":[{"scroll-me":getSpacingWithArbitrary()}],"scroll-mt":[{"scroll-mt":getSpacingWithArbitrary()}],"scroll-mr":[{"scroll-mr":getSpacingWithArbitrary()}],"scroll-mb":[{"scroll-mb":getSpacingWithArbitrary()}],"scroll-ml":[{"scroll-ml":getSpacingWithArbitrary()}],"scroll-p":[{"scroll-p":getSpacingWithArbitrary()}],"scroll-px":[{"scroll-px":getSpacingWithArbitrary()}],"scroll-py":[{"scroll-py":getSpacingWithArbitrary()}],"scroll-ps":[{"scroll-ps":getSpacingWithArbitrary()}],"scroll-pe":[{"scroll-pe":getSpacingWithArbitrary()}],"scroll-pt":[{"scroll-pt":getSpacingWithArbitrary()}],"scroll-pr":[{"scroll-pr":getSpacingWithArbitrary()}],"scroll-pb":[{"scroll-pb":getSpacingWithArbitrary()}],"scroll-pl":[{"scroll-pl":getSpacingWithArbitrary()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",isArbitraryValue]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[isLength,isArbitraryLength,isArbitraryNumber]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}let E=createTailwindMerge(getDefaultConfig)},63600:function(t,n,o){o.d(n,{bt:function(){return parseTransaction}});var i=o(6921),a=o(82415),c=o(53769),u=o(40996),d=o(76517),f=o(95019),m=o(81725),g=o(40882),b=o(77179);let NegativeOffsetError=class NegativeOffsetError extends g.G{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NegativeOffsetError"})}};let PositionOutOfBoundsError=class PositionOutOfBoundsError extends g.G{constructor({length:t,position:n}){super(`Position \`${n}\` is out of bounds (\`0 < position < ${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PositionOutOfBoundsError"})}};let y={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,assertPosition(t){if(t<0||t>this.bytes.length-1)throw new PositionOutOfBoundsError({length:this.bytes.length,position:t})},decrementPosition(t){if(t<0)throw new NegativeOffsetError({offset:t});let n=this.position-t;this.assertPosition(n),this.position=n},incrementPosition(t){if(t<0)throw new NegativeOffsetError({offset:t});let n=this.position+t;this.assertPosition(n),this.position=n},inspectByte(t){let n=t??this.position;return this.assertPosition(n),this.bytes[n]},inspectBytes(t,n){let o=n??this.position;return this.assertPosition(o+t-1),this.bytes.subarray(o,o+t)},inspectUint8(t){let n=t??this.position;return this.assertPosition(n),this.bytes[n]},inspectUint16(t){let n=t??this.position;return this.assertPosition(n+1),this.dataView.getUint16(n)},inspectUint24(t){let n=t??this.position;return this.assertPosition(n+2),(this.dataView.getUint16(n)<<8)+this.dataView.getUint8(n+2)},inspectUint32(t){let n=t??this.position;return this.assertPosition(n+3),this.dataView.getUint32(n)},pushByte(t){this.assertPosition(this.position),this.bytes[this.position]=t,this.position++},pushBytes(t){this.assertPosition(this.position+t.length-1),this.bytes.set(t,this.position),this.position+=t.length},pushUint8(t){this.assertPosition(this.position),this.bytes[this.position]=t,this.position++},pushUint16(t){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,t),this.position+=2},pushUint24(t){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,t>>8),this.dataView.setUint8(this.position+2,255&t),this.position+=3},pushUint32(t){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,t),this.position+=4},readByte(){let t=this.inspectByte();return this.position++,t},readBytes(t){let n=this.inspectBytes(t);return this.position+=t,n},readUint8(){let t=this.inspectUint8();return this.position+=1,t},readUint16(){let t=this.inspectUint16();return this.position+=2,t},readUint24(){let t=this.inspectUint24();return this.position+=3,t},readUint32(){let t=this.inspectUint32();return this.position+=4,t},setPosition(t){this.assertPosition(t),this.position=t}};function createCursor(t){let n=Object.create(y);return n.bytes=t,n.dataView=new DataView(t.buffer,t.byteOffset,t.byteLength),n}var v=o(79179),w=o(21502);function fromRlp(t,n="hex"){let o=(()=>{if("string"==typeof t){if(t.length>3&&t.length%2!=0)throw new b.P9(t);return(0,v.nr)(t)}return t})(),i=createCursor(o),a=fromRlpCursor(i,n);return a}function fromRlpCursor(t,n="hex"){if(0===t.bytes.length)return"hex"===n?(0,w.ci)(t.bytes):t.bytes;let o=t.readByte();if(o<128&&t.decrementPosition(1),o<192){let i=readLength(t,o,128),a=t.readBytes(i);return"hex"===n?(0,w.ci)(a):a}let i=readLength(t,o,192);return readList(t,i,n)}function readLength(t,n,o){if(128===o&&n<128)return 1;if(n<=o+55)return n-o;if(n===o+55+1)return t.readUint8();if(n===o+55+2)return t.readUint16();if(n===o+55+3)return t.readUint24();if(n===o+55+4)return t.readUint32();throw new g.G("Invalid RLP prefix")}function readList(t,n,o){let i=t.position,a=[];for(;t.position-i2n**256n-1n)throw new S.Hh({maxFeePerGas:u});if(o&&u&&o>u)throw new S.cs({maxFeePerGas:u,maxPriorityFeePerGas:o})}function assertTransactionEIP2930(t){let{chainId:n,maxPriorityFeePerGas:o,gasPrice:a,maxFeePerGas:u,to:d}=t;if(n<=0)throw new _.hJ({chainId:n});if(d&&!(0,c.U)(d))throw new i.b({address:d});if(o||u)throw new g.G("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(a&&a>2n**256n-1n)throw new S.Hh({maxFeePerGas:a})}function assertTransactionLegacy(t){let{chainId:n,maxPriorityFeePerGas:o,gasPrice:a,maxFeePerGas:u,to:d,accessList:f}=t;if(d&&!(0,c.U)(d))throw new i.b({address:d});if(void 0!==n&&n<=0)throw new _.hJ({chainId:n});if(o||u)throw new g.G("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(a&&a>2n**256n-1n)throw new S.Hh({maxFeePerGas:a});if(f)throw new g.G("`accessList` is not a valid Legacy Transaction attribute.")}var P=o(37169);function getSerializedTransactionType(t){let n=(0,P.p5)(t,0,1);if("0x02"===n)return"eip1559";if("0x01"===n)return"eip2930";if("0x"!==n&&(0,m.ly)(n)>=192)return"legacy";throw new a.DU({serializedType:n})}function parseTransaction(t){let n=getSerializedTransactionType(t);return"eip1559"===n?parseTransactionEIP1559(t):"eip2930"===n?parseTransactionEIP2930(t):parseTransactionLegacy(t)}function parseTransactionEIP1559(t){let n=toTransactionArray(t),[o,i,c,d,f,g,b,y,v,w,E,_]=n;if(!(9===n.length||12===n.length))throw new a.XZ({attributes:{chainId:o,nonce:i,maxPriorityFeePerGas:c,maxFeePerGas:d,gas:f,to:g,value:b,data:y,accessList:v,...n.length>9?{v:w,r:E,s:_}:{}},serializedTransaction:t,type:"eip1559"});let S={chainId:(0,m.ly)(o),type:"eip1559"};(0,u.v)(g)&&"0x"!==g&&(S.to=g),(0,u.v)(f)&&"0x"!==f&&(S.gas=(0,m.y_)(f)),(0,u.v)(y)&&"0x"!==y&&(S.data=y),(0,u.v)(i)&&"0x"!==i&&(S.nonce=(0,m.ly)(i)),(0,u.v)(b)&&"0x"!==b&&(S.value=(0,m.y_)(b)),(0,u.v)(d)&&"0x"!==d&&(S.maxFeePerGas=(0,m.y_)(d)),(0,u.v)(c)&&"0x"!==c&&(S.maxPriorityFeePerGas=(0,m.y_)(c)),0!==v.length&&"0x"!==v&&(S.accessList=parseAccessList(v)),assertTransactionEIP1559(S);let P=12===n.length?parseEIP155Signature(n):void 0;return{...P,...S}}function parseTransactionEIP2930(t){let n=toTransactionArray(t),[o,i,c,d,f,g,b,y,v,w,E]=n;if(!(8===n.length||11===n.length))throw new a.XZ({attributes:{chainId:o,nonce:i,gasPrice:c,gas:d,to:f,value:g,data:b,accessList:y,...n.length>8?{v,r:w,s:E}:{}},serializedTransaction:t,type:"eip2930"});let _={chainId:(0,m.ly)(o),type:"eip2930"};(0,u.v)(f)&&"0x"!==f&&(_.to=f),(0,u.v)(d)&&"0x"!==d&&(_.gas=(0,m.y_)(d)),(0,u.v)(b)&&"0x"!==b&&(_.data=b),(0,u.v)(i)&&"0x"!==i&&(_.nonce=(0,m.ly)(i)),(0,u.v)(g)&&"0x"!==g&&(_.value=(0,m.y_)(g)),(0,u.v)(c)&&"0x"!==c&&(_.gasPrice=(0,m.y_)(c)),0!==y.length&&"0x"!==y&&(_.accessList=parseAccessList(y)),assertTransactionEIP2930(_);let S=11===n.length?parseEIP155Signature(n):void 0;return{...S,..._}}function parseTransactionLegacy(t){let n=fromRlp(t,"hex"),[o,i,c,d,f,g,b,y,v]=n;if(!(6===n.length||9===n.length))throw new a.XZ({attributes:{nonce:o,gasPrice:i,gas:c,to:d,value:f,data:g,...n.length>6?{v:b,r:y,s:v}:{}},serializedTransaction:t,type:"legacy"});let w={type:"legacy"};if((0,u.v)(d)&&"0x"!==d&&(w.to=d),(0,u.v)(c)&&"0x"!==c&&(w.gas=(0,m.y_)(c)),(0,u.v)(g)&&"0x"!==g&&(w.data=g),(0,u.v)(o)&&"0x"!==o&&(w.nonce=(0,m.ly)(o)),(0,u.v)(f)&&"0x"!==f&&(w.value=(0,m.y_)(f)),(0,u.v)(i)&&"0x"!==i&&(w.gasPrice=(0,m.y_)(i)),assertTransactionLegacy(w),6===n.length)return w;let E=(0,u.v)(b)&&"0x"!==b?(0,m.y_)(b):0n;if("0x"===v&&"0x"===y)return E>0&&(w.chainId=Number(E)),w;let _=Number((E-35n)/2n);if(_>0)w.chainId=_;else if(27n!==E&&28n!==E)throw new a.vl({v:E});return w.v=E,w.s=v,w.r=y,w}function toTransactionArray(t){return fromRlp(`0x${t.slice(4)}`,"hex")}function parseAccessList(t){let n=[];for(let o=0;oisHash(t)?t:(0,f.f)(t))})}return n}function parseEIP155Signature(t){let n=t.slice(-3),o="0x"===n[0]||0n===(0,m.y_)(n[0])?27n:28n;return{r:(0,d.gc)(n[1],{size:32}),s:(0,d.gc)(n[2],{size:32}),v:o,yParity:27n===o?0:1}}},78540:function(t,n,o){o.d(n,{f:function(){return parseEther}});var i=o(96228);function parseUnits(t,n){let[o,i="0"]=t.split("."),a=o.startsWith("-");if(a&&(o=o.slice(1)),i=i.replace(/(0+)$/,""),0===n)1===Math.round(Number(`.${i}`))&&(o=`${BigInt(o)+1n}`),i="";else if(i.length>n){let[t,a,c]=[i.slice(0,n-1),i.slice(n-1,n),i.slice(n)],u=Math.round(Number(`${a}.${c}`));(i=u>9?`${BigInt(t)+BigInt(1)}0`.padStart(t.length+1,"0"):`${t}${u}`).length>n&&(i=i.slice(1),o=`${BigInt(o)+1n}`),i=i.slice(0,n)}else i=i.padEnd(n,"0");return BigInt(`${a?"-":""}${o}${i}`)}function parseEther(t,n="wei"){return parseUnits(t,i.ez[n])}}}]); \ No newline at end of file diff --git a/_next/static/chunks/5058.c4fd7f5795ab8d79.js b/_next/static/chunks/5058.c4fd7f5795ab8d79.js new file mode 100644 index 0000000..290e705 --- /dev/null +++ b/_next/static/chunks/5058.c4fd7f5795ab8d79.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5058],{35058:function(l,e,n){n.r(e),n.d(e,{default:function(){return t}});var t='data:image/svg+xml,'}}]); \ No newline at end of file diff --git a/_next/static/chunks/5343.e03a12b416825096.js b/_next/static/chunks/5343.e03a12b416825096.js new file mode 100644 index 0000000..e29caa1 --- /dev/null +++ b/_next/static/chunks/5343.e03a12b416825096.js @@ -0,0 +1,1191 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5343],{65343:function(e,r,t){t.r(r),t.d(r,{default:function(){return o}});var o=`{ + "connect_wallet": { + "label": "Connecter le portefeuille", + "wrong_network": { + "label": "R\xe9seau incorrect" + } + }, + "intro": { + "title": "Qu'est-ce qu'un portefeuille?", + "description": "Un portefeuille est utilis\xe9 pour envoyer, recevoir, stocker et afficher des actifs num\xe9riques. C'est aussi une nouvelle fa\xe7on de se connecter, sans avoir besoin de cr\xe9er de nouveaux comptes et mots de passe sur chaque site.", + "digital_asset": { + "title": "Un foyer pour vos actifs num\xe9riques", + "description": "Les portefeuilles sont utilis\xe9s pour envoyer, recevoir, stocker et afficher des actifs num\xe9riques comme Ethereum et les NFTs." + }, + "login": { + "title": "Une nouvelle fa\xe7on de se connecter", + "description": "Au lieu de cr\xe9er de nouveaux comptes et mots de passe sur chaque site Web, connectez simplement votre portefeuille." + }, + "get": { + "label": "Obtenir un portefeuille" + }, + "learn_more": { + "label": "En savoir plus" + } + }, + "sign_in": { + "label": "V\xe9rifiez votre compte", + "description": "Pour terminer la connexion, vous devez signer un message dans votre portefeuille pour v\xe9rifier que vous \xeates le propri\xe9taire de ce compte.", + "message": { + "send": "Envoyer le message", + "preparing": "Pr\xe9paration du message...", + "cancel": "Annuler", + "preparing_error": "Erreur lors de la pr\xe9paration du message, veuillez r\xe9essayer!" + }, + "signature": { + "waiting": "En attente de la signature...", + "verifying": "V\xe9rification de la signature...", + "signing_error": "Erreur lors de la signature du message, veuillez r\xe9essayer!", + "verifying_error": "Erreur lors de la v\xe9rification de la signature, veuillez r\xe9essayer!", + "oops_error": "Oups, quelque chose a mal tourn\xe9!" + } + }, + "connect": { + "label": "Connecter", + "title": "Connecter un portefeuille", + "new_to_ethereum": { + "description": "Nouveau aux portefeuilles Ethereum?", + "learn_more": { + "label": "En savoir plus" + } + }, + "learn_more": { + "label": "En savoir plus" + }, + "recent": "R\xe9cents", + "status": { + "opening": "Ouverture %{wallet}...", + "connecting": "Connect :)ing", + "connect_mobile": "Continuer dans %{wallet}", + "not_installed": "%{wallet} n'est pas install\xe9", + "not_available": "%{wallet} n'est pas disponible", + "confirm": "Confirmez la connexion dans l'extension", + "confirm_mobile": "Accepter la demande de connexion dans le portefeuille" + }, + "secondary_action": { + "get": { + "description": "Vous n'avez pas de %{wallet}?", + "label": "OBTENIR" + }, + "install": { + "label": "INSTALLER" + }, + "retry": { + "label": "R\xc9ESSAYER" + } + }, + "walletconnect": { + "description": { + "full": "Vous avez besoin du modal officiel de WalletConnect ?", + "compact": "Besoin du modal de WalletConnect ?" + }, + "open": { + "label": "OUVRIR" + } + } + }, + "connect_scan": { + "title": "Scannez avec %{wallet}", + "fallback_title": "Scannez avec votre t\xe9l\xe9phone" + }, + "connector_group": { + "installed": "Install\xe9", + "recommended": "Recommand\xe9", + "other": "Autre", + "popular": "Populaire", + "more": "Plus", + "others": "Autres" + }, + "get": { + "title": "Obtenez un portefeuille", + "action": { + "label": "OBTENIR" + }, + "mobile": { + "description": "Portefeuille mobile" + }, + "extension": { + "description": "Extension de navigateur" + }, + "mobile_and_extension": { + "description": "Portefeuille mobile et extension" + }, + "mobile_and_desktop": { + "description": "Portefeuille mobile et de bureau" + }, + "looking_for": { + "title": "Ce n'est pas ce que vous cherchez ?", + "mobile": { + "description": "S\xe9lectionnez un portefeuille sur l'\xe9cran principal pour commencer avec un autre fournisseur de portefeuille." + }, + "desktop": { + "compact_description": "S\xe9lectionnez un portefeuille sur l'\xe9cran principal pour commencer avec un autre fournisseur de portefeuille.", + "wide_description": "S\xe9lectionnez un portefeuille sur la gauche pour commencer avec un autre fournisseur de portefeuille." + } + } + }, + "get_options": { + "title": "Commencez avec %{wallet}", + "short_title": "Obtenez %{wallet}", + "mobile": { + "title": "%{wallet} pour mobile", + "description": "Utilisez le portefeuille mobile pour explorer le monde d'Ethereum.", + "download": { + "label": "Obtenez l'application" + } + }, + "extension": { + "title": "%{wallet} pour %{browser}", + "description": "Acc\xe9dez \xe0 votre portefeuille directement depuis votre navigateur web pr\xe9f\xe9r\xe9.", + "download": { + "label": "Ajouter \xe0 %{browser}" + } + }, + "desktop": { + "title": "%{wallet} pour %{platform}", + "description": "Acc\xe9dez \xe0 votre portefeuille nativement depuis votre puissant ordinateur de bureau.", + "download": { + "label": "Ajouter \xe0 %{platform}" + } + } + }, + "get_mobile": { + "title": "Installer %{wallet}", + "description": "Scannez avec votre t\xe9l\xe9phone pour t\xe9l\xe9charger sur iOS ou Android", + "continue": { + "label": "Continuer" + } + }, + "get_instructions": { + "mobile": { + "connect": { + "label": "Connecter" + }, + "learn_more": { + "label": "En savoir plus" + } + }, + "extension": { + "refresh": { + "label": "Rafra\xeechir" + }, + "learn_more": { + "label": "En savoir plus" + } + }, + "desktop": { + "connect": { + "label": "Connecter" + }, + "learn_more": { + "label": "En savoir plus" + } + } + }, + "chains": { + "title": "Changer de r\xe9seau", + "wrong_network": "Mauvais r\xe9seau d\xe9tect\xe9, changez ou d\xe9connectez-vous pour continuer.", + "confirm": "Confirmer dans le portefeuille", + "switching_not_supported": "Votre portefeuille ne supporte pas le changement de r\xe9seau depuis %{appName}. Essayez de changer de r\xe9seau depuis votre portefeuille.", + "switching_not_supported_fallback": "Votre portefeuille ne prend pas en charge le changement de r\xe9seau \xe0 partir de cette application. Essayez de changer de r\xe9seau \xe0 partir de votre portefeuille \xe0 la place.", + "disconnect": "D\xe9connecter", + "connected": "Connect\xe9" + }, + "profile": { + "disconnect": { + "label": "D\xe9connecter" + }, + "copy_address": { + "label": "Copier l'adresse", + "copied": "Copi\xe9 !" + }, + "explorer": { + "label": "Voir plus sur l'explorateur" + }, + "transactions": { + "description": "%{appName} transactions appara\xeetront ici...", + "description_fallback": "Vos transactions appara\xeetront ici...", + "recent": { + "title": "Transactions R\xe9centes" + }, + "clear": { + "label": "Tout supprimer" + } + } + }, + "wallet_connectors": { + "argent": { + "qr_code": { + "step1": { + "description": "Mettez Argent sur votre \xe9cran d'accueil pour un acc\xe8s plus rapide \xe0 votre portefeuille.", + "title": "Ouvrez l'application Argent" + }, + "step2": { + "description": "Cr\xe9ez un portefeuille et un nom d'utilisateur, ou importez un portefeuille existant.", + "title": "Cr\xe9er ou Importer un Portefeuille" + }, + "step3": { + "description": "Apr\xe8s avoir num\xe9ris\xe9, une invite de connexion appara\xeetra pour vous permettre de connecter votre portefeuille.", + "title": "Appuyez sur le bouton Scan QR" + } + } + }, + "bifrost": { + "qr_code": { + "step1": { + "description": "Nous vous recommandons de mettre le portefeuille Bifrost sur votre \xe9cran d'accueil pour un acc\xe8s plus rapide.", + "title": "Ouvrez l'application Bifrost Wallet" + }, + "step2": { + "description": "Cr\xe9ez ou importez un portefeuille en utilisant votre phrase de r\xe9cup\xe9ration.", + "title": "Cr\xe9er ou Importer un portefeuille" + }, + "step3": { + "description": "Apr\xe8s votre scan, une invite de connexion appara\xeetra pour vous permettre de connecter votre portefeuille.", + "title": "Appuyez sur le bouton de scan" + } + } + }, + "bitget": { + "qr_code": { + "step1": { + "description": "Nous vous recommandons de placer Bitget Wallet sur votre \xe9cran d'accueil pour un acc\xe8s plus rapide.", + "title": "Ouvrez l'application Bitget Wallet" + }, + "step2": { + "description": "Assurez-vous de sauvegarder votre portefeuille en utilisant une m\xe9thode s\xe9curis\xe9e. Ne partagez jamais votre phrase secr\xe8te avec quiconque.", + "title": "Cr\xe9er ou Importer un portefeuille" + }, + "step3": { + "description": "Apr\xe8s le scan, une incitation de connexion appara\xeetra pour vous permettre de connecter votre portefeuille.", + "title": "Appuyez sur le bouton de scan" + } + }, + "extension": { + "step1": { + "description": "Nous vous recommandons d'\xe9pingler Bitget Wallet \xe0 votre barre des t\xe2ches pour un acc\xe8s plus rapide \xe0 votre portefeuille.", + "title": "Installez l'extension de portefeuille Bitget" + }, + "step2": { + "description": "Assurez-vous de sauvegarder votre portefeuille en utilisant une m\xe9thode s\xe9curis\xe9e. Ne partagez jamais votre phrase secr\xe8te avec personne.", + "title": "Cr\xe9ez ou Importez un portefeuille" + }, + "step3": { + "description": "Une fois que vous avez configur\xe9 votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension.", + "title": "Rafra\xeechissez votre navigateur" + } + } + }, + "bitski": { + "extension": { + "step1": { + "description": "Nous recommandons d'\xe9pingler Bitski \xe0 votre barre des t\xe2ches pour un acc\xe8s plus rapide \xe0 votre portefeuille.", + "title": "Installez l'extension Bitski" + }, + "step2": { + "description": "Assurez-vous de sauvegarder votre portefeuille en utilisant une m\xe9thode s\xe9curis\xe9e. Ne partagez jamais votre phrase secr\xe8te avec qui que ce soit.", + "title": "Cr\xe9er ou Importer un portefeuille" + }, + "step3": { + "description": "Une fois que vous avez configur\xe9 votre portefeuille, cliquez ci-dessous pour rafra\xeechir le navigateur et charger l'extension.", + "title": "Rafra\xeechissez votre navigateur" + } + } + }, + "bitverse": { + "qr_code": { + "step1": { + "title": "Ouvrez l'application Bitverse Wallet", + "description": "Ajoutez Bitverse Wallet \xe0 votre \xe9cran d'accueil pour un acc\xe8s plus rapide \xe0 votre portefeuille." + }, + "step2": { + "title": "Cr\xe9er ou Importer un Portefeuille", + "description": "Cr\xe9ez un nouveau portefeuille ou importez-en un existant." + }, + "step3": { + "title": "Touchez l'ic\xf4ne QR et scannez", + "description": "Touchez l'ic\xf4ne QR sur votre \xe9cran d'accueil, scannez le code et confirmez l'invite pour vous connecter." + } + } + }, + "bloom": { + "desktop": { + "step1": { + "title": "Ouvrez l'application Bloom Wallet", + "description": "Nous recommandons de placer Bloom Wallet sur votre \xe9cran d'accueil pour un acc\xe8s plus rapide." + }, + "step2": { + "description": "Cr\xe9ez ou importez un portefeuille en utilisant votre phrase de r\xe9cup\xe9ration.", + "title": "Cr\xe9er ou Importer un Portefeuille" + }, + "step3": { + "description": "Apr\xe8s avoir obtenu un portefeuille, cliquez sur Connecter pour vous connecter via Bloom. Une invite de connexion appara\xeetra dans l'application pour que vous confirmiez la connexion.", + "title": "Cliquez sur Connecter" + } + }, + "qr_code": { + "step1": { + "title": "Ouvrez l'application Bloom Wallet", + "description": "Nous recommandons de placer Bloom Wallet sur votre \xe9cran d'accueil pour un acc\xe8s plus rapide." + }, + "step2": { + "description": "Cr\xe9ez ou importez un portefeuille en utilisant votre phrase de r\xe9cup\xe9ration.", + "title": "Cr\xe9er ou Importer un Portefeuille" + }, + "step3": { + "description": "Apr\xe8s avoir obtenu un portefeuille, cliquez sur Connecter pour vous connecter via Bloom. Une invite de connexion appara\xeetra dans l'application pour que vous confirmiez la connexion.", + "title": "Cliquez sur Connecter" + } + } + }, + "bybit": { + "qr_code": { + "step1": { + "description": "Nous recommandons de placer Bybit sur votre \xe9cran d'accueil pour un acc\xe8s plus rapide \xe0 votre portefeuille.", + "title": "Ouvrez l'application Bybit" + }, + "step2": { + "description": "Vous pouvez facilement sauvegarder votre portefeuille en utilisant notre fonction de sauvegarde sur votre t\xe9l\xe9phone.", + "title": "Cr\xe9er ou Importer un Portefeuille" + }, + "step3": { + "description": "Apr\xe8s avoir num\xe9ris\xe9, une invite de connexion appara\xeetra pour vous permettre de connecter votre portefeuille.", + "title": "Appuyez sur le bouton de scan" + } + }, + "extension": { + "step1": { + "description": "Cliquez en haut \xe0 droite de votre navigateur et \xe9pinglez le portefeuille Bybit pour un acc\xe8s facile.", + "title": "Installez l'extension Bybit Wallet" + }, + "step2": { + "description": "Cr\xe9ez un nouveau portefeuille ou importez-en un existant.", + "title": "Cr\xe9er ou Importer un portefeuille" + }, + "step3": { + "description": "Une fois que vous avez configur\xe9 Bybit Wallet, cliquez ci-dessous pour rafra\xeechir le navigateur et charger l'extension.", + "title": "Rafra\xeechissez votre navigateur" + } + } + }, + "coin98": { + "qr_code": { + "step1": { + "description": "Nous vous recommandons de placer Coin98 Wallet sur votre \xe9cran d'accueil pour un acc\xe8s plus rapide \xe0 votre portefeuille.", + "title": "Ouvrez l'application Coin98 Wallet" + }, + "step2": { + "description": "Vous pouvez facilement sauvegarder votre portefeuille en utilisant notre fonction de sauvegarde sur votre t\xe9l\xe9phone.", + "title": "Cr\xe9er ou Importer un portefeuille" + }, + "step3": { + "description": "Apr\xe8s que vous ayez scann\xe9, une invite de connexion appara\xeetra pour vous permettre de connecter votre portefeuille.", + "title": "Appuyez sur le bouton WalletConnect" + } + }, + "extension": { + "step1": { + "description": "Cliquez en haut \xe0 droite de votre navigateur et \xe9pinglez Coin98 Wallet pour un acc\xe8s facile.", + "title": "Installez l'extension Coin98 Wallet" + }, + "step2": { + "description": "Cr\xe9ez un nouveau portefeuille ou importez-en un existant.", + "title": "Cr\xe9er ou Importer un portefeuille" + }, + "step3": { + "description": "Une fois que vous avez configur\xe9 Coin98 Wallet, cliquez ci-dessous pour actualiser le navigateur et charger l'extension.", + "title": "Rafra\xeechissez votre navigateur" + } + } + }, + "coinbase": { + "qr_code": { + "step1": { + "description": "Nous recommandons de placer Coinbase Wallet sur votre \xe9cran d'accueil pour un acc\xe8s plus rapide.", + "title": "Ouvrez l'application Coinbase Wallet" + }, + "step2": { + "description": "Vous pouvez facilement sauvegarder votre portefeuille en utilisant la fonction de sauvegarde cloud.", + "title": "Cr\xe9er ou Importer un portefeuille" + }, + "step3": { + "description": "Apr\xe8s avoir scann\xe9, une invite de connexion s'affichera pour que vous puissiez connecter votre portefeuille.", + "title": "Appuyez sur le bouton de scan" + } + }, + "extension": { + "step1": { + "description": "Nous recommandons d'\xe9pingler Coinbase Wallet \xe0 votre barre des t\xe2ches pour un acc\xe8s plus rapide \xe0 votre portefeuille.", + "title": "Installez l'extension Coinbase Wallet" + }, + "step2": { + "description": "Assurez-vous de sauvegarder votre portefeuille en utilisant une m\xe9thode s\xfbre. Ne partagez jamais votre phrase secr\xe8te avec quiconque.", + "title": "Cr\xe9er ou Importer un portefeuille" + }, + "step3": { + "description": "Une fois que vous avez configur\xe9 votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension.", + "title": "Actualisez votre navigateur" + } + } + }, + "compass": { + "extension": { + "step1": { + "description": "Nous vous recommandons d'\xe9pingler Compass Wallet \xe0 votre barre des t\xe2ches pour un acc\xe8s plus rapide \xe0 votre portefeuille.", + "title": "Installez l'extension Compass Wallet" + }, + "step2": { + "description": "Assurez-vous de sauvegarder votre portefeuille en utilisant une m\xe9thode s\xe9curis\xe9e. Ne partagez jamais votre phrase secr\xe8te avec quiconque.", + "title": "Cr\xe9er ou Importer un Portefeuille" + }, + "step3": { + "description": "Une fois que vous avez configur\xe9 votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension.", + "title": "Rafra\xeechissez votre navigateur" + } + } + }, + "core": { + "qr_code": { + "step1": { + "description": "Nous recommandons de placer Core sur votre \xe9cran d'accueil pour un acc\xe8s plus rapide \xe0 votre portefeuille.", + "title": "Ouvrez l'application Core" + }, + "step2": { + "description": "Vous pouvez facilement sauvegarder votre portefeuille en utilisant notre fonction de sauvegarde sur votre t\xe9l\xe9phone.", + "title": "Cr\xe9er ou Importer un portefeuille" + }, + "step3": { + "description": "Apr\xe8s avoir scann\xe9, une invite de connexion appara\xeetra pour vous permettre de connecter votre portefeuille.", + "title": "Appuyez sur le bouton WalletConnect" + } + }, + "extension": { + "step1": { + "description": "Nous recommandons d'\xe9pingler Core \xe0 votre barre des t\xe2ches pour un acc\xe8s plus rapide \xe0 votre portefeuille.", + "title": "Installez l'extension Core" + }, + "step2": { + "description": "Assurez-vous de sauvegarder votre portefeuille en utilisant une m\xe9thode s\xe9curis\xe9e. Ne partagez jamais votre phrase secr\xe8te avec quiconque.", + "title": "Cr\xe9ez ou Importer un Portefeuille" + }, + "step3": { + "description": "Une fois que vous avez configur\xe9 votre portefeuille, cliquez ci-dessous pour rafra\xeechir le navigateur et charger l'extension.", + "title": "Rafra\xeechissez votre navigateur" + } + } + }, + "fox": { + "qr_code": { + "step1": { + "description": "Nous recommandons de mettre FoxWallet sur votre \xe9cran d'accueil pour un acc\xe8s plus rapide.", + "title": "Ouvrez l'application FoxWallet" + }, + "step2": { + "description": "Assurez-vous de sauvegarder votre portefeuille en utilisant une m\xe9thode s\xe9curis\xe9e. Ne partagez jamais votre phrase secr\xe8te avec personne.", + "title": "Cr\xe9er ou Importer un portefeuille" + }, + "step3": { + "description": "Apr\xe8s avoir scann\xe9, une invitation \xe0 la connexion appara\xeetra pour vous permettre de connecter votre portefeuille.", + "title": "Appuyez sur le bouton de scan" + } + } + }, + "frontier": { + "qr_code": { + "step1": { + "description": "Nous vous recommandons de placer le portefeuille Frontier sur votre \xe9cran d'accueil pour un acc\xe8s plus rapide.", + "title": "Ouvrez l'application Frontier Wallet" + }, + "step2": { + "description": "Assurez-vous de sauvegarder votre portefeuille en utilisant une m\xe9thode s\xe9curis\xe9e. Ne partagez jamais votre phrase secr\xe8te avec personne.", + "title": "Cr\xe9er ou Importer un portefeuille" + }, + "step3": { + "description": "Apr\xe8s avoir scann\xe9, une invite de connexion appara\xeetra pour vous permettre de connecter votre portefeuille.", + "title": "Appuyez sur le bouton de scan" + } + }, + "extension": { + "step1": { + "description": "Nous recommandons d'\xe9pingler Frontier Wallet \xe0 votre barre des t\xe2ches pour un acc\xe8s plus rapide \xe0 votre portefeuille.", + "title": "Installez l'extension Frontier Wallet" + }, + "step2": { + "description": "Assurez-vous de sauvegarder votre portefeuille en utilisant une m\xe9thode s\xe9curis\xe9e. Ne partagez jamais votre phrase secr\xe8te avec personne.", + "title": "Cr\xe9ez ou importez un portefeuille" + }, + "step3": { + "description": "Une fois que vous avez configur\xe9 votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension.", + "title": "Rafra\xeechissez votre navigateur" + } + } + }, + "im_token": { + "qr_code": { + "step1": { + "title": "Ouvrez l'application imToken", + "description": "Placez l'application imToken sur votre \xe9cran d'accueil pour un acc\xe8s plus rapide \xe0 votre portefeuille." + }, + "step2": { + "title": "Cr\xe9ez ou importez un portefeuille", + "description": "Cr\xe9ez un nouveau portefeuille ou importez-en un existant ." + }, + "step3": { + "title": "Appuyez sur l'ic\xf4ne du scanner dans le coin sup\xe9rieur droit", + "description": "Choisissez Nouvelle Connexion, puis scannez le code QR et confirmez l'invite pour vous connecter." + } + } + }, + "kaikas": { + "extension": { + "step1": { + "description": "Nous recommandons d'\xe9pingler Kaikas \xe0 votre barre des t\xe2ches pour un acc\xe8s plus rapide \xe0 votre portefeuille.", + "title": "Installez l'extension Kaikas" + }, + "step2": { + "description": "Assurez-vous de sauvegarder votre portefeuille en utilisant une m\xe9thode s\xe9curis\xe9e. Ne partagez jamais votre phrase secr\xe8te avec quiconque.", + "title": "Cr\xe9er ou Importer un Portefeuille" + }, + "step3": { + "description": "Une fois que vous avez configur\xe9 votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension.", + "title": "Rafra\xeechissez votre navigateur" + } + }, + "qr_code": { + "step1": { + "title": "Ouvrez l'application Kaikas", + "description": "Placez l'application Kaikas sur votre \xe9cran d'accueil pour un acc\xe8s plus rapide \xe0 votre portefeuille." + }, + "step2": { + "title": "Cr\xe9er ou Importer un Portefeuille", + "description": "Cr\xe9ez un nouveau portefeuille ou importez-en un existant." + }, + "step3": { + "title": "Appuyez sur l'ic\xf4ne du scanner dans le coin sup\xe9rieur droit", + "description": "Choisissez Nouvelle Connexion, puis scannez le code QR et confirmez l'invite pour vous connecter." + } + } + }, + "kraken": { + "qr_code": { + "step1": { + "title": "Ouvrez l'application Kraken Wallet", + "description": "Ajoutez Kraken Wallet \xe0 votre \xe9cran d'accueil pour un acc\xe8s plus rapide \xe0 votre portefeuille." + }, + "step2": { + "title": "Cr\xe9er ou Importer un Portefeuille", + "description": "Cr\xe9ez un nouveau portefeuille ou importez-en un existant." + }, + "step3": { + "title": "Touchez l'ic\xf4ne QR et scannez", + "description": "Touchez l'ic\xf4ne QR sur votre \xe9cran d'accueil, scannez le code et confirmez l'invite pour vous connecter." + } + } + }, + "kresus": { + "qr_code": { + "step1": { + "title": "Ouvrez l'application Kresus Wallet", + "description": "Ajoutez Kresus Wallet sur votre \xe9cran d'accueil pour un acc\xe8s plus rapide \xe0 votre portefeuille." + }, + "step2": { + "title": "Cr\xe9er ou Importer un Portefeuille", + "description": "Cr\xe9ez un nouveau portefeuille ou importez-en un existant." + }, + "step3": { + "title": "Touchez l'ic\xf4ne QR et scannez", + "description": "Touchez l'ic\xf4ne QR sur votre \xe9cran d'accueil, scannez le code et confirmez l'invite pour vous connecter." + } + } + }, + "magicEden": { + "extension": { + "step1": { + "title": "Installez l'extension Magic Eden", + "description": "Nous vous recommandons d'\xe9pingler Magic Eden \xe0 votre barre des t\xe2ches pour un acc\xe8s plus facile \xe0 votre portefeuille." + }, + "step2": { + "title": "Cr\xe9er ou Importer un Portefeuille", + "description": "Assurez-vous de sauvegarder votre portefeuille en utilisant une m\xe9thode s\xe9curis\xe9e. Ne partagez jamais votre phrase de r\xe9cup\xe9ration secr\xe8te avec personne." + }, + "step3": { + "title": "Rafra\xeechissez votre navigateur", + "description": "Une fois que vous avez configur\xe9 votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension." + } + } + }, + "metamask": { + "qr_code": { + "step1": { + "title": "Ouvrez l'application MetaMask", + "description": "Nous vous recommandons de mettre MetaMask sur votre \xe9cran d'accueil pour un acc\xe8s plus rapide." + }, + "step2": { + "title": "Cr\xe9er ou Importer un Portefeuille", + "description": "Veillez \xe0 sauvegarder votre portefeuille en utilisant une m\xe9thode s\xe9curis\xe9e. Ne partagez jamais votre phrase secr\xe8te avec qui que ce soit." + }, + "step3": { + "title": "Appuyez sur le bouton de scan", + "description": "Apr\xe8s avoir scann\xe9, une invite de connexion appara\xeetra pour vous permettre de connecter votre portefeuille." + } + }, + "extension": { + "step1": { + "title": "Installez l\u2019extension de MetaMask", + "description": "Nous recommandons d'\xe9pingler MetaMask \xe0 votre barre des t\xe2ches pour un acc\xe8s plus rapide \xe0 votre portefeuille." + }, + "step2": { + "title": "Cr\xe9er ou Importer un portefeuille", + "description": "Assurez-vous de sauvegarder votre portefeuille en utilisant une m\xe9thode s\xe9curis\xe9e. Ne partagez jamais votre phrase secr\xe8te avec quiconque." + }, + "step3": { + "title": "Rafra\xeechissez votre navigateur", + "description": "Une fois que vous avez configur\xe9 votre portefeuille, cliquez ci-dessous pour rafra\xeechir le navigateur et charger l'extension." + } + } + }, + "okx": { + "qr_code": { + "step1": { + "title": "Ouvrez l'application OKX Wallet", + "description": "Nous recommandons de mettre OKX Wallet sur votre \xe9cran d'accueil pour un acc\xe8s plus rapide." + }, + "step2": { + "title": "Cr\xe9er ou Importer un portefeuille", + "description": "Assurez-vous de sauvegarder votre portefeuille en utilisant une m\xe9thode s\xe9curis\xe9e. Ne partagez jamais votre phrase secr\xe8te avec quiconque." + }, + "step3": { + "title": "Appuyez sur le bouton de num\xe9risation", + "description": "Apr\xe8s avoir num\xe9ris\xe9, une invite de connexion appara\xeetra pour vous permettre de connecter votre portefeuille." + } + }, + "extension": { + "step1": { + "title": "Installez l'extension de portefeuille OKX", + "description": "Nous vous recommandons d'\xe9pingler le portefeuille OKX \xe0 votre barre des t\xe2ches pour un acc\xe8s plus rapide \xe0 votre portefeuille." + }, + "step2": { + "title": "Cr\xe9er ou Importer un portefeuille", + "description": "Assurez-vous de sauvegarder votre portefeuille en utilisant une m\xe9thode s\xe9curis\xe9e. Ne partagez jamais votre phrase secr\xe8te avec quiconque." + }, + "step3": { + "title": "Rafra\xeechissez votre navigateur", + "description": "Une fois que vous avez configur\xe9 votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension." + } + } + }, + "omni": { + "qr_code": { + "step1": { + "title": "Ouvrez l'application Omni", + "description": "Ajoutez Omni \xe0 votre \xe9cran d'accueil pour un acc\xe8s plus rapide \xe0 votre portefeuille." + }, + "step2": { + "title": "Cr\xe9er ou Importer un Portefeuille", + "description": "Cr\xe9ez un nouveau portefeuille ou importez-en un existant." + }, + "step3": { + "title": "Touchez l'ic\xf4ne QR et scannez", + "description": "Appuyez sur l'ic\xf4ne QR sur votre \xe9cran d'accueil, scannez le code et confirmez l'invite pour vous connecter." + } + } + }, + "1inch": { + "qr_code": { + "step1": { + "description": "Placez 1inch Wallet sur votre \xe9cran d'accueil pour un acc\xe8s plus rapide \xe0 votre portefeuille.", + "title": "Ouvrez l'application 1inch Wallet" + }, + "step2": { + "description": "Cr\xe9ez un portefeuille et un nom d'utilisateur, ou importez un portefeuille existant.", + "title": "Cr\xe9er ou Importer un Portefeuille" + }, + "step3": { + "description": "Apr\xe8s avoir num\xe9ris\xe9, une invite de connexion appara\xeetra pour vous permettre de connecter votre portefeuille.", + "title": "Appuyez sur le bouton Scan QR" + } + } + }, + "token_pocket": { + "qr_code": { + "step1": { + "title": "Ouvrez l'application TokenPocket", + "description": "Nous vous recommandons de mettre TokenPocket sur votre \xe9cran d'accueil pour un acc\xe8s plus rapide." + }, + "step2": { + "title": "Cr\xe9ez ou Importer un portefeuille", + "description": "Assurez-vous de sauvegarder votre portefeuille \xe0 l'aide d'une m\xe9thode s\xe9curis\xe9e. Ne partagez jamais votre phrase secr\xe8te avec qui que ce soit." + }, + "step3": { + "title": "Appuyez sur le bouton de scan", + "description": "Apr\xe8s votre scan, une invite de connexion appara\xeetra pour vous permettre de connecter votre portefeuille." + } + }, + "extension": { + "step1": { + "title": "Installez l'extension TokenPocket", + "description": "Nous recommandons d'\xe9pingler TokenPocket \xe0 votre barre des t\xe2ches pour un acc\xe8s plus rapide \xe0 votre portefeuille." + }, + "step2": { + "title": "Cr\xe9er ou Importer un portefeuille", + "description": "Assurez-vous de sauvegarder votre portefeuille en utilisant une m\xe9thode s\xe9curis\xe9e. Ne partagez jamais votre phrase secr\xe8te avec qui que ce soit." + }, + "step3": { + "title": "Rafra\xeechissez votre navigateur", + "description": "Une fois que vous avez configur\xe9 votre portefeuille, cliquez ci-dessous pour rafra\xeechir le navigateur et charger l'extension." + } + } + }, + "trust": { + "qr_code": { + "step1": { + "title": "Ouvrez l'application Trust Wallet", + "description": "Placez Trust Wallet sur votre \xe9cran d'accueil pour un acc\xe8s plus rapide \xe0 votre portefeuille." + }, + "step2": { + "title": "Cr\xe9er ou Importer un portefeuille", + "description": "Cr\xe9er un nouveau portefeuille ou en importer un existant." + }, + "step3": { + "title": "Appuyez sur WalletConnect dans les param\xe8tres", + "description": "Choisissez Nouvelle Connexion, puis scannez le code QR et confirmez l'invite pour vous connecter." + } + }, + "extension": { + "step1": { + "title": "Installez l'extension Trust Wallet", + "description": "Cliquez en haut \xe0 droite de votre navigateur et \xe9pinglez Trust Wallet pour un acc\xe8s facile." + }, + "step2": { + "title": "Cr\xe9er ou importer un portefeuille", + "description": "Cr\xe9er un nouveau portefeuille ou en importer un existant." + }, + "step3": { + "title": "Rafra\xeechissez votre navigateur", + "description": "Une fois que vous avez configur\xe9 Trust Wallet, cliquez ci-dessous pour rafra\xeechir le navigateur et charger l'extension." + } + } + }, + "uniswap": { + "qr_code": { + "step1": { + "title": "Ouvrez l'application Uniswap", + "description": "Ajoutez Uniswap Wallet \xe0 votre \xe9cran d'accueil pour un acc\xe8s plus rapide \xe0 votre portefeuille." + }, + "step2": { + "title": "Cr\xe9ez ou importez un portefeuille", + "description": "Cr\xe9ez un nouveau portefeuille ou importez-en un existant." + }, + "step3": { + "title": "Tapez sur l'ic\xf4ne QR et scannez", + "description": "Touchez l'ic\xf4ne QR sur votre \xe9cran d'accueil, scannez le code et confirmez l'invite pour vous connecter." + } + } + }, + "zerion": { + "qr_code": { + "step1": { + "title": "Ouvrez l'application Zerion", + "description": "Nous vous recommandons de mettre Zerion sur votre \xe9cran d'accueil pour un acc\xe8s plus rapide." + }, + "step2": { + "title": "Cr\xe9er ou Importer un portefeuille", + "description": "Assurez-vous de sauvegarder votre portefeuille en utilisant une m\xe9thode s\xe9curis\xe9e. Ne partagez jamais votre phrase secr\xe8te avec personne." + }, + "step3": { + "title": "Appuyez sur le bouton de scan", + "description": "Une fois que vous avez scann\xe9, une invite de connexion appara\xeetra pour que vous puissiez connecter votre portefeuille." + } + }, + "extension": { + "step1": { + "title": "Installer l'extension Zerion", + "description": "Nous recommandons d'\xe9pingler Zerion \xe0 votre barre des t\xe2ches pour un acc\xe8s plus rapide \xe0 votre portefeuille." + }, + "step2": { + "title": "Cr\xe9ez ou Importez un portefeuille", + "description": "Assurez-vous de sauvegarder votre portefeuille en utilisant une m\xe9thode s\xe9curis\xe9e. Ne partagez jamais votre phrase secr\xe8te avec quiconque." + }, + "step3": { + "title": "Rafra\xeechissez votre navigateur", + "description": "Une fois que vous avez configur\xe9 votre portefeuille, cliquez ci-dessous pour rafra\xeechir le navigateur et charger l'extension." + } + } + }, + "rainbow": { + "qr_code": { + "step1": { + "title": "Ouvre l'application Rainbow", + "description": "Nous vous recommandons de mettre Rainbow sur votre \xe9cran d'accueil pour un acc\xe8s plus rapide \xe0 votre portefeuille." + }, + "step2": { + "title": "Cr\xe9ez ou Importez un portefeuille", + "description": "Vous pouvez facilement sauvegarder votre portefeuille en utilisant notre fonction de sauvegarde sur votre t\xe9l\xe9phone." + }, + "step3": { + "title": "Appuyez sur le bouton de scan", + "description": "Apr\xe8s avoir scann\xe9, une invite de connexion appara\xeetra pour que vous connectiez votre portefeuille." + } + } + }, + "enkrypt": { + "extension": { + "step1": { + "description": "Nous vous recommandons d'\xe9pingler Enkrypt Wallet \xe0 votre barre des t\xe2ches pour un acc\xe8s plus rapide \xe0 votre portefeuille.", + "title": "Installez l'extension Enkrypt Wallet" + }, + "step2": { + "description": "Assurez-vous de sauvegarder votre portefeuille en utilisant une m\xe9thode s\xe9curis\xe9e. Ne partagez jamais votre phrase secr\xe8te avec quelqu'un.", + "title": "Cr\xe9er ou Importer un portefeuille" + }, + "step3": { + "description": "Une fois que vous avez configur\xe9 votre portefeuille, cliquez ci-dessous pour rafra\xeechir le navigateur et charger l\u2019extension.", + "title": "Rafra\xeechissez votre navigateur" + } + } + }, + "frame": { + "extension": { + "step1": { + "description": "Nous vous recommandons d'\xe9pingler Frame \xe0 votre barre des t\xe2ches pour un acc\xe8s plus rapide \xe0 votre portefeuille.", + "title": "Installez Frame & l'extension compl\xe9mentaire" + }, + "step2": { + "description": "Assurez-vous de sauvegarder votre portefeuille \xe0 l'aide d'une m\xe9thode s\xe9curis\xe9e. Ne partagez jamais votre phrase secr\xe8te avec personne.", + "title": "Cr\xe9er ou Importer un portefeuille" + }, + "step3": { + "description": "Une fois que vous avez configur\xe9 votre portefeuille, cliquez ci-dessous pour rafra\xeechir le navigateur et charger l'extension.", + "title": "Rafra\xeechissez votre navigateur" + } + } + }, + "one_key": { + "extension": { + "step1": { + "title": "Installez l'extension OneKey Wallet", + "description": "Nous vous recommandons d'\xe9pingler OneKey Wallet \xe0 votre barre des t\xe2ches pour un acc\xe8s plus rapide \xe0 votre portefeuille." + }, + "step2": { + "title": "Cr\xe9er ou Importer un portefeuille", + "description": "Assurez-vous de sauvegarder votre portefeuille en utilisant une m\xe9thode s\xe9curis\xe9e. Ne partagez jamais votre phrase secr\xe8te avec personne." + }, + "step3": { + "title": "Rafra\xeechissez votre navigateur", + "description": "Une fois que vous avez configur\xe9 votre portefeuille, cliquez ci-dessous pour rafra\xeechir le navigateur et charger l'extension." + } + } + }, + "phantom": { + "extension": { + "step1": { + "title": "Installez l'extension Phantom", + "description": "Nous vous recommandons d'\xe9pingler Phantom \xe0 votre barre des t\xe2ches pour un acc\xe8s plus facile \xe0 votre portefeuille." + }, + "step2": { + "title": "Cr\xe9er ou Importer un portefeuille", + "description": "Assurez-vous de sauvegarder votre portefeuille en utilisant une m\xe9thode s\xe9curis\xe9e. Ne partagez jamais votre phrase de r\xe9cup\xe9ration secr\xe8te avec personne." + }, + "step3": { + "title": "Rafra\xeechissez votre navigateur", + "description": "Une fois que vous avez configur\xe9 votre portefeuille, cliquez ci-dessous pour rafra\xeechir le navigateur et charger l'extension." + } + } + }, + "rabby": { + "extension": { + "step1": { + "title": "Installez l'extension Rabby", + "description": "Nous recommandons d'\xe9pingler Rabby \xe0 votre barre des t\xe2ches pour un acc\xe8s plus rapide \xe0 votre portefeuille." + }, + "step2": { + "title": "Cr\xe9er ou Importer un portefeuille", + "description": "Assurez-vous de sauvegarder votre portefeuille en utilisant une m\xe9thode s\xe9curis\xe9e. Ne partagez jamais votre phrase secr\xe8te avec qui que ce soit." + }, + "step3": { + "title": "Actualisez votre navigateur", + "description": "Une fois que vous avez configur\xe9 votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension." + } + } + }, + "ronin": { + "qr_code": { + "step1": { + "description": "Nous recommandons de placer Ronin Wallet sur votre \xe9cran d'accueil pour un acc\xe8s plus rapide.", + "title": "Ouvrez l'application Ronin Wallet" + }, + "step2": { + "description": "Assurez-vous de sauvegarder votre portefeuille en utilisant une m\xe9thode s\xe9curis\xe9e. Ne partagez jamais votre phrase secr\xe8te avec quiconque.", + "title": "Cr\xe9er ou Importer un Portefeuille" + }, + "step3": { + "description": "Apr\xe8s avoir num\xe9ris\xe9, une invite de connexion appara\xeetra pour vous permettre de connecter votre portefeuille.", + "title": "Appuyez sur le bouton de scan" + } + }, + "extension": { + "step1": { + "description": "Nous recommandons d'\xe9pingler Ronin Wallet \xe0 votre barre des t\xe2ches pour un acc\xe8s plus rapide \xe0 votre portefeuille.", + "title": "Installez l'extension Ronin Wallet" + }, + "step2": { + "description": "Assurez-vous de sauvegarder votre portefeuille en utilisant une m\xe9thode s\xe9curis\xe9e. Ne partagez jamais votre phrase secr\xe8te avec quiconque.", + "title": "Cr\xe9er ou Importer un Portefeuille" + }, + "step3": { + "description": "Une fois que vous avez configur\xe9 votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension.", + "title": "Rafra\xeechissez votre navigateur" + } + } + }, + "ramper": { + "extension": { + "step1": { + "title": "Installez l'extension Ramper", + "description": "Nous recommandons d'\xe9pingler Ramper \xe0 votre barre des t\xe2ches pour un acc\xe8s plus facile \xe0 votre portefeuille." + }, + "step2": { + "title": "Cr\xe9er un Portefeuille", + "description": "Assurez-vous de sauvegarder votre portefeuille en utilisant une m\xe9thode s\xe9curis\xe9e. Ne partagez jamais votre phrase secr\xe8te avec quiconque." + }, + "step3": { + "title": "Rafra\xeechissez votre navigateur", + "description": "Une fois que vous avez configur\xe9 votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension." + } + } + }, + "safeheron": { + "extension": { + "step1": { + "title": "Installez l'extension Core", + "description": "Nous recommandons d'\xe9pingler Safeheron \xe0 votre barre des t\xe2ches pour un acc\xe8s plus rapide \xe0 votre portefeuille." + }, + "step2": { + "title": "Cr\xe9er ou Importer un portefeuille", + "description": "Assurez-vous de sauvegarder votre portefeuille en utilisant une m\xe9thode s\xe9curis\xe9e. Ne partagez jamais votre phrase secr\xe8te avec quelqu'un." + }, + "step3": { + "title": "Rafra\xeechissez votre navigateur", + "description": "Une fois que vous avez configur\xe9 votre portefeuille, cliquez ci-dessous pour rafra\xeechir le navigateur et charger l'extension." + } + } + }, + "taho": { + "extension": { + "step1": { + "title": "Installez l'extension Taho", + "description": "Nous vous recommandons d'\xe9pingler Taho \xe0 votre barre des t\xe2ches pour un acc\xe8s plus rapide \xe0 votre portefeuille." + }, + "step2": { + "title": "Cr\xe9ez ou Importez un portefeuille", + "description": "Assurez-vous de sauvegarder votre portefeuille en utilisant une m\xe9thode s\xe9curis\xe9e. Ne partagez jamais votre phrase secr\xe8te avec quelqu'un." + }, + "step3": { + "title": "Rafra\xeechissez votre navigateur", + "description": "Une fois que vous avez configur\xe9 votre portefeuille, cliquez ci-dessous pour rafra\xeechir le navigateur et charger l'extension." + } + } + }, + "talisman": { + "extension": { + "step1": { + "title": "Installez l'extension Talisman", + "description": "Nous vous recommandons d'\xe9pingler Talisman \xe0 votre barre des t\xe2ches pour un acc\xe8s plus rapide \xe0 votre portefeuille." + }, + "step2": { + "title": "Cr\xe9er ou importer un portefeuille Ethereum", + "description": "Assurez-vous de sauvegarder votre portefeuille en utilisant une m\xe9thode s\xe9curis\xe9e. Ne partagez jamais votre phrase de r\xe9cup\xe9ration avec personne." + }, + "step3": { + "title": "Rafra\xeechissez votre navigateur", + "description": "Une fois que vous avez configur\xe9 votre portefeuille, cliquez ci-dessous pour rafra\xeechir le navigateur et charger l'extension." + } + } + }, + "xdefi": { + "extension": { + "step1": { + "title": "Installez l'extension du portefeuille XDEFI", + "description": "Nous vous recommandons d'\xe9pingler XDEFI Wallet \xe0 votre barre des t\xe2ches pour un acc\xe8s plus rapide \xe0 votre portefeuille." + }, + "step2": { + "title": "Cr\xe9er ou Importer un portefeuille", + "description": "Assurez-vous de sauvegarder votre portefeuille en utilisant une m\xe9thode s\xe9curis\xe9e. Ne partagez jamais votre phrase secr\xe8te avec qui que ce soit." + }, + "step3": { + "title": "Rafra\xeechissez votre navigateur", + "description": "Une fois que vous avez configur\xe9 votre portefeuille, cliquez ci-dessous pour rafra\xeechir le navigateur et charger l'extension." + } + } + }, + "zeal": { + "extension": { + "step1": { + "title": "Installez l'extension Zeal", + "description": "Nous vous recommandons d'\xe9pingler Zeal \xe0 votre barre des t\xe2ches pour un acc\xe8s plus rapide \xe0 votre portefeuille." + }, + "step2": { + "title": "Cr\xe9er ou Importer un Portefeuille", + "description": "Assurez-vous de sauvegarder votre portefeuille en utilisant une m\xe9thode s\xe9curis\xe9e. Ne partagez jamais votre phrase secr\xe8te avec quiconque." + }, + "step3": { + "title": "Rafra\xeechissez votre navigateur", + "description": "Une fois que vous avez configur\xe9 votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension." + } + } + }, + "safepal": { + "extension": { + "step1": { + "title": "Installez l'extension SafePal Wallet", + "description": "Cliquez en haut \xe0 droite de votre navigateur et \xe9pinglez SafePal Wallet pour un acc\xe8s facile." + }, + "step2": { + "title": "Cr\xe9er ou Importer un portefeuille", + "description": "Cr\xe9ez un nouveau portefeuille ou importez-en un existant." + }, + "step3": { + "title": "Rafra\xeechissez votre navigateur", + "description": "Une fois que vous avez configur\xe9 SafePal Wallet, cliquez ci-dessous pour rafra\xeechir le navigateur et charger l'extension." + } + }, + "qr_code": { + "step1": { + "title": "Ouvrez l'application SafePal Wallet", + "description": "Mettez SafePal Wallet sur votre \xe9cran d'accueil pour un acc\xe8s plus rapide \xe0 votre portefeuille." + }, + "step2": { + "title": "Cr\xe9er ou Importer un Portefeuille", + "description": "Cr\xe9ez un nouveau portefeuille ou importez-en un existant." + }, + "step3": { + "title": "Appuyez sur WalletConnect dans les param\xe8tres", + "description": "Choisissez Nouvelle Connexion, puis scannez le code QR et confirmez l'invite pour vous connecter." + } + } + }, + "desig": { + "extension": { + "step1": { + "title": "Installez l'extension Desig", + "description": "Nous vous recommandons d'\xe9pingler Desig \xe0 votre barre des t\xe2ches pour un acc\xe8s plus facile \xe0 votre portefeuille." + }, + "step2": { + "title": "Cr\xe9er un Portefeuille", + "description": "Assurez-vous de sauvegarder votre portefeuille en utilisant une m\xe9thode s\xe9curis\xe9e. Ne partagez jamais votre phrase secr\xe8te avec quiconque." + }, + "step3": { + "title": "Rafra\xeechissez votre navigateur", + "description": "Une fois que vous avez configur\xe9 votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension." + } + } + }, + "subwallet": { + "extension": { + "step1": { + "title": "Installez l'extension SubWallet", + "description": "Nous vous recommandons d'\xe9pingler SubWallet \xe0 votre barre des t\xe2ches pour un acc\xe8s plus rapide \xe0 votre portefeuille." + }, + "step2": { + "title": "Cr\xe9er ou Importer un Portefeuille", + "description": "Assurez-vous de sauvegarder votre portefeuille en utilisant une m\xe9thode s\xe9curis\xe9e. Ne partagez jamais votre phrase de r\xe9cup\xe9ration avec personne." + }, + "step3": { + "title": "Rafra\xeechissez votre navigateur", + "description": "Une fois que vous avez configur\xe9 votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension." + } + }, + "qr_code": { + "step1": { + "title": "Ouvrez l'application SubWallet", + "description": "Nous vous recommandons de mettre SubWallet sur votre \xe9cran d'accueil pour un acc\xe8s plus rapide." + }, + "step2": { + "title": "Cr\xe9er ou Importer un Portefeuille", + "description": "Assurez-vous de sauvegarder votre portefeuille en utilisant une m\xe9thode s\xe9curis\xe9e. Ne partagez jamais votre phrase secr\xe8te avec quiconque." + }, + "step3": { + "title": "Appuyez sur le bouton de scan", + "description": "Apr\xe8s avoir num\xe9ris\xe9, une invite de connexion appara\xeetra pour vous permettre de connecter votre portefeuille." + } + } + }, + "clv": { + "extension": { + "step1": { + "title": "Installez l'extension CLV Wallet", + "description": "Nous vous recommandons d'\xe9pingler CLV Wallet \xe0 votre barre des t\xe2ches pour un acc\xe8s plus rapide \xe0 votre portefeuille." + }, + "step2": { + "title": "Cr\xe9er ou Importer un Portefeuille", + "description": "Assurez-vous de sauvegarder votre portefeuille en utilisant une m\xe9thode s\xe9curis\xe9e. Ne partagez jamais votre phrase secr\xe8te avec quiconque." + }, + "step3": { + "title": "Rafra\xeechissez votre navigateur", + "description": "Une fois que vous avez configur\xe9 votre portefeuille, cliquez ci-dessous pour actualiser le navigateur et charger l'extension." + } + }, + "qr_code": { + "step1": { + "title": "Ouvrez l'application CLV Wallet", + "description": "Nous vous recommandons de mettre CLV Wallet sur votre \xe9cran d'accueil pour un acc\xe8s plus rapide." + }, + "step2": { + "title": "Cr\xe9er ou Importer un Portefeuille", + "description": "Assurez-vous de sauvegarder votre portefeuille en utilisant une m\xe9thode s\xe9curis\xe9e. Ne partagez jamais votre phrase secr\xe8te avec quiconque." + }, + "step3": { + "title": "Appuyez sur le bouton de scan", + "description": "Apr\xe8s avoir num\xe9ris\xe9, une invite de connexion appara\xeetra pour vous permettre de connecter votre portefeuille." + } + } + }, + "okto": { + "qr_code": { + "step1": { + "title": "Ouvrez l'application Okto", + "description": "Ajoutez Okto \xe0 votre \xe9cran d'accueil pour un acc\xe8s rapide" + }, + "step2": { + "title": "Cr\xe9er un portefeuille MPC", + "description": "Cr\xe9ez un compte et g\xe9n\xe9rez un portefeuille" + }, + "step3": { + "title": "Appuyez sur WalletConnect dans les param\xe8tres", + "description": "Touchez l'ic\xf4ne 'Scan QR' en haut \xe0 droite et confirmez l'invite pour vous connecter." + } + } + }, + "ledger": { + "desktop": { + "step1": { + "title": "Ouvrez l'application Ledger Live", + "description": "Nous vous recommandons de mettre Ledger Live sur votre \xe9cran d'accueil pour un acc\xe8s plus rapide." + }, + "step2": { + "title": "Configurez votre Ledger", + "description": "Configurez un nouveau Ledger ou connectez-vous \xe0 un existant." + }, + "step3": { + "title": "Connecter", + "description": "Une fois que vous avez scann\xe9, une invite de connexion appara\xeetra pour que vous puissiez connecter votre portefeuille." + } + }, + "qr_code": { + "step1": { + "title": "Ouvrez l'application Ledger Live", + "description": "Nous vous recommandons de mettre Ledger Live sur votre \xe9cran d'accueil pour un acc\xe8s plus rapide." + }, + "step2": { + "title": "Configurez votre Ledger", + "description": "Vous pouvez soit synchroniser avec l'application de bureau, soit connecter votre Ledger." + }, + "step3": { + "title": "Scannez le code", + "description": "Appuyez sur WalletConnect puis passez au Scanner. Une fois que vous avez scann\xe9, une invite de connexion appara\xeetra pour que vous puissiez connecter votre portefeuille." + } + } + } + } +} +`}}]); \ No newline at end of file diff --git a/_next/static/chunks/5577.c975f7821a3b42f6.js b/_next/static/chunks/5577.c975f7821a3b42f6.js new file mode 100644 index 0000000..3adcf31 --- /dev/null +++ b/_next/static/chunks/5577.c975f7821a3b42f6.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5577],{45577:function(a,l,t){t.r(l),t.d(l,{default:function(){return e}});var e='data:image/svg+xml,'}}]); \ No newline at end of file diff --git a/_next/static/chunks/5962.491fd75c3af3a139.js b/_next/static/chunks/5962.491fd75c3af3a139.js new file mode 100644 index 0000000..af27589 --- /dev/null +++ b/_next/static/chunks/5962.491fd75c3af3a139.js @@ -0,0 +1,1191 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5962],{75962:function(e,u,a){a.r(u),a.d(u,{default:function(){return n}});var n=`{ + "connect_wallet": { + "label": "C\xfczdan\u0131 Ba\u011Fla", + "wrong_network": { + "label": "Yanl\u0131\u015F a\u011F" + } + }, + "intro": { + "title": "C\xfczdan nedir?", + "description": "Bir c\xfczdan, dijital varl\u0131klar\u0131 g\xf6ndermek, almak, saklamak ve g\xf6r\xfcnt\xfclemek i\xe7in kullan\u0131l\u0131r. Ayn\u0131 zamanda her web sitesinde yeni hesaplar ve \u015Fifreler olu\u015Fturman\u0131za gerek kalmadan oturum a\xe7man\u0131n yeni bir yoludur.", + "digital_asset": { + "title": "Dijital Varl\u0131klar\u0131n\u0131z \u0130\xe7in Bir Ev", + "description": "C\xfczdanlar, Ethereum ve NFT'ler gibi dijital varl\u0131klar\u0131 g\xf6ndermek, almak, depolamak ve g\xf6r\xfcnt\xfclemek i\xe7in kullan\u0131l\u0131r." + }, + "login": { + "title": "Yeni Bir Giri\u015F Yolu", + "description": "Her web sitesinde yeni hesap ve parolalar olu\u015Fturmak yerine, sadece c\xfczdan\u0131n\u0131z\u0131 ba\u011Flay\u0131n." + }, + "get": { + "label": "Bir C\xfczdan Edinin" + }, + "learn_more": { + "label": "Daha fazla bilgi edinin" + } + }, + "sign_in": { + "label": "Hesab\u0131n\u0131z\u0131 do\u011Frulay\u0131n", + "description": "Ba\u011Flant\u0131y\u0131 tamamlamak i\xe7in, bu hesab\u0131n sahibi oldu\u011Funuzu do\u011Frulamak i\xe7in c\xfczdan\u0131n\u0131zdaki bir mesaja imza atmal\u0131s\u0131n\u0131z.", + "message": { + "send": "Mesaj\u0131 g\xf6nder", + "preparing": "Mesaj haz\u0131rlan\u0131yor...", + "cancel": "\u0130ptal", + "preparing_error": "Mesaj\u0131 haz\u0131rlarken hata olu\u015Ftu, l\xfctfen tekrar deneyin!" + }, + "signature": { + "waiting": "\u0130mza bekleniyor...", + "verifying": "\u0130mza do\u011Frulan\u0131yor...", + "signing_error": "Mesaj\u0131 imzalarken hata olu\u015Ftu, l\xfctfen tekrar deneyin!", + "verifying_error": "\u0130mza do\u011Frulan\u0131rken hata olu\u015Ftu, l\xfctfen tekrar deneyin!", + "oops_error": "Hata, bir \u015Feyler yanl\u0131\u015F gitti!" + } + }, + "connect": { + "label": "Ba\u011Flan", + "title": "Bir C\xfczdan\u0131 Ba\u011Fla", + "new_to_ethereum": { + "description": "Ethereum c\xfczdanlar\u0131na yeni misiniz?", + "learn_more": { + "label": "Daha fazla bilgi edinin" + } + }, + "learn_more": { + "label": "Daha fazla bilgi edinin" + }, + "recent": "Son", + "status": { + "opening": "%{wallet}a\xe7\u0131l\u0131yor...", + "connecting": "Ba\u011Flan\u0131yor", + "connect_mobile": "%{wallet}'da devam edin", + "not_installed": "%{wallet} y\xfckl\xfc de\u011Fil", + "not_available": "%{wallet} kullan\u0131labilir de\u011Fil", + "confirm": "Ba\u011Flant\u0131y\u0131 eklentide onaylay\u0131n", + "confirm_mobile": "C\xfczdan\u0131nda ba\u011Flant\u0131 iste\u011Fini kabul et" + }, + "secondary_action": { + "get": { + "description": "%{wallet}yok mu?", + "label": "AL" + }, + "install": { + "label": "Y\xdcKLE" + }, + "retry": { + "label": "YEN\u0130DEN DENE" + } + }, + "walletconnect": { + "description": { + "full": "Resmi WalletConnect modal\u0131na m\u0131 ihtiyac\u0131n\u0131z var?", + "compact": "WalletConnect modal\u0131na m\u0131 ihtiyac\u0131n\u0131z var?" + }, + "open": { + "label": "A\xc7" + } + } + }, + "connect_scan": { + "title": "%{wallet}ile tarama yap\u0131n", + "fallback_title": "Telefonunuzla tarama yap\u0131n" + }, + "connector_group": { + "installed": "Y\xfcklendi", + "recommended": "Tavsiye Edilen", + "other": "Di\u011Fer", + "popular": "Pop\xfcler", + "more": "Daha Fazla", + "others": "Di\u011Ferleri" + }, + "get": { + "title": "Bir C\xfczdan Edinin", + "action": { + "label": "AL" + }, + "mobile": { + "description": "Mobil C\xfczdan" + }, + "extension": { + "description": "Taray\u0131c\u0131 Eklentisi" + }, + "mobile_and_extension": { + "description": "Mobil C\xfczdan ve Eklenti" + }, + "mobile_and_desktop": { + "description": "Mobil ve Masa\xfcst\xfc C\xfczdan" + }, + "looking_for": { + "title": "Arad\u0131\u011F\u0131n\u0131z \u015Fey bu de\u011Fil mi?", + "mobile": { + "description": "Ana ekranda ba\u015Fka bir c\xfczdan sa\u011Flay\u0131c\u0131s\u0131yla ba\u015Flamak i\xe7in bir c\xfczdan se\xe7in." + }, + "desktop": { + "compact_description": "Ana ekranda ba\u015Fka bir c\xfczdan sa\u011Flay\u0131c\u0131s\u0131yla ba\u015Flamak i\xe7in bir c\xfczdan se\xe7in.", + "wide_description": "Ba\u015Fka bir c\xfczdan sa\u011Flay\u0131c\u0131s\u0131yla ba\u015Flamak i\xe7in sol tarafta bir c\xfczdan se\xe7in." + } + } + }, + "get_options": { + "title": "%{wallet}ile ba\u015Flay\u0131n", + "short_title": "%{wallet}Edinin", + "mobile": { + "title": "%{wallet} Mobil \u0130\xe7in", + "description": "Mobil c\xfczdan\u0131 kullanarak Ethereum d\xfcnyas\u0131n\u0131 ke\u015Ffedin.", + "download": { + "label": "Uygulamay\u0131 al\u0131n" + } + }, + "extension": { + "title": "%{wallet} i\xe7in %{browser}", + "description": "C\xfczdan\u0131n\u0131za favori web taray\u0131c\u0131n\u0131zdan do\u011Frudan eri\u015Fin.", + "download": { + "label": "%{browser}'e ekle" + } + }, + "desktop": { + "title": "%{wallet} i\xe7in %{platform}", + "description": "G\xfc\xE7l\xfc masa\xfcst\xfcn\xfczden c\xfczdan\u0131n\u0131za yerel olarak eri\u015Fin.", + "download": { + "label": "%{platform}ekleyin" + } + } + }, + "get_mobile": { + "title": "%{wallet}'i y\xfckleyin", + "description": "iOS veya Android'de indirmek i\xe7in telefonunuzla taray\u0131n", + "continue": { + "label": "Devam et" + } + }, + "get_instructions": { + "mobile": { + "connect": { + "label": "Ba\u011Flan" + }, + "learn_more": { + "label": "Daha fazla bilgi edinin" + } + }, + "extension": { + "refresh": { + "label": "Yenile" + }, + "learn_more": { + "label": "Daha fazla bilgi edinin" + } + }, + "desktop": { + "connect": { + "label": "Ba\u011Flan" + }, + "learn_more": { + "label": "Daha fazla bilgi edinin" + } + } + }, + "chains": { + "title": "A\u011Flar\u0131 De\u011Fi\u015Ftir", + "wrong_network": "Yanl\u0131\u015F a\u011F alg\u0131land\u0131, devam etmek i\xe7in ba\u011Flant\u0131y\u0131 kesin veya de\u011Fi\u015Ftirin.", + "confirm": "C\xfczdan\u0131nda Onayla", + "switching_not_supported": "C\xfczdan\u0131n\u0131z %{appName}. a\u011Flar\u0131 de\u011Fi\u015Ftirmeyi desteklemiyor. Bunun yerine c\xfczdan\u0131n\u0131zdan a\u011Flar\u0131 de\u011Fi\u015Ftirmeyi deneyin.", + "switching_not_supported_fallback": "C\xfczdan\u0131n\u0131z bu uygulamadan a\u011Flar\u0131 de\u011Fi\u015Ftirmeyi desteklemiyor. Bunun yerine c\xfczdan\u0131n\u0131zdaki a\u011Flar\u0131 de\u011Fi\u015Ftirmeyi deneyin.", + "disconnect": "Ba\u011Flant\u0131y\u0131 Kes", + "connected": "Ba\u011Fl\u0131" + }, + "profile": { + "disconnect": { + "label": "Ba\u011Flant\u0131y\u0131 Kes" + }, + "copy_address": { + "label": "Adresi Kopyala", + "copied": "Kopyaland\u0131!" + }, + "explorer": { + "label": "Explorer \xfczerinde daha fazlas\u0131n\u0131 g\xf6r\xfcn" + }, + "transactions": { + "description": "%{appName} i\u015Flem burada g\xf6r\xfcnecek...", + "description_fallback": "\u0130\u015Flemleriniz burada g\xf6r\xfcnecek...", + "recent": { + "title": "Son \u0130\u015Flemler" + }, + "clear": { + "label": "Hepsini Temizle" + } + } + }, + "wallet_connectors": { + "argent": { + "qr_code": { + "step1": { + "description": "C\xfczdan\u0131n\u0131za daha h\u0131zl\u0131 eri\u015Fim i\xe7in Argent'i ana ekran\u0131n\u0131za koyun.", + "title": "Argent uygulamas\u0131n\u0131 a\xe7\u0131n" + }, + "step2": { + "description": "Bir c\xfczdan ve kullan\u0131c\u0131 ad\u0131 olu\u015Fturun veya mevcut bir c\xfczdan\u0131 i\xe7e aktar\u0131n.", + "title": "C\xfczdan Olu\u015Ftur veya C\xfczdan\u0131 \u0130\xe7e Aktar" + }, + "step3": { + "description": "Tarad\u0131ktan sonra, c\xfczdan\u0131n\u0131z\u0131 ba\u011Flamak i\xe7in bir ba\u011Flant\u0131 istemi g\xf6r\xfcnecektir.", + "title": "QR taray\u0131c\u0131 d\xfc\u011Fmesine dokunun" + } + } + }, + "bifrost": { + "qr_code": { + "step1": { + "description": "Daha h\u0131zl\u0131 eri\u015Fim i\xe7in Bifrost C\xfczdan'\u0131 ana ekran\u0131n\u0131za koyman\u0131z\u0131 \xf6neririz.", + "title": "Bifrost C\xfczdan uygulamas\u0131n\u0131 a\xe7\u0131n" + }, + "step2": { + "description": "Kurtarma ifadenizle bir c\xfczdan olu\u015Fturun veya i\xe7e aktar\u0131n.", + "title": "C\xfczdan Olu\u015Ftur veya C\xfczdan\u0131 \u0130\xe7e Aktar" + }, + "step3": { + "description": "Tarama i\u015Flemi sonras\u0131nda, c\xfczdan\u0131n\u0131z\u0131 ba\u011Flamak i\xe7in bir ba\u011Flant\u0131 istemi g\xf6z\xfckecektir.", + "title": "Taray\u0131c\u0131 d\xfc\u011Fmesine dokunun" + } + } + }, + "bitget": { + "qr_code": { + "step1": { + "description": "Daha h\u0131zl\u0131 eri\u015Fim i\xe7in Bitget C\xfczdan\u0131n\u0131z\u0131 ana ekran\u0131n\u0131za koyman\u0131z\u0131 \xf6neririz.", + "title": "Bitget C\xfczdan uygulamas\u0131n\u0131 a\xe7\u0131n" + }, + "step2": { + "description": "C\xfczdan\u0131n\u0131z\u0131 g\xfcvenli bir y\xf6ntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle payla\u015Fmay\u0131n.", + "title": "C\xfczdan Olu\u015Ftur veya C\xfczdan\u0131 \u0130\xe7e Aktar" + }, + "step3": { + "description": "Tarama yapt\u0131ktan sonra, c\xfczdan\u0131n\u0131z\u0131 ba\u011Flamak i\xe7in bir ba\u011Flant\u0131 istemi g\xf6r\xfcnecektir.", + "title": "Tarama d\xfc\u011Fmesine dokunun" + } + }, + "extension": { + "step1": { + "description": "C\xfczdan\u0131n\u0131za daha h\u0131zl\u0131 eri\u015Fim i\xe7in Bitget C\xfczdan\u0131n\u0131 g\xf6rev \xe7ubu\u011Funuza sabitlemenizi \xf6neririz.", + "title": "Bitget C\xfczdan eklentisini y\xfckleyin" + }, + "step2": { + "description": "C\xfczdan\u0131n\u0131z\u0131 g\xfcvenli bir y\xf6ntemle yedeklemekten emin olun. Gizli ifadenizi hi\xe7 kimseyle payla\u015Fmay\u0131n.", + "title": "Bir C\xfczdan Olu\u015Fturun veya \u0130\xe7e Aktar\u0131n" + }, + "step3": { + "description": "C\xfczdan\u0131n\u0131z\u0131 kurduktan sonra, a\u015Fa\u011F\u0131ya t\u0131klay\u0131n ve taray\u0131c\u0131y\u0131 yenileyin ve eklentiyi y\xfckleyin.", + "title": "Taray\u0131c\u0131n\u0131z\u0131 yenileyin" + } + } + }, + "bitski": { + "extension": { + "step1": { + "description": "C\xfczdan\u0131n\u0131za daha h\u0131zl\u0131 eri\u015Fim i\xe7in Bitski'yi g\xf6rev \xe7ubu\u011Funuza sabitlemenizi \xf6neririz.", + "title": "Bitski eklentisini y\xfckleyin" + }, + "step2": { + "description": "C\xfczdan\u0131n\u0131z\u0131 g\xfcvenli bir y\xf6ntem kullanarak yedekledi\u011Finizden emin olun. Gizli ifadenizi kimseyle payla\u015Fmay\u0131n.", + "title": "Bir C\xfczdan Olu\u015Fturun veya \u0130\xe7e Aktar\u0131n" + }, + "step3": { + "description": "C\xfczdan\u0131n\u0131z\u0131 kurduktan sonra, taray\u0131c\u0131y\u0131 yenilemek ve eklentiyi y\xfcklemek i\xe7in a\u015Fa\u011F\u0131ya t\u0131klay\u0131n.", + "title": "Taray\u0131c\u0131n\u0131z\u0131 yenileyin" + } + } + }, + "bitverse": { + "qr_code": { + "step1": { + "title": "Bitverse C\xfczdan uygulamas\u0131n\u0131 a\xe7\u0131n", + "description": "C\xfczdan\u0131n\u0131za daha h\u0131zl\u0131 eri\u015Fim i\xe7in Bitverse C\xfczdan'\u0131 ana ekran\u0131n\u0131za ekleyin." + }, + "step2": { + "title": "C\xfczdan Olu\u015Ftur veya C\xfczdan\u0131 \u0130\xe7e Aktar", + "description": "Yeni bir c\xfczdan olu\u015Fturun veya mevcut birini i\xe7e aktar\u0131n." + }, + "step3": { + "title": "QR simgesine dokunun ve taray\u0131n", + "description": "Ana ekran\u0131n\u0131zdaki QR simgesine dokunun, kodu taray\u0131n ve ba\u011Flanmay\u0131 onaylamak i\xe7in istemi kabul edin." + } + } + }, + "bloom": { + "desktop": { + "step1": { + "title": "Bloom C\xfczdan uygulamas\u0131n\u0131 a\xe7\u0131n", + "description": "Daha h\u0131zl\u0131 eri\u015Fim i\xe7in Bloom C\xfczdan'\u0131 ana ekran\u0131n\u0131za koymay\u0131 \xf6neririz." + }, + "step2": { + "description": "Kurtarma ifadenizle bir c\xfczdan olu\u015Fturun veya i\xe7e aktar\u0131n.", + "title": "C\xfczdan Olu\u015Ftur veya C\xfczdan\u0131 \u0130\xe7e Aktar" + }, + "step3": { + "description": "Bir c\xfczdan\u0131n\u0131z olduktan sonra, Bloom \xfczerinden ba\u011Flanmak i\xe7in Ba\u011Flan'a t\u0131klay\u0131n. Uygulamada ba\u011Flant\u0131y\u0131 onaylaman\u0131z i\xe7in bir ba\u011Flant\u0131 istemi belirecektir.", + "title": "Ba\u011Flan'a t\u0131klay\u0131n" + } + }, + "qr_code": { + "step1": { + "title": "Bloom C\xfczdan uygulamas\u0131n\u0131 a\xe7\u0131n", + "description": "Daha h\u0131zl\u0131 eri\u015Fim i\xe7in Bloom C\xfczdan'\u0131 ana ekran\u0131n\u0131za koymay\u0131 \xf6neririz." + }, + "step2": { + "description": "Kurtarma ifadenizle bir c\xfczdan olu\u015Fturun veya i\xe7e aktar\u0131n.", + "title": "C\xfczdan Olu\u015Ftur veya C\xfczdan\u0131 \u0130\xe7e Aktar" + }, + "step3": { + "description": "Bir c\xfczdan\u0131n\u0131z olduktan sonra, Bloom \xfczerinden ba\u011Flanmak i\xe7in Ba\u011Flan'a t\u0131klay\u0131n. Uygulamada ba\u011Flant\u0131y\u0131 onaylaman\u0131z i\xe7in bir ba\u011Flant\u0131 istemi belirecektir.", + "title": "Ba\u011Flan'a t\u0131klay\u0131n" + } + } + }, + "bybit": { + "qr_code": { + "step1": { + "description": "C\xfczdan\u0131n\u0131za daha h\u0131zl\u0131 eri\u015Fim i\xe7in Bybit'i ana ekran\u0131n\u0131za koymay\u0131 \xf6neririz.", + "title": "Bybit uygulamas\u0131n\u0131 a\xe7\u0131n" + }, + "step2": { + "description": "Telefonunuzdaki yedekleme \xf6zelli\u011Fimizi kullanarak c\xfczdan\u0131n\u0131z\u0131 kolayca yedekleyebilirsiniz.", + "title": "C\xfczdan Olu\u015Ftur veya C\xfczdan\u0131 \u0130\xe7e Aktar" + }, + "step3": { + "description": "Tarad\u0131ktan sonra, c\xfczdan\u0131n\u0131z\u0131 ba\u011Flamak i\xe7in bir ba\u011Flant\u0131 istemi g\xf6r\xfcnecektir.", + "title": "Taray\u0131c\u0131 d\xfc\u011Fmesine dokunun" + } + }, + "extension": { + "step1": { + "description": "Taray\u0131c\u0131n\u0131z\u0131n sa\u011F \xfcst k\xf6\u015Fesine t\u0131klay\u0131n ve kolay eri\u015Fim i\xe7in Bybit C\xfczdan'\u0131 sabitleyin.", + "title": "Bybit C\xfczdan uzant\u0131s\u0131n\u0131 y\xfckleyin" + }, + "step2": { + "description": "Yeni bir c\xfczdan olu\u015Fturun veya mevcut birini i\xe7e aktar\u0131n.", + "title": "Bir c\xfczdan olu\u015Fturun veya i\xe7e aktar\u0131n" + }, + "step3": { + "description": "Bybit C\xfczdan'\u0131 ayarlad\u0131ktan sonra, taray\u0131c\u0131y\u0131 yenilemek ve uzant\u0131y\u0131 y\xfcklemek i\xe7in a\u015Fa\u011F\u0131daki butona t\u0131klay\u0131n.", + "title": "Taray\u0131c\u0131n\u0131z\u0131 yenileyin" + } + } + }, + "coin98": { + "qr_code": { + "step1": { + "description": "C\xfczdan\u0131n\u0131za daha h\u0131zl\u0131 eri\u015Fim i\xe7in Coin98 C\xfczdan\u0131n\u0131z\u0131 ana ekran\u0131n\u0131za koyman\u0131z\u0131 \xf6neririz.", + "title": "Coin98 C\xfczdan uygulamas\u0131n\u0131 a\xe7\u0131n" + }, + "step2": { + "description": "Telefonunuzdaki yedekleme \xf6zelli\u011Fimizi kullanarak c\xfczdan\u0131n\u0131z\u0131 kolayca yedekleyebilirsiniz.", + "title": "C\xfczdan Olu\u015Ftur veya C\xfczdan\u0131 \u0130\xe7e Aktar" + }, + "step3": { + "description": "Tarama i\u015Flemi yapt\u0131ktan sonra, c\xfczdan\u0131n\u0131z\u0131 ba\u011Flamak i\xe7in bir ba\u011Flant\u0131 istemi g\xf6r\xfcnecektir.", + "title": "C\xfczdanBa\u011Flant\u0131s\u0131 d\xfc\u011Fmesine dokunun" + } + }, + "extension": { + "step1": { + "description": "Taray\u0131c\u0131n\u0131z\u0131n sa\u011F \xfcst k\xf6\u015Fesinde t\u0131klay\u0131n ve Coin98 C\xfczdan\u0131n\u0131z\u0131 kolay eri\u015Fim i\xe7in sabitleyin.", + "title": "Coin98 C\xfczdan eklentisini y\xfckleyin" + }, + "step2": { + "description": "Yeni bir c\xfczdan olu\u015Fturun veya mevcut birini i\xe7e aktar\u0131n.", + "title": "Bir c\xfczdan olu\u015Fturun veya i\xe7e aktar\u0131n" + }, + "step3": { + "description": "Coin98 C\xfczdan'\u0131 kurduktan sonra, taray\u0131c\u0131y\u0131 yenilemek ve eklentiyi y\xfcklemek i\xe7in a\u015Fa\u011F\u0131ya t\u0131klay\u0131n.", + "title": "Taray\u0131c\u0131n\u0131z\u0131 yenileyin" + } + } + }, + "coinbase": { + "qr_code": { + "step1": { + "description": "Coinbase C\xfczdan'\u0131 ana ekran\u0131n\u0131za koyman\u0131z\u0131 \xf6neririz, b\xf6ylece daha h\u0131zl\u0131 eri\u015Fim sa\u011Flan\u0131r.", + "title": "Coinbase Wallet uygulamas\u0131n\u0131 a\xe7\u0131n" + }, + "step2": { + "description": "C\xfczdan\u0131n\u0131z\u0131 bulut yedekleme \xf6zelli\u011Fini kullanarak kolayca yedekleyebilirsiniz.", + "title": "Bir C\xfczdan Olu\u015Fturun veya \u0130\xe7e Aktar\u0131n" + }, + "step3": { + "description": "Tarama yapt\u0131ktan sonra, c\xfczdan\u0131n\u0131z\u0131 ba\u011Flaman\u0131z i\xe7in bir ba\u011Flant\u0131 istemi belirecektir.", + "title": "Tarama d\xfc\u011Fmesine dokunun" + } + }, + "extension": { + "step1": { + "description": "C\xfczdan\u0131n\u0131za daha h\u0131zl\u0131 eri\u015Fim i\xe7in Coinbase Wallet'\u0131 g\xf6rev \xe7ubu\u011Funuza sabitlemenizi \xf6neririz.", + "title": "Coinbase Wallet uzant\u0131s\u0131n\u0131 y\xfckleyin" + }, + "step2": { + "description": "C\xfczdan\u0131n\u0131z\u0131 g\xfcvenli bir y\xf6ntem kullanarak yedekleyin. Gizli ifadenizi asla ba\u015Fkalar\u0131yla payla\u015Fmay\u0131n.", + "title": "C\xfczdan Olu\u015Ftur veya \u0130\xe7e Aktar" + }, + "step3": { + "description": "C\xfczdan\u0131n\u0131z\u0131 kurduktan sonra, taray\u0131c\u0131y\u0131 yenilemek ve eklentiyi y\xfcklemek i\xe7in a\u015Fa\u011F\u0131ya t\u0131klay\u0131n.", + "title": "Taray\u0131c\u0131n\u0131z\u0131 yenileyin" + } + } + }, + "compass": { + "extension": { + "step1": { + "description": "C\xfczdan\u0131n\u0131za daha h\u0131zl\u0131 eri\u015Fim i\xe7in Compass Wallet'\u0131 g\xf6rev \xe7ubu\u011Funuza sabitlemenizi \xf6neririz.", + "title": "Compass Wallet uzant\u0131s\u0131n\u0131 y\xfckleyin" + }, + "step2": { + "description": "C\xfczdan\u0131n\u0131z\u0131 g\xfcvenli bir y\xf6ntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle payla\u015Fmay\u0131n.", + "title": "C\xfczdan Olu\u015Ftur veya C\xfczdan\u0131 \u0130\xe7e Aktar" + }, + "step3": { + "description": "C\xfczdan\u0131n\u0131z\u0131 kurduktan sonra, a\u015Fa\u011F\u0131ya t\u0131klay\u0131n ve taray\u0131c\u0131y\u0131 yenileyin ve eklentiyi y\xfckleyin.", + "title": "Taray\u0131c\u0131n\u0131z\u0131 yenileyin" + } + } + }, + "core": { + "qr_code": { + "step1": { + "description": "C\xfczdan\u0131n\u0131za daha h\u0131zl\u0131 eri\u015Fim i\xe7in Core'u ana ekran\u0131n\u0131za koyman\u0131z\u0131 \xf6neririz.", + "title": "Core uygulamas\u0131n\u0131 a\xe7\u0131n" + }, + "step2": { + "description": "C\xfczdan\u0131n\u0131z\u0131n yede\u011Fini telefonunuzda bulunan yedekleme \xf6zelli\u011Fimizi kullanarak kolayca alabilirsiniz.", + "title": "C\xfczdan Olu\u015Ftur veya \u0130\xe7e Aktar" + }, + "step3": { + "description": "Tarama yapt\u0131ktan sonra, c\xfczdan\u0131n\u0131z\u0131 ba\u011Flamak \xfczere bir ba\u011Flant\u0131 istemi g\xf6r\xfcnecektir.", + "title": "WalletConnect d\xfc\u011Fmesine dokunun" + } + }, + "extension": { + "step1": { + "description": "C\xfczdan\u0131n\u0131za daha h\u0131zl\u0131 eri\u015Fim i\xe7in Core'u g\xf6rev \xe7ubu\u011Funuza sabitlemenizi \xf6neririz.", + "title": "Core eklentisini y\xfckleyin" + }, + "step2": { + "description": "C\xfczdan\u0131n\u0131z\u0131 g\xfcvenli bir y\xf6ntemle yedeklemeye dikkat edin. Gizli ifadenizi asla kimseyle payla\u015Fmay\u0131n.", + "title": "Bir C\xfczdan Olu\u015Fturun veya \u0130\xe7e Aktar\u0131n" + }, + "step3": { + "description": "C\xfczdan\u0131n\u0131z\u0131 kurduktan sonra, a\u015Fa\u011F\u0131ya t\u0131klayarak taray\u0131c\u0131y\u0131 yenileyin ve eklentiyi y\xfckleyin.", + "title": "Taray\u0131c\u0131n\u0131z\u0131 yenileyin" + } + } + }, + "fox": { + "qr_code": { + "step1": { + "description": "Daha h\u0131zl\u0131 eri\u015Fim i\xe7in FoxWallet'\u0131 ana ekran\u0131n\u0131za koyman\u0131z\u0131 \xf6neririz.", + "title": "FoxWallet uygulamas\u0131n\u0131 a\xe7\u0131n" + }, + "step2": { + "description": "C\xfczdan\u0131n\u0131z\u0131 g\xfcvenli bir y\xf6ntem kullanarak yedekledi\u011Finizden emin olun. Gizli ifadenizi asla kimseyle payla\u015Fmay\u0131n.", + "title": "C\xfczdan Olu\u015Ftur veya C\xfczdan\u0131 \u0130\xe7e Aktar" + }, + "step3": { + "description": "Tarama yapt\u0131ktan sonra c\xfczdan\u0131n\u0131z\u0131 ba\u011Flaman\u0131z i\xe7in bir ba\u011Flant\u0131 istemi belirecektir.", + "title": "Tarama d\xfc\u011Fmesine dokunun" + } + } + }, + "frontier": { + "qr_code": { + "step1": { + "description": "Daha h\u0131zl\u0131 eri\u015Fim i\xe7in Frontier C\xfczdan\u0131n\u0131 ana ekran\u0131n\u0131za koyman\u0131z\u0131 \xf6neririz.", + "title": "Frontier C\xfczdan uygulamas\u0131n\u0131 a\xe7\u0131n" + }, + "step2": { + "description": "C\xfczdan\u0131n\u0131z\u0131 g\xfcvenli bir y\xf6ntem kullanarak yedekledi\u011Finizden emin olun. Gizli ifadenizi asla kimseyle payla\u015Fmay\u0131n.", + "title": "C\xfczdan Olu\u015Ftur veya C\xfczdan\u0131 \u0130\xe7e Aktar" + }, + "step3": { + "description": "Taramadan sonra, c\xfczdan\u0131n\u0131z\u0131 ba\u011Flamak i\xe7in bir ba\u011Flant\u0131 istemi g\xf6r\xfcnecektir.", + "title": "Tarama d\xfc\u011Fmesine dokunun" + } + }, + "extension": { + "step1": { + "description": "C\xfczdan\u0131n\u0131za daha h\u0131zl\u0131 eri\u015Fim i\xe7in Frontier C\xfczdan\u0131n\u0131 g\xf6rev \xe7ubu\u011Funuza sabitlemenizi \xf6neririz.", + "title": "Frontier C\xfczdan eklentisini y\xfckleyin" + }, + "step2": { + "description": "C\xfczdan\u0131n\u0131z\u0131 g\xfcvenli bir y\xf6ntemle yedekledi\u011Finizden emin olun. Gizli ifadenizi hi\xe7 kimseyle payla\u015Fmay\u0131n.", + "title": "C\xfczdan Olu\u015Ftur veya C\xfczdan\u0131 \u0130\xe7e Aktar" + }, + "step3": { + "description": "C\xfczdan\u0131n\u0131z\u0131 ayarlad\u0131ktan sonra, taray\u0131c\u0131y\u0131 yenilemeye ve eklentiyi y\xfcklemeye ba\u015Flamak i\xe7in a\u015Fa\u011F\u0131ya t\u0131klay\u0131n.", + "title": "Taray\u0131c\u0131n\u0131z\u0131 Yenileyin" + } + } + }, + "im_token": { + "qr_code": { + "step1": { + "title": "imToken uygulamas\u0131n\u0131 a\xe7\u0131n", + "description": "C\xfczdan\u0131n\u0131za daha h\u0131zl\u0131 eri\u015Fim i\xe7in imToken uygulamas\u0131n\u0131 ana ekran\u0131n\u0131za koyun." + }, + "step2": { + "title": "C\xfczdan Olu\u015Ftur veya C\xfczdan\u0131 \u0130\xe7e Aktar", + "description": "Yeni bir c\xfczdan olu\u015Fturun veya mevcut bir c\xfczdan\u0131 i\xe7e aktar\u0131n." + }, + "step3": { + "title": "Sa\u011F \xfcst k\xf6\u015Fede Taray\u0131c\u0131 Simgesine dokunun", + "description": "Yeni Ba\u011Flant\u0131'y\u0131 se\xe7in, ard\u0131ndan QR kodunu taray\u0131n ve ba\u011Flant\u0131y\u0131 onaylamak i\xe7in istemi onaylay\u0131n." + } + } + }, + "kaikas": { + "extension": { + "step1": { + "description": "C\xfczdan\u0131n\u0131za daha h\u0131zl\u0131 eri\u015Fim i\xe7in Kaikas'\u0131 g\xf6rev \xe7ubu\u011Funuza sabitlemeyi \xf6neririz.", + "title": "Kaikas uzant\u0131s\u0131n\u0131 y\xfckleyin" + }, + "step2": { + "description": "C\xfczdan\u0131n\u0131z\u0131 g\xfcvenli bir y\xf6ntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle payla\u015Fmay\u0131n.", + "title": "C\xfczdan Olu\u015Ftur veya C\xfczdan\u0131 \u0130\xe7e Aktar" + }, + "step3": { + "description": "C\xfczdan\u0131n\u0131z\u0131 kurduktan sonra, a\u015Fa\u011F\u0131ya t\u0131klay\u0131n ve taray\u0131c\u0131y\u0131 yenileyin ve eklentiyi y\xfckleyin.", + "title": "Taray\u0131c\u0131n\u0131z\u0131 yenileyin" + } + }, + "qr_code": { + "step1": { + "title": "Kaikas uygulamas\u0131n\u0131 a\xe7\u0131n", + "description": "C\xfczdan\u0131n\u0131za daha h\u0131zl\u0131 eri\u015Fim i\xe7in Kaikas uygulamas\u0131n\u0131 ana ekran\u0131n\u0131za koyun." + }, + "step2": { + "title": "C\xfczdan Olu\u015Ftur veya C\xfczdan\u0131 \u0130\xe7e Aktar", + "description": "Yeni bir c\xfczdan olu\u015Fturun veya mevcut birini i\xe7e aktar\u0131n." + }, + "step3": { + "title": "Sa\u011F \xfcst k\xf6\u015Fede Taray\u0131c\u0131 Simgesine dokunun", + "description": "Yeni Ba\u011Flant\u0131'y\u0131 se\xe7in, ard\u0131ndan QR kodunu taray\u0131n ve ba\u011Flant\u0131y\u0131 onaylamak i\xe7in istemi onaylay\u0131n." + } + } + }, + "kraken": { + "qr_code": { + "step1": { + "title": "Kraken Wallet uygulamas\u0131n\u0131 a\xe7\u0131n", + "description": "C\xfczdan\u0131n\u0131za daha h\u0131zl\u0131 eri\u015Fim i\xe7in Kraken Wallet'\u0131 ana ekran\u0131n\u0131za koyman\u0131z\u0131 \xf6neririz." + }, + "step2": { + "title": "C\xfczdan Olu\u015Ftur veya C\xfczdan\u0131 \u0130\xe7e Aktar", + "description": "Yeni bir c\xfczdan olu\u015Fturun veya mevcut birini i\xe7e aktar\u0131n." + }, + "step3": { + "title": "QR simgesine dokunun ve taray\u0131n", + "description": "Ana ekran\u0131n\u0131zdaki QR simgesine dokunun, kodu taray\u0131n ve ba\u011Flanmay\u0131 onaylamak i\xe7in istemi kabul edin." + } + } + }, + "kresus": { + "qr_code": { + "step1": { + "title": "Kresus C\xfczdan uygulamas\u0131n\u0131 a\xe7\u0131n", + "description": "C\xfczdan\u0131n\u0131za daha h\u0131zl\u0131 eri\u015Fim i\xe7in Kresus C\xfczdan\u0131n\u0131 ana ekran\u0131n\u0131za ekleyin." + }, + "step2": { + "title": "C\xfczdan Olu\u015Ftur veya C\xfczdan\u0131 \u0130\xe7e Aktar", + "description": "Yeni bir c\xfczdan olu\u015Fturun veya mevcut birini i\xe7e aktar\u0131n." + }, + "step3": { + "title": "QR simgesine dokunun ve taray\u0131n", + "description": "Ana ekran\u0131n\u0131zdaki QR simgesine dokunun, kodu taray\u0131n ve ba\u011Flanmay\u0131 onaylamak i\xe7in istemi kabul edin." + } + } + }, + "magicEden": { + "extension": { + "step1": { + "title": "Magic Eden eklentisini y\xfckleyin", + "description": "C\xfczdan\u0131n\u0131za daha kolay eri\u015Fim sa\u011Flamak i\xe7in Magic Eden'i g\xf6rev \xe7ubu\u011Funuza sabitlemenizi \xf6neririz." + }, + "step2": { + "title": "C\xfczdan Olu\u015Ftur veya C\xfczdan\u0131 \u0130\xe7e Aktar", + "description": "C\xfczdan\u0131n\u0131z\u0131 g\xfcvenli bir y\xf6ntem kullanarak yedekledi\u011Finizden emin olun. Gizli kurtarma ifadenizi kimseyle payla\u015Fmay\u0131n." + }, + "step3": { + "title": "Taray\u0131c\u0131n\u0131z\u0131 yenileyin", + "description": "C\xfczdan\u0131n\u0131z\u0131 kurduktan sonra, a\u015Fa\u011F\u0131ya t\u0131klay\u0131n ve taray\u0131c\u0131y\u0131 yenileyin ve eklentiyi y\xfckleyin." + } + } + }, + "metamask": { + "qr_code": { + "step1": { + "title": "MetaMask uygulamas\u0131n\u0131 a\xe7\u0131n", + "description": "Daha h\u0131zl\u0131 eri\u015Fim i\xe7in MetaMask'\u0131 ana ekran\u0131n\u0131za koyman\u0131z\u0131 \xf6neririz." + }, + "step2": { + "title": "Bir C\xfczdan Olu\u015Fturun veya \u0130\xe7e Aktar\u0131n", + "description": "C\xfczdan\u0131n\u0131z\u0131 g\xfcvenli bir y\xf6ntem kullanarak yedekleyin. Gizli kurtarma ifadenizi asla ba\u015Fkalar\u0131yla payla\u015Fmay\u0131n." + }, + "step3": { + "title": "Tarama d\xfc\u011Fmesine dokunun", + "description": "Taramay\u0131 yapt\u0131ktan sonra, c\xfczdan\u0131n\u0131z\u0131 ba\u011Flamak i\xe7in bir ba\u011Flant\u0131 istemi belirecektir." + } + }, + "extension": { + "step1": { + "title": "MetaMask eklentisini y\xfckleyin", + "description": "C\xfczdan\u0131n\u0131za daha h\u0131zl\u0131 eri\u015Fim i\xe7in MetaMask'i g\xf6rev \xe7ubu\u011Funuza sabitlemenizi \xf6neririz." + }, + "step2": { + "title": "Bir C\xfczdan Olu\u015Fturun veya \u0130\xe7e Aktar\u0131n", + "description": "C\xfczdan\u0131n\u0131z\u0131 g\xfcvenli bir y\xf6ntemle yedekledi\u011Finizden emin olun. Gizli ifadenizi hi\xe7 kimseyle payla\u015Fmay\u0131n." + }, + "step3": { + "title": "Taray\u0131c\u0131n\u0131z\u0131 Yenileyin", + "description": "C\xfczdan\u0131n\u0131z\u0131 ayarlad\u0131ktan sonra, taray\u0131c\u0131y\u0131 yenilemek ve eklentiyi y\xfcklemek i\xe7in a\u015Fa\u011F\u0131ya t\u0131klay\u0131n." + } + } + }, + "okx": { + "qr_code": { + "step1": { + "title": "OKX Wallet uygulamas\u0131n\u0131 a\xe7\u0131n", + "description": "Daha h\u0131zl\u0131 eri\u015Fim i\xe7in OKX Wallet'\u0131 ana ekran\u0131n\u0131za koyman\u0131z\u0131 \xf6neririz." + }, + "step2": { + "title": "Bir C\xfczdan Olu\u015Fturun veya \u0130\xe7e Aktar\u0131n", + "description": "C\xfczdan\u0131n\u0131z\u0131 g\xfcvenli bir y\xf6ntem kullanarak yedekledi\u011Finizden emin olun. Gizli c\xfcmlenizi asla kimseyle payla\u015Fmay\u0131n." + }, + "step3": { + "title": "Tarama d\xfc\u011Fmesine dokunun", + "description": "Tarama yapt\u0131ktan sonra, c\xfczdan\u0131n\u0131z\u0131 ba\u011Flama istemi g\xf6r\xfcnecektir." + } + }, + "extension": { + "step1": { + "title": "OKX C\xfczdan eklentisini y\xfckleyin", + "description": "C\xfczdan\u0131n\u0131za daha h\u0131zl\u0131 eri\u015Fim i\xe7in OKX C\xfczdan'\u0131 g\xf6rev \xe7ubu\u011Funuza sabitlemenizi \xf6neririz." + }, + "step2": { + "title": "C\xfczdan Olu\u015Fturun veya \u0130\xe7e Aktar\u0131n", + "description": "C\xfczdan\u0131n\u0131z\u0131 g\xfcvenli bir y\xf6ntem kullanarak yedekledi\u011Finizden emin olun. Gizli c\xfcmlenizi asla kimseyle payla\u015Fmay\u0131n." + }, + "step3": { + "title": "Taray\u0131c\u0131n\u0131z\u0131 yenileyin", + "description": "C\xfczdan\u0131n\u0131z\u0131 kurduktan sonra, taray\u0131c\u0131y\u0131 yenilemek ve eklentiyi y\xfcklemek i\xe7in a\u015Fa\u011F\u0131ya t\u0131klay\u0131n." + } + } + }, + "omni": { + "qr_code": { + "step1": { + "title": "Omni uygulamas\u0131n\u0131 a\xe7\u0131n", + "description": "C\xfczdan\u0131n\u0131za daha h\u0131zl\u0131 eri\u015Fim i\xe7in Omni'yi ana ekran\u0131n\u0131za ekleyin." + }, + "step2": { + "title": "Bir C\xfczdan Olu\u015Fturun ya da \u0130\xe7e Aktar\u0131n", + "description": "Yeni bir c\xfczdan olu\u015Fturun veya mevcut birini i\xe7e aktar\u0131n." + }, + "step3": { + "title": "QR simgesine dokunun ve taray\u0131n", + "description": "Ana ekran\u0131n\u0131zdaki QR simgesine dokunun, kodu taray\u0131n ve ba\u011Flanmak i\xe7in istemi onaylay\u0131n." + } + } + }, + "1inch": { + "qr_code": { + "step1": { + "description": "C\xfczdan\u0131n\u0131za daha h\u0131zl\u0131 eri\u015Fim i\xe7in 1inch C\xfczdan'\u0131 ana ekran\u0131n\u0131za koyun.", + "title": "1inch C\xfczdan uygulamas\u0131n\u0131 a\xe7\u0131n" + }, + "step2": { + "description": "Bir c\xfczdan ve kullan\u0131c\u0131 ad\u0131 olu\u015Fturun veya mevcut bir c\xfczdan\u0131 i\xe7e aktar\u0131n.", + "title": "C\xfczdan Olu\u015Ftur veya C\xfczdan\u0131 \u0130\xe7e Aktar" + }, + "step3": { + "description": "Tarad\u0131ktan sonra, c\xfczdan\u0131n\u0131z\u0131 ba\u011Flamak i\xe7in bir ba\u011Flant\u0131 istemi g\xf6r\xfcnecektir.", + "title": "QR taray\u0131c\u0131 d\xfc\u011Fmesine dokunun" + } + } + }, + "token_pocket": { + "qr_code": { + "step1": { + "title": "TokenPocket uygulamas\u0131n\u0131 a\xe7\u0131n", + "description": "Daha h\u0131zl\u0131 eri\u015Fim i\xe7in TokenPocket'\u0131 ana ekran\u0131n\u0131za koyman\u0131z\u0131 \xf6neririz." + }, + "step2": { + "title": "Bir C\xfczdan Olu\u015Fturun veya C\xfczdan\u0131 \u0130\xe7e Aktar\u0131n", + "description": "C\xfczdan\u0131n\u0131z\u0131 g\xfcvenli bir y\xf6ntem kullanarak yedekleyin. Gizli ifadenizi asla ba\u015Fkalar\u0131yla payla\u015Fmay\u0131n." + }, + "step3": { + "title": "Tarama d\xfc\u011Fmesine dokunun", + "description": "Taramay\u0131 yapt\u0131ktan sonra, c\xfczdan\u0131n\u0131z\u0131 ba\u011Flamak i\xe7in bir ba\u011Flant\u0131 istemi belirecektir." + } + }, + "extension": { + "step1": { + "title": "TokenPocket eklentisini y\xfckleyin", + "description": "C\xfczdan\u0131n\u0131za daha h\u0131zl\u0131 eri\u015Fim i\xe7in TokenPocket'i g\xf6rev \xe7ubu\u011Funuza sabitlemenizi \xf6neririz." + }, + "step2": { + "title": "C\xfczdan Olu\u015Ftur veya C\xfczdan\u0131 \u0130\xe7e Aktar", + "description": "C\xfczdan\u0131n\u0131z\u0131 g\xfcvenli bir y\xf6ntemle yedekledi\u011Finizden emin olun. Gizli c\xfcmlenizi asla ba\u015Fkalar\u0131yla payla\u015Fmay\u0131n." + }, + "step3": { + "title": "Taray\u0131c\u0131n\u0131z\u0131 yenileyin", + "description": "C\xfczdan\u0131n\u0131z\u0131 ayarlad\u0131ktan sonra, taray\u0131c\u0131y\u0131 yenilemekte ve eklentiyi y\xfcklemek i\xe7in a\u015Fa\u011F\u0131ya t\u0131klay\u0131n." + } + } + }, + "trust": { + "qr_code": { + "step1": { + "title": "Trust Wallet uygulamas\u0131n\u0131 a\xe7\u0131n", + "description": "C\xfczdan\u0131n\u0131za daha h\u0131zl\u0131 eri\u015Fim i\xe7in Trust Wallet'\u0131 ana ekran\u0131n\u0131za koyun." + }, + "step2": { + "title": "C\xfczdan Olu\u015Ftur veya C\xfczdan\u0131 \u0130\xe7e Aktar", + "description": "Yeni bir c\xfczdan olu\u015Fturun veya mevcut bir tane i\xe7e aktar\u0131n." + }, + "step3": { + "title": "Ayarlar'da WalletConnect'e dokunun", + "description": "Yeni Ba\u011Flant\u0131'y\u0131 se\xe7in, ard\u0131ndan QR kodunu taray\u0131n ve ba\u011Flanmak i\xe7in istemi onaylay\u0131n." + } + }, + "extension": { + "step1": { + "title": "Trust Wallet eklentisini y\xfckleyin", + "description": "Taray\u0131c\u0131n\u0131z\u0131n sa\u011F \xfcst k\xf6\u015Fesine t\u0131klay\u0131n ve kolay eri\u015Fim i\xe7in Trust Wallet'i sabitleyin." + }, + "step2": { + "title": "Bir c\xfczdan olu\u015Fturun veya i\xe7e aktar\u0131n", + "description": "Yeni bir c\xfczdan olu\u015Fturun veya mevcut bir tane i\xe7e aktar\u0131n." + }, + "step3": { + "title": "Taray\u0131c\u0131n\u0131z\u0131 yenileyin", + "description": "Trust Wallet'\u0131 kurduktan sonra, taray\u0131c\u0131y\u0131 yenilemek ve eklentiyi y\xfcklemek i\xe7in a\u015Fa\u011F\u0131ya t\u0131klay\u0131n." + } + } + }, + "uniswap": { + "qr_code": { + "step1": { + "title": "Uniswap uygulamas\u0131n\u0131 a\xe7\u0131n", + "description": "C\xfczdan\u0131n\u0131za daha h\u0131zl\u0131 eri\u015Fim i\xe7in Uniswap C\xfczdan\u0131n\u0131z\u0131 ana ekran\u0131n\u0131za ekleyin." + }, + "step2": { + "title": "C\xfczdan Olu\u015Ftur veya \u0130\xe7e Aktar", + "description": "Yeni bir c\xfczdan olu\u015Fturun veya mevcut birini i\xe7e aktar\u0131n." + }, + "step3": { + "title": "QR ikonuna dokunun ve tarama yap\u0131n", + "description": "Ana ekran\u0131n\u0131zdaki QR simgesine dokunun, kodu taray\u0131n ve ba\u011Flanmay\u0131 onaylamak i\xe7in istemi kabul edin." + } + } + }, + "zerion": { + "qr_code": { + "step1": { + "title": "Zerion uygulamas\u0131n\u0131 a\xe7\u0131n", + "description": "Daha h\u0131zl\u0131 eri\u015Fim i\xe7in Zerion'un ana ekran\u0131n\u0131za konumland\u0131rman\u0131z\u0131 \xf6neririz." + }, + "step2": { + "title": "Bir C\xfczdan Olu\u015Fturun veya \u0130\xe7e Aktar\u0131n", + "description": "C\xfczdan\u0131n\u0131z\u0131 g\xfcvenli bir y\xf6ntem kullanarak yedekleyin. Gizli ifadenizi asla ba\u015Fkalar\u0131yla payla\u015Fmay\u0131n." + }, + "step3": { + "title": "Tarama d\xfc\u011Fmesine bas\u0131n", + "description": "Taramadan sonra, c\xfczdan\u0131n\u0131z\u0131 ba\u011Flamak i\xe7in bir ba\u011Flant\u0131 istemi belirecektir." + } + }, + "extension": { + "step1": { + "title": "Zerion eklentisini y\xfckleyin", + "description": "C\xfczdan\u0131n\u0131za daha h\u0131zl\u0131 eri\u015Fim i\xe7in Zerion'u g\xf6rev \xe7ubu\u011Funuza sabitlemenizi \xf6neririz." + }, + "step2": { + "title": "C\xfczdan Olu\u015Ftur veya \u0130\xe7e Aktar", + "description": "C\xfczdan\u0131n\u0131z\u0131 g\xfcvenli bir y\xf6ntem kullanarak yedeklemeye emin olun. Gizli ifadenizi asla ba\u015Fkalar\u0131yla payla\u015Fmay\u0131n." + }, + "step3": { + "title": "Taray\u0131c\u0131n\u0131z\u0131 yenileyin", + "description": "C\xfczdan\u0131n\u0131z\u0131 ayarlad\u0131ktan sonra, taray\u0131c\u0131y\u0131 yenilemek ve eklentiyi y\xfcklemek i\xe7in a\u015Fa\u011F\u0131ya t\u0131klay\u0131n." + } + } + }, + "rainbow": { + "qr_code": { + "step1": { + "title": "Rainbow uygulamas\u0131n\u0131 a\xe7\u0131n", + "description": "C\xfczdan\u0131n\u0131za daha h\u0131zl\u0131 eri\u015Fim i\xe7in Rainbow'u ana ekran\u0131n\u0131za koyman\u0131z\u0131 \xf6neririz." + }, + "step2": { + "title": "C\xfczdan Olu\u015Ftur veya \u0130\xe7e Aktar", + "description": "Telefonunuzdaki yedekleme \xf6zelli\u011Fimizi kullanarak c\xfczdan\u0131n\u0131z\u0131 kolayca yedekleyebilirsiniz." + }, + "step3": { + "title": "Tarama d\xfc\u011Fmesine dokunun", + "description": "Tarama yapt\u0131ktan sonra, c\xfczdan\u0131n\u0131z\u0131 ba\u011Flaman\u0131z i\xe7in bir ba\u011Flant\u0131 istemi belirecektir." + } + } + }, + "enkrypt": { + "extension": { + "step1": { + "description": "C\xfczdan\u0131n\u0131za daha h\u0131zl\u0131 eri\u015Fim sa\u011Flamak i\xe7in Enkrypt C\xfczdan'\u0131 g\xf6rev \xe7ubu\u011Funuza sabitlemenizi \xf6neririz.", + "title": "Enkrypt C\xfczdan eklentisini y\xfckleyin" + }, + "step2": { + "description": "C\xfczdan\u0131n\u0131z\u0131 g\xfcvenli bir y\xf6ntemle yedekledi\u011Finizden emin olun. Gizli ifadenizi hi\xe7 kimseyle payla\u015Fmay\u0131n.", + "title": "Bir C\xfczdan Olu\u015Fturun veya \u0130\xe7e Aktar\u0131n" + }, + "step3": { + "description": "C\xfczdan\u0131n\u0131z\u0131 kurduktan sonra, taray\u0131c\u0131y\u0131 yenilemek ve eklentiyi y\xfcklemek i\xe7in a\u015Fa\u011F\u0131ya t\u0131klay\u0131n.", + "title": "Taray\u0131c\u0131n\u0131z\u0131 yenileyin" + } + } + }, + "frame": { + "extension": { + "step1": { + "description": "C\xfczdan\u0131n\u0131za daha h\u0131zl\u0131 eri\u015Fim sa\u011Flamak i\xe7in Frame'\u0131 g\xf6rev \xe7ubu\u011Funuza sabitlemenizi \xf6neririz.", + "title": "Frame ve e\u015Flik eden uzant\u0131y\u0131 y\xfckleyin" + }, + "step2": { + "description": "C\xfczdan\u0131n\u0131z\u0131 g\xfcvenli bir y\xf6ntem kullanarak yedekledi\u011Finizden emin olun. Gizli ifadenizi asla ba\u015Fkas\u0131yla payla\u015Fmay\u0131n.", + "title": "C\xfczdan Olu\u015Ftur veya \u0130\xe7e Aktar" + }, + "step3": { + "description": "C\xfczdan\u0131n\u0131z\u0131 ayarlad\u0131ktan sonra, taray\u0131c\u0131y\u0131 yenilemek ve uzant\u0131y\u0131 y\xfcklemek i\xe7in a\u015Fa\u011F\u0131ya t\u0131klay\u0131n.", + "title": "Taray\u0131c\u0131n\u0131z\u0131 yenileyin" + } + } + }, + "one_key": { + "extension": { + "step1": { + "title": "OneKey Wallet uzant\u0131s\u0131n\u0131 y\xfckleyin", + "description": "C\xfczdan\u0131n\u0131za daha h\u0131zl\u0131 eri\u015Fim i\xe7in OneKey Wallet'\u0131 g\xf6rev \xe7ubu\u011Funuza sabitlemenizi \xf6neririz." + }, + "step2": { + "title": "C\xfczdan Olu\u015Ftur veya \u0130\xe7e Aktar", + "description": "C\xfczdan\u0131n\u0131z\u0131 g\xfcvenli bir y\xf6ntem kullanarak yedekledi\u011Finizden emin olun. Gizli ifadenizi kimseyle payla\u015Fmay\u0131n." + }, + "step3": { + "title": "Taray\u0131c\u0131n\u0131z\u0131 yenileyin", + "description": "C\xfczdan\u0131n\u0131z\u0131 kurduktan sonra, taray\u0131c\u0131y\u0131 yenilemek ve eklentiyi y\xfcklemek i\xe7in a\u015Fa\u011F\u0131ya t\u0131klay\u0131n." + } + } + }, + "phantom": { + "extension": { + "step1": { + "title": "Phantom eklentisini y\xfckleyin", + "description": "C\xfczdan\u0131n\u0131za daha kolay eri\u015Fim sa\u011Flamak i\xe7in Phantom'u g\xf6rev \xe7ubu\u011Funuza sabitlemenizi \xf6neririz." + }, + "step2": { + "title": "Bir C\xfczdan Olu\u015Fturun veya \u0130\xe7e Aktar\u0131n", + "description": "C\xfczdan\u0131n\u0131z\u0131 g\xfcvenli bir y\xf6ntem kullanarak yedekledi\u011Finizden emin olun. Gizli kurtarma ifadenizi kimseyle payla\u015Fmay\u0131n." + }, + "step3": { + "title": "Taray\u0131c\u0131n\u0131z\u0131 yenileyin", + "description": "C\xfczdan\u0131n\u0131z\u0131 ayarlad\u0131ktan sonra, taray\u0131c\u0131y\u0131 yenilemek ve eklentiyi y\xfcklemek i\xe7in a\u015Fa\u011F\u0131ya t\u0131klay\u0131n." + } + } + }, + "rabby": { + "extension": { + "step1": { + "title": "Rabby eklentisini y\xfckleyin", + "description": "C\xfczdan\u0131n\u0131za daha h\u0131zl\u0131 eri\u015Fim i\xe7in Rabby'yi g\xf6rev \xe7ubu\u011Funuza sabitlemenizi \xf6neririz." + }, + "step2": { + "title": "C\xfczdan Olu\u015Ftur veya \u0130\xe7e Aktar", + "description": "C\xfczdan\u0131n\u0131z\u0131 g\xfcvenli bir y\xf6ntemle yedekledi\u011Finizden emin olun. Gizli ifadenizi asla ba\u015Fkalar\u0131yla payla\u015Fmay\u0131n." + }, + "step3": { + "title": "Taray\u0131c\u0131n\u0131z\u0131 yenileyin", + "description": "C\xfczdan\u0131n\u0131z\u0131 kurduktan sonra, taray\u0131c\u0131y\u0131 yenilemek ve eklentiyi y\xfcklemek i\xe7in a\u015Fa\u011F\u0131daki d\xfc\u011Fmeye t\u0131klay\u0131n." + } + } + }, + "ronin": { + "qr_code": { + "step1": { + "description": "C\xfczdan\u0131n\u0131za daha h\u0131zl\u0131 eri\u015Fim i\xe7in Ronin C\xfczdan\u0131n\u0131 ana ekran\u0131n\u0131za koymay\u0131 \xf6neririz.", + "title": "Ronin C\xfczdan uygulamas\u0131n\u0131 a\xe7\u0131n" + }, + "step2": { + "description": "C\xfczdan\u0131n\u0131z\u0131 g\xfcvenli bir y\xf6ntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle payla\u015Fmay\u0131n.", + "title": "C\xfczdan Olu\u015Ftur veya C\xfczdan\u0131 \u0130\xe7e Aktar" + }, + "step3": { + "description": "Tarad\u0131ktan sonra, c\xfczdan\u0131n\u0131z\u0131 ba\u011Flamak i\xe7in bir ba\u011Flant\u0131 istemi g\xf6r\xfcnecektir.", + "title": "Taray\u0131c\u0131 d\xfc\u011Fmesine dokunun" + } + }, + "extension": { + "step1": { + "description": "C\xfczdan\u0131n\u0131za daha h\u0131zl\u0131 eri\u015Fim i\xe7in Ronin C\xfczdan\u0131n\u0131 g\xf6rev \xe7ubu\u011Funuza sabitlemenizi \xf6neririz.", + "title": "Ronin C\xfczdan eklentisini y\xfckleyin" + }, + "step2": { + "description": "C\xfczdan\u0131n\u0131z\u0131 g\xfcvenli bir y\xf6ntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle payla\u015Fmay\u0131n.", + "title": "C\xfczdan Olu\u015Ftur veya C\xfczdan\u0131 \u0130\xe7e Aktar" + }, + "step3": { + "description": "C\xfczdan\u0131n\u0131z\u0131 kurduktan sonra, a\u015Fa\u011F\u0131ya t\u0131klay\u0131n ve taray\u0131c\u0131y\u0131 yenileyin ve eklentiyi y\xfckleyin.", + "title": "Taray\u0131c\u0131n\u0131z\u0131 yenileyin" + } + } + }, + "ramper": { + "extension": { + "step1": { + "title": "Ramper eklentisini y\xfckleyin", + "description": "C\xfczdan\u0131n\u0131za daha kolay eri\u015Fim i\xe7in Ramper'\u0131 g\xf6rev \xe7ubu\u011Funuza sabitlemenizi \xf6neririz." + }, + "step2": { + "title": "Bir C\xfczdan Olu\u015Fturun", + "description": "C\xfczdan\u0131n\u0131z\u0131 g\xfcvenli bir y\xf6ntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle payla\u015Fmay\u0131n." + }, + "step3": { + "title": "Taray\u0131c\u0131n\u0131z\u0131 yenileyin", + "description": "C\xfczdan\u0131n\u0131z\u0131 kurduktan sonra, a\u015Fa\u011F\u0131ya t\u0131klay\u0131n ve taray\u0131c\u0131y\u0131 yenileyin ve eklentiyi y\xfckleyin." + } + } + }, + "safeheron": { + "extension": { + "step1": { + "title": "Core eklentisini y\xfckleyin", + "description": "C\xfczdan\u0131n\u0131za daha h\u0131zl\u0131 eri\u015Fim i\xe7in Safeheron'u g\xf6rev \xe7ubu\u011Funuza sabitlemenizi \xf6neririz." + }, + "step2": { + "title": "C\xfczdan Olu\u015Ftur veya \u0130\xe7e Aktar", + "description": "C\xfczdan\u0131n\u0131z\u0131 g\xfcvenli bir y\xf6ntemle yedekledi\u011Finizden emin olun. Gizli ifadenizi hi\xe7 kimseyle payla\u015Fmay\u0131n." + }, + "step3": { + "title": "Taray\u0131c\u0131n\u0131z\u0131 yenileyin", + "description": "C\xfczdan\u0131n\u0131z\u0131 ayarlad\u0131ktan sonra, taray\u0131c\u0131y\u0131 yenilemek ve eklentiyi y\xfcklemek i\xe7in a\u015Fa\u011F\u0131ya t\u0131klay\u0131n." + } + } + }, + "taho": { + "extension": { + "step1": { + "title": "Taho uzant\u0131s\u0131n\u0131 y\xfckleyin", + "description": "C\xfczdan\u0131n\u0131za daha h\u0131zl\u0131 eri\u015Fim i\xe7in Taho'yu g\xf6rev \xe7ubu\u011Funuza sabitlemenizi \xf6neririz." + }, + "step2": { + "title": "Bir C\xfczdan Olu\u015Fturun veya \u0130\xe7e Aktar\u0131n", + "description": "C\xfczdan\u0131n\u0131z\u0131 g\xfcvenli bir y\xf6ntemle yedekledi\u011Finizden emin olun. Gizli ifadenizi hi\xe7 kimseyle payla\u015Fmay\u0131n." + }, + "step3": { + "title": "Taray\u0131c\u0131n\u0131z\u0131 yenileyin", + "description": "C\xfczdan\u0131n\u0131z\u0131 ayarlad\u0131ktan sonra, taray\u0131c\u0131y\u0131 yenilemek ve eklentiyi y\xfcklemek i\xe7in a\u015Fa\u011F\u0131ya t\u0131klay\u0131n." + } + } + }, + "talisman": { + "extension": { + "step1": { + "title": "Talisman eklentisini y\xfckleyin", + "description": "C\xfczdan\u0131n\u0131za daha h\u0131zl\u0131 eri\u015Fim i\xe7in Talisman'\u0131 g\xf6rev \xe7ubu\u011Funuza sabitlemenizi \xf6neririz." + }, + "step2": { + "title": "Ethereum C\xfczdan\u0131 Olu\u015Fturun veya \u0130\xe7e Aktar\u0131n", + "description": "C\xfczdan\u0131n\u0131z\u0131 g\xfcvenli bir y\xf6ntemle yedekledi\u011Finizden emin olun. Kurtarma ifadenizi hi\xe7 kimseyle payla\u015Fmay\u0131n." + }, + "step3": { + "title": "Taray\u0131c\u0131n\u0131z\u0131 yenileyin", + "description": "C\xfczdan\u0131n\u0131z\u0131 ayarlad\u0131ktan sonra, taray\u0131c\u0131y\u0131 yenilemek ve eklentiyi y\xfcklemek i\xe7in a\u015Fa\u011F\u0131ya t\u0131klay\u0131n." + } + } + }, + "xdefi": { + "extension": { + "step1": { + "title": "XDEFI C\xfczdan eklentisini y\xfckleyin", + "description": "C\xfczdan\u0131n\u0131za daha h\u0131zl\u0131 eri\u015Fim i\xe7in XDEFI Wallet'\u0131 g\xf6rev \xe7ubu\u011Funuza sabitlemenizi \xf6neririz." + }, + "step2": { + "title": "Bir C\xfczdan Olu\u015Fturun veya \u0130\xe7e Aktar\u0131n", + "description": "C\xfczdan\u0131n\u0131z\u0131 g\xfcvenli bir y\xf6ntemle yedekledi\u011Finizden emin olun. Gizli ifadenizi hi\xe7 kimseyle payla\u015Fmay\u0131n." + }, + "step3": { + "title": "Taray\u0131c\u0131n\u0131z\u0131 yenileyin", + "description": "C\xfczdan\u0131n\u0131z\u0131 ayarlad\u0131ktan sonra, taray\u0131c\u0131y\u0131 yenilemek ve eklentiyi y\xfcklemek i\xe7in a\u015Fa\u011F\u0131ya t\u0131klay\u0131n." + } + } + }, + "zeal": { + "extension": { + "step1": { + "title": "Zeal eklentisini y\xfckleyin", + "description": "C\xfczdan\u0131n\u0131za daha h\u0131zl\u0131 eri\u015Fim i\xe7in Zeal'\u0131 g\xf6rev \xe7ubu\u011Funuza sabitlemenizi \xf6neririz." + }, + "step2": { + "title": "C\xfczdan Olu\u015Ftur veya C\xfczdan\u0131 \u0130\xe7e Aktar", + "description": "C\xfczdan\u0131n\u0131z\u0131 g\xfcvenli bir y\xf6ntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle payla\u015Fmay\u0131n." + }, + "step3": { + "title": "Taray\u0131c\u0131n\u0131z\u0131 yenileyin", + "description": "C\xfczdan\u0131n\u0131z\u0131 kurduktan sonra, a\u015Fa\u011F\u0131ya t\u0131klay\u0131n ve taray\u0131c\u0131y\u0131 yenileyin ve eklentiyi y\xfckleyin." + } + } + }, + "safepal": { + "extension": { + "step1": { + "title": "SafePal Wallet eklentisini y\xfckleyin", + "description": "Taray\u0131c\u0131n\u0131z\u0131n sa\u011F \xfcst k\xf6\u015Fesine t\u0131klay\u0131n ve kolay eri\u015Fim i\xe7in SafePal Wallet'\u0131 sabitleyin." + }, + "step2": { + "title": "Bir c\xfczdan olu\u015Fturun veya i\xe7e aktar\u0131n", + "description": "Yeni bir c\xfczdan olu\u015Fturun veya mevcut birini i\xe7e aktar\u0131n." + }, + "step3": { + "title": "Taray\u0131c\u0131n\u0131z\u0131 yenileyin", + "description": "SafePal C\xfczdan'\u0131 kurduktan sonra, taray\u0131c\u0131y\u0131 yenilemek ve eklentiyi y\xfcklemek i\xe7in a\u015Fa\u011F\u0131ya t\u0131klay\u0131n." + } + }, + "qr_code": { + "step1": { + "title": "SafePal C\xfczdan uygulamas\u0131n\u0131 a\xe7\u0131n", + "description": "SafePal C\xfczdan'\u0131 ana ekran\u0131n\u0131za koyun, c\xfczdan\u0131n\u0131za daha h\u0131zl\u0131 eri\u015Fim i\xe7in." + }, + "step2": { + "title": "C\xfczdan Olu\u015Ftur veya C\xfczdan\u0131 \u0130\xe7e Aktar", + "description": "Yeni bir c\xfczdan olu\u015Fturun veya mevcut birini i\xe7e aktar\u0131n." + }, + "step3": { + "title": "Ayarlar'da WalletConnect'e dokunun", + "description": "Yeni Ba\u011Flant\u0131'y\u0131 se\xe7in, ard\u0131ndan QR kodunu taray\u0131n ve ba\u011Flant\u0131y\u0131 onaylamak i\xe7in istemi onaylay\u0131n." + } + } + }, + "desig": { + "extension": { + "step1": { + "title": "Desig eklentisini y\xfckleyin", + "description": "C\xfczdan\u0131n\u0131za daha kolay eri\u015Fim sa\u011Flamak i\xe7in Desig'i g\xf6rev \xe7ubu\u011Funuza sabitlemenizi \xf6neririz." + }, + "step2": { + "title": "Bir C\xfczdan Olu\u015Fturun", + "description": "C\xfczdan\u0131n\u0131z\u0131 g\xfcvenli bir y\xf6ntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle payla\u015Fmay\u0131n." + }, + "step3": { + "title": "Taray\u0131c\u0131n\u0131z\u0131 yenileyin", + "description": "C\xfczdan\u0131n\u0131z\u0131 kurduktan sonra, a\u015Fa\u011F\u0131ya t\u0131klay\u0131n ve taray\u0131c\u0131y\u0131 yenileyin ve eklentiyi y\xfckleyin." + } + } + }, + "subwallet": { + "extension": { + "step1": { + "title": "SubWallet eklentisini y\xfckleyin", + "description": "C\xfczdan\u0131n\u0131za daha h\u0131zl\u0131 eri\u015Fim i\xe7in SubWallet'\u0131 g\xf6rev \xe7ubu\u011Funuza sabitlemenizi \xf6neririz." + }, + "step2": { + "title": "C\xfczdan Olu\u015Ftur veya C\xfczdan\u0131 \u0130\xe7e Aktar", + "description": "C\xfczdan\u0131n\u0131z\u0131 g\xfcvenli bir y\xf6ntemle yedekledi\u011Finizden emin olun. Kurtarma ifadenizi hi\xe7 kimseyle payla\u015Fmay\u0131n." + }, + "step3": { + "title": "Taray\u0131c\u0131n\u0131z\u0131 yenileyin", + "description": "C\xfczdan\u0131n\u0131z\u0131 kurduktan sonra, a\u015Fa\u011F\u0131ya t\u0131klay\u0131n ve taray\u0131c\u0131y\u0131 yenileyin ve eklentiyi y\xfckleyin." + } + }, + "qr_code": { + "step1": { + "title": "SubWallet uygulamas\u0131n\u0131 a\xe7\u0131n", + "description": "Daha h\u0131zl\u0131 eri\u015Fim i\xe7in SubWallet'\u0131 ana ekran\u0131n\u0131za koymenizi \xf6neririz." + }, + "step2": { + "title": "C\xfczdan Olu\u015Ftur veya C\xfczdan\u0131 \u0130\xe7e Aktar", + "description": "C\xfczdan\u0131n\u0131z\u0131 g\xfcvenli bir y\xf6ntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle payla\u015Fmay\u0131n." + }, + "step3": { + "title": "Taray\u0131c\u0131 d\xfc\u011Fmesine dokunun", + "description": "Tarad\u0131ktan sonra, c\xfczdan\u0131n\u0131z\u0131 ba\u011Flamak i\xe7in bir ba\u011Flant\u0131 istemi g\xf6r\xfcnecektir." + } + } + }, + "clv": { + "extension": { + "step1": { + "title": "CLV C\xfczdan\u0131 eklentisini y\xfckleyin", + "description": "C\xfczdan\u0131n\u0131za daha h\u0131zl\u0131 eri\u015Fim i\xe7in CLV C\xfczdan\u0131n\u0131 g\xf6rev \xe7ubu\u011Funuza sabitlemenizi \xf6neririz." + }, + "step2": { + "title": "C\xfczdan Olu\u015Ftur veya C\xfczdan\u0131 \u0130\xe7e Aktar", + "description": "C\xfczdan\u0131n\u0131z\u0131 g\xfcvenli bir y\xf6ntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle payla\u015Fmay\u0131n." + }, + "step3": { + "title": "Taray\u0131c\u0131n\u0131z\u0131 yenileyin", + "description": "C\xfczdan\u0131n\u0131z\u0131 kurduktan sonra, a\u015Fa\u011F\u0131ya t\u0131klay\u0131n ve taray\u0131c\u0131y\u0131 yenileyin ve eklentiyi y\xfckleyin." + } + }, + "qr_code": { + "step1": { + "title": "CLV C\xfczdan uygulamas\u0131n\u0131 a\xe7\u0131n", + "description": "Daha h\u0131zl\u0131 eri\u015Fim i\xe7in CLV C\xfczdan\u0131n\u0131 ana ekran\u0131n\u0131za koyman\u0131z\u0131 \xf6neririz." + }, + "step2": { + "title": "C\xfczdan Olu\u015Ftur veya C\xfczdan\u0131 \u0130\xe7e Aktar", + "description": "C\xfczdan\u0131n\u0131z\u0131 g\xfcvenli bir y\xf6ntemle yedeklemeye emin olun. Gizli ifadenizi asla kimseyle payla\u015Fmay\u0131n." + }, + "step3": { + "title": "Taray\u0131c\u0131 d\xfc\u011Fmesine dokunun", + "description": "Tarad\u0131ktan sonra, c\xfczdan\u0131n\u0131z\u0131 ba\u011Flamak i\xe7in bir ba\u011Flant\u0131 istemi g\xf6r\xfcnecektir." + } + } + }, + "okto": { + "qr_code": { + "step1": { + "title": "Okto uygulamas\u0131n\u0131 a\xe7\u0131n", + "description": "H\u0131zl\u0131 eri\u015Fim i\xe7in Okto'yu ana ekran\u0131n\u0131za ekleyin" + }, + "step2": { + "title": "MPC C\xfczdan\u0131 olu\u015Fturun", + "description": "Bir hesap olu\u015Fturun ve bir c\xfczdan olu\u015Fturun" + }, + "step3": { + "title": "Ayarlar'da WalletConnect'e dokunun", + "description": "Sa\u011F \xfcstteki Tarama QR simgesine dokunun ve ba\u011Flanmak i\xe7in istemi onaylay\u0131n." + } + } + }, + "ledger": { + "desktop": { + "step1": { + "title": "Ledger Live uygulamas\u0131n\u0131 a\xe7\u0131n", + "description": "Daha h\u0131zl\u0131 eri\u015Fim i\xe7in Ledger Live'\u0131 ana ekran\u0131n\u0131za koyman\u0131z\u0131 \xf6neririz." + }, + "step2": { + "title": "Ledger'\u0131n\u0131z\u0131 kurun", + "description": "Yeni bir Ledger kurun veya mevcut birine ba\u011Flan\u0131n." + }, + "step3": { + "title": "Ba\u011Flan", + "description": "C\xfczdan\u0131n\u0131z\u0131 ba\u011Flamak i\xe7in bir ba\u011Flant\u0131 istemi belirecektir." + } + }, + "qr_code": { + "step1": { + "title": "Ledger Live uygulamas\u0131n\u0131 a\xe7\u0131n", + "description": "Daha h\u0131zl\u0131 eri\u015Fim i\xe7in Ledger Live'\u0131 ana ekran\u0131n\u0131za koyman\u0131z\u0131 \xf6neririz." + }, + "step2": { + "title": "Ledger'\u0131n\u0131z\u0131 kurun", + "description": "Masa\xfcst\xfc uygulama ile senkronize olabilir veya Ledger'\u0131n\u0131z\u0131 ba\u011Flayabilirsiniz." + }, + "step3": { + "title": "Kodu taray\u0131n", + "description": "WalletConnect'e dokunun ve ard\u0131ndan Taray\u0131c\u0131'ya ge\xe7in. Taramadan sonra, c\xfczdan\u0131n\u0131z\u0131 ba\u011Flamak i\xe7in bir ba\u011Flant\u0131 istemi belirecektir." + } + } + } + } +} +`}}]); \ No newline at end of file diff --git a/_next/static/chunks/6060.8d33816111284aef.js b/_next/static/chunks/6060.8d33816111284aef.js new file mode 100644 index 0000000..e1f4f92 --- /dev/null +++ b/_next/static/chunks/6060.8d33816111284aef.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6060],{76060:function(t,e,a){a.r(e),a.d(e,{default:function(){return s}});var s='data:image/svg+xml,'}}]); \ No newline at end of file diff --git a/_next/static/chunks/6314-7170427719c42432.js b/_next/static/chunks/6314-7170427719c42432.js new file mode 100644 index 0000000..beb8988 --- /dev/null +++ b/_next/static/chunks/6314-7170427719c42432.js @@ -0,0 +1,25 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6314],{46547:function(t,r){"use strict";function getDeploymentIdQueryOrEmptyString(){return""}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getDeploymentIdQueryOrEmptyString",{enumerable:!0,get:function(){return getDeploymentIdQueryOrEmptyString}})},56697:function(){"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var t=/\((.*)\)/.exec(this.toString());return t?t[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(t,r){return r=this.concat.apply([],this),t>1&&r.some(Array.isArray)?r.flat(t-1):r},Array.prototype.flatMap=function(t,r){return this.map(t,r).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(t){if("function"!=typeof t)return this.then(t,t);var r=this.constructor||Promise;return this.then(function(n){return r.resolve(t()).then(function(){return n})},function(n){return r.resolve(t()).then(function(){throw n})})}),Object.fromEntries||(Object.fromEntries=function(t){return Array.from(t).reduce(function(t,r){return t[r[0]]=r[1],t},{})}),Array.prototype.at||(Array.prototype.at=function(t){var r=Math.trunc(t)||0;if(r<0&&(r+=this.length),!(r<0||r>=this.length))return this[r]})},44164:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"addBasePath",{enumerable:!0,get:function(){return addBasePath}});let o=n(45218),a=n(80084);function addBasePath(t,r){return(0,a.normalizePathTrailingSlash)((0,o.addPathPrefix)(t,""))}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},20319:function(t,r){"use strict";function loadScriptsInSequence(t,r){return t&&t.length?t.reduce((t,r)=>{let[n,o]=r;return t.then(()=>new Promise((t,r)=>{let a=document.createElement("script");if(o)for(let t in o)"children"!==t&&a.setAttribute(t,o[t]);n?(a.src=n,a.onload=()=>t(),a.onerror=r):o&&(a.innerHTML=o.children,setTimeout(t)),document.head.appendChild(a)}))},Promise.resolve()).catch(t=>{console.error(t)}).then(()=>{r()}):r()}function appBootstrap(t){loadScriptsInSequence(self.__next_s,()=>{t()})}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"appBootstrap",{enumerable:!0,get:function(){return appBootstrap}}),window.next={version:"14.0.1",appDir:!0},("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},2897:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"callServer",{enumerable:!0,get:function(){return callServer}});let o=n(4626);async function callServer(t,r){let n=(0,o.getServerActionDispatcher)();if(!n)throw Error("Invariant: missing action dispatcher.");return new Promise((o,a)=>{n({actionId:t,actionArgs:r,resolve:o,reject:a})})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},67878:function(t,r,n){"use strict";let o,a;Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"hydrate",{enumerable:!0,get:function(){return hydrate}});let u=n(97295),i=n(3589);n(56697);let s=u._(n(91910)),d=i._(n(94488)),p=n(35861),_=n(13221);n(30786);let m=u._(n(88304)),b=n(2897),j=n(98591),C=window.console.error;window.console.error=function(){for(var t=arguments.length,r=Array(t),n=0;n{if((0,j.isNextRouterError)(t.error)){t.preventDefault();return}});let w=document,getCacheKey=()=>{let{pathname:t,search:r}=location;return t+r},D=new TextEncoder,U=!1,B=!1,$=null;function nextServerDataCallback(t){if(0===t[0])o=[];else if(1===t[0]){if(!o)throw Error("Unexpected server data: missing bootstrap script.");a?a.enqueue(D.encode(t[1])):o.push(t[1])}else 2===t[0]&&($=t[1])}function nextServerDataRegisterWriter(t){o&&(o.forEach(r=>{t.enqueue(D.encode(r))}),U&&!B&&(t.close(),B=!0,o=void 0)),a=t}let DOMContentLoaded=function(){a&&!B&&(a.close(),B=!0,o=void 0),U=!0};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",DOMContentLoaded,!1):DOMContentLoaded();let K=self.__next_f=self.__next_f||[];function createResponseCache(){return new Map}K.forEach(nextServerDataCallback),K.push=nextServerDataCallback;let q=createResponseCache();function useInitialServerResponse(t){let r=q.get(t);if(r)return r;let n=new ReadableStream({start(t){nextServerDataRegisterWriter(t)}}),o=(0,p.createFromReadableStream)(n,{callServer:b.callServer});return q.set(t,o),o}function ServerRoot(t){let{cacheKey:r}=t;d.default.useEffect(()=>{q.delete(r)});let n=useInitialServerResponse(r),o=(0,d.use)(n);return o}let ee=d.default.StrictMode;function Root(t){let{children:r}=t;return r}function RSCComponent(t){return d.default.createElement(ServerRoot,{...t,cacheKey:getCacheKey()})}function hydrate(){let t=d.default.createElement(ee,null,d.default.createElement(_.HeadManagerContext.Provider,{value:{appDir:!0}},d.default.createElement(Root,null,d.default.createElement(RSCComponent,null)))),r={onRecoverableError:m.default},n="__next_error__"===document.documentElement.id;n?s.default.createRoot(w,r).render(t):d.default.startTransition(()=>s.default.hydrateRoot(w,t,{...r,formState:$}))}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},88064:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0});let o=n(20319);(0,o.appBootstrap)(()=>{n(30657);let{hydrate:t}=n(67878);n(4626),n(10276),t()}),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},30657:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),n(46547);{let t=n.u;n.u=function(){for(var r=arguments.length,n=Array(r),o=0;o{let t=getAnnouncerNode();return i(t),()=>{let t=document.getElementsByTagName(u)[0];(null==t?void 0:t.isConnected)&&document.body.removeChild(t)}},[]);let[s,d]=(0,o.useState)(""),p=(0,o.useRef)();return(0,o.useEffect)(()=>{let t="";if(document.title)t=document.title;else{let r=document.querySelector("h1");r&&(t=r.innerText||r.textContent||"")}void 0!==p.current&&p.current!==t&&d(t),p.current=t},[r]),n?(0,a.createPortal)(s,n):null}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},9639:function(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(t,r){for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]})}(r,{RSC:function(){return n},ACTION:function(){return o},NEXT_ROUTER_STATE_TREE:function(){return a},NEXT_ROUTER_PREFETCH:function(){return u},NEXT_URL:function(){return i},RSC_CONTENT_TYPE_HEADER:function(){return s},RSC_VARY_HEADER:function(){return d},FLIGHT_PARAMETERS:function(){return p},NEXT_RSC_UNION_QUERY:function(){return _}});let n="RSC",o="Next-Action",a="Next-Router-State-Tree",u="Next-Router-Prefetch",i="Next-Url",s="text/x-component",d=n+", "+a+", "+u+", "+i,p=[[n],[a],[u]],_="_rsc";("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},4626:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(t,r){for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]})}(r,{getServerActionDispatcher:function(){return getServerActionDispatcher},urlToUrlWithoutFlightMarker:function(){return urlToUrlWithoutFlightMarker},default:function(){return AppRouter}});let o=n(3589),a=o._(n(94488)),u=n(30786),i=n(87902),s=n(76161),d=n(14482),p=n(89386),_=n(57621),m=n(53097),b=n(54650),j=n(75924),C=n(44164),w=n(56368),D=n(61167),U=n(37925),B=n(94302),$=n(9639),K=n(64813),q=n(50525),ee=new Map,et=null;function getServerActionDispatcher(){return et}let er={refresh:()=>{}};function urlToUrlWithoutFlightMarker(t){let r=new URL(t,location.origin);if(r.searchParams.delete($.NEXT_RSC_UNION_QUERY),r.pathname.endsWith(".txt")){let{pathname:t}=r,n=t.endsWith("/index.txt")?10:4;r.pathname=t.slice(0,-n)}return r}function isExternalURL(t){return t.origin!==window.location.origin}function HistoryUpdater(t){let{tree:r,pushRef:n,canonicalUrl:o,sync:u}=t;return(0,a.useInsertionEffect)(()=>{let t={__NA:!0,tree:r};n.pendingPush&&(0,d.createHrefFromUrl)(new URL(window.location.href))!==o?(n.pendingPush=!1,window.history.pushState(t,"",o)):window.history.replaceState(t,"",o),u()},[r,n,o,u]),null}let createEmptyCacheNode=()=>({status:u.CacheStates.LAZY_INITIALIZED,data:null,subTreeData:null,parallelRoutes:new Map});function useServerActionDispatcher(t){let r=(0,a.useCallback)(r=>{(0,a.startTransition)(()=>{t({...r,type:s.ACTION_SERVER_ACTION,mutable:{globalMutable:er},cache:createEmptyCacheNode()})})},[t]);et=r}function useChangeByServerResponse(t){return(0,a.useCallback)((r,n,o)=>{(0,a.startTransition)(()=>{t({type:s.ACTION_SERVER_PATCH,flightData:n,previousTree:r,overrideCanonicalUrl:o,cache:createEmptyCacheNode(),mutable:{globalMutable:er}})})},[t])}function useNavigate(t){return(0,a.useCallback)((r,n,o,a)=>{let u=new URL((0,C.addBasePath)(r),location.href);return er.pendingNavigatePath=(0,d.createHrefFromUrl)(u),t({type:s.ACTION_NAVIGATE,url:u,isExternalUrl:isExternalURL(u),locationSearch:location.search,forceOptimisticNavigation:o,shouldScroll:null==a||a,navigateType:n,cache:createEmptyCacheNode(),mutable:{globalMutable:er}})},[t])}function Router(t){let{buildId:r,initialHead:n,initialTree:o,initialCanonicalUrl:d,children:m,assetPrefix:$}=t,et=(0,a.useMemo)(()=>(0,b.createInitialRouterState)({buildId:r,children:m,initialCanonicalUrl:d,initialTree:o,initialParallelRoutes:ee,isServer:!1,location:window.location,initialHead:n}),[r,m,d,o,n]),[{tree:en,cache:eo,prefetchCache:eu,pushRef:el,focusAndScrollRef:ei,canonicalUrl:ec,nextUrl:es},ef,ed]=(0,_.useReducerWithReduxDevtools)(i.reducer,et);(0,a.useEffect)(()=>{ee=null},[]);let{searchParams:ep,pathname:eh}=(0,a.useMemo)(()=>{let t=new URL(ec,window.location.href);return{searchParams:t.searchParams,pathname:(0,q.hasBasePath)(t.pathname)?(0,K.removeBasePath)(t.pathname):t.pathname}},[ec]),e_=useChangeByServerResponse(ef),ey=useNavigate(ef);useServerActionDispatcher(ef);let em=(0,a.useMemo)(()=>{let t={back:()=>window.history.back(),forward:()=>window.history.forward(),prefetch:(t,r)=>{if((0,j.isBot)(window.navigator.userAgent))return;let n=new URL((0,C.addBasePath)(t),location.href);isExternalURL(n)||(0,a.startTransition)(()=>{var t;ef({type:s.ACTION_PREFETCH,url:n,kind:null!=(t=null==r?void 0:r.kind)?t:s.PrefetchKind.FULL})})},replace:(t,r)=>{void 0===r&&(r={}),(0,a.startTransition)(()=>{var n;ey(t,"replace",!!r.forceOptimisticNavigation,null==(n=r.scroll)||n)})},push:(t,r)=>{void 0===r&&(r={}),(0,a.startTransition)(()=>{var n;ey(t,"push",!!r.forceOptimisticNavigation,null==(n=r.scroll)||n)})},refresh:()=>{(0,a.startTransition)(()=>{ef({type:s.ACTION_REFRESH,cache:createEmptyCacheNode(),mutable:{globalMutable:er},origin:window.location.origin})})},fastRefresh:()=>{throw Error("fastRefresh can only be used in development mode. Please use refresh instead.")}};return t},[ef,ey]);if((0,a.useEffect)(()=>{window.next&&(window.next.router=em)},[em]),(0,a.useEffect)(()=>{er.refresh=em.refresh},[em.refresh]),(0,a.useEffect)(()=>{function handlePageShow(t){var r;t.persisted&&(null==(r=window.history.state)?void 0:r.tree)&&ef({type:s.ACTION_RESTORE,url:new URL(window.location.href),tree:window.history.state.tree})}return window.addEventListener("pageshow",handlePageShow),()=>{window.removeEventListener("pageshow",handlePageShow)}},[ef]),el.mpaNavigation){if(er.pendingMpaPath!==ec){let t=window.location;el.pendingPush?t.assign(ec):t.replace(ec),er.pendingMpaPath=ec}(0,a.use)((0,B.createInfinitePromise)())}let eg=(0,a.useCallback)(t=>{let{state:r}=t;if(r){if(!r.__NA){window.location.reload();return}(0,a.startTransition)(()=>{ef({type:s.ACTION_RESTORE,url:new URL(window.location.href),tree:r.tree})})}},[ef]);(0,a.useEffect)(()=>(window.addEventListener("popstate",eg),()=>{window.removeEventListener("popstate",eg)}),[eg]);let eb=(0,a.useMemo)(()=>(0,U.findHeadInCache)(eo,en[1]),[eo,en]),ev=a.default.createElement(D.RedirectBoundary,null,eb,eo.subTreeData,a.default.createElement(w.AppRouterAnnouncer,{tree:en}));return a.default.createElement(a.default.Fragment,null,a.default.createElement(HistoryUpdater,{tree:en,pushRef:el,canonicalUrl:ec,sync:ed}),a.default.createElement(p.PathnameContext.Provider,{value:eh},a.default.createElement(p.SearchParamsContext.Provider,{value:ep},a.default.createElement(u.GlobalLayoutRouterContext.Provider,{value:{buildId:r,changeByServerResponse:e_,tree:en,focusAndScrollRef:ei,nextUrl:es}},a.default.createElement(u.AppRouterContext.Provider,{value:em},a.default.createElement(u.LayoutRouterContext.Provider,{value:{childNodes:eo.parallelRoutes,tree:en,url:ec}},ev))))))}function AppRouter(t){let{globalErrorComponent:r,...n}=t;return a.default.createElement(m.ErrorBoundary,{errorComponent:r},a.default.createElement(Router,n))}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},78468:function(t,r,n){"use strict";function clientHookInServerComponentError(t){}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"clientHookInServerComponentError",{enumerable:!0,get:function(){return clientHookInServerComponentError}}),n(97295),n(94488),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},53097:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(t,r){for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]})}(r,{ErrorBoundaryHandler:function(){return ErrorBoundaryHandler},GlobalError:function(){return GlobalError},default:function(){return s},ErrorBoundary:function(){return ErrorBoundary}});let o=n(97295),a=o._(n(94488)),u=n(21149),i={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},text:{fontSize:"14px",fontWeight:400,lineHeight:"28px",margin:"0 8px"}};function HandleISRError(t){let{error:r}=t;if("function"==typeof fetch.__nextGetStaticStore){var n;let t=null==(n=fetch.__nextGetStaticStore())?void 0:n.getStore();if((null==t?void 0:t.isRevalidate)||(null==t?void 0:t.isStaticGeneration))throw console.error(r),r}return null}let ErrorBoundaryHandler=class ErrorBoundaryHandler extends a.default.Component{static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return t.pathname!==r.previousPathname&&r.error?{error:null,previousPathname:t.pathname}:{error:r.error,previousPathname:t.pathname}}render(){return this.state.error?a.default.createElement(a.default.Fragment,null,a.default.createElement(HandleISRError,{error:this.state.error}),this.props.errorStyles,this.props.errorScripts,a.default.createElement(this.props.errorComponent,{error:this.state.error,reset:this.reset})):this.props.children}constructor(t){super(t),this.reset=()=>{this.setState({error:null})},this.state={error:null,previousPathname:this.props.pathname}}};function GlobalError(t){let{error:r}=t,n=null==r?void 0:r.digest;return a.default.createElement("html",{id:"__next_error__"},a.default.createElement("head",null),a.default.createElement("body",null,a.default.createElement(HandleISRError,{error:r}),a.default.createElement("div",{style:i.error},a.default.createElement("div",null,a.default.createElement("h2",{style:i.text},"Application error: a "+(n?"server":"client")+"-side exception has occurred (see the "+(n?"server logs":"browser console")+" for more information)."),n?a.default.createElement("p",{style:i.text},"Digest: "+n):null))))}let s=GlobalError;function ErrorBoundary(t){let{errorComponent:r,errorStyles:n,errorScripts:o,children:i}=t,s=(0,u.usePathname)();return r?a.default.createElement(ErrorBoundaryHandler,{pathname:s,errorComponent:r,errorStyles:n,errorScripts:o},i):a.default.createElement(a.default.Fragment,null,i)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},68233:function(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(t,r){for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]})}(r,{DYNAMIC_ERROR_CODE:function(){return n},DynamicServerError:function(){return DynamicServerError}});let n="DYNAMIC_SERVER_USAGE";let DynamicServerError=class DynamicServerError extends Error{constructor(t){super("Dynamic server usage: "+t),this.digest=n}};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},94302:function(t,r){"use strict";let n;function createInfinitePromise(){return n||(n=new Promise(()=>{})),n}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createInfinitePromise",{enumerable:!0,get:function(){return createInfinitePromise}}),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},98591:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isNextRouterError",{enumerable:!0,get:function(){return isNextRouterError}});let o=n(32818),a=n(79633);function isNextRouterError(t){return t&&t.digest&&((0,a.isRedirectError)(t)||(0,o.isNotFoundError)(t))}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},10276:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return OuterLayoutRouter}});let o=n(97295),a=n(3589),u=a._(n(94488)),i=o._(n(1568)),s=n(30786),d=n(85590),p=n(94302),_=n(53097),m=n(92628),b=n(80019),j=n(61167),C=n(77749),w=n(41740),D=n(23556),U=n(85155);function walkAddRefetch(t,r){if(t){let[n,o]=t,a=2===t.length;if((0,m.matchSegment)(r[0],n)&&r[1].hasOwnProperty(o)){if(a){let t=walkAddRefetch(void 0,r[1][o]);return[r[0],{...r[1],[o]:[t[0],t[1],t[2],"refetch"]}]}return[r[0],{...r[1],[o]:walkAddRefetch(t.slice(2),r[1][o])}]}}return r}function findDOMNode(t){return i.default.findDOMNode(t)}let B=["bottom","height","left","right","top","width","x","y"];function shouldSkipElement(t){if(["sticky","fixed"].includes(getComputedStyle(t).position))return!0;let r=t.getBoundingClientRect();return B.every(t=>0===r[t])}function topOfElementInViewport(t,r){let n=t.getBoundingClientRect();return n.top>=0&&n.top<=r}function getHashFragmentDomNode(t){var r;return"top"===t?document.body:null!=(r=document.getElementById(t))?r:document.getElementsByName(t)[0]}let InnerScrollAndFocusHandler=class InnerScrollAndFocusHandler extends u.default.Component{componentDidMount(){this.handlePotentialScroll()}componentDidUpdate(){this.props.focusAndScrollRef.apply&&this.handlePotentialScroll()}render(){return this.props.children}constructor(...t){super(...t),this.handlePotentialScroll=()=>{let{focusAndScrollRef:t,segmentPath:r}=this.props;if(t.apply){if(0!==t.segmentPaths.length&&!t.segmentPaths.some(t=>r.every((r,n)=>(0,m.matchSegment)(r,t[n]))))return;let n=null,o=t.hashFragment;if(o&&(n=getHashFragmentDomNode(o)),n||(n=findDOMNode(this)),!(n instanceof Element))return;for(;!(n instanceof HTMLElement)||shouldSkipElement(n);){if(null===n.nextElementSibling)return;n=n.nextElementSibling}t.apply=!1,t.hashFragment=null,t.segmentPaths=[],(0,b.handleSmoothScroll)(()=>{if(o){n.scrollIntoView();return}let t=document.documentElement,r=t.clientHeight;!topOfElementInViewport(n,r)&&(t.scrollTop=0,topOfElementInViewport(n,r)||n.scrollIntoView())},{dontForceLayout:!0,onlyHashChange:t.onlyHashChange}),t.onlyHashChange=!1,n.focus()}}}};function ScrollAndFocusHandler(t){let{segmentPath:r,children:n}=t,o=(0,u.useContext)(s.GlobalLayoutRouterContext);if(!o)throw Error("invariant global layout router not mounted");return u.default.createElement(InnerScrollAndFocusHandler,{segmentPath:r,focusAndScrollRef:o.focusAndScrollRef},n)}function InnerLayoutRouter(t){let{parallelRouterKey:r,url:n,childNodes:o,childProp:a,segmentPath:i,tree:_,cacheKey:m}=t,b=(0,u.useContext)(s.GlobalLayoutRouterContext);if(!b)throw Error("invariant global layout router not mounted");let{buildId:j,changeByServerResponse:C,tree:w}=b,D=o.get(m);if(a&&null!==a.current&&(D?D.status===s.CacheStates.LAZY_INITIALIZED&&(D.status=s.CacheStates.READY,D.subTreeData=a.current):(D={status:s.CacheStates.READY,data:null,subTreeData:a.current,parallelRoutes:new Map},o.set(m,D))),!D||D.status===s.CacheStates.LAZY_INITIALIZED){let t=walkAddRefetch(["",...i],w);D={status:s.CacheStates.DATA_FETCH,data:(0,U.createRecordFromThenable)((0,d.fetchServerResponse)(new URL(n,location.origin),t,b.nextUrl,j)),subTreeData:null,head:D&&D.status===s.CacheStates.LAZY_INITIALIZED?D.head:void 0,parallelRoutes:D&&D.status===s.CacheStates.LAZY_INITIALIZED?D.parallelRoutes:new Map},o.set(m,D)}if(!D)throw Error("Child node should always exist");if(D.subTreeData&&D.data)throw Error("Child node should not have both subTreeData and data");if(D.data){let[t,r]=(0,u.use)(D.data);D.data=null,setTimeout(()=>{(0,u.startTransition)(()=>{C(w,t,r)})}),(0,u.use)((0,p.createInfinitePromise)())}D.subTreeData||(0,u.use)((0,p.createInfinitePromise)());let B=u.default.createElement(s.LayoutRouterContext.Provider,{value:{tree:_[1][r],childNodes:D.parallelRoutes,url:n}},D.subTreeData);return B}function LoadingBoundary(t){let{children:r,loading:n,loadingStyles:o,loadingScripts:a,hasLoading:i}=t;return i?u.default.createElement(u.Suspense,{fallback:u.default.createElement(u.default.Fragment,null,o,a,n)},r):u.default.createElement(u.default.Fragment,null,r)}function OuterLayoutRouter(t){let{parallelRouterKey:r,segmentPath:n,childProp:o,error:a,errorStyles:i,errorScripts:d,templateStyles:p,templateScripts:b,loading:U,loadingStyles:B,loadingScripts:$,hasLoading:K,template:q,notFound:ee,notFoundStyles:et,styles:er}=t,en=(0,u.useContext)(s.LayoutRouterContext);if(!en)throw Error("invariant expected layout router to be mounted");let{childNodes:eo,tree:eu,url:el}=en,ei=eo.get(r);ei||(ei=new Map,eo.set(r,ei));let ec=eu[1][r][0],es=o.segment,ef=(0,w.getSegmentValue)(ec),ed=[ec];return u.default.createElement(u.default.Fragment,null,er,ed.map(t=>{let er=(0,m.matchSegment)(t,es),en=(0,w.getSegmentValue)(t),eo=(0,D.createRouterCacheKey)(t);return u.default.createElement(s.TemplateContext.Provider,{key:(0,D.createRouterCacheKey)(t,!0),value:u.default.createElement(ScrollAndFocusHandler,{segmentPath:n},u.default.createElement(_.ErrorBoundary,{errorComponent:a,errorStyles:i,errorScripts:d},u.default.createElement(LoadingBoundary,{hasLoading:K,loading:U,loadingStyles:B,loadingScripts:$},u.default.createElement(C.NotFoundBoundary,{notFound:ee,notFoundStyles:et},u.default.createElement(j.RedirectBoundary,null,u.default.createElement(InnerLayoutRouter,{parallelRouterKey:r,url:el,tree:eu,childNodes:ei,childProp:er?o:null,segmentPath:n,cacheKey:eo,isActive:ef===en}))))))},p,b,q)}))}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},92628:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(t,r){for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]})}(r,{matchSegment:function(){return matchSegment},canSegmentBeOverridden:function(){return canSegmentBeOverridden}});let o=n(99634),matchSegment=(t,r)=>"string"==typeof t?"string"==typeof r&&t===r:"string"!=typeof r&&t[0]===r[0]&&t[1]===r[1],canSegmentBeOverridden=(t,r)=>{var n;return!Array.isArray(t)&&!!Array.isArray(r)&&(null==(n=(0,o.getSegmentParam)(t))?void 0:n.param)===r[0]};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},85456:function(t,r,n){"use strict";function maybePostpone(t,r){if(!t.isStaticGeneration||!t.experimental.ppr)return;let o=n(94488);"function"==typeof o.unstable_postpone&&o.unstable_postpone(r)}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"maybePostpone",{enumerable:!0,get:function(){return maybePostpone}}),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},21149:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(t,r){for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]})}(r,{ReadonlyURLSearchParams:function(){return ReadonlyURLSearchParams},useSearchParams:function(){return useSearchParams},usePathname:function(){return usePathname},ServerInsertedHTMLContext:function(){return d.ServerInsertedHTMLContext},useServerInsertedHTML:function(){return d.useServerInsertedHTML},useRouter:function(){return useRouter},useParams:function(){return useParams},useSelectedLayoutSegments:function(){return useSelectedLayoutSegments},useSelectedLayoutSegment:function(){return useSelectedLayoutSegment},redirect:function(){return p.redirect},permanentRedirect:function(){return p.permanentRedirect},RedirectType:function(){return p.RedirectType},notFound:function(){return _.notFound}});let o=n(94488),a=n(30786),u=n(89386),i=n(78468),s=n(41740),d=n(90111),p=n(79633),_=n(32818),m=Symbol("internal for urlsearchparams readonly");function readonlyURLSearchParamsError(){return Error("ReadonlyURLSearchParams cannot be modified")}let ReadonlyURLSearchParams=class ReadonlyURLSearchParams{[Symbol.iterator](){return this[m][Symbol.iterator]()}append(){throw readonlyURLSearchParamsError()}delete(){throw readonlyURLSearchParamsError()}set(){throw readonlyURLSearchParamsError()}sort(){throw readonlyURLSearchParamsError()}constructor(t){this[m]=t,this.entries=t.entries.bind(t),this.forEach=t.forEach.bind(t),this.get=t.get.bind(t),this.getAll=t.getAll.bind(t),this.has=t.has.bind(t),this.keys=t.keys.bind(t),this.values=t.values.bind(t),this.toString=t.toString.bind(t),this.size=t.size}};function useSearchParams(){(0,i.clientHookInServerComponentError)("useSearchParams");let t=(0,o.useContext)(u.SearchParamsContext),r=(0,o.useMemo)(()=>t?new ReadonlyURLSearchParams(t):null,[t]);return r}function usePathname(){return(0,i.clientHookInServerComponentError)("usePathname"),(0,o.useContext)(u.PathnameContext)}function useRouter(){(0,i.clientHookInServerComponentError)("useRouter");let t=(0,o.useContext)(a.AppRouterContext);if(null===t)throw Error("invariant expected app router to be mounted");return t}function getSelectedParams(t,r){void 0===r&&(r={});let n=t[1];for(let t of Object.values(n)){let n=t[0],o=Array.isArray(n),a=o?n[1]:n;if(!a||a.startsWith("__PAGE__"))continue;let u=o&&("c"===n[2]||"oc"===n[2]);u?r[n[0]]=n[1].split("/"):o&&(r[n[0]]=n[1]),r=getSelectedParams(t,r)}return r}function useParams(){(0,i.clientHookInServerComponentError)("useParams");let t=(0,o.useContext)(a.GlobalLayoutRouterContext),r=(0,o.useContext)(u.PathParamsContext);return(0,o.useMemo)(()=>(null==t?void 0:t.tree)?getSelectedParams(t.tree):r,[null==t?void 0:t.tree,r])}function getSelectedLayoutSegmentPath(t,r,n,o){let a;if(void 0===n&&(n=!0),void 0===o&&(o=[]),n)a=t[1][r];else{var u;let r=t[1];a=null!=(u=r.children)?u:Object.values(r)[0]}if(!a)return o;let i=a[0],d=(0,s.getSegmentValue)(i);return!d||d.startsWith("__PAGE__")?o:(o.push(d),getSelectedLayoutSegmentPath(a,r,!1,o))}function useSelectedLayoutSegments(t){void 0===t&&(t="children"),(0,i.clientHookInServerComponentError)("useSelectedLayoutSegments");let{tree:r}=(0,o.useContext)(a.LayoutRouterContext);return getSelectedLayoutSegmentPath(r,t)}function useSelectedLayoutSegment(t){void 0===t&&(t="children"),(0,i.clientHookInServerComponentError)("useSelectedLayoutSegment");let r=useSelectedLayoutSegments(t);return 0===r.length?null:r[0]}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},77749:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"NotFoundBoundary",{enumerable:!0,get:function(){return NotFoundBoundary}});let o=n(97295),a=o._(n(94488)),u=n(21149);let NotFoundErrorBoundary=class NotFoundErrorBoundary extends a.default.Component{static getDerivedStateFromError(t){if((null==t?void 0:t.digest)==="NEXT_NOT_FOUND")return{notFoundTriggered:!0};throw t}static getDerivedStateFromProps(t,r){return t.pathname!==r.previousPathname&&r.notFoundTriggered?{notFoundTriggered:!1,previousPathname:t.pathname}:{notFoundTriggered:r.notFoundTriggered,previousPathname:t.pathname}}render(){return this.state.notFoundTriggered?a.default.createElement(a.default.Fragment,null,a.default.createElement("meta",{name:"robots",content:"noindex"}),!1,this.props.notFoundStyles,this.props.notFound):this.props.children}constructor(t){super(t),this.state={notFoundTriggered:!!t.asNotFound,previousPathname:t.pathname}}};function NotFoundBoundary(t){let{notFound:r,notFoundStyles:n,asNotFound:o,children:i}=t,s=(0,u.usePathname)();return r?a.default.createElement(NotFoundErrorBoundary,{pathname:s,notFound:r,notFoundStyles:n,asNotFound:o},i):a.default.createElement(a.default.Fragment,null,i)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},32818:function(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(t,r){for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]})}(r,{notFound:function(){return notFound},isNotFoundError:function(){return isNotFoundError}});let n="NEXT_NOT_FOUND";function notFound(){let t=Error(n);throw t.digest=n,t}function isNotFoundError(t){return(null==t?void 0:t.digest)===n}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},38180:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PromiseQueue",{enumerable:!0,get:function(){return PromiseQueue}});let o=n(39382),a=n(97666);var u=a._("_maxConcurrency"),i=a._("_runningCount"),s=a._("_queue"),d=a._("_processNext");let PromiseQueue=class PromiseQueue{enqueue(t){let r,n;let a=new Promise((t,o)=>{r=t,n=o}),task=async()=>{try{o._(this,i)[i]++;let n=await t();r(n)}catch(t){n(t)}finally{o._(this,i)[i]--,o._(this,d)[d]()}};return o._(this,s)[s].push({promiseFn:a,task}),o._(this,d)[d](),a}bump(t){let r=o._(this,s)[s].findIndex(r=>r.promiseFn===t);if(r>-1){let t=o._(this,s)[s].splice(r,1)[0];o._(this,s)[s].unshift(t),o._(this,d)[d](!0)}}constructor(t=5){Object.defineProperty(this,d,{value:processNext}),Object.defineProperty(this,u,{writable:!0,value:void 0}),Object.defineProperty(this,i,{writable:!0,value:void 0}),Object.defineProperty(this,s,{writable:!0,value:void 0}),o._(this,u)[u]=t,o._(this,i)[i]=0,o._(this,s)[s]=[]}};function processNext(t){if(void 0===t&&(t=!1),(o._(this,i)[i]0){var r;null==(r=o._(this,s)[s].shift())||r.task()}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},61167:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(t,r){for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]})}(r,{RedirectErrorBoundary:function(){return RedirectErrorBoundary},RedirectBoundary:function(){return RedirectBoundary}});let o=n(3589),a=o._(n(94488)),u=n(21149),i=n(79633);function HandleRedirect(t){let{redirect:r,reset:n,redirectType:o}=t,s=(0,u.useRouter)();return(0,a.useEffect)(()=>{a.default.startTransition(()=>{o===i.RedirectType.push?s.push(r,{}):s.replace(r,{}),n()})},[r,o,n,s]),null}let RedirectErrorBoundary=class RedirectErrorBoundary extends a.default.Component{static getDerivedStateFromError(t){if((0,i.isRedirectError)(t)){let r=(0,i.getURLFromRedirectError)(t),n=(0,i.getRedirectTypeFromError)(t);return{redirect:r,redirectType:n}}throw t}render(){let{redirect:t,redirectType:r}=this.state;return null!==t&&null!==r?a.default.createElement(HandleRedirect,{redirect:t,redirectType:r,reset:()=>this.setState({redirect:null})}):this.props.children}constructor(t){super(t),this.state={redirect:null,redirectType:null}}};function RedirectBoundary(t){let{children:r}=t,n=(0,u.useRouter)();return a.default.createElement(RedirectErrorBoundary,{router:n},r)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},79633:function(t,r,n){"use strict";var o,a;Object.defineProperty(r,"__esModule",{value:!0}),function(t,r){for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]})}(r,{RedirectType:function(){return o},getRedirectError:function(){return getRedirectError},redirect:function(){return redirect},permanentRedirect:function(){return permanentRedirect},isRedirectError:function(){return isRedirectError},getURLFromRedirectError:function(){return getURLFromRedirectError},getRedirectTypeFromError:function(){return getRedirectTypeFromError}});let u=n(99464),i="NEXT_REDIRECT";function getRedirectError(t,r,n){void 0===n&&(n=!1);let o=Error(i);o.digest=i+";"+r+";"+t+";"+n;let a=u.requestAsyncStorage.getStore();return a&&(o.mutableCookies=a.mutableCookies),o}function redirect(t,r){throw void 0===r&&(r="replace"),getRedirectError(t,r,!1)}function permanentRedirect(t,r){throw void 0===r&&(r="replace"),getRedirectError(t,r,!0)}function isRedirectError(t){if("string"!=typeof(null==t?void 0:t.digest))return!1;let[r,n,o,a]=t.digest.split(";",4);return r===i&&("replace"===n||"push"===n)&&"string"==typeof o&&("true"===a||"false"===a)}function getURLFromRedirectError(t){return isRedirectError(t)?t.digest.split(";",3)[2]:null}function getRedirectTypeFromError(t){if(!isRedirectError(t))throw Error("Not a redirect error");return t.digest.split(";",2)[1]}(a=o||(o={})).push="push",a.replace="replace",("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},68348:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return RenderFromTemplateContext}});let o=n(3589),a=o._(n(94488)),u=n(30786);function RenderFromTemplateContext(){let t=(0,a.useContext)(u.TemplateContext);return a.default.createElement(a.default.Fragment,null,t)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},99464:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"requestAsyncStorage",{enumerable:!0,get:function(){return a}});let o=n(26835),a=(0,o.createAsyncLocalStorage)();("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},2417:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"applyFlightData",{enumerable:!0,get:function(){return applyFlightData}});let o=n(30786),a=n(70898),u=n(12815);function applyFlightData(t,r,n,i){void 0===i&&(i=!1);let[s,d,p]=n.slice(-3);return null!==d&&(3===n.length?(r.status=o.CacheStates.READY,r.subTreeData=d,(0,a.fillLazyItemsTillLeafWithHead)(r,t,s,p,i)):(r.status=o.CacheStates.READY,r.subTreeData=t.subTreeData,r.parallelRoutes=new Map(t.parallelRoutes),(0,u.fillCacheWithNewSubTreeData)(r,t,n,i)),!0)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},1165:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"applyRouterStatePatchToTree",{enumerable:!0,get:function(){return applyRouterStatePatchToTree}});let o=n(92628);function applyPatch(t,r){let[n,a]=t,[u,i]=r;if("__DEFAULT__"===u&&"__DEFAULT__"!==n)return t;if((0,o.matchSegment)(n,u)){let r={};for(let t in a){let n=void 0!==i[t];n?r[t]=applyPatch(a[t],i[t]):r[t]=a[t]}for(let t in i)r[t]||(r[t]=i[t]);let o=[n,r];return t[2]&&(o[2]=t[2]),t[3]&&(o[3]=t[3]),t[4]&&(o[4]=t[4]),o}return r}function applyRouterStatePatchToTree(t,r,n){let a;let[u,i,,,s]=r;if(1===t.length){let t=applyPatch(r,n);return t}let[d,p]=t;if(!(0,o.matchSegment)(d,u))return null;let _=2===t.length;if(_)a=applyPatch(i[p],n);else if(null===(a=applyRouterStatePatchToTree(t.slice(2),i[p],n)))return null;let m=[t[0],{...i,[p]:a}];return s&&(m[4]=!0),m}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},40427:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(t,r){for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]})}(r,{extractPathFromFlightRouterState:function(){return extractPathFromFlightRouterState},computeChangedPath:function(){return computeChangedPath}});let o=n(24488),a=n(84903),u=n(92628),removeLeadingSlash=t=>"/"===t[0]?t.slice(1):t,segmentToPathname=t=>"string"==typeof t?t:t[1];function normalizeSegments(t){return t.reduce((t,r)=>""===(r=removeLeadingSlash(r))||(0,a.isGroupSegment)(r)?t:t+"/"+r,"")||"/"}function extractPathFromFlightRouterState(t){var r;let n=Array.isArray(t[0])?t[0][1]:t[0];if("__DEFAULT__"===n||o.INTERCEPTION_ROUTE_MARKERS.some(t=>n.startsWith(t)))return;if(n.startsWith("__PAGE__"))return"";let a=[n],u=null!=(r=t[1])?r:{},i=u.children?extractPathFromFlightRouterState(u.children):void 0;if(void 0!==i)a.push(i);else for(let[t,r]of Object.entries(u)){if("children"===t)continue;let n=extractPathFromFlightRouterState(r);void 0!==n&&a.push(n)}return normalizeSegments(a)}function computeChangedPathImpl(t,r){let[n,a]=t,[i,s]=r,d=segmentToPathname(n),p=segmentToPathname(i);if(o.INTERCEPTION_ROUTE_MARKERS.some(t=>d.startsWith(t)||p.startsWith(t)))return"";if(!(0,u.matchSegment)(n,i)){var _;return null!=(_=extractPathFromFlightRouterState(r))?_:""}for(let t in a)if(s[t]){let r=computeChangedPathImpl(a[t],s[t]);if(null!==r)return segmentToPathname(i)+"/"+r}return null}function computeChangedPath(t,r){let n=computeChangedPathImpl(t,r);return null==n||"/"===n?n:normalizeSegments(n.split("/"))}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},14482:function(t,r){"use strict";function createHrefFromUrl(t,r){return void 0===r&&(r=!0),t.pathname+t.search+(r?t.hash:"")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createHrefFromUrl",{enumerable:!0,get:function(){return createHrefFromUrl}}),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},54650:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createInitialRouterState",{enumerable:!0,get:function(){return createInitialRouterState}});let o=n(30786),a=n(14482),u=n(70898),i=n(40427);function createInitialRouterState(t){var r;let{buildId:n,initialTree:s,children:d,initialCanonicalUrl:p,initialParallelRoutes:_,isServer:m,location:b,initialHead:j}=t,C={status:o.CacheStates.READY,data:null,subTreeData:d,parallelRoutes:m?new Map:_};return(null===_||0===_.size)&&(0,u.fillLazyItemsTillLeafWithHead)(C,void 0,s,j),{buildId:n,tree:s,cache:C,prefetchCache:new Map,pushRef:{pendingPush:!1,mpaNavigation:!1},focusAndScrollRef:{apply:!1,onlyHashChange:!1,hashFragment:null,segmentPaths:[]},canonicalUrl:b?(0,a.createHrefFromUrl)(b):p,nextUrl:null!=(r=(0,i.extractPathFromFlightRouterState)(s)||(null==b?void 0:b.pathname))?r:null}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},26922:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createOptimisticTree",{enumerable:!0,get:function(){return createOptimisticTree}});let o=n(92628);function createOptimisticTree(t,r,n){let a;let[u,i,s,d,p]=r||[null,{}],_=t[0],m=1===t.length,b=null!==u&&(0,o.matchSegment)(u,_),j=Object.keys(i).length>1,C=!r||!b||j,w={};if(null!==u&&b&&(w=i),!m&&!j){let r=createOptimisticTree(t.slice(1),w?w.children:null,n||C);a=r}let D=[_,{...w,...a?{children:a}:{}}];return s&&(D[2]=s),!n&&C?D[3]="refetch":b&&d&&(D[3]=d),b&&p&&(D[4]=p),D}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},85155:function(t,r){"use strict";function createRecordFromThenable(t){return t.status="pending",t.then(r=>{"pending"===t.status&&(t.status="fulfilled",t.value=r)},r=>{"pending"===t.status&&(t.status="rejected",t.reason=r)}),t}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRecordFromThenable",{enumerable:!0,get:function(){return createRecordFromThenable}}),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},23556:function(t,r){"use strict";function createRouterCacheKey(t,r){return void 0===r&&(r=!1),Array.isArray(t)?(t[0]+"|"+t[1]+"|"+t[2]).toLowerCase():r&&t.startsWith("__PAGE__")?"__PAGE__":t}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRouterCacheKey",{enumerable:!0,get:function(){return createRouterCacheKey}}),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},85590:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"fetchServerResponse",{enumerable:!0,get:function(){return fetchServerResponse}});let o=n(9639),a=n(4626),u=n(2897),i=n(76161),s=n(74020),d=n(99198),{createFromFetch:p}=n(35861);function doMpaNavigation(t){return[(0,a.urlToUrlWithoutFlightMarker)(t).toString(),void 0]}async function fetchServerResponse(t,r,n,_,m){let b={[o.RSC]:"1",[o.NEXT_ROUTER_STATE_TREE]:encodeURIComponent(JSON.stringify(r))};m===i.PrefetchKind.AUTO&&(b[o.NEXT_ROUTER_PREFETCH]="1"),n&&(b[o.NEXT_URL]=n);let j=(0,s.hexHash)([b[o.NEXT_ROUTER_PREFETCH]||"0",b[o.NEXT_ROUTER_STATE_TREE],b[o.NEXT_URL]].join(","));try{let r=new URL(t);r.pathname.endsWith("/")?r.pathname+="index.txt":r.pathname+=".txt",r.searchParams.set(o.NEXT_RSC_UNION_QUERY,j);let n=await fetch(r,{credentials:"same-origin",headers:b}),i=(0,a.urlToUrlWithoutFlightMarker)(n.url),s=n.redirected?i:void 0,m=n.headers.get("content-type")||"",C=!!n.headers.get(d.NEXT_DID_POSTPONE_HEADER),w=m===o.RSC_CONTENT_TYPE_HEADER;if(w||(w=m.startsWith("text/plain")),!w||!n.ok)return t.hash&&(i.hash=t.hash),doMpaNavigation(i.toString());let[D,U]=await p(Promise.resolve(n),{callServer:u.callServer});if(_!==D)return doMpaNavigation(n.url);return[U,s,C]}catch(r){return console.error("Failed to fetch RSC payload for "+t+". Falling back to browser navigation.",r),[t.toString(),void 0]}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},64785:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"fillCacheWithDataProperty",{enumerable:!0,get:function(){return fillCacheWithDataProperty}});let o=n(30786),a=n(23556);function fillCacheWithDataProperty(t,r,n,u,i){void 0===i&&(i=!1);let s=n.length<=2,[d,p]=n,_=(0,a.createRouterCacheKey)(p),m=r.parallelRoutes.get(d);if(!m||i&&r.parallelRoutes.size>1)return{bailOptimistic:!0};let b=t.parallelRoutes.get(d);b&&b!==m||(b=new Map(m),t.parallelRoutes.set(d,b));let j=m.get(_),C=b.get(_);if(s){C&&C.data&&C!==j||b.set(_,{status:o.CacheStates.DATA_FETCH,data:u(),subTreeData:null,parallelRoutes:new Map});return}if(!C||!j){C||b.set(_,{status:o.CacheStates.DATA_FETCH,data:u(),subTreeData:null,parallelRoutes:new Map});return}return C===j&&(C={status:C.status,data:C.data,subTreeData:C.subTreeData,parallelRoutes:new Map(C.parallelRoutes)},b.set(_,C)),fillCacheWithDataProperty(C,j,n.slice(2),u)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},12815:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"fillCacheWithNewSubTreeData",{enumerable:!0,get:function(){return fillCacheWithNewSubTreeData}});let o=n(30786),a=n(73554),u=n(70898),i=n(23556);function fillCacheWithNewSubTreeData(t,r,n,s){let d=n.length<=5,[p,_]=n,m=(0,i.createRouterCacheKey)(_),b=r.parallelRoutes.get(p);if(!b)return;let j=t.parallelRoutes.get(p);j&&j!==b||(j=new Map(b),t.parallelRoutes.set(p,j));let C=b.get(m),w=j.get(m);if(d){w&&w.data&&w!==C||(w={status:o.CacheStates.READY,data:null,subTreeData:n[3],parallelRoutes:C?new Map(C.parallelRoutes):new Map},C&&(0,a.invalidateCacheByRouterState)(w,C,n[2]),(0,u.fillLazyItemsTillLeafWithHead)(w,C,n[2],n[4],s),j.set(m,w));return}w&&C&&(w===C&&(w={status:w.status,data:w.data,subTreeData:w.subTreeData,parallelRoutes:new Map(w.parallelRoutes)},j.set(m,w)),fillCacheWithNewSubTreeData(w,C,n.slice(2),s))}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},70898:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"fillLazyItemsTillLeafWithHead",{enumerable:!0,get:function(){return fillLazyItemsTillLeafWithHead}});let o=n(30786),a=n(23556);function fillLazyItemsTillLeafWithHead(t,r,n,u,i){let s=0===Object.keys(n[1]).length;if(s){t.head=u;return}for(let s in n[1]){let d=n[1][s],p=d[0],_=(0,a.createRouterCacheKey)(p);if(r){let n=r.parallelRoutes.get(s);if(n){let r=new Map(n),a=r.get(_),p=i&&a?{status:a.status,data:a.data,subTreeData:a.subTreeData,parallelRoutes:new Map(a.parallelRoutes)}:{status:o.CacheStates.LAZY_INITIALIZED,data:null,subTreeData:null,parallelRoutes:new Map(null==a?void 0:a.parallelRoutes)};r.set(_,p),fillLazyItemsTillLeafWithHead(p,a,d,u,i),t.parallelRoutes.set(s,r);continue}}let m={status:o.CacheStates.LAZY_INITIALIZED,data:null,subTreeData:null,parallelRoutes:new Map},b=t.parallelRoutes.get(s);b?b.set(_,m):t.parallelRoutes.set(s,new Map([[_,m]])),fillLazyItemsTillLeafWithHead(m,void 0,d,u,i)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},29642:function(t,r){"use strict";var n,o;function getPrefetchEntryCacheStatus(t){let{kind:r,prefetchTime:n,lastUsedTime:o}=t;return Date.now()<(null!=o?o:n)+3e4?o?"reusable":"fresh":"auto"===r&&Date.now()[...n,...t]);for(let n of s){let o=(0,p.fillCacheWithDataProperty)(t,r,n,u);(null==o?void 0:o.bailOptimistic)||(i=!0)}return i}function navigateReducer(t,r){let{url:n,isExternalUrl:K,navigateType:q,cache:ee,mutable:et,forceOptimisticNavigation:er,shouldScroll:en}=r,{pathname:eo,hash:eu}=n,el=(0,s.createHrefFromUrl)(n),ei="push"===q;(0,B.prunePrefetchCache)(t.prefetchCache);let ec=JSON.stringify(et.previousTree)===JSON.stringify(t.tree);if(ec)return(0,w.handleMutable)(t,et);if(K)return handleExternalUrl(t,et,n.toString(),ei);let es=t.prefetchCache.get((0,s.createHrefFromUrl)(n,!1));if(er&&(null==es?void 0:es.kind)!==C.PrefetchKind.TEMPORARY){let r=eo.split("/");r.push("__PAGE__");let i=(0,_.createOptimisticTree)(r,t.tree,!1),d={...ee};d.status=o.CacheStates.READY,d.subTreeData=t.cache.subTreeData,d.parallelRoutes=new Map(t.cache.parallelRoutes);let m=null,b=r.slice(1).map(t=>["children",t]).flat(),j=(0,p.fillCacheWithDataProperty)(d,t.cache,b,()=>(m||(m=(0,u.createRecordFromThenable)((0,a.fetchServerResponse)(n,i,t.nextUrl,t.buildId))),m),!0);if(!(null==j?void 0:j.bailOptimistic))return et.previousTree=t.tree,et.patchedTree=i,et.pendingPush=ei,et.hashFragment=eu,et.shouldScroll=en,et.scrollableSegments=[],et.cache=d,et.canonicalUrl=el,t.prefetchCache.set((0,s.createHrefFromUrl)(n,!1),{data:m?(0,u.createRecordFromThenable)(Promise.resolve(m)):null,kind:C.PrefetchKind.TEMPORARY,prefetchTime:Date.now(),treeAtTimeOfPrefetch:t.tree,lastUsedTime:Date.now()}),(0,w.handleMutable)(t,et)}if(!es){let r=(0,u.createRecordFromThenable)((0,a.fetchServerResponse)(n,t.tree,t.nextUrl,t.buildId,void 0)),o={data:(0,u.createRecordFromThenable)(Promise.resolve(r)),kind:C.PrefetchKind.TEMPORARY,prefetchTime:Date.now(),treeAtTimeOfPrefetch:t.tree,lastUsedTime:null};t.prefetchCache.set((0,s.createHrefFromUrl)(n,!1),o),es=o}let ef=(0,U.getPrefetchEntryCacheStatus)(es),{treeAtTimeOfPrefetch:ed,data:ep}=es;$.prefetchQueue.bump(ep);let[eh,e_,ey]=(0,i.readRecordValue)(ep);if(es.lastUsedTime||(es.lastUsedTime=Date.now()),"string"==typeof eh)return handleExternalUrl(t,et,eh,ei);let em=t.tree,eg=t.cache,eb=[];for(let r of eh){let i=r.slice(0,-4),s=r.slice(-3)[0],p=["",...i],_=(0,m.applyRouterStatePatchToTree)(p,em,s);if(null===_&&(_=(0,m.applyRouterStatePatchToTree)(p,ed,s)),null!==_){if((0,j.isNavigatingToNewRootLayout)(em,_))return handleExternalUrl(t,et,el,ei);let m=!ey&&(0,D.applyFlightData)(eg,ee,r,"auto"===es.kind&&ef===U.PrefetchCacheEntryStatus.reusable);m||ef!==U.PrefetchCacheEntryStatus.stale||(m=addRefetchToLeafSegments(ee,eg,i,s,()=>(0,u.createRecordFromThenable)((0,a.fetchServerResponse)(n,em,t.nextUrl,t.buildId))));let C=(0,b.shouldHardNavigate)(p,em);for(let t of(C?(ee.status=o.CacheStates.READY,ee.subTreeData=eg.subTreeData,(0,d.invalidateCacheBelowFlightSegmentPath)(ee,eg,i),et.cache=ee):m&&(et.cache=ee),eg=ee,em=_,generateSegmentsFromPatch(s))){let r=[...i,...t];"__DEFAULT__"!==r[r.length-1]&&eb.push(r)}}}return et.previousTree=t.tree,et.patchedTree=em,et.canonicalUrl=e_?(0,s.createHrefFromUrl)(e_):el,et.pendingPush=ei,et.scrollableSegments=eb,et.hashFragment=eu,et.shouldScroll=en,(0,w.handleMutable)(t,et)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},72035:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(t,r){for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]})}(r,{prefetchQueue:function(){return _},prefetchReducer:function(){return prefetchReducer}});let o=n(14482),a=n(85590),u=n(76161),i=n(85155),s=n(35673),d=n(9639),p=n(38180),_=new p.PromiseQueue(5);function prefetchReducer(t,r){(0,s.prunePrefetchCache)(t.prefetchCache);let{url:n}=r;n.searchParams.delete(d.NEXT_RSC_UNION_QUERY);let p=(0,o.createHrefFromUrl)(n,!1),m=t.prefetchCache.get(p);if(m&&(m.kind===u.PrefetchKind.TEMPORARY&&t.prefetchCache.set(p,{...m,kind:r.kind}),!(m.kind===u.PrefetchKind.AUTO&&r.kind===u.PrefetchKind.FULL)))return t;let b=(0,i.createRecordFromThenable)(_.enqueue(()=>(0,a.fetchServerResponse)(n,t.tree,t.nextUrl,t.buildId,r.kind)));return t.prefetchCache.set(p,{treeAtTimeOfPrefetch:t.tree,data:b,kind:r.kind,prefetchTime:Date.now(),lastUsedTime:null}),t}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},35673:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"prunePrefetchCache",{enumerable:!0,get:function(){return prunePrefetchCache}});let o=n(29642);function prunePrefetchCache(t){for(let[r,n]of t)(0,o.getPrefetchEntryCacheStatus)(n)===o.PrefetchCacheEntryStatus.expired&&t.delete(r)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},47218:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"refreshReducer",{enumerable:!0,get:function(){return refreshReducer}});let o=n(85590),a=n(85155),u=n(27222),i=n(14482),s=n(1165),d=n(95007),p=n(52716),_=n(97873),m=n(30786),b=n(70898);function refreshReducer(t,r){let{cache:n,mutable:j,origin:C}=r,w=t.canonicalUrl,D=t.tree,U=JSON.stringify(j.previousTree)===JSON.stringify(D);if(U)return(0,_.handleMutable)(t,j);n.data||(n.data=(0,a.createRecordFromThenable)((0,o.fetchServerResponse)(new URL(w,C),[D[0],D[1],D[2],"refetch"],t.nextUrl,t.buildId)));let[B,$]=(0,u.readRecordValue)(n.data);if("string"==typeof B)return(0,p.handleExternalUrl)(t,j,B,t.pushRef.pendingPush);for(let r of(n.data=null,B)){if(3!==r.length)return console.log("REFRESH FAILED"),t;let[o]=r,a=(0,s.applyRouterStatePatchToTree)([""],D,o);if(null===a)throw Error("SEGMENT MISMATCH");if((0,d.isNavigatingToNewRootLayout)(D,a))return(0,p.handleExternalUrl)(t,j,w,t.pushRef.pendingPush);let u=$?(0,i.createHrefFromUrl)($):void 0;$&&(j.canonicalUrl=u);let[_,C]=r.slice(-2);null!==_&&(n.status=m.CacheStates.READY,n.subTreeData=_,(0,b.fillLazyItemsTillLeafWithHead)(n,void 0,o,C),j.cache=n,j.prefetchCache=new Map),j.previousTree=D,j.patchedTree=a,j.canonicalUrl=w,D=a}return(0,_.handleMutable)(t,j)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},83719:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"restoreReducer",{enumerable:!0,get:function(){return restoreReducer}});let o=n(14482);function restoreReducer(t,r){let{url:n,tree:a}=r,u=(0,o.createHrefFromUrl)(n);return{buildId:t.buildId,canonicalUrl:u,pushRef:t.pushRef,focusAndScrollRef:t.focusAndScrollRef,cache:t.cache,prefetchCache:t.prefetchCache,tree:a,nextUrl:n.pathname}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},10854:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"serverActionReducer",{enumerable:!0,get:function(){return serverActionReducer}});let o=n(2897),a=n(9639),u=n(85155),i=n(27222),s=n(44164),d=n(14482),p=n(52716),_=n(1165),m=n(95007),b=n(30786),j=n(97873),C=n(70898),{createFromFetch:w,encodeReply:D}=n(35861);async function fetchServerAction(t,r){let n,{actionId:u,actionArgs:i}=r,d=await D(i),p=await fetch("",{method:"POST",headers:{Accept:a.RSC_CONTENT_TYPE_HEADER,[a.ACTION]:u,[a.NEXT_ROUTER_STATE_TREE]:encodeURIComponent(JSON.stringify(t.tree)),...t.nextUrl?{[a.NEXT_URL]:t.nextUrl}:{}},body:d}),_=p.headers.get("x-action-redirect");try{let t=JSON.parse(p.headers.get("x-action-revalidated")||"[[],0,0]");n={paths:t[0]||[],tag:!!t[1],cookie:t[2]}}catch(t){n={paths:[],tag:!1,cookie:!1}}let m=_?new URL((0,s.addBasePath)(_),new URL(t.canonicalUrl,window.location.href)):void 0;if(p.headers.get("content-type")===a.RSC_CONTENT_TYPE_HEADER){let t=await w(Promise.resolve(p),{callServer:o.callServer});if(_){let[,r]=null!=t?t:[];return{actionFlightData:r,redirectLocation:m,revalidatedParts:n}}let[r,[,a]]=null!=t?t:[];return{actionResult:r,actionFlightData:a,redirectLocation:m,revalidatedParts:n}}return{redirectLocation:m,revalidatedParts:n}}function serverActionReducer(t,r){let{mutable:n,cache:o,resolve:a,reject:s}=r,w=t.canonicalUrl,D=t.tree,U=JSON.stringify(n.previousTree)===JSON.stringify(D);if(U)return(0,j.handleMutable)(t,n);if(n.inFlightServerAction){if("fulfilled"!==n.inFlightServerAction.status&&n.globalMutable.pendingNavigatePath&&n.globalMutable.pendingNavigatePath!==w)return n.inFlightServerAction.then(()=>{n.actionResultResolved||(n.inFlightServerAction=null,n.globalMutable.pendingNavigatePath=void 0,n.globalMutable.refresh(),n.actionResultResolved=!0)},()=>{}),t}else n.inFlightServerAction=(0,u.createRecordFromThenable)(fetchServerAction(t,r));try{let{actionResult:r,actionFlightData:u,redirectLocation:s}=(0,i.readRecordValue)(n.inFlightServerAction);if(s&&(t.pushRef.pendingPush=!0,n.pendingPush=!0),n.previousTree=t.tree,!u){if(n.actionResultResolved||(a(r),n.actionResultResolved=!0),s)return(0,p.handleExternalUrl)(t,n,s.href,t.pushRef.pendingPush);return t}if("string"==typeof u)return(0,p.handleExternalUrl)(t,n,u,t.pushRef.pendingPush);for(let r of(n.inFlightServerAction=null,u)){if(3!==r.length)return console.log("SERVER ACTION APPLY FAILED"),t;let[a]=r,u=(0,_.applyRouterStatePatchToTree)([""],D,a);if(null===u)throw Error("SEGMENT MISMATCH");if((0,m.isNavigatingToNewRootLayout)(D,u))return(0,p.handleExternalUrl)(t,n,w,t.pushRef.pendingPush);let[i,s]=r.slice(-2);null!==i&&(o.status=b.CacheStates.READY,o.subTreeData=i,(0,C.fillLazyItemsTillLeafWithHead)(o,void 0,a,s),n.cache=o,n.prefetchCache=new Map),n.previousTree=D,n.patchedTree=u,n.canonicalUrl=w,D=u}if(s){let t=(0,d.createHrefFromUrl)(s,!1);n.canonicalUrl=t}return n.actionResultResolved||(a(r),n.actionResultResolved=!0),(0,j.handleMutable)(t,n)}catch(r){if("rejected"===r.status)return n.actionResultResolved||(s(r.reason),n.actionResultResolved=!0),t;throw r}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},87107:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"serverPatchReducer",{enumerable:!0,get:function(){return serverPatchReducer}});let o=n(14482),a=n(1165),u=n(95007),i=n(52716),s=n(2417),d=n(97873);function serverPatchReducer(t,r){let{flightData:n,previousTree:p,overrideCanonicalUrl:_,cache:m,mutable:b}=r,j=JSON.stringify(p)===JSON.stringify(t.tree);if(!j)return console.log("TREE MISMATCH"),t;if(b.previousTree)return(0,d.handleMutable)(t,b);if("string"==typeof n)return(0,i.handleExternalUrl)(t,b,n,t.pushRef.pendingPush);let C=t.tree,w=t.cache;for(let r of n){let n=r.slice(0,-4),[d]=r.slice(-3,-2),p=(0,a.applyRouterStatePatchToTree)(["",...n],C,d);if(null===p)throw Error("SEGMENT MISMATCH");if((0,u.isNavigatingToNewRootLayout)(C,p))return(0,i.handleExternalUrl)(t,b,t.canonicalUrl,t.pushRef.pendingPush);let j=_?(0,o.createHrefFromUrl)(_):void 0;j&&(b.canonicalUrl=j),(0,s.applyFlightData)(w,m,r),b.previousTree=C,b.patchedTree=p,b.cache=m,w=m,C=p}return(0,d.handleMutable)(t,b)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},76161:function(t,r){"use strict";var n,o;Object.defineProperty(r,"__esModule",{value:!0}),function(t,r){for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]})}(r,{PrefetchKind:function(){return n},ACTION_REFRESH:function(){return a},ACTION_NAVIGATE:function(){return u},ACTION_RESTORE:function(){return i},ACTION_SERVER_PATCH:function(){return s},ACTION_PREFETCH:function(){return d},ACTION_FAST_REFRESH:function(){return p},ACTION_SERVER_ACTION:function(){return _}});let a="refresh",u="navigate",i="restore",s="server-patch",d="prefetch",p="fast-refresh",_="server-action";(o=n||(n={})).AUTO="auto",o.FULL="full",o.TEMPORARY="temporary",("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},87902:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"reducer",{enumerable:!0,get:function(){return m}});let o=n(76161),a=n(52716),u=n(87107),i=n(83719),s=n(47218),d=n(72035),p=n(2591),_=n(10854);function clientReducer(t,r){switch(r.type){case o.ACTION_NAVIGATE:return(0,a.navigateReducer)(t,r);case o.ACTION_SERVER_PATCH:return(0,u.serverPatchReducer)(t,r);case o.ACTION_RESTORE:return(0,i.restoreReducer)(t,r);case o.ACTION_REFRESH:return(0,s.refreshReducer)(t,r);case o.ACTION_FAST_REFRESH:return(0,p.fastRefreshReducer)(t,r);case o.ACTION_PREFETCH:return(0,d.prefetchReducer)(t,r);case o.ACTION_SERVER_ACTION:return(0,_.serverActionReducer)(t,r);default:throw Error("Unknown action")}}let m=clientReducer;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},32075:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"shouldHardNavigate",{enumerable:!0,get:function(){return shouldHardNavigate}});let o=n(92628);function shouldHardNavigate(t,r){let[n,a]=r,[u,i]=t;if(!(0,o.matchSegment)(u,n))return!!Array.isArray(u);let s=t.length<=2;return!s&&shouldHardNavigate(t.slice(2),a[i])}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},98867:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createSearchParamsBailoutProxy",{enumerable:!0,get:function(){return createSearchParamsBailoutProxy}});let o=n(63636);function createSearchParamsBailoutProxy(){return new Proxy({},{get(t,r){"string"==typeof r&&(0,o.staticGenerationBailout)("searchParams."+r)}})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},87488:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"staticGenerationAsyncStorage",{enumerable:!0,get:function(){return a}});let o=n(26835),a=(0,o.createAsyncLocalStorage)();("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},63636:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"staticGenerationBailout",{enumerable:!0,get:function(){return staticGenerationBailout}});let o=n(68233),a=n(85456),u=n(87488);let StaticGenBailoutError=class StaticGenBailoutError extends Error{constructor(...t){super(...t),this.code="NEXT_STATIC_GEN_BAILOUT"}};function formatErrorMessage(t,r){let{dynamic:n,link:o}=r||{};return"Page"+(n?' with `dynamic = "'+n+'"`':"")+" couldn't be rendered statically because it used `"+t+"`."+(o?" See more info here: "+o:"")}let staticGenerationBailout=(t,r)=>{let n=u.staticGenerationAsyncStorage.getStore();if(!n)return!1;if(n.forceStatic)return!0;if(n.dynamicShouldError){var i;throw new StaticGenBailoutError(formatErrorMessage(t,{...r,dynamic:null!=(i=null==r?void 0:r.dynamic)?i:"error"}))}let s=formatErrorMessage(t,{...r,link:"https://nextjs.org/docs/messages/dynamic-server-error"});if((0,a.maybePostpone)(n,s),n.revalidate=0,(null==r?void 0:r.dynamic)||(n.staticPrefetchBailout=!0),n.isStaticGeneration){let r=new o.DynamicServerError(s);throw n.dynamicUsageDescription=t,n.dynamicUsageStack=r.stack,r}return!1};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},57306:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return StaticGenerationSearchParamsBailoutProvider}});let o=n(97295),a=o._(n(94488)),u=n(98867);function StaticGenerationSearchParamsBailoutProvider(t){let{Component:r,propsForComponent:n,isStaticGeneration:o}=t;if(o){let t=(0,u.createSearchParamsBailoutProxy)();return a.default.createElement(r,{searchParams:t,...n})}return a.default.createElement(r,n)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},57621:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useReducerWithReduxDevtools",{enumerable:!0,get:function(){return a}});let o=n(94488);function normalizeRouterState(t){if(t instanceof Map){let r={};for(let[n,o]of t.entries()){if("function"==typeof o){r[n]="fn()";continue}if("object"==typeof o&&null!==o){if(o.$$typeof){r[n]=o.$$typeof.toString();continue}if(o._bundlerConfig){r[n]="FlightData";continue}}r[n]=normalizeRouterState(o)}return r}if("object"==typeof t&&null!==t){let r={};for(let n in t){let o=t[n];if("function"==typeof o){r[n]="fn()";continue}if("object"==typeof o&&null!==o){if(o.$$typeof){r[n]=o.$$typeof.toString();continue}if(o.hasOwnProperty("_bundlerConfig")){r[n]="FlightData";continue}}r[n]=normalizeRouterState(o)}return r}return Array.isArray(t)?t.map(normalizeRouterState):t}function devToolReducer(t,r){return(n,o)=>{let a=t(n,o);return r.current&&r.current.send(o,normalizeRouterState(a)),a}}function useReducerWithReduxDevtoolsImpl(t,r){let n=(0,o.useRef)(),a=(0,o.useRef)();(0,o.useEffect)(()=>{if(!n.current&&!1!==a.current){if(void 0===a.current&&void 0===window.__REDUX_DEVTOOLS_EXTENSION__){a.current=!1;return}return n.current=window.__REDUX_DEVTOOLS_EXTENSION__.connect({instanceId:8e3,name:"next-router"}),n.current&&n.current.init(normalizeRouterState(r)),()=>{n.current=void 0}}},[r]);let[u,i]=(0,o.useReducer)(devToolReducer(t,n),r),s=(0,o.useCallback)(()=>{n.current&&n.current.send({type:"RENDER_SYNC"},normalizeRouterState(u))},[u]);return[u,i,s]}let a=useReducerWithReduxDevtoolsImpl;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},50525:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"hasBasePath",{enumerable:!0,get:function(){return hasBasePath}});let o=n(41850);function hasBasePath(t){return(0,o.pathHasPrefix)(t,"")}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},80084:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return normalizePathTrailingSlash}});let o=n(41052),a=n(66213),normalizePathTrailingSlash=t=>{if(!t.startsWith("/"))return t;let{pathname:r,query:n,hash:u}=(0,a.parsePath)(t);return""+(0,o.removeTrailingSlash)(r)+n+u};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},88304:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return onRecoverableError}});let o=n(2711);function onRecoverableError(t){let r="function"==typeof reportError?reportError:t=>{window.console.error(t)};t.digest!==o.NEXT_DYNAMIC_NO_SSR_CODE&&r(t)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},64813:function(t,r,n){"use strict";function removeBasePath(t){return t}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"removeBasePath",{enumerable:!0,get:function(){return removeBasePath}}),n(50525),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},30786:function(t,r,n){"use strict";var o,a;Object.defineProperty(r,"__esModule",{value:!0}),function(t,r){for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]})}(r,{CacheStates:function(){return o},AppRouterContext:function(){return s},LayoutRouterContext:function(){return d},GlobalLayoutRouterContext:function(){return p},TemplateContext:function(){return _}});let u=n(97295),i=u._(n(94488));(a=o||(o={})).LAZY_INITIALIZED="LAZYINITIALIZED",a.DATA_FETCH="DATAFETCH",a.READY="READY";let s=i.default.createContext(null),d=i.default.createContext(null),p=i.default.createContext(null),_=i.default.createContext(null)},74020:function(t,r){"use strict";function djb2Hash(t){let r=5381;for(let n=0;n!r||(0,a.isGroupSegment)(r)||"@"===r[0]||("page"===r||"route"===r)&&n===o.length-1?t:t+"/"+r,""))}function normalizeRscURL(t){return t.replace(/\.rsc($|\?)/,"$1")}function normalizePostponedURL(t){let r=new URL(t),{pathname:n}=r;return n&&n.startsWith("/_next/postponed")?(r.pathname=n.substring(16)||"/",r.toString()):t}},80019:function(t,r){"use strict";function handleSmoothScroll(t,r){if(void 0===r&&(r={}),r.onlyHashChange){t();return}let n=document.documentElement,o=n.style.scrollBehavior;n.style.scrollBehavior="auto",r.dontForceLayout||n.getClientRects(),t(),n.style.scrollBehavior=o}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"handleSmoothScroll",{enumerable:!0,get:function(){return handleSmoothScroll}})},75924:function(t,r){"use strict";function isBot(t){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(t)}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isBot",{enumerable:!0,get:function(){return isBot}})},66213:function(t,r){"use strict";function parsePath(t){let r=t.indexOf("#"),n=t.indexOf("?"),o=n>-1&&(r<0||n-1?{pathname:t.substring(0,o?n:r),query:o?t.substring(n,r>-1?r:void 0):"",hash:r>-1?t.slice(r):""}:{pathname:t,query:"",hash:""}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"parsePath",{enumerable:!0,get:function(){return parsePath}})},41850:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"pathHasPrefix",{enumerable:!0,get:function(){return pathHasPrefix}});let o=n(66213);function pathHasPrefix(t,r){if("string"!=typeof t)return!1;let{pathname:n}=(0,o.parsePath)(t);return n===r||n.startsWith(r+"/")}},41052:function(t,r){"use strict";function removeTrailingSlash(t){return t.replace(/\/$/,"")||"/"}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"removeTrailingSlash",{enumerable:!0,get:function(){return removeTrailingSlash}})},84903:function(t,r){"use strict";function isGroupSegment(t){return"("===t[0]&&t.endsWith(")")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isGroupSegment",{enumerable:!0,get:function(){return isGroupSegment}})},90111:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(t,r){for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]})}(r,{ServerInsertedHTMLContext:function(){return u},useServerInsertedHTML:function(){return useServerInsertedHTML}});let o=n(3589),a=o._(n(94488)),u=a.default.createContext(null);function useServerInsertedHTML(t){let r=(0,a.useContext)(u);r&&r(t)}},26835:function(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createAsyncLocalStorage",{enumerable:!0,get:function(){return createAsyncLocalStorage}});let n=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");let FakeAsyncLocalStorage=class FakeAsyncLocalStorage{disable(){throw n}getStore(){}run(){throw n}exit(){throw n}enterWith(){throw n}};let o=globalThis.AsyncLocalStorage;function createAsyncLocalStorage(){return o?new o:new FakeAsyncLocalStorage}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},91910:function(t,r,n){"use strict";var o=n(1568);r.createRoot=o.createRoot,r.hydrateRoot=o.hydrateRoot},1568:function(t,r,n){"use strict";function checkDCE(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(t){console.error(t)}}checkDCE(),t.exports=n(68185)},98518:function(t,r,n){"use strict";/** + * @license React + * react-server-dom-webpack-client.browser.production.min.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var o=n(1568),a=n(94488),u={stream:!0};function v(t,r){if(t){var n=t[r[0]];if(t=n[r[2]])n=t.name;else{if(!(t=n["*"]))throw Error('Could not find the module "'+r[0]+'" in the React SSR Manifest. This is probably a bug in the React Server Components bundler.');n=r[2]}return 4===r.length?[t.id,t.chunks,n,1]:[t.id,t.chunks,n]}return r}var i=new Map;function x(t){var r=n(t);return"function"!=typeof r.then||"fulfilled"===r.status?null:(r.then(function(t){r.status="fulfilled",r.value=t},function(t){r.status="rejected",r.reason=t}),r)}function y(){}function z(t){for(var r=t[1],o=[],a=0;ai?(d=i,i=3,a++):(d=0,i=3);continue;case 2:44===(b=o[a++])?i=4:_=_<<4|(96o.length&&(b=-1)}var j=o.byteOffset+a;if(-1>>1,a=t[o];if(0>>1;og(s,n))dg(p,s)?(t[o]=p,t[d]=n,o=d):(t[o]=s,t[i]=n,o=i);else if(dg(p,n))t[o]=p,t[d]=n,o=d;else break}}return r}function g(t,r){var n=t.sortIndex-r.sortIndex;return 0!==n?n:t.id-r.id}if(r.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var n,o=performance;r.unstable_now=function(){return o.now()}}else{var a=Date,u=a.now();r.unstable_now=function(){return a.now()-u}}var i=[],s=[],d=1,p=null,_=3,m=!1,b=!1,j=!1,C="function"==typeof setTimeout?setTimeout:null,w="function"==typeof clearTimeout?clearTimeout:null,D="undefined"!=typeof setImmediate?setImmediate:null;function G(t){for(var r=h(s);null!==r;){if(null===r.callback)k(s);else if(r.startTime<=t)k(s),r.sortIndex=r.expirationTime,f(i,r);else break;r=h(s)}}function H(t){if(j=!1,G(t),!b){if(null!==h(i))b=!0,I();else{var r=h(s);null!==r&&J(H,r.startTime-t)}}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var U=!1,B=-1,$=5,K=-1;function O(){return!(r.unstable_now()-K<$)}function P(){if(U){var t=r.unstable_now();K=t;var o=!0;try{e:{b=!1,j&&(j=!1,w(B),B=-1),m=!0;var a=_;try{t:{for(G(t),p=h(i);null!==p&&!(p.expirationTime>t&&O());){var u=p.callback;if("function"==typeof u){p.callback=null,_=p.priorityLevel;var d=u(p.expirationTime<=t);if(t=r.unstable_now(),"function"==typeof d){p.callback=d,G(t),o=!0;break t}p===h(i)&&k(i),G(t)}else k(i);p=h(i)}if(null!==p)o=!0;else{var C=h(s);null!==C&&J(H,C.startTime-t),o=!1}}break e}finally{p=null,_=a,m=!1}o=void 0}}finally{o?n():U=!1}}}if("function"==typeof D)n=function(){D(P)};else if("undefined"!=typeof MessageChannel){var q=new MessageChannel,ee=q.port2;q.port1.onmessage=P,n=function(){ee.postMessage(null)}}else n=function(){C(P,0)};function I(){U||(U=!0,n())}function J(t,n){B=C(function(){t(r.unstable_now())},n)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(t){t.callback=null},r.unstable_continueExecution=function(){b||m||(b=!0,I())},r.unstable_forceFrameRate=function(t){0>t||125a?(t.sortIndex=o,f(s,t),null===h(i)&&t===h(s)&&(j?(w(B),B=-1):j=!0,J(H,o-a))):(t.sortIndex=u,f(i,t),b||m||(b=!0,I())),t},r.unstable_shouldYield=O,r.unstable_wrapCallback=function(t){var r=_;return function(){var n=_;_=r;try{return t.apply(this,arguments)}finally{_=n}}}},50902:function(t,r,n){"use strict";t.exports=n(72930)},99198:function(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(t,r){for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]})}(r,{NEXT_QUERY_PARAM_PREFIX:function(){return n},PRERENDER_REVALIDATE_HEADER:function(){return o},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return a},NEXT_DID_POSTPONE_HEADER:function(){return u},NEXT_CACHE_TAGS_HEADER:function(){return i},NEXT_CACHE_SOFT_TAGS_HEADER:function(){return s},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return d},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return p},NEXT_CACHE_TAG_MAX_LENGTH:function(){return _},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return m},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return b},CACHE_ONE_YEAR:function(){return j},MIDDLEWARE_FILENAME:function(){return C},MIDDLEWARE_LOCATION_REGEXP:function(){return w},INSTRUMENTATION_HOOK_FILENAME:function(){return D},PAGES_DIR_ALIAS:function(){return U},DOT_NEXT_ALIAS:function(){return B},ROOT_DIR_ALIAS:function(){return $},APP_DIR_ALIAS:function(){return K},RSC_MOD_REF_PROXY_ALIAS:function(){return q},RSC_ACTION_VALIDATE_ALIAS:function(){return ee},RSC_ACTION_PROXY_ALIAS:function(){return et},RSC_ACTION_ENCRYPTION_ALIAS:function(){return er},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return en},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return eo},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return eu},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return el},SERVER_PROPS_SSG_CONFLICT:function(){return ei},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return ec},SERVER_PROPS_EXPORT_ERROR:function(){return es},GSP_NO_RETURNED_VALUE:function(){return ef},GSSP_NO_RETURNED_VALUE:function(){return ed},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return ep},GSSP_COMPONENT_MEMBER_ERROR:function(){return eh},NON_STANDARD_NODE_ENV:function(){return e_},SSG_FALLBACK_EXPORT_ERROR:function(){return ey},ESLINT_DEFAULT_DIRS:function(){return em},ESLINT_PROMPT_VALUES:function(){return eg},SERVER_RUNTIME:function(){return eb},WEBPACK_LAYERS:function(){return eR},WEBPACK_RESOURCE_QUERIES:function(){return eS}});let n="nxtP",o="x-prerender-revalidate",a="x-prerender-revalidate-if-generated",u="x-nextjs-postponed",i="x-next-cache-tags",s="x-next-cache-soft-tags",d="x-next-revalidated-tags",p="x-next-revalidate-tag-token",_=256,m=1024,b="_N_T_",j=31536e3,C="middleware",w=`(?:src/)?${C}`,D="instrumentation",U="private-next-pages",B="private-dot-next",$="private-next-root-dir",K="private-next-app-dir",q="private-next-rsc-mod-ref-proxy",ee="private-next-rsc-action-validate",et="private-next-rsc-action-proxy",er="private-next-rsc-action-encryption",en="private-next-rsc-action-client-wrapper",eo="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",eu="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",el="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",ei="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",ec="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",es="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",ef="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",ed="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",ep="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",eh="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",e_='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',ey="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",em=["app","pages","components","lib","src"],eg=[{title:"Strict",recommended:!0,config:{extends:"next/core-web-vitals"}},{title:"Base",config:{extends:"next"}},{title:"Cancel",config:null}],eb={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},ev={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",api:"api",middleware:"middleware",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",appMetadataRoute:"app-metadata-route",appRouteHandler:"app-route-handler"},eR={...ev,GROUP:{server:[ev.reactServerComponents,ev.actionBrowser,ev.appMetadataRoute,ev.appRouteHandler],nonClientServerTarget:[ev.middleware,ev.api],app:[ev.reactServerComponents,ev.actionBrowser,ev.appMetadataRoute,ev.appRouteHandler,ev.serverSideRendering,ev.appPagesBrowser]}},eS={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}},99634:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getSegmentParam",{enumerable:!0,get:function(){return getSegmentParam}});let o=n(24488);function getSegmentParam(t){let r=o.INTERCEPTION_ROUTE_MARKERS.find(r=>t.startsWith(r));return(r&&(t=t.slice(r.length)),t.startsWith("[[...")&&t.endsWith("]]"))?{type:"optional-catchall",param:t.slice(5,-2)}:t.startsWith("[...")&&t.endsWith("]")?{type:"catchall",param:t.slice(4,-1)}:t.startsWith("[")&&t.endsWith("]")?{type:"dynamic",param:t.slice(1,-1)}:null}},24488:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(t,r){for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]})}(r,{INTERCEPTION_ROUTE_MARKERS:function(){return a},isInterceptionRouteAppPath:function(){return isInterceptionRouteAppPath},extractInterceptionRouteInformation:function(){return extractInterceptionRouteInformation}});let o=n(8955),a=["(..)(..)","(.)","(..)","(...)"];function isInterceptionRouteAppPath(t){return void 0!==t.split("/").find(t=>a.find(r=>t.startsWith(r)))}function extractInterceptionRouteInformation(t){let r,n,u;for(let o of t.split("/"))if(n=a.find(t=>o.startsWith(t))){[r,u]=t.split(n,2);break}if(!r||!n||!u)throw Error(`Invalid interception route: ${t}. Must be in the format //(..|...|..)(..)/`);switch(r=(0,o.normalizeAppPath)(r),n){case"(.)":u="/"===r?`/${u}`:r+"/"+u;break;case"(..)":if("/"===r)throw Error(`Invalid interception route: ${t}. Cannot use (..) marker at the root level, use (.) instead.`);u=r.split("/").slice(0,-1).concat(u).join("/");break;case"(...)":u="/"+u;break;case"(..)(..)":let i=r.split("/");if(i.length<=2)throw Error(`Invalid interception route: ${t}. Cannot use (..)(..) marker at the root level or one level up.`);u=i.slice(0,-2).concat(u).join("/");break;default:throw Error("Invariant: unexpected marker")}return{interceptingRoute:r,interceptedRoute:u}}},39382:function(t,r,n){"use strict";function _class_private_field_loose_base(t,r){if(!Object.prototype.hasOwnProperty.call(t,r))throw TypeError("attempted to use private field on non-instance");return t}n.r(r),n.d(r,{_:function(){return _class_private_field_loose_base},_class_private_field_loose_base:function(){return _class_private_field_loose_base}})},97666:function(t,r,n){"use strict";n.r(r),n.d(r,{_:function(){return _class_private_field_loose_key},_class_private_field_loose_key:function(){return _class_private_field_loose_key}});var o=0;function _class_private_field_loose_key(t){return"__private_"+o+++"_"+t}},97295:function(t,r,n){"use strict";function _interop_require_default(t){return t&&t.__esModule?t:{default:t}}n.r(r),n.d(r,{_:function(){return _interop_require_default},_interop_require_default:function(){return _interop_require_default}})},3589:function(t,r,n){"use strict";function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(_getRequireWildcardCache=function(t){return t?n:r})(t)}function _interop_require_wildcard(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=_getRequireWildcardCache(r);if(n&&n.has(t))return n.get(t);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&Object.prototype.hasOwnProperty.call(t,u)){var i=a?Object.getOwnPropertyDescriptor(t,u):null;i&&(i.get||i.set)?Object.defineProperty(o,u,i):o[u]=t[u]}return o.default=t,n&&n.set(t,o),o}n.r(r),n.d(r,{_:function(){return _interop_require_wildcard},_interop_require_wildcard:function(){return _interop_require_wildcard}})}}]); \ No newline at end of file diff --git a/_next/static/chunks/6419.5cc6754bcd79a773.js b/_next/static/chunks/6419.5cc6754bcd79a773.js new file mode 100644 index 0000000..17aa228 --- /dev/null +++ b/_next/static/chunks/6419.5cc6754bcd79a773.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6419],{26419:function(n,t,e){e.r(t),e.d(t,{default:function(){return i}});var i='{\n "connect_wallet": {\n "label": "ウォレットを接続",\n "wrong_network": {\n "label": "ネットワークが間違っています"\n }\n },\n "intro": {\n "title": "ウォレットとは何ですか?",\n "description": "ウォレットは、デジタルアセットを送信、受信、保存、表示するために使用されます。また、各ウェブサイトで新たなアカウントやパスワードを作成する必要なく、ログインする新しい方法でもあります。",\n "digital_asset": {\n "title": "あなたのデジタル資産のための家",\n "description": "ウォレットは、EthereumやNFTのようなデジタル資産を送信、受信、保存、表示するために使用されます。"\n },\n "login": {\n "title": "新しいログイン方法",\n "description": "すべてのウェブサイトで新しいアカウントとパスワードを作成する代わりに、ウォレットを接続します。"\n },\n "get": {\n "label": "ウォレットを取得する"\n },\n "learn_more": {\n "label": "詳しくはこちら"\n }\n },\n "sign_in": {\n "label": "アカウントを確認する",\n "description": "接続を完了するには、このアカウントの所有者であることを証明するためにウォレットでメッセージに署名する必要があります。",\n "message": {\n "send": "メッセージを送信",\n "preparing": "メッセージの準備中...",\n "cancel": "キャンセル",\n "preparing_error": "メッセージの準備中にエラーが発生しました、再試行してください!"\n },\n "signature": {\n "waiting": "署名を待っています...",\n "verifying": "署名を検証中...",\n "signing_error": "メッセージの署名中にエラーが発生しました、再試行してください!",\n "verifying_error": "署名の検証中にエラーが発生しました、再試行してください!",\n "oops_error": "おっと、何かが間違っていました!"\n }\n },\n "connect": {\n "label": "接続",\n "title": "ウォレットを接続する",\n "new_to_ethereum": {\n "description": "Ethereumのウォレットが初めてですか?",\n "learn_more": {\n "label": "詳しくはこちら"\n }\n },\n "learn_more": {\n "label": "詳しくはこちら"\n },\n "recent": "最近利用しました",\n "status": {\n "opening": "%{wallet}を開いています...",\n "connecting": "接続中",\n "connect_mobile": "%{wallet}で続行",\n "not_installed": "%{wallet} はインストールされていません",\n "not_available": "%{wallet} は利用できません",\n "confirm": "エクステンションで接続を確認してください",\n "confirm_mobile": "ウォレットでの接続リクエストを承認する"\n },\n "secondary_action": {\n "get": {\n "description": "%{wallet}がありませんか?",\n "label": "取得"\n },\n "install": {\n "label": "インストール"\n },\n "retry": {\n "label": "再試行"\n }\n },\n "walletconnect": {\n "description": {\n "full": "公式のWalletConnectモーダルが必要ですか?",\n "compact": "WalletConnectモーダルが必要ですか?"\n },\n "open": {\n "label": "開く"\n }\n }\n },\n "connect_scan": {\n "title": "%{wallet}でスキャン",\n "fallback_title": "携帯電話でスキャンしてください"\n },\n "connector_group": {\n "installed": "インストール済み",\n "recommended": "おすすめのウォレット",\n "other": "その他",\n "popular": "人気のウォレット",\n "more": "もっと",\n "others": "その他"\n },\n "get": {\n "title": "ウォレットを取得",\n "action": {\n "label": "取得"\n },\n "mobile": {\n "description": "モバイルウォレット"\n },\n "extension": {\n "description": "ブラウザ拡張"\n },\n "mobile_and_extension": {\n "description": "モバイルウォレットと拡張機能"\n },\n "mobile_and_desktop": {\n "description": "モバイルとデスクトップウォレット"\n },\n "looking_for": {\n "title": "お探しのウォレットがありませんか?",\n "mobile": {\n "description": "メイン画面でウォレットを選択し、異なるウォレットプロバイダーで始めてください。"\n },\n "desktop": {\n "compact_description": "メイン画面でウォレットを選択し、異なるウォレットプロバイダーで始めてください。",\n "wide_description": "左側のウォレットを選択して、別のウォレットプロバイダーで始めてください。"\n }\n }\n },\n "get_options": {\n "title": "%{wallet}で始める",\n "short_title": "%{wallet}を取得する",\n "mobile": {\n "title": "モバイル用 %{wallet}",\n "description": "モバイルウォレットを使用して、イーサリアムの世界を探索します。",\n "download": {\n "label": "アプリを取得"\n }\n },\n "extension": {\n "title": "%{wallet} for %{browser}",\n "description": "お好きなウェブブラウザからウォレットに直接アクセスします。",\n "download": {\n "label": "%{browser}に追加"\n }\n },\n "desktop": {\n "title": "%{wallet} for %{platform}",\n "description": "あなたの強力なデスクトップからネイティブにウォレットにアクセスします。",\n "download": {\n "label": "%{platform}に追加する"\n }\n }\n },\n "get_mobile": {\n "title": "%{wallet}をインストール",\n "description": "iOSまたはAndroidでダウンロードするために電話でスキャン",\n "continue": {\n "label": "続行"\n }\n },\n "get_instructions": {\n "mobile": {\n "connect": {\n "label": "接続"\n },\n "learn_more": {\n "label": "詳しくはこちら"\n }\n },\n "extension": {\n "refresh": {\n "label": "更新"\n },\n "learn_more": {\n "label": "詳しくはこちら"\n }\n },\n "desktop": {\n "connect": {\n "label": "接続"\n },\n "learn_more": {\n "label": "詳しくはこちら"\n }\n }\n },\n "chains": {\n "title": "ネットワークを切り替える",\n "wrong_network": "誤ったネットワークが検出されました、続行するには切り替えるか切断してください。",\n "confirm": "ウォレットで確認する",\n "switching_not_supported": "あなたのウォレットは %{appName}からネットワークを切り替えることをサポートしていません。ウォレット内でネットワークを切り替えてみてください。",\n "switching_not_supported_fallback": "あなたのウォレットは、このアプリからネットワークを切り替えることをサポートしていません。代わりにウォレット内からネットワークを切り替えてみてください。",\n "disconnect": "切断する",\n "connected": "接続しました"\n },\n "profile": {\n "disconnect": {\n "label": "切断する"\n },\n "copy_address": {\n "label": "アドレスをコピーする",\n "copied": "コピーしました!"\n },\n "explorer": {\n "label": "エクスプローラーで詳しく見る"\n },\n "transactions": {\n "description": "%{appName} トランザクションがここに表示されます...",\n "description_fallback": "あなたのトランザクションはここに表示されます...",\n "recent": {\n "title": "最近のトランザクション"\n },\n "clear": {\n "label": "すべてクリア"\n }\n }\n },\n "wallet_connectors": {\n "argent": {\n "qr_code": {\n "step1": {\n "description": "より速くウォレットにアクセスするために、Argentをホーム画面に置いてください。",\n "title": "Argentアプリを開く"\n },\n "step2": {\n "description": "ウォレットとユーザーネームを作成するか、既存のウォレットをインポートします。",\n "title": "ウォレットを作成またはインポート"\n },\n "step3": {\n "description": "スキャン後、ウォレットを接続するための接続プロンプトが表示されます。",\n "title": "「QRをスキャン」ボタンをタップします"\n }\n }\n },\n "bifrost": {\n "qr_code": {\n "step1": {\n "description": "より速くアクセスできるように、Bifrost Walletをホーム画面に置くことをお勧めします。",\n "title": "Bifrost Walletアプリを開きます"\n },\n "step2": {\n "description": "リカバリーフレーズを使用してウォレットを作成またはインポートします。",\n "title": "ウォレットを作成またはインポート"\n },\n "step3": {\n "description": "スキャン後、ウォレットを接続するための接続プロンプトが表示されます。",\n "title": "「スキャン」ボタンをタップします"\n }\n }\n },\n "bitget": {\n "qr_code": {\n "step1": {\n "description": "より迅速なアクセスのために、ホーム画面にBitget Walletを配置することをお勧めします。",\n "title": "Bitget Walletアプリを開く"\n },\n "step2": {\n "description": "ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。",\n "title": "ウォレットを作成またはインポート"\n },\n "step3": {\n "description": "スキャン後、ウォレットを接続するための接続プロンプトが表示されます。",\n "title": "スキャンボタンをタップする"\n }\n },\n "extension": {\n "step1": {\n "description": "ウォレットへのより迅速なアクセスのためにBitget Walletをタスクバーにピン留めすることをお勧めします。",\n "title": "Bitget Wallet拡張機能をインストールします"\n },\n "step2": {\n "description": "ウォレットを安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。",\n "title": "ウォレットを作成またはインポートします"\n },\n "step3": {\n "description": "ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。",\n "title": "ブラウザを更新する"\n }\n }\n },\n "bitski": {\n "extension": {\n "step1": {\n "description": "ウォレットへの素早いアクセスのために、Bitskiをタスクバーにピン留めすることをお勧めします。",\n "title": "Bitskiエクステンションをインストールする"\n },\n "step2": {\n "description": "ウォレットを安全な方法でバックアップしてください。シークレットフレーズは誰とも共有しないでください。",\n "title": "ウォレットを作成するか、インポートする"\n },\n "step3": {\n "description": "ウォレットのセットアップが完了したら、以下をクリックしてブラウザを更新し、エクステンションを読み込みます。",\n "title": "ブラウザを更新する"\n }\n }\n },\n "bitverse": {\n "qr_code": {\n "step1": {\n "title": "Bitverse Walletアプリを開きます",\n "description": "より速くウォレットにアクセスするために、ホーム画面にBitverse Walletを追加してください。"\n },\n "step2": {\n "title": "ウォレットを作成またはインポート",\n "description": "新しいウォレットを作成するか、既存のものをインポートします。"\n },\n "step3": {\n "title": "QRアイコンをタップしてスキャン",\n "description": "ホーム画面のQRアイコンをタップし、コードをスキャンしてプロンプトを確認して接続します。"\n }\n }\n },\n "bloom": {\n "desktop": {\n "step1": {\n "title": "Bloom Walletアプリを開く",\n "description": "Bloom Walletをホーム画面に置くことをお勧めします。これにより、より迅速にアクセスできます。"\n },\n "step2": {\n "description": "リカバリーフレーズを使用してウォレットを作成またはインポートします。",\n "title": "ウォレットを作成またはインポート"\n },\n "step3": {\n "description": "ウォレットを持った後、Bloomを介して接続するには「Connect」をクリックします。アプリ内で接続を確認するプロンプトが表示されます。",\n "title": "「Connect」をクリック"\n }\n },\n "qr_code": {\n "step1": {\n "title": "Bloom Walletアプリを開く",\n "description": "Bloom Walletをホーム画面に置くことをお勧めします。これにより、より迅速にアクセスできます。"\n },\n "step2": {\n "description": "リカバリーフレーズを使用してウォレットを作成またはインポートします。",\n "title": "ウォレットを作成またはインポート"\n },\n "step3": {\n "description": "ウォレットを持った後、Bloomを介して接続するには「Connect」をクリックします。アプリ内で接続を確認するプロンプトが表示されます。",\n "title": "「Connect」をクリック"\n }\n }\n },\n "bybit": {\n "qr_code": {\n "step1": {\n "description": "より速くウォレットにアクセスするために、ホーム画面にBybitを追加することをお勧めします。",\n "title": "Bybitアプリを開きます"\n },\n "step2": {\n "description": "電話のバックアップ機能を使用して、ウォレットを簡単にバックアップすることができます。",\n "title": "ウォレットを作成またはインポート"\n },\n "step3": {\n "description": "スキャン後、ウォレットを接続するための接続プロンプトが表示されます。",\n "title": "「スキャン」ボタンをタップします"\n }\n },\n "extension": {\n "step1": {\n "description": "ブラウザの右上をクリックして、簡単にアクセスできるようにBybit Walletをピン留めしてください。",\n "title": "Bybit Wallet拡張機能をインストールします"\n },\n "step2": {\n "description": "新しいウォレットを作成するか、既存のものをインポートします。",\n "title": "ウォレットを作成またはインポートする"\n },\n "step3": {\n "description": "Bybit Walletの設定が完了したら、以下をクリックしてブラウザを更新し、拡張機能を読み込んでください。",\n "title": "ブラウザを更新する"\n }\n }\n },\n "coin98": {\n "qr_code": {\n "step1": {\n "description": "Coin98ウォレットをホーム画面に置くことで、ウォレットへのアクセスが高速化されることをお勧めします。",\n "title": "Coin98ウォレットアプリを開きます"\n },\n "step2": {\n "description": "電話のバックアップ機能を使用して、ウォレットを簡単にバックアップすることができます。",\n "title": "ウォレットを作成またはインポートする"\n },\n "step3": {\n "description": "スキャン後、ウォレットへの接続を促すプロンプトが表示されます。",\n "title": "WalletConnectボタンをタップします"\n }\n },\n "extension": {\n "step1": {\n "description": "ブラウザの右上をクリックして、Coin98ウォレットをピン留めして簡単にアクセスできるようにします。",\n "title": "Coin98ウォレットの拡張機能をインストールします"\n },\n "step2": {\n "description": "新しいウォレットを作成するか、既存のものをインポートします。",\n "title": "ウォレットを作成またはインポートする"\n },\n "step3": {\n "description": "Coin98ウォレットをセットアップしたら、下のリンクをクリックしてブラウザを更新し、拡張機能をロードします。",\n "title": "ブラウザを更新する"\n }\n }\n },\n "coinbase": {\n "qr_code": {\n "step1": {\n "description": "より素早くアクセスできるように、Coinbaseウォレットをホームスクリーンに置くことをお勧めします。",\n "title": "Coinbase Walletアプリを開く"\n },\n "step2": {\n "description": "クラウドバックアップ機能を使用して、簡単にウォレットをバックアップできます。",\n "title": "ウォレットを作成またはインポートする"\n },\n "step3": {\n "description": "スキャン後、ウォレットを接続するための接続プロンプトが表示されます。",\n "title": "スキャンボタンをタップする"\n }\n },\n "extension": {\n "step1": {\n "description": "タスクバーにCoinbase Walletをピン留めして、ウォレットにより早くアクセスできるように推奨します。",\n "title": "Coinbase Wallet拡張機能をインストールする"\n },\n "step2": {\n "description": "必ず安全な方法を使用してウォレットをバックアップしてください。秘密のフレーズを誰にも共有しないでください。",\n "title": "ウォレットを作成またはインポート"\n },\n "step3": {\n "description": "ウォレットの設定が完了したら、下のボタンをクリックしてブラウザを更新し、拡張機能をロードします。",\n "title": "ブラウザを更新する"\n }\n }\n },\n "compass": {\n "extension": {\n "step1": {\n "description": "ウォレットへのアクセスをより早くするため、タスクバーにCompass Walletをピン留めすることを推奨します。",\n "title": "Compass Wallet拡張機能をインストールする"\n },\n "step2": {\n "description": "ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。",\n "title": "ウォレットを作成またはインポート"\n },\n "step3": {\n "description": "ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。",\n "title": "ブラウザを更新する"\n }\n }\n },\n "core": {\n "qr_code": {\n "step1": {\n "description": "ウォレットへの迅速なアクセスのため、コアをホーム画面に設定することを推奨します。",\n "title": "Coreアプリを開く"\n },\n "step2": {\n "description": "電話のバックアップ機能を使って、簡単にウォレットをバックアップできます。",\n "title": "ウォレットを作成またはインポート"\n },\n "step3": {\n "description": "スキャン後、ウォレットを接続するようにプロンプトが表示されます。",\n "title": "WalletConnectボタンをタップする"\n }\n },\n "extension": {\n "step1": {\n "description": "ウォレットへのより迅速なアクセスのために、タスクバーにCoreをピン留めすることをお勧めします。",\n "title": "Core拡張機能をインストールする"\n },\n "step2": {\n "description": "セキュアな方法を使用してウォレットをバックアップしてください。秘密のフレーズを誰とも共有しないでください。",\n "title": "ウォレットを作成またはインポートする"\n },\n "step3": {\n "description": "ウォレットの設定が完了したら、以下をクリックしてブラウザを更新し、拡張機能をロードします。",\n "title": "ブラウザを更新する"\n }\n }\n },\n "fox": {\n "qr_code": {\n "step1": {\n "description": "より迅速なアクセスのために、ホーム画面にFoxWalletを置くことをお勧めします。",\n "title": "FoxWalletアプリを開く"\n },\n "step2": {\n "description": "セキュアな方法を使用してウォレットをバックアップすることを確認してください。秘密のフレーズは誰とも共有しないでください。",\n "title": "ウォレットを作成またはインポート"\n },\n "step3": {\n "description": "スキャンした後、ウォレットを接続するための接続プロンプトが表示されます。",\n "title": "スキャンボタンをタップします"\n }\n }\n },\n "frontier": {\n "qr_code": {\n "step1": {\n "description": "Frontierウォレットをホーム画面に置くことで、より早くアクセスできることをお勧めします。",\n "title": "Frontierウォレットアプリを開きます"\n },\n "step2": {\n "description": "セキュアな方法を使用してウォレットをバックアップすることを確認してください。秘密のフレーズは誰とも共有しないでください。",\n "title": "ウォレットを作成またはインポート"\n },\n "step3": {\n "description": "スキャン後に、ウォレットの接続を促すメッセージが表示されます。",\n "title": "スキャンボタンをタップします"\n }\n },\n "extension": {\n "step1": {\n "description": "より迅速なウォレットへのアクセスを可能にするために、フロンティアウォレットをタスクバーにピン留めすることを推奨します。",\n "title": "フロンティアウォレットの拡張機能をインストールします"\n },\n "step2": {\n "description": "安全な方法を使用してウォレットをバックアップしてください。秘密のフレーズは決して誰とも共有しないでください。",\n "title": "ウォレットを作成またはインポート"\n },\n "step3": {\n "description": "ウォレットの設定が完了したら、ブラウザを更新して拡張機能を読み込みます。",\n "title": "ブラウザを更新する"\n }\n }\n },\n "im_token": {\n "qr_code": {\n "step1": {\n "title": "imTokenアプリを開く",\n "description": "ウォレットへのアクセスを速くするために、imTokenアプリをホーム画面に置いてください。"\n },\n "step2": {\n "title": "ウォレットを作成またはインポート",\n "description": "新しいウォレットを作成するか、既存のものをインポートします。"\n },\n "step3": {\n "title": "右上隅のスキャナーアイコンをタップします",\n "description": "新しい接続を選択し、QRコードをスキャンしてプロンプトを確認し接続します。"\n }\n }\n },\n "kaikas": {\n "extension": {\n "step1": {\n "description": "より早くウォレットにアクセスするために、タスクバーにKaikasをピン留めすることをお勧めします。",\n "title": "Kaikas拡張機能をインストールします"\n },\n "step2": {\n "description": "ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。",\n "title": "ウォレットを作成またはインポート"\n },\n "step3": {\n "description": "ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。",\n "title": "ブラウザを更新する"\n }\n },\n "qr_code": {\n "step1": {\n "title": "Kaikasアプリを開きます",\n "description": "より速くウォレットにアクセスするために、ホーム画面にKaikasアプリを追加してください。"\n },\n "step2": {\n "title": "ウォレットを作成またはインポート",\n "description": "新しいウォレットを作成するか、既存のものをインポートします。"\n },\n "step3": {\n "title": "右上隅のスキャナーアイコンをタップします",\n "description": "新しい接続を選択し、QRコードをスキャンしてプロンプトを確認し接続します。"\n }\n }\n },\n "kraken": {\n "qr_code": {\n "step1": {\n "title": "Kraken Walletアプリを開く",\n "description": "ウォレットへのより迅速なアクセスのためにKraken Walletをホーム画面にピン留めすることをお勧めします。"\n },\n "step2": {\n "title": "ウォレットを作成またはインポート",\n "description": "新しいウォレットを作成するか、既存のものをインポートします。"\n },\n "step3": {\n "title": "QRアイコンをタップしてスキャン",\n "description": "ホーム画面のQRアイコンをタップし、コードをスキャンしてプロンプトを確認して接続します。"\n }\n }\n },\n "kresus": {\n "qr_code": {\n "step1": {\n "title": "Kresus Walletアプリを開く",\n "description": "ウォレットへの迅速なアクセスのため、Kresus Walletをホーム画面に追加してください。"\n },\n "step2": {\n "title": "ウォレットを作成またはインポート",\n "description": "新しいウォレットを作成するか、既存のものをインポートします。"\n },\n "step3": {\n "title": "QRアイコンをタップしてスキャン",\n "description": "ホーム画面のQRアイコンをタップし、コードをスキャンしてプロンプトを確認して接続します。"\n }\n }\n },\n "magicEden": {\n "extension": {\n "step1": {\n "title": "Magic Eden拡張機能をインストールする",\n "description": "ウォレットへの容易なアクセスのため、Magic Edenをタスクバーにピン留めすることを推奨します。"\n },\n "step2": {\n "title": "ウォレットを作成またはインポート",\n "description": "安全な方法を使用してウォレットをバックアップしてください。秘密の回復フレーズを誰とも共有しないでください。"\n },\n "step3": {\n "title": "ブラウザを更新する",\n "description": "ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。"\n }\n }\n },\n "metamask": {\n "qr_code": {\n "step1": {\n "title": "MetaMaskアプリを開きます",\n "description": "迅速なアクセスのために、MetaMaskをホーム画面に置くことをお勧めします。"\n },\n "step2": {\n "title": "ウォレットを作成またはインポートします",\n "description": "必ず安全な方法を使用してウォレットをバックアップしてください。秘密の回復フレーズを誰にも共有しないでください。"\n },\n "step3": {\n "title": "スキャンボタンをタップします",\n "description": "スキャンすると、ウォレットを接続するための接続プロンプトが表示されます。"\n }\n },\n "extension": {\n "step1": {\n "title": "MetaMaskの拡張機能をインストールします",\n "description": "ウォレットへのより速いアクセスのために、MetaMaskをタスクバーにピン留めすることをお勧めします。"\n },\n "step2": {\n "title": "ウォレットを作成またはインポート",\n "description": "安全な方法を使用してウォレットをバックアップし、秘密のフレーズを誰とも共有しないでください。"\n },\n "step3": {\n "title": "ブラウザを更新",\n "description": "ウォレットを設定した後は、下のリンクをクリックしてブラウザを更新し、エクステンションを読み込んでください。"\n }\n }\n },\n "okx": {\n "qr_code": {\n "step1": {\n "title": "OKX Walletアプリを開く",\n "description": "OKX Walletをホーム画面に配置して、より早くアクセスできるようにすることをお勧めします。"\n },\n "step2": {\n "title": "ウォレットを作成またはインポート",\n "description": "セキュアな方法を使ってウォレットをバックアップしてください。秘密フレーズは誰とも共有しないでください。"\n },\n "step3": {\n "title": "スキャンボタンをタップする",\n "description": "スキャン後、ウォレットを接続するための接続プロンプトが表示されます。"\n }\n },\n "extension": {\n "step1": {\n "title": "OKXウォレット拡張機能をインストールする",\n "description": "ウォレットへの迅速なアクセスのため、OKXウォレットをタスクバーにピン止めすることをお勧めします。"\n },\n "step2": {\n "title": "ウォレットを作成するか、インポートする",\n "description": "セキュアな方法を使ってウォレットをバックアップしてください。秘密フレーズは誰とも共有しないでください。"\n },\n "step3": {\n "title": "ブラウザを更新する",\n "description": "ウォレットを設定したら、下をクリックしてブラウザをリフレッシュし、拡張機能を読み込みます。"\n }\n }\n },\n "omni": {\n "qr_code": {\n "step1": {\n "title": "Omniアプリを開く",\n "description": "Omniをホーム画面に追加して、ウォレットへのアクセスを早めます。"\n },\n "step2": {\n "title": "ウォレットを作成またはインポート",\n "description": "新しいウォレットを作成するか、既存のものをインポートします。"\n },\n "step3": {\n "title": "QRアイコンをタップしてスキャン",\n "description": "ホーム画面のQRアイコンをタップし、コードをスキャンし、プロンプトを確認して接続します。"\n }\n }\n },\n "1inch": {\n "qr_code": {\n "step1": {\n "description": "より速くウォレットにアクセスするために、ホーム画面に1inch Walletを追加してください。",\n "title": "1inch Walletアプリを開きます"\n },\n "step2": {\n "description": "ウォレットとユーザーネームを作成するか、既存のウォレットをインポートします。",\n "title": "ウォレットを作成またはインポート"\n },\n "step3": {\n "description": "スキャン後、ウォレットを接続するための接続プロンプトが表示されます。",\n "title": "「QRをスキャン」ボタンをタップします"\n }\n }\n },\n "token_pocket": {\n "qr_code": {\n "step1": {\n "title": "TokenPocketアプリを開く",\n "description": "より速いアクセスのために、TokenPocketをホーム画面に置くことをお勧めします。"\n },\n "step2": {\n "title": "ウォレットを作成またはインポートする",\n "description": "必ず安全な方法を使用してウォレットをバックアップしてください。秘密の回復フレーズを誰にも共有しないでください。"\n },\n "step3": {\n "title": "スキャンボタンをタップする",\n "description": "スキャン後、ウォレットを接続するための接続プロンプトが表示されます。"\n }\n },\n "extension": {\n "step1": {\n "title": "TokenPocketエクステンションをインストールする",\n "description": "ウォレットへのより早いアクセスのために、TokenPocketをタスクバーにピン留めすることをお勧めします。"\n },\n "step2": {\n "title": "ウォレットを作成またはインポート",\n "description": "ウォレットを安全な方法でバックアップすることを確認してください。シークレットフレーズを決して他の人と共有しないでください。"\n },\n "step3": {\n "title": "ブラウザを更新",\n "description": "ウォレットのセットアップが完了したら、以下をクリックしてブラウザを更新し、拡張機能をロードします。"\n }\n }\n },\n "trust": {\n "qr_code": {\n "step1": {\n "title": "Trust Walletアプリを開く",\n "description": "ウォレットへの高速アクセスのために、Trust Walletをホーム画面に置きます。"\n },\n "step2": {\n "title": "ウォレットを作成またはインポート",\n "description": "新しいウォレットを作成するか、既存のものをインポートします。"\n },\n "step3": {\n "title": "設定でWalletConnectをタップします",\n "description": "新しい接続を選択し、QRコードをスキャンして、プロンプトで接続を確認します。"\n }\n },\n "extension": {\n "step1": {\n "title": "Trust Wallet拡張機能をインストールします",\n "description": "ブラウザの右上をクリックし、Trust Walletをピン留めして簡単にアクセスできるようにします。"\n },\n "step2": {\n "title": "ウォレットを作成するかインポートします",\n "description": "新しいウォレットを作成するか、既存のものをインポートします。"\n },\n "step3": {\n "title": "ブラウザを更新する",\n "description": "Trust Walletの設定が完了したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。"\n }\n }\n },\n "uniswap": {\n "qr_code": {\n "step1": {\n "title": "Uniswapアプリを開く",\n "description": "Uniswapウォレットをホーム画面に追加して、ウォレットへのアクセスを高速化します。"\n },\n "step2": {\n "title": "ウォレットを作成またはインポートする",\n "description": "新しいウォレットを作成するか、既存のものをインポートします。"\n },\n "step3": {\n "title": "QRアイコンをタップしてスキャンする",\n "description": "ホーム画面のQRアイコンをタップし、コードをスキャンしてプロンプトを確認して接続します。"\n }\n }\n },\n "zerion": {\n "qr_code": {\n "step1": {\n "title": "Zerionアプリを開く",\n "description": "より速くアクセスするために、Zerionをホーム画面に置くことをお勧めします。"\n },\n "step2": {\n "title": "ウォレットを作成するか、インポートする",\n "description": "必ず安全な方法を使用してウォレットをバックアップしてください。秘密の回復フレーズを誰にも共有しないでください。"\n },\n "step3": {\n "title": "スキャンボタンを押す",\n "description": "スキャンした後、ウォレットを接続するための接続プロンプトが表示されます。"\n }\n },\n "extension": {\n "step1": {\n "title": "Zerion拡張機能をインストールする",\n "description": "ウォレットへの素早いアクセスのため、Zerionをタスクバーにピン留めすることをお勧めします。"\n },\n "step2": {\n "title": "ウォレットを作成またはインポート",\n "description": "ウォレットをセキュアな方法でバックアップすることを確認してください。秘密のフレーズを誰とも共有しないでください。"\n },\n "step3": {\n "title": "ブラウザを更新する",\n "description": "ウォレットをセットアップしたら、下のボタンをクリックしてブラウザを更新し、拡張機能をロードします。"\n }\n }\n },\n "rainbow": {\n "qr_code": {\n "step1": {\n "title": "Rainbowアプリを開く",\n "description": "ウォレットへの早いアクセスのために、Rainbowをホーム画面に置くことをおすすめします。"\n },\n "step2": {\n "title": "ウォレットを作成またはインポート",\n "description": "電話のバックアップ機能を使用して、簡単にウォレットをバックアップすることができます。"\n },\n "step3": {\n "title": "スキャンボタンをタップする",\n "description": "スキャンした後、ウォレットを接続するための接続プロンプトが表示されます。"\n }\n }\n },\n "enkrypt": {\n "extension": {\n "step1": {\n "description": "ウォレットへのアクセスをより早くするため、タスクバーにEnkrypt Walletをピン留めすることを推奨します。",\n "title": "Enkrypt Wallet拡張機能をインストールしてください"\n },\n "step2": {\n "description": "安全な方法でウォレットのバックアップを必ず取り、秘密のフレーズを誰とも共有しないでください。",\n "title": "ウォレットを作成するか、インポートする"\n },\n "step3": {\n "description": "ウォレットの設定が完了したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。",\n "title": "ブラウザを更新する"\n }\n }\n },\n "frame": {\n "extension": {\n "step1": {\n "description": "ウォレットへのアクセスをより早くするため、タスクバーにFrameをピン留めすることを推奨します。",\n "title": "Frameとその付属の拡張機能をインストール"\n },\n "step2": {\n "description": "ウォレットを安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。",\n "title": "ウォレットを作成、またはインポート"\n },\n "step3": {\n "description": "ウォレットの設定が完了したら、下のリンクをクリックしてブラウザを更新し、拡張機能をロードします。",\n "title": "ブラウザを更新"\n }\n }\n },\n "one_key": {\n "extension": {\n "step1": {\n "title": "OneKey Wallet拡張機能をインストール",\n "description": "ウォレットへのアクセスを素早く行うため、OneKey Walletをタスクバーにピン留めすることをお勧めします。"\n },\n "step2": {\n "title": "ウォレットを作成、またはインポート",\n "description": "安全な方法を使用してウォレットをバックアップしてください。秘密のフレーズを誰とも共有しないでください。"\n },\n "step3": {\n "title": "ブラウザを更新する",\n "description": "ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能をロードします。"\n }\n }\n },\n "phantom": {\n "extension": {\n "step1": {\n "title": "Phantom拡張機能をインストールする",\n "description": "ウォレットへの容易なアクセスのため、Phantomをタスクバーにピン留めすることを推奨します。"\n },\n "step2": {\n "title": "ウォレットを作成またはインポートする",\n "description": "安全な方法を使用してウォレットをバックアップしてください。秘密の回復フレーズを誰とも共有しないでください。"\n },\n "step3": {\n "title": "ブラウザを更新する",\n "description": "ウォレットの設定が完了したら、以下をクリックしてブラウザを更新し、エクステンションを読み込みます。"\n }\n }\n },\n "rabby": {\n "extension": {\n "step1": {\n "title": "Rabbyエクステンションをインストールする",\n "description": "ウォレットへの素早いアクセスのため、タスクバーにRabbyをピン止めすることをお勧めします。"\n },\n "step2": {\n "title": "ウォレットを作成またはインポート",\n "description": "セキュアな方法を使用してウォレットをバックアップしてください。秘密のフレーズを誰とも共有しないでください。"\n },\n "step3": {\n "title": "ブラウザを更新",\n "description": "ウォレットの設定が完了したら、以下をクリックしてブラウザを更新し、拡張機能をロードします。"\n }\n }\n },\n "ronin": {\n "qr_code": {\n "step1": {\n "description": "ウォレットへのより速いアクセスのため、Ronin Walletをホーム画面に設定することを推奨します。",\n "title": "Ronin Walletアプリを開く"\n },\n "step2": {\n "description": "ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。",\n "title": "ウォレットを作成またはインポート"\n },\n "step3": {\n "description": "スキャン後、ウォレットを接続するための接続プロンプトが表示されます。",\n "title": "「スキャン」ボタンをタップします"\n }\n },\n "extension": {\n "step1": {\n "description": "ウォレットへのより速いアクセスのため、タスクバーにRonin Walletをピン留めすることを推奨します。",\n "title": "Ronin Walletの拡張機能をインストールする"\n },\n "step2": {\n "description": "ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。",\n "title": "ウォレットを作成またはインポート"\n },\n "step3": {\n "description": "ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。",\n "title": "ブラウザを更新する"\n }\n }\n },\n "ramper": {\n "extension": {\n "step1": {\n "title": "Ramperの拡張機能をインストールする",\n "description": "ウォレットへの容易なアクセスのため、タスクバーにRamperをピン留めすることを推奨します。"\n },\n "step2": {\n "title": "ウォレットを作成",\n "description": "ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。"\n },\n "step3": {\n "title": "ブラウザを更新する",\n "description": "ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。"\n }\n }\n },\n "safeheron": {\n "extension": {\n "step1": {\n "title": "コア拡張機能をインストール",\n "description": "ウォレットへの素早いアクセスのため、タスクバーにSafeheronをピン止めすることをお勧めします。"\n },\n "step2": {\n "title": "ウォレットを作成またはインポート",\n "description": "確実に安全な方法でウォレットをバックアップしてください。秘密のフレーズは決して誰とも共有しないでください。"\n },\n "step3": {\n "title": "ブラウザを更新する",\n "description": "ウォレットの設定が完了したら、以下をクリックしてブラウザを更新し、拡張機能をロードします。"\n }\n }\n },\n "taho": {\n "extension": {\n "step1": {\n "title": "Taho拡張機能をインストールする",\n "description": "ウォレットへのより迅速なアクセスのため、Tahoをタスクバーにピン留めすることをお勧めします。"\n },\n "step2": {\n "title": "ウォレットを作成するか、インポートする",\n "description": "確実に安全な方法でウォレットをバックアップしてください。秘密のフレーズは決して誰とも共有しないでください。"\n },\n "step3": {\n "title": "ブラウザを更新する",\n "description": "ウォレットの設定が完了したら、下をクリックしてブラウザを更新し、拡張機能をロードします。"\n }\n }\n },\n "talisman": {\n "extension": {\n "step1": {\n "title": "Talisman拡張機能をインストールする",\n "description": "ウォレットへのより早いアクセスのために、Talismanをタスクバーにピン留めすることをお勧めします。"\n },\n "step2": {\n "title": "Ethereumウォレットを作成するか、インポートする",\n "description": "ウォレットを安全な方法でバックアップしておくことを確認してください。リカバリーフレーズを誰とも共有しないでください。"\n },\n "step3": {\n "title": "ブラウザを更新する",\n "description": "ウォレットの設定が完了したら、下をクリックしてブラウザを更新し、拡張機能をロードします。"\n }\n }\n },\n "xdefi": {\n "extension": {\n "step1": {\n "title": "XDEFI Wallet拡張機能をインストールする",\n "description": "XDEFI Walletをタスクバーにピン留めすることで、ウォレットへのアクセスが速くなることをお勧めします。"\n },\n "step2": {\n "title": "ウォレットの作成またはインポート",\n "description": "ウォレットを安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。"\n },\n "step3": {\n "title": "ブラウザを更新する",\n "description": "ウォレットの設定が完了したら、以下をクリックしてブラウザを更新し、拡張機能をロードしてください。"\n }\n }\n },\n "zeal": {\n "extension": {\n "step1": {\n "title": "Zeal 拡張機能をインストール",\n "description": "ウォレットに素早くアクセスするために、タスクバーに Zeal をピン留めすることをお勧めします。"\n },\n "step2": {\n "title": "ウォレットを作成またはインポート",\n "description": "ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。"\n },\n "step3": {\n "title": "ブラウザを更新する",\n "description": "ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。"\n }\n }\n },\n "safepal": {\n "extension": {\n "step1": {\n "title": "SafePal Wallet拡張機能をインストールする",\n "description": "ブラウザの右上でクリックし、Easy AccessのためにSafePal Walletをピン留めします。"\n },\n "step2": {\n "title": "ウォレットを作成またはインポートする",\n "description": "新しいウォレットを作成するか、既存のものをインポートします。"\n },\n "step3": {\n "title": "ブラウザを更新する",\n "description": "SafePal Walletのセットアップが完了したら、以下をクリックしてブラウザをリフレッシュし、エクステンションをロードします。"\n }\n },\n "qr_code": {\n "step1": {\n "title": "SafePal Walletアプリを開く",\n "description": "SafePal Walletをホーム画面に置くことで、ウォレットへの素早いアクセスが可能になります。"\n },\n "step2": {\n "title": "ウォレットを作成またはインポート",\n "description": "新しいウォレットを作成するか、既存のものをインポートします。"\n },\n "step3": {\n "title": "設定でWalletConnectをタップします",\n "description": "新しい接続を選択し、QRコードをスキャンしてプロンプトを確認し接続します。"\n }\n }\n },\n "desig": {\n "extension": {\n "step1": {\n "title": "Desig拡張機能をインストール",\n "description": "あなたのウォレットへの簡単なアクセスのために、Desigをタスクバーにピン留めすることをお勧めします。"\n },\n "step2": {\n "title": "ウォレットを作成",\n "description": "ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。"\n },\n "step3": {\n "title": "ブラウザを更新する",\n "description": "ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。"\n }\n }\n },\n "subwallet": {\n "extension": {\n "step1": {\n "title": "SubWallet拡張機能をインストール",\n "description": "ウォレットへのより素早いアクセスのため、SubWalletをタスクバーにピン留めすることをお勧めします。"\n },\n "step2": {\n "title": "ウォレットを作成またはインポート",\n "description": "ウォレットを安全な方法でバックアップしておくことを確認してください。リカバリーフレーズを誰とも共有しないでください。"\n },\n "step3": {\n "title": "ブラウザを更新する",\n "description": "ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。"\n }\n },\n "qr_code": {\n "step1": {\n "title": "SubWalletアプリを開く",\n "description": "より迅速なアクセスのために、SubWalletをホーム画面に置くことをお勧めします。"\n },\n "step2": {\n "title": "ウォレットを作成またはインポート",\n "description": "ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。"\n },\n "step3": {\n "title": "「スキャン」ボタンをタップします",\n "description": "スキャン後、ウォレットを接続するための接続プロンプトが表示されます。"\n }\n }\n },\n "clv": {\n "extension": {\n "step1": {\n "title": "CLV Wallet拡張機能をインストール",\n "description": "ウォレットへのより素早いアクセスのため、CLV Walletをタスクバーにピン留めすることをお勧めします。"\n },\n "step2": {\n "title": "ウォレットを作成またはインポート",\n "description": "ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。"\n },\n "step3": {\n "title": "ブラウザを更新する",\n "description": "ウォレットを設定したら、以下をクリックしてブラウザを更新し、拡張機能を読み込みます。"\n }\n },\n "qr_code": {\n "step1": {\n "title": "CLV Walletアプリを開く",\n "description": "より迅速なアクセスのために、ホーム画面にCLV Walletを置くことをお勧めします。"\n },\n "step2": {\n "title": "ウォレットを作成またはインポート",\n "description": "ウォレットは安全な方法でバックアップしてください。秘密のフレーズを誰とも共有しないでください。"\n },\n "step3": {\n "title": "「スキャン」ボタンをタップします",\n "description": "スキャン後、ウォレットを接続するための接続プロンプトが表示されます。"\n }\n }\n },\n "okto": {\n "qr_code": {\n "step1": {\n "title": "Oktoアプリを開く",\n "description": "素早くアクセスするために、ホーム画面にOktoを追加します"\n },\n "step2": {\n "title": "MPCウォレットを作成する",\n "description": "アカウントを作成し、ウォレットを生成します"\n },\n "step3": {\n "title": "設定でWalletConnectをタップします",\n "description": "右上のScan QRアイコンをタップし、接続するためのプロンプトを確認します。"\n }\n }\n },\n "ledger": {\n "desktop": {\n "step1": {\n "title": "Ledger Liveアプリを開く",\n "description": "より速いアクセスのために、ホーム画面にLedger Liveを置くことを推奨します。"\n },\n "step2": {\n "title": "あなたのLedgerを設定する",\n "description": "新しいLedgerを設定するか、既存のものに接続します。"\n },\n "step3": {\n "title": "接続",\n "description": "スキャン後、ウォレットを接続するための接続プロンプトが表示されます。"\n }\n },\n "qr_code": {\n "step1": {\n "title": "Ledger Liveアプリを開く",\n "description": "より速いアクセスのために、ホーム画面にLedger Liveを置くことを推奨します。"\n },\n "step2": {\n "title": "あなたのLedgerを設定する",\n "description": "デスクトップアプリと同期するか、あなたのLedgerに接続することができます。"\n },\n "step3": {\n "title": "コードをスキャンする",\n "description": "WalletConnectをタップし、スキャナーに切り替えてください。スキャン後、ウォレットを接続するための接続プロンプトが表示されます。"\n }\n }\n }\n }\n}\n'}}]); \ No newline at end of file diff --git a/_next/static/chunks/6426.e603f579e6575af2.js b/_next/static/chunks/6426.e603f579e6575af2.js new file mode 100644 index 0000000..110b8b3 --- /dev/null +++ b/_next/static/chunks/6426.e603f579e6575af2.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6426],{6426:function(C,t,L){L.r(t),L.d(t,{default:function(){return e}});var e='data:image/svg+xml,%0A%0A%0A%0A'}}]); \ No newline at end of file diff --git a/_next/static/chunks/289.a25cdf6057682755.js b/_next/static/chunks/6457.691b3e3e7a377887.js similarity index 76% rename from _next/static/chunks/289.a25cdf6057682755.js rename to _next/static/chunks/6457.691b3e3e7a377887.js index 91a9e2f..dab93d7 100644 --- a/_next/static/chunks/289.a25cdf6057682755.js +++ b/_next/static/chunks/6457.691b3e3e7a377887.js @@ -1,4 +1,4 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[289],{15289:function(e,l,o){o.r(l),o.d(l,{WcmModal:function(){return rm},WcmQrCode:function(){return tx}});/** +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6457],{66457:function(e,l,o){o.r(l),o.d(l,{WcmModal:function(){return rd},WcmQrCode:function(){return t_}});/** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: BSD-3-Clause @@ -15,8 +15,8 @@ * @license * Copyright 2018 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */let ec=(ed=class extends directive_i{constructor(e){var l;if(super(e),1!==e.type||"class"!==e.name||(null===(l=e.strings)||void 0===l?void 0:l.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(l=>e[l]).join(" ")+" "}update(e,[l]){var o,n;if(void 0===this.it){for(let n in this.it=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(e=>""!==e))),l)!l[n]||(null===(o=this.nt)||void 0===o?void 0:o.has(n))||this.it.add(n);return this.render(l)}let s=e.element.classList;for(let e in this.it.forEach(e=>{e in l||(s.remove(e),this.it.delete(e))}),l){let o=!!l[e];o===this.it.has(e)||(null===(n=this.nt)||void 0===n?void 0:n.has(e))||(o?(s.add(e),this.it.add(e)):(s.remove(e),this.it.delete(e)))}return er}},(...e)=>({_$litDirective$:ed,values:e}));var ed,em,eh,ep,eu,eg,ew=o(30369);let ev={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},ef={ms:e=>1e3*e,s:e=>e/1e3},noop=()=>{},noopReturn=e=>e;function stopAnimation(e,l=!0){if(e&&"finished"!==e.playState)try{e.stop?e.stop():(l&&e.commitStyles(),e.cancel())}catch(e){}}let createAnimation=e=>e(),withControls=(e,l,o=ev.duration)=>new Proxy({animations:e.map(createAnimation).filter(Boolean),duration:o,options:l},eb),getActiveAnimation=e=>e.animations[0],eb={get:(e,l)=>{let o=getActiveAnimation(e);switch(l){case"duration":return e.duration;case"currentTime":return ef.s((null==o?void 0:o[l])||0);case"playbackRate":case"playState":return null==o?void 0:o[l];case"finished":return e.finished||(e.finished=Promise.all(e.animations.map(selectFinished)).catch(noop)),e.finished;case"stop":return()=>{e.animations.forEach(e=>stopAnimation(e))};case"forEachNative":return l=>{e.animations.forEach(o=>l(o,e))};default:return void 0===(null==o?void 0:o[l])?void 0:()=>e.animations.forEach(e=>e[l]())}},set:(e,l,o)=>{switch(l){case"currentTime":o=ef.ms(o);case"playbackRate":for(let n=0;ne.finished,isEasingGenerator=e=>"object"==typeof e&&!!e.createAnimation,is_number_es_isNumber=e=>"number"==typeof e,isEasingList=e=>Array.isArray(e)&&!is_number_es_isNumber(e[0]),mix=(e,l,o)=>-o*e+o*l+e,progress=(e,l,o)=>l-e==0?1:(o-e)/(l-e);function fillOffset(e,l){let o=e[e.length-1];for(let n=1;n<=l;n++){let s=progress(0,l,n);e.push(mix(o,1,s))}}function defaultOffset(e){let l=[0];return fillOffset(l,e-1),l}let wrap=(e,l,o)=>{let n=l-e;return((o-e)%n+n)%n+e};function getEasingForSegment(e,l){return isEasingList(e)?e[wrap(0,e.length,l)]:e}let clamp=(e,l,o)=>Math.min(Math.max(o,e),l);function interpolate(e,l=defaultOffset(e.length),o=noopReturn){let n=e.length,s=n-l.length;return s>0&&fillOffset(l,s),s=>{let c=0;for(;c(((1-3*o+3*l)*e+(3*o-6*l))*e+3*l)*e;function binarySubdivide(e,l,o,n,s){let c,d;let m=0;do(c=calcBezier(d=l+(o-l)/2,n,s)-e)>0?o=d:l=d;while(Math.abs(c)>1e-7&&++m<12);return d}function cubicBezier(e,l,o,n){if(e===l&&o===n)return noopReturn;let getTForX=l=>binarySubdivide(l,0,1,e,o);return e=>0===e||1===e?e:calcBezier(getTForX(e),l,n)}let steps=(e,l="end")=>o=>{o="end"===l?Math.min(o,.999):Math.max(o,.001);let n=o*e,s="end"===l?Math.floor(n):Math.ceil(n);return clamp(0,1,s/e)},isFunction=e=>"function"==typeof e,isCubicBezier=e=>Array.isArray(e)&&is_number_es_isNumber(e[0]),ey={ease:cubicBezier(.25,.1,.25,1),"ease-in":cubicBezier(.42,0,1,1),"ease-in-out":cubicBezier(.42,0,.58,1),"ease-out":cubicBezier(0,0,.58,1)},e_=/\((.*?)\)/;function easing_es_getEasingFunction(e){if(isFunction(e))return e;if(isCubicBezier(e))return cubicBezier(...e);if(ey[e])return ey[e];if(e.startsWith("steps")){let l=e_.exec(e);if(l){let e=l[1].split(",");return steps(parseFloat(e[0]),e[1].trim())}}return noopReturn}let Animation=class Animation{constructor(e,l=[0,1],{easing:o,duration:n=ev.duration,delay:s=ev.delay,endDelay:c=ev.endDelay,repeat:d=ev.repeat,offset:m,direction:h="normal",autoplay:p=!0}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=noopReturn,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise((e,l)=>{this.resolve=e,this.reject=l}),isEasingGenerator(o=o||ev.easing)){let e=o.createAnimation(l);o=e.easing,l=e.keyframes||l,n=e.duration||n}this.repeat=d,this.easing=isEasingList(o)?noopReturn:easing_es_getEasingFunction(o),this.updateDuration(n);let g=interpolate(l,m,isEasingList(o)?o.map(easing_es_getEasingFunction):noopReturn);this.tick=l=>{var o;let n=0;n=void 0!==this.pauseTime?this.pauseTime:(l-this.startTime)*this.rate,this.t=n,n/=1e3,n=Math.max(n-s,0),"finished"===this.playState&&void 0===this.pauseTime&&(n=this.totalDuration);let d=n/this.duration,m=Math.floor(d),p=d%1;!p&&d>=1&&(p=1),1===p&&m--;let f=m%2;("reverse"===h||"alternate"===h&&f||"alternate-reverse"===h&&!f)&&(p=1-p);let b=n>=this.totalDuration?1:Math.min(p,1),y=g(this.easing(b));e(y);let _=void 0===this.pauseTime&&("finished"===this.playState||n>=this.totalDuration+c);_?(this.playState="finished",null===(o=this.resolve)||void 0===o||o.call(this,y)):"idle"!==this.playState&&(this.frameRequestId=requestAnimationFrame(this.tick))},p&&this.play()}play(){let e=performance.now();this.playState="running",void 0!==this.pauseTime?this.startTime=e-this.pauseTime:this.startTime||(this.startTime=e),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var e;this.playState="idle",void 0!==this.frameRequestId&&cancelAnimationFrame(this.frameRequestId),null===(e=this.reject)||void 0===e||e.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(e){this.duration=e,this.totalDuration=e*(this.repeat+1)}get currentTime(){return this.t}set currentTime(e){void 0!==this.pauseTime||0===this.rate?this.pauseTime=e:this.startTime=performance.now()-e/this.rate}get playbackRate(){return this.rate}set playbackRate(e){this.rate=e}};var ex=o(14765);let MotionValue=class MotionValue{setAnimation(e){this.animation=e,null==e||e.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}};let e$=new WeakMap;function getAnimationData(e){return e$.has(e)||e$.set(e,{transforms:[],values:new Map}),e$.get(e)}function getMotionValue(e,l){return e.has(l)||e.set(l,new MotionValue),e.get(l)}function addUniqueItem(e,l){-1===e.indexOf(l)&&e.push(l)}let eC=["","X","Y","Z"],eA={x:"translateX",y:"translateY",z:"translateZ"},eE={syntax:"",initialValue:"0deg",toDefaultUnit:e=>e+"deg"},eO={translate:{syntax:"",initialValue:"0px",toDefaultUnit:e=>e+"px"},rotate:eE,scale:{syntax:"",initialValue:1,toDefaultUnit:noopReturn},skew:eE},ek=new Map,asTransformCssVar=e=>`--motion-${e}`,eT=["x","y","z"];["translate","scale","rotate","skew"].forEach(e=>{eC.forEach(l=>{eT.push(e+l),ek.set(asTransformCssVar(e+l),eO[e])})});let compareTransformOrder=(e,l)=>eT.indexOf(e)-eT.indexOf(l),eI=new Set(eT),isTransform=e=>eI.has(e),addTransformToElement=(e,l)=>{eA[l]&&(l=eA[l]);let{transforms:o}=getAnimationData(e);addUniqueItem(o,l),e.style.transform=buildTransformTemplate(o)},buildTransformTemplate=e=>e.sort(compareTransformOrder).reduce(transformListToString,"").trim(),transformListToString=(e,l)=>`${e} ${l}(var(${asTransformCssVar(l)}))`,isCssVar=e=>e.startsWith("--"),eS=new Set;function registerCssVariable(e){if(!eS.has(e)){eS.add(e);try{let{syntax:l,initialValue:o}=ek.has(e)?ek.get(e):{};CSS.registerProperty({name:e,inherits:!1,syntax:l,initialValue:o})}catch(e){}}}let testAnimation=(e,l)=>document.createElement("div").animate(e,l),eR={cssRegisterProperty:()=>"undefined"!=typeof CSS&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{testAnimation({opacity:[1]})}catch(e){return!1}return!0},finished:()=>!!testAnimation({opacity:[0,1]},{duration:.001}).finished,linearEasing:()=>{try{testAnimation({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0}},eP={},eM={};for(let e in eR)eM[e]=()=>(void 0===eP[e]&&(eP[e]=eR[e]()),eP[e]);let generateLinearEasingPoints=(e,l)=>{let o="",n=Math.round(l/.015);for(let l=0;lisFunction(e)?eM.linearEasing()?`linear(${generateLinearEasingPoints(e,l)})`:ev.easing:isCubicBezier(e)?cubicBezierAsString(e):e,cubicBezierAsString=([e,l,o,n])=>`cubic-bezier(${e}, ${l}, ${o}, ${n})`;function hydrateKeyframes(e,l){for(let o=0;oArray.isArray(e)?e:[e];function getStyleName(e){return eA[e]&&(e=eA[e]),isTransform(e)?asTransformCssVar(e):e}let eL={get:(e,l)=>{let o=isCssVar(l=getStyleName(l))?e.style.getPropertyValue(l):getComputedStyle(e)[l];if(!o&&0!==o){let e=ek.get(l);e&&(o=e.initialValue)}return o},set:(e,l,o)=>{isCssVar(l=getStyleName(l))?e.style.setProperty(l,o):e.style[l]=o}},isString=e=>"string"==typeof e;function getUnitConverter(e,l){var o;let n=(null==l?void 0:l.toDefaultUnit)||noopReturn,s=e[e.length-1];if(isString(s)){let e=(null===(o=s.match(/(-?[\d.]+)([a-z%]*)/))||void 0===o?void 0:o[2])||"";e&&(n=l=>l+e)}return n}function getDevToolsRecord(){return window.__MOTION_DEV_TOOLS_RECORD}function animateStyle(e,l,o,n={},s){let c;let d=getDevToolsRecord(),m=!1!==n.record&&d,{duration:h=ev.duration,delay:p=ev.delay,endDelay:g=ev.endDelay,repeat:f=ev.repeat,easing:b=ev.easing,persist:y=!1,direction:_,offset:x,allowWebkitAcceleration:$=!1,autoplay:C=!0}=n,A=getAnimationData(e),E=isTransform(l),O=eM.waapi();E&&addTransformToElement(e,l);let T=getStyleName(l),I=getMotionValue(A.values,T),W=ek.get(T);return stopAnimation(I.animation,!(isEasingGenerator(b)&&I.generator)&&!1!==n.record),()=>{let readInitialValue=()=>{var l,o;return null!==(o=null!==(l=eL.get(e,T))&&void 0!==l?l:null==W?void 0:W.initialValue)&&void 0!==o?o:0},A=hydrateKeyframes(keyframesList(o),readInitialValue),j=getUnitConverter(A,W);if(isEasingGenerator(b)){let e=b.createAnimation(A,"opacity"!==l,readInitialValue,T,I);b=e.easing,A=e.keyframes||A,h=e.duration||h}if(isCssVar(T)&&(eM.cssRegisterProperty()?registerCssVariable(T):O=!1),E&&!eM.linearEasing()&&(isFunction(b)||isEasingList(b)&&b.some(isFunction))&&(O=!1),O){W&&(A=A.map(e=>is_number_es_isNumber(e)?W.toDefaultUnit(e):e)),1===A.length&&(!eM.partialKeyframes()||m)&&A.unshift(readInitialValue());let l={delay:ef.ms(p),duration:ef.ms(h),endDelay:ef.ms(g),easing:isEasingList(b)?void 0:convertEasing(b,h),direction:_,iterations:f+1,fill:"both"};(c=e.animate({[T]:A,offset:x,easing:isEasingList(b)?b.map(e=>convertEasing(e,h)):void 0},l)).finished||(c.finished=new Promise((e,l)=>{c.onfinish=e,c.oncancel=l}));let o=A[A.length-1];c.finished.then(()=>{y||(eL.set(e,T,o),c.cancel())}).catch(noop),$||(c.playbackRate=1.000001)}else if(s&&E)1===(A=A.map(e=>"string"==typeof e?parseFloat(e):e)).length&&A.unshift(parseFloat(readInitialValue())),c=new s(l=>{eL.set(e,T,j?j(l):l)},A,Object.assign(Object.assign({},n),{duration:h,easing:b}));else{let l=A[A.length-1];eL.set(e,T,W&&is_number_es_isNumber(l)?W.toDefaultUnit(l):l)}return m&&d(e,l,A,{duration:h,delay:p,easing:b,repeat:f,offset:x},"motion-one"),I.setAnimation(c),c&&!C&&c.pause(),c}}let getOptions=(e,l)=>e[l]?Object.assign(Object.assign({},e),e[l]):Object.assign({},e);function resolveElements(e,l){var o;return"string"==typeof e?l?(null!==(o=l[e])&&void 0!==o||(l[e]=document.querySelectorAll(e)),e=l[e]):e=document.querySelectorAll(e):e instanceof Element&&(e=[e]),Array.from(e||[])}function resolveOption(e,l,o){return isFunction(e)?e(l,o):e}function createAnimate(e){return function(l,o,n={}){l=resolveElements(l);let s=l.length;(0,ex.k)(!!s,"No valid element provided."),(0,ex.k)(!!o,"No keyframes defined.");let c=[];for(let d=0;d{let o=new Animation(e,[0,1],l);return o.finished.catch(()=>{}),o}],l,l.duration)}function animate_es_animate(e,l,o){let n=isFunction(e)?animateProgress:eW;return n(e,l,o)}/** + */let ec=(ed=class extends directive_i{constructor(e){var l;if(super(e),1!==e.type||"class"!==e.name||(null===(l=e.strings)||void 0===l?void 0:l.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(l=>e[l]).join(" ")+" "}update(e,[l]){var o,n;if(void 0===this.it){for(let n in this.it=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(e=>""!==e))),l)!l[n]||(null===(o=this.nt)||void 0===o?void 0:o.has(n))||this.it.add(n);return this.render(l)}let s=e.element.classList;for(let e in this.it.forEach(e=>{e in l||(s.remove(e),this.it.delete(e))}),l){let o=!!l[e];o===this.it.has(e)||(null===(n=this.nt)||void 0===n?void 0:n.has(e))||(o?(s.add(e),this.it.add(e)):(s.remove(e),this.it.delete(e)))}return er}},(...e)=>({_$litDirective$:ed,values:e}));var ed,em,eh,ep,eu,eg,ew=o(30369);let ev={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},ef={ms:e=>1e3*e,s:e=>e/1e3},noop=()=>{},noopReturn=e=>e;function stopAnimation(e,l=!0){if(e&&"finished"!==e.playState)try{e.stop?e.stop():(l&&e.commitStyles(),e.cancel())}catch(e){}}let createAnimation=e=>e(),withControls=(e,l,o=ev.duration)=>new Proxy({animations:e.map(createAnimation).filter(Boolean),duration:o,options:l},eb),getActiveAnimation=e=>e.animations[0],eb={get:(e,l)=>{let o=getActiveAnimation(e);switch(l){case"duration":return e.duration;case"currentTime":return ef.s((null==o?void 0:o[l])||0);case"playbackRate":case"playState":return null==o?void 0:o[l];case"finished":return e.finished||(e.finished=Promise.all(e.animations.map(selectFinished)).catch(noop)),e.finished;case"stop":return()=>{e.animations.forEach(e=>stopAnimation(e))};case"forEachNative":return l=>{e.animations.forEach(o=>l(o,e))};default:return void 0===(null==o?void 0:o[l])?void 0:()=>e.animations.forEach(e=>e[l]())}},set:(e,l,o)=>{switch(l){case"currentTime":o=ef.ms(o);case"playbackRate":for(let n=0;ne.finished,isEasingGenerator=e=>"object"==typeof e&&!!e.createAnimation,is_number_es_isNumber=e=>"number"==typeof e,isEasingList=e=>Array.isArray(e)&&!is_number_es_isNumber(e[0]),mix=(e,l,o)=>-o*e+o*l+e,progress=(e,l,o)=>l-e==0?1:(o-e)/(l-e);function fillOffset(e,l){let o=e[e.length-1];for(let n=1;n<=l;n++){let s=progress(0,l,n);e.push(mix(o,1,s))}}function defaultOffset(e){let l=[0];return fillOffset(l,e-1),l}let wrap=(e,l,o)=>{let n=l-e;return((o-e)%n+n)%n+e};function getEasingForSegment(e,l){return isEasingList(e)?e[wrap(0,e.length,l)]:e}let clamp=(e,l,o)=>Math.min(Math.max(o,e),l);function interpolate(e,l=defaultOffset(e.length),o=noopReturn){let n=e.length,s=n-l.length;return s>0&&fillOffset(l,s),s=>{let c=0;for(;c(((1-3*o+3*l)*e+(3*o-6*l))*e+3*l)*e;function binarySubdivide(e,l,o,n,s){let c,d;let m=0;do(c=calcBezier(d=l+(o-l)/2,n,s)-e)>0?o=d:l=d;while(Math.abs(c)>1e-7&&++m<12);return d}function cubicBezier(e,l,o,n){if(e===l&&o===n)return noopReturn;let getTForX=l=>binarySubdivide(l,0,1,e,o);return e=>0===e||1===e?e:calcBezier(getTForX(e),l,n)}let steps=(e,l="end")=>o=>{o="end"===l?Math.min(o,.999):Math.max(o,.001);let n=o*e,s="end"===l?Math.floor(n):Math.ceil(n);return clamp(0,1,s/e)},isFunction=e=>"function"==typeof e,isCubicBezier=e=>Array.isArray(e)&&is_number_es_isNumber(e[0]),ey={ease:cubicBezier(.25,.1,.25,1),"ease-in":cubicBezier(.42,0,1,1),"ease-in-out":cubicBezier(.42,0,.58,1),"ease-out":cubicBezier(0,0,.58,1)},e_=/\((.*?)\)/;function easing_es_getEasingFunction(e){if(isFunction(e))return e;if(isCubicBezier(e))return cubicBezier(...e);if(ey[e])return ey[e];if(e.startsWith("steps")){let l=e_.exec(e);if(l){let e=l[1].split(",");return steps(parseFloat(e[0]),e[1].trim())}}return noopReturn}let Animation=class Animation{constructor(e,l=[0,1],{easing:o,duration:n=ev.duration,delay:s=ev.delay,endDelay:c=ev.endDelay,repeat:d=ev.repeat,offset:m,direction:h="normal",autoplay:p=!0}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=noopReturn,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise((e,l)=>{this.resolve=e,this.reject=l}),isEasingGenerator(o=o||ev.easing)){let e=o.createAnimation(l);o=e.easing,l=e.keyframes||l,n=e.duration||n}this.repeat=d,this.easing=isEasingList(o)?noopReturn:easing_es_getEasingFunction(o),this.updateDuration(n);let g=interpolate(l,m,isEasingList(o)?o.map(easing_es_getEasingFunction):noopReturn);this.tick=l=>{var o;let n=0;n=void 0!==this.pauseTime?this.pauseTime:(l-this.startTime)*this.rate,this.t=n,n/=1e3,n=Math.max(n-s,0),"finished"===this.playState&&void 0===this.pauseTime&&(n=this.totalDuration);let d=n/this.duration,m=Math.floor(d),p=d%1;!p&&d>=1&&(p=1),1===p&&m--;let f=m%2;("reverse"===h||"alternate"===h&&f||"alternate-reverse"===h&&!f)&&(p=1-p);let b=n>=this.totalDuration?1:Math.min(p,1),y=g(this.easing(b));e(y);let _=void 0===this.pauseTime&&("finished"===this.playState||n>=this.totalDuration+c);_?(this.playState="finished",null===(o=this.resolve)||void 0===o||o.call(this,y)):"idle"!==this.playState&&(this.frameRequestId=requestAnimationFrame(this.tick))},p&&this.play()}play(){let e=performance.now();this.playState="running",void 0!==this.pauseTime?this.startTime=e-this.pauseTime:this.startTime||(this.startTime=e),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var e;this.playState="idle",void 0!==this.frameRequestId&&cancelAnimationFrame(this.frameRequestId),null===(e=this.reject)||void 0===e||e.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(e){this.duration=e,this.totalDuration=e*(this.repeat+1)}get currentTime(){return this.t}set currentTime(e){void 0!==this.pauseTime||0===this.rate?this.pauseTime=e:this.startTime=performance.now()-e/this.rate}get playbackRate(){return this.rate}set playbackRate(e){this.rate=e}};var invariant=function(){};let MotionValue=class MotionValue{setAnimation(e){this.animation=e,null==e||e.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}};let ex=new WeakMap;function getAnimationData(e){return ex.has(e)||ex.set(e,{transforms:[],values:new Map}),ex.get(e)}function getMotionValue(e,l){return e.has(l)||e.set(l,new MotionValue),e.get(l)}function addUniqueItem(e,l){-1===e.indexOf(l)&&e.push(l)}let e$=["","X","Y","Z"],eC={x:"translateX",y:"translateY",z:"translateZ"},eA={syntax:"",initialValue:"0deg",toDefaultUnit:e=>e+"deg"},eE={translate:{syntax:"",initialValue:"0px",toDefaultUnit:e=>e+"px"},rotate:eA,scale:{syntax:"",initialValue:1,toDefaultUnit:noopReturn},skew:eA},eO=new Map,asTransformCssVar=e=>`--motion-${e}`,ek=["x","y","z"];["translate","scale","rotate","skew"].forEach(e=>{e$.forEach(l=>{ek.push(e+l),eO.set(asTransformCssVar(e+l),eE[e])})});let compareTransformOrder=(e,l)=>ek.indexOf(e)-ek.indexOf(l),eT=new Set(ek),isTransform=e=>eT.has(e),addTransformToElement=(e,l)=>{eC[l]&&(l=eC[l]);let{transforms:o}=getAnimationData(e);addUniqueItem(o,l),e.style.transform=buildTransformTemplate(o)},buildTransformTemplate=e=>e.sort(compareTransformOrder).reduce(transformListToString,"").trim(),transformListToString=(e,l)=>`${e} ${l}(var(${asTransformCssVar(l)}))`,isCssVar=e=>e.startsWith("--"),eI=new Set;function registerCssVariable(e){if(!eI.has(e)){eI.add(e);try{let{syntax:l,initialValue:o}=eO.has(e)?eO.get(e):{};CSS.registerProperty({name:e,inherits:!1,syntax:l,initialValue:o})}catch(e){}}}let testAnimation=(e,l)=>document.createElement("div").animate(e,l),eS={cssRegisterProperty:()=>"undefined"!=typeof CSS&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{testAnimation({opacity:[1]})}catch(e){return!1}return!0},finished:()=>!!testAnimation({opacity:[0,1]},{duration:.001}).finished,linearEasing:()=>{try{testAnimation({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0}},eR={},eP={};for(let e in eS)eP[e]=()=>(void 0===eR[e]&&(eR[e]=eS[e]()),eR[e]);let generateLinearEasingPoints=(e,l)=>{let o="",n=Math.round(l/.015);for(let l=0;lisFunction(e)?eP.linearEasing()?`linear(${generateLinearEasingPoints(e,l)})`:ev.easing:isCubicBezier(e)?cubicBezierAsString(e):e,cubicBezierAsString=([e,l,o,n])=>`cubic-bezier(${e}, ${l}, ${o}, ${n})`;function hydrateKeyframes(e,l){for(let o=0;oArray.isArray(e)?e:[e];function getStyleName(e){return eC[e]&&(e=eC[e]),isTransform(e)?asTransformCssVar(e):e}let eM={get:(e,l)=>{let o=isCssVar(l=getStyleName(l))?e.style.getPropertyValue(l):getComputedStyle(e)[l];if(!o&&0!==o){let e=eO.get(l);e&&(o=e.initialValue)}return o},set:(e,l,o)=>{isCssVar(l=getStyleName(l))?e.style.setProperty(l,o):e.style[l]=o}},isString=e=>"string"==typeof e;function getUnitConverter(e,l){var o;let n=(null==l?void 0:l.toDefaultUnit)||noopReturn,s=e[e.length-1];if(isString(s)){let e=(null===(o=s.match(/(-?[\d.]+)([a-z%]*)/))||void 0===o?void 0:o[2])||"";e&&(n=l=>l+e)}return n}function getDevToolsRecord(){return window.__MOTION_DEV_TOOLS_RECORD}function animateStyle(e,l,o,n={},s){let c;let d=getDevToolsRecord(),m=!1!==n.record&&d,{duration:h=ev.duration,delay:p=ev.delay,endDelay:g=ev.endDelay,repeat:f=ev.repeat,easing:b=ev.easing,persist:y=!1,direction:_,offset:x,allowWebkitAcceleration:$=!1,autoplay:C=!0}=n,A=getAnimationData(e),E=isTransform(l),O=eP.waapi();E&&addTransformToElement(e,l);let T=getStyleName(l),I=getMotionValue(A.values,T),W=eO.get(T);return stopAnimation(I.animation,!(isEasingGenerator(b)&&I.generator)&&!1!==n.record),()=>{let readInitialValue=()=>{var l,o;return null!==(o=null!==(l=eM.get(e,T))&&void 0!==l?l:null==W?void 0:W.initialValue)&&void 0!==o?o:0},A=hydrateKeyframes(keyframesList(o),readInitialValue),j=getUnitConverter(A,W);if(isEasingGenerator(b)){let e=b.createAnimation(A,"opacity"!==l,readInitialValue,T,I);b=e.easing,A=e.keyframes||A,h=e.duration||h}if(isCssVar(T)&&(eP.cssRegisterProperty()?registerCssVariable(T):O=!1),E&&!eP.linearEasing()&&(isFunction(b)||isEasingList(b)&&b.some(isFunction))&&(O=!1),O){W&&(A=A.map(e=>is_number_es_isNumber(e)?W.toDefaultUnit(e):e)),1===A.length&&(!eP.partialKeyframes()||m)&&A.unshift(readInitialValue());let l={delay:ef.ms(p),duration:ef.ms(h),endDelay:ef.ms(g),easing:isEasingList(b)?void 0:convertEasing(b,h),direction:_,iterations:f+1,fill:"both"};(c=e.animate({[T]:A,offset:x,easing:isEasingList(b)?b.map(e=>convertEasing(e,h)):void 0},l)).finished||(c.finished=new Promise((e,l)=>{c.onfinish=e,c.oncancel=l}));let o=A[A.length-1];c.finished.then(()=>{y||(eM.set(e,T,o),c.cancel())}).catch(noop),$||(c.playbackRate=1.000001)}else if(s&&E)1===(A=A.map(e=>"string"==typeof e?parseFloat(e):e)).length&&A.unshift(parseFloat(readInitialValue())),c=new s(l=>{eM.set(e,T,j?j(l):l)},A,Object.assign(Object.assign({},n),{duration:h,easing:b}));else{let l=A[A.length-1];eM.set(e,T,W&&is_number_es_isNumber(l)?W.toDefaultUnit(l):l)}return m&&d(e,l,A,{duration:h,delay:p,easing:b,repeat:f,offset:x},"motion-one"),I.setAnimation(c),c&&!C&&c.pause(),c}}let getOptions=(e,l)=>e[l]?Object.assign(Object.assign({},e),e[l]):Object.assign({},e);function resolveElements(e,l){var o;return"string"==typeof e?l?(null!==(o=l[e])&&void 0!==o||(l[e]=document.querySelectorAll(e)),e=l[e]):e=document.querySelectorAll(e):e instanceof Element&&(e=[e]),Array.from(e||[])}function resolveOption(e,l,o){return isFunction(e)?e(l,o):e}function createAnimate(e){return function(l,o,n={}){l=resolveElements(l);let s=l.length;invariant(!!s,"No valid element provided."),invariant(!!o,"No keyframes defined.");let c=[];for(let d=0;d{let o=new Animation(e,[0,1],l);return o.finished.catch(()=>{}),o}],l,l.duration)}function animate_es_animate(e,l,o){let n=isFunction(e)?animateProgress:eL;return n(e,l,o)}/** * @license * Copyright 2018 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */let if_defined_l=e=>null!=e?e:ei;var eD=o(20102),eN=Object.defineProperty,ej=Object.getOwnPropertySymbols,ez=Object.prototype.hasOwnProperty,eU=Object.prototype.propertyIsEnumerable,Ue=(e,l,o)=>l in e?eN(e,l,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[l]=o,ve=(e,l)=>{for(var o in l||(l={}))ez.call(l,o)&&Ue(e,o,l[o]);if(ej)for(var o of ej(l))eU.call(l,o)&&Ue(e,o,l[o]);return e};function rt(){var e;let l=null!=(e=ew.ThemeCtrl.state.themeMode)?e:"dark",o={light:{foreground:{1:"rgb(20,20,20)",2:"rgb(121,134,134)",3:"rgb(158,169,169)"},background:{1:"rgb(255,255,255)",2:"rgb(241,243,243)",3:"rgb(228,231,231)"},overlay:"rgba(0,0,0,0.1)"},dark:{foreground:{1:"rgb(228,231,231)",2:"rgb(148,158,158)",3:"rgb(110,119,119)"},background:{1:"rgb(20,20,20)",2:"rgb(39,42,42)",3:"rgb(59,64,64)"},overlay:"rgba(255,255,255,0.1)"}}[l];return{"--wcm-color-fg-1":o.foreground[1],"--wcm-color-fg-2":o.foreground[2],"--wcm-color-fg-3":o.foreground[3],"--wcm-color-bg-1":o.background[1],"--wcm-color-bg-2":o.background[2],"--wcm-color-bg-3":o.background[3],"--wcm-color-overlay":o.overlay}}function He(){return{"--wcm-accent-color":"#3396FF","--wcm-accent-fill-color":"#FFFFFF","--wcm-z-index":"89","--wcm-background-color":"#3396FF","--wcm-background-border-radius":"8px","--wcm-container-border-radius":"30px","--wcm-wallet-icon-border-radius":"15px","--wcm-wallet-icon-large-border-radius":"30px","--wcm-wallet-icon-small-border-radius":"7px","--wcm-input-border-radius":"28px","--wcm-button-border-radius":"10px","--wcm-notification-border-radius":"36px","--wcm-secondary-button-border-radius":"28px","--wcm-icon-button-border-radius":"50%","--wcm-button-hover-highlight-border-radius":"10px","--wcm-text-big-bold-size":"20px","--wcm-text-big-bold-weight":"600","--wcm-text-big-bold-line-height":"24px","--wcm-text-big-bold-letter-spacing":"-0.03em","--wcm-text-big-bold-text-transform":"none","--wcm-text-xsmall-bold-size":"10px","--wcm-text-xsmall-bold-weight":"700","--wcm-text-xsmall-bold-line-height":"12px","--wcm-text-xsmall-bold-letter-spacing":"0.02em","--wcm-text-xsmall-bold-text-transform":"uppercase","--wcm-text-xsmall-regular-size":"12px","--wcm-text-xsmall-regular-weight":"600","--wcm-text-xsmall-regular-line-height":"14px","--wcm-text-xsmall-regular-letter-spacing":"-0.03em","--wcm-text-xsmall-regular-text-transform":"none","--wcm-text-small-thin-size":"14px","--wcm-text-small-thin-weight":"500","--wcm-text-small-thin-line-height":"16px","--wcm-text-small-thin-letter-spacing":"-0.03em","--wcm-text-small-thin-text-transform":"none","--wcm-text-small-regular-size":"14px","--wcm-text-small-regular-weight":"600","--wcm-text-small-regular-line-height":"16px","--wcm-text-small-regular-letter-spacing":"-0.03em","--wcm-text-small-regular-text-transform":"none","--wcm-text-medium-regular-size":"16px","--wcm-text-medium-regular-weight":"600","--wcm-text-medium-regular-line-height":"20px","--wcm-text-medium-regular-letter-spacing":"-0.03em","--wcm-text-medium-regular-text-transform":"none","--wcm-font-family":"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', sans-serif","--wcm-font-feature-settings":"'tnum' on, 'lnum' on, 'case' on","--wcm-success-color":"rgb(38,181,98)","--wcm-error-color":"rgb(242, 90, 103)","--wcm-overlay-background-color":"rgba(0, 0, 0, 0.3)","--wcm-overlay-backdrop-filter":"none"}}let eH={getPreset:e=>He()[e],setTheme(){let e=document.querySelector(":root"),{themeVariables:l}=ew.ThemeCtrl.state;if(e){let o=ve(ve(ve({},rt()),He()),l);Object.entries(o).forEach(([l,o])=>e.style.setProperty(l,o))}},globalCss:i`*,::after,::before{margin:0;padding:0;box-sizing:border-box;font-style:normal;text-rendering:optimizeSpeed;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent;backface-visibility:hidden}button{cursor:pointer;display:flex;justify-content:center;align-items:center;position:relative;border:none;background-color:transparent;transition:all .2s ease}@media (hover:hover) and (pointer:fine){button:active{transition:all .1s ease;transform:scale(.93)}}button::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;transition:background-color,.2s ease}button:disabled{cursor:not-allowed}button svg,button wcm-text{position:relative;z-index:1}input{border:none;outline:0;appearance:none}img{display:block}::selection{color:var(--wcm-accent-fill-color);background:var(--wcm-accent-color)}`},eV=i`button{border-radius:var(--wcm-secondary-button-border-radius);height:28px;padding:0 10px;background-color:var(--wcm-accent-color)}button path{fill:var(--wcm-accent-fill-color)}button::after{border-radius:inherit;border:1px solid var(--wcm-color-overlay)}button:disabled::after{background-color:transparent}.wcm-icon-left svg{margin-right:5px}.wcm-icon-right svg{margin-left:5px}button:active::after{background-color:var(--wcm-color-overlay)}.wcm-ghost,.wcm-ghost:active::after,.wcm-outline{background-color:transparent}.wcm-ghost:active{opacity:.5}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}.wcm-ghost:hover::after{background-color:transparent}.wcm-ghost:hover{opacity:.5}}button:disabled{background-color:var(--wcm-color-bg-3);pointer-events:none}.wcm-ghost::after{border-color:transparent}.wcm-ghost path{fill:var(--wcm-color-fg-2)}.wcm-outline path{fill:var(--wcm-accent-color)}.wcm-outline:disabled{background-color:transparent;opacity:.5}`;var eB=Object.defineProperty,eZ=Object.getOwnPropertyDescriptor,F=(e,l,o,n)=>{for(var s,c=n>1?void 0:n?eZ(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&eB(l,o,c),c};let eF=class extends lit_element_s{constructor(){super(...arguments),this.disabled=!1,this.iconLeft=void 0,this.iconRight=void 0,this.onClick=()=>null,this.variant="default"}render(){let e={"wcm-icon-left":void 0!==this.iconLeft,"wcm-icon-right":void 0!==this.iconRight,"wcm-ghost":"ghost"===this.variant,"wcm-outline":"outline"===this.variant},l="inverse";return"ghost"===this.variant&&(l="secondary"),"outline"===this.variant&&(l="accent"),ee``}};eF.styles=[eH.globalCss,eV],F([property_n({type:Boolean})],eF.prototype,"disabled",2),F([property_n()],eF.prototype,"iconLeft",2),F([property_n()],eF.prototype,"iconRight",2),F([property_n()],eF.prototype,"onClick",2),F([property_n()],eF.prototype,"variant",2),eF=F([custom_element_e("wcm-button")],eF);let eq=i`:host{display:inline-block}button{padding:0 15px 1px;height:40px;border-radius:var(--wcm-button-border-radius);color:var(--wcm-accent-fill-color);background-color:var(--wcm-accent-color)}button::after{content:'';top:0;bottom:0;left:0;right:0;position:absolute;background-color:transparent;border-radius:inherit;transition:background-color .2s ease;border:1px solid var(--wcm-color-overlay)}button:active::after{background-color:var(--wcm-color-overlay)}button:disabled{padding-bottom:0;background-color:var(--wcm-color-bg-3);color:var(--wcm-color-fg-3)}.wcm-secondary{color:var(--wcm-accent-color);background-color:transparent}.wcm-secondary::after{display:none}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}}`;var eK=Object.defineProperty,eG=Object.getOwnPropertyDescriptor,ue=(e,l,o,n)=>{for(var s,c=n>1?void 0:n?eG(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&eK(l,o,c),c};let eY=class extends lit_element_s{constructor(){super(...arguments),this.disabled=!1,this.variant="primary"}render(){let e={"wcm-secondary":"secondary"===this.variant};return ee``}};eY.styles=[eH.globalCss,eq],ue([property_n({type:Boolean})],eY.prototype,"disabled",2),ue([property_n()],eY.prototype,"variant",2),eY=ue([custom_element_e("wcm-button-big")],eY);let eQ=i`:host{background-color:var(--wcm-color-bg-2);border-top:1px solid var(--wcm-color-bg-3)}div{padding:10px 20px;display:inherit;flex-direction:inherit;align-items:inherit;width:inherit;justify-content:inherit}`;var eX=Object.defineProperty,eJ=Object.getOwnPropertyDescriptor;let e0=class extends lit_element_s{render(){return ee`
`}};e0.styles=[eH.globalCss,eQ],e0=((e,l,o,n)=>{for(var s,c=n>1?void 0:n?eJ(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&eX(l,o,c),c})([custom_element_e("wcm-info-footer")],e0);let e1={CROSS_ICON:et``,WALLET_CONNECT_LOGO:et``,WALLET_CONNECT_ICON:et``,WALLET_CONNECT_ICON_COLORED:et``,BACK_ICON:et``,COPY_ICON:et``,RETRY_ICON:et``,DESKTOP_ICON:et``,MOBILE_ICON:et``,ARROW_DOWN_ICON:et``,ARROW_UP_RIGHT_ICON:et``,ARROW_RIGHT_ICON:et``,QRCODE_ICON:et``,SCAN_ICON:et``,CHECKMARK_ICON:et``,SEARCH_ICON:et``,WALLET_PLACEHOLDER:et``,GLOBE_ICON:et``},e2=i`.wcm-toolbar-placeholder{top:0;bottom:0;left:0;right:0;width:100%;position:absolute;display:block;pointer-events:none;height:100px;border-radius:calc(var(--wcm-background-border-radius) * .9);background-color:var(--wcm-background-color);background-position:center;background-size:cover}.wcm-toolbar{height:38px;display:flex;position:relative;margin:5px 15px 5px 5px;justify-content:space-between;align-items:center}.wcm-toolbar img,.wcm-toolbar svg{height:28px;object-position:left center;object-fit:contain}#wcm-wc-logo path{fill:var(--wcm-accent-fill-color)}button{width:28px;height:28px;border-radius:var(--wcm-icon-button-border-radius);border:0;display:flex;justify-content:center;align-items:center;cursor:pointer;background-color:var(--wcm-color-bg-1);box-shadow:0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-bg-2)}button svg{display:block;object-position:center}button path{fill:var(--wcm-color-fg-1)}.wcm-toolbar div{display:flex}@media(hover:hover){button:hover{background-color:var(--wcm-color-bg-2)}}`;var e5=Object.defineProperty,e3=Object.getOwnPropertyDescriptor;let e4=class extends lit_element_s{render(){return ee`
${e1.WALLET_CONNECT_LOGO}
`}};e4.styles=[eH.globalCss,e2],e4=((e,l,o,n)=>{for(var s,c=n>1?void 0:n?e3(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&e5(l,o,c),c})([custom_element_e("wcm-modal-backcard")],e4);let e7=i`main{padding:20px;padding-top:0;width:100%}`;var e6=Object.defineProperty,e8=Object.getOwnPropertyDescriptor;let e9=class extends lit_element_s{render(){return ee`
`}};e9.styles=[eH.globalCss,e7],e9=((e,l,o,n)=>{for(var s,c=n>1?void 0:n?e8(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&e6(l,o,c),c})([custom_element_e("wcm-modal-content")],e9);let tt=i`footer{padding:10px;display:flex;flex-direction:column;align-items:inherit;justify-content:inherit;border-top:1px solid var(--wcm-color-bg-2)}`;var tr=Object.defineProperty,ti=Object.getOwnPropertyDescriptor;let tl=class extends lit_element_s{render(){return ee`
`}};tl.styles=[eH.globalCss,tt],tl=((e,l,o,n)=>{for(var s,c=n>1?void 0:n?ti(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&tr(l,o,c),c})([custom_element_e("wcm-modal-footer")],tl);let to=i`header{display:flex;justify-content:center;align-items:center;padding:20px;position:relative}.wcm-border{border-bottom:1px solid var(--wcm-color-bg-2);margin-bottom:20px}header button{padding:15px 20px}header button:active{opacity:.5}@media(hover:hover){header button:hover{opacity:.5}}.wcm-back-btn{position:absolute;left:0}.wcm-action-btn{position:absolute;right:0}path{fill:var(--wcm-accent-color)}`;var ta=Object.defineProperty,tn=Object.getOwnPropertyDescriptor,te=(e,l,o,n)=>{for(var s,c=n>1?void 0:n?tn(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&ta(l,o,c),c};let ts=class extends lit_element_s{constructor(){super(...arguments),this.title="",this.onAction=void 0,this.actionIcon=void 0,this.border=!1}backBtnTemplate(){return ee``}actionBtnTemplate(){return ee``}render(){let e={"wcm-border":this.border},l=ew.AV.state.history.length>1,o=this.title?ee`${this.title}`:ee``;return ee`
${l?this.backBtnTemplate():null} ${o} ${this.onAction?this.actionBtnTemplate():null}
`}};ts.styles=[eH.globalCss,to],te([property_n()],ts.prototype,"title",2),te([property_n()],ts.prototype,"onAction",2),te([property_n()],ts.prototype,"actionIcon",2),te([property_n({type:Boolean})],ts.prototype,"border",2),ts=te([custom_element_e("wcm-modal-header")],ts);let tc={MOBILE_BREAKPOINT:600,WCM_RECENT_WALLET_DATA:"WCM_RECENT_WALLET_DATA",EXPLORER_WALLET_URL:"https://explorer.walletconnect.com/?type=wallet",getShadowRootElement(e,l){let o=e.renderRoot.querySelector(l);if(!o)throw Error(`${l} not found`);return o},getWalletIcon({id:e,image_id:l}){let{walletImages:o}=ew.ConfigCtrl.state;return null!=o&&o[e]?o[e]:l?ew.ExplorerCtrl.getWalletImageUrl(l):""},getWalletName:(e,l=!1)=>l&&e.length>8?`${e.substring(0,8)}..`:e,isMobileAnimation:()=>window.innerWidth<=tc.MOBILE_BREAKPOINT,async preloadImage(e){let l=new Promise((l,o)=>{let n=new Image;n.onload=l,n.onerror=o,n.crossOrigin="anonymous",n.src=e});return Promise.race([l,ew.zv.wait(3e3)])},getErrorMessage:e=>e instanceof Error?e.message:"Unknown Error",debounce(e,l=500){let o;return(...n)=>{function t(){e(...n)}o&&clearTimeout(o),o=setTimeout(t,l)}},handleMobileLinking(e){let{walletConnectUri:l}=ew.OptionsCtrl.state,{mobile:o,name:n}=e,s=o?.native,c=o?.universal;function i(e){let l="";s?l=ew.zv.formatUniversalUrl(s,e,n):c&&(l=ew.zv.formatNativeUrl(c,e,n)),ew.zv.openHref(l,"_self")}tc.setRecentWallet(e),l&&i(l)},handleAndroidLinking(){let{walletConnectUri:e}=ew.OptionsCtrl.state;e&&(ew.zv.setWalletConnectAndroidDeepLink(e),ew.zv.openHref(e,"_self"))},async handleUriCopy(){let{walletConnectUri:e}=ew.OptionsCtrl.state;if(e)try{await navigator.clipboard.writeText(e),ew.ToastCtrl.openToast("Link copied","success")}catch{ew.ToastCtrl.openToast("Failed to copy","error")}},getCustomImageUrls(){let{walletImages:e}=ew.ConfigCtrl.state,l=Object.values(e??{});return Object.values(l)},truncate:(e,l=8)=>e.length<=l?e:`${e.substring(0,4)}...${e.substring(e.length-4)}`,setRecentWallet(e){try{localStorage.setItem(tc.WCM_RECENT_WALLET_DATA,JSON.stringify(e))}catch{console.info("Unable to set recent wallet")}},getRecentWallet(){try{let e=localStorage.getItem(tc.WCM_RECENT_WALLET_DATA);return e?JSON.parse(e):void 0}catch{console.info("Unable to get recent wallet")}},caseSafeIncludes:(e,l)=>e.toUpperCase().includes(l.toUpperCase()),openWalletExplorerUrl(){ew.zv.openHref(tc.EXPLORER_WALLET_URL,"_blank")},getCachedRouterWalletPlatforms(){let{desktop:e,mobile:l}=ew.zv.getWalletRouterData(),o=!!e?.native,n=!!e?.universal,s=!!l?.native||!!l?.universal;return{isDesktop:o,isMobile:s,isWeb:n}},goToConnectingView(e){ew.AV.setData({Wallet:e});let l=ew.zv.isMobile(),{isDesktop:o,isWeb:n,isMobile:s}=tc.getCachedRouterWalletPlatforms();l?s?ew.AV.push("MobileConnecting"):n?ew.AV.push("WebConnecting"):ew.AV.push("InstallWallet"):o?ew.AV.push("DesktopConnecting"):n?ew.AV.push("WebConnecting"):s?ew.AV.push("MobileQrcodeConnecting"):ew.AV.push("InstallWallet")}},td=i`.wcm-router{overflow:hidden;will-change:transform}.wcm-content{display:flex;flex-direction:column}`;var tm=Object.defineProperty,th=Object.getOwnPropertyDescriptor,$e=(e,l,o,n)=>{for(var s,c=n>1?void 0:n?th(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&tm(l,o,c),c};let tp=class extends lit_element_s{constructor(){super(),this.view=ew.AV.state.view,this.prevView=ew.AV.state.view,this.unsubscribe=void 0,this.oldHeight="0px",this.resizeObserver=void 0,this.unsubscribe=ew.AV.subscribe(e=>{this.view!==e.view&&this.onChangeRoute()})}firstUpdated(){this.resizeObserver=new ResizeObserver(([e])=>{let l=`${e.contentRect.height}px`;"0px"!==this.oldHeight&&animate_es_animate(this.routerEl,{height:[this.oldHeight,l]},{duration:.2}),this.oldHeight=l}),this.resizeObserver.observe(this.contentEl)}disconnectedCallback(){var e,l;null==(e=this.unsubscribe)||e.call(this),null==(l=this.resizeObserver)||l.disconnect()}get routerEl(){return tc.getShadowRootElement(this,".wcm-router")}get contentEl(){return tc.getShadowRootElement(this,".wcm-content")}viewTemplate(){switch(this.view){case"ConnectWallet":return ee``;case"DesktopConnecting":return ee``;case"MobileConnecting":return ee``;case"WebConnecting":return ee``;case"MobileQrcodeConnecting":return ee``;case"WalletExplorer":return ee``;case"Qrcode":return ee``;case"InstallWallet":return ee``;default:return ee`
Not Found
`}}async onChangeRoute(){await animate_es_animate(this.routerEl,{opacity:[1,0],scale:[1,1.02]},{duration:.15,delay:.1}).finished,this.view=ew.AV.state.view,animate_es_animate(this.routerEl,{opacity:[0,1],scale:[.99,1]},{duration:.37,delay:.05})}render(){return ee`
${this.viewTemplate()}
`}};tp.styles=[eH.globalCss,td],$e([state_t()],tp.prototype,"view",2),$e([state_t()],tp.prototype,"prevView",2),tp=$e([custom_element_e("wcm-modal-router")],tp);let tu=i`div{height:36px;width:max-content;display:flex;justify-content:center;align-items:center;padding:9px 15px 11px;position:absolute;top:12px;box-shadow:0 6px 14px -6px rgba(10,16,31,.3),0 10px 32px -4px rgba(10,16,31,.15);z-index:2;left:50%;transform:translateX(-50%);pointer-events:none;backdrop-filter:blur(20px) saturate(1.8);-webkit-backdrop-filter:blur(20px) saturate(1.8);border-radius:var(--wcm-notification-border-radius);border:1px solid var(--wcm-color-overlay);background-color:var(--wcm-color-overlay)}svg{margin-right:5px}@-moz-document url-prefix(){div{background-color:var(--wcm-color-bg-3)}}.wcm-success path{fill:var(--wcm-accent-color)}.wcm-error path{fill:var(--wcm-error-color)}`;var tg=Object.defineProperty,tw=Object.getOwnPropertyDescriptor,ze=(e,l,o,n)=>{for(var s,c=n>1?void 0:n?tw(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&tg(l,o,c),c};let tv=class extends lit_element_s{constructor(){super(),this.open=!1,this.unsubscribe=void 0,this.timeout=void 0,this.unsubscribe=ew.ToastCtrl.subscribe(e=>{e.open?(this.open=!0,this.timeout=setTimeout(()=>ew.ToastCtrl.closeToast(),2200)):(this.open=!1,clearTimeout(this.timeout))})}disconnectedCallback(){var e;null==(e=this.unsubscribe)||e.call(this),clearTimeout(this.timeout),ew.ToastCtrl.closeToast()}render(){let{message:e,variant:l}=ew.ToastCtrl.state;return this.open?ee`
${"success"===l?e1.CHECKMARK_ICON:null} ${"error"===l?e1.CROSS_ICON:null}${e}
`:null}};function Ce(e,l,o){return e!==l&&(e-l<0?l-e:e-l)<=o+.1}function _t(e,l){let o=Array.prototype.slice.call(eD.create(e,{errorCorrectionLevel:l}).modules.data,0),n=Math.sqrt(o.length);return o.reduce((e,l,o)=>(o%n==0?e.push([l]):e[e.length-1].push(l))&&e,[])}tv.styles=[eH.globalCss,tu],ze([state_t()],tv.prototype,"open",2),tv=ze([custom_element_e("wcm-modal-toast")],tv);let tf={generate(e,l,o){let n="#141414",s=[],c=_t(e,"Q"),d=l/c.length,m=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];m.forEach(({x:e,y:l})=>{let o=(c.length-7)*d*e,h=(c.length-7)*d*l;for(let e=0;e`)}});let h=Math.floor((o+25)/d),p=c.length/2-h/2,g=c.length/2+h/2-1,f=[];c.forEach((e,l)=>{e.forEach((e,o)=>{if(c[l][o]&&!(l<7&&o<7||l>c.length-8&&o<7||l<7&&o>c.length-8)&&!(l>p&&lp&&o{b[e]?b[e].push(l):b[e]=[l]}),Object.entries(b).map(([e,l])=>{let o=l.filter(e=>l.every(l=>!Ce(e,l,d)));return[Number(e),o]}).forEach(([e,l])=>{l.forEach(l=>{s.push(et``)})}),Object.entries(b).filter(([e,l])=>l.length>1).map(([e,l])=>{let o=l.filter(e=>l.some(l=>Ce(e,l,d)));return[Number(e),o]}).map(([e,l])=>{l.sort((e,l)=>el.some(l=>Ce(e,l,d)));l?l.push(e):o.push([e])}return[e,o.map(e=>[e[0],e[e.length-1]])]}).forEach(([e,l])=>{l.forEach(([l,o])=>{s.push(et``)})}),s}},tb=i`@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}div{position:relative;user-select:none;display:block;overflow:hidden;aspect-ratio:1/1;animation:fadeIn ease .2s}.wcm-dark{background-color:#fff;border-radius:var(--wcm-container-border-radius);padding:18px;box-shadow:0 2px 5px #000}svg:first-child,wcm-wallet-image{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{width:25%;height:25%;border-radius:var(--wcm-wallet-icon-border-radius)}svg:first-child{transform:translateY(-50%) translateX(-50%) scale(.9)}svg:first-child path:first-child{fill:var(--wcm-accent-color)}svg:first-child path:last-child{stroke:var(--wcm-color-overlay)}`;var ty=Object.defineProperty,t_=Object.getOwnPropertyDescriptor,q=(e,l,o,n)=>{for(var s,c=n>1?void 0:n?t_(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&ty(l,o,c),c};let tx=class extends lit_element_s{constructor(){super(...arguments),this.uri="",this.size=0,this.imageId=void 0,this.walletId=void 0,this.imageUrl=void 0}svgTemplate(){let e="light"===ew.ThemeCtrl.state.themeMode?this.size:this.size-36;return et`${tf.generate(this.uri,e,e/4)}`}render(){let e={"wcm-dark":"dark"===ew.ThemeCtrl.state.themeMode};return ee`
${this.walletId||this.imageUrl?ee``:e1.WALLET_CONNECT_ICON_COLORED} ${this.svgTemplate()}
`}};tx.styles=[eH.globalCss,tb],q([property_n()],tx.prototype,"uri",2),q([property_n({type:Number})],tx.prototype,"size",2),q([property_n()],tx.prototype,"imageId",2),q([property_n()],tx.prototype,"walletId",2),q([property_n()],tx.prototype,"imageUrl",2),tx=q([custom_element_e("wcm-qrcode")],tx);let t$=i`:host{position:relative;height:28px;width:80%}input{width:100%;height:100%;line-height:28px!important;border-radius:var(--wcm-input-border-radius);font-style:normal;font-family:-apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,Ubuntu,'Helvetica Neue',sans-serif;font-feature-settings:'case' on;font-weight:500;font-size:16px;letter-spacing:-.03em;padding:0 10px 0 34px;transition:.2s all ease;color:var(--wcm-color-fg-1);background-color:var(--wcm-color-bg-3);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay);caret-color:var(--wcm-accent-color)}input::placeholder{color:var(--wcm-color-fg-2)}svg{left:10px;top:4px;pointer-events:none;position:absolute;width:20px;height:20px}input:focus-within{box-shadow:inset 0 0 0 1px var(--wcm-accent-color)}path{fill:var(--wcm-color-fg-2)}`;var tC=Object.defineProperty,tA=Object.getOwnPropertyDescriptor,Fe=(e,l,o,n)=>{for(var s,c=n>1?void 0:n?tA(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&tC(l,o,c),c};let tE=class extends lit_element_s{constructor(){super(...arguments),this.onChange=()=>null}render(){return ee` ${e1.SEARCH_ICON}`}};tE.styles=[eH.globalCss,t$],Fe([property_n()],tE.prototype,"onChange",2),tE=Fe([custom_element_e("wcm-search-input")],tE);let tO=i`@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}svg{animation:rotate 2s linear infinite;display:flex;justify-content:center;align-items:center}svg circle{stroke-linecap:round;animation:dash 1.5s ease infinite;stroke:var(--wcm-accent-color)}`;var tk=Object.defineProperty,tT=Object.getOwnPropertyDescriptor;let tI=class extends lit_element_s{render(){return ee``}};tI.styles=[eH.globalCss,tO],tI=((e,l,o,n)=>{for(var s,c=n>1?void 0:n?tT(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&tk(l,o,c),c})([custom_element_e("wcm-spinner")],tI);let tS=i`span{font-style:normal;font-family:var(--wcm-font-family);font-feature-settings:var(--wcm-font-feature-settings)}.wcm-xsmall-bold{font-family:var(--wcm-text-xsmall-bold-font-family);font-weight:var(--wcm-text-xsmall-bold-weight);font-size:var(--wcm-text-xsmall-bold-size);line-height:var(--wcm-text-xsmall-bold-line-height);letter-spacing:var(--wcm-text-xsmall-bold-letter-spacing);text-transform:var(--wcm-text-xsmall-bold-text-transform)}.wcm-xsmall-regular{font-family:var(--wcm-text-xsmall-regular-font-family);font-weight:var(--wcm-text-xsmall-regular-weight);font-size:var(--wcm-text-xsmall-regular-size);line-height:var(--wcm-text-xsmall-regular-line-height);letter-spacing:var(--wcm-text-xsmall-regular-letter-spacing);text-transform:var(--wcm-text-xsmall-regular-text-transform)}.wcm-small-thin{font-family:var(--wcm-text-small-thin-font-family);font-weight:var(--wcm-text-small-thin-weight);font-size:var(--wcm-text-small-thin-size);line-height:var(--wcm-text-small-thin-line-height);letter-spacing:var(--wcm-text-small-thin-letter-spacing);text-transform:var(--wcm-text-small-thin-text-transform)}.wcm-small-regular{font-family:var(--wcm-text-small-regular-font-family);font-weight:var(--wcm-text-small-regular-weight);font-size:var(--wcm-text-small-regular-size);line-height:var(--wcm-text-small-regular-line-height);letter-spacing:var(--wcm-text-small-regular-letter-spacing);text-transform:var(--wcm-text-small-regular-text-transform)}.wcm-medium-regular{font-family:var(--wcm-text-medium-regular-font-family);font-weight:var(--wcm-text-medium-regular-weight);font-size:var(--wcm-text-medium-regular-size);line-height:var(--wcm-text-medium-regular-line-height);letter-spacing:var(--wcm-text-medium-regular-letter-spacing);text-transform:var(--wcm-text-medium-regular-text-transform)}.wcm-big-bold{font-family:var(--wcm-text-big-bold-font-family);font-weight:var(--wcm-text-big-bold-weight);font-size:var(--wcm-text-big-bold-size);line-height:var(--wcm-text-big-bold-line-height);letter-spacing:var(--wcm-text-big-bold-letter-spacing);text-transform:var(--wcm-text-big-bold-text-transform)}:host(*){color:var(--wcm-color-fg-1)}.wcm-color-primary{color:var(--wcm-color-fg-1)}.wcm-color-secondary{color:var(--wcm-color-fg-2)}.wcm-color-tertiary{color:var(--wcm-color-fg-3)}.wcm-color-inverse{color:var(--wcm-accent-fill-color)}.wcm-color-accnt{color:var(--wcm-accent-color)}.wcm-color-error{color:var(--wcm-error-color)}`;var tR=Object.defineProperty,tP=Object.getOwnPropertyDescriptor,Oe=(e,l,o,n)=>{for(var s,c=n>1?void 0:n?tP(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&tR(l,o,c),c};let tM=class extends lit_element_s{constructor(){super(...arguments),this.variant="medium-regular",this.color="primary"}render(){let e={"wcm-big-bold":"big-bold"===this.variant,"wcm-medium-regular":"medium-regular"===this.variant,"wcm-small-regular":"small-regular"===this.variant,"wcm-small-thin":"small-thin"===this.variant,"wcm-xsmall-regular":"xsmall-regular"===this.variant,"wcm-xsmall-bold":"xsmall-bold"===this.variant,"wcm-color-primary":"primary"===this.color,"wcm-color-secondary":"secondary"===this.color,"wcm-color-tertiary":"tertiary"===this.color,"wcm-color-inverse":"inverse"===this.color,"wcm-color-accnt":"accent"===this.color,"wcm-color-error":"error"===this.color};return ee``}};tM.styles=[eH.globalCss,tS],Oe([property_n()],tM.prototype,"variant",2),Oe([property_n()],tM.prototype,"color",2),tM=Oe([custom_element_e("wcm-text")],tM);let tL=i`button{width:100%;height:100%;border-radius:var(--wcm-button-hover-highlight-border-radius);display:flex;align-items:flex-start}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}button>div{width:80px;padding:5px 0;display:flex;flex-direction:column;align-items:center}wcm-text{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}wcm-wallet-image{height:60px;width:60px;transition:all .2s ease;border-radius:var(--wcm-wallet-icon-border-radius);margin-bottom:5px}.wcm-sublabel{margin-top:2px}`;var tW=Object.defineProperty,tD=Object.getOwnPropertyDescriptor,dist_=(e,l,o,n)=>{for(var s,c=n>1?void 0:n?tD(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&tW(l,o,c),c};let tN=class extends lit_element_s{constructor(){super(...arguments),this.onClick=()=>null,this.name="",this.walletId="",this.label=void 0,this.imageId=void 0,this.installed=!1,this.recent=!1}sublabelTemplate(){return this.recent?ee`RECENT`:this.installed?ee`INSTALLED`:null}handleClick(){ew.uA.click({name:"WALLET_BUTTON",walletId:this.walletId}),this.onClick()}render(){var e;return ee``}};tN.styles=[eH.globalCss,tL],dist_([property_n()],tN.prototype,"onClick",2),dist_([property_n()],tN.prototype,"name",2),dist_([property_n()],tN.prototype,"walletId",2),dist_([property_n()],tN.prototype,"label",2),dist_([property_n()],tN.prototype,"imageId",2),dist_([property_n({type:Boolean})],tN.prototype,"installed",2),dist_([property_n({type:Boolean})],tN.prototype,"recent",2),tN=dist_([custom_element_e("wcm-wallet-button")],tN);let tj=i`:host{display:block}div{overflow:hidden;position:relative;border-radius:inherit;width:100%;height:100%;background-color:var(--wcm-color-overlay)}svg{position:relative;width:100%;height:100%}div::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;border-radius:inherit;border:1px solid var(--wcm-color-overlay)}div img{width:100%;height:100%;object-fit:cover;object-position:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var tz=Object.defineProperty,tU=Object.getOwnPropertyDescriptor,se=(e,l,o,n)=>{for(var s,c=n>1?void 0:n?tU(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&tz(l,o,c),c};let tH=class extends lit_element_s{constructor(){super(...arguments),this.walletId="",this.imageId=void 0,this.imageUrl=void 0}render(){var e;let l=null!=(e=this.imageUrl)&&e.length?this.imageUrl:tc.getWalletIcon({id:this.walletId,image_id:this.imageId});return ee`${l.length?ee`
${this.id}
`:e1.WALLET_PLACEHOLDER}`}};tH.styles=[eH.globalCss,tj],se([property_n()],tH.prototype,"walletId",2),se([property_n()],tH.prototype,"imageId",2),se([property_n()],tH.prototype,"imageUrl",2),tH=se([custom_element_e("wcm-wallet-image")],tH);var tV=Object.defineProperty,tB=Object.getOwnPropertyDescriptor,qe=(e,l,o,n)=>{for(var s,c=n>1?void 0:n?tB(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&tV(l,o,c),c};let tZ=class extends lit_element_s{constructor(){super(),this.preload=!0,this.preloadData()}async loadImages(e){try{null!=e&&e.length&&await Promise.all(e.map(async e=>tc.preloadImage(e)))}catch{console.info("Unsuccessful attempt at preloading some images",e)}}async preloadListings(){if(ew.ConfigCtrl.state.enableExplorer){await ew.ExplorerCtrl.getRecomendedWallets(),ew.OptionsCtrl.setIsDataLoaded(!0);let{recomendedWallets:e}=ew.ExplorerCtrl.state,l=e.map(e=>tc.getWalletIcon(e));await this.loadImages(l)}else ew.OptionsCtrl.setIsDataLoaded(!0)}async preloadCustomImages(){let e=tc.getCustomImageUrls();await this.loadImages(e)}async preloadData(){try{this.preload&&(this.preload=!1,await Promise.all([this.preloadListings(),this.preloadCustomImages()]))}catch(e){console.error(e),ew.ToastCtrl.openToast("Failed preloading","error")}}};qe([state_t()],tZ.prototype,"preload",2),tZ=qe([custom_element_e("wcm-explorer-context")],tZ);var tF=Object.defineProperty,tq=Object.getOwnPropertyDescriptor;let tK=class extends lit_element_s{constructor(){super(),this.unsubscribeTheme=void 0,eH.setTheme(),this.unsubscribeTheme=ew.ThemeCtrl.subscribe(eH.setTheme)}disconnectedCallback(){var e;null==(e=this.unsubscribeTheme)||e.call(this)}};tK=((e,l,o,n)=>{for(var s,c=n>1?void 0:n?tq(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&tF(l,o,c),c})([custom_element_e("wcm-theme-context")],tK);let tG=i`@keyframes scroll{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(calc(-70px * 9),0,0)}}.wcm-slider{position:relative;overflow-x:hidden;padding:10px 0;margin:0 -20px;width:calc(100% + 40px)}.wcm-track{display:flex;width:calc(70px * 18);animation:scroll 20s linear infinite;opacity:.7}.wcm-track svg{margin:0 5px}wcm-wallet-image{width:60px;height:60px;margin:0 5px;border-radius:var(--wcm-wallet-icon-border-radius)}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-title{display:flex;align-items:center;margin-bottom:10px}.wcm-title svg{margin-right:6px}.wcm-title path{fill:var(--wcm-accent-color)}wcm-modal-footer .wcm-title{padding:0 10px}wcm-button-big{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%);filter:drop-shadow(0 0 17px var(--wcm-color-bg-1))}wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-info-footer wcm-text{text-align:center;margin-bottom:15px}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var tY=Object.defineProperty,tQ=Object.getOwnPropertyDescriptor;let tX=class extends lit_element_s{onGoToQrcode(){ew.AV.push("Qrcode")}render(){let{recomendedWallets:e}=ew.ExplorerCtrl.state,l=[...e,...e],o=2*ew.zv.RECOMMENDED_WALLET_AMOUNT;return ee`
${e1.MOBILE_ICON}WalletConnect
${[...Array(o)].map((e,o)=>{let n=l[o%l.length];return n?ee``:e1.WALLET_PLACEHOLDER})}
Select Wallet
Choose WalletConnect to see supported apps on your device`}};tX.styles=[eH.globalCss,tG],tX=((e,l,o,n)=>{for(var s,c=n>1?void 0:n?tQ(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&tY(l,o,c),c})([custom_element_e("wcm-android-wallet-selection")],tX);let tJ=i`@keyframes loading{to{stroke-dashoffset:0}}@keyframes shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(1px,0,0)}30%,50%,70%{transform:translate3d(-2px,0,0)}40%,60%{transform:translate3d(2px,0,0)}}:host{display:flex;flex-direction:column;align-items:center}div{position:relative;width:110px;height:110px;display:flex;justify-content:center;align-items:center;margin:40px 0 20px 0;transform:translate3d(0,0,0)}svg{position:absolute;width:110px;height:110px;fill:none;stroke:transparent;stroke-linecap:round;stroke-width:2px;top:0;left:0}use{stroke:var(--wcm-accent-color);animation:loading 1s linear infinite}wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:90px;height:90px}wcm-text{margin-bottom:40px}.wcm-error svg{stroke:var(--wcm-error-color)}.wcm-error use{display:none}.wcm-error{animation:shake .4s cubic-bezier(.36,.07,.19,.97) both}.wcm-stale svg,.wcm-stale use{display:none}`;var t0=Object.defineProperty,t1=Object.getOwnPropertyDescriptor,K=(e,l,o,n)=>{for(var s,c=n>1?void 0:n?t1(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&t0(l,o,c),c};let t2=class extends lit_element_s{constructor(){super(...arguments),this.walletId=void 0,this.imageId=void 0,this.isError=!1,this.isStale=!1,this.label=""}svgLoaderTemplate(){var e,l;let o=null!=(l=null==(e=ew.ThemeCtrl.state.themeVariables)?void 0:e["--wcm-wallet-icon-large-border-radius"])?l:eH.getPreset("--wcm-wallet-icon-large-border-radius"),n=0;n=(o.includes("%")?.88*parseInt(o,10):parseInt(o,10))*1.17;let s=317-1.57*n,c=425-1.8*n;return ee``}render(){let e={"wcm-error":this.isError,"wcm-stale":this.isStale};return ee`
${this.svgLoaderTemplate()}
${this.isError?"Connection declined":this.label}`}};t2.styles=[eH.globalCss,tJ],K([property_n()],t2.prototype,"walletId",2),K([property_n()],t2.prototype,"imageId",2),K([property_n({type:Boolean})],t2.prototype,"isError",2),K([property_n({type:Boolean})],t2.prototype,"isStale",2),K([property_n()],t2.prototype,"label",2),t2=K([custom_element_e("wcm-connector-waiting")],t2);let t5={manualWallets(){var e,l;let{mobileWallets:o,desktopWallets:n}=ew.ConfigCtrl.state,s=null==(e=t5.recentWallet())?void 0:e.id,c=ew.zv.isMobile()?o:n,d=c?.filter(e=>s!==e.id);return null!=(l=ew.zv.isMobile()?d?.map(({id:e,name:l,links:o})=>({id:e,name:l,mobile:o,links:o})):d?.map(({id:e,name:l,links:o})=>({id:e,name:l,desktop:o,links:o})))?l:[]},recentWallet:()=>tc.getRecentWallet(),recomendedWallets(e=!1){var l;let o=e||null==(l=t5.recentWallet())?void 0:l.id,{recomendedWallets:n}=ew.ExplorerCtrl.state;return n.filter(e=>o!==e.id)}},t3={onConnecting(e){tc.goToConnectingView(e)},manualWalletsTemplate(){return t5.manualWallets().map(e=>ee``)},recomendedWalletsTemplate(e=!1){return t5.recomendedWallets(e).map(e=>ee``)},recentWalletTemplate(){let e=t5.recentWallet();if(e)return ee``}},t4=i`.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-desktop-title,.wcm-mobile-title{display:flex;align-items:center}.wcm-mobile-title{justify-content:space-between;margin-bottom:20px;margin-top:-10px}.wcm-desktop-title{margin-bottom:10px;padding:0 10px}.wcm-subtitle{display:flex;align-items:center}.wcm-subtitle:last-child path{fill:var(--wcm-color-fg-3)}.wcm-desktop-title svg,.wcm-mobile-title svg{margin-right:6px}.wcm-desktop-title path,.wcm-mobile-title path{fill:var(--wcm-accent-color)}`;var t7=Object.defineProperty,t6=Object.getOwnPropertyDescriptor;let t8=class extends lit_element_s{render(){let{explorerExcludedWalletIds:e,enableExplorer:l}=ew.ConfigCtrl.state,o=t3.manualWalletsTemplate(),n=t3.recomendedWalletsTemplate(),s=[t3.recentWalletTemplate(),...o,...n];s=s.filter(Boolean);let c=s.length>4||"ALL"!==e&&l,d=[];d=c?s.slice(0,3):s;let m=!!d.length;return ee`
${e1.MOBILE_ICON}Mobile
${e1.SCAN_ICON}Scan with your wallet
${m?ee`
${e1.DESKTOP_ICON}Desktop
${d} ${c?ee``:null}
`:null}`}};t8.styles=[eH.globalCss,t4],t8=((e,l,o,n)=>{for(var s,c=n>1?void 0:n?t6(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&t7(l,o,c),c})([custom_element_e("wcm-desktop-wallet-selection")],t8);let t9=i`div{background-color:var(--wcm-color-bg-2);padding:10px 20px 15px 20px;border-top:1px solid var(--wcm-color-bg-3);text-align:center}a{color:var(--wcm-accent-color);text-decoration:none;transition:opacity .2s ease-in-out;display:inline}a:active{opacity:.8}@media(hover:hover){a:hover{opacity:.8}}`;var re=Object.defineProperty,rr=Object.getOwnPropertyDescriptor;let ri=class extends lit_element_s{render(){let{termsOfServiceUrl:e,privacyPolicyUrl:l}=ew.ConfigCtrl.state;return e??l?ee`
By connecting your wallet to this app, you agree to the app's ${e?ee`Terms of Service`:null} ${e&&l?"and":null} ${l?ee`Privacy Policy`:null}
`:null}};ri.styles=[eH.globalCss,t9],ri=((e,l,o,n)=>{for(var s,c=n>1?void 0:n?rr(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&re(l,o,c),c})([custom_element_e("wcm-legal-notice")],ri);let rl=i`div{display:grid;grid-template-columns:repeat(4,80px);margin:0 -10px;justify-content:space-between;row-gap:10px}`;var ro=Object.defineProperty,ra=Object.getOwnPropertyDescriptor;let rn=class extends lit_element_s{onQrcode(){ew.AV.push("Qrcode")}render(){let{explorerExcludedWalletIds:e,enableExplorer:l}=ew.ConfigCtrl.state,o=t3.manualWalletsTemplate(),n=t3.recomendedWalletsTemplate(),s=[t3.recentWalletTemplate(),...o,...n];s=s.filter(Boolean);let c=s.length>8||"ALL"!==e&&l,d=[];d=c?s.slice(0,7):s;let m=!!d.length;return ee`${m?ee`
${d} ${c?ee``:null}
`:null}`}};rn.styles=[eH.globalCss,rl],rn=((e,l,o,n)=>{for(var s,c=n>1?void 0:n?ra(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&ro(l,o,c),c})([custom_element_e("wcm-mobile-wallet-selection")],rn);let rs=i`:host{all:initial}.wcm-overlay{top:0;bottom:0;left:0;right:0;position:fixed;z-index:var(--wcm-z-index);overflow:hidden;display:flex;justify-content:center;align-items:center;opacity:0;pointer-events:none;background-color:var(--wcm-overlay-background-color);backdrop-filter:var(--wcm-overlay-backdrop-filter)}@media(max-height:720px) and (orientation:landscape){.wcm-overlay{overflow:scroll;align-items:flex-start;padding:20px 0}}.wcm-active{pointer-events:auto}.wcm-container{position:relative;max-width:360px;width:100%;outline:0;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) var(--wcm-container-border-radius) var(--wcm-container-border-radius);border:1px solid var(--wcm-color-overlay);overflow:hidden}.wcm-card{width:100%;position:relative;border-radius:var(--wcm-container-border-radius);overflow:hidden;box-shadow:0 6px 14px -6px rgba(10,16,31,.12),0 10px 32px -4px rgba(10,16,31,.1),0 0 0 1px var(--wcm-color-overlay);background-color:var(--wcm-color-bg-1);color:var(--wcm-color-fg-1)}@media(max-width:600px){.wcm-container{max-width:440px;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) 0 0}.wcm-card{border-radius:var(--wcm-container-border-radius) var(--wcm-container-border-radius) 0 0}.wcm-overlay{align-items:flex-end}}@media(max-width:440px){.wcm-container{border:0}}`;var rc=Object.defineProperty,rd=Object.getOwnPropertyDescriptor,Re=(e,l,o,n)=>{for(var s,c=n>1?void 0:n?rd(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&rc(l,o,c),c};let rm=class extends lit_element_s{constructor(){super(),this.open=!1,this.active=!1,this.unsubscribeModal=void 0,this.abortController=void 0,this.unsubscribeModal=ew.jb.subscribe(e=>{e.open?this.onOpenModalEvent():this.onCloseModalEvent()})}disconnectedCallback(){var e;null==(e=this.unsubscribeModal)||e.call(this)}get overlayEl(){return tc.getShadowRootElement(this,".wcm-overlay")}get containerEl(){return tc.getShadowRootElement(this,".wcm-container")}toggleBodyScroll(e){if(document.querySelector("body")){if(e){let e=document.getElementById("wcm-styles");e?.remove()}else document.head.insertAdjacentHTML("beforeend",'')}}onCloseModal(e){e.target===e.currentTarget&&ew.jb.close()}onOpenModalEvent(){this.toggleBodyScroll(!1),this.addKeyboardEvents(),this.open=!0,setTimeout(async()=>{let e=tc.isMobileAnimation()?{y:["50vh","0vh"]}:{scale:[.98,1]};await Promise.all([animate_es_animate(this.overlayEl,{opacity:[0,1]},{delay:.1,duration:.2}).finished,animate_es_animate(this.containerEl,e,{delay:.1,duration:.2}).finished]),this.active=!0},0)}async onCloseModalEvent(){this.toggleBodyScroll(!0),this.removeKeyboardEvents();let e=tc.isMobileAnimation()?{y:["0vh","50vh"]}:{scale:[1,.98]};await Promise.all([animate_es_animate(this.overlayEl,{opacity:[1,0]},{duration:.2}).finished,animate_es_animate(this.containerEl,e,{duration:.2}).finished]),this.containerEl.removeAttribute("style"),this.active=!1,this.open=!1}addKeyboardEvents(){this.abortController=new AbortController,window.addEventListener("keydown",e=>{var l;"Escape"===e.key?ew.jb.close():"Tab"===e.key&&(null!=(l=e.target)&&l.tagName.includes("wcm-")||this.containerEl.focus())},this.abortController),this.containerEl.focus()}removeKeyboardEvents(){var e;null==(e=this.abortController)||e.abort(),this.abortController=void 0}render(){let e={"wcm-overlay":!0,"wcm-active":this.active};return ee`
${this.open?ee`
`:null}
`}};rm.styles=[eH.globalCss,rs],Re([state_t()],rm.prototype,"open",2),Re([state_t()],rm.prototype,"active",2),rm=Re([custom_element_e("wcm-modal")],rm);let rh=i`div{display:flex;margin-top:15px}slot{display:inline-block;margin:0 5px}wcm-button{margin:0 5px}`;var rp=Object.defineProperty,ru=Object.getOwnPropertyDescriptor,le=(e,l,o,n)=>{for(var s,c=n>1?void 0:n?ru(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&rp(l,o,c),c};let rg=class extends lit_element_s{constructor(){super(...arguments),this.isMobile=!1,this.isDesktop=!1,this.isWeb=!1,this.isRetry=!1}onMobile(){ew.zv.isMobile()?ew.AV.replace("MobileConnecting"):ew.AV.replace("MobileQrcodeConnecting")}onDesktop(){ew.AV.replace("DesktopConnecting")}onWeb(){ew.AV.replace("WebConnecting")}render(){return ee`
${this.isRetry?ee``:null} ${this.isMobile?ee`Mobile`:null} ${this.isDesktop?ee`Desktop`:null} ${this.isWeb?ee`Web`:null}
`}};rg.styles=[eH.globalCss,rh],le([property_n({type:Boolean})],rg.prototype,"isMobile",2),le([property_n({type:Boolean})],rg.prototype,"isDesktop",2),le([property_n({type:Boolean})],rg.prototype,"isWeb",2),le([property_n({type:Boolean})],rg.prototype,"isRetry",2),rg=le([custom_element_e("wcm-platform-selection")],rg);let rw=i`button{display:flex;flex-direction:column;padding:5px 10px;border-radius:var(--wcm-button-hover-highlight-border-radius);height:100%;justify-content:flex-start}.wcm-icons{width:60px;height:60px;display:flex;flex-wrap:wrap;padding:7px;border-radius:var(--wcm-wallet-icon-border-radius);justify-content:space-between;align-items:center;margin-bottom:5px;background-color:var(--wcm-color-bg-2);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}.wcm-icons img{width:21px;height:21px;object-fit:cover;object-position:center;border-radius:calc(var(--wcm-wallet-icon-border-radius)/ 2);border:1px solid var(--wcm-color-overlay)}.wcm-icons svg{width:21px;height:21px}.wcm-icons img:nth-child(1),.wcm-icons img:nth-child(2),.wcm-icons svg:nth-child(1),.wcm-icons svg:nth-child(2){margin-bottom:4px}wcm-text{width:100%;text-align:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var rv=Object.defineProperty,rf=Object.getOwnPropertyDescriptor;let rb=class extends lit_element_s{onClick(){ew.AV.push("WalletExplorer")}render(){let{recomendedWallets:e}=ew.ExplorerCtrl.state,l=t5.manualWallets(),o=[...e,...l].reverse().slice(0,4);return ee``}};rb.styles=[eH.globalCss,rw],rb=((e,l,o,n)=>{for(var s,c=n>1?void 0:n?rf(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&rv(l,o,c),c})([custom_element_e("wcm-view-all-wallets-button")],rb);let ry=i`.wcm-qr-container{width:100%;display:flex;justify-content:center;align-items:center;aspect-ratio:1/1}`;var r_=Object.defineProperty,rx=Object.getOwnPropertyDescriptor,de=(e,l,o,n)=>{for(var s,c=n>1?void 0:n?rx(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&r_(l,o,c),c};let r$=class extends lit_element_s{constructor(){super(),this.walletId="",this.imageId="",this.uri="",setTimeout(()=>{let{walletConnectUri:e}=ew.OptionsCtrl.state;this.uri=e},0)}get overlayEl(){return tc.getShadowRootElement(this,".wcm-qr-container")}render(){return ee`
${this.uri?ee``:ee``}
`}};r$.styles=[eH.globalCss,ry],de([property_n()],r$.prototype,"walletId",2),de([property_n()],r$.prototype,"imageId",2),de([state_t()],r$.prototype,"uri",2),r$=de([custom_element_e("wcm-walletconnect-qr")],r$);var rC=Object.defineProperty,rA=Object.getOwnPropertyDescriptor;let rE=class extends lit_element_s{viewTemplate(){return ew.zv.isAndroid()?ee``:ew.zv.isMobile()?ee``:ee``}render(){return ee`${this.viewTemplate()}`}};rE.styles=[eH.globalCss],rE=((e,l,o,n)=>{for(var s,c=n>1?void 0:n?rA(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&rC(l,o,c),c})([custom_element_e("wcm-connect-wallet-view")],rE);let rO=i`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var rk=Object.defineProperty,rT=Object.getOwnPropertyDescriptor,Ke=(e,l,o,n)=>{for(var s,c=n>1?void 0:n?rT(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&rk(l,o,c),c};let rI=class extends lit_element_s{constructor(){super(),this.isError=!1,this.openDesktopApp()}onFormatAndRedirect(e){let{desktop:l,name:o}=ew.zv.getWalletRouterData(),n=l?.native;if(n){let l=ew.zv.formatNativeUrl(n,e,o);ew.zv.openHref(l,"_self")}}openDesktopApp(){let{walletConnectUri:e}=ew.OptionsCtrl.state,l=ew.zv.getWalletRouterData();tc.setRecentWallet(l),e&&this.onFormatAndRedirect(e)}render(){let{name:e,id:l,image_id:o}=ew.zv.getWalletRouterData(),{isMobile:n,isWeb:s}=tc.getCachedRouterWalletPlatforms();return ee`${`Connection can continue loading if ${e} is not installed on your device`}Retry`}};rI.styles=[eH.globalCss,rO],Ke([state_t()],rI.prototype,"isError",2),rI=Ke([custom_element_e("wcm-desktop-connecting-view")],rI);let rS=i`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}wcm-button{margin-top:15px}`;var rR=Object.defineProperty,rP=Object.getOwnPropertyDescriptor;let rM=class extends lit_element_s{onInstall(e){e&&ew.zv.openHref(e,"_blank")}render(){let{name:e,id:l,image_id:o,homepage:n}=ew.zv.getWalletRouterData();return ee`${`Download ${e} to continue. If multiple browser extensions are installed, disable non ${e} ones and try again`}Download`}};rM.styles=[eH.globalCss,rS],rM=((e,l,o,n)=>{for(var s,c=n>1?void 0:n?rP(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&rR(l,o,c),c})([custom_element_e("wcm-install-wallet-view")],rM);let rL=i`wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:96px;height:96px;margin-bottom:20px}wcm-info-footer{display:flex;width:100%}.wcm-app-store{justify-content:space-between}.wcm-app-store wcm-wallet-image{margin-right:10px;margin-bottom:0;width:28px;height:28px;border-radius:var(--wcm-wallet-icon-small-border-radius)}.wcm-app-store div{display:flex;align-items:center}.wcm-app-store wcm-button{margin-right:-10px}.wcm-note{flex-direction:column;align-items:center;padding:5px 0}.wcm-note wcm-text{text-align:center}wcm-platform-selection{margin-top:-15px}.wcm-note wcm-text{margin-top:15px}.wcm-note wcm-text span{color:var(--wcm-accent-color)}`;var rW=Object.defineProperty,rD=Object.getOwnPropertyDescriptor,Ye=(e,l,o,n)=>{for(var s,c=n>1?void 0:n?rD(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&rW(l,o,c),c};let rN=class extends lit_element_s{constructor(){super(),this.isError=!1,this.openMobileApp()}onFormatAndRedirect(e,l=!1){let{mobile:o,name:n}=ew.zv.getWalletRouterData(),s=o?.native,c=o?.universal;if(s&&!l){let l=ew.zv.formatNativeUrl(s,e,n);ew.zv.openHref(l,"_self")}else if(c){let l=ew.zv.formatUniversalUrl(c,e,n);ew.zv.openHref(l,"_self")}}openMobileApp(e=!1){let{walletConnectUri:l}=ew.OptionsCtrl.state,o=ew.zv.getWalletRouterData();tc.setRecentWallet(o),l&&this.onFormatAndRedirect(l,e)}onGoToAppStore(e){e&&ew.zv.openHref(e,"_blank")}render(){let{name:e,id:l,image_id:o,app:n,mobile:s}=ew.zv.getWalletRouterData(),{isWeb:c}=tc.getCachedRouterWalletPlatforms(),d=n?.ios,m=s?.universal;return ee`Retry${m?ee`Still doesn't work? Try this alternate link`:null}
${`Get ${e}`}
App Store
`}};rN.styles=[eH.globalCss,rL],Ye([state_t()],rN.prototype,"isError",2),rN=Ye([custom_element_e("wcm-mobile-connecting-view")],rN);let rj=i`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var rz=Object.defineProperty,rU=Object.getOwnPropertyDescriptor;let rH=class extends lit_element_s{render(){let{name:e,id:l,image_id:o}=ew.zv.getWalletRouterData(),{isDesktop:n,isWeb:s}=tc.getCachedRouterWalletPlatforms();return ee`${`Scan this QR Code with your phone's camera or inside ${e} app`}`}};rH.styles=[eH.globalCss,rj],rH=((e,l,o,n)=>{for(var s,c=n>1?void 0:n?rU(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&rz(l,o,c),c})([custom_element_e("wcm-mobile-qr-connecting-view")],rH);var rV=Object.defineProperty,rB=Object.getOwnPropertyDescriptor;let rZ=class extends lit_element_s{render(){return ee``}};rZ.styles=[eH.globalCss],rZ=((e,l,o,n)=>{for(var s,c=n>1?void 0:n?rB(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&rV(l,o,c),c})([custom_element_e("wcm-qrcode-view")],rZ);let rF=i`wcm-modal-content{height:clamp(200px,60vh,600px);display:block;overflow:scroll;scrollbar-width:none;position:relative;margin-top:1px}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between;margin:-15px -10px;padding-top:20px}wcm-modal-content::after,wcm-modal-content::before{content:'';position:fixed;pointer-events:none;z-index:1;width:100%;height:20px;opacity:1}wcm-modal-content::before{box-shadow:0 -1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(var(--wcm-color-bg-1),rgba(255,255,255,0))}wcm-modal-content::after{box-shadow:0 1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(rgba(255,255,255,0),var(--wcm-color-bg-1));top:calc(100% - 20px)}wcm-modal-content::-webkit-scrollbar{display:none}.wcm-placeholder-block{display:flex;justify-content:center;align-items:center;height:100px;overflow:hidden}.wcm-empty,.wcm-loading{display:flex}.wcm-loading .wcm-placeholder-block{height:100%}.wcm-end-reached .wcm-placeholder-block{height:0;opacity:0}.wcm-empty .wcm-placeholder-block{opacity:1;height:100%}wcm-wallet-button{margin:calc((100% - 60px)/ 3) 0}`;var rq=Object.defineProperty,rK=Object.getOwnPropertyDescriptor,ie=(e,l,o,n)=>{for(var s,c=n>1?void 0:n?rK(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&rq(l,o,c),c};let rG=class extends lit_element_s{constructor(){super(...arguments),this.loading=!ew.ExplorerCtrl.state.wallets.listings.length,this.firstFetch=!ew.ExplorerCtrl.state.wallets.listings.length,this.search="",this.endReached=!1,this.intersectionObserver=void 0,this.searchDebounce=tc.debounce(e=>{e.length>=1?(this.firstFetch=!0,this.endReached=!1,this.search=e,ew.ExplorerCtrl.resetSearch(),this.fetchWallets()):this.search&&(this.search="",this.endReached=this.isLastPage(),ew.ExplorerCtrl.resetSearch())})}firstUpdated(){this.createPaginationObserver()}disconnectedCallback(){var e;null==(e=this.intersectionObserver)||e.disconnect()}get placeholderEl(){return tc.getShadowRootElement(this,".wcm-placeholder-block")}createPaginationObserver(){this.intersectionObserver=new IntersectionObserver(([e])=>{e.isIntersecting&&!(this.search&&this.firstFetch)&&this.fetchWallets()}),this.intersectionObserver.observe(this.placeholderEl)}isLastPage(){let{wallets:e,search:l}=ew.ExplorerCtrl.state,{listings:o,total:n}=this.search?l:e;return n<=40||o.length>=n}async fetchWallets(){var e;let{wallets:l,search:o}=ew.ExplorerCtrl.state,{listings:n,total:s,page:c}=this.search?o:l;if(!this.endReached&&(this.firstFetch||s>40&&n.lengthtc.getWalletIcon(e));await Promise.all([...n.map(async e=>tc.preloadImage(e)),ew.zv.wait(300)]),this.endReached=this.isLastPage()}catch(e){console.error(e),ew.ToastCtrl.openToast(tc.getErrorMessage(e),"error")}finally{this.loading=!1,this.firstFetch=!1}}onConnect(e){ew.zv.isAndroid()?tc.handleMobileLinking(e):tc.goToConnectingView(e)}onSearchChange(e){let{value:l}=e.target;this.searchDebounce(l)}render(){let{wallets:e,search:l}=ew.ExplorerCtrl.state,{listings:o}=this.search?l:e,n=this.loading&&!o.length,s=this.search.length>=3,c=t3.manualWalletsTemplate(),d=t3.recomendedWalletsTemplate(!0);s&&(c=c.filter(({values:e})=>tc.caseSafeIncludes(e[0],this.search)),d=d.filter(({values:e})=>tc.caseSafeIncludes(e[0],this.search)));let m=!this.loading&&!o.length&&!d.length,h={"wcm-loading":n,"wcm-end-reached":this.endReached||!this.loading,"wcm-empty":m};return ee`
${n?null:c} ${n?null:d} ${n?null:o.map(e=>ee`${e?ee``:null}`)}
${m?ee`No results found`:null} ${!m&&this.loading?ee``:null}
`}};rG.styles=[eH.globalCss,rF],ie([state_t()],rG.prototype,"loading",2),ie([state_t()],rG.prototype,"firstFetch",2),ie([state_t()],rG.prototype,"search",2),ie([state_t()],rG.prototype,"endReached",2),rG=ie([custom_element_e("wcm-wallet-explorer-view")],rG);let rY=i`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var rQ=Object.defineProperty,rX=Object.getOwnPropertyDescriptor,Ge=(e,l,o,n)=>{for(var s,c=n>1?void 0:n?rX(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&rQ(l,o,c),c};let rJ=class extends lit_element_s{constructor(){super(),this.isError=!1,this.openWebWallet()}onFormatAndRedirect(e){let{desktop:l,name:o}=ew.zv.getWalletRouterData(),n=l?.universal;if(n){let l=ew.zv.formatUniversalUrl(n,e,o);ew.zv.openHref(l,"_blank")}}openWebWallet(){let{walletConnectUri:e}=ew.OptionsCtrl.state,l=ew.zv.getWalletRouterData();tc.setRecentWallet(l),e&&this.onFormatAndRedirect(e)}render(){let{name:e,id:l,image_id:o}=ew.zv.getWalletRouterData(),{isMobile:n,isDesktop:s}=tc.getCachedRouterWalletPlatforms(),c=ew.zv.isMobile();return ee`${`${e} web app has opened in a new tab. Go there, accept the connection, and come back`}Retry`}};rJ.styles=[eH.globalCss,rY],Ge([state_t()],rJ.prototype,"isError",2),rJ=Ge([custom_element_e("wcm-web-connecting-view")],rJ)}}]); \ No newline at end of file + */let if_defined_l=e=>null!=e?e:ei;var eW=o(20102),eD=Object.defineProperty,eN=Object.getOwnPropertySymbols,ej=Object.prototype.hasOwnProperty,ez=Object.prototype.propertyIsEnumerable,Ue=(e,l,o)=>l in e?eD(e,l,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[l]=o,ve=(e,l)=>{for(var o in l||(l={}))ej.call(l,o)&&Ue(e,o,l[o]);if(eN)for(var o of eN(l))ez.call(l,o)&&Ue(e,o,l[o]);return e};function rt(){var e;let l=null!=(e=ew.ThemeCtrl.state.themeMode)?e:"dark",o={light:{foreground:{1:"rgb(20,20,20)",2:"rgb(121,134,134)",3:"rgb(158,169,169)"},background:{1:"rgb(255,255,255)",2:"rgb(241,243,243)",3:"rgb(228,231,231)"},overlay:"rgba(0,0,0,0.1)"},dark:{foreground:{1:"rgb(228,231,231)",2:"rgb(148,158,158)",3:"rgb(110,119,119)"},background:{1:"rgb(20,20,20)",2:"rgb(39,42,42)",3:"rgb(59,64,64)"},overlay:"rgba(255,255,255,0.1)"}}[l];return{"--wcm-color-fg-1":o.foreground[1],"--wcm-color-fg-2":o.foreground[2],"--wcm-color-fg-3":o.foreground[3],"--wcm-color-bg-1":o.background[1],"--wcm-color-bg-2":o.background[2],"--wcm-color-bg-3":o.background[3],"--wcm-color-overlay":o.overlay}}function He(){return{"--wcm-accent-color":"#3396FF","--wcm-accent-fill-color":"#FFFFFF","--wcm-z-index":"89","--wcm-background-color":"#3396FF","--wcm-background-border-radius":"8px","--wcm-container-border-radius":"30px","--wcm-wallet-icon-border-radius":"15px","--wcm-wallet-icon-large-border-radius":"30px","--wcm-wallet-icon-small-border-radius":"7px","--wcm-input-border-radius":"28px","--wcm-button-border-radius":"10px","--wcm-notification-border-radius":"36px","--wcm-secondary-button-border-radius":"28px","--wcm-icon-button-border-radius":"50%","--wcm-button-hover-highlight-border-radius":"10px","--wcm-text-big-bold-size":"20px","--wcm-text-big-bold-weight":"600","--wcm-text-big-bold-line-height":"24px","--wcm-text-big-bold-letter-spacing":"-0.03em","--wcm-text-big-bold-text-transform":"none","--wcm-text-xsmall-bold-size":"10px","--wcm-text-xsmall-bold-weight":"700","--wcm-text-xsmall-bold-line-height":"12px","--wcm-text-xsmall-bold-letter-spacing":"0.02em","--wcm-text-xsmall-bold-text-transform":"uppercase","--wcm-text-xsmall-regular-size":"12px","--wcm-text-xsmall-regular-weight":"600","--wcm-text-xsmall-regular-line-height":"14px","--wcm-text-xsmall-regular-letter-spacing":"-0.03em","--wcm-text-xsmall-regular-text-transform":"none","--wcm-text-small-thin-size":"14px","--wcm-text-small-thin-weight":"500","--wcm-text-small-thin-line-height":"16px","--wcm-text-small-thin-letter-spacing":"-0.03em","--wcm-text-small-thin-text-transform":"none","--wcm-text-small-regular-size":"14px","--wcm-text-small-regular-weight":"600","--wcm-text-small-regular-line-height":"16px","--wcm-text-small-regular-letter-spacing":"-0.03em","--wcm-text-small-regular-text-transform":"none","--wcm-text-medium-regular-size":"16px","--wcm-text-medium-regular-weight":"600","--wcm-text-medium-regular-line-height":"20px","--wcm-text-medium-regular-letter-spacing":"-0.03em","--wcm-text-medium-regular-text-transform":"none","--wcm-font-family":"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', sans-serif","--wcm-font-feature-settings":"'tnum' on, 'lnum' on, 'case' on","--wcm-success-color":"rgb(38,181,98)","--wcm-error-color":"rgb(242, 90, 103)","--wcm-overlay-background-color":"rgba(0, 0, 0, 0.3)","--wcm-overlay-backdrop-filter":"none"}}let eU={getPreset:e=>He()[e],setTheme(){let e=document.querySelector(":root"),{themeVariables:l}=ew.ThemeCtrl.state;if(e){let o=ve(ve(ve({},rt()),He()),l);Object.entries(o).forEach(([l,o])=>e.style.setProperty(l,o))}},globalCss:i`*,::after,::before{margin:0;padding:0;box-sizing:border-box;font-style:normal;text-rendering:optimizeSpeed;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent;backface-visibility:hidden}button{cursor:pointer;display:flex;justify-content:center;align-items:center;position:relative;border:none;background-color:transparent;transition:all .2s ease}@media (hover:hover) and (pointer:fine){button:active{transition:all .1s ease;transform:scale(.93)}}button::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;transition:background-color,.2s ease}button:disabled{cursor:not-allowed}button svg,button wcm-text{position:relative;z-index:1}input{border:none;outline:0;appearance:none}img{display:block}::selection{color:var(--wcm-accent-fill-color);background:var(--wcm-accent-color)}`},eH=i`button{border-radius:var(--wcm-secondary-button-border-radius);height:28px;padding:0 10px;background-color:var(--wcm-accent-color)}button path{fill:var(--wcm-accent-fill-color)}button::after{border-radius:inherit;border:1px solid var(--wcm-color-overlay)}button:disabled::after{background-color:transparent}.wcm-icon-left svg{margin-right:5px}.wcm-icon-right svg{margin-left:5px}button:active::after{background-color:var(--wcm-color-overlay)}.wcm-ghost,.wcm-ghost:active::after,.wcm-outline{background-color:transparent}.wcm-ghost:active{opacity:.5}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}.wcm-ghost:hover::after{background-color:transparent}.wcm-ghost:hover{opacity:.5}}button:disabled{background-color:var(--wcm-color-bg-3);pointer-events:none}.wcm-ghost::after{border-color:transparent}.wcm-ghost path{fill:var(--wcm-color-fg-2)}.wcm-outline path{fill:var(--wcm-accent-color)}.wcm-outline:disabled{background-color:transparent;opacity:.5}`;var eV=Object.defineProperty,eB=Object.getOwnPropertyDescriptor,F=(e,l,o,n)=>{for(var s,c=n>1?void 0:n?eB(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&eV(l,o,c),c};let eZ=class extends lit_element_s{constructor(){super(...arguments),this.disabled=!1,this.iconLeft=void 0,this.iconRight=void 0,this.onClick=()=>null,this.variant="default"}render(){let e={"wcm-icon-left":void 0!==this.iconLeft,"wcm-icon-right":void 0!==this.iconRight,"wcm-ghost":"ghost"===this.variant,"wcm-outline":"outline"===this.variant},l="inverse";return"ghost"===this.variant&&(l="secondary"),"outline"===this.variant&&(l="accent"),ee``}};eZ.styles=[eU.globalCss,eH],F([property_n({type:Boolean})],eZ.prototype,"disabled",2),F([property_n()],eZ.prototype,"iconLeft",2),F([property_n()],eZ.prototype,"iconRight",2),F([property_n()],eZ.prototype,"onClick",2),F([property_n()],eZ.prototype,"variant",2),eZ=F([custom_element_e("wcm-button")],eZ);let eF=i`:host{display:inline-block}button{padding:0 15px 1px;height:40px;border-radius:var(--wcm-button-border-radius);color:var(--wcm-accent-fill-color);background-color:var(--wcm-accent-color)}button::after{content:'';top:0;bottom:0;left:0;right:0;position:absolute;background-color:transparent;border-radius:inherit;transition:background-color .2s ease;border:1px solid var(--wcm-color-overlay)}button:active::after{background-color:var(--wcm-color-overlay)}button:disabled{padding-bottom:0;background-color:var(--wcm-color-bg-3);color:var(--wcm-color-fg-3)}.wcm-secondary{color:var(--wcm-accent-color);background-color:transparent}.wcm-secondary::after{display:none}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}}`;var eq=Object.defineProperty,eK=Object.getOwnPropertyDescriptor,ue=(e,l,o,n)=>{for(var s,c=n>1?void 0:n?eK(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&eq(l,o,c),c};let eG=class extends lit_element_s{constructor(){super(...arguments),this.disabled=!1,this.variant="primary"}render(){let e={"wcm-secondary":"secondary"===this.variant};return ee``}};eG.styles=[eU.globalCss,eF],ue([property_n({type:Boolean})],eG.prototype,"disabled",2),ue([property_n()],eG.prototype,"variant",2),eG=ue([custom_element_e("wcm-button-big")],eG);let eY=i`:host{background-color:var(--wcm-color-bg-2);border-top:1px solid var(--wcm-color-bg-3)}div{padding:10px 20px;display:inherit;flex-direction:inherit;align-items:inherit;width:inherit;justify-content:inherit}`;var eQ=Object.defineProperty,eX=Object.getOwnPropertyDescriptor;let eJ=class extends lit_element_s{render(){return ee`
`}};eJ.styles=[eU.globalCss,eY],eJ=((e,l,o,n)=>{for(var s,c=n>1?void 0:n?eX(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&eQ(l,o,c),c})([custom_element_e("wcm-info-footer")],eJ);let e0={CROSS_ICON:et``,WALLET_CONNECT_LOGO:et``,WALLET_CONNECT_ICON:et``,WALLET_CONNECT_ICON_COLORED:et``,BACK_ICON:et``,COPY_ICON:et``,RETRY_ICON:et``,DESKTOP_ICON:et``,MOBILE_ICON:et``,ARROW_DOWN_ICON:et``,ARROW_UP_RIGHT_ICON:et``,ARROW_RIGHT_ICON:et``,QRCODE_ICON:et``,SCAN_ICON:et``,CHECKMARK_ICON:et``,SEARCH_ICON:et``,WALLET_PLACEHOLDER:et``,GLOBE_ICON:et``},e1=i`.wcm-toolbar-placeholder{top:0;bottom:0;left:0;right:0;width:100%;position:absolute;display:block;pointer-events:none;height:100px;border-radius:calc(var(--wcm-background-border-radius) * .9);background-color:var(--wcm-background-color);background-position:center;background-size:cover}.wcm-toolbar{height:38px;display:flex;position:relative;margin:5px 15px 5px 5px;justify-content:space-between;align-items:center}.wcm-toolbar img,.wcm-toolbar svg{height:28px;object-position:left center;object-fit:contain}#wcm-wc-logo path{fill:var(--wcm-accent-fill-color)}button{width:28px;height:28px;border-radius:var(--wcm-icon-button-border-radius);border:0;display:flex;justify-content:center;align-items:center;cursor:pointer;background-color:var(--wcm-color-bg-1);box-shadow:0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-bg-2)}button svg{display:block;object-position:center}button path{fill:var(--wcm-color-fg-1)}.wcm-toolbar div{display:flex}@media(hover:hover){button:hover{background-color:var(--wcm-color-bg-2)}}`;var e2=Object.defineProperty,e5=Object.getOwnPropertyDescriptor;let e3=class extends lit_element_s{render(){return ee`
${e0.WALLET_CONNECT_LOGO}
`}};e3.styles=[eU.globalCss,e1],e3=((e,l,o,n)=>{for(var s,c=n>1?void 0:n?e5(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&e2(l,o,c),c})([custom_element_e("wcm-modal-backcard")],e3);let e4=i`main{padding:20px;padding-top:0;width:100%}`;var e7=Object.defineProperty,e6=Object.getOwnPropertyDescriptor;let e8=class extends lit_element_s{render(){return ee`
`}};e8.styles=[eU.globalCss,e4],e8=((e,l,o,n)=>{for(var s,c=n>1?void 0:n?e6(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&e7(l,o,c),c})([custom_element_e("wcm-modal-content")],e8);let e9=i`footer{padding:10px;display:flex;flex-direction:column;align-items:inherit;justify-content:inherit;border-top:1px solid var(--wcm-color-bg-2)}`;var tt=Object.defineProperty,tr=Object.getOwnPropertyDescriptor;let ti=class extends lit_element_s{render(){return ee`
`}};ti.styles=[eU.globalCss,e9],ti=((e,l,o,n)=>{for(var s,c=n>1?void 0:n?tr(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&tt(l,o,c),c})([custom_element_e("wcm-modal-footer")],ti);let tl=i`header{display:flex;justify-content:center;align-items:center;padding:20px;position:relative}.wcm-border{border-bottom:1px solid var(--wcm-color-bg-2);margin-bottom:20px}header button{padding:15px 20px}header button:active{opacity:.5}@media(hover:hover){header button:hover{opacity:.5}}.wcm-back-btn{position:absolute;left:0}.wcm-action-btn{position:absolute;right:0}path{fill:var(--wcm-accent-color)}`;var to=Object.defineProperty,ta=Object.getOwnPropertyDescriptor,te=(e,l,o,n)=>{for(var s,c=n>1?void 0:n?ta(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&to(l,o,c),c};let tn=class extends lit_element_s{constructor(){super(...arguments),this.title="",this.onAction=void 0,this.actionIcon=void 0,this.border=!1}backBtnTemplate(){return ee``}actionBtnTemplate(){return ee``}render(){let e={"wcm-border":this.border},l=ew.AV.state.history.length>1,o=this.title?ee`${this.title}`:ee``;return ee`
${l?this.backBtnTemplate():null} ${o} ${this.onAction?this.actionBtnTemplate():null}
`}};tn.styles=[eU.globalCss,tl],te([property_n()],tn.prototype,"title",2),te([property_n()],tn.prototype,"onAction",2),te([property_n()],tn.prototype,"actionIcon",2),te([property_n({type:Boolean})],tn.prototype,"border",2),tn=te([custom_element_e("wcm-modal-header")],tn);let ts={MOBILE_BREAKPOINT:600,WCM_RECENT_WALLET_DATA:"WCM_RECENT_WALLET_DATA",EXPLORER_WALLET_URL:"https://explorer.walletconnect.com/?type=wallet",getShadowRootElement(e,l){let o=e.renderRoot.querySelector(l);if(!o)throw Error(`${l} not found`);return o},getWalletIcon({id:e,image_id:l}){let{walletImages:o}=ew.ConfigCtrl.state;return null!=o&&o[e]?o[e]:l?ew.ExplorerCtrl.getWalletImageUrl(l):""},getWalletName:(e,l=!1)=>l&&e.length>8?`${e.substring(0,8)}..`:e,isMobileAnimation:()=>window.innerWidth<=ts.MOBILE_BREAKPOINT,async preloadImage(e){let l=new Promise((l,o)=>{let n=new Image;n.onload=l,n.onerror=o,n.crossOrigin="anonymous",n.src=e});return Promise.race([l,ew.zv.wait(3e3)])},getErrorMessage:e=>e instanceof Error?e.message:"Unknown Error",debounce(e,l=500){let o;return(...n)=>{function t(){e(...n)}o&&clearTimeout(o),o=setTimeout(t,l)}},handleMobileLinking(e){let{walletConnectUri:l}=ew.OptionsCtrl.state,{mobile:o,name:n}=e,s=o?.native,c=o?.universal;function i(e){let l="";s?l=ew.zv.formatUniversalUrl(s,e,n):c&&(l=ew.zv.formatNativeUrl(c,e,n)),ew.zv.openHref(l,"_self")}ts.setRecentWallet(e),l&&i(l)},handleAndroidLinking(){let{walletConnectUri:e}=ew.OptionsCtrl.state;e&&(ew.zv.setWalletConnectAndroidDeepLink(e),ew.zv.openHref(e,"_self"))},async handleUriCopy(){let{walletConnectUri:e}=ew.OptionsCtrl.state;if(e)try{await navigator.clipboard.writeText(e),ew.ToastCtrl.openToast("Link copied","success")}catch{ew.ToastCtrl.openToast("Failed to copy","error")}},getCustomImageUrls(){let{walletImages:e}=ew.ConfigCtrl.state,l=Object.values(e??{});return Object.values(l)},truncate:(e,l=8)=>e.length<=l?e:`${e.substring(0,4)}...${e.substring(e.length-4)}`,setRecentWallet(e){try{localStorage.setItem(ts.WCM_RECENT_WALLET_DATA,JSON.stringify(e))}catch{console.info("Unable to set recent wallet")}},getRecentWallet(){try{let e=localStorage.getItem(ts.WCM_RECENT_WALLET_DATA);return e?JSON.parse(e):void 0}catch{console.info("Unable to get recent wallet")}},caseSafeIncludes:(e,l)=>e.toUpperCase().includes(l.toUpperCase()),openWalletExplorerUrl(){ew.zv.openHref(ts.EXPLORER_WALLET_URL,"_blank")},getCachedRouterWalletPlatforms(){let{desktop:e,mobile:l}=ew.zv.getWalletRouterData(),o=!!e?.native,n=!!e?.universal,s=!!l?.native||!!l?.universal;return{isDesktop:o,isMobile:s,isWeb:n}},goToConnectingView(e){ew.AV.setData({Wallet:e});let l=ew.zv.isMobile(),{isDesktop:o,isWeb:n,isMobile:s}=ts.getCachedRouterWalletPlatforms();l?s?ew.AV.push("MobileConnecting"):n?ew.AV.push("WebConnecting"):ew.AV.push("InstallWallet"):o?ew.AV.push("DesktopConnecting"):n?ew.AV.push("WebConnecting"):s?ew.AV.push("MobileQrcodeConnecting"):ew.AV.push("InstallWallet")}},tc=i`.wcm-router{overflow:hidden;will-change:transform}.wcm-content{display:flex;flex-direction:column}`;var td=Object.defineProperty,tm=Object.getOwnPropertyDescriptor,$e=(e,l,o,n)=>{for(var s,c=n>1?void 0:n?tm(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&td(l,o,c),c};let th=class extends lit_element_s{constructor(){super(),this.view=ew.AV.state.view,this.prevView=ew.AV.state.view,this.unsubscribe=void 0,this.oldHeight="0px",this.resizeObserver=void 0,this.unsubscribe=ew.AV.subscribe(e=>{this.view!==e.view&&this.onChangeRoute()})}firstUpdated(){this.resizeObserver=new ResizeObserver(([e])=>{let l=`${e.contentRect.height}px`;"0px"!==this.oldHeight&&animate_es_animate(this.routerEl,{height:[this.oldHeight,l]},{duration:.2}),this.oldHeight=l}),this.resizeObserver.observe(this.contentEl)}disconnectedCallback(){var e,l;null==(e=this.unsubscribe)||e.call(this),null==(l=this.resizeObserver)||l.disconnect()}get routerEl(){return ts.getShadowRootElement(this,".wcm-router")}get contentEl(){return ts.getShadowRootElement(this,".wcm-content")}viewTemplate(){switch(this.view){case"ConnectWallet":return ee``;case"DesktopConnecting":return ee``;case"MobileConnecting":return ee``;case"WebConnecting":return ee``;case"MobileQrcodeConnecting":return ee``;case"WalletExplorer":return ee``;case"Qrcode":return ee``;case"InstallWallet":return ee``;default:return ee`
Not Found
`}}async onChangeRoute(){await animate_es_animate(this.routerEl,{opacity:[1,0],scale:[1,1.02]},{duration:.15,delay:.1}).finished,this.view=ew.AV.state.view,animate_es_animate(this.routerEl,{opacity:[0,1],scale:[.99,1]},{duration:.37,delay:.05})}render(){return ee`
${this.viewTemplate()}
`}};th.styles=[eU.globalCss,tc],$e([state_t()],th.prototype,"view",2),$e([state_t()],th.prototype,"prevView",2),th=$e([custom_element_e("wcm-modal-router")],th);let tp=i`div{height:36px;width:max-content;display:flex;justify-content:center;align-items:center;padding:9px 15px 11px;position:absolute;top:12px;box-shadow:0 6px 14px -6px rgba(10,16,31,.3),0 10px 32px -4px rgba(10,16,31,.15);z-index:2;left:50%;transform:translateX(-50%);pointer-events:none;backdrop-filter:blur(20px) saturate(1.8);-webkit-backdrop-filter:blur(20px) saturate(1.8);border-radius:var(--wcm-notification-border-radius);border:1px solid var(--wcm-color-overlay);background-color:var(--wcm-color-overlay)}svg{margin-right:5px}@-moz-document url-prefix(){div{background-color:var(--wcm-color-bg-3)}}.wcm-success path{fill:var(--wcm-accent-color)}.wcm-error path{fill:var(--wcm-error-color)}`;var tu=Object.defineProperty,tg=Object.getOwnPropertyDescriptor,ze=(e,l,o,n)=>{for(var s,c=n>1?void 0:n?tg(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&tu(l,o,c),c};let tw=class extends lit_element_s{constructor(){super(),this.open=!1,this.unsubscribe=void 0,this.timeout=void 0,this.unsubscribe=ew.ToastCtrl.subscribe(e=>{e.open?(this.open=!0,this.timeout=setTimeout(()=>ew.ToastCtrl.closeToast(),2200)):(this.open=!1,clearTimeout(this.timeout))})}disconnectedCallback(){var e;null==(e=this.unsubscribe)||e.call(this),clearTimeout(this.timeout),ew.ToastCtrl.closeToast()}render(){let{message:e,variant:l}=ew.ToastCtrl.state;return this.open?ee`
${"success"===l?e0.CHECKMARK_ICON:null} ${"error"===l?e0.CROSS_ICON:null}${e}
`:null}};function Ce(e,l,o){return e!==l&&(e-l<0?l-e:e-l)<=o+.1}function _t(e,l){let o=Array.prototype.slice.call(eW.create(e,{errorCorrectionLevel:l}).modules.data,0),n=Math.sqrt(o.length);return o.reduce((e,l,o)=>(o%n==0?e.push([l]):e[e.length-1].push(l))&&e,[])}tw.styles=[eU.globalCss,tp],ze([state_t()],tw.prototype,"open",2),tw=ze([custom_element_e("wcm-modal-toast")],tw);let tv={generate(e,l,o){let n="#141414",s=[],c=_t(e,"Q"),d=l/c.length,m=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];m.forEach(({x:e,y:l})=>{let o=(c.length-7)*d*e,h=(c.length-7)*d*l;for(let e=0;e`)}});let h=Math.floor((o+25)/d),p=c.length/2-h/2,g=c.length/2+h/2-1,f=[];c.forEach((e,l)=>{e.forEach((e,o)=>{if(c[l][o]&&!(l<7&&o<7||l>c.length-8&&o<7||l<7&&o>c.length-8)&&!(l>p&&lp&&o{b[e]?b[e].push(l):b[e]=[l]}),Object.entries(b).map(([e,l])=>{let o=l.filter(e=>l.every(l=>!Ce(e,l,d)));return[Number(e),o]}).forEach(([e,l])=>{l.forEach(l=>{s.push(et``)})}),Object.entries(b).filter(([e,l])=>l.length>1).map(([e,l])=>{let o=l.filter(e=>l.some(l=>Ce(e,l,d)));return[Number(e),o]}).map(([e,l])=>{l.sort((e,l)=>el.some(l=>Ce(e,l,d)));l?l.push(e):o.push([e])}return[e,o.map(e=>[e[0],e[e.length-1]])]}).forEach(([e,l])=>{l.forEach(([l,o])=>{s.push(et``)})}),s}},tf=i`@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}div{position:relative;user-select:none;display:block;overflow:hidden;aspect-ratio:1/1;animation:fadeIn ease .2s}.wcm-dark{background-color:#fff;border-radius:var(--wcm-container-border-radius);padding:18px;box-shadow:0 2px 5px #000}svg:first-child,wcm-wallet-image{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{width:25%;height:25%;border-radius:var(--wcm-wallet-icon-border-radius)}svg:first-child{transform:translateY(-50%) translateX(-50%) scale(.9)}svg:first-child path:first-child{fill:var(--wcm-accent-color)}svg:first-child path:last-child{stroke:var(--wcm-color-overlay)}`;var tb=Object.defineProperty,ty=Object.getOwnPropertyDescriptor,q=(e,l,o,n)=>{for(var s,c=n>1?void 0:n?ty(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&tb(l,o,c),c};let t_=class extends lit_element_s{constructor(){super(...arguments),this.uri="",this.size=0,this.imageId=void 0,this.walletId=void 0,this.imageUrl=void 0}svgTemplate(){let e="light"===ew.ThemeCtrl.state.themeMode?this.size:this.size-36;return et`${tv.generate(this.uri,e,e/4)}`}render(){let e={"wcm-dark":"dark"===ew.ThemeCtrl.state.themeMode};return ee`
${this.walletId||this.imageUrl?ee``:e0.WALLET_CONNECT_ICON_COLORED} ${this.svgTemplate()}
`}};t_.styles=[eU.globalCss,tf],q([property_n()],t_.prototype,"uri",2),q([property_n({type:Number})],t_.prototype,"size",2),q([property_n()],t_.prototype,"imageId",2),q([property_n()],t_.prototype,"walletId",2),q([property_n()],t_.prototype,"imageUrl",2),t_=q([custom_element_e("wcm-qrcode")],t_);let tx=i`:host{position:relative;height:28px;width:80%}input{width:100%;height:100%;line-height:28px!important;border-radius:var(--wcm-input-border-radius);font-style:normal;font-family:-apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,Ubuntu,'Helvetica Neue',sans-serif;font-feature-settings:'case' on;font-weight:500;font-size:16px;letter-spacing:-.03em;padding:0 10px 0 34px;transition:.2s all ease;color:var(--wcm-color-fg-1);background-color:var(--wcm-color-bg-3);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay);caret-color:var(--wcm-accent-color)}input::placeholder{color:var(--wcm-color-fg-2)}svg{left:10px;top:4px;pointer-events:none;position:absolute;width:20px;height:20px}input:focus-within{box-shadow:inset 0 0 0 1px var(--wcm-accent-color)}path{fill:var(--wcm-color-fg-2)}`;var t$=Object.defineProperty,tC=Object.getOwnPropertyDescriptor,Fe=(e,l,o,n)=>{for(var s,c=n>1?void 0:n?tC(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&t$(l,o,c),c};let tA=class extends lit_element_s{constructor(){super(...arguments),this.onChange=()=>null}render(){return ee` ${e0.SEARCH_ICON}`}};tA.styles=[eU.globalCss,tx],Fe([property_n()],tA.prototype,"onChange",2),tA=Fe([custom_element_e("wcm-search-input")],tA);let tE=i`@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}svg{animation:rotate 2s linear infinite;display:flex;justify-content:center;align-items:center}svg circle{stroke-linecap:round;animation:dash 1.5s ease infinite;stroke:var(--wcm-accent-color)}`;var tO=Object.defineProperty,tk=Object.getOwnPropertyDescriptor;let tT=class extends lit_element_s{render(){return ee``}};tT.styles=[eU.globalCss,tE],tT=((e,l,o,n)=>{for(var s,c=n>1?void 0:n?tk(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&tO(l,o,c),c})([custom_element_e("wcm-spinner")],tT);let tI=i`span{font-style:normal;font-family:var(--wcm-font-family);font-feature-settings:var(--wcm-font-feature-settings)}.wcm-xsmall-bold{font-family:var(--wcm-text-xsmall-bold-font-family);font-weight:var(--wcm-text-xsmall-bold-weight);font-size:var(--wcm-text-xsmall-bold-size);line-height:var(--wcm-text-xsmall-bold-line-height);letter-spacing:var(--wcm-text-xsmall-bold-letter-spacing);text-transform:var(--wcm-text-xsmall-bold-text-transform)}.wcm-xsmall-regular{font-family:var(--wcm-text-xsmall-regular-font-family);font-weight:var(--wcm-text-xsmall-regular-weight);font-size:var(--wcm-text-xsmall-regular-size);line-height:var(--wcm-text-xsmall-regular-line-height);letter-spacing:var(--wcm-text-xsmall-regular-letter-spacing);text-transform:var(--wcm-text-xsmall-regular-text-transform)}.wcm-small-thin{font-family:var(--wcm-text-small-thin-font-family);font-weight:var(--wcm-text-small-thin-weight);font-size:var(--wcm-text-small-thin-size);line-height:var(--wcm-text-small-thin-line-height);letter-spacing:var(--wcm-text-small-thin-letter-spacing);text-transform:var(--wcm-text-small-thin-text-transform)}.wcm-small-regular{font-family:var(--wcm-text-small-regular-font-family);font-weight:var(--wcm-text-small-regular-weight);font-size:var(--wcm-text-small-regular-size);line-height:var(--wcm-text-small-regular-line-height);letter-spacing:var(--wcm-text-small-regular-letter-spacing);text-transform:var(--wcm-text-small-regular-text-transform)}.wcm-medium-regular{font-family:var(--wcm-text-medium-regular-font-family);font-weight:var(--wcm-text-medium-regular-weight);font-size:var(--wcm-text-medium-regular-size);line-height:var(--wcm-text-medium-regular-line-height);letter-spacing:var(--wcm-text-medium-regular-letter-spacing);text-transform:var(--wcm-text-medium-regular-text-transform)}.wcm-big-bold{font-family:var(--wcm-text-big-bold-font-family);font-weight:var(--wcm-text-big-bold-weight);font-size:var(--wcm-text-big-bold-size);line-height:var(--wcm-text-big-bold-line-height);letter-spacing:var(--wcm-text-big-bold-letter-spacing);text-transform:var(--wcm-text-big-bold-text-transform)}:host(*){color:var(--wcm-color-fg-1)}.wcm-color-primary{color:var(--wcm-color-fg-1)}.wcm-color-secondary{color:var(--wcm-color-fg-2)}.wcm-color-tertiary{color:var(--wcm-color-fg-3)}.wcm-color-inverse{color:var(--wcm-accent-fill-color)}.wcm-color-accnt{color:var(--wcm-accent-color)}.wcm-color-error{color:var(--wcm-error-color)}`;var tS=Object.defineProperty,tR=Object.getOwnPropertyDescriptor,Oe=(e,l,o,n)=>{for(var s,c=n>1?void 0:n?tR(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&tS(l,o,c),c};let tP=class extends lit_element_s{constructor(){super(...arguments),this.variant="medium-regular",this.color="primary"}render(){let e={"wcm-big-bold":"big-bold"===this.variant,"wcm-medium-regular":"medium-regular"===this.variant,"wcm-small-regular":"small-regular"===this.variant,"wcm-small-thin":"small-thin"===this.variant,"wcm-xsmall-regular":"xsmall-regular"===this.variant,"wcm-xsmall-bold":"xsmall-bold"===this.variant,"wcm-color-primary":"primary"===this.color,"wcm-color-secondary":"secondary"===this.color,"wcm-color-tertiary":"tertiary"===this.color,"wcm-color-inverse":"inverse"===this.color,"wcm-color-accnt":"accent"===this.color,"wcm-color-error":"error"===this.color};return ee``}};tP.styles=[eU.globalCss,tI],Oe([property_n()],tP.prototype,"variant",2),Oe([property_n()],tP.prototype,"color",2),tP=Oe([custom_element_e("wcm-text")],tP);let tM=i`button{width:100%;height:100%;border-radius:var(--wcm-button-hover-highlight-border-radius);display:flex;align-items:flex-start}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}button>div{width:80px;padding:5px 0;display:flex;flex-direction:column;align-items:center}wcm-text{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}wcm-wallet-image{height:60px;width:60px;transition:all .2s ease;border-radius:var(--wcm-wallet-icon-border-radius);margin-bottom:5px}.wcm-sublabel{margin-top:2px}`;var tL=Object.defineProperty,tW=Object.getOwnPropertyDescriptor,dist_=(e,l,o,n)=>{for(var s,c=n>1?void 0:n?tW(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&tL(l,o,c),c};let tD=class extends lit_element_s{constructor(){super(...arguments),this.onClick=()=>null,this.name="",this.walletId="",this.label=void 0,this.imageId=void 0,this.installed=!1,this.recent=!1}sublabelTemplate(){return this.recent?ee`RECENT`:this.installed?ee`INSTALLED`:null}handleClick(){ew.uA.click({name:"WALLET_BUTTON",walletId:this.walletId}),this.onClick()}render(){var e;return ee``}};tD.styles=[eU.globalCss,tM],dist_([property_n()],tD.prototype,"onClick",2),dist_([property_n()],tD.prototype,"name",2),dist_([property_n()],tD.prototype,"walletId",2),dist_([property_n()],tD.prototype,"label",2),dist_([property_n()],tD.prototype,"imageId",2),dist_([property_n({type:Boolean})],tD.prototype,"installed",2),dist_([property_n({type:Boolean})],tD.prototype,"recent",2),tD=dist_([custom_element_e("wcm-wallet-button")],tD);let tN=i`:host{display:block}div{overflow:hidden;position:relative;border-radius:inherit;width:100%;height:100%;background-color:var(--wcm-color-overlay)}svg{position:relative;width:100%;height:100%}div::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;border-radius:inherit;border:1px solid var(--wcm-color-overlay)}div img{width:100%;height:100%;object-fit:cover;object-position:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var tj=Object.defineProperty,tz=Object.getOwnPropertyDescriptor,se=(e,l,o,n)=>{for(var s,c=n>1?void 0:n?tz(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&tj(l,o,c),c};let tU=class extends lit_element_s{constructor(){super(...arguments),this.walletId="",this.imageId=void 0,this.imageUrl=void 0}render(){var e;let l=null!=(e=this.imageUrl)&&e.length?this.imageUrl:ts.getWalletIcon({id:this.walletId,image_id:this.imageId});return ee`${l.length?ee`
${this.id}
`:e0.WALLET_PLACEHOLDER}`}};tU.styles=[eU.globalCss,tN],se([property_n()],tU.prototype,"walletId",2),se([property_n()],tU.prototype,"imageId",2),se([property_n()],tU.prototype,"imageUrl",2),tU=se([custom_element_e("wcm-wallet-image")],tU);var tH=Object.defineProperty,tV=Object.getOwnPropertyDescriptor,qe=(e,l,o,n)=>{for(var s,c=n>1?void 0:n?tV(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&tH(l,o,c),c};let tB=class extends lit_element_s{constructor(){super(),this.preload=!0,this.preloadData()}async loadImages(e){try{null!=e&&e.length&&await Promise.all(e.map(async e=>ts.preloadImage(e)))}catch{console.info("Unsuccessful attempt at preloading some images",e)}}async preloadListings(){if(ew.ConfigCtrl.state.enableExplorer){await ew.ExplorerCtrl.getRecomendedWallets(),ew.OptionsCtrl.setIsDataLoaded(!0);let{recomendedWallets:e}=ew.ExplorerCtrl.state,l=e.map(e=>ts.getWalletIcon(e));await this.loadImages(l)}else ew.OptionsCtrl.setIsDataLoaded(!0)}async preloadCustomImages(){let e=ts.getCustomImageUrls();await this.loadImages(e)}async preloadData(){try{this.preload&&(this.preload=!1,await Promise.all([this.preloadListings(),this.preloadCustomImages()]))}catch(e){console.error(e),ew.ToastCtrl.openToast("Failed preloading","error")}}};qe([state_t()],tB.prototype,"preload",2),tB=qe([custom_element_e("wcm-explorer-context")],tB);var tZ=Object.defineProperty,tF=Object.getOwnPropertyDescriptor;let tq=class extends lit_element_s{constructor(){super(),this.unsubscribeTheme=void 0,eU.setTheme(),this.unsubscribeTheme=ew.ThemeCtrl.subscribe(eU.setTheme)}disconnectedCallback(){var e;null==(e=this.unsubscribeTheme)||e.call(this)}};tq=((e,l,o,n)=>{for(var s,c=n>1?void 0:n?tF(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&tZ(l,o,c),c})([custom_element_e("wcm-theme-context")],tq);let tK=i`@keyframes scroll{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(calc(-70px * 9),0,0)}}.wcm-slider{position:relative;overflow-x:hidden;padding:10px 0;margin:0 -20px;width:calc(100% + 40px)}.wcm-track{display:flex;width:calc(70px * 18);animation:scroll 20s linear infinite;opacity:.7}.wcm-track svg{margin:0 5px}wcm-wallet-image{width:60px;height:60px;margin:0 5px;border-radius:var(--wcm-wallet-icon-border-radius)}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-title{display:flex;align-items:center;margin-bottom:10px}.wcm-title svg{margin-right:6px}.wcm-title path{fill:var(--wcm-accent-color)}wcm-modal-footer .wcm-title{padding:0 10px}wcm-button-big{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%);filter:drop-shadow(0 0 17px var(--wcm-color-bg-1))}wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-info-footer wcm-text{text-align:center;margin-bottom:15px}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var tG=Object.defineProperty,tY=Object.getOwnPropertyDescriptor;let tQ=class extends lit_element_s{onGoToQrcode(){ew.AV.push("Qrcode")}render(){let{recomendedWallets:e}=ew.ExplorerCtrl.state,l=[...e,...e],o=2*ew.zv.RECOMMENDED_WALLET_AMOUNT;return ee`
${e0.MOBILE_ICON}WalletConnect
${[...Array(o)].map((e,o)=>{let n=l[o%l.length];return n?ee``:e0.WALLET_PLACEHOLDER})}
Select Wallet
Choose WalletConnect to see supported apps on your device`}};tQ.styles=[eU.globalCss,tK],tQ=((e,l,o,n)=>{for(var s,c=n>1?void 0:n?tY(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&tG(l,o,c),c})([custom_element_e("wcm-android-wallet-selection")],tQ);let tX=i`@keyframes loading{to{stroke-dashoffset:0}}@keyframes shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(1px,0,0)}30%,50%,70%{transform:translate3d(-2px,0,0)}40%,60%{transform:translate3d(2px,0,0)}}:host{display:flex;flex-direction:column;align-items:center}div{position:relative;width:110px;height:110px;display:flex;justify-content:center;align-items:center;margin:40px 0 20px 0;transform:translate3d(0,0,0)}svg{position:absolute;width:110px;height:110px;fill:none;stroke:transparent;stroke-linecap:round;stroke-width:2px;top:0;left:0}use{stroke:var(--wcm-accent-color);animation:loading 1s linear infinite}wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:90px;height:90px}wcm-text{margin-bottom:40px}.wcm-error svg{stroke:var(--wcm-error-color)}.wcm-error use{display:none}.wcm-error{animation:shake .4s cubic-bezier(.36,.07,.19,.97) both}.wcm-stale svg,.wcm-stale use{display:none}`;var tJ=Object.defineProperty,t0=Object.getOwnPropertyDescriptor,K=(e,l,o,n)=>{for(var s,c=n>1?void 0:n?t0(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&tJ(l,o,c),c};let t1=class extends lit_element_s{constructor(){super(...arguments),this.walletId=void 0,this.imageId=void 0,this.isError=!1,this.isStale=!1,this.label=""}svgLoaderTemplate(){var e,l;let o=null!=(l=null==(e=ew.ThemeCtrl.state.themeVariables)?void 0:e["--wcm-wallet-icon-large-border-radius"])?l:eU.getPreset("--wcm-wallet-icon-large-border-radius"),n=0;n=(o.includes("%")?.88*parseInt(o,10):parseInt(o,10))*1.17;let s=317-1.57*n,c=425-1.8*n;return ee``}render(){let e={"wcm-error":this.isError,"wcm-stale":this.isStale};return ee`
${this.svgLoaderTemplate()}
${this.isError?"Connection declined":this.label}`}};t1.styles=[eU.globalCss,tX],K([property_n()],t1.prototype,"walletId",2),K([property_n()],t1.prototype,"imageId",2),K([property_n({type:Boolean})],t1.prototype,"isError",2),K([property_n({type:Boolean})],t1.prototype,"isStale",2),K([property_n()],t1.prototype,"label",2),t1=K([custom_element_e("wcm-connector-waiting")],t1);let t2={manualWallets(){var e,l;let{mobileWallets:o,desktopWallets:n}=ew.ConfigCtrl.state,s=null==(e=t2.recentWallet())?void 0:e.id,c=ew.zv.isMobile()?o:n,d=c?.filter(e=>s!==e.id);return null!=(l=ew.zv.isMobile()?d?.map(({id:e,name:l,links:o})=>({id:e,name:l,mobile:o,links:o})):d?.map(({id:e,name:l,links:o})=>({id:e,name:l,desktop:o,links:o})))?l:[]},recentWallet:()=>ts.getRecentWallet(),recomendedWallets(e=!1){var l;let o=e||null==(l=t2.recentWallet())?void 0:l.id,{recomendedWallets:n}=ew.ExplorerCtrl.state;return n.filter(e=>o!==e.id)}},t5={onConnecting(e){ts.goToConnectingView(e)},manualWalletsTemplate(){return t2.manualWallets().map(e=>ee``)},recomendedWalletsTemplate(e=!1){return t2.recomendedWallets(e).map(e=>ee``)},recentWalletTemplate(){let e=t2.recentWallet();if(e)return ee``}},t3=i`.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-desktop-title,.wcm-mobile-title{display:flex;align-items:center}.wcm-mobile-title{justify-content:space-between;margin-bottom:20px;margin-top:-10px}.wcm-desktop-title{margin-bottom:10px;padding:0 10px}.wcm-subtitle{display:flex;align-items:center}.wcm-subtitle:last-child path{fill:var(--wcm-color-fg-3)}.wcm-desktop-title svg,.wcm-mobile-title svg{margin-right:6px}.wcm-desktop-title path,.wcm-mobile-title path{fill:var(--wcm-accent-color)}`;var t4=Object.defineProperty,t7=Object.getOwnPropertyDescriptor;let t6=class extends lit_element_s{render(){let{explorerExcludedWalletIds:e,enableExplorer:l}=ew.ConfigCtrl.state,o=t5.manualWalletsTemplate(),n=t5.recomendedWalletsTemplate(),s=[t5.recentWalletTemplate(),...o,...n];s=s.filter(Boolean);let c=s.length>4||"ALL"!==e&&l,d=[];d=c?s.slice(0,3):s;let m=!!d.length;return ee`
${e0.MOBILE_ICON}Mobile
${e0.SCAN_ICON}Scan with your wallet
${m?ee`
${e0.DESKTOP_ICON}Desktop
${d} ${c?ee``:null}
`:null}`}};t6.styles=[eU.globalCss,t3],t6=((e,l,o,n)=>{for(var s,c=n>1?void 0:n?t7(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&t4(l,o,c),c})([custom_element_e("wcm-desktop-wallet-selection")],t6);let t8=i`div{background-color:var(--wcm-color-bg-2);padding:10px 20px 15px 20px;border-top:1px solid var(--wcm-color-bg-3);text-align:center}a{color:var(--wcm-accent-color);text-decoration:none;transition:opacity .2s ease-in-out;display:inline}a:active{opacity:.8}@media(hover:hover){a:hover{opacity:.8}}`;var t9=Object.defineProperty,re=Object.getOwnPropertyDescriptor;let rr=class extends lit_element_s{render(){let{termsOfServiceUrl:e,privacyPolicyUrl:l}=ew.ConfigCtrl.state;return e??l?ee`
By connecting your wallet to this app, you agree to the app's ${e?ee`Terms of Service`:null} ${e&&l?"and":null} ${l?ee`Privacy Policy`:null}
`:null}};rr.styles=[eU.globalCss,t8],rr=((e,l,o,n)=>{for(var s,c=n>1?void 0:n?re(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&t9(l,o,c),c})([custom_element_e("wcm-legal-notice")],rr);let ri=i`div{display:grid;grid-template-columns:repeat(4,80px);margin:0 -10px;justify-content:space-between;row-gap:10px}`;var rl=Object.defineProperty,ro=Object.getOwnPropertyDescriptor;let ra=class extends lit_element_s{onQrcode(){ew.AV.push("Qrcode")}render(){let{explorerExcludedWalletIds:e,enableExplorer:l}=ew.ConfigCtrl.state,o=t5.manualWalletsTemplate(),n=t5.recomendedWalletsTemplate(),s=[t5.recentWalletTemplate(),...o,...n];s=s.filter(Boolean);let c=s.length>8||"ALL"!==e&&l,d=[];d=c?s.slice(0,7):s;let m=!!d.length;return ee`${m?ee`
${d} ${c?ee``:null}
`:null}`}};ra.styles=[eU.globalCss,ri],ra=((e,l,o,n)=>{for(var s,c=n>1?void 0:n?ro(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&rl(l,o,c),c})([custom_element_e("wcm-mobile-wallet-selection")],ra);let rn=i`:host{all:initial}.wcm-overlay{top:0;bottom:0;left:0;right:0;position:fixed;z-index:var(--wcm-z-index);overflow:hidden;display:flex;justify-content:center;align-items:center;opacity:0;pointer-events:none;background-color:var(--wcm-overlay-background-color);backdrop-filter:var(--wcm-overlay-backdrop-filter)}@media(max-height:720px) and (orientation:landscape){.wcm-overlay{overflow:scroll;align-items:flex-start;padding:20px 0}}.wcm-active{pointer-events:auto}.wcm-container{position:relative;max-width:360px;width:100%;outline:0;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) var(--wcm-container-border-radius) var(--wcm-container-border-radius);border:1px solid var(--wcm-color-overlay);overflow:hidden}.wcm-card{width:100%;position:relative;border-radius:var(--wcm-container-border-radius);overflow:hidden;box-shadow:0 6px 14px -6px rgba(10,16,31,.12),0 10px 32px -4px rgba(10,16,31,.1),0 0 0 1px var(--wcm-color-overlay);background-color:var(--wcm-color-bg-1);color:var(--wcm-color-fg-1)}@media(max-width:600px){.wcm-container{max-width:440px;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) 0 0}.wcm-card{border-radius:var(--wcm-container-border-radius) var(--wcm-container-border-radius) 0 0}.wcm-overlay{align-items:flex-end}}@media(max-width:440px){.wcm-container{border:0}}`;var rs=Object.defineProperty,rc=Object.getOwnPropertyDescriptor,Re=(e,l,o,n)=>{for(var s,c=n>1?void 0:n?rc(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&rs(l,o,c),c};let rd=class extends lit_element_s{constructor(){super(),this.open=!1,this.active=!1,this.unsubscribeModal=void 0,this.abortController=void 0,this.unsubscribeModal=ew.jb.subscribe(e=>{e.open?this.onOpenModalEvent():this.onCloseModalEvent()})}disconnectedCallback(){var e;null==(e=this.unsubscribeModal)||e.call(this)}get overlayEl(){return ts.getShadowRootElement(this,".wcm-overlay")}get containerEl(){return ts.getShadowRootElement(this,".wcm-container")}toggleBodyScroll(e){if(document.querySelector("body")){if(e){let e=document.getElementById("wcm-styles");e?.remove()}else document.head.insertAdjacentHTML("beforeend",'')}}onCloseModal(e){e.target===e.currentTarget&&ew.jb.close()}onOpenModalEvent(){this.toggleBodyScroll(!1),this.addKeyboardEvents(),this.open=!0,setTimeout(async()=>{let e=ts.isMobileAnimation()?{y:["50vh","0vh"]}:{scale:[.98,1]};await Promise.all([animate_es_animate(this.overlayEl,{opacity:[0,1]},{delay:.1,duration:.2}).finished,animate_es_animate(this.containerEl,e,{delay:.1,duration:.2}).finished]),this.active=!0},0)}async onCloseModalEvent(){this.toggleBodyScroll(!0),this.removeKeyboardEvents();let e=ts.isMobileAnimation()?{y:["0vh","50vh"]}:{scale:[1,.98]};await Promise.all([animate_es_animate(this.overlayEl,{opacity:[1,0]},{duration:.2}).finished,animate_es_animate(this.containerEl,e,{duration:.2}).finished]),this.containerEl.removeAttribute("style"),this.active=!1,this.open=!1}addKeyboardEvents(){this.abortController=new AbortController,window.addEventListener("keydown",e=>{var l;"Escape"===e.key?ew.jb.close():"Tab"===e.key&&(null!=(l=e.target)&&l.tagName.includes("wcm-")||this.containerEl.focus())},this.abortController),this.containerEl.focus()}removeKeyboardEvents(){var e;null==(e=this.abortController)||e.abort(),this.abortController=void 0}render(){let e={"wcm-overlay":!0,"wcm-active":this.active};return ee`
${this.open?ee`
`:null}
`}};rd.styles=[eU.globalCss,rn],Re([state_t()],rd.prototype,"open",2),Re([state_t()],rd.prototype,"active",2),rd=Re([custom_element_e("wcm-modal")],rd);let rm=i`div{display:flex;margin-top:15px}slot{display:inline-block;margin:0 5px}wcm-button{margin:0 5px}`;var rh=Object.defineProperty,rp=Object.getOwnPropertyDescriptor,le=(e,l,o,n)=>{for(var s,c=n>1?void 0:n?rp(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&rh(l,o,c),c};let ru=class extends lit_element_s{constructor(){super(...arguments),this.isMobile=!1,this.isDesktop=!1,this.isWeb=!1,this.isRetry=!1}onMobile(){ew.zv.isMobile()?ew.AV.replace("MobileConnecting"):ew.AV.replace("MobileQrcodeConnecting")}onDesktop(){ew.AV.replace("DesktopConnecting")}onWeb(){ew.AV.replace("WebConnecting")}render(){return ee`
${this.isRetry?ee``:null} ${this.isMobile?ee`Mobile`:null} ${this.isDesktop?ee`Desktop`:null} ${this.isWeb?ee`Web`:null}
`}};ru.styles=[eU.globalCss,rm],le([property_n({type:Boolean})],ru.prototype,"isMobile",2),le([property_n({type:Boolean})],ru.prototype,"isDesktop",2),le([property_n({type:Boolean})],ru.prototype,"isWeb",2),le([property_n({type:Boolean})],ru.prototype,"isRetry",2),ru=le([custom_element_e("wcm-platform-selection")],ru);let rg=i`button{display:flex;flex-direction:column;padding:5px 10px;border-radius:var(--wcm-button-hover-highlight-border-radius);height:100%;justify-content:flex-start}.wcm-icons{width:60px;height:60px;display:flex;flex-wrap:wrap;padding:7px;border-radius:var(--wcm-wallet-icon-border-radius);justify-content:space-between;align-items:center;margin-bottom:5px;background-color:var(--wcm-color-bg-2);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}.wcm-icons img{width:21px;height:21px;object-fit:cover;object-position:center;border-radius:calc(var(--wcm-wallet-icon-border-radius)/ 2);border:1px solid var(--wcm-color-overlay)}.wcm-icons svg{width:21px;height:21px}.wcm-icons img:nth-child(1),.wcm-icons img:nth-child(2),.wcm-icons svg:nth-child(1),.wcm-icons svg:nth-child(2){margin-bottom:4px}wcm-text{width:100%;text-align:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var rw=Object.defineProperty,rv=Object.getOwnPropertyDescriptor;let rf=class extends lit_element_s{onClick(){ew.AV.push("WalletExplorer")}render(){let{recomendedWallets:e}=ew.ExplorerCtrl.state,l=t2.manualWallets(),o=[...e,...l].reverse().slice(0,4);return ee``}};rf.styles=[eU.globalCss,rg],rf=((e,l,o,n)=>{for(var s,c=n>1?void 0:n?rv(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&rw(l,o,c),c})([custom_element_e("wcm-view-all-wallets-button")],rf);let rb=i`.wcm-qr-container{width:100%;display:flex;justify-content:center;align-items:center;aspect-ratio:1/1}`;var ry=Object.defineProperty,r_=Object.getOwnPropertyDescriptor,de=(e,l,o,n)=>{for(var s,c=n>1?void 0:n?r_(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&ry(l,o,c),c};let rx=class extends lit_element_s{constructor(){super(),this.walletId="",this.imageId="",this.uri="",setTimeout(()=>{let{walletConnectUri:e}=ew.OptionsCtrl.state;this.uri=e},0)}get overlayEl(){return ts.getShadowRootElement(this,".wcm-qr-container")}render(){return ee`
${this.uri?ee``:ee``}
`}};rx.styles=[eU.globalCss,rb],de([property_n()],rx.prototype,"walletId",2),de([property_n()],rx.prototype,"imageId",2),de([state_t()],rx.prototype,"uri",2),rx=de([custom_element_e("wcm-walletconnect-qr")],rx);var r$=Object.defineProperty,rC=Object.getOwnPropertyDescriptor;let rA=class extends lit_element_s{viewTemplate(){return ew.zv.isAndroid()?ee``:ew.zv.isMobile()?ee``:ee``}render(){return ee`${this.viewTemplate()}`}};rA.styles=[eU.globalCss],rA=((e,l,o,n)=>{for(var s,c=n>1?void 0:n?rC(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&r$(l,o,c),c})([custom_element_e("wcm-connect-wallet-view")],rA);let rE=i`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var rO=Object.defineProperty,rk=Object.getOwnPropertyDescriptor,Ke=(e,l,o,n)=>{for(var s,c=n>1?void 0:n?rk(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&rO(l,o,c),c};let rT=class extends lit_element_s{constructor(){super(),this.isError=!1,this.openDesktopApp()}onFormatAndRedirect(e){let{desktop:l,name:o}=ew.zv.getWalletRouterData(),n=l?.native;if(n){let l=ew.zv.formatNativeUrl(n,e,o);ew.zv.openHref(l,"_self")}}openDesktopApp(){let{walletConnectUri:e}=ew.OptionsCtrl.state,l=ew.zv.getWalletRouterData();ts.setRecentWallet(l),e&&this.onFormatAndRedirect(e)}render(){let{name:e,id:l,image_id:o}=ew.zv.getWalletRouterData(),{isMobile:n,isWeb:s}=ts.getCachedRouterWalletPlatforms();return ee`${`Connection can continue loading if ${e} is not installed on your device`}Retry`}};rT.styles=[eU.globalCss,rE],Ke([state_t()],rT.prototype,"isError",2),rT=Ke([custom_element_e("wcm-desktop-connecting-view")],rT);let rI=i`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}wcm-button{margin-top:15px}`;var rS=Object.defineProperty,rR=Object.getOwnPropertyDescriptor;let rP=class extends lit_element_s{onInstall(e){e&&ew.zv.openHref(e,"_blank")}render(){let{name:e,id:l,image_id:o,homepage:n}=ew.zv.getWalletRouterData();return ee`${`Download ${e} to continue. If multiple browser extensions are installed, disable non ${e} ones and try again`}Download`}};rP.styles=[eU.globalCss,rI],rP=((e,l,o,n)=>{for(var s,c=n>1?void 0:n?rR(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&rS(l,o,c),c})([custom_element_e("wcm-install-wallet-view")],rP);let rM=i`wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:96px;height:96px;margin-bottom:20px}wcm-info-footer{display:flex;width:100%}.wcm-app-store{justify-content:space-between}.wcm-app-store wcm-wallet-image{margin-right:10px;margin-bottom:0;width:28px;height:28px;border-radius:var(--wcm-wallet-icon-small-border-radius)}.wcm-app-store div{display:flex;align-items:center}.wcm-app-store wcm-button{margin-right:-10px}.wcm-note{flex-direction:column;align-items:center;padding:5px 0}.wcm-note wcm-text{text-align:center}wcm-platform-selection{margin-top:-15px}.wcm-note wcm-text{margin-top:15px}.wcm-note wcm-text span{color:var(--wcm-accent-color)}`;var rL=Object.defineProperty,rW=Object.getOwnPropertyDescriptor,Ye=(e,l,o,n)=>{for(var s,c=n>1?void 0:n?rW(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&rL(l,o,c),c};let rD=class extends lit_element_s{constructor(){super(),this.isError=!1,this.openMobileApp()}onFormatAndRedirect(e,l=!1){let{mobile:o,name:n}=ew.zv.getWalletRouterData(),s=o?.native,c=o?.universal;if(s&&!l){let l=ew.zv.formatNativeUrl(s,e,n);ew.zv.openHref(l,"_self")}else if(c){let l=ew.zv.formatUniversalUrl(c,e,n);ew.zv.openHref(l,"_self")}}openMobileApp(e=!1){let{walletConnectUri:l}=ew.OptionsCtrl.state,o=ew.zv.getWalletRouterData();ts.setRecentWallet(o),l&&this.onFormatAndRedirect(l,e)}onGoToAppStore(e){e&&ew.zv.openHref(e,"_blank")}render(){let{name:e,id:l,image_id:o,app:n,mobile:s}=ew.zv.getWalletRouterData(),{isWeb:c}=ts.getCachedRouterWalletPlatforms(),d=n?.ios,m=s?.universal;return ee`Retry${m?ee`Still doesn't work? Try this alternate link`:null}
${`Get ${e}`}
App Store
`}};rD.styles=[eU.globalCss,rM],Ye([state_t()],rD.prototype,"isError",2),rD=Ye([custom_element_e("wcm-mobile-connecting-view")],rD);let rN=i`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var rj=Object.defineProperty,rz=Object.getOwnPropertyDescriptor;let rU=class extends lit_element_s{render(){let{name:e,id:l,image_id:o}=ew.zv.getWalletRouterData(),{isDesktop:n,isWeb:s}=ts.getCachedRouterWalletPlatforms();return ee`${`Scan this QR Code with your phone's camera or inside ${e} app`}`}};rU.styles=[eU.globalCss,rN],rU=((e,l,o,n)=>{for(var s,c=n>1?void 0:n?rz(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&rj(l,o,c),c})([custom_element_e("wcm-mobile-qr-connecting-view")],rU);var rH=Object.defineProperty,rV=Object.getOwnPropertyDescriptor;let rB=class extends lit_element_s{render(){return ee``}};rB.styles=[eU.globalCss],rB=((e,l,o,n)=>{for(var s,c=n>1?void 0:n?rV(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&rH(l,o,c),c})([custom_element_e("wcm-qrcode-view")],rB);let rZ=i`wcm-modal-content{height:clamp(200px,60vh,600px);display:block;overflow:scroll;scrollbar-width:none;position:relative;margin-top:1px}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between;margin:-15px -10px;padding-top:20px}wcm-modal-content::after,wcm-modal-content::before{content:'';position:fixed;pointer-events:none;z-index:1;width:100%;height:20px;opacity:1}wcm-modal-content::before{box-shadow:0 -1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(var(--wcm-color-bg-1),rgba(255,255,255,0))}wcm-modal-content::after{box-shadow:0 1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(rgba(255,255,255,0),var(--wcm-color-bg-1));top:calc(100% - 20px)}wcm-modal-content::-webkit-scrollbar{display:none}.wcm-placeholder-block{display:flex;justify-content:center;align-items:center;height:100px;overflow:hidden}.wcm-empty,.wcm-loading{display:flex}.wcm-loading .wcm-placeholder-block{height:100%}.wcm-end-reached .wcm-placeholder-block{height:0;opacity:0}.wcm-empty .wcm-placeholder-block{opacity:1;height:100%}wcm-wallet-button{margin:calc((100% - 60px)/ 3) 0}`;var rF=Object.defineProperty,rq=Object.getOwnPropertyDescriptor,ie=(e,l,o,n)=>{for(var s,c=n>1?void 0:n?rq(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&rF(l,o,c),c};let rK=class extends lit_element_s{constructor(){super(...arguments),this.loading=!ew.ExplorerCtrl.state.wallets.listings.length,this.firstFetch=!ew.ExplorerCtrl.state.wallets.listings.length,this.search="",this.endReached=!1,this.intersectionObserver=void 0,this.searchDebounce=ts.debounce(e=>{e.length>=1?(this.firstFetch=!0,this.endReached=!1,this.search=e,ew.ExplorerCtrl.resetSearch(),this.fetchWallets()):this.search&&(this.search="",this.endReached=this.isLastPage(),ew.ExplorerCtrl.resetSearch())})}firstUpdated(){this.createPaginationObserver()}disconnectedCallback(){var e;null==(e=this.intersectionObserver)||e.disconnect()}get placeholderEl(){return ts.getShadowRootElement(this,".wcm-placeholder-block")}createPaginationObserver(){this.intersectionObserver=new IntersectionObserver(([e])=>{e.isIntersecting&&!(this.search&&this.firstFetch)&&this.fetchWallets()}),this.intersectionObserver.observe(this.placeholderEl)}isLastPage(){let{wallets:e,search:l}=ew.ExplorerCtrl.state,{listings:o,total:n}=this.search?l:e;return n<=40||o.length>=n}async fetchWallets(){var e;let{wallets:l,search:o}=ew.ExplorerCtrl.state,{listings:n,total:s,page:c}=this.search?o:l;if(!this.endReached&&(this.firstFetch||s>40&&n.lengthts.getWalletIcon(e));await Promise.all([...n.map(async e=>ts.preloadImage(e)),ew.zv.wait(300)]),this.endReached=this.isLastPage()}catch(e){console.error(e),ew.ToastCtrl.openToast(ts.getErrorMessage(e),"error")}finally{this.loading=!1,this.firstFetch=!1}}onConnect(e){ew.zv.isAndroid()?ts.handleMobileLinking(e):ts.goToConnectingView(e)}onSearchChange(e){let{value:l}=e.target;this.searchDebounce(l)}render(){let{wallets:e,search:l}=ew.ExplorerCtrl.state,{listings:o}=this.search?l:e,n=this.loading&&!o.length,s=this.search.length>=3,c=t5.manualWalletsTemplate(),d=t5.recomendedWalletsTemplate(!0);s&&(c=c.filter(({values:e})=>ts.caseSafeIncludes(e[0],this.search)),d=d.filter(({values:e})=>ts.caseSafeIncludes(e[0],this.search)));let m=!this.loading&&!o.length&&!d.length,h={"wcm-loading":n,"wcm-end-reached":this.endReached||!this.loading,"wcm-empty":m};return ee`
${n?null:c} ${n?null:d} ${n?null:o.map(e=>ee`${e?ee``:null}`)}
${m?ee`No results found`:null} ${!m&&this.loading?ee``:null}
`}};rK.styles=[eU.globalCss,rZ],ie([state_t()],rK.prototype,"loading",2),ie([state_t()],rK.prototype,"firstFetch",2),ie([state_t()],rK.prototype,"search",2),ie([state_t()],rK.prototype,"endReached",2),rK=ie([custom_element_e("wcm-wallet-explorer-view")],rK);let rG=i`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var rY=Object.defineProperty,rQ=Object.getOwnPropertyDescriptor,Ge=(e,l,o,n)=>{for(var s,c=n>1?void 0:n?rQ(l,o):l,d=e.length-1;d>=0;d--)(s=e[d])&&(c=(n?s(l,o,c):s(c))||c);return n&&c&&rY(l,o,c),c};let rX=class extends lit_element_s{constructor(){super(),this.isError=!1,this.openWebWallet()}onFormatAndRedirect(e){let{desktop:l,name:o}=ew.zv.getWalletRouterData(),n=l?.universal;if(n){let l=ew.zv.formatUniversalUrl(n,e,o);ew.zv.openHref(l,"_blank")}}openWebWallet(){let{walletConnectUri:e}=ew.OptionsCtrl.state,l=ew.zv.getWalletRouterData();ts.setRecentWallet(l),e&&this.onFormatAndRedirect(e)}render(){let{name:e,id:l,image_id:o}=ew.zv.getWalletRouterData(),{isMobile:n,isDesktop:s}=ts.getCachedRouterWalletPlatforms(),c=ew.zv.isMobile();return ee`${`${e} web app has opened in a new tab. Go there, accept the connection, and come back`}Retry`}};rX.styles=[eU.globalCss,rG],Ge([state_t()],rX.prototype,"isError",2),rX=Ge([custom_element_e("wcm-web-connecting-view")],rX)}}]); \ No newline at end of file diff --git a/_next/static/chunks/649.6b189c4a483666e3.js b/_next/static/chunks/649.6b189c4a483666e3.js new file mode 100644 index 0000000..5094f8a --- /dev/null +++ b/_next/static/chunks/649.6b189c4a483666e3.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[649],{50649:function(n,t,e){e.r(t),e.d(t,{default:function(){return i}});var i='{\n "connect_wallet": {\n "label": "连接钱包",\n "wrong_network": {\n "label": "错误的网络"\n }\n },\n "intro": {\n "title": "什么是钱包?",\n "description": "钱包用于发送、接收、存储和显示数字资产。它也是一种新型的登录方式,无需在每个网站上创建新账户和密码。",\n "digital_asset": {\n "title": "您的数字资产之家",\n "description": "钱包用于发送、接收、存储和显示像以太坊和NFT这样的数字资产。"\n },\n "login": {\n "title": "一种新的登录方式",\n "description": "而不是在每个网站上创建新的账户和密码,只需连接您的钱包。"\n },\n "get": {\n "label": "获取钱包"\n },\n "learn_more": {\n "label": "了解更多"\n }\n },\n "sign_in": {\n "label": "验证您的账户",\n "description": "为了完成连接,您必须在钱包中签署一条消息,以验证您是此账户的所有者。",\n "message": {\n "send": "发送消息",\n "preparing": "准备消息中...",\n "cancel": "取消",\n "preparing_error": "准备消息时出错,请重试!"\n },\n "signature": {\n "waiting": "等待签名...",\n "verifying": "正在验证签名...",\n "signing_error": "签署消息时出错,请重试!",\n "verifying_error": "验证签名时出错,请重试!",\n "oops_error": "哎呀,出了点问题!"\n }\n },\n "connect": {\n "label": "连接",\n "title": "连接钱包",\n "new_to_ethereum": {\n "description": "对以太坊钱包不熟悉?",\n "learn_more": {\n "label": "了解更多"\n }\n },\n "learn_more": {\n "label": "了解更多"\n },\n "recent": "近期",\n "status": {\n "opening": "正在打开 %{wallet}...",\n "connecting": "正在连接",\n "connect_mobile": "在 %{wallet}中继续",\n "not_installed": "%{wallet} 尚未安装",\n "not_available": "%{wallet} 不可用",\n "confirm": "在扩展中确认连接",\n "confirm_mobile": "在钱包中接受连接请求"\n },\n "secondary_action": {\n "get": {\n "description": "没有 %{wallet}吗?",\n "label": "获取"\n },\n "install": {\n "label": "安装"\n },\n "retry": {\n "label": "重试"\n }\n },\n "walletconnect": {\n "description": {\n "full": "需要官方的 WalletConnect 弹窗吗?",\n "compact": "需要 WalletConnect 弹窗吗?"\n },\n "open": {\n "label": "打开"\n }\n }\n },\n "connect_scan": {\n "title": "使用 %{wallet}扫描",\n "fallback_title": "使用您的手机扫描"\n },\n "connector_group": {\n "installed": "已安装",\n "recommended": "推荐",\n "other": "其他",\n "popular": "流行",\n "more": "更多",\n "others": "其他的"\n },\n "get": {\n "title": "获取一个钱包",\n "action": {\n "label": "获取"\n },\n "mobile": {\n "description": "移动钱包"\n },\n "extension": {\n "description": "浏览器扩展"\n },\n "mobile_and_extension": {\n "description": "移动钱包和扩展"\n },\n "mobile_and_desktop": {\n "description": "移动和桌面钱包"\n },\n "looking_for": {\n "title": "不是你要找的吗?",\n "mobile": {\n "description": "在主屏幕上选择一个钱包,以开始使用不同的钱包提供商。"\n },\n "desktop": {\n "compact_description": "在主屏幕上选择一个钱包,以开始使用不同的钱包提供商。",\n "wide_description": "在左侧选择一个钱包,以开始使用不同的钱包提供商。"\n }\n }\n },\n "get_options": {\n "title": "开始使用 %{wallet}",\n "short_title": "获取 %{wallet}",\n "mobile": {\n "title": "%{wallet} 用于移动",\n "description": "使用移动钱包探索以太坊的世界。",\n "download": {\n "label": "获取应用"\n }\n },\n "extension": {\n "title": "%{wallet} 为 %{browser}",\n "description": "从您最喜欢的网络浏览器直接访问您的钱包。",\n "download": {\n "label": "添加到 %{browser}"\n }\n },\n "desktop": {\n "title": "%{wallet} 对于 %{platform}",\n "description": "从您强大的桌面原生访问您的钱包。",\n "download": {\n "label": "添加到 %{platform}"\n }\n }\n },\n "get_mobile": {\n "title": "安装 %{wallet}",\n "description": "用手机扫描下载 iOS 或 Android",\n "continue": {\n "label": "继续"\n }\n },\n "get_instructions": {\n "mobile": {\n "connect": {\n "label": "连接"\n },\n "learn_more": {\n "label": "了解更多"\n }\n },\n "extension": {\n "refresh": {\n "label": "刷新"\n },\n "learn_more": {\n "label": "了解更多"\n }\n },\n "desktop": {\n "connect": {\n "label": "连接"\n },\n "learn_more": {\n "label": "了解更多"\n }\n }\n },\n "chains": {\n "title": "切换网络",\n "wrong_network": "检测到错误的网络,请切换或断开连接以继续。",\n "confirm": "在钱包中确认",\n "switching_not_supported": "您的钱包不支持从 %{appName}切换网络。请尝试从您的钱包内部切换网络。",\n "switching_not_supported_fallback": "您的钱包不支持从此应用切换网络。尝试从您的钱包内切换网络。",\n "disconnect": "断开连接",\n "connected": "已连接"\n },\n "profile": {\n "disconnect": {\n "label": "断开连接"\n },\n "copy_address": {\n "label": "复制地址",\n "copied": "已复制!"\n },\n "explorer": {\n "label": "在浏览器上查看更多"\n },\n "transactions": {\n "description": "%{appName} 交易将会出现在这里...",\n "description_fallback": "您的交易将会出现在这里...",\n "recent": {\n "title": "最近交易"\n },\n "clear": {\n "label": "清除全部"\n }\n }\n },\n "wallet_connectors": {\n "argent": {\n "qr_code": {\n "step1": {\n "description": "将 Argent 放到您的主屏幕上,以便更快地访问您的钱包。",\n "title": "打开 Argent 应用"\n },\n "step2": {\n "description": "创建钱包和用户名,或导入现有钱包。",\n "title": "创建或导入钱包"\n },\n "step3": {\n "description": "在您扫描后,将出现连接提示,供您连接您的钱包。",\n "title": "点击扫描二维码按钮"\n }\n }\n },\n "bifrost": {\n "qr_code": {\n "step1": {\n "description": "我们建议将Bifrost Wallet放在您的主屏幕上,以便更快地访问。",\n "title": "打开 Bifrost Wallet 应用"\n },\n "step2": {\n "description": "使用恢复短语创建或导入钱包。",\n "title": "创建或导入钱包"\n },\n "step3": {\n "description": "在您扫描后,将出现连接提示,供您连接您的钱包。",\n "title": "点击扫描按钮"\n }\n }\n },\n "bitget": {\n "qr_code": {\n "step1": {\n "description": "我们建议您将Bitget钱包添加到主屏幕,以便更快地访问。",\n "title": "打开Bitget钱包应用程序"\n },\n "step2": {\n "description": "务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。",\n "title": "创建或导入钱包"\n },\n "step3": {\n "description": "扫描后,将出现一个连接提示,供您连接您的钱包。",\n "title": "点击扫描按钮"\n }\n },\n "extension": {\n "step1": {\n "description": "我们建议您将Bitget钱包固定在任务栏,以便更快地访问您的钱包。",\n "title": "安装Bitget Wallet扩展"\n },\n "step2": {\n "description": "确保使用安全的方式备份您的钱包。绝不与任何人分享您的秘密短语。",\n "title": "创建或导入钱包"\n },\n "step3": {\n "description": "设置钱包后,点击下方刷新浏览器并加载扩展。",\n "title": "刷新您的浏览器"\n }\n }\n },\n "bitski": {\n "extension": {\n "step1": {\n "description": "我们建议您将Bitski固定在任务栏上,以便更快地访问您的钱包。",\n "title": "安装Bitski扩展"\n },\n "step2": {\n "description": "请确保用安全的方法备份您的钱包。绝不与任何人共享您的秘密短语。",\n "title": "创建或导入钱包"\n },\n "step3": {\n "description": "设置完您的钱包后,点击下方以刷新浏览器并加载扩展程序。",\n "title": "刷新您的浏览器"\n }\n }\n },\n "bitverse": {\n "qr_code": {\n "step1": {\n "title": "打开 Bitverse Wallet 应用",\n "description": "将 Bitverse Wallet 添加到您的主屏幕上,以便更快访问您的钱包。"\n },\n "step2": {\n "title": "创建或导入钱包",\n "description": "创建新钱包或导入现有钱包。"\n },\n "step3": {\n "title": "点击QR图标并扫描",\n "description": "在您的主屏幕上点击QR图标,扫描代码并确认提示以进行连接。"\n }\n }\n },\n "bloom": {\n "desktop": {\n "step1": {\n "title": "打开 Bloom 钱包应用",\n "description": "我们建议将 Bloom 钱包添加到主屏幕上,以便更快地访问。"\n },\n "step2": {\n "description": "使用恢复短语创建或导入钱包。",\n "title": "创建或导入钱包"\n },\n "step3": {\n "description": "拥有钱包后,点击连接以通过 Bloom 连接。应用中会出现一个连接提示,供您确认连接。",\n "title": "点击连接"\n }\n },\n "qr_code": {\n "step1": {\n "title": "打开 Bloom 钱包应用",\n "description": "我们建议将 Bloom 钱包添加到主屏幕上,以便更快地访问。"\n },\n "step2": {\n "description": "使用恢复短语创建或导入钱包。",\n "title": "创建或导入钱包"\n },\n "step3": {\n "description": "拥有钱包后,点击连接以通过 Bloom 连接。应用中会出现一个连接提示,供您确认连接。",\n "title": "点击连接"\n }\n }\n },\n "bybit": {\n "qr_code": {\n "step1": {\n "description": "我们建议将 Bybit 添加到您的主屏幕上,以便更快访问您的钱包。",\n "title": "打开 Bybit 应用"\n },\n "step2": {\n "description": "您可以使用我们的手机上的备份功能轻松备份您的钱包。",\n "title": "创建或导入钱包"\n },\n "step3": {\n "description": "在您扫描后,将出现连接提示,供您连接您的钱包。",\n "title": "点击扫描按钮"\n }\n },\n "extension": {\n "step1": {\n "description": "点击浏览器右上角并固定 Bybit Wallet,便于快速访问。",\n "title": "安装 Bybit Wallet 扩展程序"\n },\n "step2": {\n "description": "创建新钱包或导入现有钱包。",\n "title": "创建或导入钱包。"\n },\n "step3": {\n "description": "设置 Bybit Wallet 后,点击下方刷新浏览器并加载扩展程序。",\n "title": "刷新您的浏览器"\n }\n }\n },\n "coin98": {\n "qr_code": {\n "step1": {\n "description": "我们建议将Coin98钱包放在您的主屏幕上,以便更快地访问您的钱包。",\n "title": "打开Coin98钱包应用程序"\n },\n "step2": {\n "description": "您可以使用我们的手机上的备份功能轻松备份您的钱包。",\n "title": "创建或导入钱包"\n },\n "step3": {\n "description": "扫描后,将出现一个连接提示,让您连接您的钱包。",\n "title": "点击WalletConnect按钮"\n }\n },\n "extension": {\n "step1": {\n "description": "点击浏览器右上角并固定Coin98钱包,以便轻松访问。",\n "title": "安装Coin98钱包扩展"\n },\n "step2": {\n "description": "创建新钱包或导入现有钱包。",\n "title": "创建或导入钱包。"\n },\n "step3": {\n "description": "设置完成Coin98 钱包后,单击下方以刷新浏览器并加载扩展程序。",\n "title": "刷新您的浏览器"\n }\n }\n },\n "coinbase": {\n "qr_code": {\n "step1": {\n "description": "我们建议您把Coinbase钱包放到主屏幕上,以便更快地访问。",\n "title": "打开Coinbase钱包应用"\n },\n "step2": {\n "description": "您可以轻松地使用云备份功能备份您的钱包。",\n "title": "创建或导入钱包"\n },\n "step3": {\n "description": "扫描后,将出现连接提示,供您连接您的钱包。",\n "title": "点击扫描按钮"\n }\n },\n "extension": {\n "step1": {\n "description": "我们建议您将Coinbase钱包固定在任务栏上,以便更快地访问您的钱包。",\n "title": "安装Coinbase钱包扩展"\n },\n "step2": {\n "description": "务必使用安全的方法备份您的钱包。永远不要与任何人分享您的秘密短语。",\n "title": "创建或导入钱包"\n },\n "step3": {\n "description": "设置好钱包后,点击下方以刷新浏览器并加载扩展。",\n "title": "刷新您的浏览器"\n }\n }\n },\n "compass": {\n "extension": {\n "step1": {\n "description": "我们建议将Compass Wallet固定在任务栏上,以便更快地访问您的钱包。",\n "title": "安装Compass Wallet扩展"\n },\n "step2": {\n "description": "务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。",\n "title": "创建或导入钱包"\n },\n "step3": {\n "description": "设置钱包后,点击下方刷新浏览器并加载扩展。",\n "title": "刷新您的浏览器"\n }\n }\n },\n "core": {\n "qr_code": {\n "step1": {\n "description": "我们建议您将Core添加到主屏幕,以便更快地访问您的钱包。",\n "title": "打开Core应用程序"\n },\n "step2": {\n "description": "您可以使用我们的手机备份功能轻松备份您的钱包。",\n "title": "创建或导入钱包"\n },\n "step3": {\n "description": "扫描后,将出现连接提示,让您连接您的钱包。",\n "title": "点击WalletConnect按钮"\n }\n },\n "extension": {\n "step1": {\n "description": "我们建议将 Core 固定到任务栏,以便更快地访问您的钱包。",\n "title": "安装 Core 扩展"\n },\n "step2": {\n "description": "一定要使用安全的方法备份您的钱包。切勿与任何人分享您的秘密短语。",\n "title": "创建或导入钱包"\n },\n "step3": {\n "description": "设置好钱包后,点击下方以刷新浏览器并加载扩展。",\n "title": "刷新你的浏览器"\n }\n }\n },\n "fox": {\n "qr_code": {\n "step1": {\n "description": "我们建议您将 FoxWallet 放到主屏幕上,以便更快的访问。",\n "title": "打开 FoxWallet 应用"\n },\n "step2": {\n "description": "确保使用安全的方法备份您的钱包。永远不要与任何人共享您的秘密短语。",\n "title": "创建或导入钱包"\n },\n "step3": {\n "description": "扫描后,将出现连接提示,让您连接您的钱包。",\n "title": "点击扫描按钮"\n }\n }\n },\n "frontier": {\n "qr_code": {\n "step1": {\n "description": "我们建议将 Frontier 钱包放在您的主屏幕上,以便更快地访问。",\n "title": "打开 Frontier 钱包应用"\n },\n "step2": {\n "description": "确保使用安全的方法备份您的钱包。永远不要与任何人共享您的秘密短语。",\n "title": "创建或导入钱包"\n },\n "step3": {\n "description": "扫描后,将出现连接提示,让您连接您的钱包。",\n "title": "点击扫描按钮"\n }\n },\n "extension": {\n "step1": {\n "description": "我们建议您将Frontier钱包固定到任务栏,以便更快地访问您的钱包。",\n "title": "安装Frontier钱包扩展"\n },\n "step2": {\n "description": "确保使用安全的方法备份您的钱包。永远不要与任何人分享您的秘密短语。",\n "title": "创建或导入钱包"\n },\n "step3": {\n "description": "设置完成钱包后,点击下方刷新浏览器并加载扩展。",\n "title": "刷新你的浏览器"\n }\n }\n },\n "im_token": {\n "qr_code": {\n "step1": {\n "title": "打开imToken应用",\n "description": "将imToken应用放在您的主屏幕上,以更快地访问您的钱包。"\n },\n "step2": {\n "title": "创建或导入钱包",\n "description": "创建新钱包或导入已有的钱包。"\n },\n "step3": {\n "title": "点击右上角的扫描图标",\n "description": "选择新连接,然后扫描二维码并确认提示以进行连接。"\n }\n }\n },\n "kaikas": {\n "extension": {\n "step1": {\n "description": "我们建议将 Kaikas 固定到任务栏上,以便更快访问您的钱包。",\n "title": "安装 Kaikas 扩展程序"\n },\n "step2": {\n "description": "务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。",\n "title": "创建或导入钱包"\n },\n "step3": {\n "description": "设置钱包后,点击下方刷新浏览器并加载扩展。",\n "title": "刷新您的浏览器"\n }\n },\n "qr_code": {\n "step1": {\n "title": "打开 Kaikas 应用",\n "description": "将 Kaikas 应用添加到您的主屏幕上,以便更快访问您的钱包。"\n },\n "step2": {\n "title": "创建或导入钱包",\n "description": "创建新钱包或导入现有钱包。"\n },\n "step3": {\n "title": "点击右上角的扫描图标",\n "description": "选择新连接,然后扫描二维码并确认提示以进行连接。"\n }\n }\n },\n "kraken": {\n "qr_code": {\n "step1": {\n "title": "打开Kraken Wallet应用程序",\n "description": "将Kraken Wallet添加到您的主屏幕,以便更快地访问您的钱包。"\n },\n "step2": {\n "title": "创建或导入钱包",\n "description": "创建新钱包或导入现有钱包。"\n },\n "step3": {\n "title": "点击QR图标并扫描",\n "description": "在您的主屏幕上点击QR图标,扫描代码并确认提示以进行连接。"\n }\n }\n },\n "kresus": {\n "qr_code": {\n "step1": {\n "title": "打开 Kresus 钱包应用",\n "description": "将Kresus钱包添加到主屏幕,以便更快地访问您的钱包。"\n },\n "step2": {\n "title": "创建或导入钱包",\n "description": "创建新钱包或导入现有钱包。"\n },\n "step3": {\n "title": "点击QR图标并扫描",\n "description": "在您的主屏幕上点击QR图标,扫描代码并确认提示以进行连接。"\n }\n }\n },\n "magicEden": {\n "extension": {\n "step1": {\n "title": "安装 Magic Eden 扩展程序",\n "description": "我们建议将 Magic Eden 固定到任务栏,以便更轻松地访问您的钱包。"\n },\n "step2": {\n "title": "创建或导入钱包",\n "description": "确保使用安全的方法备份您的钱包。切勿与任何人分享您的秘密恢复短语。"\n },\n "step3": {\n "title": "刷新您的浏览器",\n "description": "设置钱包后,点击下方刷新浏览器并加载扩展。"\n }\n }\n },\n "metamask": {\n "qr_code": {\n "step1": {\n "title": "打开 MetaMask 应用",\n "description": "我们建议将 MetaMask 放在您的主屏幕上,以便更快地访问。"\n },\n "step2": {\n "title": "创建或导入钱包",\n "description": "确保使用安全的方法备份您的钱包。永远不要与任何人分享你的秘密短语。"\n },\n "step3": {\n "title": "点击扫描按钮",\n "description": "扫描后,将出现连接提示,以便你连接你的钱包。"\n }\n },\n "extension": {\n "step1": {\n "title": "安装 MetaMask 扩展",\n "description": "我们建议将MetaMask固定在您的任务栏上,以便更快地访问您的钱包。"\n },\n "step2": {\n "title": "创建或导入钱包",\n "description": "请务必使用安全的方法备份您的钱包。切勿与任何人分享您的秘密短语。"\n },\n "step3": {\n "title": "刷新您的浏览器",\n "description": "一旦您设置好您的钱包,点击下面刷新浏览器并加载扩展。"\n }\n }\n },\n "okx": {\n "qr_code": {\n "step1": {\n "title": "打开OKX钱包应用程序",\n "description": "我们建议将OKX钱包放在您的主屏幕上,以便更快地访问。"\n },\n "step2": {\n "title": "创建或导入钱包",\n "description": "务必使用安全的方法备份您的钱包。千万不要与任何人分享您的秘密短语。"\n },\n "step3": {\n "title": "点击扫描按钮",\n "description": "扫描后,将出现一个连接提示,让您连接您的钱包。"\n }\n },\n "extension": {\n "step1": {\n "title": "安装 OKX 钱包扩展",\n "description": "我们建议将 OKX 钱包固定到您的任务栏,以便更快地访问您的钱包。"\n },\n "step2": {\n "title": "创建或导入钱包",\n "description": "务必使用安全的方法备份您的钱包。千万不要与任何人分享您的秘密短语。"\n },\n "step3": {\n "title": "刷新您的浏览器",\n "description": "一旦你设置好你的钱包,点击下方刷新浏览器并加载扩展。"\n }\n }\n },\n "omni": {\n "qr_code": {\n "step1": {\n "title": "打开Omni应用",\n "description": "将Omni添加到你的主屏幕,以便更快地访问你的钱包。"\n },\n "step2": {\n "title": "创建或导入钱包",\n "description": "创建新的钱包或导入现有的钱包。"\n },\n "step3": {\n "title": "点击QR图标并扫描",\n "description": "点击首页的二维码图标,扫描代码并确认提示以连接。"\n }\n }\n },\n "1inch": {\n "qr_code": {\n "step1": {\n "description": "将 1inch Wallet 添加到您的主屏幕上,以便更快访问您的钱包。",\n "title": "打开 1inch Wallet 应用"\n },\n "step2": {\n "description": "创建钱包和用户名,或导入现有钱包。",\n "title": "创建或导入钱包"\n },\n "step3": {\n "description": "在您扫描后,将出现连接提示,供您连接您的钱包。",\n "title": "点击扫描二维码按钮"\n }\n }\n },\n "token_pocket": {\n "qr_code": {\n "step1": {\n "title": "打开TokenPocket应用",\n "description": "我们建议将TokenPocket放在您的主屏幕上以便更快的访问。"\n },\n "step2": {\n "title": "创建或导入钱包",\n "description": "一定要使用安全的方法备份您的钱包。切勿与任何人分享您的秘密短语。"\n },\n "step3": {\n "title": "点击扫描按钮",\n "description": "扫描后,将出现连接提示,供您连接钱包。"\n }\n },\n "extension": {\n "step1": {\n "title": "安装TokenPocket扩展",\n "description": "我们建议将TokenPocket固定到任务栏,以便更快地访问您的钱包。"\n },\n "step2": {\n "title": "创建或导入一个钱包",\n "description": "一定要使用安全的方法备份您的钱包。绝对不要与任何人分享您的秘密短语。"\n },\n "step3": {\n "title": "刷新您的浏览器",\n "description": "设置好您的钱包后,点击下面刷新浏览器并加载扩展。"\n }\n }\n },\n "trust": {\n "qr_code": {\n "step1": {\n "title": "打开Trust Wallet应用",\n "description": "将Trust Wallet放在主屏幕上,以便更快地访问您的钱包。"\n },\n "step2": {\n "title": "创建或导入一个钱包",\n "description": "创建新的钱包或导入现有的钱包。"\n },\n "step3": {\n "title": "在设置中点击WalletConnect",\n "description": "选择新的连接,然后扫描二维码并确认提示以进行连接。"\n }\n },\n "extension": {\n "step1": {\n "title": "安装Trust Wallet扩展程序",\n "description": "在浏览器的右上角点击并固定Trust Wallet以便于访问。"\n },\n "step2": {\n "title": "创建或导入钱包",\n "description": "创建新的钱包或导入现有的钱包。"\n },\n "step3": {\n "title": "刷新您的浏览器",\n "description": "设置Trust Wallet后,点击下面以刷新浏览器并加载扩展程序。"\n }\n }\n },\n "uniswap": {\n "qr_code": {\n "step1": {\n "title": "打开Uniswap应用",\n "description": "将Uniswap钱包添加到您的主屏幕,以便更快地访问您的钱包。"\n },\n "step2": {\n "title": "创建或导入钱包",\n "description": "创建新钱包或导入现有钱包。"\n },\n "step3": {\n "title": "点击QR图标并扫描",\n "description": "在您的主屏幕上点击QR图标,扫描代码并确认提示以进行连接。"\n }\n }\n },\n "zerion": {\n "qr_code": {\n "step1": {\n "title": "打开Zerion应用",\n "description": "我们建议将Zerion放在您的主屏幕上以便更快地访问。"\n },\n "step2": {\n "title": "创建或导入钱包",\n "description": "确保使用安全的方式备份你的钱包。绝对不要与任何人分享你的私人密语。"\n },\n "step3": {\n "title": "点击扫描按钮",\n "description": "你扫描后,会出现一个连接提示让你连接你的钱包。"\n }\n },\n "extension": {\n "step1": {\n "title": "安装 Zerion 扩展",\n "description": "我们建议将 Zerion 固定在你的任务栏以便更快访问你的钱包。"\n },\n "step2": {\n "title": "创建或导入钱包",\n "description": "确保使用安全的方法备份你的钱包。永远不要与任何人分享你的秘密短语。"\n },\n "step3": {\n "title": "刷新您的浏览器",\n "description": "设置您的钱包后,点击下面以刷新浏览器并加载扩展程序。"\n }\n }\n },\n "rainbow": {\n "qr_code": {\n "step1": {\n "title": "打开 Rainbow 应用",\n "description": "我们建议将 Rainbow 放在您的主屏幕上,以便更快地访问您的钱包。"\n },\n "step2": {\n "title": "创建或导入钱包",\n "description": "您可以使用我们的备份功能在您的手机上轻松备份你的钱包。"\n },\n "step3": {\n "title": "点击扫描按钮",\n "description": "扫描后,将出现连接提示,让您连接您的钱包。"\n }\n }\n },\n "enkrypt": {\n "extension": {\n "step1": {\n "description": "我们建议将Enkrypt Wallet固定到任务栏,以便更快地访问您的钱包。",\n "title": "安装Enkrypt Wallet扩展"\n },\n "step2": {\n "description": "请确保使用安全方法备份您的钱包。永远不要与任何人分享您的秘密短语。",\n "title": "创建钱包或导入钱包"\n },\n "step3": {\n "description": "设置钱包后,点击下面刷新浏览器并加载扩展。",\n "title": "刷新您的浏览器"\n }\n }\n },\n "frame": {\n "extension": {\n "step1": {\n "description": "我们建议将Frame固定到任务栏,以便更快地访问您的钱包。",\n "title": "安装Frame及其配套扩展"\n },\n "step2": {\n "description": "务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。",\n "title": "创建或导入钱包"\n },\n "step3": {\n "description": "设置钱包后,点击下方以刷新浏览器并加载扩展。",\n "title": "刷新你的浏览器"\n }\n }\n },\n "one_key": {\n "extension": {\n "step1": {\n "title": "安装OneKey Wallet扩展",\n "description": "我们建议将OneKey Wallet固定到任务栏,以便更快地访问您的钱包。"\n },\n "step2": {\n "title": "创建或导入钱包",\n "description": "确保使用安全的方法备份您的钱包。切勿与任何人分享您的秘密短语。"\n },\n "step3": {\n "title": "刷新您的浏览器",\n "description": "设置您的钱包后,点击下方以刷新浏览器并加载扩展程序。"\n }\n }\n },\n "phantom": {\n "extension": {\n "step1": {\n "title": "安装 Phantom 扩展程序",\n "description": "我们建议将 Phantom 固定到您的任务栏,以便更容易访问您的钱包。"\n },\n "step2": {\n "title": "创建或导入钱包",\n "description": "确保使用安全的方法备份您的钱包。切勿与任何人分享您的秘密恢复短语。"\n },\n "step3": {\n "title": "刷新您的浏览器",\n "description": "设置好您的钱包后,点击下方以刷新浏览器并加载扩展程序。"\n }\n }\n },\n "rabby": {\n "extension": {\n "step1": {\n "title": "安装 Rabby 扩展程序",\n "description": "我们建议将 Rabby 固定在您的任务栏,以便更快地访问您的钱包。"\n },\n "step2": {\n "title": "创建或导入钱包",\n "description": "一定要使用安全的方法备份您的钱包。切勿与任何人分享您的密钥短语。"\n },\n "step3": {\n "title": "刷新您的浏览器",\n "description": "一旦您设置好您的钱包,点击以下以刷新浏览器并加载扩展程序。"\n }\n }\n },\n "ronin": {\n "qr_code": {\n "step1": {\n "description": "我们建议您将Ronin钱包添加到主屏幕,以便更快地访问。",\n "title": "打开Ronin钱包应用"\n },\n "step2": {\n "description": "务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。",\n "title": "创建或导入钱包"\n },\n "step3": {\n "description": "在您扫描后,将出现连接提示,供您连接您的钱包。",\n "title": "点击扫描按钮"\n }\n },\n "extension": {\n "step1": {\n "description": "我们建议您将Ronin钱包固定到任务栏,以便更快地访问您的钱包。",\n "title": "安装Ronin钱包扩展"\n },\n "step2": {\n "description": "务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。",\n "title": "创建或导入钱包"\n },\n "step3": {\n "description": "设置钱包后,点击下方刷新浏览器并加载扩展。",\n "title": "刷新您的浏览器"\n }\n }\n },\n "ramper": {\n "extension": {\n "step1": {\n "title": "安装Ramper扩展",\n "description": "我们建议您将Ramper固定到任务栏,以便更容易地访问您的钱包。"\n },\n "step2": {\n "title": "创建一个钱包",\n "description": "务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。"\n },\n "step3": {\n "title": "刷新您的浏览器",\n "description": "设置钱包后,点击下方刷新浏览器并加载扩展。"\n }\n }\n },\n "safeheron": {\n "extension": {\n "step1": {\n "title": "安装 Core 扩展",\n "description": "我们建议将 Safeheron 固定在您的任务栏,以便更快地访问您的钱包。"\n },\n "step2": {\n "title": "创建或导入钱包",\n "description": "确保使用安全的方法备份您的钱包。切勿与任何人分享您的秘密短语。"\n },\n "step3": {\n "title": "刷新您的浏览器",\n "description": "设置好您的钱包后,点击下方以刷新浏览器并加载扩展程序。"\n }\n }\n },\n "taho": {\n "extension": {\n "step1": {\n "title": "安装Taho扩展程序",\n "description": "我们建议将Taho固定在您的任务栏上,以便更快地访问您的钱包。"\n },\n "step2": {\n "title": "创建或导入钱包",\n "description": "确保使用安全的方法备份您的钱包。切勿与任何人分享您的秘密短语。"\n },\n "step3": {\n "title": "刷新您的浏览器",\n "description": "设置好您的钱包后,点击下方以刷新浏览器并加载扩展程序。"\n }\n }\n },\n "talisman": {\n "extension": {\n "step1": {\n "title": "安装 Talisman 扩展程序",\n "description": "我们建议将 Talisman 固定在任务栏上,以便更快地访问您的钱包。"\n },\n "step2": {\n "title": "创建或导入以太坊钱包",\n "description": "确保使用安全的方法备份您的钱包。永远不要与任何人分享您的恢复短语。"\n },\n "step3": {\n "title": "刷新您的浏览器",\n "description": "设置好您的钱包后,点击下方以刷新浏览器并加载扩展程序。"\n }\n }\n },\n "xdefi": {\n "extension": {\n "step1": {\n "title": "安装 XDEFI 钱包扩展程序",\n "description": "我们建议将XDEFI钱包固定到您的任务栏,以便更快地访问您的钱包。"\n },\n "step2": {\n "title": "创建或导入钱包",\n "description": "确保使用安全的方法备份您的钱包。永远不要与任何人共享您的秘密短语。"\n },\n "step3": {\n "title": "刷新您的浏览器",\n "description": "一旦你设置好你的钱包,点击下面刷新浏览器和加载扩展。"\n }\n }\n },\n "zeal": {\n "extension": {\n "step1": {\n "title": "安装Zeal扩展程序",\n "description": "我们建议将Zeal固定在您的任务栏上,以便更快地访问您的钱包。"\n },\n "step2": {\n "title": "创建或导入钱包",\n "description": "务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。"\n },\n "step3": {\n "title": "刷新您的浏览器",\n "description": "设置钱包后,点击下方刷新浏览器并加载扩展。"\n }\n }\n },\n "safepal": {\n "extension": {\n "step1": {\n "title": "安装SafePal Wallet扩展程序",\n "description": "点击浏览器右上角并固定SafePal Wallet以便于快速访问。"\n },\n "step2": {\n "title": "创建或导入钱包。",\n "description": "创建新钱包或导入现有钱包。"\n },\n "step3": {\n "title": "刷新您的浏览器",\n "description": "一旦设置了SafePal钱包,点击下方刷新浏览器并加载扩展程序。"\n }\n },\n "qr_code": {\n "step1": {\n "title": "打开SafePal钱包应用程序",\n "description": "将SafePal钱包放在主屏幕上以更快地访问您的钱包。"\n },\n "step2": {\n "title": "创建或导入钱包",\n "description": "创建新钱包或导入现有钱包。"\n },\n "step3": {\n "title": "在设置中点击WalletConnect",\n "description": "选择新连接,然后扫描二维码并确认提示以进行连接。"\n }\n }\n },\n "desig": {\n "extension": {\n "step1": {\n "title": "安装 Desig 扩展",\n "description": "我们建议将 Desig 固定到任务栏,以便更轻松地访问您的钱包。"\n },\n "step2": {\n "title": "创建一个钱包",\n "description": "务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。"\n },\n "step3": {\n "title": "刷新您的浏览器",\n "description": "设置钱包后,点击下方刷新浏览器并加载扩展。"\n }\n }\n },\n "subwallet": {\n "extension": {\n "step1": {\n "title": "安装 SubWallet 扩展",\n "description": "我们建议将 SubWallet 固定到任务栏,以便更快地访问您的钱包。"\n },\n "step2": {\n "title": "创建或导入钱包",\n "description": "确保使用安全的方法备份您的钱包。永远不要与任何人分享您的恢复短语。"\n },\n "step3": {\n "title": "刷新您的浏览器",\n "description": "设置钱包后,点击下方刷新浏览器并加载扩展。"\n }\n },\n "qr_code": {\n "step1": {\n "title": "打开 SubWallet 应用",\n "description": "我们建议将 SubWallet 放置在主屏幕上,以便更快地访问。"\n },\n "step2": {\n "title": "创建或导入钱包",\n "description": "务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。"\n },\n "step3": {\n "title": "点击扫描按钮",\n "description": "在您扫描后,将出现连接提示,供您连接您的钱包。"\n }\n }\n },\n "clv": {\n "extension": {\n "step1": {\n "title": "安装 CLV Wallet 扩展",\n "description": "我们建议将 CLV Wallet 固定到任务栏,以便更快地访问您的钱包。"\n },\n "step2": {\n "title": "创建或导入钱包",\n "description": "务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。"\n },\n "step3": {\n "title": "刷新您的浏览器",\n "description": "设置钱包后,点击下方刷新浏览器并加载扩展。"\n }\n },\n "qr_code": {\n "step1": {\n "title": "打开 CLV 钱包应用",\n "description": "我们建议将 CLV 钱包添加到您的主屏幕,以便更快地访问。"\n },\n "step2": {\n "title": "创建或导入钱包",\n "description": "务必使用安全的方法备份您的钱包。决不与任何人分享您的秘密短语。"\n },\n "step3": {\n "title": "点击扫描按钮",\n "description": "在您扫描后,将出现连接提示,供您连接您的钱包。"\n }\n }\n },\n "okto": {\n "qr_code": {\n "step1": {\n "title": "打开 Okto 应用",\n "description": "将 Okto 添加到您的主屏幕以便快速访问"\n },\n "step2": {\n "title": "创建一个 MPC 钱包",\n "description": "创建一个账户并生成一个钱包"\n },\n "step3": {\n "title": "在设置中点击WalletConnect",\n "description": "点击右上角的扫描二维码图标,并确认提示以连接。"\n }\n }\n },\n "ledger": {\n "desktop": {\n "step1": {\n "title": "打开Ledger Live应用",\n "description": "我们建议将Ledger Live放在您的主屏幕上,以便更快地访问。"\n },\n "step2": {\n "title": "设置您的Ledger",\n "description": "设置一个新的Ledger或连接到一个现有的。"\n },\n "step3": {\n "title": "连接",\n "description": "你扫描后,会出现一个连接提示让你连接你的钱包。"\n }\n },\n "qr_code": {\n "step1": {\n "title": "打开Ledger Live应用",\n "description": "我们建议将Ledger Live放在您的主屏幕上,以便更快地访问。"\n },\n "step2": {\n "title": "设置您的Ledger",\n "description": "您可以同步桌面应用程式,或连接您的Ledger。"\n },\n "step3": {\n "title": "扫描代码",\n "description": "点击 WalletConnect 然后切换到扫描器。你扫描后,会出现一个连接提示让你连接你的钱包。"\n }\n }\n }\n }\n}\n'}}]); \ No newline at end of file diff --git a/_next/static/chunks/65.f5339a3032631594.js b/_next/static/chunks/65.f5339a3032631594.js deleted file mode 100644 index aa32b0a..0000000 --- a/_next/static/chunks/65.f5339a3032631594.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[65],{95505:function(e,a,t){t.d(a,{offchainLookup:function(){return offchainLookup},offchainLookupSignature:function(){return p}});var r=t(44149),s=t(37035),n=t(40882),o=t(87072);let OffchainLookupError=class OffchainLookupError extends n.G{constructor({callbackSelector:e,cause:a,data:t,extraData:r,sender:s,urls:n}){super(a.shortMessage||"An error occurred while fetching for an offchain result.",{cause:a,metaMessages:[...a.metaMessages||[],a.metaMessages?.length?"":[],"Offchain Gateway Call:",n&&[" Gateway URL(s):",...n.map(e=>` ${(0,o.Gr)(e)}`)],` Sender: ${s}`,` Data: ${t}`,` Callback selector: ${e}`,` Extra data: ${r}`].flat()}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupError"})}};let OffchainLookupResponseMalformedError=class OffchainLookupResponseMalformedError extends n.G{constructor({result:e,url:a}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${(0,o.Gr)(a)}`,`Response: ${(0,s.P)(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupResponseMalformedError"})}};let OffchainLookupSenderMismatchError=class OffchainLookupSenderMismatchError extends n.G{constructor({sender:e,to:a}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${a}`,`OffchainLookup sender address: ${e}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupSenderMismatchError"})}};var c=t(26476),i=t(97483),f=t(9195),u=t(6921),d=t(53769);function isAddressEqual(e,a){if(!(0,d.U)(e))throw new u.b({address:e});if(!(0,d.U)(a))throw new u.b({address:a});return e.toLowerCase()===a.toLowerCase()}var l=t(63864),h=t(40996);let p="0x556f1830",w={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]};async function offchainLookup(e,{blockNumber:a,blockTag:t,data:s,to:n}){let{args:o}=(0,i.p)({data:s,abi:[w]}),[c,u,d,h,p]=o;try{if(!isAddressEqual(n,c))throw new OffchainLookupSenderMismatchError({sender:c,to:n});let s=await ccipFetch({data:d,sender:c,urls:u}),{data:o}=await (0,r.R)(e,{blockNumber:a,blockTag:t,data:(0,l.zo)([h,(0,f.E)([{type:"bytes"},{type:"bytes"}],[s,p])]),to:n});return o}catch(e){throw new OffchainLookupError({callbackSelector:h,cause:e,data:s,extraData:p,sender:c,urls:u})}}async function ccipFetch({data:e,sender:a,urls:t}){let r=Error("An unknown error occurred.");for(let n=0;nt.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,i=Object.getOwnPropertySymbols(e);at.indexOf(i[a])&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(n[i[a]]=e[i[a]]);return n},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoinbaseWalletProvider=void 0;let o=a(n(71100)),c=n(6277),l=n(88682),u=n(94397),R=n(8623),W=n(4505),U=n(87015),K=n(83468),Z=n(21418),G=n(72756);let CoinbaseWalletProvider=class CoinbaseWalletProvider extends o.default{constructor(e){var t,n,{metadata:a}=e,o=e.preference,{keysUrl:l}=o,Z=i(o,["keysUrl"]);super(),this.accounts=[],this.handlers={handshake:async e=>{try{if(this.connected)return this.emit("connect",{chainId:(0,R.hexStringFromIntNumber)((0,u.IntNumber)(this.chain.id))}),this.accounts;let e=await this.requestSignerSelection(),t=this.initSigner(e),n=await t.handshake();return this.signer=t,(0,W.storeSignerType)(e),this.emit("connect",{chainId:(0,R.hexStringFromIntNumber)((0,u.IntNumber)(this.chain.id))}),n}catch(e){throw this.handleUnauthorizedError(e),e}},sign:async e=>{if(!this.connected||!this.signer)throw c.standardErrors.provider.unauthorized("Must call 'eth_requestAccounts' before other methods");try{return await this.signer.request(e)}catch(e){throw this.handleUnauthorizedError(e),e}},fetch:e=>(0,U.fetchRPCRequest)(e,this.chain),state:e=>{let getConnectedAccounts=()=>{if(this.connected)return this.accounts;throw c.standardErrors.provider.unauthorized("Must call 'eth_requestAccounts' before other methods")};switch(e.method){case"eth_chainId":return(0,R.hexStringFromIntNumber)((0,u.IntNumber)(this.chain.id));case"net_version":return this.chain.id;case"eth_accounts":return getConnectedAccounts();case"eth_coinbase":return getConnectedAccounts()[0];default:return this.handlers.unsupported(e)}},deprecated:({method:e})=>{throw c.standardErrors.rpc.methodNotSupported(`Method ${e} is deprecated.`)},unsupported:({method:e})=>{throw c.standardErrors.rpc.methodNotSupported(`Method ${e} is not supported.`)}},this.isCoinbaseWallet=!0,this.updateListener={onAccountsUpdate:({accounts:e,source:t})=>{(0,R.areAddressArraysEqual)(this.accounts,e)||(this.accounts=e,"storage"!==t&&this.emit("accountsChanged",this.accounts))},onChainUpdate:({chain:e,source:t})=>{(e.id!==this.chain.id||e.rpcUrl!==this.chain.rpcUrl)&&(this.chain=e,"storage"!==t&&this.emit("chainChanged",(0,R.hexStringFromIntNumber)((0,u.IntNumber)(e.id))))}},this.metadata=a,this.preference=Z,this.communicator=new K.Communicator(l),this.chain={id:null!==(n=null===(t=a.appChainIds)||void 0===t?void 0:t[0])&&void 0!==n?n:1};let G=(0,W.loadSignerType)();this.signer=G?this.initSigner(G):null}get connected(){return this.accounts.length>0}async request(e){var t;try{let n=(0,U.checkErrorForInvalidRequestArgs)(e);if(n)throw n;let i=null!==(t=(0,Z.determineMethodCategory)(e.method))&&void 0!==t?t:"fetch";return this.handlers[i](e)}catch(t){return Promise.reject((0,l.serializeError)(t,e.method))}}handleUnauthorizedError(e){e.code===c.standardErrorCodes.provider.unauthorized&&this.disconnect()}async enable(){return console.warn('.enable() has been deprecated. Please use .request({ method: "eth_requestAccounts" }) instead.'),await this.request({method:"eth_requestAccounts"})}async disconnect(){this.accounts=[],this.chain={id:1},G.ScopedLocalStorage.clearAll(),this.emit("disconnect",c.standardErrors.provider.disconnected("User initiated disconnection"))}requestSignerSelection(){return(0,W.fetchSignerType)({communicator:this.communicator,preference:this.preference,metadata:this.metadata})}initSigner(e){return(0,W.createSigner)({signerType:e,metadata:this.metadata,communicator:this.communicator,updateListener:this.updateListener})}};t.CoinbaseWalletProvider=CoinbaseWalletProvider},2411:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CoinbaseWalletSDK=void 0;let i=n(10560),a=n(23941),o=n(72756),c=n(6805),l=n(8623),u=n(87015);let CoinbaseWalletSDK=class CoinbaseWalletSDK{constructor(e){this.metadata={appName:e.appName||"Dapp",appLogoUrl:e.appLogoUrl||(0,l.getFavicon)(),appChainIds:e.appChainIds||[]},this.storeLatestVersion()}makeWeb3Provider(e={options:"all"}){var t;let n={metadata:this.metadata,preference:e};return null!==(t=(0,u.getCoinbaseInjectedProvider)(n))&&void 0!==t?t:new a.CoinbaseWalletProvider(n)}getCoinbaseWalletLogo(e,t=240){return(0,i.walletLogo)(e,t)}storeLatestVersion(){let e=new o.ScopedLocalStorage("CBWSDK");e.setItem("VERSION",c.LIB_VERSION)}};t.CoinbaseWalletSDK=CoinbaseWalletSDK},10560:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.walletLogo=void 0,t.walletLogo=(e,t)=>{let n;switch(e){case"standard":default:return n=t,`data:image/svg+xml,%3Csvg width='${t}' height='${n}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `;case"circle":return n=t,`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${t}' height='${n}' viewBox='0 0 999.81 999.81'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052fe;%7D.cls-2%7Bfill:%23fefefe;%7D.cls-3%7Bfill:%230152fe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M655-115.9h56c.83,1.59,2.36.88,3.56,1a478,478,0,0,1,75.06,10.42C891.4-81.76,978.33-32.58,1049.19,44q116.7,126,131.94,297.61c.38,4.14-.34,8.53,1.78,12.45v59c-1.58.84-.91,2.35-1,3.56a482.05,482.05,0,0,1-10.38,74.05c-24,106.72-76.64,196.76-158.83,268.93s-178.18,112.82-287.2,122.6c-4.83.43-9.86-.25-14.51,1.77H654c-1-1.68-2.69-.91-4.06-1a496.89,496.89,0,0,1-105.9-18.59c-93.54-27.42-172.78-77.59-236.91-150.94Q199.34,590.1,184.87,426.58c-.47-5.19.25-10.56-1.77-15.59V355c1.68-1,.91-2.7,1-4.06a498.12,498.12,0,0,1,18.58-105.9c26-88.75,72.64-164.9,140.6-227.57q126-116.27,297.21-131.61C645.32-114.57,650.35-113.88,655-115.9Zm377.92,500c0-192.44-156.31-349.49-347.56-350.15-194.13-.68-350.94,155.13-352.29,347.42-1.37,194.55,155.51,352.1,348.56,352.47C876.15,734.23,1032.93,577.84,1032.93,384.11Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-2' d='M1032.93,384.11c0,193.73-156.78,350.12-351.29,349.74-193-.37-349.93-157.92-348.56-352.47C334.43,189.09,491.24,33.28,685.37,34,876.62,34.62,1032.94,191.67,1032.93,384.11ZM683,496.81q43.74,0,87.48,0c15.55,0,25.32-9.72,25.33-25.21q0-87.48,0-175c0-15.83-9.68-25.46-25.59-25.46H595.77c-15.88,0-25.57,9.64-25.58,25.46q0,87.23,0,174.45c0,16.18,9.59,25.7,25.84,25.71Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-3' d='M683,496.81H596c-16.25,0-25.84-9.53-25.84-25.71q0-87.23,0-174.45c0-15.82,9.7-25.46,25.58-25.46H770.22c15.91,0,25.59,9.63,25.59,25.46q0,87.47,0,175c0,15.49-9.78,25.2-25.33,25.21Q726.74,496.84,683,496.81Z' transform='translate(-183.1 115.9)'/%3E%3C/svg%3E`;case"text":return n=(.1*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${n}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogo":return n=(.25*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${n}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;case"textLight":return n=(.1*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${n}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogoLight":return n=(.25*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${n}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`}}},83468:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Communicator=void 0;let i=n(6805),a=n(93628),o=n(30851),c=n(6277);let Communicator=class Communicator{constructor(e=o.CB_KEYS_URL){this.popup=null,this.listeners=new Map,this.postMessage=async e=>{let t=await this.waitForPopupLoaded();t.postMessage(e,this.url.origin)},this.postRequestAndWaitForResponse=async e=>{let t=this.onMessage(({requestId:t})=>t===e.id);return this.postMessage(e),await t},this.onMessage=async e=>new Promise((t,n)=>{let listener=n=>{if(n.origin!==this.url.origin)return;let i=n.data;e(i)&&(t(i),window.removeEventListener("message",listener),this.listeners.delete(listener))};window.addEventListener("message",listener),this.listeners.set(listener,{reject:n})}),this.disconnect=()=>{(0,a.closePopup)(this.popup),this.popup=null,this.listeners.forEach(({reject:e},t)=>{e(c.standardErrors.provider.userRejectedRequest("Request rejected")),window.removeEventListener("message",t)}),this.listeners.clear()},this.waitForPopupLoaded=async()=>this.popup&&!this.popup.closed?this.popup:(this.popup=(0,a.openPopup)(this.url),this.onMessage(({event:e})=>"PopupUnload"===e).then(this.disconnect).catch(()=>{}),this.onMessage(({event:e})=>"PopupLoaded"===e).then(e=>{this.postMessage({requestId:e.id,data:{version:i.LIB_VERSION}})}).then(()=>{if(!this.popup)throw c.standardErrors.rpc.internal();return this.popup})),this.url=new URL(e)}};t.Communicator=Communicator},93628:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.closePopup=t.openPopup=void 0;let i=n(6277);function openPopup(e){let t=(window.innerWidth-420)/2+window.screenX,n=(window.innerHeight-540)/2+window.screenY,a=window.open(e,"Smart Wallet",`width=420, height=540, left=${t}, top=${n}`);if(null==a||a.focus(),!a)throw i.standardErrors.rpc.internal("Pop up window failed to open");return a}function closePopup(e){e&&!e.closed&&e.close()}t.openPopup=openPopup,t.closePopup=closePopup},30851:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CBW_MOBILE_DEEPLINK_URL=t.WALLETLINK_URL=t.CB_KEYS_URL=void 0,t.CB_KEYS_URL="https://keys.coinbase.com/connect",t.WALLETLINK_URL="https://www.walletlink.org",t.CBW_MOBILE_DEEPLINK_URL="https://go.cb-w.com/walletlink"},52217:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.errorValues=t.standardErrorCodes=void 0,t.standardErrorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901,unsupportedChain:4902}},t.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."},4902:{standard:"EIP-3085",message:"Unrecognized chain ID."}}},91789:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.standardErrors=void 0;let i=n(52217),a=n(26817);function getEthJsonRpcError(e,t){let[n,i]=parseOpts(t);return new EthereumRpcError(e,n||(0,a.getMessageFromCode)(e),i)}function getEthProviderError(e,t){let[n,i]=parseOpts(t);return new EthereumProviderError(e,n||(0,a.getMessageFromCode)(e),i)}function parseOpts(e){if(e){if("string"==typeof e)return[e];if("object"==typeof e&&!Array.isArray(e)){let{message:t,data:n}=e;if(t&&"string"!=typeof t)throw Error("Must specify string message.");return[t||void 0,n]}}return[]}t.standardErrors={rpc:{parse:e=>getEthJsonRpcError(i.standardErrorCodes.rpc.parse,e),invalidRequest:e=>getEthJsonRpcError(i.standardErrorCodes.rpc.invalidRequest,e),invalidParams:e=>getEthJsonRpcError(i.standardErrorCodes.rpc.invalidParams,e),methodNotFound:e=>getEthJsonRpcError(i.standardErrorCodes.rpc.methodNotFound,e),internal:e=>getEthJsonRpcError(i.standardErrorCodes.rpc.internal,e),server:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw Error("Ethereum RPC Server errors must provide single object argument.");let{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw Error('"code" must be an integer such that: -32099 <= code <= -32005');return getEthJsonRpcError(t,e)},invalidInput:e=>getEthJsonRpcError(i.standardErrorCodes.rpc.invalidInput,e),resourceNotFound:e=>getEthJsonRpcError(i.standardErrorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>getEthJsonRpcError(i.standardErrorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>getEthJsonRpcError(i.standardErrorCodes.rpc.transactionRejected,e),methodNotSupported:e=>getEthJsonRpcError(i.standardErrorCodes.rpc.methodNotSupported,e),limitExceeded:e=>getEthJsonRpcError(i.standardErrorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>getEthProviderError(i.standardErrorCodes.provider.userRejectedRequest,e),unauthorized:e=>getEthProviderError(i.standardErrorCodes.provider.unauthorized,e),unsupportedMethod:e=>getEthProviderError(i.standardErrorCodes.provider.unsupportedMethod,e),disconnected:e=>getEthProviderError(i.standardErrorCodes.provider.disconnected,e),chainDisconnected:e=>getEthProviderError(i.standardErrorCodes.provider.chainDisconnected,e),unsupportedChain:e=>getEthProviderError(i.standardErrorCodes.provider.unsupportedChain,e),custom:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw Error("Ethereum Provider custom errors must provide single object argument.");let{code:t,message:n,data:i}=e;if(!n||"string"!=typeof n)throw Error('"message" must be a nonempty string');return new EthereumProviderError(t,n,i)}}};let EthereumRpcError=class EthereumRpcError extends Error{constructor(e,t,n){if(!Number.isInteger(e))throw Error('"code" must be an integer.');if(!t||"string"!=typeof t)throw Error('"message" must be a nonempty string.');super(t),this.code=e,void 0!==n&&(this.data=n)}};let EthereumProviderError=class EthereumProviderError extends EthereumRpcError{constructor(e,t,n){if(!isValidEthProviderCode(e))throw Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,n)}};function isValidEthProviderCode(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}},6277:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.standardErrors=t.standardErrorCodes=void 0;var i=n(52217);Object.defineProperty(t,"standardErrorCodes",{enumerable:!0,get:function(){return i.standardErrorCodes}});var a=n(91789);Object.defineProperty(t,"standardErrors",{enumerable:!0,get:function(){return a.standardErrors}})},88682:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializeError=void 0;let i=n(4440),a=n(6805),o=n(52217),c=n(26817);function serializeError(e,t){let n=(0,c.serialize)(getErrorObject(e),{shouldIncludeStack:!0}),i=new URL("https://docs.cloud.coinbase.com/wallet-sdk/docs/errors");i.searchParams.set("version",a.LIB_VERSION),i.searchParams.set("code",n.code.toString());let o=getMethod(n.data,t);return o&&i.searchParams.set("method",o),i.searchParams.set("message",n.message),Object.assign(Object.assign({},n),{docUrl:i.href})}function getErrorObject(e){return"string"==typeof e?{message:e,code:o.standardErrorCodes.rpc.internal}:(0,i.isErrorResponse)(e)?Object.assign(Object.assign({},e),{message:e.errorMessage,code:e.errorCode,data:{method:e.method}}):e}function getMethod(e,t){let n=null==e?void 0:e.method;if(n)return n;if(void 0===t);else if("string"==typeof t)return t;else if(!Array.isArray(t))return t.method;else if(t.length>0)return t[0].method}t.serializeError=serializeError},26817:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serialize=t.getErrorCode=t.isValidCode=t.getMessageFromCode=t.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;let i=n(52217),a="Unspecified error message.";function getMessageFromCode(e,n=a){if(e&&Number.isInteger(e)){let n=e.toString();if(hasKey(i.errorValues,n))return i.errorValues[n].message;if(e>=-32099&&e<=-32e3)return t.JSON_RPC_SERVER_ERROR_MESSAGE}return n}function isValidCode(e){if(!Number.isInteger(e))return!1;let t=e.toString();return!!(i.errorValues[t]||e>=-32099&&e<=-32e3)}function getErrorCode(e){var t;return"number"==typeof e?e:isErrorWithCode(e)?null!==(t=e.code)&&void 0!==t?t:e.errorCode:void 0}function isErrorWithCode(e){return"object"==typeof e&&null!==e&&("number"==typeof e.code||"number"==typeof e.errorCode)}function serialize(e,{shouldIncludeStack:t=!1}={}){let n={};return e&&"object"==typeof e&&!Array.isArray(e)&&hasKey(e,"code")&&isValidCode(e.code)?(n.code=e.code,e.message&&"string"==typeof e.message?(n.message=e.message,hasKey(e,"data")&&(n.data=e.data)):(n.message=getMessageFromCode(n.code),n.data={originalError:assignOriginalError(e)})):(n.code=i.standardErrorCodes.rpc.internal,n.message=hasStringProperty(e,"message")?e.message:a,n.data={originalError:assignOriginalError(e)}),t&&(n.stack=hasStringProperty(e,"stack")?e.stack:void 0),n}function assignOriginalError(e){return e&&"object"==typeof e&&!Array.isArray(e)?Object.assign({},e):e}function hasKey(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function hasStringProperty(e,t){return"object"==typeof e&&null!==e&&t in e&&"string"==typeof e[t]}t.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.",t.getMessageFromCode=getMessageFromCode,t.isValidCode=isValidCode,t.getErrorCode=getErrorCode,t.serialize=serialize},21418:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.determineMethodCategory=void 0;let n={handshake:["eth_requestAccounts"],sign:["eth_ecRecover","personal_sign","personal_ecRecover","eth_signTransaction","eth_sendTransaction","eth_signTypedData_v1","eth_signTypedData_v3","eth_signTypedData_v4","eth_signTypedData","wallet_addEthereumChain","wallet_switchEthereumChain","wallet_watchAsset","wallet_getCapabilities","wallet_sendCalls","wallet_showCallsStatus"],state:["eth_chainId","eth_accounts","eth_coinbase","net_version"],deprecated:["eth_sign","eth_signTypedData_v2"],unsupported:["eth_subscribe","eth_unsubscribe"],fetch:[]};function determineMethodCategory(e){for(let t in n)if(n[t].includes(e))return t}t.determineMethodCategory=determineMethodCategory},94397:function(e,t){"use strict";function OpaqueType(){return e=>e}function IntNumber(e){return Math.floor(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.RegExpString=t.IntNumber=t.BigIntString=t.AddressString=t.HexString=t.OpaqueType=void 0,t.OpaqueType=OpaqueType,t.HexString=OpaqueType(),t.AddressString=OpaqueType(),t.BigIntString=OpaqueType(),t.IntNumber=IntNumber,t.RegExpString=OpaqueType()},8623:function(e,t,n){"use strict";var i=n(61900).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.areAddressArraysEqual=t.getFavicon=t.range=t.isBigNumber=t.ensureParsedJSONObject=t.ensureBigInt=t.ensureRegExpString=t.ensureIntNumber=t.ensureBuffer=t.ensureAddressString=t.ensureEvenLengthHexString=t.ensureHexString=t.isHexString=t.prepend0x=t.strip0x=t.has0xPrefix=t.hexStringFromIntNumber=t.intNumberFromHexString=t.bigIntStringFromBigInt=t.hexStringFromBuffer=t.hexStringToUint8Array=t.uint8ArrayToHex=t.randomBytesHex=void 0;let a=n(6277),o=n(94397),c=/^[0-9]*$/,l=/^[a-f0-9]*$/;function randomBytesHex(e){return uint8ArrayToHex(crypto.getRandomValues(new Uint8Array(e)))}function uint8ArrayToHex(e){return[...e].map(e=>e.toString(16).padStart(2,"0")).join("")}function hexStringToUint8Array(e){return new Uint8Array(e.match(/.{1,2}/g).map(e=>parseInt(e,16)))}function hexStringFromBuffer(e,t=!1){let n=e.toString("hex");return(0,o.HexString)(t?`0x${n}`:n)}function bigIntStringFromBigInt(e){return(0,o.BigIntString)(e.toString(10))}function intNumberFromHexString(e){return(0,o.IntNumber)(Number(BigInt(ensureEvenLengthHexString(e,!0))))}function hexStringFromIntNumber(e){return(0,o.HexString)(`0x${BigInt(e).toString(16)}`)}function has0xPrefix(e){return e.startsWith("0x")||e.startsWith("0X")}function strip0x(e){return has0xPrefix(e)?e.slice(2):e}function prepend0x(e){return has0xPrefix(e)?`0x${e.slice(2)}`:`0x${e}`}function isHexString(e){if("string"!=typeof e)return!1;let t=strip0x(e).toLowerCase();return l.test(t)}function ensureHexString(e,t=!1){if("string"==typeof e){let n=strip0x(e).toLowerCase();if(l.test(n))return(0,o.HexString)(t?`0x${n}`:n)}throw a.standardErrors.rpc.invalidParams(`"${String(e)}" is not a hexadecimal string`)}function ensureEvenLengthHexString(e,t=!1){let n=ensureHexString(e,!1);return n.length%2==1&&(n=(0,o.HexString)(`0${n}`)),t?(0,o.HexString)(`0x${n}`):n}function ensureAddressString(e){if("string"==typeof e){let t=strip0x(e).toLowerCase();if(isHexString(t)&&40===t.length)return(0,o.AddressString)(prepend0x(t))}throw a.standardErrors.rpc.invalidParams(`Invalid Ethereum address: ${String(e)}`)}function ensureBuffer(e){if(i.isBuffer(e))return e;if("string"==typeof e){if(isHexString(e)){let t=ensureEvenLengthHexString(e,!1);return i.from(t,"hex")}return i.from(e,"utf8")}throw a.standardErrors.rpc.invalidParams(`Not binary data: ${String(e)}`)}function ensureIntNumber(e){if("number"==typeof e&&Number.isInteger(e))return(0,o.IntNumber)(e);if("string"==typeof e){if(c.test(e))return(0,o.IntNumber)(Number(e));if(isHexString(e))return(0,o.IntNumber)(Number(BigInt(ensureEvenLengthHexString(e,!0))))}throw a.standardErrors.rpc.invalidParams(`Not an integer: ${String(e)}`)}function ensureRegExpString(e){if(e instanceof RegExp)return(0,o.RegExpString)(e.toString());throw a.standardErrors.rpc.invalidParams(`Not a RegExp: ${String(e)}`)}function ensureBigInt(e){if(null!==e&&("bigint"==typeof e||isBigNumber(e)))return BigInt(e.toString(10));if("number"==typeof e)return BigInt(ensureIntNumber(e));if("string"==typeof e){if(c.test(e))return BigInt(e);if(isHexString(e))return BigInt(ensureEvenLengthHexString(e,!0))}throw a.standardErrors.rpc.invalidParams(`Not an integer: ${String(e)}`)}function ensureParsedJSONObject(e){if("string"==typeof e)return JSON.parse(e);if("object"==typeof e)return e;throw a.standardErrors.rpc.invalidParams(`Not a JSON string or an object: ${String(e)}`)}function isBigNumber(e){if(null==e||"function"!=typeof e.constructor)return!1;let{constructor:t}=e;return"function"==typeof t.config&&"number"==typeof t.EUCLID}function range(e,t){return Array.from({length:t-e},(t,n)=>e+n)}function getFavicon(){let e=document.querySelector('link[sizes="192x192"]')||document.querySelector('link[sizes="180x180"]')||document.querySelector('link[rel="icon"]')||document.querySelector('link[rel="shortcut icon"]'),{protocol:t,host:n}=document.location,i=e?e.getAttribute("href"):null;return!i||i.startsWith("javascript:")||i.startsWith("vbscript:")?null:i.startsWith("http://")||i.startsWith("https://")||i.startsWith("data:")?i:i.startsWith("//")?t+i:`${t}//${n}${i}`}function areAddressArraysEqual(e,t){return e.length===t.length&&e.every((e,n)=>e===t[n])}t.randomBytesHex=randomBytesHex,t.uint8ArrayToHex=uint8ArrayToHex,t.hexStringToUint8Array=hexStringToUint8Array,t.hexStringFromBuffer=hexStringFromBuffer,t.bigIntStringFromBigInt=bigIntStringFromBigInt,t.intNumberFromHexString=intNumberFromHexString,t.hexStringFromIntNumber=hexStringFromIntNumber,t.has0xPrefix=has0xPrefix,t.strip0x=strip0x,t.prepend0x=prepend0x,t.isHexString=isHexString,t.ensureHexString=ensureHexString,t.ensureEvenLengthHexString=ensureEvenLengthHexString,t.ensureAddressString=ensureAddressString,t.ensureBuffer=ensureBuffer,t.ensureIntNumber=ensureIntNumber,t.ensureRegExpString=ensureRegExpString,t.ensureBigInt=ensureBigInt,t.ensureParsedJSONObject=ensureParsedJSONObject,t.isBigNumber=isBigNumber,t.range=range,t.getFavicon=getFavicon,t.areAddressArraysEqual=areAddressArraysEqual},86538:function(e,t,n){"use strict";let i=n(2411);t.default=i.CoinbaseWalletSDK,n(2411)},38703:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SCWKeyManager=void 0;let i=n(74560),a=n(72756),o={storageKey:"ownPrivateKey",keyType:"private"},c={storageKey:"ownPublicKey",keyType:"public"},l={storageKey:"peerPublicKey",keyType:"public"};let SCWKeyManager=class SCWKeyManager{constructor(){this.storage=new a.ScopedLocalStorage("CBWSDK","SCWKeyManager"),this.ownPrivateKey=null,this.ownPublicKey=null,this.peerPublicKey=null,this.sharedSecret=null}async getOwnPublicKey(){return await this.loadKeysIfNeeded(),this.ownPublicKey}async getSharedSecret(){return await this.loadKeysIfNeeded(),this.sharedSecret}async setPeerPublicKey(e){this.sharedSecret=null,this.peerPublicKey=e,await this.storeKey(l,e),await this.loadKeysIfNeeded()}async clear(){this.ownPrivateKey=null,this.ownPublicKey=null,this.peerPublicKey=null,this.sharedSecret=null,this.storage.removeItem(c.storageKey),this.storage.removeItem(o.storageKey),this.storage.removeItem(l.storageKey)}async generateKeyPair(){let e=await (0,i.generateKeyPair)();this.ownPrivateKey=e.privateKey,this.ownPublicKey=e.publicKey,await this.storeKey(o,e.privateKey),await this.storeKey(c,e.publicKey)}async loadKeysIfNeeded(){null===this.ownPrivateKey&&(this.ownPrivateKey=await this.loadKey(o)),null===this.ownPublicKey&&(this.ownPublicKey=await this.loadKey(c)),(null===this.ownPrivateKey||null===this.ownPublicKey)&&await this.generateKeyPair(),null===this.peerPublicKey&&(this.peerPublicKey=await this.loadKey(l)),null===this.sharedSecret&&null!==this.ownPrivateKey&&null!==this.peerPublicKey&&(this.sharedSecret=await (0,i.deriveSharedSecret)(this.ownPrivateKey,this.peerPublicKey))}async loadKey(e){let t=this.storage.getItem(e.storageKey);return t?(0,i.importKeyFromHexString)(e.keyType,t):null}async storeKey(e,t){let n=await (0,i.exportKeyToHexString)(e.keyType,t);this.storage.setItem(e.storageKey,n)}};t.SCWKeyManager=SCWKeyManager},2634:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SCWSigner=void 0;let i=n(38703),a=n(93577),o=n(6277),c=n(8623),l=n(74560);let SCWSigner=class SCWSigner{constructor(e){this.metadata=e.metadata,this.communicator=e.communicator,this.keyManager=new i.SCWKeyManager,this.stateManager=new a.SCWStateManager({appChainIds:this.metadata.appChainIds,updateListener:e.updateListener}),this.handshake=this.handshake.bind(this),this.request=this.request.bind(this),this.createRequestMessage=this.createRequestMessage.bind(this),this.decryptResponseMessage=this.decryptResponseMessage.bind(this)}async handshake(){let e=await this.createRequestMessage({handshake:{method:"eth_requestAccounts",params:this.metadata}}),t=await this.communicator.postRequestAndWaitForResponse(e);if("failure"in t.content)throw t.content.failure;let n=await (0,l.importKeyFromHexString)("public",t.sender);await this.keyManager.setPeerPublicKey(n);let i=await this.decryptResponseMessage(t);this.updateInternalState({method:"eth_requestAccounts"},i);let a=i.result;if("error"in a)throw a.error;return this.stateManager.accounts}async request(e){let t=this.tryLocalHandling(e);if(void 0!==t){if(t instanceof Error)throw t;return t}await this.communicator.waitForPopupLoaded();let n=await this.sendEncryptedRequest(e),i=await this.decryptResponseMessage(n);this.updateInternalState(e,i);let a=i.result;if("error"in a)throw a.error;return a.value}async disconnect(){this.stateManager.clear(),await this.keyManager.clear()}tryLocalHandling(e){var t;switch(e.method){case"wallet_switchEthereumChain":{let n=e.params;if(!n||!(null===(t=n[0])||void 0===t?void 0:t.chainId))throw o.standardErrors.rpc.invalidParams();let i=(0,c.ensureIntNumber)(n[0].chainId),a=this.stateManager.switchChain(i);return a?null:void 0}case"wallet_getCapabilities":{let e=this.stateManager.walletCapabilities;if(!e)throw o.standardErrors.provider.unauthorized("No wallet capabilities found, please disconnect and reconnect");return e}default:return}}async sendEncryptedRequest(e){let t=await this.keyManager.getSharedSecret();if(!t)throw o.standardErrors.provider.unauthorized("No valid session found, try requestAccounts before other methods");let n=await (0,l.encryptContent)({action:e,chainId:this.stateManager.activeChain.id},t),i=await this.createRequestMessage({encrypted:n});return this.communicator.postRequestAndWaitForResponse(i)}async createRequestMessage(e){let t=await (0,l.exportKeyToHexString)("public",await this.keyManager.getOwnPublicKey());return{id:crypto.randomUUID(),sender:t,content:e,timestamp:new Date}}async decryptResponseMessage(e){let t=e.content;if("failure"in t)throw t.failure;let n=await this.keyManager.getSharedSecret();if(!n)throw o.standardErrors.provider.unauthorized("Invalid session");return(0,l.decryptContent)(t.encrypted,n)}updateInternalState(e,t){var n,i;let a=null===(n=t.data)||void 0===n?void 0:n.chains;a&&this.stateManager.updateAvailableChains(a);let o=null===(i=t.data)||void 0===i?void 0:i.capabilities;o&&this.stateManager.updateWalletCapabilities(o);let l=t.result;if(!("error"in l))switch(e.method){case"eth_requestAccounts":{let e=l.value;this.stateManager.updateAccounts(e);break}case"wallet_switchEthereumChain":{if(null!==l.value)return;let t=e.params,n=(0,c.ensureIntNumber)(t[0].chainId);this.stateManager.switchChain(n)}}}};t.SCWSigner=SCWSigner},93577:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SCWStateManager=void 0;let i=n(72756),a="accounts",o="activeChain",c="availableChains",l="walletCapabilities";let SCWStateManager=class SCWStateManager{get accounts(){return this._accounts}get activeChain(){return this._activeChain}get walletCapabilities(){return this._walletCapabilities}constructor(e){var t,n;this.storage=new i.ScopedLocalStorage("CBWSDK","SCWStateManager"),this.updateListener=e.updateListener,this.availableChains=this.loadItemFromStorage(c),this._walletCapabilities=this.loadItemFromStorage(l);let u=this.loadItemFromStorage(a),R=this.loadItemFromStorage(o);u&&this.updateListener.onAccountsUpdate({accounts:u,source:"storage"}),R&&this.updateListener.onChainUpdate({chain:R,source:"storage"}),this._accounts=u||[],this._activeChain=R||{id:null!==(n=null===(t=e.appChainIds)||void 0===t?void 0:t[0])&&void 0!==n?n:1}}updateAccounts(e){this._accounts=e,this.storeItemToStorage(a,e),this.updateListener.onAccountsUpdate({accounts:e,source:"wallet"})}switchChain(e){var t;let n=null===(t=this.availableChains)||void 0===t?void 0:t.find(t=>t.id===e);return!!n&&(n===this._activeChain||(this._activeChain=n,this.storeItemToStorage(o,n),this.updateListener.onChainUpdate({chain:n,source:"wallet"}),!0))}updateAvailableChains(e){if(!e||0===Object.keys(e).length)return;let t=Object.entries(e).map(([e,t])=>({id:Number(e),rpcUrl:t}));this.availableChains=t,this.storeItemToStorage(c,t),this.switchChain(this._activeChain.id)}updateWalletCapabilities(e){this._walletCapabilities=e,this.storeItemToStorage(l,e)}storeItemToStorage(e,t){this.storage.setItem(e,JSON.stringify(t))}loadItemFromStorage(e){let t=this.storage.getItem(e);return t?JSON.parse(t):void 0}clear(){this.storage.clear()}};t.SCWStateManager=SCWStateManager},4505:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSigner=t.fetchSignerType=t.storeSignerType=t.loadSignerType=void 0;let i=n(2634),a=n(82246),o=n(6277),c=n(87015),l=n(72756),u="SignerType",R=new l.ScopedLocalStorage("CBWSDK","SignerConfigurator");function loadSignerType(){return R.getItem(u)}function storeSignerType(e){R.setItem(u,e)}async function fetchSignerType(e){let{communicator:t,metadata:n}=e;listenForWalletLinkSessionRequest(t,n).catch(()=>{});let i={id:crypto.randomUUID(),event:"selectSignerType",data:e.preference},{data:a}=await t.postRequestAndWaitForResponse(i);return a}function createSigner(e){let{signerType:t,metadata:n,communicator:l,updateListener:u}=e;switch(t){case"scw":return new i.SCWSigner({metadata:n,updateListener:u,communicator:l});case"walletlink":return new a.WalletLinkSigner({metadata:n,updateListener:u});case"extension":{let e=(0,c.getCoinbaseInjectedSigner)();if(!e)throw o.standardErrors.rpc.internal("injected signer not found");return e}}}async function listenForWalletLinkSessionRequest(e,t){await e.onMessage(({event:e})=>"WalletLinkSessionRequest"===e);let n=new a.WalletLinkSigner({metadata:t});e.postMessage({event:"WalletLinkUpdate",data:{session:n.getSession()}}),await n.handshake(),e.postMessage({event:"WalletLinkUpdate",data:{connected:!0}})}t.loadSignerType=loadSignerType,t.storeSignerType=storeSignerType,t.fetchSignerType=fetchSignerType,t.createSigner=createSigner},82246:function(e,t,n){"use strict";var i=n(61900).Buffer,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WalletLinkSigner=void 0;let o=a(n(73709)),c=n(54455),l=n(69241),u=n(4440),R=n(36071),W=n(30851),U=n(6277),K=n(8623),Z=n(72756),G="DefaultChainId",J="DefaultJsonRpcUrl";let WalletLinkSigner=class WalletLinkSigner{constructor(e){var t,n;this._relay=null,this._addresses=[],this.hasMadeFirstChainChangedEmission=!1;let{appName:i,appLogoUrl:a}=e.metadata;this._appName=i,this._appLogoUrl=a,this._storage=new Z.ScopedLocalStorage("walletlink",W.WALLETLINK_URL),this.updateListener=e.updateListener,this._relayEventManager=new l.RelayEventManager,this._jsonRpcUrlFromOpts="";let o=this._storage.getItem(c.LOCAL_STORAGE_ADDRESSES_KEY);if(o){let e=o.split(" ");""!==e[0]&&(this._addresses=e.map(e=>(0,K.ensureAddressString)(e)),null===(t=this.updateListener)||void 0===t||t.onAccountsUpdate({accounts:this._addresses,source:"storage"}))}let u=this._storage.getItem(G);u&&(null===(n=this.updateListener)||void 0===n||n.onChainUpdate({chain:{id:this.getChainId(),rpcUrl:this.jsonRpcUrl},source:"storage"}),this.hasMadeFirstChainChangedEmission=!0),this.initializeRelay()}getSession(){let e=this.initializeRelay(),{id:t,secret:n}=e.getWalletLinkSession();return{id:t,secret:n}}async handshake(){let e=await this.request({method:"eth_requestAccounts"});return e}get selectedAddress(){return this._addresses[0]||void 0}get jsonRpcUrl(){var e;return null!==(e=this._storage.getItem(J))&&void 0!==e?e:this._jsonRpcUrlFromOpts}set jsonRpcUrl(e){this._storage.setItem(J,e)}updateProviderInfo(e,t){var n;this.jsonRpcUrl=e;let i=this.getChainId();this._storage.setItem(G,t.toString(10));let a=(0,K.ensureIntNumber)(t)!==i;(a||!this.hasMadeFirstChainChangedEmission)&&(null===(n=this.updateListener)||void 0===n||n.onChainUpdate({chain:{id:t,rpcUrl:e},source:"wallet"}),this.hasMadeFirstChainChangedEmission=!0)}async watchAsset(e,t,n,i,a,o){let c=this.initializeRelay(),l=await c.watchAsset(e,t,n,i,a,null==o?void 0:o.toString());return!(0,u.isErrorResponse)(l)&&!!l.result}async addEthereumChain(e,t,n,i,a,o){var c,l;if((0,K.ensureIntNumber)(e)===this.getChainId())return!1;let R=this.initializeRelay();this._isAuthorized()||await R.requestEthereumAccounts();let W=await R.addEthereumChain(e.toString(),t,a,n,i,o);return!(0,u.isErrorResponse)(W)&&((null===(c=W.result)||void 0===c?void 0:c.isApproved)===!0&&this.updateProviderInfo(t[0],e),(null===(l=W.result)||void 0===l?void 0:l.isApproved)===!0)}async switchEthereumChain(e){let t=this.initializeRelay(),n=await t.switchEthereumChain(e.toString(10),this.selectedAddress||void 0);if((0,u.isErrorResponse)(n)){if(!n.errorCode)return;if(n.errorCode===U.standardErrorCodes.provider.unsupportedChain)throw U.standardErrors.provider.unsupportedChain();throw U.standardErrors.provider.custom({message:n.errorMessage,code:n.errorCode})}let i=n.result;i.isApproved&&i.rpcUrl.length>0&&this.updateProviderInfo(i.rpcUrl,e)}async disconnect(){this._relay&&this._relay.resetAndReload(),this._storage.clear()}async request(e){try{return this._request(e).catch(e=>{throw e})}catch(e){return Promise.reject(e)}}async _request(e){if(!e||"object"!=typeof e||Array.isArray(e))throw U.standardErrors.rpc.invalidRequest({message:"Expected a single, non-array, object argument.",data:e});let{method:t,params:n}=e;if("string"!=typeof t||0===t.length)throw U.standardErrors.rpc.invalidRequest({message:"'args.method' must be a non-empty string.",data:e});if(void 0!==n&&!Array.isArray(n)&&("object"!=typeof n||null===n))throw U.standardErrors.rpc.invalidRequest({message:"'args.params' must be an object or array if provided.",data:e});let i=void 0===n?[]:n,a=this._relayEventManager.makeRequestId(),o=await this._sendRequestAsync({method:t,params:i,jsonrpc:"2.0",id:a});return o.result}_setAddresses(e,t){var n;if(!Array.isArray(e))throw Error("addresses is not an array");let i=e.map(e=>(0,K.ensureAddressString)(e));JSON.stringify(i)!==JSON.stringify(this._addresses)&&(this._addresses=i,null===(n=this.updateListener)||void 0===n||n.onAccountsUpdate({accounts:i,source:"wallet"}),this._storage.setItem(c.LOCAL_STORAGE_ADDRESSES_KEY,i.join(" ")))}_sendRequestAsync(e){return new Promise((t,n)=>{try{let n=this._handleSynchronousMethods(e);if(void 0!==n)return t({jsonrpc:"2.0",id:e.id,result:n})}catch(e){return n(e)}this._handleAsynchronousMethods(e).then(n=>n&&t(Object.assign(Object.assign({},n),{id:e.id}))).catch(e=>n(e))})}_handleSynchronousMethods(e){let{method:t}=e;switch(t){case"eth_accounts":return this._eth_accounts();case"eth_coinbase":return this._eth_coinbase();case"net_version":return this._net_version();case"eth_chainId":return this._eth_chainId();default:return}}async _handleAsynchronousMethods(e){let{method:t}=e,n=e.params||[];switch(t){case"eth_requestAccounts":return this._eth_requestAccounts();case"eth_sign":return this._eth_sign(n);case"eth_ecRecover":return this._eth_ecRecover(n);case"personal_sign":return this._personal_sign(n);case"personal_ecRecover":return this._personal_ecRecover(n);case"eth_signTransaction":return this._eth_signTransaction(n);case"eth_sendRawTransaction":return this._eth_sendRawTransaction(n);case"eth_sendTransaction":return this._eth_sendTransaction(n);case"eth_signTypedData_v1":return this._eth_signTypedData_v1(n);case"eth_signTypedData_v2":default:return this._throwUnsupportedMethodError();case"eth_signTypedData_v3":return this._eth_signTypedData_v3(n);case"eth_signTypedData_v4":case"eth_signTypedData":return this._eth_signTypedData_v4(n);case"wallet_addEthereumChain":return this._wallet_addEthereumChain(n);case"wallet_switchEthereumChain":return this._wallet_switchEthereumChain(n);case"wallet_watchAsset":return this._wallet_watchAsset(n)}}_isKnownAddress(e){try{let t=(0,K.ensureAddressString)(e),n=this._addresses.map(e=>(0,K.ensureAddressString)(e));return n.includes(t)}catch(e){}return!1}_ensureKnownAddress(e){if(!this._isKnownAddress(e))throw Error("Unknown Ethereum address")}_prepareTransactionParams(e){let t=e.from?(0,K.ensureAddressString)(e.from):this.selectedAddress;if(!t)throw Error("Ethereum address is unavailable");this._ensureKnownAddress(t);let n=e.to?(0,K.ensureAddressString)(e.to):null,a=null!=e.value?(0,K.ensureBigInt)(e.value):BigInt(0),o=e.data?(0,K.ensureBuffer)(e.data):i.alloc(0),c=null!=e.nonce?(0,K.ensureIntNumber)(e.nonce):null,l=null!=e.gasPrice?(0,K.ensureBigInt)(e.gasPrice):null,u=null!=e.maxFeePerGas?(0,K.ensureBigInt)(e.maxFeePerGas):null,R=null!=e.maxPriorityFeePerGas?(0,K.ensureBigInt)(e.maxPriorityFeePerGas):null,W=null!=e.gas?(0,K.ensureBigInt)(e.gas):null,U=e.chainId?(0,K.ensureIntNumber)(e.chainId):this.getChainId();return{fromAddress:t,toAddress:n,weiValue:a,data:o,nonce:c,gasPriceInWei:l,maxFeePerGas:u,maxPriorityFeePerGas:R,gasLimit:W,chainId:U}}_isAuthorized(){return this._addresses.length>0}_requireAuthorization(){if(!this._isAuthorized())throw U.standardErrors.provider.unauthorized({})}_throwUnsupportedMethodError(){throw U.standardErrors.provider.unsupportedMethod({})}async _signEthereumMessage(e,t,n,i){this._ensureKnownAddress(t);try{let a=this.initializeRelay(),o=await a.signEthereumMessage(e,t,n,i);if((0,u.isErrorResponse)(o))throw Error(o.errorMessage);return{jsonrpc:"2.0",id:0,result:o.result}}catch(e){if("string"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw U.standardErrors.provider.userRejectedRequest("User denied message signature");throw e}}async _ethereumAddressFromSignedMessage(e,t,n){let i=this.initializeRelay(),a=await i.ethereumAddressFromSignedMessage(e,t,n);if((0,u.isErrorResponse)(a))throw Error(a.errorMessage);return{jsonrpc:"2.0",id:0,result:a.result}}_eth_accounts(){return[...this._addresses]}_eth_coinbase(){return this.selectedAddress||null}_net_version(){return this.getChainId().toString(10)}_eth_chainId(){return(0,K.hexStringFromIntNumber)(this.getChainId())}getChainId(){let e=this._storage.getItem(G);if(!e)return(0,K.ensureIntNumber)(1);let t=parseInt(e,10);return(0,K.ensureIntNumber)(t)}async _eth_requestAccounts(){let e;if(this._isAuthorized())return Promise.resolve({jsonrpc:"2.0",id:0,result:this._addresses});try{let t=this.initializeRelay();if(e=await t.requestEthereumAccounts(),(0,u.isErrorResponse)(e))throw Error(e.errorMessage)}catch(e){if("string"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw U.standardErrors.provider.userRejectedRequest("User denied account authorization");throw e}if(!e.result)throw Error("accounts received is empty");return this._setAddresses(e.result),{jsonrpc:"2.0",id:0,result:this._addresses}}_eth_sign(e){this._requireAuthorization();let t=(0,K.ensureAddressString)(e[0]),n=(0,K.ensureBuffer)(e[1]);return this._signEthereumMessage(n,t,!1)}_eth_ecRecover(e){let t=(0,K.ensureBuffer)(e[0]),n=(0,K.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(t,n,!1)}_personal_sign(e){this._requireAuthorization();let t=(0,K.ensureBuffer)(e[0]),n=(0,K.ensureAddressString)(e[1]);return this._signEthereumMessage(t,n,!0)}_personal_ecRecover(e){let t=(0,K.ensureBuffer)(e[0]),n=(0,K.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(t,n,!0)}async _eth_signTransaction(e){this._requireAuthorization();let t=this._prepareTransactionParams(e[0]||{});try{let e=this.initializeRelay(),n=await e.signEthereumTransaction(t);if((0,u.isErrorResponse)(n))throw Error(n.errorMessage);return{jsonrpc:"2.0",id:0,result:n.result}}catch(e){if("string"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw U.standardErrors.provider.userRejectedRequest("User denied transaction signature");throw e}}async _eth_sendRawTransaction(e){let t=(0,K.ensureBuffer)(e[0]),n=this.initializeRelay(),i=await n.submitEthereumTransaction(t,this.getChainId());if((0,u.isErrorResponse)(i))throw Error(i.errorMessage);return{jsonrpc:"2.0",id:0,result:i.result}}async _eth_sendTransaction(e){this._requireAuthorization();let t=this._prepareTransactionParams(e[0]||{});try{let e=this.initializeRelay(),n=await e.signAndSubmitEthereumTransaction(t);if((0,u.isErrorResponse)(n))throw Error(n.errorMessage);return{jsonrpc:"2.0",id:0,result:n.result}}catch(e){if("string"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw U.standardErrors.provider.userRejectedRequest("User denied transaction signature");throw e}}async _eth_signTypedData_v1(e){this._requireAuthorization();let t=(0,K.ensureParsedJSONObject)(e[0]),n=(0,K.ensureAddressString)(e[1]);this._ensureKnownAddress(n);let i=o.default.hashForSignTypedDataLegacy({data:t}),a=JSON.stringify(t,null,2);return this._signEthereumMessage(i,n,!1,a)}async _eth_signTypedData_v3(e){this._requireAuthorization();let t=(0,K.ensureAddressString)(e[0]),n=(0,K.ensureParsedJSONObject)(e[1]);this._ensureKnownAddress(t);let i=o.default.hashForSignTypedData_v3({data:n}),a=JSON.stringify(n,null,2);return this._signEthereumMessage(i,t,!1,a)}async _eth_signTypedData_v4(e){this._requireAuthorization();let t=(0,K.ensureAddressString)(e[0]),n=(0,K.ensureParsedJSONObject)(e[1]);this._ensureKnownAddress(t);let i=o.default.hashForSignTypedData_v4({data:n}),a=JSON.stringify(n,null,2);return this._signEthereumMessage(i,t,!1,a)}async _wallet_addEthereumChain(e){var t,n,i,a;let o=e[0];if((null===(t=o.rpcUrls)||void 0===t?void 0:t.length)===0)return{jsonrpc:"2.0",id:0,error:{code:2,message:"please pass in at least 1 rpcUrl"}};if(!o.chainName||""===o.chainName.trim())throw U.standardErrors.rpc.invalidParams("chainName is a required field");if(!o.nativeCurrency)throw U.standardErrors.rpc.invalidParams("nativeCurrency is a required field");let c=parseInt(o.chainId,16),l=await this.addEthereumChain(c,null!==(n=o.rpcUrls)&&void 0!==n?n:[],null!==(i=o.blockExplorerUrls)&&void 0!==i?i:[],o.chainName,null!==(a=o.iconUrls)&&void 0!==a?a:[],o.nativeCurrency);return l?{jsonrpc:"2.0",id:0,result:null}:{jsonrpc:"2.0",id:0,error:{code:2,message:"unable to add ethereum chain"}}}async _wallet_switchEthereumChain(e){let t=e[0];return await this.switchEthereumChain(parseInt(t.chainId,16)),{jsonrpc:"2.0",id:0,result:null}}async _wallet_watchAsset(e){let t=Array.isArray(e)?e[0]:e;if(!t.type)throw U.standardErrors.rpc.invalidParams("Type is required");if((null==t?void 0:t.type)!=="ERC20")throw U.standardErrors.rpc.invalidParams(`Asset of type '${t.type}' is not supported`);if(!(null==t?void 0:t.options))throw U.standardErrors.rpc.invalidParams("Options are required");if(!(null==t?void 0:t.options.address))throw U.standardErrors.rpc.invalidParams("Address is required");let n=this.getChainId(),{address:i,symbol:a,image:o,decimals:c}=t.options,l=await this.watchAsset(t.type,i,a,c,o,n);return{jsonrpc:"2.0",id:0,result:l}}initializeRelay(){if(!this._relay){let e=new R.WalletLinkRelay({linkAPIUrl:W.WALLETLINK_URL,storage:this._storage});e.setAppInfo(this._appName,this._appLogoUrl),e.attachUI(),e.setAccountsCallback((e,t)=>this._setAddresses(e,t)),e.setChainCallback((e,t)=>{this.updateProviderInfo(t,parseInt(e,10))}),this._relay=e}return this._relay}};t.WalletLinkSigner=WalletLinkSigner},69241:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RelayEventManager=void 0;let i=n(8623);let RelayEventManager=class RelayEventManager{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%2147483647;let e=this._nextRequestId,t=(0,i.prepend0x)(e.toString(16)),n=this.callbacks.get(t);return n&&this.callbacks.delete(t),e}};t.RelayEventManager=RelayEventManager},36071:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WalletLinkRelay=void 0;let i=n(14587),a=n(54455),o=n(69241),c=n(88393),l=n(4440),u=n(18714),R=n(9450),W=n(60548),U=n(6277),K=n(8623),Z=n(72756);let WalletLinkRelay=class WalletLinkRelay{constructor(e){this.accountsCallback=null,this.chainCallbackParams={chainId:"",jsonRpcUrl:""},this.chainCallback=null,this.dappDefaultChain=1,this.isMobileWeb=(0,u.isMobileWeb)(),this.appName="",this.appLogoUrl=null,this.linkedUpdated=e=>{this.isLinked=e;let t=this.storage.getItem(a.LOCAL_STORAGE_ADDRESSES_KEY);if(e&&(this._session.linked=e),this.isUnlinkedErrorState=!1,t){let n=t.split(" "),i="true"===this.storage.getItem("IsStandaloneSigning");""===n[0]||e||!this._session.linked||i||(this.isUnlinkedErrorState=!0)}},this.metadataUpdated=(e,t)=>{this.storage.setItem(e,t)},this.chainUpdated=(e,t)=>{(this.chainCallbackParams.chainId!==e||this.chainCallbackParams.jsonRpcUrl!==t)&&(this.chainCallbackParams={chainId:e,jsonRpcUrl:t},this.chainCallback&&this.chainCallback(e,t))},this.accountUpdated=e=>{this.accountsCallback&&this.accountsCallback([e]),WalletLinkRelay.accountRequestCallbackIds.size>0&&(Array.from(WalletLinkRelay.accountRequestCallbackIds.values()).forEach(t=>{this.invokeCallback(Object.assign(Object.assign({},{type:"WEB3_RESPONSE",id:t,response:{method:"requestEthereumAccounts",result:[e]}}),{id:t}))}),WalletLinkRelay.accountRequestCallbackIds.clear())},this.resetAndReload=this.resetAndReload.bind(this),this.linkAPIUrl=e.linkAPIUrl,this.storage=e.storage;let{session:t,ui:n,connection:i}=this.subscribe();this._session=t,this.connection=i,this.relayEventManager=new o.RelayEventManager,this.ui=n}subscribe(){let e=c.WalletLinkSession.load(this.storage)||new c.WalletLinkSession(this.storage).save(),{linkAPIUrl:t}=this,n=new i.WalletLinkConnection({session:e,linkAPIUrl:t,listener:this}),a=this.isMobileWeb?new W.WLMobileRelayUI:new R.WalletLinkRelayUI;return n.connect(),{session:e,ui:a,connection:n}}attachUI(){this.ui.attach()}resetAndReload(){Promise.race([this.connection.setSessionMetadata("__destroyed","1"),new Promise(e=>setTimeout(()=>e(null),1e3))]).then(()=>{this.connection.destroy();let e=c.WalletLinkSession.load(this.storage);(null==e?void 0:e.id)===this._session.id&&Z.ScopedLocalStorage.clearAll(),document.location.reload()}).catch(e=>{})}setAppInfo(e,t){this.appName=e,this.appLogoUrl=t}getStorageItem(e){return this.storage.getItem(e)}setStorageItem(e,t){this.storage.setItem(e,t)}signEthereumMessage(e,t,n,i){return this.sendRequest({method:"signEthereumMessage",params:{message:(0,K.hexStringFromBuffer)(e,!0),address:t,addPrefix:n,typedDataJson:i||null}})}ethereumAddressFromSignedMessage(e,t,n){return this.sendRequest({method:"ethereumAddressFromSignedMessage",params:{message:(0,K.hexStringFromBuffer)(e,!0),signature:(0,K.hexStringFromBuffer)(t,!0),addPrefix:n}})}signEthereumTransaction(e){return this.sendRequest({method:"signEthereumTransaction",params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:(0,K.bigIntStringFromBigInt)(e.weiValue),data:(0,K.hexStringFromBuffer)(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?(0,K.bigIntStringFromBigInt)(e.gasPriceInWei):null,maxFeePerGas:e.gasPriceInWei?(0,K.bigIntStringFromBigInt)(e.gasPriceInWei):null,maxPriorityFeePerGas:e.gasPriceInWei?(0,K.bigIntStringFromBigInt)(e.gasPriceInWei):null,gasLimit:e.gasLimit?(0,K.bigIntStringFromBigInt)(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(e){return this.sendRequest({method:"signEthereumTransaction",params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:(0,K.bigIntStringFromBigInt)(e.weiValue),data:(0,K.hexStringFromBuffer)(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?(0,K.bigIntStringFromBigInt)(e.gasPriceInWei):null,maxFeePerGas:e.maxFeePerGas?(0,K.bigIntStringFromBigInt)(e.maxFeePerGas):null,maxPriorityFeePerGas:e.maxPriorityFeePerGas?(0,K.bigIntStringFromBigInt)(e.maxPriorityFeePerGas):null,gasLimit:e.gasLimit?(0,K.bigIntStringFromBigInt)(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!0}})}submitEthereumTransaction(e,t){return this.sendRequest({method:"submitEthereumTransaction",params:{signedTransaction:(0,K.hexStringFromBuffer)(e,!0),chainId:t}})}scanQRCode(e){return this.sendRequest({method:"scanQRCode",params:{regExp:e}})}getWalletLinkSession(){return this._session}genericRequest(e,t){return this.sendRequest({method:"generic",params:{action:t,data:e}})}sendGenericMessage(e){return this.sendRequest(e)}sendRequest(e){let t=null,n=(0,K.randomBytesHex)(8),cancel=i=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,e.method,i),null==t||t()};return new Promise((i,a)=>{t=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:cancel,onResetConnection:this.resetAndReload}),this.relayEventManager.callbacks.set(n,e=>{if(null==t||t(),(0,l.isErrorResponse)(e))return a(Error(e.errorMessage));i(e)}),this.publishWeb3RequestEvent(n,e)})}setAccountsCallback(e){this.accountsCallback=e}setChainCallback(e){this.chainCallback=e}setDappDefaultChainCallback(e){this.dappDefaultChain=e}publishWeb3RequestEvent(e,t){let n={type:"WEB3_REQUEST",id:e,request:t};this.publishEvent("Web3Request",n,!0).then(e=>{}).catch(e=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:n.id,response:{method:t.method,errorMessage:e.message}})}),this.isMobileWeb&&this.openCoinbaseWalletDeeplink(t.method)}openCoinbaseWalletDeeplink(e){if(this.ui instanceof W.WLMobileRelayUI)switch(e){case"requestEthereumAccounts":case"switchEthereumChain":return;default:window.addEventListener("blur",()=>{window.addEventListener("focus",()=>{this.connection.checkUnseenEvents()},{once:!0})},{once:!0}),this.ui.openCoinbaseWalletDeeplink()}}publishWeb3RequestCanceledEvent(e){this.publishEvent("Web3RequestCanceled",{type:"WEB3_REQUEST_CANCELED",id:e},!1).then()}publishEvent(e,t,n){return this.connection.publishEvent(e,t,n)}handleWeb3ResponseMessage(e){let{response:t}=e;if("requestEthereumAccounts"===t.method){WalletLinkRelay.accountRequestCallbackIds.forEach(t=>this.invokeCallback(Object.assign(Object.assign({},e),{id:t}))),WalletLinkRelay.accountRequestCallbackIds.clear();return}this.invokeCallback(e)}handleErrorResponse(e,t,n){var i;let a=null!==(i=null==n?void 0:n.message)&&void 0!==i?i:"Unspecified error message.";this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:e,response:{method:t,errorMessage:a}})}invokeCallback(e){let t=this.relayEventManager.callbacks.get(e.id);t&&(t(e.response),this.relayEventManager.callbacks.delete(e.id))}requestEthereumAccounts(){let e={method:"requestEthereumAccounts",params:{appName:this.appName,appLogoUrl:this.appLogoUrl||null}},t=(0,K.randomBytesHex)(8);return new Promise((n,i)=>{this.relayEventManager.callbacks.set(t,e=>{if((0,l.isErrorResponse)(e))return i(Error(e.errorMessage));n(e)}),WalletLinkRelay.accountRequestCallbackIds.add(t),this.publishWeb3RequestEvent(t,e)})}watchAsset(e,t,n,i,a,o){let c={method:"watchAsset",params:{type:e,options:{address:t,symbol:n,decimals:i,image:a},chainId:o}},u=null,R=(0,K.randomBytesHex)(8);return u=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:e=>{this.publishWeb3RequestCanceledEvent(R),this.handleErrorResponse(R,c.method,e),null==u||u()},onResetConnection:this.resetAndReload}),new Promise((e,t)=>{this.relayEventManager.callbacks.set(R,n=>{if(null==u||u(),(0,l.isErrorResponse)(n))return t(Error(n.errorMessage));e(n)}),this.publishWeb3RequestEvent(R,c)})}addEthereumChain(e,t,n,i,a,o){let c={method:"addEthereumChain",params:{chainId:e,rpcUrls:t,blockExplorerUrls:i,chainName:a,iconUrls:n,nativeCurrency:o}},u=null,R=(0,K.randomBytesHex)(8);return u=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:e=>{this.publishWeb3RequestCanceledEvent(R),this.handleErrorResponse(R,c.method,e),null==u||u()},onResetConnection:this.resetAndReload}),new Promise((e,t)=>{this.relayEventManager.callbacks.set(R,n=>{if(null==u||u(),(0,l.isErrorResponse)(n))return t(Error(n.errorMessage));e(n)}),this.publishWeb3RequestEvent(R,c)})}switchEthereumChain(e,t){let n={method:"switchEthereumChain",params:Object.assign({chainId:e},{address:t})},i=(0,K.randomBytesHex)(8);return new Promise((e,t)=>{this.relayEventManager.callbacks.set(i,n=>(0,l.isErrorResponse)(n)&&n.errorCode?t(U.standardErrors.provider.custom({code:n.errorCode,message:"Unrecognized chain ID. Try adding the chain using addEthereumChain first."})):(0,l.isErrorResponse)(n)?t(Error(n.errorMessage)):void e(n)),this.publishWeb3RequestEvent(i,n)})}};t.WalletLinkRelay=WalletLinkRelay,WalletLinkRelay.accountRequestCallbackIds=new Set},26752:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WalletLinkCipher=void 0;let i=n(8623);let WalletLinkCipher=class WalletLinkCipher{constructor(e){this.secret=e}async encrypt(e){let t=this.secret;if(64!==t.length)throw Error("secret must be 256 bits");let n=crypto.getRandomValues(new Uint8Array(12)),a=await crypto.subtle.importKey("raw",(0,i.hexStringToUint8Array)(t),{name:"aes-gcm"},!1,["encrypt","decrypt"]),o=new TextEncoder,c=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:n},a,o.encode(e)),l=c.slice(c.byteLength-16),u=c.slice(0,c.byteLength-16),R=new Uint8Array(l),W=new Uint8Array(u),U=new Uint8Array([...n,...R,...W]);return(0,i.uint8ArrayToHex)(U)}async decrypt(e){let t=this.secret;if(64!==t.length)throw Error("secret must be 256 bits");return new Promise((n,a)=>{!async function(){let o=await crypto.subtle.importKey("raw",(0,i.hexStringToUint8Array)(t),{name:"aes-gcm"},!1,["encrypt","decrypt"]),c=(0,i.hexStringToUint8Array)(e),l=c.slice(0,12),u=c.slice(12,28),R=c.slice(28),W=new Uint8Array([...R,...u]),U={name:"AES-GCM",iv:new Uint8Array(l)};try{let e=await window.crypto.subtle.decrypt(U,o,W),t=new TextDecoder;n(t.decode(e))}catch(e){a(e)}}()})}};t.WalletLinkCipher=WalletLinkCipher},14587:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WalletLinkConnection=void 0;let i=n(54455),a=n(26752),o=n(15565),c=n(725),l=n(94397);let WalletLinkConnection=class WalletLinkConnection{constructor({session:e,linkAPIUrl:t,listener:n,WebSocketClass:u=WebSocket}){this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=(0,l.IntNumber)(1),this._connected=!1,this._linked=!1,this.shouldFetchUnseenEventsOnConnect=!1,this.requestResolutions=new Map,this.handleSessionMetadataUpdated=e=>{if(!e)return;let t=new Map([["__destroyed",this.handleDestroyed],["EthereumAddress",this.handleAccountUpdated],["WalletUsername",this.handleWalletUsernameUpdated],["AppVersion",this.handleAppVersionUpdated],["ChainId",t=>e.JsonRpcUrl&&this.handleChainUpdated(t,e.JsonRpcUrl)]]);t.forEach((t,n)=>{let i=e[n];void 0!==i&&t(i)})},this.handleDestroyed=e=>{var t;"1"===e&&(null===(t=this.listener)||void 0===t||t.resetAndReload())},this.handleAccountUpdated=async e=>{var t;{let n=await this.cipher.decrypt(e);null===(t=this.listener)||void 0===t||t.accountUpdated(n)}},this.handleMetadataUpdated=async(e,t)=>{var n;{let i=await this.cipher.decrypt(t);null===(n=this.listener)||void 0===n||n.metadataUpdated(e,i)}},this.handleWalletUsernameUpdated=async e=>{this.handleMetadataUpdated(i.WALLET_USER_NAME_KEY,e)},this.handleAppVersionUpdated=async e=>{this.handleMetadataUpdated(i.APP_VERSION_KEY,e)},this.handleChainUpdated=async(e,t)=>{var n;{let i=await this.cipher.decrypt(e),a=await this.cipher.decrypt(t);null===(n=this.listener)||void 0===n||n.chainUpdated(i,a)}},this.session=e,this.cipher=new a.WalletLinkCipher(e.secret),this.listener=n;let R=new c.WalletLinkWebSocket(`${t}/rpc`,u);R.setConnectionStateListener(async e=>{let t=!1;switch(e){case c.ConnectionState.DISCONNECTED:if(!this.destroyed){let connect=async()=>{await new Promise(e=>setTimeout(e,5e3)),this.destroyed||R.connect().catch(()=>{connect()})};connect()}break;case c.ConnectionState.CONNECTED:try{await this.authenticate(),this.sendIsLinked(),this.sendGetSessionConfig(),t=!0}catch(e){}this.updateLastHeartbeat(),setInterval(()=>{this.heartbeat()},1e4),this.shouldFetchUnseenEventsOnConnect&&this.fetchUnseenEventsAPI();case c.ConnectionState.CONNECTING:}this.connected!==t&&(this.connected=t)}),R.setIncomingDataListener(e=>{var t;switch(e.type){case"Heartbeat":this.updateLastHeartbeat();return;case"IsLinkedOK":case"Linked":{let t="IsLinkedOK"===e.type?e.linked:void 0;this.linked=t||e.onlineGuests>0;break}case"GetSessionConfigOK":case"SessionConfigUpdated":this.handleSessionMetadataUpdated(e.metadata);break;case"Event":this.handleIncomingEvent(e)}void 0!==e.id&&(null===(t=this.requestResolutions.get(e.id))||void 0===t||t(e))}),this.ws=R,this.http=new o.WalletLinkHTTP(t,e.id,e.key)}connect(){if(this.destroyed)throw Error("instance is destroyed");this.ws.connect()}destroy(){this.destroyed=!0,this.ws.disconnect(),this.listener=void 0}get isDestroyed(){return this.destroyed}get connected(){return this._connected}set connected(e){var t;this._connected=e,e&&(null===(t=this.onceConnected)||void 0===t||t.call(this))}setOnceConnected(e){return new Promise(t=>{this.connected?e().then(t):this.onceConnected=()=>{e().then(t),this.onceConnected=void 0}})}get linked(){return this._linked}set linked(e){var t,n;this._linked=e,e&&(null===(t=this.onceLinked)||void 0===t||t.call(this)),null===(n=this.listener)||void 0===n||n.linkedUpdated(e)}setOnceLinked(e){return new Promise(t=>{this.linked?e().then(t):this.onceLinked=()=>{e().then(t),this.onceLinked=void 0}})}async handleIncomingEvent(e){var t;if("Event"===e.type&&"Web3Response"===e.event){let n=await this.cipher.decrypt(e.data),i=JSON.parse(n);if("WEB3_RESPONSE"!==i.type)return;null===(t=this.listener)||void 0===t||t.handleWeb3ResponseMessage(i)}}async checkUnseenEvents(){if(!this.connected){this.shouldFetchUnseenEventsOnConnect=!0;return}await new Promise(e=>setTimeout(e,250));try{await this.fetchUnseenEventsAPI()}catch(e){console.error("Unable to check for unseen events",e)}}async fetchUnseenEventsAPI(){this.shouldFetchUnseenEventsOnConnect=!1;let e=await this.http.fetchUnseenEvents();e.forEach(e=>this.handleIncomingEvent(e))}async setSessionMetadata(e,t){let n={type:"SetSessionConfig",id:(0,l.IntNumber)(this.nextReqId++),sessionId:this.session.id,metadata:{[e]:t}};return this.setOnceConnected(async()=>{let e=await this.makeRequest(n);if("Fail"===e.type)throw Error(e.error||"failed to set session metadata")})}async publishEvent(e,t,n=!1){let i=await this.cipher.encrypt(JSON.stringify(Object.assign(Object.assign({},t),{origin:location.origin,relaySource:"coinbaseWalletExtension"in window&&window.coinbaseWalletExtension?"injected_sdk":"sdk"}))),a={type:"PublishEvent",id:(0,l.IntNumber)(this.nextReqId++),sessionId:this.session.id,event:e,data:i,callWebhook:n};return this.setOnceLinked(async()=>{let e=await this.makeRequest(a);if("Fail"===e.type)throw Error(e.error||"failed to publish event");return e.eventId})}sendData(e){this.ws.sendData(JSON.stringify(e))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>2e4){this.ws.disconnect();return}try{this.ws.sendData("h")}catch(e){}}async makeRequest(e,t=6e4){let n;let i=e.id;return this.sendData(e),Promise.race([new Promise((e,a)=>{n=window.setTimeout(()=>{a(Error(`request ${i} timed out`))},t)}),new Promise(e=>{this.requestResolutions.set(i,t=>{clearTimeout(n),e(t),this.requestResolutions.delete(i)})})])}async authenticate(){let e={type:"HostSession",id:(0,l.IntNumber)(this.nextReqId++),sessionId:this.session.id,sessionKey:this.session.key},t=await this.makeRequest(e);if("Fail"===t.type)throw Error(t.error||"failed to authenticate")}sendIsLinked(){let e={type:"IsLinked",id:(0,l.IntNumber)(this.nextReqId++),sessionId:this.session.id};this.sendData(e)}sendGetSessionConfig(){let e={type:"GetSessionConfig",id:(0,l.IntNumber)(this.nextReqId++),sessionId:this.session.id};this.sendData(e)}};t.WalletLinkConnection=WalletLinkConnection},15565:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WalletLinkHTTP=void 0;let WalletLinkHTTP=class WalletLinkHTTP{constructor(e,t,n){this.linkAPIUrl=e,this.sessionId=t;let i=`${t}:${n}`;this.auth=`Basic ${btoa(i)}`}async markUnseenEventsAsSeen(e){return Promise.all(e.map(e=>fetch(`${this.linkAPIUrl}/events/${e.eventId}/seen`,{method:"POST",headers:{Authorization:this.auth}}))).catch(e=>console.error("Unabled to mark event as failed:",e))}async fetchUnseenEvents(){var e;let t=await fetch(`${this.linkAPIUrl}/events?unseen=true`,{headers:{Authorization:this.auth}});if(t.ok){let{events:n,error:i}=await t.json();if(i)throw Error(`Check unseen events failed: ${i}`);let a=null!==(e=null==n?void 0:n.filter(e=>"Web3Response"===e.event).map(e=>({type:"Event",sessionId:this.sessionId,eventId:e.id,event:e.event,data:e.data})))&&void 0!==e?e:[];return this.markUnseenEventsAsSeen(a),a}throw Error(`Check unseen events failed: ${t.status}`)}};t.WalletLinkHTTP=WalletLinkHTTP},725:function(e,t){"use strict";var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.WalletLinkWebSocket=t.ConnectionState=void 0,(i=n||(t.ConnectionState=n={}))[i.DISCONNECTED=0]="DISCONNECTED",i[i.CONNECTING=1]="CONNECTING",i[i.CONNECTED=2]="CONNECTED";let WalletLinkWebSocket=class WalletLinkWebSocket{setConnectionStateListener(e){this.connectionStateListener=e}setIncomingDataListener(e){this.incomingDataListener=e}constructor(e,t=WebSocket){this.WebSocketClass=t,this.webSocket=null,this.pendingData=[],this.url=e.replace(/^http/,"ws")}async connect(){if(this.webSocket)throw Error("webSocket object is not null");return new Promise((e,t)=>{var i;let a;try{this.webSocket=a=new this.WebSocketClass(this.url)}catch(e){t(e);return}null===(i=this.connectionStateListener)||void 0===i||i.call(this,n.CONNECTING),a.onclose=e=>{var i;this.clearWebSocket(),t(Error(`websocket error ${e.code}: ${e.reason}`)),null===(i=this.connectionStateListener)||void 0===i||i.call(this,n.DISCONNECTED)},a.onopen=t=>{var i;if(e(),null===(i=this.connectionStateListener)||void 0===i||i.call(this,n.CONNECTED),this.pendingData.length>0){let e=[...this.pendingData];e.forEach(e=>this.sendData(e)),this.pendingData=[]}},a.onmessage=e=>{var t,n;if("h"===e.data)null===(t=this.incomingDataListener)||void 0===t||t.call(this,{type:"Heartbeat"});else try{let t=JSON.parse(e.data);null===(n=this.incomingDataListener)||void 0===n||n.call(this,t)}catch(e){}}})}disconnect(){var e;let{webSocket:t}=this;if(t){this.clearWebSocket(),null===(e=this.connectionStateListener)||void 0===e||e.call(this,n.DISCONNECTED),this.connectionStateListener=void 0,this.incomingDataListener=void 0;try{t.close()}catch(e){}}}sendData(e){let{webSocket:t}=this;if(!t){this.pendingData.push(e),this.connect();return}t.send(e)}clearWebSocket(){let{webSocket:e}=this;e&&(this.webSocket=null,e.onclose=null,e.onerror=null,e.onmessage=null,e.onopen=null)}};t.WalletLinkWebSocket=WalletLinkWebSocket},54455:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.APP_VERSION_KEY=t.LOCAL_STORAGE_ADDRESSES_KEY=t.WALLET_USER_NAME_KEY=void 0,t.WALLET_USER_NAME_KEY="walletUsername",t.LOCAL_STORAGE_ADDRESSES_KEY="Addresses",t.APP_VERSION_KEY="AppVersion"},88393:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WalletLinkSession=void 0;let i=n(21670),a=n(8623),o="session:id",c="session:secret",l="session:linked";let WalletLinkSession=class WalletLinkSession{constructor(e,t,n,o){this._storage=e,this._id=t||(0,a.randomBytesHex)(16),this._secret=n||(0,a.randomBytesHex)(32),this._key=new i.sha256().update(`${this._id}, ${this._secret} WalletLink`).digest("hex"),this._linked=!!o}static load(e){let t=e.getItem(o),n=e.getItem(l),i=e.getItem(c);return t&&i?new WalletLinkSession(e,t,i,"1"===n):null}get id(){return this._id}get secret(){return this._secret}get key(){return this._key}get linked(){return this._linked}set linked(e){this._linked=e,this.persistLinked()}save(){return this._storage.setItem(o,this._id),this._storage.setItem(c,this._secret),this.persistLinked(),this}persistLinked(){this._storage.setItem(l,this._linked?"1":"0")}};t.WalletLinkSession=WalletLinkSession},4440:function(e,t){"use strict";function isErrorResponse(e){return void 0!==e.errorMessage}Object.defineProperty(t,"__esModule",{value:!0}),t.isErrorResponse=void 0,t.isErrorResponse=isErrorResponse},60548:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WLMobileRelayUI=void 0;let i=n(93486),a=n(18714),o=n(30851);let WLMobileRelayUI=class WLMobileRelayUI{constructor(){this.attached=!1,this.redirectDialog=new i.RedirectDialog}attach(){if(this.attached)throw Error("Coinbase Wallet SDK UI is already attached");this.redirectDialog.attach(),this.attached=!0}redirectToCoinbaseWallet(e){let t=new URL(o.CBW_MOBILE_DEEPLINK_URL);t.searchParams.append("redirect_url",(0,a.getLocation)().href),e&&t.searchParams.append("wl_url",e);let n=document.createElement("a");n.target="cbw-opener",n.href=t.href,n.rel="noreferrer noopener",n.click()}openCoinbaseWalletDeeplink(e){this.redirectDialog.present({title:"Redirecting to Coinbase Wallet...",buttonText:"Open",onButtonClick:()=>{this.redirectToCoinbaseWallet(e)}}),setTimeout(()=>{this.redirectToCoinbaseWallet(e)},99)}showConnecting(e){return()=>{this.redirectDialog.clear()}}};t.WLMobileRelayUI=WLMobileRelayUI},9450:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WalletLinkRelayUI=void 0;let i=n(68627),a=n(29078);let WalletLinkRelayUI=class WalletLinkRelayUI{constructor(){this.attached=!1,this.snackbar=new a.Snackbar}attach(){if(this.attached)throw Error("Coinbase Wallet SDK UI is already attached");let e=document.documentElement,t=document.createElement("div");t.className="-cbwsdk-css-reset",e.appendChild(t),this.snackbar.attach(t),this.attached=!0,(0,i.injectCssReset)()}showConnecting(e){let t;return t=e.isUnlinkedErrorState?{autoExpand:!0,message:"Connection lost",menuItems:[{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:e.onResetConnection}]}:{message:"Confirm on phone",menuItems:[{isRed:!0,info:"Cancel transaction",svgWidth:"11",svgHeight:"11",path:"M10.3711 1.52346L9.21775 0.370117L5.37109 4.21022L1.52444 0.370117L0.371094 1.52346L4.2112 5.37012L0.371094 9.21677L1.52444 10.3701L5.37109 6.53001L9.21775 10.3701L10.3711 9.21677L6.53099 5.37012L10.3711 1.52346Z",defaultFillRule:"inherit",defaultClipRule:"inherit",onClick:e.onCancel},{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:e.onResetConnection}]},this.snackbar.presentItem(t)}};t.WalletLinkRelayUI=WalletLinkRelayUI},85165:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=".-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s;background-color:rgba(10,11,13,.5)}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box{display:block;position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);padding:20px;border-radius:8px;background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box p{display:block;font-weight:400;font-size:14px;line-height:20px;padding-bottom:12px;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box button{appearance:none;border:none;background:none;color:#0052ff;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark{background-color:#0a0b0d;color:#fff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark button{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light{background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light button{color:#0052ff}"},93486:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RedirectDialog=void 0;let a=i(n(1534)),o=n(88342),c=n(68627),l=n(29078),u=n(18714),R=i(n(85165));let RedirectDialog=class RedirectDialog{constructor(){this.root=null,this.darkMode=(0,u.isDarkMode)()}attach(){let e=document.documentElement;this.root=document.createElement("div"),this.root.className="-cbwsdk-css-reset",e.appendChild(this.root),(0,c.injectCssReset)()}present(e){this.render(e)}clear(){this.render(null)}render(e){this.root&&((0,o.render)(null,this.root),e&&(0,o.render)((0,o.h)(RedirectDialogContent,Object.assign({},e,{onDismiss:()=>{this.clear()},darkMode:this.darkMode})),this.root))}};t.RedirectDialog=RedirectDialog;let RedirectDialogContent=({title:e,buttonText:t,darkMode:n,onButtonClick:i,onDismiss:c})=>(0,o.h)(l.SnackbarContainer,{darkMode:n},(0,o.h)("div",{class:"-cbwsdk-redirect-dialog"},(0,o.h)("style",null,R.default),(0,o.h)("div",{class:"-cbwsdk-redirect-dialog-backdrop",onClick:c}),(0,o.h)("div",{class:(0,a.default)("-cbwsdk-redirect-dialog-box",n?"dark":"light")},(0,o.h)("p",null,e),(0,o.h)("button",{onClick:i},t))))},80986:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=".-cbwsdk-css-reset .-gear-container{margin-left:16px !important;margin-right:9px !important;display:flex;align-items:center;justify-content:center;width:24px;height:24px;transition:opacity .25s}.-cbwsdk-css-reset .-gear-container *{user-select:none}.-cbwsdk-css-reset .-gear-container svg{opacity:0;position:absolute}.-cbwsdk-css-reset .-gear-icon{height:12px;width:12px;z-index:10000}.-cbwsdk-css-reset .-cbwsdk-snackbar{align-items:flex-end;display:flex;flex-direction:column;position:fixed;right:0;top:0;z-index:2147483647}.-cbwsdk-css-reset .-cbwsdk-snackbar *{user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance{display:flex;flex-direction:column;margin:8px 16px 0 16px;overflow:visible;text-align:left;transform:translateX(0);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header:hover .-gear-container svg{opacity:1}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header{display:flex;align-items:center;background:#fff;overflow:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-cblogo{margin:8px 8px 8px 8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-message{color:#000;font-size:13px;line-height:1.5;user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu{background:#fff;transition:opacity .25s ease-in-out,transform .25s linear,visibility 0s;visibility:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;opacity:0;flex-direction:column;padding-left:8px;padding-right:8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:last-child{margin-bottom:8px !important}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover{background:#f5f7f8;border-radius:6px;transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover span{color:#050f19;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover svg path{fill:#000;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item{visibility:inherit;height:35px;margin-top:8px;margin-bottom:0;display:flex;flex-direction:row;align-items:center;padding:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item *{visibility:inherit;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover{background:rgba(223,95,103,.2);transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover svg path{fill:#df5f67;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover span{color:#df5f67;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-info{color:#aaa;font-size:13px;margin:0 8px 0 32px;position:absolute}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-hidden{opacity:0;text-align:left;transform:translateX(25%);transition:opacity .5s linear}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-expanded .-cbwsdk-snackbar-instance-menu{opacity:1;display:flex;transform:translateY(8px);visibility:visible}"},29078:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SnackbarInstance=t.SnackbarContainer=t.Snackbar=void 0;let a=i(n(1534)),o=n(88342),c=n(75872),l=n(18714),u=i(n(80986));let Snackbar=class Snackbar{constructor(){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=(0,l.isDarkMode)()}attach(e){this.root=document.createElement("div"),this.root.className="-cbwsdk-snackbar-root",e.appendChild(this.root),this.render()}presentItem(e){let t=this.nextItemKey++;return this.items.set(t,e),this.render(),()=>{this.items.delete(t),this.render()}}clear(){this.items.clear(),this.render()}render(){this.root&&(0,o.render)((0,o.h)("div",null,(0,o.h)(t.SnackbarContainer,{darkMode:this.darkMode},Array.from(this.items.entries()).map(([e,n])=>(0,o.h)(t.SnackbarInstance,Object.assign({},n,{key:e}))))),this.root)}};t.Snackbar=Snackbar,t.SnackbarContainer=e=>(0,o.h)("div",{class:(0,a.default)("-cbwsdk-snackbar-container")},(0,o.h)("style",null,u.default),(0,o.h)("div",{class:"-cbwsdk-snackbar"},e.children)),t.SnackbarInstance=({autoExpand:e,message:t,menuItems:n})=>{let[i,l]=(0,c.useState)(!0),[u,R]=(0,c.useState)(null!=e&&e);return(0,c.useEffect)(()=>{let e=[window.setTimeout(()=>{l(!1)},1),window.setTimeout(()=>{R(!0)},1e4)];return()=>{e.forEach(window.clearTimeout)}}),(0,o.h)("div",{class:(0,a.default)("-cbwsdk-snackbar-instance",i&&"-cbwsdk-snackbar-instance-hidden",u&&"-cbwsdk-snackbar-instance-expanded")},(0,o.h)("div",{class:"-cbwsdk-snackbar-instance-header",onClick:()=>{R(!u)}},(0,o.h)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+",class:"-cbwsdk-snackbar-instance-header-cblogo"})," ",(0,o.h)("div",{class:"-cbwsdk-snackbar-instance-header-message"},t),(0,o.h)("div",{class:"-gear-container"},!u&&(0,o.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("circle",{cx:"12",cy:"12",r:"12",fill:"#F5F7F8"})),(0,o.h)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=",class:"-gear-icon",title:"Expand"}))),n&&n.length>0&&(0,o.h)("div",{class:"-cbwsdk-snackbar-instance-menu"},n.map((e,t)=>(0,o.h)("div",{class:(0,a.default)("-cbwsdk-snackbar-instance-menu-item",e.isRed&&"-cbwsdk-snackbar-instance-menu-item-is-red"),onClick:e.onClick,key:t},(0,o.h)("svg",{width:e.svgWidth,height:e.svgHeight,viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("path",{"fill-rule":e.defaultFillRule,"clip-rule":e.defaultClipRule,d:e.path,fill:"#AAAAAA"})),(0,o.h)("span",{class:(0,a.default)("-cbwsdk-snackbar-instance-menu-item-info",e.isRed&&"-cbwsdk-snackbar-instance-menu-item-info-is-red")},e.info)))))}},1222:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default='@namespace svg "http://www.w3.org/2000/svg";.-cbwsdk-css-reset,.-cbwsdk-css-reset *{animation:none;animation-delay:0;animation-direction:normal;animation-duration:0;animation-fill-mode:none;animation-iteration-count:1;animation-name:none;animation-play-state:running;animation-timing-function:ease;backface-visibility:visible;background:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position:0 0;background-position-x:0;background-position-y:0;background-repeat:repeat;background-size:auto auto;border:0;border-style:none;border-width:medium;border-color:inherit;border-bottom:0;border-bottom-color:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-style:none;border-bottom-width:medium;border-collapse:separate;border-image:none;border-left:0;border-left-color:inherit;border-left-style:none;border-left-width:medium;border-radius:0;border-right:0;border-right-color:inherit;border-right-style:none;border-right-width:medium;border-spacing:0;border-top:0;border-top-color:inherit;border-top-left-radius:0;border-top-right-radius:0;border-top-style:none;border-top-width:medium;box-shadow:none;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:inherit;columns:auto;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-rule-color:currentColor;column-rule-style:none;column-rule-width:none;column-span:1;column-width:auto;counter-increment:none;counter-reset:none;direction:ltr;empty-cells:show;float:none;font:normal;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;height:auto;hyphens:none;letter-spacing:normal;line-height:normal;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;margin:0;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;opacity:1;orphans:0;outline:0;outline-color:invert;outline-style:none;outline-width:medium;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;pointer-events:auto;position:static;quotes:"\\201C" "\\201D" "\\2018" "\\2019";tab-size:8;table-layout:auto;text-align:inherit;text-align-last:auto;text-decoration:none;text-decoration-color:inherit;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-shadow:none;text-transform:none;transform:none;transform-style:flat;transition:none;transition-delay:0s;transition-duration:0s;transition-property:none;transition-timing-function:ease;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:0;word-spacing:normal;z-index:auto}.-cbwsdk-css-reset strong{font-weight:bold}.-cbwsdk-css-reset *{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;line-height:1}.-cbwsdk-css-reset [class*=container]{margin:0;padding:0}.-cbwsdk-css-reset style{display:none}'},68627:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.injectCssReset=void 0;let a=i(n(1222));function injectCssReset(){let e=document.createElement("style");e.type="text/css",e.appendChild(document.createTextNode(a.default)),document.documentElement.appendChild(e)}t.injectCssReset=injectCssReset},18714:function(e,t){"use strict";function createQrUrl(e,t,n,i,a,o){let c=new URLSearchParams({[i?"parent-id":"id"]:e,secret:t,server:n,v:a,chainId:o.toString()}).toString(),l=`${n}/#/link?${c}`;return l}function isInIFrame(){try{return null!==window.frameElement}catch(e){return!1}}function getLocation(){try{if(isInIFrame()&&window.top)return window.top.location;return window.location}catch(e){return window.location}}function isMobileWeb(){var e;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(null===(e=null==window?void 0:window.navigator)||void 0===e?void 0:e.userAgent)}function isDarkMode(){var e,t;return null!==(t=null===(e=null==window?void 0:window.matchMedia)||void 0===e?void 0:e.call(window,"(prefers-color-scheme: dark)").matches)&&void 0!==t&&t}Object.defineProperty(t,"__esModule",{value:!0}),t.isDarkMode=t.isMobileWeb=t.getLocation=t.createQrUrl=void 0,t.createQrUrl=createQrUrl,t.getLocation=getLocation,t.isMobileWeb=isMobileWeb,t.isDarkMode=isDarkMode},72756:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScopedLocalStorage=void 0;let ScopedLocalStorage=class ScopedLocalStorage{constructor(e,t){this.scope=e,this.module=t}setItem(e,t){localStorage.setItem(this.scopedKey(e),t)}getItem(e){return localStorage.getItem(this.scopedKey(e))}removeItem(e){localStorage.removeItem(this.scopedKey(e))}clear(){let e=this.scopedKey(""),t=[];for(let n=0;nlocalStorage.removeItem(e))}scopedKey(e){return`-${this.scope}${this.module?`:${this.module}`:""}:${e}`}static clearAll(){new ScopedLocalStorage("CBWSDK").clear(),new ScopedLocalStorage("walletlink").clear()}};t.ScopedLocalStorage=ScopedLocalStorage},74560:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decryptContent=t.encryptContent=t.importKeyFromHexString=t.exportKeyToHexString=t.decrypt=t.encrypt=t.deriveSharedSecret=t.generateKeyPair=void 0;let i=n(8623);async function generateKeyPair(){return crypto.subtle.generateKey({name:"ECDH",namedCurve:"P-256"},!0,["deriveKey"])}async function deriveSharedSecret(e,t){return crypto.subtle.deriveKey({name:"ECDH",public:t},e,{name:"AES-GCM",length:256},!1,["encrypt","decrypt"])}async function encrypt(e,t){let n=crypto.getRandomValues(new Uint8Array(12)),i=await crypto.subtle.encrypt({name:"AES-GCM",iv:n},e,new TextEncoder().encode(t));return{iv:n,cipherText:i}}async function decrypt(e,{iv:t,cipherText:n}){let i=await crypto.subtle.decrypt({name:"AES-GCM",iv:t},e,n);return new TextDecoder().decode(i)}function getFormat(e){switch(e){case"public":return"spki";case"private":return"pkcs8"}}async function exportKeyToHexString(e,t){let n=getFormat(e),a=await crypto.subtle.exportKey(n,t);return(0,i.uint8ArrayToHex)(new Uint8Array(a))}async function importKeyFromHexString(e,t){let n=getFormat(e),a=(0,i.hexStringToUint8Array)(t).buffer;return await crypto.subtle.importKey(n,a,{name:"ECDH",namedCurve:"P-256"},!0,"private"===e?["deriveKey"]:[])}async function encryptContent(e,t){let n=JSON.stringify(e,(e,t)=>t instanceof Error?Object.assign(Object.assign({},t.code?{code:t.code}:{}),{message:t.message}):t);return encrypt(t,n)}async function decryptContent(e,t){return JSON.parse(await decrypt(t,e))}t.generateKeyPair=generateKeyPair,t.deriveSharedSecret=deriveSharedSecret,t.encrypt=encrypt,t.decrypt=decrypt,t.exportKeyToHexString=exportKeyToHexString,t.importKeyFromHexString=importKeyFromHexString,t.encryptContent=encryptContent,t.decryptContent=decryptContent},87015:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkErrorForInvalidRequestArgs=t.getCoinbaseInjectedProvider=t.getCoinbaseInjectedSigner=t.fetchRPCRequest=void 0;let i=n(6805),a=n(6277);async function fetchRPCRequest(e,t){if(!t.rpcUrl)throw a.standardErrors.rpc.internal("No RPC URL set for chain");let n=Object.assign(Object.assign({},e),{jsonrpc:"2.0",id:crypto.randomUUID()}),o=await window.fetch(t.rpcUrl,{method:"POST",body:JSON.stringify(n),mode:"cors",headers:{"Content-Type":"application/json","X-Cbw-Sdk-Version":i.LIB_VERSION}}),c=await o.json();return c.result}function getCoinbaseInjectedSigner(){let e=globalThis;return e.coinbaseWalletSigner}function getCoinbaseInjectedProvider({metadata:e,preference:t}){var n,i,a;let o=globalThis;if("smartWalletOnly"!==t.options){let t=getCoinbaseInjectedSigner();if(t)return;let i=o.coinbaseWalletExtension;if(i){let{appName:t,appLogoUrl:a,appChainIds:o}=e;return null===(n=i.setAppInfo)||void 0===n||n.call(i,t,a,o),i}}let c=null!==(i=o.ethereum)&&void 0!==i?i:null===(a=o.top)||void 0===a?void 0:a.ethereum;if(null==c?void 0:c.isCoinbaseBrowser)return c}function checkErrorForInvalidRequestArgs(e){if(!e||"object"!=typeof e||Array.isArray(e))return a.standardErrors.rpc.invalidParams({message:"Expected a single, non-array, object argument.",data:e});let{method:t,params:n}=e;return"string"!=typeof t||0===t.length?a.standardErrors.rpc.invalidParams({message:"'args.method' must be a non-empty string.",data:e}):void 0===n||Array.isArray(n)||"object"==typeof n&&null!==n?void 0:a.standardErrors.rpc.invalidParams({message:"'args.params' must be an object or array if provided.",data:e})}t.fetchRPCRequest=fetchRPCRequest,t.getCoinbaseInjectedSigner=getCoinbaseInjectedSigner,t.getCoinbaseInjectedProvider=getCoinbaseInjectedProvider,t.checkErrorForInvalidRequestArgs=checkErrorForInvalidRequestArgs},51191:function(e,t,n){var i=n(61900).Buffer;let a=n(70495);function elementaryName(e){if(e.startsWith("int["))return"int256"+e.slice(3);if("int"===e)return"int256";if(e.startsWith("uint["))return"uint256"+e.slice(4);if("uint"===e)return"uint256";if(e.startsWith("fixed["))return"fixed128x128"+e.slice(5);if("fixed"===e)return"fixed128x128";if(e.startsWith("ufixed["))return"ufixed128x128"+e.slice(6);else if("ufixed"===e)return"ufixed128x128";return e}function parseTypeN(e){return parseInt(/^\D+(\d+)$/.exec(e)[1],10)}function parseTypeNxM(e){var t=/^\D+(\d+)x(\d+)$/.exec(e);return[parseInt(t[1],10),parseInt(t[2],10)]}function parseTypeArray(e){var t=e.match(/(.*)\[(.*?)\]$/);return t?""===t[2]?"dynamic":parseInt(t[2],10):null}function parseNumber(e){var t=typeof e;if("string"===t||"number"===t)return BigInt(e);if("bigint"===t)return e;throw Error("Argument is not a number")}function encodeSingle(e,t){var n,o,c,l;if("address"===e)return encodeSingle("uint160",parseNumber(t));if("bool"===e)return encodeSingle("uint8",t?1:0);if("string"===e)return encodeSingle("bytes",new i(t,"utf8"));if(isArray(e)){if(void 0===t.length)throw Error("Not an array?");if("dynamic"!==(n=parseTypeArray(e))&&0!==n&&t.length>n)throw Error("Elements exceed array size: "+n);for(l in c=[],e=e.slice(0,e.lastIndexOf("[")),"string"==typeof t&&(t=JSON.parse(t)),t)c.push(encodeSingle(e,t[l]));if("dynamic"===n){var u=encodeSingle("uint256",t.length);c.unshift(u)}return i.concat(c)}if("bytes"===e)return t=new i(t),c=i.concat([encodeSingle("uint256",t.length),t]),t.length%32!=0&&(c=i.concat([c,a.zeros(32-t.length%32)])),c;if(e.startsWith("bytes")){if((n=parseTypeN(e))<1||n>32)throw Error("Invalid bytes width: "+n);return a.setLengthRight(t,32)}if(e.startsWith("uint")){if((n=parseTypeN(e))%8||n<8||n>256)throw Error("Invalid uint width: "+n);o=parseNumber(t);let i=a.bitLengthFromBigInt(o);if(i>n)throw Error("Supplied uint exceeds width: "+n+" vs "+i);if(o<0)throw Error("Supplied uint is negative");return a.bufferBEFromBigInt(o,32)}else if(e.startsWith("int")){if((n=parseTypeN(e))%8||n<8||n>256)throw Error("Invalid int width: "+n);o=parseNumber(t);let i=a.bitLengthFromBigInt(o);if(i>n)throw Error("Supplied int exceeds width: "+n+" vs "+i);let c=a.twosFromBigInt(o,256);return a.bufferBEFromBigInt(c,32)}else if(e.startsWith("ufixed")){if(n=parseTypeNxM(e),(o=parseNumber(t))<0)throw Error("Supplied ufixed is negative");return encodeSingle("uint256",o*BigInt(2)**BigInt(n[1]))}else if(e.startsWith("fixed"))return n=parseTypeNxM(e),encodeSingle("int256",parseNumber(t)*BigInt(2)**BigInt(n[1]));throw Error("Unsupported or invalid type: "+e)}function isDynamic(e){return"string"===e||"bytes"===e||"dynamic"===parseTypeArray(e)}function isArray(e){return e.lastIndexOf("]")===e.length-1}function rawEncode(e,t){var n=[],a=[],o=32*e.length;for(var c in e){var l=elementaryName(e[c]),u=encodeSingle(l,t[c]);isDynamic(l)?(n.push(encodeSingle("uint256",o)),a.push(u),o+=u.length):n.push(u)}return i.concat(n.concat(a))}function solidityPack(e,t){if(e.length!==t.length)throw Error("Number of types are not matching the values");for(var n,o,c=[],l=0;l32)throw Error("Invalid bytes width: "+n);c.push(a.setLengthRight(R,n))}else if(u.startsWith("uint")){if((n=parseTypeN(u))%8||n<8||n>256)throw Error("Invalid uint width: "+n);o=parseNumber(R);let e=a.bitLengthFromBigInt(o);if(e>n)throw Error("Supplied uint exceeds width: "+n+" vs "+e);c.push(a.bufferBEFromBigInt(o,n/8))}else if(u.startsWith("int")){if((n=parseTypeN(u))%8||n<8||n>256)throw Error("Invalid int width: "+n);o=parseNumber(R);let e=a.bitLengthFromBigInt(o);if(e>n)throw Error("Supplied int exceeds width: "+n+" vs "+e);let t=a.twosFromBigInt(o,n);c.push(a.bufferBEFromBigInt(t,n/8))}else throw Error("Unsupported or invalid type: "+u)}return i.concat(c)}function soliditySHA3(e,t){return a.keccak(solidityPack(e,t))}e.exports={rawEncode,solidityPack,soliditySHA3}},73709:function(e,t,n){var i=n(61900).Buffer;let a=n(70495),o=n(51191),c={type:"object",properties:{types:{type:"object",additionalProperties:{type:"array",items:{type:"object",properties:{name:{type:"string"},type:{type:"string"}},required:["name","type"]}}},primaryType:{type:"string"},domain:{type:"object"},message:{type:"object"}},required:["types","primaryType","domain","message"]},l={encodeData(e,t,n,c=!0){let l=["bytes32"],u=[this.hashType(e,n)];if(c){let encodeField=(e,t,l)=>{if(void 0!==n[t])return["bytes32",null==l?"0x0000000000000000000000000000000000000000000000000000000000000000":a.keccak(this.encodeData(t,l,n,c))];if(void 0===l)throw Error(`missing value for field ${e} of type ${t}`);if("bytes"===t)return["bytes32",a.keccak(l)];if("string"===t)return"string"==typeof l&&(l=i.from(l,"utf8")),["bytes32",a.keccak(l)];if(t.lastIndexOf("]")===t.length-1){let n=t.slice(0,t.lastIndexOf("[")),i=l.map(t=>encodeField(e,n,t));return["bytes32",a.keccak(o.rawEncode(i.map(([e])=>e),i.map(([,e])=>e)))]}return[t,l]};for(let i of n[e]){let[e,n]=encodeField(i.name,i.type,t[i.name]);l.push(e),u.push(n)}}else for(let o of n[e]){let e=t[o.name];if(void 0!==e){if("bytes"===o.type)l.push("bytes32"),e=a.keccak(e),u.push(e);else if("string"===o.type)l.push("bytes32"),"string"==typeof e&&(e=i.from(e,"utf8")),e=a.keccak(e),u.push(e);else if(void 0!==n[o.type])l.push("bytes32"),e=a.keccak(this.encodeData(o.type,e,n,c)),u.push(e);else if(o.type.lastIndexOf("]")===o.type.length-1)throw Error("Arrays currently unimplemented in encodeData");else l.push(o.type),u.push(e)}}return o.rawEncode(l,u)},encodeType(e,t){let n="",i=this.findTypeDependencies(e,t).filter(t=>t!==e);for(let a of i=[e].concat(i.sort())){let e=t[a];if(!e)throw Error("No type definition specified: "+a);n+=a+"("+t[a].map(({name:e,type:t})=>t+" "+e).join(",")+")"}return n},findTypeDependencies(e,t,n=[]){if(e=e.match(/^\w*/)[0],n.includes(e)||void 0===t[e])return n;for(let i of(n.push(e),t[e]))for(let e of this.findTypeDependencies(i.type,t,n))n.includes(e)||n.push(e);return n},hashStruct(e,t,n,i=!0){return a.keccak(this.encodeData(e,t,n,i))},hashType(e,t){return a.keccak(this.encodeType(e,t))},sanitizeData(e){let t={};for(let n in c.properties)e[n]&&(t[n]=e[n]);return t.types&&(t.types=Object.assign({EIP712Domain:[]},t.types)),t},hash(e,t=!0){let n=this.sanitizeData(e),o=[i.from("1901","hex")];return o.push(this.hashStruct("EIP712Domain",n.domain,n.types,t)),"EIP712Domain"!==n.primaryType&&o.push(this.hashStruct(n.primaryType,n.message,n.types,t)),a.keccak(i.concat(o))}};function typedSignatureHashLegacy(e){let t=Error("Expect argument to be non-empty array");if("object"!=typeof e||!e.length)throw t;let n=e.map(function(e){return"bytes"===e.type?a.toBuffer(e.value):e.value}),i=e.map(function(e){return e.type}),c=e.map(function(e){if(!e.name)throw t;return e.type+" "+e.name});return o.soliditySHA3(["bytes32","bytes32"],[o.soliditySHA3(Array(e.length).fill("string"),c),o.soliditySHA3(i,n)])}e.exports={TYPED_MESSAGE_SCHEMA:c,TypedDataUtils:l,hashForSignTypedDataLegacy:function(e){return typedSignatureHashLegacy(e.data)},hashForSignTypedData_v3:function(e){return l.hash(e.data,!1)},hashForSignTypedData_v4:function(e){return l.hash(e.data)}}},70495:function(e,t,n){var i=n(61900).Buffer;let a=n(1525);function zeros(e){return i.allocUnsafe(e).fill(0)}function bitLengthFromBigInt(e){return e.toString(2).length}function bufferBEFromBigInt(e,t){let n=e.toString(16);n.length%2!=0&&(n="0"+n);let a=n.match(/.{1,2}/g).map(e=>parseInt(e,16));for(;a.length2&&(l.children=arguments.length>3?i.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(c in e.defaultProps)void 0===l[c]&&(l[c]=e.defaultProps[c]);return d(e,l,a,o,null)}function d(e,t,n,i,c){var l={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==c?++o:c,__i:-1,__u:0};return null==c&&null!=a.vnode&&a.vnode(l),l}function _(){return{current:null}}function g(e){return e.children}function b(e,t){this.props=e,this.context=t}function m(e,t){if(null==t)return e.__?m(e.__,e.__i+1):null;for(var n;tt&&l.sort(W));x.__r=0}function C(e,t,n,i,a,o,c,l,u,R,W){var U,G,J,Y,Q,X=i&&i.__k||Z,ee=t.length;for(n.__d=u,P(n,t,X),u=n.__d,U=0;U0?d(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a)?(a.__=e,a.__b=e.__b+1,l=H(a,n,c=i+U,W),a.__i=l,o=null,-1!==l&&(W--,(o=n[l])&&(o.__u|=131072)),null==o||null===o.__v?(-1==l&&U--,"function"!=typeof a.type&&(a.__u|=65536)):l!==c&&(l===c+1?U++:l>c?W>u-c?U+=l-c:U--:U=l(null!=u&&0==(131072&u.__u)?1:0))for(;c>=0||l=0){if((u=t[c])&&0==(131072&u.__u)&&a==u.key&&o===u.type)return c;c--}if(l2&&(u.children=arguments.length>3?i.call(arguments,2):n),d(e.type,u,a||e.key,o||e.ref,null)}function F(e,t){var n={__c:t="__cC"+U++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,i;return this.getChildContext||(n=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(function(e){e.__e=!0,w(e)})},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}i=Z.slice,a={__e:function(e,t,n,i){for(var a,o,c;t=t.__;)if((a=t.__c)&&!a.__)try{if((o=a.constructor)&&null!=o.getDerivedStateFromError&&(a.setState(o.getDerivedStateFromError(e)),c=a.__d),null!=a.componentDidCatch&&(a.componentDidCatch(e,i||{}),c=a.__d),c)return a.__E=a}catch(t){e=t}throw e}},o=0,c=function(e){return null!=e&&null==e.constructor},b.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=v({},this.state),"function"==typeof e&&(e=e(v({},n),this.props)),e&&v(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),w(this))},b.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),w(this))},b.prototype.render=g,l=[],R="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,W=function(e,t){return e.__v.__b-t.__v.__b},x.__r=0,U=0},75872:function(e,t,n){"use strict";n.r(t),n.d(t,{useCallback:function(){return T},useContext:function(){return q},useDebugValue:function(){return x},useEffect:function(){return p},useErrorBoundary:function(){return P},useId:function(){return V},useImperativeHandle:function(){return A},useLayoutEffect:function(){return y},useMemo:function(){return F},useReducer:function(){return s},useRef:function(){return _},useState:function(){return h}});var i,a,o,c,l=n(88342),u=0,R=[],W=[],U=l.options.__b,K=l.options.__r,Z=l.options.diffed,G=l.options.__c,J=l.options.unmount;function d(e,t){l.options.__h&&l.options.__h(a,e,u||t),u=0;var n=a.__H||(a.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:W}),n.__[e]}function h(e){return u=1,s(B,e)}function s(e,t,n){var o=d(i++,2);if(o.t=e,!o.__c&&(o.__=[n?n(t):B(void 0,t),function(e){var t=o.__N?o.__N[0]:o.__[0],n=o.t(t,e);t!==n&&(o.__N=[n,o.__[1]],o.__c.setState({}))}],o.__c=a,!a.u)){var f=function(e,t,n){if(!o.__c.__H)return!0;var i=o.__c.__H.__.filter(function(e){return e.__c});if(i.every(function(e){return!e.__N}))return!c||c.call(this,e,t,n);var a=!1;return i.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}}),!(!a&&o.__c.props===e)&&(!c||c.call(this,e,t,n))};a.u=!0;var c=a.shouldComponentUpdate,l=a.componentWillUpdate;a.componentWillUpdate=function(e,t,n){if(this.__e){var i=c;c=void 0,f(e,t,n),c=i}l&&l.call(this,e,t,n)},a.shouldComponentUpdate=f}return o.__N||o.__}function p(e,t){var n=d(i++,3);!l.options.__s&&z(n.__H,t)&&(n.__=e,n.i=t,a.__H.__h.push(n))}function y(e,t){var n=d(i++,4);!l.options.__s&&z(n.__H,t)&&(n.__=e,n.i=t,a.__h.push(n))}function _(e){return u=5,F(function(){return{current:e}},[])}function A(e,t,n){u=6,y(function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},null==n?n:n.concat(e))}function F(e,t){var n=d(i++,7);return z(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function T(e,t){return u=8,F(function(){return e},t)}function q(e){var t=a.context[e.__c],n=d(i++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(a)),t.props.value):e.__}function x(e,t){l.options.useDebugValue&&l.options.useDebugValue(t?t(e):e)}function P(e){var t=d(i++,10),n=h();return t.__=e,a.componentDidCatch||(a.componentDidCatch=function(e,i){t.__&&t.__(e,i),n[1](e)}),[n[0],function(){n[1](void 0)}]}function V(){var e=d(i++,11);if(!e.__){for(var t=a.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function b(){for(var e;e=R.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(k),e.__H.__h.forEach(w),e.__H.__h=[]}catch(t){e.__H.__h=[],l.options.__e(t,e.__v)}}l.options.__b=function(e){a=null,U&&U(e)},l.options.__r=function(e){K&&K(e),i=0;var t=(a=e.__c).__H;t&&(o===a?(t.__h=[],a.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=W,e.__N=e.i=void 0})):(t.__h.forEach(k),t.__h.forEach(w),t.__h=[],i=0)),o=a},l.options.diffed=function(e){Z&&Z(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==R.push(t)&&c===l.options.requestAnimationFrame||((c=l.options.requestAnimationFrame)||j)(b)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==W&&(e.__=e.__V),e.i=void 0,e.__V=W})),o=a=null},l.options.__c=function(e,t){t.some(function(e){try{e.__h.forEach(k),e.__h=e.__h.filter(function(e){return!e.__||w(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],l.options.__e(n,e.__v)}}),G&&G(e,t)},l.options.unmount=function(e){J&&J(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{k(e)}catch(e){t=e}}),n.__H=void 0,t&&l.options.__e(t,n.__v))};var Y="function"==typeof requestAnimationFrame;function j(e){var t,r=function(){clearTimeout(n),Y&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Y&&(t=requestAnimationFrame(r))}function k(e){var t=a,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),a=t}function w(e){var t=a;e.__c=e.__(),a=t}function z(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function B(e,t){return"function"==typeof t?t(e):t}}}]); \ No newline at end of file diff --git a/_next/static/chunks/6738.44a232c68f82e284.js b/_next/static/chunks/6738.44a232c68f82e284.js new file mode 100644 index 0000000..c348173 --- /dev/null +++ b/_next/static/chunks/6738.44a232c68f82e284.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6738],{46738:function(l,a,t){t.r(a),t.d(a,{default:function(){return c}});var c='data:image/svg+xml,'}}]); \ No newline at end of file diff --git a/_next/static/chunks/6933.8e73dd9abe9d8901.js b/_next/static/chunks/6933.8e73dd9abe9d8901.js new file mode 100644 index 0000000..4162dbb --- /dev/null +++ b/_next/static/chunks/6933.8e73dd9abe9d8901.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6933],{76933:function(o,t,s){s.r(t),s.d(t,{default:function(){return r}});var r='data:image/svg+xml,'}}]); \ No newline at end of file diff --git a/_next/static/chunks/7045.dff662388c9e4170.js b/_next/static/chunks/7045.dff662388c9e4170.js new file mode 100644 index 0000000..68b8329 --- /dev/null +++ b/_next/static/chunks/7045.dff662388c9e4170.js @@ -0,0 +1,1191 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7045],{37045:function(E,u,D){D.r(u),D.d(u,{default:function(){return e}});var e=`{ + "connect_wallet": { + "label": "\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19", + "wrong_network": { + "label": "\u0E40\u0E04\u0E23\u0E37\u0E2D\u0E02\u0E48\u0E32\u0E22\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07" + } + }, + "intro": { + "title": "\u0E2D\u0E30\u0E44\u0E23\u0E04\u0E37\u0E2D\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19?", + "description": "\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E43\u0E0A\u0E49\u0E43\u0E19\u0E01\u0E32\u0E23\u0E2A\u0E48\u0E07, \u0E23\u0E31\u0E1A, \u0E40\u0E01\u0E47\u0E1A, \u0E41\u0E25\u0E30\u0E41\u0E2A\u0E14\u0E07\u0E2A\u0E34\u0E19\u0E17\u0E23\u0E31\u0E1E\u0E22\u0E4C\u0E14\u0E34\u0E08\u0E34\u0E17\u0E31\u0E25 \u0E21\u0E31\u0E19\u0E22\u0E31\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E27\u0E34\u0E18\u0E35\u0E43\u0E2B\u0E21\u0E48\u0E43\u0E19\u0E01\u0E32\u0E23\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A, \u0E42\u0E14\u0E22\u0E44\u0E21\u0E48\u0E08\u0E33\u0E40\u0E1B\u0E47\u0E19\u0E15\u0E49\u0E2D\u0E07\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E1A\u0E31\u0E0D\u0E0A\u0E35\u0E41\u0E25\u0E30\u0E23\u0E2B\u0E31\u0E2A\u0E1C\u0E48\u0E32\u0E19\u0E43\u0E2B\u0E21\u0E48\u0E43\u0E19\u0E17\u0E38\u0E01\u0E40\u0E27\u0E47\u0E1A\u0E44\u0E0B\u0E15\u0E4C.", + "digital_asset": { + "title": "\u0E1A\u0E49\u0E32\u0E19\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E2A\u0E34\u0E19\u0E17\u0E23\u0E31\u0E1E\u0E22\u0E4C\u0E14\u0E34\u0E08\u0E34\u0E17\u0E31\u0E25\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13", + "description": "\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E16\u0E39\u0E01\u0E43\u0E0A\u0E49\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E2A\u0E48\u0E07, \u0E23\u0E31\u0E1A, \u0E40\u0E01\u0E47\u0E1A, \u0E41\u0E2A\u0E14\u0E07\u0E2A\u0E34\u0E19\u0E17\u0E23\u0E31\u0E1E\u0E22\u0E4C\u0E14\u0E34\u0E08\u0E34\u0E17\u0E31\u0E25 \u0E40\u0E0A\u0E48\u0E19 Ethereum \u0E41\u0E25\u0E30 NFTs." + }, + "login": { + "title": "\u0E27\u0E34\u0E18\u0E35\u0E43\u0E2B\u0E21\u0E48\u0E43\u0E19\u0E01\u0E32\u0E23\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A", + "description": "\u0E41\u0E17\u0E19\u0E17\u0E35\u0E48\u0E08\u0E30\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E1A\u0E31\u0E0D\u0E0A\u0E35\u0E41\u0E25\u0E30\u0E23\u0E2B\u0E31\u0E2A\u0E1C\u0E48\u0E32\u0E19\u0E43\u0E2B\u0E21\u0E48\u0E43\u0E19\u0E17\u0E38\u0E01\u0E40\u0E27\u0E47\u0E1A\u0E44\u0E0B\u0E15\u0E4C, \u0E41\u0E04\u0E48\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13." + }, + "get": { + "label": "\u0E23\u0E31\u0E1A\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19" + }, + "learn_more": { + "label": "\u0E40\u0E23\u0E35\u0E22\u0E19\u0E23\u0E39\u0E49\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21" + } + }, + "sign_in": { + "label": "\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E1A\u0E31\u0E0D\u0E0A\u0E35\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13", + "description": "\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E01\u0E32\u0E23\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E17\u0E35\u0E48\u0E2A\u0E21\u0E1A\u0E39\u0E23\u0E13\u0E4C, \u0E04\u0E38\u0E13\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E19\u0E32\u0E21\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E43\u0E19\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E27\u0E48\u0E32\u0E04\u0E38\u0E13\u0E40\u0E1B\u0E47\u0E19\u0E40\u0E08\u0E49\u0E32\u0E02\u0E2D\u0E07\u0E1A\u0E31\u0E0D\u0E0A\u0E35\u0E19\u0E35\u0E49", + "message": { + "send": "\u0E2A\u0E48\u0E07\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21", + "preparing": "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E40\u0E15\u0E23\u0E35\u0E22\u0E21\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21...", + "cancel": "\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01", + "preparing_error": "\u0E40\u0E01\u0E34\u0E14\u0E02\u0E49\u0E2D\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14\u0E43\u0E19\u0E01\u0E32\u0E23\u0E40\u0E15\u0E23\u0E35\u0E22\u0E21\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21 \u0E42\u0E1B\u0E23\u0E14\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48!" + }, + "signature": { + "waiting": "\u0E23\u0E2D\u0E01\u0E32\u0E23\u0E25\u0E07\u0E19\u0E32\u0E21...", + "verifying": "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E25\u0E32\u0E22\u0E40\u0E0B\u0E47\u0E19...", + "signing_error": "\u0E40\u0E01\u0E34\u0E14\u0E02\u0E49\u0E2D\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14\u0E43\u0E19\u0E01\u0E32\u0E23\u0E25\u0E07\u0E19\u0E32\u0E21\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21 \u0E42\u0E1B\u0E23\u0E14\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48!", + "verifying_error": "\u0E40\u0E01\u0E34\u0E14\u0E02\u0E49\u0E2D\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14\u0E43\u0E19\u0E01\u0E32\u0E23\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E25\u0E32\u0E22\u0E40\u0E0B\u0E47\u0E19 \u0E42\u0E1B\u0E23\u0E14\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48!", + "oops_error": "\u0E2D\u0E4A\u0E30, \u0E40\u0E01\u0E34\u0E14\u0E02\u0E49\u0E2D\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14\u0E1A\u0E32\u0E07\u0E2D\u0E22\u0E48\u0E32\u0E07!" + } + }, + "connect": { + "label": "\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D", + "title": "\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19", + "new_to_ethereum": { + "description": "\u0E43\u0E2B\u0E21\u0E48\u0E01\u0E31\u0E1A\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32 Ethereum \u0E2B\u0E23\u0E37\u0E2D\u0E44\u0E21\u0E48?", + "learn_more": { + "label": "\u0E40\u0E23\u0E35\u0E22\u0E19\u0E23\u0E39\u0E49\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21" + } + }, + "learn_more": { + "label": "\u0E40\u0E23\u0E35\u0E22\u0E19\u0E23\u0E39\u0E49\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21" + }, + "recent": "\u0E25\u0E48\u0E32\u0E2A\u0E38\u0E14", + "status": { + "opening": "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E40\u0E1B\u0E34\u0E14 %{wallet}...", + "connecting": "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D", + "connect_mobile": "\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E15\u0E48\u0E2D\u0E43\u0E19 %{wallet}", + "not_installed": "%{wallet} \u0E44\u0E21\u0E48\u0E44\u0E14\u0E49\u0E15\u0E34\u0E14\u0E15\u0E31\u0E49\u0E07", + "not_available": "%{wallet} \u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E43\u0E0A\u0E49\u0E44\u0E14\u0E49", + "confirm": "\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E01\u0E32\u0E23\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E43\u0E19\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22", + "confirm_mobile": "\u0E22\u0E2D\u0E21\u0E23\u0E31\u0E1A\u0E04\u0E33\u0E02\u0E2D\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E43\u0E19\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19" + }, + "secondary_action": { + "get": { + "description": "\u0E44\u0E21\u0E48\u0E21\u0E35 %{wallet}?", + "label": "\u0E23\u0E31\u0E1A" + }, + "install": { + "label": "\u0E15\u0E34\u0E14\u0E15\u0E31\u0E49\u0E07" + }, + "retry": { + "label": "\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48" + } + }, + "walletconnect": { + "description": { + "full": "\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23 modal \u0E2D\u0E22\u0E48\u0E32\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E17\u0E32\u0E07\u0E01\u0E32\u0E23\u0E08\u0E32\u0E01 WalletConnect \u0E2B\u0E23\u0E37\u0E2D\u0E44\u0E21\u0E48?", + "compact": "\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23 modal \u0E08\u0E32\u0E01 WalletConnect \u0E2B\u0E23\u0E37\u0E2D\u0E44\u0E21\u0E48?" + }, + "open": { + "label": "\u0E40\u0E1B\u0E34\u0E14" + } + } + }, + "connect_scan": { + "title": "\u0E2A\u0E41\u0E01\u0E19\u0E14\u0E49\u0E27\u0E22 %{wallet}", + "fallback_title": "\u0E2A\u0E41\u0E01\u0E19\u0E14\u0E49\u0E27\u0E22\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13" + }, + "connector_group": { + "installed": "\u0E15\u0E34\u0E14\u0E15\u0E31\u0E49\u0E07\u0E41\u0E25\u0E49\u0E27", + "recommended": "\u0E41\u0E19\u0E30\u0E19\u0E33", + "other": "\u0E2D\u0E37\u0E48\u0E19 \u0E46", + "popular": "\u0E22\u0E2D\u0E14\u0E19\u0E34\u0E22\u0E21", + "more": "\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21", + "others": "\u0E2D\u0E37\u0E48\u0E19 \u0E46" + }, + "get": { + "title": "\u0E23\u0E31\u0E1A Wallet", + "action": { + "label": "\u0E23\u0E31\u0E1A" + }, + "mobile": { + "description": "Wallet \u0E1A\u0E19\u0E21\u0E37\u0E2D\u0E16\u0E37\u0E2D" + }, + "extension": { + "description": "\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22\u0E1A\u0E23\u0E32\u0E27\u0E40\u0E0B\u0E2D\u0E23\u0E4C" + }, + "mobile_and_extension": { + "description": "\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E21\u0E37\u0E2D\u0E16\u0E37\u0E2D\u0E41\u0E25\u0E30\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22" + }, + "mobile_and_desktop": { + "description": "\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E1A\u0E19\u0E21\u0E37\u0E2D\u0E16\u0E37\u0E2D\u0E41\u0E25\u0E30\u0E04\u0E2D\u0E21\u0E1E\u0E34\u0E27\u0E40\u0E15\u0E2D\u0E23\u0E4C" + }, + "looking_for": { + "title": "\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48\u0E2A\u0E34\u0E48\u0E07\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2B\u0E32\u0E2B\u0E23\u0E37\u0E2D\u0E44\u0E21\u0E48?", + "mobile": { + "description": "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E2B\u0E25\u0E31\u0E01\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19\u0E43\u0E0A\u0E49\u0E07\u0E32\u0E19\u0E01\u0E31\u0E1A\u0E1C\u0E39\u0E49\u0E43\u0E2B\u0E49\u0E1A\u0E23\u0E34\u0E01\u0E32\u0E23\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E17\u0E35\u0E48\u0E41\u0E15\u0E01\u0E15\u0E48\u0E32\u0E07\u0E01\u0E31\u0E19" + }, + "desktop": { + "compact_description": "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E2B\u0E25\u0E31\u0E01\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19\u0E43\u0E0A\u0E49\u0E07\u0E32\u0E19\u0E01\u0E31\u0E1A\u0E1C\u0E39\u0E49\u0E43\u0E2B\u0E49\u0E1A\u0E23\u0E34\u0E01\u0E32\u0E23\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E17\u0E35\u0E48\u0E41\u0E15\u0E01\u0E15\u0E48\u0E32\u0E07\u0E01\u0E31\u0E19", + "wide_description": "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E17\u0E32\u0E07\u0E0B\u0E49\u0E32\u0E22\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19\u0E43\u0E0A\u0E49\u0E07\u0E32\u0E19\u0E01\u0E31\u0E1A\u0E1C\u0E39\u0E49\u0E43\u0E2B\u0E49\u0E1A\u0E23\u0E34\u0E01\u0E32\u0E23\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E17\u0E35\u0E48\u0E41\u0E15\u0E01\u0E15\u0E48\u0E32\u0E07\u0E01\u0E31\u0E19" + } + } + }, + "get_options": { + "title": "\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19\u0E01\u0E31\u0E1A %{wallet}", + "short_title": "\u0E23\u0E31\u0E1A %{wallet}", + "mobile": { + "title": "%{wallet} \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E21\u0E37\u0E2D\u0E16\u0E37\u0E2D", + "description": "\u0E43\u0E0A\u0E49\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E23\u0E30\u0E1A\u0E1A\u0E21\u0E37\u0E2D\u0E16\u0E37\u0E2D\u0E43\u0E19\u0E01\u0E32\u0E23\u0E2A\u0E33\u0E23\u0E27\u0E08\u0E42\u0E25\u0E01\u0E02\u0E2D\u0E07 Ethereum.", + "download": { + "label": "\u0E23\u0E31\u0E1A\u0E41\u0E2D\u0E1B" + } + }, + "extension": { + "title": "%{wallet} \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A %{browser}", + "description": "\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E42\u0E14\u0E22\u0E15\u0E23\u0E07\u0E08\u0E32\u0E01\u0E1A\u0E23\u0E32\u0E27\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E0A\u0E37\u0E48\u0E19\u0E0A\u0E2D\u0E1A.", + "download": { + "label": "\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E44\u0E1B\u0E22\u0E31\u0E07 %{browser}" + } + }, + "desktop": { + "title": "%{wallet} \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A %{platform}", + "description": "\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E42\u0E14\u0E22\u0E15\u0E23\u0E07\u0E08\u0E32\u0E01\u0E04\u0E2D\u0E21\u0E1E\u0E34\u0E27\u0E40\u0E15\u0E2D\u0E23\u0E4C\u0E17\u0E35\u0E48\u0E21\u0E35\u0E1B\u0E23\u0E30\u0E2A\u0E34\u0E17\u0E18\u0E34\u0E20\u0E32\u0E1E\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13", + "download": { + "label": "\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E44\u0E1B\u0E22\u0E31\u0E07 %{platform}" + } + } + }, + "get_mobile": { + "title": "\u0E15\u0E34\u0E14\u0E15\u0E31\u0E49\u0E07 %{wallet}", + "description": "\u0E2A\u0E41\u0E01\u0E19\u0E14\u0E49\u0E27\u0E22\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E14\u0E32\u0E27\u0E19\u0E4C\u0E42\u0E2B\u0E25\u0E14\u0E1A\u0E19 iOS \u0E2B\u0E23\u0E37\u0E2D Android", + "continue": { + "label": "\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E15\u0E48\u0E2D" + } + }, + "get_instructions": { + "mobile": { + "connect": { + "label": "\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D" + }, + "learn_more": { + "label": "\u0E40\u0E23\u0E35\u0E22\u0E19\u0E23\u0E39\u0E49\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21" + } + }, + "extension": { + "refresh": { + "label": "\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A" + }, + "learn_more": { + "label": "\u0E40\u0E23\u0E35\u0E22\u0E19\u0E23\u0E39\u0E49\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21" + } + }, + "desktop": { + "connect": { + "label": "\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D" + }, + "learn_more": { + "label": "\u0E40\u0E23\u0E35\u0E22\u0E19\u0E23\u0E39\u0E49\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21" + } + } + }, + "chains": { + "title": "\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19\u0E40\u0E04\u0E23\u0E37\u0E2D\u0E02\u0E48\u0E32\u0E22", + "wrong_network": "\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E1E\u0E1A\u0E40\u0E04\u0E23\u0E37\u0E2D\u0E02\u0E48\u0E32\u0E22\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07 \u0E2A\u0E25\u0E31\u0E1A\u0E2B\u0E23\u0E37\u0E2D\u0E15\u0E31\u0E14\u0E01\u0E32\u0E23\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E15\u0E48\u0E2D.", + "confirm": "\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E43\u0E19 Wallet", + "switching_not_supported": "\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E21\u0E48\u0E2A\u0E19\u0E31\u0E1A\u0E2A\u0E19\u0E38\u0E19\u0E01\u0E32\u0E23\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19\u0E40\u0E04\u0E23\u0E37\u0E2D\u0E02\u0E48\u0E32\u0E22\u0E08\u0E32\u0E01 %{appName}\u0E25\u0E2D\u0E07\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19\u0E40\u0E04\u0E23\u0E37\u0E2D\u0E02\u0E48\u0E32\u0E22\u0E08\u0E32\u0E01\u0E20\u0E32\u0E22\u0E43\u0E19\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E41\u0E17\u0E19", + "switching_not_supported_fallback": "\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E21\u0E48\u0E2A\u0E19\u0E31\u0E1A\u0E2A\u0E19\u0E38\u0E19\u0E01\u0E32\u0E23\u0E2A\u0E25\u0E31\u0E1A\u0E40\u0E04\u0E23\u0E37\u0E2D\u0E02\u0E48\u0E32\u0E22\u0E08\u0E32\u0E01\u0E41\u0E2D\u0E1B\u0E19\u0E35\u0E49 \u0E25\u0E2D\u0E07\u0E2A\u0E25\u0E31\u0E1A\u0E40\u0E04\u0E23\u0E37\u0E2D\u0E02\u0E48\u0E32\u0E22\u0E08\u0E32\u0E01\u0E20\u0E32\u0E22\u0E43\u0E19\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E41\u0E17\u0E19", + "disconnect": "\u0E15\u0E31\u0E14\u0E01\u0E32\u0E23\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D", + "connected": "\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E41\u0E25\u0E49\u0E27" + }, + "profile": { + "disconnect": { + "label": "\u0E15\u0E31\u0E14\u0E01\u0E32\u0E23\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D" + }, + "copy_address": { + "label": "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48", + "copied": "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01\u0E41\u0E25\u0E49\u0E27!" + }, + "explorer": { + "label": "\u0E14\u0E39\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21\u0E1A\u0E19 explorer" + }, + "transactions": { + "description": "%{appName} \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E08\u0E30\u0E1B\u0E23\u0E32\u0E01\u0E0E\u0E17\u0E35\u0E48\u0E19\u0E35\u0E48...", + "description_fallback": "\u0E01\u0E32\u0E23\u0E17\u0E33\u0E18\u0E38\u0E23\u0E01\u0E23\u0E23\u0E21\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E08\u0E30\u0E1B\u0E23\u0E32\u0E01\u0E0E\u0E17\u0E35\u0E48\u0E19\u0E35\u0E48...", + "recent": { + "title": "\u0E18\u0E38\u0E23\u0E01\u0E23\u0E23\u0E21\u0E25\u0E48\u0E32\u0E2A\u0E38\u0E14" + }, + "clear": { + "label": "\u0E25\u0E1A\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14" + } + } + }, + "wallet_connectors": { + "argent": { + "qr_code": { + "step1": { + "description": "\u0E27\u0E32\u0E07 Argent \u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E2B\u0E25\u0E31\u0E01\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E40\u0E23\u0E47\u0E27\u0E02\u0E36\u0E49\u0E19", + "title": "\u0E40\u0E1B\u0E34\u0E14\u0E41\u0E2D\u0E1B Argent" + }, + "step2": { + "description": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E41\u0E25\u0E30\u0E0A\u0E37\u0E48\u0E2D\u0E1C\u0E39\u0E49\u0E43\u0E0A\u0E49\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E17\u0E35\u0E48\u0E21\u0E35\u0E2D\u0E22\u0E39\u0E48\u0E41\u0E25\u0E49\u0E27", + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32 Wallet" + }, + "step3": { + "description": "\u0E2B\u0E25\u0E31\u0E07\u0E08\u0E32\u0E01\u0E04\u0E38\u0E13\u0E2A\u0E41\u0E01\u0E19 \u0E08\u0E30\u0E1B\u0E23\u0E32\u0E01\u0E0F\u0E2B\u0E19\u0E49\u0E32\u0E15\u0E48\u0E32\u0E07\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13", + "title": "\u0E41\u0E15\u0E30\u0E17\u0E35\u0E48\u0E04\u0E38\u0E48\u0E21\u0E38\u0E48\u0E07\u0E2A\u0E41\u0E01\u0E19 QR" + } + } + }, + "bifrost": { + "qr_code": { + "step1": { + "description": "\u0E40\u0E23\u0E32\u0E02\u0E2D\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E27\u0E32\u0E07 Bifrost Wallet \u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E2B\u0E25\u0E31\u0E01\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E44\u0E14\u0E49\u0E40\u0E23\u0E47\u0E27\u0E02\u0E36\u0E49\u0E19", + "title": "\u0E40\u0E1B\u0E34\u0E14\u0E41\u0E2D\u0E1E\u0E2F Bifrost Wallet" + }, + "step2": { + "description": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E14\u0E49\u0E27\u0E22 recovery phrase \u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13", + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19" + }, + "step3": { + "description": "\u0E2B\u0E25\u0E31\u0E07\u0E08\u0E32\u0E01\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E2A\u0E41\u0E01\u0E19\u0E41\u0E25\u0E49\u0E27\u0E22\u0E34\u0E19\u0E22\u0E31\u0E19\u0E01\u0E32\u0E23\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E01\u0E31\u0E1A\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13", + "title": "\u0E41\u0E15\u0E30\u0E1B\u0E38\u0E48\u0E21\u0E2A\u0E41\u0E01\u0E19" + } + } + }, + "bitget": { + "qr_code": { + "step1": { + "description": "\u0E40\u0E23\u0E32\u0E02\u0E2D\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E27\u0E32\u0E07 Bitget Wallet \u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E2B\u0E19\u0E49\u0E32\u0E41\u0E23\u0E01\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E01\u0E32\u0E23\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E17\u0E35\u0E48\u0E23\u0E27\u0E14\u0E40\u0E23\u0E47\u0E27\u0E02\u0E36\u0E49\u0E19.", + "title": "\u0E40\u0E1B\u0E34\u0E14\u0E41\u0E2D\u0E1E Bitget Wallet" + }, + "step2": { + "description": "\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E01\u0E32\u0E23\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E43\u0E2B\u0E49\u0E41\u0E19\u0E48\u0E19\u0E2D\u0E19\u0E42\u0E14\u0E22\u0E43\u0E0A\u0E49\u0E27\u0E34\u0E18\u0E35\u0E17\u0E35\u0E48\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22 \u0E2D\u0E22\u0E48\u0E32\u0E41\u0E0A\u0E23\u0E4C\u0E27\u0E25\u0E35\u0E25\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E01\u0E31\u0E1A\u0E43\u0E04\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2D\u0E31\u0E19\u0E02\u0E32\u0E14.", + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32 Wallet" + }, + "step3": { + "description": "\u0E2B\u0E25\u0E31\u0E07\u0E08\u0E32\u0E01\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E2A\u0E41\u0E01\u0E19 \u0E08\u0E30\u0E21\u0E35\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E02\u0E2D\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E17\u0E35\u0E48\u0E08\u0E30\u0E1B\u0E23\u0E32\u0E01\u0E0F\u0E02\u0E36\u0E49\u0E19\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13.", + "title": "\u0E41\u0E15\u0E30\u0E1B\u0E38\u0E48\u0E21\u0E2A\u0E41\u0E01\u0E19" + } + }, + "extension": { + "step1": { + "description": "\u0E40\u0E23\u0E32\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E1B\u0E31\u0E01 Bitget Wallet \u0E44\u0E27\u0E49\u0E1A\u0E19\u0E41\u0E16\u0E1A\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C\u0E44\u0E14\u0E49\u0E40\u0E23\u0E47\u0E27\u0E02\u0E36\u0E49\u0E19", + "title": "\u0E15\u0E34\u0E14\u0E15\u0E31\u0E49\u0E07\u0E2A\u0E48\u0E27\u0E19\u0E40\u0E2A\u0E23\u0E34\u0E21 Bitget Wallet" + }, + "step2": { + "description": "\u0E42\u0E1B\u0E23\u0E14\u0E41\u0E19\u0E48\u0E43\u0E08\u0E27\u0E48\u0E32\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E42\u0E14\u0E22\u0E43\u0E0A\u0E49\u0E27\u0E34\u0E18\u0E35\u0E17\u0E35\u0E48\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22 \u0E2D\u0E22\u0E48\u0E32\u0E41\u0E0A\u0E23\u0E4C\u0E27\u0E25\u0E35\u0E25\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E01\u0E31\u0E1A\u0E1A\u0E38\u0E04\u0E04\u0E25\u0E43\u0E14\u0E46", + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32 Wallet" + }, + "step3": { + "description": "\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E04\u0E38\u0E13\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E41\u0E25\u0E49\u0E27\u0E04\u0E25\u0E34\u0E01\u0E14\u0E49\u0E32\u0E19\u0E25\u0E48\u0E32\u0E07\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E41\u0E25\u0E30\u0E42\u0E2B\u0E25\u0E14\u0E2A\u0E48\u0E27\u0E19\u0E40\u0E2A\u0E23\u0E34\u0E21", + "title": "\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13" + } + } + }, + "bitski": { + "extension": { + "step1": { + "description": "\u0E40\u0E23\u0E32\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E17\u0E33\u0E1B\u0E31\u0E01 Bitski \u0E44\u0E27\u0E49\u0E17\u0E35\u0E48\u0E41\u0E16\u0E1A\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E44\u0E14\u0E49\u0E42\u0E14\u0E22\u0E44\u0E21\u0E48\u0E15\u0E49\u0E2D\u0E07\u0E23\u0E2D", + "title": "\u0E15\u0E34\u0E14\u0E15\u0E31\u0E49\u0E07\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22 Bitski" + }, + "step2": { + "description": "\u0E04\u0E27\u0E23\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E42\u0E14\u0E22\u0E43\u0E0A\u0E49\u0E27\u0E34\u0E18\u0E35\u0E17\u0E35\u0E48\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22 \u0E2D\u0E22\u0E48\u0E32\u0E40\u0E1B\u0E34\u0E14\u0E40\u0E1C\u0E22\u0E04\u0E33\u0E25\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E43\u0E2B\u0E49\u0E43\u0E04\u0E23\u0E17\u0E23\u0E32\u0E1A", + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19" + }, + "step3": { + "description": "\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E04\u0E38\u0E13\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E41\u0E25\u0E49\u0E27 \u0E04\u0E25\u0E34\u0E01\u0E14\u0E49\u0E32\u0E19\u0E25\u0E48\u0E32\u0E07\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E41\u0E25\u0E30\u0E42\u0E2B\u0E25\u0E14\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22", + "title": "\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13" + } + } + }, + "bitverse": { + "qr_code": { + "step1": { + "title": "\u0E40\u0E1B\u0E34\u0E14\u0E41\u0E2D\u0E1E\u0E2F Bitverse Wallet", + "description": "\u0E40\u0E1E\u0E34\u0E48\u0E21 Bitverse Wallet \u0E25\u0E07\u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E2B\u0E25\u0E31\u0E01\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E01\u0E32\u0E23\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E40\u0E23\u0E47\u0E27\u0E02\u0E36\u0E49\u0E19" + }, + "step2": { + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32 Wallet", + "description": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E43\u0E2B\u0E21\u0E48\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32\u0E17\u0E35\u0E48\u0E21\u0E35\u0E2D\u0E22\u0E39\u0E48\u0E41\u0E25\u0E49\u0E27." + }, + "step3": { + "title": "\u0E41\u0E15\u0E30\u0E17\u0E35\u0E48\u0E44\u0E2D\u0E04\u0E2D\u0E19 QR \u0E41\u0E25\u0E49\u0E27\u0E2A\u0E41\u0E01\u0E19", + "description": "\u0E41\u0E15\u0E30\u0E17\u0E35\u0E48\u0E44\u0E2D\u0E04\u0E2D\u0E19 QR \u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E2B\u0E25\u0E31\u0E01\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13 \u0E2A\u0E41\u0E01\u0E19\u0E23\u0E2B\u0E31\u0E2A\u0E41\u0E25\u0E30\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E01\u0E32\u0E23\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D" + } + } + }, + "bloom": { + "desktop": { + "step1": { + "title": "\u0E40\u0E1B\u0E34\u0E14\u0E41\u0E2D\u0E1E Bloom Wallet", + "description": "\u0E40\u0E23\u0E32\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E27\u0E32\u0E07 Bloom Wallet \u0E44\u0E27\u0E49\u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E2B\u0E25\u0E31\u0E01\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E01\u0E32\u0E23\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E17\u0E35\u0E48\u0E40\u0E23\u0E47\u0E27\u0E02\u0E36\u0E49\u0E19" + }, + "step2": { + "description": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E14\u0E49\u0E27\u0E22 recovery phrase \u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13", + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32 Wallet" + }, + "step3": { + "description": "\u0E2B\u0E25\u0E31\u0E07\u0E08\u0E32\u0E01\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E21\u0E35\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E41\u0E25\u0E49\u0E27 \u0E04\u0E25\u0E34\u0E01\u0E17\u0E35\u0E48 'Connect' \u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E1C\u0E48\u0E32\u0E19 Bloom \u0E08\u0E30\u0E21\u0E35\u0E2B\u0E19\u0E49\u0E32\u0E15\u0E48\u0E32\u0E07\u0E41\u0E08\u0E49\u0E07\u0E40\u0E15\u0E37\u0E2D\u0E19\u0E01\u0E32\u0E23\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E1B\u0E23\u0E32\u0E01\u0E0F\u0E02\u0E36\u0E49\u0E19\u0E43\u0E19\u0E41\u0E2D\u0E1E\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E01\u0E32\u0E23\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D", + "title": "\u0E04\u0E25\u0E34\u0E01\u0E17\u0E35\u0E48 'Connect'" + } + }, + "qr_code": { + "step1": { + "title": "\u0E40\u0E1B\u0E34\u0E14\u0E41\u0E2D\u0E1E Bloom Wallet", + "description": "\u0E40\u0E23\u0E32\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E27\u0E32\u0E07 Bloom Wallet \u0E44\u0E27\u0E49\u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E2B\u0E25\u0E31\u0E01\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E01\u0E32\u0E23\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E17\u0E35\u0E48\u0E40\u0E23\u0E47\u0E27\u0E02\u0E36\u0E49\u0E19" + }, + "step2": { + "description": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E14\u0E49\u0E27\u0E22 recovery phrase \u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13", + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32 Wallet" + }, + "step3": { + "description": "\u0E2B\u0E25\u0E31\u0E07\u0E08\u0E32\u0E01\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E21\u0E35\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E41\u0E25\u0E49\u0E27 \u0E04\u0E25\u0E34\u0E01\u0E17\u0E35\u0E48 'Connect' \u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E1C\u0E48\u0E32\u0E19 Bloom \u0E08\u0E30\u0E21\u0E35\u0E2B\u0E19\u0E49\u0E32\u0E15\u0E48\u0E32\u0E07\u0E41\u0E08\u0E49\u0E07\u0E40\u0E15\u0E37\u0E2D\u0E19\u0E01\u0E32\u0E23\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E1B\u0E23\u0E32\u0E01\u0E0F\u0E02\u0E36\u0E49\u0E19\u0E43\u0E19\u0E41\u0E2D\u0E1E\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E01\u0E32\u0E23\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D", + "title": "\u0E04\u0E25\u0E34\u0E01\u0E17\u0E35\u0E48 'Connect'" + } + } + }, + "bybit": { + "qr_code": { + "step1": { + "description": "\u0E40\u0E23\u0E32\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E15\u0E31\u0E49\u0E07 Bybit \u0E44\u0E27\u0E49\u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E2B\u0E25\u0E31\u0E01\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E01\u0E32\u0E23\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E44\u0E14\u0E49\u0E40\u0E23\u0E47\u0E27\u0E02\u0E36\u0E49\u0E19", + "title": "\u0E40\u0E1B\u0E34\u0E14\u0E41\u0E2D\u0E1E\u0E2F Bybit" + }, + "step2": { + "description": "\u0E04\u0E38\u0E13\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E07\u0E48\u0E32\u0E22\u0E46 \u0E14\u0E49\u0E27\u0E22\u0E1F\u0E35\u0E40\u0E08\u0E2D\u0E23\u0E4C\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E1A\u0E19\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13.", + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32 Wallet" + }, + "step3": { + "description": "\u0E2B\u0E25\u0E31\u0E07\u0E08\u0E32\u0E01\u0E04\u0E38\u0E13\u0E2A\u0E41\u0E01\u0E19 \u0E08\u0E30\u0E1B\u0E23\u0E32\u0E01\u0E0F\u0E2B\u0E19\u0E49\u0E32\u0E15\u0E48\u0E32\u0E07\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13", + "title": "\u0E41\u0E15\u0E30\u0E1B\u0E38\u0E48\u0E21\u0E2A\u0E41\u0E01\u0E19" + } + }, + "extension": { + "step1": { + "description": "\u0E04\u0E25\u0E34\u0E01\u0E17\u0E35\u0E48\u0E21\u0E38\u0E21\u0E02\u0E27\u0E32\u0E1A\u0E19\u0E02\u0E2D\u0E07\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E41\u0E25\u0E30\u0E1B\u0E31\u0E01\u0E2B\u0E21\u0E38\u0E14 Bybit Wallet \u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E01\u0E32\u0E23\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E44\u0E14\u0E49\u0E07\u0E48\u0E32\u0E22", + "title": "\u0E15\u0E34\u0E14\u0E15\u0E31\u0E49\u0E07\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22 Bybit Wallet" + }, + "step2": { + "description": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E43\u0E2B\u0E21\u0E48\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32\u0E17\u0E35\u0E48\u0E21\u0E35\u0E2D\u0E22\u0E39\u0E48\u0E41\u0E25\u0E49\u0E27.", + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19" + }, + "step3": { + "description": "\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E04\u0E38\u0E13\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32 Bybit Wallet \u0E40\u0E2A\u0E23\u0E47\u0E08\u0E2A\u0E21\u0E1A\u0E39\u0E23\u0E13\u0E4C\u0E41\u0E25\u0E49\u0E27 \u0E04\u0E25\u0E34\u0E01\u0E14\u0E49\u0E32\u0E19\u0E25\u0E48\u0E32\u0E07\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E41\u0E25\u0E30\u0E42\u0E2B\u0E25\u0E14\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22", + "title": "\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13" + } + } + }, + "coin98": { + "qr_code": { + "step1": { + "description": "\u0E40\u0E23\u0E32\u0E02\u0E2D\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E27\u0E32\u0E07 Coin98 Wallet \u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E2B\u0E25\u0E31\u0E01\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13 \u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E43\u0E2B\u0E49\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E40\u0E23\u0E47\u0E27\u0E02\u0E36\u0E49\u0E19.", + "title": "\u0E40\u0E1B\u0E34\u0E14\u0E41\u0E2D\u0E1E Coin98 Wallet" + }, + "step2": { + "description": "\u0E04\u0E38\u0E13\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E07\u0E48\u0E32\u0E22\u0E46 \u0E14\u0E49\u0E27\u0E22\u0E1F\u0E35\u0E40\u0E08\u0E2D\u0E23\u0E4C\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E1A\u0E19\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13.", + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19" + }, + "step3": { + "description": "\u0E2B\u0E25\u0E31\u0E07\u0E08\u0E32\u0E01\u0E04\u0E38\u0E13\u0E2A\u0E41\u0E01\u0E19 \u0E08\u0E30\u0E21\u0E35\u0E40\u0E15\u0E37\u0E2D\u0E19\u0E01\u0E32\u0E23\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E17\u0E35\u0E48\u0E1B\u0E23\u0E32\u0E01\u0E0F\u0E02\u0E36\u0E49\u0E19\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13.", + "title": "\u0E41\u0E15\u0E30\u0E17\u0E35\u0E48\u0E1B\u0E38\u0E48\u0E21 WalletConnect" + } + }, + "extension": { + "step1": { + "description": "\u0E04\u0E25\u0E34\u0E01\u0E17\u0E35\u0E48\u0E14\u0E49\u0E32\u0E19\u0E1A\u0E19\u0E02\u0E27\u0E32\u0E02\u0E2D\u0E07\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E41\u0E25\u0E30\u0E1B\u0E31\u0E01 Coin98 Wallet \u0E44\u0E27\u0E49\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E43\u0E2B\u0E49\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E44\u0E14\u0E49\u0E07\u0E48\u0E32\u0E22.", + "title": "\u0E15\u0E34\u0E14\u0E15\u0E31\u0E49\u0E07\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22 Coin98 Wallet" + }, + "step2": { + "description": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E43\u0E2B\u0E21\u0E48\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32\u0E17\u0E35\u0E48\u0E21\u0E35\u0E2D\u0E22\u0E39\u0E48\u0E41\u0E25\u0E49\u0E27.", + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19" + }, + "step3": { + "description": "\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E04\u0E38\u0E13\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32 Coin98 Wallet \u0E41\u0E25\u0E49\u0E27 \u0E04\u0E25\u0E34\u0E01\u0E14\u0E49\u0E32\u0E19\u0E25\u0E48\u0E32\u0E07\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E41\u0E25\u0E30\u0E42\u0E2B\u0E25\u0E14\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22\u0E02\u0E36\u0E49\u0E19\u0E21\u0E32.", + "title": "\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13" + } + } + }, + "coinbase": { + "qr_code": { + "step1": { + "description": "\u0E40\u0E23\u0E32\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E27\u0E32\u0E07 Coinbase Wallet \u0E44\u0E27\u0E49\u0E17\u0E35\u0E48\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E2B\u0E25\u0E31\u0E01\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E43\u0E2B\u0E49\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E44\u0E14\u0E49\u0E40\u0E23\u0E47\u0E27\u0E02\u0E36\u0E49\u0E19.", + "title": "\u0E40\u0E1B\u0E34\u0E14\u0E41\u0E2D\u0E1B Coinbase Wallet" + }, + "step2": { + "description": "\u0E04\u0E38\u0E13\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E07\u0E48\u0E32\u0E22\u0E46 \u0E42\u0E14\u0E22\u0E43\u0E0A\u0E49\u0E1F\u0E35\u0E40\u0E08\u0E2D\u0E23\u0E4C\u0E01\u0E32\u0E23\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E14\u0E49\u0E27\u0E22\u0E04\u0E25\u0E32\u0E27\u0E14\u0E4C", + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C" + }, + "step3": { + "description": "\u0E2B\u0E25\u0E31\u0E07\u0E08\u0E32\u0E01\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E2A\u0E41\u0E01\u0E19\u0E41\u0E25\u0E49\u0E27 \u0E08\u0E30\u0E21\u0E35\u0E01\u0E32\u0E23\u0E41\u0E2A\u0E14\u0E07\u0E02\u0E2D\u0E49\u0E21\u0E39\u0E25\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13", + "title": "\u0E41\u0E15\u0E30\u0E17\u0E35\u0E48\u0E1B\u0E38\u0E48\u0E21\u0E2A\u0E41\u0E01\u0E19" + } + }, + "extension": { + "step1": { + "description": "\u0E40\u0E23\u0E32\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E22\u0E31\u0E14 Coinbase Wallet \u0E44\u0E27\u0E49\u0E17\u0E35\u0E48\u0E41\u0E16\u0E1A\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E43\u0E2B\u0E49\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E40\u0E23\u0E47\u0E27\u0E02\u0E36\u0E49\u0E19", + "title": "\u0E15\u0E34\u0E14\u0E15\u0E31\u0E49\u0E07\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22 Coinbase Wallet" + }, + "step2": { + "description": "\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E43\u0E2B\u0E49\u0E41\u0E19\u0E48\u0E43\u0E08\u0E27\u0E48\u0E32\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E42\u0E14\u0E22\u0E43\u0E0A\u0E49\u0E27\u0E34\u0E18\u0E35\u0E17\u0E35\u0E48\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22 \u0E2D\u0E22\u0E48\u0E32\u0E40\u0E1B\u0E34\u0E14\u0E40\u0E1C\u0E22\u0E1B\u0E23\u0E30\u0E42\u0E22\u0E04\u0E25\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E43\u0E2B\u0E49\u0E01\u0E31\u0E1A\u0E43\u0E04\u0E23\u0E40\u0E25\u0E22", + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19" + }, + "step3": { + "description": "\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E41\u0E25\u0E49\u0E27 \u0E04\u0E25\u0E34\u0E01\u0E14\u0E49\u0E32\u0E19\u0E25\u0E48\u0E32\u0E07\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E23\u0E35\u0E22\u0E01\u0E14\u0E39\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E43\u0E2B\u0E21\u0E48\u0E41\u0E25\u0E30\u0E42\u0E2B\u0E25\u0E14\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22", + "title": "\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13" + } + } + }, + "compass": { + "extension": { + "step1": { + "description": "\u0E40\u0E23\u0E32\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E1B\u0E31\u0E01 Compass Wallet \u0E44\u0E27\u0E49\u0E17\u0E35\u0E48\u0E41\u0E16\u0E1A\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E40\u0E23\u0E47\u0E27\u0E02\u0E36\u0E49\u0E19", + "title": "\u0E15\u0E34\u0E14\u0E15\u0E31\u0E49\u0E07\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22 Compass Wallet" + }, + "step2": { + "description": "\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E01\u0E32\u0E23\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E43\u0E2B\u0E49\u0E41\u0E19\u0E48\u0E19\u0E2D\u0E19\u0E42\u0E14\u0E22\u0E43\u0E0A\u0E49\u0E27\u0E34\u0E18\u0E35\u0E17\u0E35\u0E48\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22 \u0E2D\u0E22\u0E48\u0E32\u0E41\u0E0A\u0E23\u0E4C\u0E27\u0E25\u0E35\u0E25\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E01\u0E31\u0E1A\u0E43\u0E04\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2D\u0E31\u0E19\u0E02\u0E32\u0E14.", + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32 Wallet" + }, + "step3": { + "description": "\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E04\u0E38\u0E13\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E41\u0E25\u0E49\u0E27\u0E04\u0E25\u0E34\u0E01\u0E14\u0E49\u0E32\u0E19\u0E25\u0E48\u0E32\u0E07\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E41\u0E25\u0E30\u0E42\u0E2B\u0E25\u0E14\u0E2A\u0E48\u0E27\u0E19\u0E40\u0E2A\u0E23\u0E34\u0E21", + "title": "\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13" + } + } + }, + "core": { + "qr_code": { + "step1": { + "description": "\u0E40\u0E23\u0E32\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E27\u0E32\u0E07 Core \u0E25\u0E07\u0E2A\u0E19\u0E32\u0E21\u0E2B\u0E25\u0E31\u0E01\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E43\u0E2B\u0E49\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E44\u0E14\u0E49\u0E40\u0E23\u0E47\u0E27\u0E02\u0E36\u0E49\u0E19", + "title": "\u0E40\u0E1B\u0E34\u0E14\u0E41\u0E2D\u0E1B\u0E40\u0E04\u0E23\u0E37\u0E48\u0E2D\u0E07\u0E21\u0E37\u0E2D\u0E0A\u0E48\u0E27\u0E22\u0E2D\u0E35\u0E40\u0E01\u0E34\u0E23\u0E4C\u0E19" + }, + "step2": { + "description": "\u0E04\u0E38\u0E13\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E07\u0E48\u0E32\u0E22\u0E46 \u0E42\u0E14\u0E22\u0E43\u0E0A\u0E49\u0E1F\u0E35\u0E40\u0E08\u0E2D\u0E23\u0E4C\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E02\u0E2D\u0E07\u0E40\u0E23\u0E32\u0E1A\u0E19\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13", + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19" + }, + "step3": { + "description": "\u0E2B\u0E25\u0E31\u0E07\u0E08\u0E32\u0E01\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E2A\u0E41\u0E01\u0E19\u0E41\u0E25\u0E49\u0E27 \u0E08\u0E30\u0E21\u0E35\u0E01\u0E32\u0E23\u0E41\u0E08\u0E49\u0E07\u0E40\u0E15\u0E37\u0E2D\u0E19\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E01\u0E31\u0E1A\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13", + "title": "\u0E41\u0E15\u0E30\u0E1B\u0E38\u0E48\u0E21 WalletConnect" + } + }, + "extension": { + "step1": { + "description": "\u0E40\u0E23\u0E32\u0E02\u0E2D\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E1B\u0E31\u0E01 Core \u0E44\u0E27\u0E49\u0E17\u0E35\u0E48\u0E41\u0E16\u0E1A\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E23\u0E27\u0E14\u0E40\u0E23\u0E47\u0E27", + "title": "\u0E15\u0E34\u0E14\u0E15\u0E31\u0E49\u0E07\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22 Core" + }, + "step2": { + "description": "\u0E42\u0E1B\u0E23\u0E14\u0E41\u0E19\u0E48\u0E43\u0E08\u0E27\u0E48\u0E32\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E43\u0E0A\u0E49\u0E27\u0E34\u0E18\u0E35\u0E17\u0E35\u0E48\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22 \u0E2D\u0E22\u0E48\u0E32\u0E41\u0E0A\u0E23\u0E4C\u0E27\u0E25\u0E35\u0E25\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E01\u0E31\u0E1A\u0E43\u0E04\u0E23", + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32 Wallet" + }, + "step3": { + "description": "\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E04\u0E38\u0E13\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E41\u0E25\u0E49\u0E27 \u0E04\u0E25\u0E34\u0E01\u0E14\u0E49\u0E32\u0E19\u0E25\u0E48\u0E32\u0E07\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E41\u0E25\u0E30\u0E42\u0E2B\u0E25\u0E14\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22", + "title": "\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13" + } + } + }, + "fox": { + "qr_code": { + "step1": { + "description": "\u0E40\u0E23\u0E32\u0E02\u0E2D\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E27\u0E32\u0E07 FoxWallet \u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E2B\u0E25\u0E31\u0E01\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E43\u0E2B\u0E49\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E44\u0E14\u0E49\u0E40\u0E23\u0E47\u0E27\u0E02\u0E36\u0E49\u0E19", + "title": "\u0E40\u0E1B\u0E34\u0E14\u0E41\u0E2D\u0E1B FoxWallet" + }, + "step2": { + "description": "\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E17\u0E35\u0E48\u0E08\u0E30\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E42\u0E14\u0E22\u0E43\u0E0A\u0E49\u0E27\u0E34\u0E18\u0E35\u0E17\u0E35\u0E48\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22 \u0E08\u0E07\u0E2D\u0E22\u0E48\u0E32\u0E40\u0E1B\u0E34\u0E14\u0E40\u0E1C\u0E22\u0E1B\u0E23\u0E30\u0E42\u0E22\u0E04\u0E25\u0E31\u0E1A\u0E25\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E43\u0E2B\u0E49\u0E1C\u0E39\u0E49\u0E2D\u0E37\u0E48\u0E19\u0E23\u0E39\u0E49", + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19" + }, + "step3": { + "description": "\u0E2B\u0E25\u0E31\u0E07\u0E08\u0E32\u0E01\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E2A\u0E41\u0E01\u0E19 \u0E08\u0E30\u0E21\u0E35\u0E01\u0E32\u0E23\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E17\u0E35\u0E48\u0E41\u0E2A\u0E14\u0E07\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13", + "title": "\u0E41\u0E15\u0E30\u0E1B\u0E38\u0E48\u0E21\u0E2A\u0E41\u0E01\u0E19" + } + } + }, + "frontier": { + "qr_code": { + "step1": { + "description": "\u0E40\u0E23\u0E32\u0E02\u0E2D\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E27\u0E32\u0E07 Frontier Wallet \u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E2B\u0E25\u0E31\u0E01\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E43\u0E2B\u0E49\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E44\u0E14\u0E49\u0E40\u0E23\u0E47\u0E27\u0E02\u0E36\u0E49\u0E19", + "title": "\u0E40\u0E1B\u0E34\u0E14\u0E41\u0E2D\u0E1B Frontier Wallet" + }, + "step2": { + "description": "\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E43\u0E2B\u0E49\u0E41\u0E19\u0E48\u0E43\u0E08\u0E27\u0E48\u0E32\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E42\u0E14\u0E22\u0E43\u0E0A\u0E49\u0E27\u0E34\u0E18\u0E35\u0E17\u0E35\u0E48\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22 \u0E2D\u0E22\u0E48\u0E32\u0E41\u0E0A\u0E23\u0E4C\u0E27\u0E25\u0E35\u0E25\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E01\u0E31\u0E1A\u0E43\u0E04\u0E23", + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C" + }, + "step3": { + "description": "\u0E2B\u0E25\u0E31\u0E07\u0E08\u0E32\u0E01\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E2A\u0E41\u0E01\u0E19\u0E41\u0E25\u0E49\u0E27 \u0E08\u0E30\u0E21\u0E35\u0E01\u0E32\u0E23\u0E41\u0E2A\u0E14\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E01\u0E31\u0E1A\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13", + "title": "\u0E41\u0E15\u0E30\u0E1B\u0E38\u0E48\u0E21\u0E2A\u0E41\u0E01\u0E19" + } + }, + "extension": { + "step1": { + "description": "\u0E40\u0E23\u0E32\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E1B\u0E31\u0E01\u0E2B\u0E21\u0E38\u0E14 Frontier Wallet \u0E44\u0E27\u0E49\u0E17\u0E35\u0E48\u0E41\u0E16\u0E1A\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E07\u0E48\u0E32\u0E22\u0E02\u0E36\u0E49\u0E19", + "title": "\u0E15\u0E34\u0E14\u0E15\u0E31\u0E49\u0E07\u0E2A\u0E48\u0E27\u0E19\u0E40\u0E2A\u0E23\u0E34\u0E21 Frontier Wallet" + }, + "step2": { + "description": "\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E43\u0E2B\u0E49\u0E41\u0E19\u0E48\u0E43\u0E08\u0E27\u0E48\u0E32\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E42\u0E14\u0E22\u0E43\u0E0A\u0E49\u0E27\u0E34\u0E18\u0E35\u0E17\u0E35\u0E48\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22 \u0E2D\u0E22\u0E48\u0E32\u0E41\u0E0A\u0E23\u0E4C\u0E27\u0E25\u0E35\u0E25\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E01\u0E31\u0E1A\u0E43\u0E04\u0E23", + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C" + }, + "step3": { + "description": "\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E04\u0E38\u0E13\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E41\u0E25\u0E49\u0E27 \u0E04\u0E25\u0E34\u0E01\u0E14\u0E49\u0E32\u0E19\u0E25\u0E48\u0E32\u0E07\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E41\u0E25\u0E30\u0E42\u0E2B\u0E25\u0E14\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22", + "title": "\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13" + } + } + }, + "im_token": { + "qr_code": { + "step1": { + "title": "\u0E40\u0E1B\u0E34\u0E14\u0E41\u0E2D\u0E1E imToken", + "description": "\u0E43\u0E2A\u0E48\u0E41\u0E2D\u0E1E imToken \u0E44\u0E27\u0E49\u0E17\u0E35\u0E48\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E2B\u0E25\u0E31\u0E01\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E40\u0E23\u0E47\u0E27\u0E02\u0E36\u0E49\u0E19." + }, + "step2": { + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19", + "description": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E43\u0E2B\u0E21\u0E48\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E17\u0E35\u0E48\u0E21\u0E35\u0E2D\u0E22\u0E39\u0E48\u0E41\u0E25\u0E49\u0E27" + }, + "step3": { + "title": "\u0E41\u0E15\u0E30\u0E44\u0E2D\u0E04\u0E2D\u0E19\u0E2A\u0E41\u0E01\u0E19\u0E40\u0E19\u0E2D\u0E23\u0E4C\u0E43\u0E19\u0E21\u0E38\u0E21\u0E1A\u0E19\u0E02\u0E27\u0E32", + "description": "\u0E40\u0E25\u0E37\u0E2D\u0E01 New Connection, \u0E41\u0E25\u0E49\u0E27\u0E2A\u0E41\u0E01\u0E19 QR code \u0E41\u0E25\u0E30\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E01\u0E32\u0E23\u0E23\u0E31\u0E1A\u0E23\u0E2D\u0E07\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E01\u0E32\u0E23\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D" + } + } + }, + "kaikas": { + "extension": { + "step1": { + "description": "\u0E40\u0E23\u0E32\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E1B\u0E31\u0E01\u0E2B\u0E21\u0E38\u0E14 Kaikas \u0E44\u0E27\u0E49\u0E17\u0E35\u0E48\u0E41\u0E16\u0E1A\u0E07\u0E32\u0E19\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E01\u0E32\u0E23\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E44\u0E14\u0E49\u0E40\u0E23\u0E47\u0E27\u0E02\u0E36\u0E49\u0E19", + "title": "\u0E15\u0E34\u0E14\u0E15\u0E31\u0E49\u0E07\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22 Kaikas" + }, + "step2": { + "description": "\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E01\u0E32\u0E23\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E43\u0E2B\u0E49\u0E41\u0E19\u0E48\u0E19\u0E2D\u0E19\u0E42\u0E14\u0E22\u0E43\u0E0A\u0E49\u0E27\u0E34\u0E18\u0E35\u0E17\u0E35\u0E48\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22 \u0E2D\u0E22\u0E48\u0E32\u0E41\u0E0A\u0E23\u0E4C\u0E27\u0E25\u0E35\u0E25\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E01\u0E31\u0E1A\u0E43\u0E04\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2D\u0E31\u0E19\u0E02\u0E32\u0E14.", + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32 Wallet" + }, + "step3": { + "description": "\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E04\u0E38\u0E13\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E41\u0E25\u0E49\u0E27\u0E04\u0E25\u0E34\u0E01\u0E14\u0E49\u0E32\u0E19\u0E25\u0E48\u0E32\u0E07\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E41\u0E25\u0E30\u0E42\u0E2B\u0E25\u0E14\u0E2A\u0E48\u0E27\u0E19\u0E40\u0E2A\u0E23\u0E34\u0E21", + "title": "\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13" + } + }, + "qr_code": { + "step1": { + "title": "\u0E40\u0E1B\u0E34\u0E14\u0E41\u0E2D\u0E1E\u0E2F Kaikas", + "description": "\u0E27\u0E32\u0E07\u0E41\u0E2D\u0E1E\u0E2F Kaikas \u0E44\u0E27\u0E49\u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E2B\u0E25\u0E31\u0E01\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E01\u0E32\u0E23\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E40\u0E23\u0E47\u0E27\u0E02\u0E36\u0E49\u0E19" + }, + "step2": { + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32 Wallet", + "description": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E43\u0E2B\u0E21\u0E48\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32\u0E17\u0E35\u0E48\u0E21\u0E35\u0E2D\u0E22\u0E39\u0E48\u0E41\u0E25\u0E49\u0E27." + }, + "step3": { + "title": "\u0E41\u0E15\u0E30\u0E44\u0E2D\u0E04\u0E2D\u0E19\u0E2A\u0E41\u0E01\u0E19\u0E40\u0E19\u0E2D\u0E23\u0E4C\u0E43\u0E19\u0E21\u0E38\u0E21\u0E1A\u0E19\u0E02\u0E27\u0E32", + "description": "\u0E40\u0E25\u0E37\u0E2D\u0E01 New Connection, \u0E41\u0E25\u0E49\u0E27\u0E2A\u0E41\u0E01\u0E19 QR code \u0E41\u0E25\u0E30\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E01\u0E32\u0E23\u0E23\u0E31\u0E1A\u0E23\u0E2D\u0E07\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E01\u0E32\u0E23\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D" + } + } + }, + "kraken": { + "qr_code": { + "step1": { + "title": "\u0E40\u0E1B\u0E34\u0E14\u0E41\u0E2D\u0E1E Kraken Wallet", + "description": "\u0E40\u0E1E\u0E34\u0E48\u0E21 Kraken Wallet \u0E44\u0E1B\u0E22\u0E31\u0E07\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E2B\u0E25\u0E31\u0E01\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E40\u0E23\u0E47\u0E27\u0E02\u0E36\u0E49\u0E19" + }, + "step2": { + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32 Wallet", + "description": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E43\u0E2B\u0E21\u0E48\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32\u0E17\u0E35\u0E48\u0E21\u0E35\u0E2D\u0E22\u0E39\u0E48\u0E41\u0E25\u0E49\u0E27." + }, + "step3": { + "title": "\u0E41\u0E15\u0E30\u0E17\u0E35\u0E48\u0E44\u0E2D\u0E04\u0E2D\u0E19 QR \u0E41\u0E25\u0E49\u0E27\u0E2A\u0E41\u0E01\u0E19", + "description": "\u0E41\u0E15\u0E30\u0E17\u0E35\u0E48\u0E44\u0E2D\u0E04\u0E2D\u0E19 QR \u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E2B\u0E25\u0E31\u0E01\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13 \u0E2A\u0E41\u0E01\u0E19\u0E23\u0E2B\u0E31\u0E2A\u0E41\u0E25\u0E30\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E01\u0E32\u0E23\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D" + } + } + }, + "kresus": { + "qr_code": { + "step1": { + "title": "\u0E40\u0E1B\u0E34\u0E14\u0E41\u0E2D\u0E1E Kresus Wallet", + "description": "\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19 Kresus \u0E25\u0E07\u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E2B\u0E25\u0E31\u0E01\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E01\u0E32\u0E23\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E40\u0E23\u0E47\u0E27\u0E22\u0E34\u0E48\u0E07\u0E02\u0E36\u0E49\u0E19" + }, + "step2": { + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32 Wallet", + "description": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E43\u0E2B\u0E21\u0E48\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32\u0E17\u0E35\u0E48\u0E21\u0E35\u0E2D\u0E22\u0E39\u0E48\u0E41\u0E25\u0E49\u0E27." + }, + "step3": { + "title": "\u0E41\u0E15\u0E30\u0E17\u0E35\u0E48\u0E44\u0E2D\u0E04\u0E2D\u0E19 QR \u0E41\u0E25\u0E49\u0E27\u0E2A\u0E41\u0E01\u0E19", + "description": "\u0E41\u0E15\u0E30\u0E17\u0E35\u0E48\u0E44\u0E2D\u0E04\u0E2D\u0E19 QR \u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E2B\u0E25\u0E31\u0E01\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13 \u0E2A\u0E41\u0E01\u0E19\u0E23\u0E2B\u0E31\u0E2A\u0E41\u0E25\u0E30\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E01\u0E32\u0E23\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D" + } + } + }, + "magicEden": { + "extension": { + "step1": { + "title": "\u0E15\u0E34\u0E14\u0E15\u0E31\u0E49\u0E07\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22 Magic Eden", + "description": "\u0E40\u0E23\u0E32\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E1B\u0E31\u0E01 Magic Eden \u0E44\u0E27\u0E49\u0E17\u0E35\u0E48\u0E41\u0E16\u0E1A\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E07\u0E48\u0E32\u0E22\u0E02\u0E36\u0E49\u0E19" + }, + "step2": { + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32 Wallet", + "description": "\u0E41\u0E19\u0E48\u0E43\u0E08\u0E27\u0E48\u0E32\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E42\u0E14\u0E22\u0E43\u0E0A\u0E49\u0E27\u0E34\u0E18\u0E35\u0E17\u0E35\u0E48\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22 \u0E2D\u0E22\u0E48\u0E32\u0E40\u0E1B\u0E34\u0E14\u0E40\u0E1C\u0E22\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E25\u0E31\u0E1A\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E01\u0E32\u0E23\u0E01\u0E39\u0E49\u0E04\u0E37\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E01\u0E31\u0E1A\u0E1A\u0E38\u0E04\u0E04\u0E25\u0E43\u0E14 \u0E46" + }, + "step3": { + "title": "\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13", + "description": "\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E04\u0E38\u0E13\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E41\u0E25\u0E49\u0E27\u0E04\u0E25\u0E34\u0E01\u0E14\u0E49\u0E32\u0E19\u0E25\u0E48\u0E32\u0E07\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E41\u0E25\u0E30\u0E42\u0E2B\u0E25\u0E14\u0E2A\u0E48\u0E27\u0E19\u0E40\u0E2A\u0E23\u0E34\u0E21" + } + } + }, + "metamask": { + "qr_code": { + "step1": { + "title": "\u0E40\u0E1B\u0E34\u0E14\u0E41\u0E2D\u0E1B MetaMask", + "description": "\u0E40\u0E23\u0E32\u0E02\u0E2D\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E27\u0E32\u0E07 MetaMask \u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E2B\u0E25\u0E31\u0E01\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E44\u0E14\u0E49\u0E40\u0E23\u0E47\u0E27\u0E02\u0E36\u0E49\u0E19" + }, + "step2": { + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32 Wallet", + "description": "\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E27\u0E48\u0E32\u0E44\u0E14\u0E49\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E42\u0E14\u0E22\u0E43\u0E0A\u0E49\u0E27\u0E34\u0E18\u0E35\u0E17\u0E35\u0E48\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22 \u0E2D\u0E22\u0E48\u0E32\u0E40\u0E1B\u0E34\u0E14\u0E40\u0E1C\u0E22\u0E27\u0E25\u0E35\u0E25\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E43\u0E2B\u0E49\u0E01\u0E31\u0E1A\u0E43\u0E04\u0E23" + }, + "step3": { + "title": "\u0E41\u0E15\u0E30\u0E17\u0E35\u0E48\u0E1B\u0E38\u0E48\u0E21\u0E2A\u0E41\u0E01\u0E19", + "description": "\u0E2B\u0E25\u0E31\u0E07\u0E08\u0E32\u0E01\u0E01\u0E32\u0E23\u0E2A\u0E41\u0E01\u0E19, \u0E08\u0E30\u0E1B\u0E23\u0E32\u0E01\u0E0F\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E01\u0E31\u0E1A\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13" + } + }, + "extension": { + "step1": { + "title": "\u0E15\u0E34\u0E14\u0E15\u0E31\u0E49\u0E07\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22 MetaMask", + "description": "\u0E40\u0E23\u0E32\u0E02\u0E2D\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E1B\u0E31\u0E01 MetaMask \u0E44\u0E27\u0E49\u0E17\u0E35\u0E48\u0E41\u0E16\u0E1A\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E23\u0E27\u0E14\u0E40\u0E23\u0E47\u0E27" + }, + "step2": { + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19", + "description": "\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E41\u0E19\u0E48\u0E19\u0E2D\u0E19\u0E43\u0E2B\u0E49\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E42\u0E14\u0E22\u0E43\u0E0A\u0E49\u0E27\u0E34\u0E18\u0E35\u0E17\u0E35\u0E48\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22 \u0E2D\u0E22\u0E48\u0E32\u0E41\u0E0A\u0E23\u0E4C\u0E1B\u0E23\u0E30\u0E42\u0E22\u0E04\u0E25\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E01\u0E31\u0E1A\u0E43\u0E04\u0E23\u0E40\u0E25\u0E22" + }, + "step3": { + "title": "\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13", + "description": "\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E04\u0E38\u0E13\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E41\u0E25\u0E49\u0E27 \u0E04\u0E25\u0E34\u0E01\u0E14\u0E49\u0E32\u0E19\u0E25\u0E48\u0E32\u0E07\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E41\u0E25\u0E30\u0E42\u0E2B\u0E25\u0E14\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22" + } + } + }, + "okx": { + "qr_code": { + "step1": { + "title": "\u0E40\u0E1B\u0E34\u0E14\u0E41\u0E2D\u0E1E OKX Wallet", + "description": "\u0E40\u0E23\u0E32\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E27\u0E32\u0E07 OKX Wallet \u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E2B\u0E25\u0E31\u0E01\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E43\u0E2B\u0E49\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E44\u0E14\u0E49\u0E40\u0E23\u0E47\u0E27\u0E02\u0E36\u0E49\u0E19" + }, + "step2": { + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32 Wallet", + "description": "\u0E08\u0E07\u0E41\u0E19\u0E48\u0E43\u0E08\u0E27\u0E48\u0E32\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25 wallet \u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E14\u0E49\u0E27\u0E22\u0E27\u0E34\u0E18\u0E35\u0E17\u0E35\u0E48\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22 \u0E2D\u0E22\u0E48\u0E32\u0E41\u0E0A\u0E23\u0E4C\u0E27\u0E25\u0E35\u0E25\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E43\u0E2B\u0E49\u0E04\u0E19\u0E2D\u0E37\u0E48\u0E19" + }, + "step3": { + "title": "\u0E41\u0E15\u0E30\u0E1B\u0E38\u0E48\u0E21\u0E2A\u0E41\u0E01\u0E19", + "description": "\u0E2B\u0E25\u0E31\u0E07\u0E08\u0E32\u0E01\u0E04\u0E38\u0E13\u0E2A\u0E41\u0E01\u0E19 \u0E08\u0E30\u0E21\u0E35\u0E01\u0E32\u0E23\u0E41\u0E2A\u0E14\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D wallet \u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13" + } + }, + "extension": { + "step1": { + "title": "\u0E15\u0E34\u0E14\u0E15\u0E31\u0E49\u0E07\u0E2A\u0E48\u0E27\u0E19\u0E40\u0E2A\u0E23\u0E34\u0E21 OKX Wallet", + "description": "\u0E40\u0E23\u0E32\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E22\u0E36\u0E14 OKX Wallet \u0E44\u0E27\u0E49\u0E17\u0E35\u0E48\u0E41\u0E16\u0E1A\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E43\u0E2B\u0E49\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07 wallet \u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E40\u0E23\u0E47\u0E27\u0E02\u0E36\u0E49\u0E19" + }, + "step2": { + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32 Wallet", + "description": "\u0E42\u0E1B\u0E23\u0E14\u0E41\u0E19\u0E48\u0E43\u0E08\u0E27\u0E48\u0E32\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E14\u0E49\u0E27\u0E22\u0E27\u0E34\u0E18\u0E35\u0E17\u0E35\u0E48\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22 \u0E2D\u0E22\u0E48\u0E32\u0E40\u0E1B\u0E34\u0E14\u0E40\u0E1C\u0E22\u0E1B\u0E23\u0E30\u0E42\u0E22\u0E04\u0E25\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E43\u0E2B\u0E49\u0E43\u0E04\u0E23\u0E17\u0E23\u0E32\u0E1A" + }, + "step3": { + "title": "\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13", + "description": "\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E04\u0E38\u0E13\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E41\u0E25\u0E49\u0E27 \u0E04\u0E25\u0E34\u0E01\u0E14\u0E49\u0E32\u0E19\u0E25\u0E48\u0E32\u0E07\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E41\u0E25\u0E30\u0E42\u0E2B\u0E25\u0E14\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22" + } + } + }, + "omni": { + "qr_code": { + "step1": { + "title": "\u0E40\u0E1B\u0E34\u0E14\u0E41\u0E2D\u0E1B Omni", + "description": "\u0E40\u0E1E\u0E34\u0E48\u0E21 Omni \u0E44\u0E1B\u0E22\u0E31\u0E07\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E41\u0E23\u0E01\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E23\u0E27\u0E14\u0E40\u0E23\u0E47\u0E27\u0E02\u0E36\u0E49\u0E19" + }, + "step2": { + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C", + "description": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C\u0E43\u0E2B\u0E21\u0E48\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C\u0E17\u0E35\u0E48\u0E21\u0E35\u0E2D\u0E22\u0E39\u0E48" + }, + "step3": { + "title": "\u0E41\u0E15\u0E30\u0E17\u0E35\u0E48\u0E44\u0E2D\u0E04\u0E2D\u0E19 QR \u0E41\u0E25\u0E49\u0E27\u0E2A\u0E41\u0E01\u0E19", + "description": "\u0E41\u0E15\u0E30\u0E17\u0E35\u0E48\u0E44\u0E2D\u0E04\u0E2D\u0E19 QR \u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E2B\u0E19\u0E49\u0E32\u0E41\u0E23\u0E01\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13, \u0E2A\u0E41\u0E01\u0E19\u0E23\u0E2B\u0E31\u0E2A\u0E41\u0E25\u0E30\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E01\u0E32\u0E23\u0E40\u0E15\u0E37\u0E2D\u0E19\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D." + } + } + }, + "1inch": { + "qr_code": { + "step1": { + "description": "\u0E27\u0E32\u0E07 1inch Wallet \u0E44\u0E27\u0E49\u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E2B\u0E25\u0E31\u0E01\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E01\u0E32\u0E23\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E40\u0E23\u0E47\u0E27\u0E02\u0E36\u0E49\u0E19", + "title": "\u0E40\u0E1B\u0E34\u0E14\u0E41\u0E2D\u0E1E\u0E2F 1inch Wallet" + }, + "step2": { + "description": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E41\u0E25\u0E30\u0E0A\u0E37\u0E48\u0E2D\u0E1C\u0E39\u0E49\u0E43\u0E0A\u0E49\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E17\u0E35\u0E48\u0E21\u0E35\u0E2D\u0E22\u0E39\u0E48\u0E41\u0E25\u0E49\u0E27", + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32 Wallet" + }, + "step3": { + "description": "\u0E2B\u0E25\u0E31\u0E07\u0E08\u0E32\u0E01\u0E04\u0E38\u0E13\u0E2A\u0E41\u0E01\u0E19 \u0E08\u0E30\u0E1B\u0E23\u0E32\u0E01\u0E0F\u0E2B\u0E19\u0E49\u0E32\u0E15\u0E48\u0E32\u0E07\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13", + "title": "\u0E41\u0E15\u0E30\u0E17\u0E35\u0E48\u0E04\u0E38\u0E48\u0E21\u0E38\u0E48\u0E07\u0E2A\u0E41\u0E01\u0E19 QR" + } + } + }, + "token_pocket": { + "qr_code": { + "step1": { + "title": "\u0E40\u0E1B\u0E34\u0E14\u0E41\u0E2D\u0E1B TokenPocket", + "description": "\u0E40\u0E23\u0E32\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E27\u0E32\u0E07 TokenPocket \u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E2B\u0E19\u0E49\u0E32\u0E41\u0E23\u0E01\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E44\u0E14\u0E49\u0E40\u0E23\u0E47\u0E27\u0E02\u0E36\u0E49\u0E19." + }, + "step2": { + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19", + "description": "\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E27\u0E48\u0E32\u0E44\u0E14\u0E49\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E42\u0E14\u0E22\u0E43\u0E0A\u0E49\u0E27\u0E34\u0E18\u0E35\u0E17\u0E35\u0E48\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22 \u0E2D\u0E22\u0E48\u0E32\u0E40\u0E1B\u0E34\u0E14\u0E40\u0E1C\u0E22\u0E27\u0E25\u0E35\u0E25\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E43\u0E2B\u0E49\u0E1C\u0E39\u0E49\u0E2D\u0E37\u0E48\u0E19\u0E17\u0E23\u0E32\u0E1A\u0E43\u0E19\u0E17\u0E32\u0E07\u0E43\u0E14\u0E17\u0E32\u0E07\u0E2B\u0E19\u0E36\u0E48\u0E07." + }, + "step3": { + "title": "\u0E41\u0E15\u0E30\u0E1B\u0E38\u0E48\u0E21\u0E2A\u0E41\u0E01\u0E19", + "description": "\u0E2B\u0E25\u0E31\u0E07\u0E08\u0E32\u0E01\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E2A\u0E41\u0E01\u0E19\u0E41\u0E25\u0E49\u0E27 \u0E08\u0E30\u0E21\u0E35\u0E01\u0E32\u0E23\u0E40\u0E23\u0E35\u0E22\u0E01\u0E43\u0E2B\u0E49\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E01\u0E31\u0E1A\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13" + } + }, + "extension": { + "step1": { + "title": "\u0E15\u0E34\u0E14\u0E15\u0E31\u0E49\u0E07\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22 TokenPocket", + "description": "\u0E40\u0E23\u0E32\u0E02\u0E2D\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E1B\u0E31\u0E01 TokenPocket \u0E44\u0E27\u0E49\u0E17\u0E35\u0E48\u0E41\u0E16\u0E1A\u0E07\u0E32\u0E19\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E17\u0E33\u0E43\u0E2B\u0E49\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E07\u0E48\u0E32\u0E22\u0E02\u0E36\u0E49\u0E19" + }, + "step2": { + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19", + "description": "\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E43\u0E2B\u0E49\u0E41\u0E19\u0E48\u0E43\u0E08\u0E27\u0E48\u0E32\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E14\u0E49\u0E27\u0E22\u0E27\u0E34\u0E18\u0E35\u0E17\u0E35\u0E48\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22 \u0E2D\u0E22\u0E48\u0E32\u0E17\u0E33\u0E01\u0E32\u0E23\u0E41\u0E0A\u0E23\u0E4C\u0E1B\u0E23\u0E30\u0E42\u0E22\u0E04\u0E25\u0E31\u0E1A\u0E14\u0E49\u0E27\u0E22\u0E04\u0E27\u0E32\u0E21\u0E25\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E01\u0E31\u0E1A\u0E43\u0E04\u0E23" + }, + "step3": { + "title": "\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E1A\u0E23\u0E32\u0E27\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13", + "description": "\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E04\u0E38\u0E13\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E41\u0E25\u0E49\u0E27 \u0E04\u0E25\u0E34\u0E01\u0E14\u0E49\u0E32\u0E19\u0E25\u0E48\u0E32\u0E07\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E1A\u0E23\u0E32\u0E27\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E41\u0E25\u0E30\u0E42\u0E2B\u0E25\u0E14\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22" + } + } + }, + "trust": { + "qr_code": { + "step1": { + "title": "\u0E40\u0E1B\u0E34\u0E14\u0E41\u0E2D\u0E1E Trust Wallet", + "description": "\u0E27\u0E32\u0E07 Trust Wallet \u0E17\u0E35\u0E48\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E2B\u0E25\u0E31\u0E01\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E23\u0E27\u0E14\u0E40\u0E23\u0E47\u0E27\u0E02\u0E36\u0E49\u0E19" + }, + "step2": { + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32 Wallet", + "description": "\u0E2A\u0E23\u0E49\u0E32\u0E07 wallet \u0E43\u0E2B\u0E21\u0E48\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32 wallet \u0E17\u0E35\u0E48\u0E21\u0E35\u0E2D\u0E22\u0E39\u0E48\u0E41\u0E25\u0E49\u0E27" + }, + "step3": { + "title": "\u0E41\u0E15\u0E30 WalletConnect \u0E43\u0E19\u0E01\u0E32\u0E23\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32", + "description": "\u0E40\u0E25\u0E37\u0E2D\u0E01 New Connection \u0E08\u0E32\u0E01\u0E19\u0E31\u0E49\u0E19\u0E2A\u0E41\u0E01\u0E19 QR code \u0E41\u0E25\u0E30\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E01\u0E32\u0E23\u0E41\u0E08\u0E49\u0E07\u0E40\u0E15\u0E37\u0E2D\u0E19\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D" + } + }, + "extension": { + "step1": { + "title": "\u0E15\u0E34\u0E14\u0E15\u0E31\u0E49\u0E07\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22 Trust Wallet", + "description": "\u0E04\u0E25\u0E34\u0E01\u0E17\u0E35\u0E48\u0E21\u0E38\u0E21\u0E1A\u0E19\u0E02\u0E27\u0E32\u0E02\u0E2D\u0E07\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E41\u0E25\u0E30\u0E1B\u0E31\u0E01 Trust Wallet \u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E44\u0E14\u0E49\u0E07\u0E48\u0E32\u0E22" + }, + "step2": { + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32 wallet", + "description": "\u0E2A\u0E23\u0E49\u0E32\u0E07 wallet \u0E43\u0E2B\u0E21\u0E48\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32 wallet \u0E17\u0E35\u0E48\u0E21\u0E35\u0E2D\u0E22\u0E39\u0E48\u0E41\u0E25\u0E49\u0E27" + }, + "step3": { + "title": "\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13", + "description": "\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E04\u0E38\u0E13\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32 Trust Wallet \u0E41\u0E25\u0E49\u0E27 \u0E04\u0E25\u0E34\u0E01\u0E14\u0E49\u0E32\u0E19\u0E25\u0E48\u0E32\u0E07\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E41\u0E25\u0E30\u0E42\u0E2B\u0E25\u0E14\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22\u0E02\u0E36\u0E49\u0E19\u0E21\u0E32" + } + } + }, + "uniswap": { + "qr_code": { + "step1": { + "title": "\u0E40\u0E1B\u0E34\u0E14\u0E41\u0E2D\u0E1B Uniswap", + "description": "\u0E40\u0E1E\u0E34\u0E48\u0E21 Uniswap Wallet \u0E44\u0E1B\u0E22\u0E31\u0E07\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E2B\u0E25\u0E31\u0E01\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E40\u0E23\u0E47\u0E27\u0E02\u0E36\u0E49\u0E19" + }, + "step2": { + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32 Wallet", + "description": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E43\u0E2B\u0E21\u0E48\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E17\u0E35\u0E48\u0E21\u0E35\u0E2D\u0E22\u0E39\u0E48\u0E41\u0E25\u0E49\u0E27" + }, + "step3": { + "title": "\u0E41\u0E15\u0E30\u0E17\u0E35\u0E48\u0E44\u0E2D\u0E04\u0E2D\u0E19 QR \u0E41\u0E25\u0E30\u0E2A\u0E41\u0E01\u0E19", + "description": "\u0E41\u0E15\u0E30\u0E17\u0E35\u0E48\u0E44\u0E2D\u0E04\u0E2D\u0E19 QR \u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E2B\u0E25\u0E31\u0E01\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13 \u0E2A\u0E41\u0E01\u0E19\u0E23\u0E2B\u0E31\u0E2A\u0E41\u0E25\u0E30\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E01\u0E32\u0E23\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D" + } + } + }, + "zerion": { + "qr_code": { + "step1": { + "title": "\u0E40\u0E1B\u0E34\u0E14\u0E41\u0E2D\u0E1B Zerion", + "description": "\u0E40\u0E23\u0E32\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E27\u0E32\u0E07 Zerion \u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E2B\u0E25\u0E31\u0E01\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E44\u0E14\u0E49\u0E40\u0E23\u0E47\u0E27\u0E02\u0E36\u0E49\u0E19" + }, + "step2": { + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32 Wallet", + "description": "\u0E25\u0E2D\u0E07\u0E17\u0E33\u0E2A\u0E33\u0E40\u0E19\u0E32\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25 wallet \u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E27\u0E49\u0E43\u0E19\u0E0A\u0E48\u0E2D\u0E07\u0E17\u0E32\u0E07\u0E17\u0E35\u0E48\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22 \u0E2D\u0E22\u0E48\u0E32\u0E40\u0E1B\u0E34\u0E14\u0E40\u0E1C\u0E22\u0E27\u0E25\u0E35\u0E25\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E43\u0E2B\u0E49\u0E01\u0E31\u0E1A\u0E1C\u0E39\u0E49\u0E2D\u0E37\u0E48\u0E19" + }, + "step3": { + "title": "\u0E41\u0E15\u0E30\u0E17\u0E35\u0E48\u0E1B\u0E38\u0E48\u0E21\u0E2A\u0E41\u0E01\u0E19", + "description": "\u0E2B\u0E25\u0E31\u0E07\u0E08\u0E32\u0E01\u0E2A\u0E41\u0E01\u0E19 \u0E08\u0E30\u0E21\u0E35\u0E2B\u0E19\u0E49\u0E32\u0E15\u0E48\u0E32\u0E07\u0E41\u0E2A\u0E14\u0E07\u0E04\u0E33\u0E2A\u0E31\u0E48\u0E07\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D wallet \u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13" + } + }, + "extension": { + "step1": { + "title": "\u0E15\u0E34\u0E14\u0E15\u0E31\u0E49\u0E07\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22 Zerion", + "description": "\u0E40\u0E23\u0E32\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E15\u0E34\u0E14 Zerion \u0E1A\u0E19\u0E41\u0E16\u0E1A\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07 wallet \u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E40\u0E23\u0E47\u0E27\u0E02\u0E36\u0E49\u0E19" + }, + "step2": { + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19", + "description": "\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E43\u0E2B\u0E49\u0E41\u0E19\u0E48\u0E43\u0E08\u0E27\u0E48\u0E32\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E42\u0E14\u0E22\u0E27\u0E34\u0E18\u0E35\u0E17\u0E35\u0E48\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22 \u0E2D\u0E22\u0E48\u0E32\u0E40\u0E1B\u0E34\u0E14\u0E40\u0E1C\u0E22\u0E1B\u0E23\u0E30\u0E42\u0E22\u0E04\u0E25\u0E31\u0E1A\u0E25\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E43\u0E2B\u0E49\u0E43\u0E04\u0E23\u0E17\u0E23\u0E32\u0E1A\u0E04\u0E23\u0E31\u0E1A" + }, + "step3": { + "title": "\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13", + "description": "\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E04\u0E38\u0E13\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E41\u0E25\u0E49\u0E27 \u0E04\u0E25\u0E34\u0E01\u0E14\u0E49\u0E32\u0E19\u0E25\u0E48\u0E32\u0E07\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E41\u0E25\u0E30\u0E42\u0E2B\u0E25\u0E14\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22" + } + } + }, + "rainbow": { + "qr_code": { + "step1": { + "title": "\u0E40\u0E1B\u0E34\u0E14\u0E41\u0E2D\u0E1B Rainbow", + "description": "\u0E40\u0E23\u0E32\u0E02\u0E2D\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E27\u0E32\u0E07 Rainbow \u0E2D\u0E22\u0E39\u0E48\u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E2B\u0E25\u0E31\u0E01\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E23\u0E31\u0E1A\u0E1C\u0E34\u0E14\u0E0A\u0E2D\u0E1A\u0E08\u0E32\u0E01\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E23\u0E27\u0E14\u0E40\u0E23\u0E47\u0E27" + }, + "step2": { + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C", + "description": "\u0E04\u0E38\u0E13\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E07\u0E48\u0E32\u0E22\u0E46 \u0E14\u0E49\u0E27\u0E22\u0E1F\u0E35\u0E40\u0E08\u0E2D\u0E23\u0E4C\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E1A\u0E19\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13" + }, + "step3": { + "title": "\u0E41\u0E15\u0E30\u0E1B\u0E38\u0E48\u0E21\u0E2A\u0E41\u0E01\u0E19", + "description": "\u0E2B\u0E25\u0E31\u0E07\u0E08\u0E32\u0E01\u0E2A\u0E41\u0E01\u0E19\u0E41\u0E25\u0E49\u0E27 \u0E08\u0E30\u0E41\u0E2A\u0E14\u0E07\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E02\u0E2D\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13" + } + } + }, + "enkrypt": { + "extension": { + "step1": { + "description": "\u0E40\u0E23\u0E32\u0E02\u0E2D\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E1B\u0E31\u0E01 Enkrypt Wallet \u0E44\u0E27\u0E49\u0E17\u0E35\u0E48\u0E41\u0E17\u0E1A\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E43\u0E2B\u0E49\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E40\u0E23\u0E47\u0E27\u0E02\u0E36\u0E49\u0E19", + "title": "\u0E15\u0E34\u0E14\u0E15\u0E31\u0E49\u0E07\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22 Enkrypt Wallet" + }, + "step2": { + "description": "\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E43\u0E2B\u0E49\u0E41\u0E19\u0E48\u0E43\u0E08\u0E27\u0E48\u0E32\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E42\u0E14\u0E22\u0E43\u0E0A\u0E49\u0E27\u0E34\u0E18\u0E35\u0E17\u0E35\u0E48\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22 \u0E2B\u0E49\u0E32\u0E21\u0E41\u0E0A\u0E23\u0E4C\u0E27\u0E25\u0E35\u0E25\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E43\u0E2B\u0E49\u0E01\u0E31\u0E1A\u0E43\u0E04\u0E23", + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32 Wallet" + }, + "step3": { + "description": "\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E04\u0E38\u0E13\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32 wallet \u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E41\u0E25\u0E49\u0E27 \u0E04\u0E25\u0E34\u0E01\u0E14\u0E49\u0E32\u0E19\u0E25\u0E48\u0E32\u0E07\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A browser \u0E41\u0E25\u0E30\u0E42\u0E2B\u0E25\u0E14\u0E02\u0E36\u0E49\u0E19 extension", + "title": "\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A browser \u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13" + } + } + }, + "frame": { + "extension": { + "step1": { + "description": "\u0E40\u0E23\u0E32\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E2B\u0E21\u0E38\u0E19 Frame \u0E44\u0E27\u0E49\u0E1A\u0E19 taskbar \u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E43\u0E2B\u0E49\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07 wallet \u0E44\u0E14\u0E49\u0E40\u0E23\u0E47\u0E27\u0E02\u0E36\u0E49\u0E19", + "title": "\u0E15\u0E34\u0E14\u0E15\u0E31\u0E49\u0E07 Frame \u0E41\u0E25\u0E30 extension \u0E17\u0E35\u0E48\u0E40\u0E1B\u0E47\u0E19\u0E04\u0E39\u0E48" + }, + "step2": { + "description": "\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E27\u0E48\u0E32\u0E44\u0E14\u0E49\u0E2A\u0E33\u0E23\u0E2D\u0E07 wallet \u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E42\u0E14\u0E22\u0E43\u0E0A\u0E49\u0E27\u0E34\u0E18\u0E35\u0E01\u0E32\u0E23\u0E17\u0E35\u0E48\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22 \u0E2D\u0E22\u0E48\u0E32\u0E40\u0E1B\u0E34\u0E14\u0E40\u0E1C\u0E22\u0E27\u0E25\u0E35\u0E25\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E43\u0E2B\u0E49\u0E01\u0E31\u0E1A\u0E43\u0E04\u0E23", + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32 Wallet" + }, + "step3": { + "description": "\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E04\u0E38\u0E13\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32 wallet \u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E41\u0E25\u0E49\u0E27 \u0E04\u0E25\u0E34\u0E01\u0E14\u0E49\u0E32\u0E19\u0E25\u0E48\u0E32\u0E07\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A browser \u0E41\u0E25\u0E30\u0E42\u0E2B\u0E25\u0E14\u0E02\u0E36\u0E49\u0E19 extension", + "title": "\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A browser \u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13" + } + } + }, + "one_key": { + "extension": { + "step1": { + "title": "\u0E15\u0E34\u0E14\u0E15\u0E31\u0E49\u0E07\u0E2A\u0E48\u0E27\u0E19\u0E40\u0E2A\u0E23\u0E34\u0E21 OneKey Wallet", + "description": "\u0E40\u0E23\u0E32\u0E41\u0E19\u0E30\u0E19\u0E33\u0E01\u0E32\u0E23\u0E1B\u0E31\u0E01 OneKey Wallet \u0E44\u0E27\u0E49\u0E1A\u0E19\u0E41\u0E17\u0E1A\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E44\u0E14\u0E49\u0E07\u0E48\u0E32\u0E22\u0E02\u0E36\u0E49\u0E19" + }, + "step2": { + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19", + "description": "\u0E2D\u0E22\u0E48\u0E32\u0E25\u0E37\u0E21\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E14\u0E49\u0E27\u0E22\u0E27\u0E34\u0E18\u0E35\u0E17\u0E35\u0E48\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22 \u0E2D\u0E22\u0E48\u0E32\u0E41\u0E0A\u0E23\u0E4C\u0E27\u0E25\u0E35\u0E25\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E01\u0E31\u0E1A\u0E43\u0E04\u0E23" + }, + "step3": { + "title": "\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13", + "description": "\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E04\u0E38\u0E13\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E41\u0E25\u0E49\u0E27 \u0E04\u0E25\u0E34\u0E01\u0E14\u0E49\u0E32\u0E19\u0E25\u0E48\u0E32\u0E07\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E41\u0E25\u0E30\u0E42\u0E2B\u0E25\u0E14\u0E2A\u0E48\u0E27\u0E19\u0E40\u0E2A\u0E23\u0E34\u0E21" + } + } + }, + "phantom": { + "extension": { + "step1": { + "title": "\u0E15\u0E34\u0E14\u0E15\u0E31\u0E49\u0E07\u0E2A\u0E48\u0E27\u0E19\u0E40\u0E2A\u0E23\u0E34\u0E21 Phantom", + "description": "\u0E40\u0E23\u0E32\u0E41\u0E19\u0E30\u0E19\u0E33\u0E01\u0E32\u0E23\u0E1B\u0E31\u0E01 Phantom \u0E44\u0E27\u0E49\u0E1A\u0E19\u0E41\u0E17\u0E1A\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E44\u0E14\u0E49\u0E07\u0E48\u0E32\u0E22\u0E02\u0E36\u0E49\u0E19" + }, + "step2": { + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19", + "description": "\u0E41\u0E19\u0E48\u0E43\u0E08\u0E27\u0E48\u0E32\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E42\u0E14\u0E22\u0E43\u0E0A\u0E49\u0E27\u0E34\u0E18\u0E35\u0E17\u0E35\u0E48\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22 \u0E2D\u0E22\u0E48\u0E32\u0E40\u0E1B\u0E34\u0E14\u0E40\u0E1C\u0E22\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E25\u0E31\u0E1A\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E01\u0E32\u0E23\u0E01\u0E39\u0E49\u0E04\u0E37\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E01\u0E31\u0E1A\u0E1A\u0E38\u0E04\u0E04\u0E25\u0E43\u0E14 \u0E46" + }, + "step3": { + "title": "\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13", + "description": "\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E04\u0E38\u0E13\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E40\u0E23\u0E35\u0E22\u0E1A\u0E23\u0E49\u0E2D\u0E22\u0E41\u0E25\u0E49\u0E27, \u0E04\u0E25\u0E34\u0E01\u0E14\u0E49\u0E32\u0E19\u0E25\u0E48\u0E32\u0E07\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E41\u0E25\u0E30\u0E42\u0E2B\u0E25\u0E14\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22" + } + } + }, + "rabby": { + "extension": { + "step1": { + "title": "\u0E15\u0E34\u0E14\u0E15\u0E31\u0E49\u0E07\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22 Rabby", + "description": "\u0E40\u0E23\u0E32\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E1B\u0E31\u0E01 Rabby \u0E44\u0E27\u0E49\u0E17\u0E35\u0E48\u0E41\u0E16\u0E1A\u0E07\u0E32\u0E19\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E43\u0E2B\u0E49\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E23\u0E27\u0E14\u0E40\u0E23\u0E47\u0E27\u0E02\u0E36\u0E49\u0E19." + }, + "step2": { + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19", + "description": "\u0E41\u0E19\u0E48\u0E43\u0E08\u0E27\u0E48\u0E32\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E42\u0E14\u0E22\u0E43\u0E0A\u0E49\u0E27\u0E34\u0E18\u0E35\u0E17\u0E35\u0E48\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22 \u0E2D\u0E22\u0E48\u0E32\u0E41\u0E0A\u0E23\u0E4C\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E25\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E01\u0E31\u0E1A\u0E1A\u0E38\u0E04\u0E04\u0E25\u0E2D\u0E37\u0E48\u0E19" + }, + "step3": { + "title": "\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13", + "description": "\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E04\u0E38\u0E13\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E41\u0E25\u0E49\u0E27 \u0E04\u0E25\u0E34\u0E01\u0E14\u0E49\u0E32\u0E19\u0E25\u0E48\u0E32\u0E07\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E41\u0E25\u0E30\u0E42\u0E2B\u0E25\u0E14\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22" + } + } + }, + "ronin": { + "qr_code": { + "step1": { + "description": "\u0E40\u0E23\u0E32\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E27\u0E32\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19 Ronin \u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E2B\u0E25\u0E31\u0E01\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E01\u0E32\u0E23\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E17\u0E35\u0E48\u0E23\u0E27\u0E14\u0E40\u0E23\u0E47\u0E27\u0E22\u0E34\u0E48\u0E07\u0E02\u0E36\u0E49\u0E19", + "title": "\u0E40\u0E1B\u0E34\u0E14\u0E41\u0E2D\u0E1B\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19 Ronin" + }, + "step2": { + "description": "\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E01\u0E32\u0E23\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E43\u0E2B\u0E49\u0E41\u0E19\u0E48\u0E19\u0E2D\u0E19\u0E42\u0E14\u0E22\u0E43\u0E0A\u0E49\u0E27\u0E34\u0E18\u0E35\u0E17\u0E35\u0E48\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22 \u0E2D\u0E22\u0E48\u0E32\u0E41\u0E0A\u0E23\u0E4C\u0E27\u0E25\u0E35\u0E25\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E01\u0E31\u0E1A\u0E43\u0E04\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2D\u0E31\u0E19\u0E02\u0E32\u0E14.", + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32 Wallet" + }, + "step3": { + "description": "\u0E2B\u0E25\u0E31\u0E07\u0E08\u0E32\u0E01\u0E04\u0E38\u0E13\u0E2A\u0E41\u0E01\u0E19 \u0E08\u0E30\u0E1B\u0E23\u0E32\u0E01\u0E0F\u0E2B\u0E19\u0E49\u0E32\u0E15\u0E48\u0E32\u0E07\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13", + "title": "\u0E41\u0E15\u0E30\u0E1B\u0E38\u0E48\u0E21\u0E2A\u0E41\u0E01\u0E19" + } + }, + "extension": { + "step1": { + "description": "\u0E40\u0E23\u0E32\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E1B\u0E31\u0E01\u0E2B\u0E21\u0E38\u0E14\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19 Ronin \u0E44\u0E27\u0E49\u0E17\u0E35\u0E48\u0E41\u0E16\u0E1A\u0E07\u0E32\u0E19\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E01\u0E32\u0E23\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E40\u0E23\u0E47\u0E27\u0E22\u0E34\u0E48\u0E07\u0E02\u0E36\u0E49\u0E19", + "title": "\u0E15\u0E34\u0E14\u0E15\u0E31\u0E49\u0E07\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19 Ronin" + }, + "step2": { + "description": "\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E01\u0E32\u0E23\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E43\u0E2B\u0E49\u0E41\u0E19\u0E48\u0E19\u0E2D\u0E19\u0E42\u0E14\u0E22\u0E43\u0E0A\u0E49\u0E27\u0E34\u0E18\u0E35\u0E17\u0E35\u0E48\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22 \u0E2D\u0E22\u0E48\u0E32\u0E41\u0E0A\u0E23\u0E4C\u0E27\u0E25\u0E35\u0E25\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E01\u0E31\u0E1A\u0E43\u0E04\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2D\u0E31\u0E19\u0E02\u0E32\u0E14.", + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32 Wallet" + }, + "step3": { + "description": "\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E04\u0E38\u0E13\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E41\u0E25\u0E49\u0E27\u0E04\u0E25\u0E34\u0E01\u0E14\u0E49\u0E32\u0E19\u0E25\u0E48\u0E32\u0E07\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E41\u0E25\u0E30\u0E42\u0E2B\u0E25\u0E14\u0E2A\u0E48\u0E27\u0E19\u0E40\u0E2A\u0E23\u0E34\u0E21", + "title": "\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13" + } + } + }, + "ramper": { + "extension": { + "step1": { + "title": "\u0E15\u0E34\u0E14\u0E15\u0E31\u0E49\u0E07\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22 Ramper", + "description": "\u0E40\u0E23\u0E32\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E1B\u0E31\u0E01\u0E2B\u0E21\u0E38\u0E14 Ramper \u0E44\u0E27\u0E49\u0E17\u0E35\u0E48\u0E41\u0E16\u0E1A\u0E07\u0E32\u0E19\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E01\u0E32\u0E23\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E07\u0E48\u0E32\u0E22\u0E22\u0E34\u0E48\u0E07\u0E02\u0E36\u0E49\u0E19" + }, + "step2": { + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19", + "description": "\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E01\u0E32\u0E23\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E43\u0E2B\u0E49\u0E41\u0E19\u0E48\u0E19\u0E2D\u0E19\u0E42\u0E14\u0E22\u0E43\u0E0A\u0E49\u0E27\u0E34\u0E18\u0E35\u0E17\u0E35\u0E48\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22 \u0E2D\u0E22\u0E48\u0E32\u0E41\u0E0A\u0E23\u0E4C\u0E27\u0E25\u0E35\u0E25\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E01\u0E31\u0E1A\u0E43\u0E04\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2D\u0E31\u0E19\u0E02\u0E32\u0E14." + }, + "step3": { + "title": "\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13", + "description": "\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E04\u0E38\u0E13\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E41\u0E25\u0E49\u0E27\u0E04\u0E25\u0E34\u0E01\u0E14\u0E49\u0E32\u0E19\u0E25\u0E48\u0E32\u0E07\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E41\u0E25\u0E30\u0E42\u0E2B\u0E25\u0E14\u0E2A\u0E48\u0E27\u0E19\u0E40\u0E2A\u0E23\u0E34\u0E21" + } + } + }, + "safeheron": { + "extension": { + "step1": { + "title": "\u0E15\u0E34\u0E14\u0E15\u0E31\u0E49\u0E07\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22 Core", + "description": "\u0E40\u0E23\u0E32\u0E02\u0E2D\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E1B\u0E31\u0E01 Safeheron \u0E44\u0E27\u0E49\u0E17\u0E35\u0E48\u0E41\u0E16\u0E1A\u0E07\u0E32\u0E19\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E40\u0E23\u0E47\u0E27\u0E02\u0E36\u0E49\u0E19" + }, + "step2": { + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19", + "description": "\u0E2D\u0E22\u0E48\u0E32\u0E25\u0E37\u0E21\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E42\u0E14\u0E22\u0E43\u0E0A\u0E49\u0E27\u0E34\u0E18\u0E35\u0E17\u0E35\u0E48\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22 \u0E2D\u0E22\u0E48\u0E32\u0E40\u0E1B\u0E34\u0E14\u0E40\u0E1C\u0E22\u0E1B\u0E23\u0E30\u0E42\u0E22\u0E04\u0E25\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E43\u0E2B\u0E49\u0E1C\u0E39\u0E49\u0E2D\u0E37\u0E48\u0E19\u0E17\u0E23\u0E32\u0E1A" + }, + "step3": { + "title": "\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13", + "description": "\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E04\u0E38\u0E13\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E41\u0E25\u0E49\u0E27 \u0E04\u0E25\u0E34\u0E01\u0E14\u0E49\u0E32\u0E19\u0E25\u0E48\u0E32\u0E07\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E41\u0E25\u0E30\u0E42\u0E2B\u0E25\u0E14\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22" + } + } + }, + "taho": { + "extension": { + "step1": { + "title": "\u0E15\u0E34\u0E14\u0E15\u0E31\u0E49\u0E07\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22 Taho", + "description": "\u0E40\u0E23\u0E32\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E1B\u0E31\u0E01 Taho \u0E44\u0E27\u0E49\u0E17\u0E35\u0E48\u0E41\u0E16\u0E1A\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E40\u0E23\u0E47\u0E27\u0E02\u0E36\u0E49\u0E19" + }, + "step2": { + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19", + "description": "\u0E42\u0E1B\u0E23\u0E14\u0E41\u0E19\u0E48\u0E43\u0E08\u0E27\u0E48\u0E32\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E42\u0E14\u0E22\u0E43\u0E0A\u0E49\u0E27\u0E34\u0E18\u0E35\u0E17\u0E35\u0E48\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22 \u0E2D\u0E22\u0E48\u0E32\u0E41\u0E0A\u0E23\u0E4C\u0E1B\u0E23\u0E30\u0E42\u0E22\u0E04\u0E25\u0E31\u0E1A\u0E04\u0E38\u0E13\u0E01\u0E31\u0E1A\u0E1C\u0E39\u0E49\u0E2D\u0E37\u0E48\u0E19" + }, + "step3": { + "title": "\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13", + "description": "\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E04\u0E38\u0E13\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E41\u0E25\u0E49\u0E27 \u0E04\u0E25\u0E34\u0E01\u0E14\u0E49\u0E32\u0E19\u0E25\u0E48\u0E32\u0E07\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E41\u0E25\u0E30\u0E42\u0E2B\u0E25\u0E14\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22" + } + } + }, + "talisman": { + "extension": { + "step1": { + "title": "\u0E15\u0E34\u0E14\u0E15\u0E31\u0E49\u0E07\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22 Talisman", + "description": "\u0E40\u0E23\u0E32\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E1B\u0E31\u0E01 Talisman \u0E44\u0E27\u0E49\u0E17\u0E35\u0E48\u0E41\u0E16\u0E1A\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E40\u0E23\u0E47\u0E27\u0E02\u0E36\u0E49\u0E19" + }, + "step2": { + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19 Ethereum", + "description": "\u0E43\u0E2B\u0E49\u0E41\u0E19\u0E48\u0E43\u0E08\u0E27\u0E48\u0E32\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E42\u0E14\u0E22\u0E43\u0E0A\u0E49\u0E27\u0E34\u0E18\u0E35\u0E17\u0E35\u0E48\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22 \u0E2D\u0E22\u0E48\u0E32\u0E40\u0E1B\u0E34\u0E14\u0E40\u0E1C\u0E22\u0E27\u0E25\u0E35\u0E01\u0E32\u0E23\u0E01\u0E39\u0E49\u0E04\u0E37\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E43\u0E2B\u0E49\u0E43\u0E04\u0E23\u0E17\u0E23\u0E32\u0E1A\u0E40\u0E14\u0E47\u0E14\u0E02\u0E32\u0E14" + }, + "step3": { + "title": "\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13", + "description": "\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E04\u0E38\u0E13\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E41\u0E25\u0E49\u0E27 \u0E04\u0E25\u0E34\u0E01\u0E14\u0E49\u0E32\u0E19\u0E25\u0E48\u0E32\u0E07\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E41\u0E25\u0E30\u0E42\u0E2B\u0E25\u0E14\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22" + } + } + }, + "xdefi": { + "extension": { + "step1": { + "title": "\u0E15\u0E34\u0E14\u0E15\u0E31\u0E49\u0E07\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22 XDEFI Wallet", + "description": "\u0E40\u0E23\u0E32\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E15\u0E23\u0E32 XDEFI Wallet \u0E44\u0E27\u0E49\u0E17\u0E35\u0E48\u0E41\u0E16\u0E1A\u0E07\u0E32\u0E19\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E40\u0E23\u0E47\u0E27\u0E02\u0E36\u0E49\u0E19" + }, + "step2": { + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19", + "description": "\u0E43\u0E2B\u0E49\u0E41\u0E19\u0E48\u0E43\u0E08\u0E27\u0E48\u0E32\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E42\u0E14\u0E22\u0E43\u0E0A\u0E49\u0E27\u0E34\u0E18\u0E35\u0E17\u0E35\u0E48\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22 \u0E2D\u0E22\u0E48\u0E32\u0E40\u0E1B\u0E34\u0E14\u0E40\u0E1C\u0E22\u0E27\u0E25\u0E35\u0E25\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E43\u0E2B\u0E49\u0E43\u0E04\u0E23\u0E17\u0E23\u0E32\u0E1A\u0E40\u0E14\u0E47\u0E14\u0E02\u0E32\u0E14" + }, + "step3": { + "title": "\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13", + "description": "\u0E2B\u0E25\u0E31\u0E07\u0E08\u0E32\u0E01\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E41\u0E25\u0E49\u0E27 \u0E04\u0E25\u0E34\u0E01\u0E14\u0E49\u0E32\u0E19\u0E25\u0E48\u0E32\u0E07\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E1A\u0E23\u0E32\u0E27\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E41\u0E25\u0E30\u0E42\u0E2B\u0E25\u0E14\u0E2A\u0E48\u0E27\u0E19\u0E40\u0E2A\u0E23\u0E34\u0E21." + } + } + }, + "zeal": { + "extension": { + "step1": { + "title": "\u0E15\u0E34\u0E14\u0E15\u0E31\u0E49\u0E07\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22 Zeal", + "description": "\u0E40\u0E23\u0E32\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E1B\u0E31\u0E01 Zeal \u0E44\u0E27\u0E49\u0E17\u0E35\u0E48\u0E41\u0E16\u0E1A\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E40\u0E23\u0E47\u0E27\u0E02\u0E36\u0E49\u0E19" + }, + "step2": { + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32 Wallet", + "description": "\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E01\u0E32\u0E23\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E43\u0E2B\u0E49\u0E41\u0E19\u0E48\u0E19\u0E2D\u0E19\u0E42\u0E14\u0E22\u0E43\u0E0A\u0E49\u0E27\u0E34\u0E18\u0E35\u0E17\u0E35\u0E48\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22 \u0E2D\u0E22\u0E48\u0E32\u0E41\u0E0A\u0E23\u0E4C\u0E27\u0E25\u0E35\u0E25\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E01\u0E31\u0E1A\u0E43\u0E04\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2D\u0E31\u0E19\u0E02\u0E32\u0E14." + }, + "step3": { + "title": "\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13", + "description": "\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E04\u0E38\u0E13\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E41\u0E25\u0E49\u0E27\u0E04\u0E25\u0E34\u0E01\u0E14\u0E49\u0E32\u0E19\u0E25\u0E48\u0E32\u0E07\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E41\u0E25\u0E30\u0E42\u0E2B\u0E25\u0E14\u0E2A\u0E48\u0E27\u0E19\u0E40\u0E2A\u0E23\u0E34\u0E21" + } + } + }, + "safepal": { + "extension": { + "step1": { + "title": "\u0E15\u0E34\u0E14\u0E15\u0E31\u0E49\u0E07\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22 SafePal Wallet", + "description": "\u0E04\u0E25\u0E34\u0E01\u0E17\u0E35\u0E48\u0E21\u0E38\u0E21\u0E1A\u0E19\u0E02\u0E27\u0E32\u0E02\u0E2D\u0E07\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E41\u0E25\u0E30\u0E1B\u0E31\u0E01\u0E21\u0E38\u0E21 SafePal Wallet \u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E17\u0E35\u0E48\u0E08\u0E30\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E44\u0E14\u0E49\u0E07\u0E48\u0E32\u0E22" + }, + "step2": { + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19", + "description": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E43\u0E2B\u0E21\u0E48\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32\u0E17\u0E35\u0E48\u0E21\u0E35\u0E2D\u0E22\u0E39\u0E48\u0E41\u0E25\u0E49\u0E27." + }, + "step3": { + "title": "\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13", + "description": "\u0E2B\u0E25\u0E31\u0E07\u0E08\u0E32\u0E01\u0E04\u0E38\u0E13\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32 SafePal Wallet \u0E40\u0E23\u0E35\u0E22\u0E1A\u0E23\u0E49\u0E2D\u0E22\u0E41\u0E25\u0E49\u0E27 \u0E04\u0E25\u0E34\u0E01\u0E14\u0E49\u0E32\u0E19\u0E25\u0E48\u0E32\u0E07\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E41\u0E25\u0E30\u0E42\u0E2B\u0E25\u0E14\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22" + } + }, + "qr_code": { + "step1": { + "title": "\u0E40\u0E1B\u0E34\u0E14\u0E41\u0E2D\u0E1B SafePal Wallet", + "description": "\u0E27\u0E32\u0E07 SafePal Wallet \u0E17\u0E35\u0E48\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E2B\u0E25\u0E31\u0E01\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E40\u0E23\u0E47\u0E27\u0E02\u0E36\u0E49\u0E19" + }, + "step2": { + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32 Wallet", + "description": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E43\u0E2B\u0E21\u0E48\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32\u0E17\u0E35\u0E48\u0E21\u0E35\u0E2D\u0E22\u0E39\u0E48\u0E41\u0E25\u0E49\u0E27." + }, + "step3": { + "title": "\u0E41\u0E15\u0E30 WalletConnect \u0E43\u0E19\u0E01\u0E32\u0E23\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32", + "description": "\u0E40\u0E25\u0E37\u0E2D\u0E01 New Connection, \u0E41\u0E25\u0E49\u0E27\u0E2A\u0E41\u0E01\u0E19 QR code \u0E41\u0E25\u0E30\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E01\u0E32\u0E23\u0E23\u0E31\u0E1A\u0E23\u0E2D\u0E07\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E01\u0E32\u0E23\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D" + } + } + }, + "desig": { + "extension": { + "step1": { + "title": "\u0E15\u0E34\u0E14\u0E15\u0E31\u0E49\u0E07\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22 Desig", + "description": "\u0E40\u0E23\u0E32\u0E02\u0E2D\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E15\u0E23\u0E36\u0E07 Desig \u0E44\u0E27\u0E49\u0E17\u0E35\u0E48\u0E41\u0E16\u0E1A\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E43\u0E2B\u0E49\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E07\u0E48\u0E32\u0E22\u0E02\u0E36\u0E49\u0E19" + }, + "step2": { + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19", + "description": "\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E01\u0E32\u0E23\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E43\u0E2B\u0E49\u0E41\u0E19\u0E48\u0E19\u0E2D\u0E19\u0E42\u0E14\u0E22\u0E43\u0E0A\u0E49\u0E27\u0E34\u0E18\u0E35\u0E17\u0E35\u0E48\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22 \u0E2D\u0E22\u0E48\u0E32\u0E41\u0E0A\u0E23\u0E4C\u0E27\u0E25\u0E35\u0E25\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E01\u0E31\u0E1A\u0E43\u0E04\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2D\u0E31\u0E19\u0E02\u0E32\u0E14." + }, + "step3": { + "title": "\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13", + "description": "\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E04\u0E38\u0E13\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E41\u0E25\u0E49\u0E27\u0E04\u0E25\u0E34\u0E01\u0E14\u0E49\u0E32\u0E19\u0E25\u0E48\u0E32\u0E07\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E41\u0E25\u0E30\u0E42\u0E2B\u0E25\u0E14\u0E2A\u0E48\u0E27\u0E19\u0E40\u0E2A\u0E23\u0E34\u0E21" + } + } + }, + "subwallet": { + "extension": { + "step1": { + "title": "\u0E15\u0E34\u0E14\u0E15\u0E31\u0E49\u0E07\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22 SubWallet", + "description": "\u0E40\u0E23\u0E32\u0E02\u0E2D\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E15\u0E23\u0E36\u0E07 SubWallet \u0E44\u0E27\u0E49\u0E17\u0E35\u0E48\u0E41\u0E16\u0E1A\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E40\u0E23\u0E47\u0E27\u0E02\u0E36\u0E49\u0E19" + }, + "step2": { + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32 Wallet", + "description": "\u0E43\u0E2B\u0E49\u0E41\u0E19\u0E48\u0E43\u0E08\u0E27\u0E48\u0E32\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E42\u0E14\u0E22\u0E43\u0E0A\u0E49\u0E27\u0E34\u0E18\u0E35\u0E17\u0E35\u0E48\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22 \u0E2D\u0E22\u0E48\u0E32\u0E40\u0E1B\u0E34\u0E14\u0E40\u0E1C\u0E22\u0E27\u0E25\u0E35\u0E01\u0E32\u0E23\u0E01\u0E39\u0E49\u0E04\u0E37\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E43\u0E2B\u0E49\u0E43\u0E04\u0E23\u0E17\u0E23\u0E32\u0E1A\u0E40\u0E14\u0E47\u0E14\u0E02\u0E32\u0E14" + }, + "step3": { + "title": "\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13", + "description": "\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E04\u0E38\u0E13\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E41\u0E25\u0E49\u0E27\u0E04\u0E25\u0E34\u0E01\u0E14\u0E49\u0E32\u0E19\u0E25\u0E48\u0E32\u0E07\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E41\u0E25\u0E30\u0E42\u0E2B\u0E25\u0E14\u0E2A\u0E48\u0E27\u0E19\u0E40\u0E2A\u0E23\u0E34\u0E21" + } + }, + "qr_code": { + "step1": { + "title": "\u0E40\u0E1B\u0E34\u0E14\u0E41\u0E2D\u0E1E SubWallet", + "description": "\u0E40\u0E23\u0E32\u0E02\u0E2D\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E27\u0E32\u0E07 SubWallet \u0E44\u0E27\u0E49\u0E17\u0E35\u0E48\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E2B\u0E25\u0E31\u0E01\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E44\u0E14\u0E49\u0E40\u0E23\u0E47\u0E27\u0E02\u0E36\u0E49\u0E19" + }, + "step2": { + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32 Wallet", + "description": "\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E01\u0E32\u0E23\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E43\u0E2B\u0E49\u0E41\u0E19\u0E48\u0E19\u0E2D\u0E19\u0E42\u0E14\u0E22\u0E43\u0E0A\u0E49\u0E27\u0E34\u0E18\u0E35\u0E17\u0E35\u0E48\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22 \u0E2D\u0E22\u0E48\u0E32\u0E41\u0E0A\u0E23\u0E4C\u0E27\u0E25\u0E35\u0E25\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E01\u0E31\u0E1A\u0E43\u0E04\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2D\u0E31\u0E19\u0E02\u0E32\u0E14." + }, + "step3": { + "title": "\u0E41\u0E15\u0E30\u0E1B\u0E38\u0E48\u0E21\u0E2A\u0E41\u0E01\u0E19", + "description": "\u0E2B\u0E25\u0E31\u0E07\u0E08\u0E32\u0E01\u0E04\u0E38\u0E13\u0E2A\u0E41\u0E01\u0E19 \u0E08\u0E30\u0E1B\u0E23\u0E32\u0E01\u0E0F\u0E2B\u0E19\u0E49\u0E32\u0E15\u0E48\u0E32\u0E07\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13" + } + } + }, + "clv": { + "extension": { + "step1": { + "title": "\u0E15\u0E34\u0E14\u0E15\u0E31\u0E49\u0E07\u0E2A\u0E48\u0E27\u0E19\u0E02\u0E22\u0E32\u0E22 CLV Wallet", + "description": "\u0E40\u0E23\u0E32\u0E02\u0E2D\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E15\u0E23\u0E36\u0E07 CLV Wallet \u0E44\u0E27\u0E49\u0E17\u0E35\u0E48\u0E41\u0E16\u0E1A\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E40\u0E23\u0E47\u0E27\u0E02\u0E36\u0E49\u0E19" + }, + "step2": { + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32 Wallet", + "description": "\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E01\u0E32\u0E23\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E43\u0E2B\u0E49\u0E41\u0E19\u0E48\u0E19\u0E2D\u0E19\u0E42\u0E14\u0E22\u0E43\u0E0A\u0E49\u0E27\u0E34\u0E18\u0E35\u0E17\u0E35\u0E48\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22 \u0E2D\u0E22\u0E48\u0E32\u0E41\u0E0A\u0E23\u0E4C\u0E27\u0E25\u0E35\u0E25\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E01\u0E31\u0E1A\u0E43\u0E04\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2D\u0E31\u0E19\u0E02\u0E32\u0E14." + }, + "step3": { + "title": "\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13", + "description": "\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E04\u0E38\u0E13\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E41\u0E25\u0E49\u0E27\u0E04\u0E25\u0E34\u0E01\u0E14\u0E49\u0E32\u0E19\u0E25\u0E48\u0E32\u0E07\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E41\u0E25\u0E30\u0E42\u0E2B\u0E25\u0E14\u0E2A\u0E48\u0E27\u0E19\u0E40\u0E2A\u0E23\u0E34\u0E21" + } + }, + "qr_code": { + "step1": { + "title": "\u0E40\u0E1B\u0E34\u0E14\u0E41\u0E2D\u0E1E CLV Wallet", + "description": "\u0E40\u0E23\u0E32\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E27\u0E32\u0E07 CLV Wallet \u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E2B\u0E25\u0E31\u0E01\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E43\u0E2B\u0E49\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E44\u0E14\u0E49\u0E40\u0E23\u0E47\u0E27\u0E02\u0E36\u0E49\u0E19" + }, + "step2": { + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32 Wallet", + "description": "\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E01\u0E32\u0E23\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E43\u0E2B\u0E49\u0E41\u0E19\u0E48\u0E19\u0E2D\u0E19\u0E42\u0E14\u0E22\u0E43\u0E0A\u0E49\u0E27\u0E34\u0E18\u0E35\u0E17\u0E35\u0E48\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22 \u0E2D\u0E22\u0E48\u0E32\u0E41\u0E0A\u0E23\u0E4C\u0E27\u0E25\u0E35\u0E25\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E01\u0E31\u0E1A\u0E43\u0E04\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2D\u0E31\u0E19\u0E02\u0E32\u0E14." + }, + "step3": { + "title": "\u0E41\u0E15\u0E30\u0E1B\u0E38\u0E48\u0E21\u0E2A\u0E41\u0E01\u0E19", + "description": "\u0E2B\u0E25\u0E31\u0E07\u0E08\u0E32\u0E01\u0E04\u0E38\u0E13\u0E2A\u0E41\u0E01\u0E19 \u0E08\u0E30\u0E1B\u0E23\u0E32\u0E01\u0E0F\u0E2B\u0E19\u0E49\u0E32\u0E15\u0E48\u0E32\u0E07\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13" + } + } + }, + "okto": { + "qr_code": { + "step1": { + "title": "\u0E40\u0E1B\u0E34\u0E14\u0E41\u0E2D\u0E1E Okto", + "description": "\u0E40\u0E1E\u0E34\u0E48\u0E21 Okto \u0E44\u0E1B\u0E22\u0E31\u0E07\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E2B\u0E25\u0E31\u0E01\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E44\u0E14\u0E49\u0E40\u0E23\u0E47\u0E27" + }, + "step2": { + "title": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19 MPC", + "description": "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E1A\u0E31\u0E0D\u0E0A\u0E35\u0E41\u0E25\u0E30\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19" + }, + "step3": { + "title": "\u0E41\u0E15\u0E30 WalletConnect \u0E43\u0E19\u0E01\u0E32\u0E23\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32", + "description": "\u0E41\u0E15\u0E30\u0E17\u0E35\u0E48\u0E44\u0E2D\u0E04\u0E2D\u0E19 Scan QR \u0E17\u0E35\u0E48\u0E1A\u0E23\u0E34\u0E40\u0E27\u0E13\u0E21\u0E38\u0E21\u0E1A\u0E19\u0E02\u0E27\u0E32\u0E41\u0E25\u0E30\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D." + } + } + }, + "ledger": { + "desktop": { + "step1": { + "title": "\u0E40\u0E1B\u0E34\u0E14\u0E41\u0E2D\u0E1B Ledger Live", + "description": "\u0E40\u0E23\u0E32\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E27\u0E32\u0E07 Ledger Live \u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E2B\u0E25\u0E31\u0E01\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E43\u0E2B\u0E49\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E44\u0E14\u0E49\u0E40\u0E23\u0E47\u0E27\u0E02\u0E36\u0E49\u0E19" + }, + "step2": { + "title": "\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32 Ledger \u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13", + "description": "\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32 Ledger \u0E43\u0E2B\u0E21\u0E48\u0E2B\u0E23\u0E37\u0E2D\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E01\u0E31\u0E1A Ledger \u0E17\u0E35\u0E48\u0E21\u0E35\u0E2D\u0E22\u0E39\u0E48\u0E41\u0E25\u0E49\u0E27" + }, + "step3": { + "title": "\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D", + "description": "\u0E2B\u0E25\u0E31\u0E07\u0E08\u0E32\u0E01\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E2A\u0E41\u0E01\u0E19\u0E41\u0E25\u0E49\u0E27 \u0E08\u0E30\u0E21\u0E35\u0E01\u0E32\u0E23\u0E40\u0E23\u0E35\u0E22\u0E01\u0E43\u0E2B\u0E49\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E01\u0E31\u0E1A\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13" + } + }, + "qr_code": { + "step1": { + "title": "\u0E40\u0E1B\u0E34\u0E14\u0E41\u0E2D\u0E1B Ledger Live", + "description": "\u0E40\u0E23\u0E32\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\u0E2B\u0E49\u0E27\u0E32\u0E07 Ledger Live \u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E2B\u0E25\u0E31\u0E01\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E01\u0E32\u0E23\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E17\u0E35\u0E48\u0E23\u0E27\u0E14\u0E40\u0E23\u0E47\u0E27\u0E02\u0E36\u0E49\u0E19" + }, + "step2": { + "title": "\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32 Ledger \u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13", + "description": "\u0E04\u0E38\u0E13\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E0B\u0E34\u0E07\u0E04\u0E4C\u0E01\u0E31\u0E1A\u0E41\u0E2D\u0E1E\u0E1E\u0E25\u0E34\u0E40\u0E04\u0E0A\u0E31\u0E19\u0E1A\u0E19\u0E40\u0E14\u0E2A\u0E01\u0E4C\u0E17\u0E47\u0E2D\u0E1B\u0E2B\u0E23\u0E37\u0E2D\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D Ledger \u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13" + }, + "step3": { + "title": "\u0E2A\u0E41\u0E01\u0E19\u0E23\u0E2B\u0E31\u0E2A", + "description": "\u0E41\u0E15\u0E30 WalletConnect \u0E41\u0E25\u0E49\u0E27\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19\u0E44\u0E1B\u0E17\u0E35\u0E48 Scanner. \u0E2B\u0E25\u0E31\u0E07\u0E08\u0E32\u0E01\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E2A\u0E41\u0E01\u0E19\u0E41\u0E25\u0E49\u0E27 \u0E08\u0E30\u0E21\u0E35\u0E01\u0E32\u0E23\u0E40\u0E23\u0E35\u0E22\u0E01\u0E43\u0E2B\u0E49\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E01\u0E31\u0E1A\u0E01\u0E23\u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13" + } + } + } + } +} +`}}]); \ No newline at end of file diff --git a/_next/static/chunks/723.298da848a5f4cef5.js b/_next/static/chunks/723.298da848a5f4cef5.js deleted file mode 100644 index 6bdfc95..0000000 --- a/_next/static/chunks/723.298da848a5f4cef5.js +++ /dev/null @@ -1,27 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[723],{56867:function(i,r,c){"use strict";r.Xx=r._w=r.aP=r.KS=r.jQ=void 0,c(69790);let l=c(61910);function gf(i){let r=new Float64Array(16);if(i)for(let c=0;c>16&1),c[i-1]&=65535;c[15]=l[15]-32767-(c[14]>>16&1);let i=c[15]>>16&1;c[14]&=65535,sel25519(l,c,1-i)}for(let r=0;r<16;r++)i[2*r]=255&l[r],i[2*r+1]=l[r]>>8}function verify32(i,r){let c=0;for(let l=0;l<32;l++)c|=i[l]^r[l];return(1&c-1>>>8)-1}function neq25519(i,r){let c=new Uint8Array(32),l=new Uint8Array(32);return pack25519(c,i),pack25519(l,r),verify32(c,l)}function par25519(i){let r=new Uint8Array(32);return pack25519(r,i),1&r[0]}function unpack25519(i,r){for(let c=0;c<16;c++)i[c]=r[2*c]+(r[2*c+1]<<8);i[15]&=32767}function add(i,r,c){for(let l=0;l<16;l++)i[l]=r[l]+c[l]}function sub(i,r,c){for(let l=0;l<16;l++)i[l]=r[l]-c[l]}function mul(i,r,c){let l,S,P=0,C=0,R=0,A=0,q=0,$=0,U=0,F=0,J=0,Q=0,X=0,ee=0,et=0,eo=0,ep=0,eg=0,ey=0,em=0,e_=0,ew=0,eb=0,eI=0,eE=0,ex=0,eS=0,eP=0,eC=0,eO=0,eR=0,eA=0,eN=0,eL=c[0],ej=c[1],eT=c[2],ez=c[3],eD=c[4],ek=c[5],eM=c[6],eH=c[7],e$=c[8],eU=c[9],eK=c[10],eV=c[11],eB=c[12],eG=c[13],eW=c[14],eZ=c[15];P+=(l=r[0])*eL,C+=l*ej,R+=l*eT,A+=l*ez,q+=l*eD,$+=l*ek,U+=l*eM,F+=l*eH,J+=l*e$,Q+=l*eU,X+=l*eK,ee+=l*eV,et+=l*eB,eo+=l*eG,ep+=l*eW,eg+=l*eZ,C+=(l=r[1])*eL,R+=l*ej,A+=l*eT,q+=l*ez,$+=l*eD,U+=l*ek,F+=l*eM,J+=l*eH,Q+=l*e$,X+=l*eU,ee+=l*eK,et+=l*eV,eo+=l*eB,ep+=l*eG,eg+=l*eW,ey+=l*eZ,R+=(l=r[2])*eL,A+=l*ej,q+=l*eT,$+=l*ez,U+=l*eD,F+=l*ek,J+=l*eM,Q+=l*eH,X+=l*e$,ee+=l*eU,et+=l*eK,eo+=l*eV,ep+=l*eB,eg+=l*eG,ey+=l*eW,em+=l*eZ,A+=(l=r[3])*eL,q+=l*ej,$+=l*eT,U+=l*ez,F+=l*eD,J+=l*ek,Q+=l*eM,X+=l*eH,ee+=l*e$,et+=l*eU,eo+=l*eK,ep+=l*eV,eg+=l*eB,ey+=l*eG,em+=l*eW,e_+=l*eZ,q+=(l=r[4])*eL,$+=l*ej,U+=l*eT,F+=l*ez,J+=l*eD,Q+=l*ek,X+=l*eM,ee+=l*eH,et+=l*e$,eo+=l*eU,ep+=l*eK,eg+=l*eV,ey+=l*eB,em+=l*eG,e_+=l*eW,ew+=l*eZ,$+=(l=r[5])*eL,U+=l*ej,F+=l*eT,J+=l*ez,Q+=l*eD,X+=l*ek,ee+=l*eM,et+=l*eH,eo+=l*e$,ep+=l*eU,eg+=l*eK,ey+=l*eV,em+=l*eB,e_+=l*eG,ew+=l*eW,eb+=l*eZ,U+=(l=r[6])*eL,F+=l*ej,J+=l*eT,Q+=l*ez,X+=l*eD,ee+=l*ek,et+=l*eM,eo+=l*eH,ep+=l*e$,eg+=l*eU,ey+=l*eK,em+=l*eV,e_+=l*eB,ew+=l*eG,eb+=l*eW,eI+=l*eZ,F+=(l=r[7])*eL,J+=l*ej,Q+=l*eT,X+=l*ez,ee+=l*eD,et+=l*ek,eo+=l*eM,ep+=l*eH,eg+=l*e$,ey+=l*eU,em+=l*eK,e_+=l*eV,ew+=l*eB,eb+=l*eG,eI+=l*eW,eE+=l*eZ,J+=(l=r[8])*eL,Q+=l*ej,X+=l*eT,ee+=l*ez,et+=l*eD,eo+=l*ek,ep+=l*eM,eg+=l*eH,ey+=l*e$,em+=l*eU,e_+=l*eK,ew+=l*eV,eb+=l*eB,eI+=l*eG,eE+=l*eW,ex+=l*eZ,Q+=(l=r[9])*eL,X+=l*ej,ee+=l*eT,et+=l*ez,eo+=l*eD,ep+=l*ek,eg+=l*eM,ey+=l*eH,em+=l*e$,e_+=l*eU,ew+=l*eK,eb+=l*eV,eI+=l*eB,eE+=l*eG,ex+=l*eW,eS+=l*eZ,X+=(l=r[10])*eL,ee+=l*ej,et+=l*eT,eo+=l*ez,ep+=l*eD,eg+=l*ek,ey+=l*eM,em+=l*eH,e_+=l*e$,ew+=l*eU,eb+=l*eK,eI+=l*eV,eE+=l*eB,ex+=l*eG,eS+=l*eW,eP+=l*eZ,ee+=(l=r[11])*eL,et+=l*ej,eo+=l*eT,ep+=l*ez,eg+=l*eD,ey+=l*ek,em+=l*eM,e_+=l*eH,ew+=l*e$,eb+=l*eU,eI+=l*eK,eE+=l*eV,ex+=l*eB,eS+=l*eG,eP+=l*eW,eC+=l*eZ,et+=(l=r[12])*eL,eo+=l*ej,ep+=l*eT,eg+=l*ez,ey+=l*eD,em+=l*ek,e_+=l*eM,ew+=l*eH,eb+=l*e$,eI+=l*eU,eE+=l*eK,ex+=l*eV,eS+=l*eB,eP+=l*eG,eC+=l*eW,eO+=l*eZ,eo+=(l=r[13])*eL,ep+=l*ej,eg+=l*eT,ey+=l*ez,em+=l*eD,e_+=l*ek,ew+=l*eM,eb+=l*eH,eI+=l*e$,eE+=l*eU,ex+=l*eK,eS+=l*eV,eP+=l*eB,eC+=l*eG,eO+=l*eW,eR+=l*eZ,ep+=(l=r[14])*eL,eg+=l*ej,ey+=l*eT,em+=l*ez,e_+=l*eD,ew+=l*ek,eb+=l*eM,eI+=l*eH,eE+=l*e$,ex+=l*eU,eS+=l*eK,eP+=l*eV,eC+=l*eB,eO+=l*eG,eR+=l*eW,eA+=l*eZ,eg+=(l=r[15])*eL,ey+=l*ej,em+=l*eT,e_+=l*ez,ew+=l*eD,eb+=l*ek,eI+=l*eM,eE+=l*eH,ex+=l*e$,eS+=l*eU,eP+=l*eK,eC+=l*eV,eO+=l*eB,eR+=l*eG,eA+=l*eW,eN+=l*eZ,P+=38*ey,C+=38*em,R+=38*e_,A+=38*ew,q+=38*eb,$+=38*eI,U+=38*eE,F+=38*ex,J+=38*eS,Q+=38*eP,X+=38*eC,ee+=38*eO,et+=38*eR,eo+=38*eA,ep+=38*eN,S=Math.floor((l=P+(S=1)+65535)/65536),P=l-65536*S,S=Math.floor((l=C+S+65535)/65536),C=l-65536*S,S=Math.floor((l=R+S+65535)/65536),R=l-65536*S,S=Math.floor((l=A+S+65535)/65536),A=l-65536*S,S=Math.floor((l=q+S+65535)/65536),q=l-65536*S,S=Math.floor((l=$+S+65535)/65536),$=l-65536*S,S=Math.floor((l=U+S+65535)/65536),U=l-65536*S,S=Math.floor((l=F+S+65535)/65536),F=l-65536*S,S=Math.floor((l=J+S+65535)/65536),J=l-65536*S,S=Math.floor((l=Q+S+65535)/65536),Q=l-65536*S,S=Math.floor((l=X+S+65535)/65536),X=l-65536*S,S=Math.floor((l=ee+S+65535)/65536),ee=l-65536*S,S=Math.floor((l=et+S+65535)/65536),et=l-65536*S,S=Math.floor((l=eo+S+65535)/65536),eo=l-65536*S,S=Math.floor((l=ep+S+65535)/65536),ep=l-65536*S,S=Math.floor((l=eg+S+65535)/65536),eg=l-65536*S,P+=S-1+37*(S-1),S=Math.floor((l=P+(S=1)+65535)/65536),P=l-65536*S,S=Math.floor((l=C+S+65535)/65536),C=l-65536*S,S=Math.floor((l=R+S+65535)/65536),R=l-65536*S,S=Math.floor((l=A+S+65535)/65536),A=l-65536*S,S=Math.floor((l=q+S+65535)/65536),q=l-65536*S,S=Math.floor((l=$+S+65535)/65536),$=l-65536*S,S=Math.floor((l=U+S+65535)/65536),U=l-65536*S,S=Math.floor((l=F+S+65535)/65536),F=l-65536*S,S=Math.floor((l=J+S+65535)/65536),J=l-65536*S,S=Math.floor((l=Q+S+65535)/65536),Q=l-65536*S,S=Math.floor((l=X+S+65535)/65536),X=l-65536*S,S=Math.floor((l=ee+S+65535)/65536),ee=l-65536*S,S=Math.floor((l=et+S+65535)/65536),et=l-65536*S,S=Math.floor((l=eo+S+65535)/65536),eo=l-65536*S,S=Math.floor((l=ep+S+65535)/65536),ep=l-65536*S,S=Math.floor((l=eg+S+65535)/65536),eg=l-65536*S,P+=S-1+37*(S-1),i[0]=P,i[1]=C,i[2]=R,i[3]=A,i[4]=q,i[5]=$,i[6]=U,i[7]=F,i[8]=J,i[9]=Q,i[10]=X,i[11]=ee,i[12]=et,i[13]=eo,i[14]=ep,i[15]=eg}function inv25519(i,r){let c;let l=gf();for(c=0;c<16;c++)l[c]=r[c];for(c=253;c>=0;c--)mul(l,l,l),2!==c&&4!==c&&mul(l,l,r);for(c=0;c<16;c++)i[c]=l[c]}function pow2523(i,r){let c;let l=gf();for(c=0;c<16;c++)l[c]=r[c];for(c=250;c>=0;c--)mul(l,l,l),1!==c&&mul(l,l,r);for(c=0;c<16;c++)i[c]=l[c]}function edadd(i,r){let c=gf(),l=gf(),S=gf(),P=gf(),C=gf(),R=gf(),q=gf(),$=gf(),U=gf();sub(c,i[1],i[0]),sub(U,r[1],r[0]),mul(c,c,U),add(l,i[0],i[1]),add(U,r[0],r[1]),mul(l,l,U),mul(S,i[3],r[3]),mul(S,S,A),mul(P,i[2],r[2]),add(P,P,P),sub(C,l,c),sub(R,P,S),add(q,P,S),add($,l,c),mul(i[0],C,R),mul(i[1],$,q),mul(i[2],q,R),mul(i[3],C,$)}function cswap(i,r,c){for(let l=0;l<4;l++)sel25519(i[l],r[l],c)}function pack(i,r){let c=gf(),l=gf(),S=gf();inv25519(S,r[2]),mul(c,r[0],S),mul(l,r[1],S),pack25519(i,l),i[31]^=par25519(c)<<7}function scalarmult(i,r,c){set25519(i[0],P),set25519(i[1],C),set25519(i[2],C),set25519(i[3],P);for(let l=255;l>=0;--l){let S=c[l/8|0]>>(7&l)&1;cswap(i,r,S),edadd(r,i),edadd(i,i),cswap(i,r,S)}}function scalarbase(i,r){let c=[gf(),gf(),gf(),gf()];set25519(c[0],q),set25519(c[1],$),set25519(c[2],C),mul(c[3],q,$),scalarmult(i,c,r)}function generateKeyPairFromSeed(i){if(i.length!==r.aP)throw Error(`ed25519: seed must be ${r.aP} bytes`);let c=(0,l.hash)(i);c[0]&=248,c[31]&=127,c[31]|=64;let S=new Uint8Array(32),P=[gf(),gf(),gf(),gf()];scalarbase(P,c),pack(S,P);let C=new Uint8Array(64);return C.set(i),C.set(S,32),{publicKey:S,secretKey:C}}r._w=generateKeyPairFromSeed;let F=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function modL(i,r){let c,l,S,P;for(l=63;l>=32;--l){for(c=0,S=l-32,P=l-12;S>4)*F[S],c=r[S]>>8,r[S]&=255;for(S=0;S<32;S++)r[S]-=c*F[S];for(l=0;l<32;l++)r[l+1]+=r[l]>>8,i[l]=255&r[l]}function reduce(i){let r=new Float64Array(64);for(let c=0;c<64;c++)r[c]=i[c];for(let r=0;r<64;r++)i[r]=0;modL(i,r)}function sign(i,r){let c=new Float64Array(64),S=[gf(),gf(),gf(),gf()],P=(0,l.hash)(i.subarray(0,32));P[0]&=248,P[31]&=127,P[31]|=64;let C=new Uint8Array(64);C.set(P.subarray(32),32);let R=new l.SHA512;R.update(C.subarray(32)),R.update(r);let A=R.digest();R.clean(),reduce(A),scalarbase(S,A),pack(C,S),R.reset(),R.update(C.subarray(0,32)),R.update(i.subarray(32)),R.update(r);let q=R.digest();reduce(q);for(let i=0;i<32;i++)c[i]=A[i];for(let i=0;i<32;i++)for(let r=0;r<32;r++)c[i+r]+=q[i]*P[r];return modL(C.subarray(32),c),C}r.Xx=sign},61910:function(i,r,c){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var l=c(35859),S=c(62942);r.DIGEST_LENGTH=64,r.BLOCK_SIZE=128;var P=function(){function SHA512(){this.digestLength=r.DIGEST_LENGTH,this.blockSize=r.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return SHA512.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},SHA512.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},SHA512.prototype.clean=function(){S.wipe(this._buffer),S.wipe(this._tempHi),S.wipe(this._tempLo),this.reset()},SHA512.prototype.update=function(i,c){if(void 0===c&&(c=i.length),this._finished)throw Error("SHA512: can't update because hash was finished.");var l=0;if(this._bytesHashed+=c,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=i[l++],c--;this._bufferLength===this.blockSize&&(hashBlocks(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(c>=this.blockSize&&(l=hashBlocks(this._tempHi,this._tempLo,this._stateHi,this._stateLo,i,l,c),c%=this.blockSize);c>0;)this._buffer[this._bufferLength++]=i[l++],c--;return this},SHA512.prototype.finish=function(i){if(!this._finished){var r=this._bytesHashed,c=this._bufferLength,S=r%128<112?128:256;this._buffer[c]=128;for(var P=c+1;P0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},SHA512.prototype.restoreState=function(i){return this._stateHi.set(i.stateHi),this._stateLo.set(i.stateLo),this._bufferLength=i.bufferLength,i.buffer&&this._buffer.set(i.buffer),this._bytesHashed=i.bytesHashed,this._finished=!1,this},SHA512.prototype.cleanSavedState=function(i){S.wipe(i.stateHi),S.wipe(i.stateLo),i.buffer&&S.wipe(i.buffer),i.bufferLength=0,i.bytesHashed=0},SHA512}();r.SHA512=P;var C=new Int32Array([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]);function hashBlocks(i,r,c,S,P,R,A){for(var q,$,U,F,J,Q,X,ee,et=c[0],eo=c[1],ep=c[2],eg=c[3],ey=c[4],em=c[5],e_=c[6],ew=c[7],eb=S[0],eI=S[1],eE=S[2],ex=S[3],eS=S[4],eP=S[5],eC=S[6],eO=S[7];A>=128;){for(var eR=0;eR<16;eR++){var eA=8*eR+R;i[eR]=l.readUint32BE(P,eA),r[eR]=l.readUint32BE(P,eA+4)}for(var eR=0;eR<80;eR++){var eN=et,eL=eo,ej=ep,eT=eg,ez=ey,eD=em,ek=e_,eM=ew,eH=eb,e$=eI,eU=eE,eK=ex,eV=eS,eB=eP,eG=eC,eW=eO;if(q=ew,J=65535&($=eO),Q=$>>>16,X=65535&q,ee=q>>>16,q=(ey>>>14|eS<<18)^(ey>>>18|eS<<14)^(eS>>>9|ey<<23),J+=65535&($=(eS>>>14|ey<<18)^(eS>>>18|ey<<14)^(ey>>>9|eS<<23)),Q+=$>>>16,X+=65535&q,ee+=q>>>16,q=ey&em^~ey&e_,J+=65535&($=eS&eP^~eS&eC),Q+=$>>>16,X+=65535&q,ee+=q>>>16,q=C[2*eR],J+=65535&($=C[2*eR+1]),Q+=$>>>16,X+=65535&q,ee+=q>>>16,q=i[eR%16],J+=65535&($=r[eR%16]),Q+=$>>>16,X+=65535&q,ee+=q>>>16,Q+=J>>>16,X+=Q>>>16,ee+=X>>>16,U=65535&X|ee<<16,F=65535&J|Q<<16,q=U,J=65535&($=F),Q=$>>>16,X=65535&q,ee=q>>>16,q=(et>>>28|eb<<4)^(eb>>>2|et<<30)^(eb>>>7|et<<25),J+=65535&($=(eb>>>28|et<<4)^(et>>>2|eb<<30)^(et>>>7|eb<<25)),Q+=$>>>16,X+=65535&q,ee+=q>>>16,q=et&eo^et&ep^eo&ep,J+=65535&($=eb&eI^eb&eE^eI&eE),Q+=$>>>16,X+=65535&q,ee+=q>>>16,Q+=J>>>16,X+=Q>>>16,ee+=X>>>16,eM=65535&X|ee<<16,eW=65535&J|Q<<16,q=eT,J=65535&($=eK),Q=$>>>16,X=65535&q,ee=q>>>16,q=U,J+=65535&($=F),Q+=$>>>16,X+=65535&q,ee+=q>>>16,Q+=J>>>16,X+=Q>>>16,ee+=X>>>16,eT=65535&X|ee<<16,eK=65535&J|Q<<16,eo=eN,ep=eL,eg=ej,ey=eT,em=ez,e_=eD,ew=ek,et=eM,eI=eH,eE=e$,ex=eU,eS=eK,eP=eV,eC=eB,eO=eG,eb=eW,eR%16==15)for(var eA=0;eA<16;eA++)q=i[eA],J=65535&($=r[eA]),Q=$>>>16,X=65535&q,ee=q>>>16,q=i[(eA+9)%16],J+=65535&($=r[(eA+9)%16]),Q+=$>>>16,X+=65535&q,ee+=q>>>16,q=((U=i[(eA+1)%16])>>>1|(F=r[(eA+1)%16])<<31)^(U>>>8|F<<24)^U>>>7,J+=65535&($=(F>>>1|U<<31)^(F>>>8|U<<24)^(F>>>7|U<<25)),Q+=$>>>16,X+=65535&q,ee+=q>>>16,q=((U=i[(eA+14)%16])>>>19|(F=r[(eA+14)%16])<<13)^(F>>>29|U<<3)^U>>>6,J+=65535&($=(F>>>19|U<<13)^(U>>>29|F<<3)^(F>>>6|U<<26)),Q+=$>>>16,X+=65535&q,ee+=q>>>16,Q+=J>>>16,X+=Q>>>16,ee+=X>>>16,i[eA]=65535&X|ee<<16,r[eA]=65535&J|Q<<16}q=et,J=65535&($=eb),Q=$>>>16,X=65535&q,ee=q>>>16,q=c[0],J+=65535&($=S[0]),Q+=$>>>16,X+=65535&q,ee+=q>>>16,Q+=J>>>16,X+=Q>>>16,ee+=X>>>16,c[0]=et=65535&X|ee<<16,S[0]=eb=65535&J|Q<<16,q=eo,J=65535&($=eI),Q=$>>>16,X=65535&q,ee=q>>>16,q=c[1],J+=65535&($=S[1]),Q+=$>>>16,X+=65535&q,ee+=q>>>16,Q+=J>>>16,X+=Q>>>16,ee+=X>>>16,c[1]=eo=65535&X|ee<<16,S[1]=eI=65535&J|Q<<16,q=ep,J=65535&($=eE),Q=$>>>16,X=65535&q,ee=q>>>16,q=c[2],J+=65535&($=S[2]),Q+=$>>>16,X+=65535&q,ee+=q>>>16,Q+=J>>>16,X+=Q>>>16,ee+=X>>>16,c[2]=ep=65535&X|ee<<16,S[2]=eE=65535&J|Q<<16,q=eg,J=65535&($=ex),Q=$>>>16,X=65535&q,ee=q>>>16,q=c[3],J+=65535&($=S[3]),Q+=$>>>16,X+=65535&q,ee+=q>>>16,Q+=J>>>16,X+=Q>>>16,ee+=X>>>16,c[3]=eg=65535&X|ee<<16,S[3]=ex=65535&J|Q<<16,q=ey,J=65535&($=eS),Q=$>>>16,X=65535&q,ee=q>>>16,q=c[4],J+=65535&($=S[4]),Q+=$>>>16,X+=65535&q,ee+=q>>>16,Q+=J>>>16,X+=Q>>>16,ee+=X>>>16,c[4]=ey=65535&X|ee<<16,S[4]=eS=65535&J|Q<<16,q=em,J=65535&($=eP),Q=$>>>16,X=65535&q,ee=q>>>16,q=c[5],J+=65535&($=S[5]),Q+=$>>>16,X+=65535&q,ee+=q>>>16,Q+=J>>>16,X+=Q>>>16,ee+=X>>>16,c[5]=em=65535&X|ee<<16,S[5]=eP=65535&J|Q<<16,q=e_,J=65535&($=eC),Q=$>>>16,X=65535&q,ee=q>>>16,q=c[6],J+=65535&($=S[6]),Q+=$>>>16,X+=65535&q,ee+=q>>>16,Q+=J>>>16,X+=Q>>>16,ee+=X>>>16,c[6]=e_=65535&X|ee<<16,S[6]=eC=65535&J|Q<<16,q=ew,J=65535&($=eO),Q=$>>>16,X=65535&q,ee=q>>>16,q=c[7],J+=65535&($=S[7]),Q+=$>>>16,X+=65535&q,ee+=q>>>16,Q+=J>>>16,X+=Q>>>16,ee+=X>>>16,c[7]=ew=65535&X|ee<<16,S[7]=eO=65535&J|Q<<16,R+=128,A-=128}return R}function hash(i){var r=new P;r.update(i);var c=r.digest();return r.clean(),c}r.hash=hash},79820:function(i,r,c){"use strict";let l;c.d(r,{EthereumProvider:function(){return i3}});var S=c(68495),P=c.n(S),C=c(86070);let R=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,A=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,q=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function jsonParseTransform(i,r){if("__proto__"===i||"constructor"===i&&r&&"object"==typeof r&&"prototype"in r){warnKeyDropped(i);return}return r}function warnKeyDropped(i){console.warn(`[destr] Dropping "${i}" key to prevent prototype pollution.`)}function destr(i,r={}){if("string"!=typeof i)return i;let c=i.trim();if('"'===i[0]&&'"'===i.at(-1)&&!i.includes("\\"))return c.slice(1,-1);if(c.length<=9){let i=c.toLowerCase();if("true"===i)return!0;if("false"===i)return!1;if("undefined"===i)return;if("null"===i)return null;if("nan"===i)return Number.NaN;if("infinity"===i)return Number.POSITIVE_INFINITY;if("-infinity"===i)return Number.NEGATIVE_INFINITY}if(!q.test(i)){if(r.strict)throw SyntaxError("[destr] Invalid JSON");return i}try{if(R.test(i)||A.test(i)){if(r.strict)throw Error("[destr] Possible prototype pollution");return JSON.parse(i,jsonParseTransform)}return JSON.parse(i)}catch(c){if(r.strict)throw c;return i}}var $=c(61900).Buffer;function wrapToPromise(i){return i&&"function"==typeof i.then?i:Promise.resolve(i)}function asyncCall(i,...r){try{return wrapToPromise(i(...r))}catch(i){return Promise.reject(i)}}function isPrimitive(i){let r=typeof i;return null===i||"object"!==r&&"function"!==r}function isPureObject(i){let r=Object.getPrototypeOf(i);return!r||r.isPrototypeOf(Object)}function stringify(i){if(isPrimitive(i))return String(i);if(isPureObject(i)||Array.isArray(i))return JSON.stringify(i);if("function"==typeof i.toJSON)return stringify(i.toJSON());throw Error("[unstorage] Cannot stringify value!")}let U="base64:";function serializeRaw(i){if("string"==typeof i)return i;let r=$.from(i).toString("base64");return U+r}function deserializeRaw(i){return"string"==typeof i&&i.startsWith(U)?$.from(i.slice(U.length),"base64"):i}function normalizeKey(i){return i?i.split("?")[0].replace(/[/\\]/g,":").replace(/:+/g,":").replace(/^:|:$/g,""):""}function joinKeys(...i){return normalizeKey(i.join(":"))}function unstorage_8581f561_normalizeBaseKey(i){return(i=normalizeKey(i))?i+":":""}function defineDriver(i){return i}let F=defineDriver(()=>{let i=new Map;return{name:"memory",options:{},hasItem:r=>i.has(r),getItem:r=>i.get(r)??null,getItemRaw:r=>i.get(r)??null,setItem(r,c){i.set(r,c)},setItemRaw(r,c){i.set(r,c)},removeItem(r){i.delete(r)},getKeys:()=>Array.from(i.keys()),clear(){i.clear()},dispose(){i.clear()}}});function createStorage(i={}){let r={mounts:{"":i.driver||F()},mountpoints:[""],watching:!1,watchListeners:[],unwatch:{}},getMount=i=>{for(let c of r.mountpoints)if(i.startsWith(c))return{base:c,relativeKey:i.slice(c.length),driver:r.mounts[c]};return{base:"",relativeKey:i,driver:r.mounts[""]}},getMounts=(i,c)=>r.mountpoints.filter(r=>r.startsWith(i)||c&&i.startsWith(r)).map(c=>({relativeBase:i.length>c.length?i.slice(c.length):void 0,mountpoint:c,driver:r.mounts[c]})),onChange=(i,c)=>{if(r.watching)for(let l of(c=normalizeKey(c),r.watchListeners))l(i,c)},startWatch=async()=>{if(!r.watching)for(let i in r.watching=!0,r.mounts)r.unwatch[i]=await watch(r.mounts[i],onChange,i)},stopWatch=async()=>{if(r.watching){for(let i in r.unwatch)await r.unwatch[i]();r.unwatch={},r.watching=!1}},runBatch=(i,r,c)=>{let l=new Map,getBatch=i=>{let r=l.get(i.base);return r||(r={driver:i.driver,base:i.base,items:[]},l.set(i.base,r)),r};for(let c of i){let i="string"==typeof c,l=normalizeKey(i?c:c.key),S=i?void 0:c.value,P=i||!c.options?r:{...r,...c.options},C=getMount(l);getBatch(C).items.push({key:l,value:S,relativeKey:C.relativeKey,options:P})}return Promise.all([...l.values()].map(i=>c(i))).then(i=>i.flat())},c={hasItem(i,r={}){i=normalizeKey(i);let{relativeKey:c,driver:l}=getMount(i);return asyncCall(l.hasItem,c,r)},getItem(i,r={}){i=normalizeKey(i);let{relativeKey:c,driver:l}=getMount(i);return asyncCall(l.getItem,c,r).then(i=>destr(i))},getItems:(i,r)=>runBatch(i,r,i=>i.driver.getItems?asyncCall(i.driver.getItems,i.items.map(i=>({key:i.relativeKey,options:i.options})),r).then(r=>r.map(r=>({key:joinKeys(i.base,r.key),value:destr(r.value)}))):Promise.all(i.items.map(r=>asyncCall(i.driver.getItem,r.relativeKey,r.options).then(i=>({key:r.key,value:destr(i)}))))),getItemRaw(i,r={}){i=normalizeKey(i);let{relativeKey:c,driver:l}=getMount(i);return l.getItemRaw?asyncCall(l.getItemRaw,c,r):asyncCall(l.getItem,c,r).then(i=>deserializeRaw(i))},async setItem(i,r,l={}){if(void 0===r)return c.removeItem(i);i=normalizeKey(i);let{relativeKey:S,driver:P}=getMount(i);P.setItem&&(await asyncCall(P.setItem,S,stringify(r),l),P.watch||onChange("update",i))},async setItems(i,r){await runBatch(i,r,async i=>{i.driver.setItems&&await asyncCall(i.driver.setItems,i.items.map(i=>({key:i.relativeKey,value:stringify(i.value),options:i.options})),r),i.driver.setItem&&await Promise.all(i.items.map(r=>asyncCall(i.driver.setItem,r.relativeKey,stringify(r.value),r.options)))})},async setItemRaw(i,r,l={}){if(void 0===r)return c.removeItem(i,l);i=normalizeKey(i);let{relativeKey:S,driver:P}=getMount(i);if(P.setItemRaw)await asyncCall(P.setItemRaw,S,r,l);else{if(!P.setItem)return;await asyncCall(P.setItem,S,serializeRaw(r),l)}P.watch||onChange("update",i)},async removeItem(i,r={}){"boolean"==typeof r&&(r={removeMeta:r}),i=normalizeKey(i);let{relativeKey:c,driver:l}=getMount(i);l.removeItem&&(await asyncCall(l.removeItem,c,r),(r.removeMeta||r.removeMata)&&await asyncCall(l.removeItem,c+"$",r),l.watch||onChange("remove",i))},async getMeta(i,r={}){"boolean"==typeof r&&(r={nativeOnly:r}),i=normalizeKey(i);let{relativeKey:c,driver:l}=getMount(i),S=Object.create(null);if(l.getMeta&&Object.assign(S,await asyncCall(l.getMeta,c,r)),!r.nativeOnly){let i=await asyncCall(l.getItem,c+"$",r).then(i=>destr(i));i&&"object"==typeof i&&("string"==typeof i.atime&&(i.atime=new Date(i.atime)),"string"==typeof i.mtime&&(i.mtime=new Date(i.mtime)),Object.assign(S,i))}return S},setMeta(i,r,c={}){return this.setItem(i+"$",r,c)},removeMeta(i,r={}){return this.removeItem(i+"$",r)},async getKeys(i,r={}){i=unstorage_8581f561_normalizeBaseKey(i);let c=getMounts(i,!0),l=[],S=[];for(let i of c){let c=await asyncCall(i.driver.getKeys,i.relativeBase,r),P=c.map(r=>i.mountpoint+normalizeKey(r)).filter(i=>!l.some(r=>i.startsWith(r)));S.push(...P),l=[i.mountpoint,...l.filter(r=>!r.startsWith(i.mountpoint))]}return i?S.filter(r=>r.startsWith(i)&&!r.endsWith("$")):S.filter(i=>!i.endsWith("$"))},async clear(i,r={}){i=unstorage_8581f561_normalizeBaseKey(i),await Promise.all(getMounts(i,!1).map(async i=>{if(i.driver.clear)return asyncCall(i.driver.clear,i.relativeBase,r);if(i.driver.removeItem){let c=await i.driver.getKeys(i.relativeBase||"",r);return Promise.all(c.map(c=>i.driver.removeItem(c,r)))}}))},async dispose(){await Promise.all(Object.values(r.mounts).map(i=>dispose(i)))},watch:async i=>(await startWatch(),r.watchListeners.push(i),async()=>{r.watchListeners=r.watchListeners.filter(r=>r!==i),0===r.watchListeners.length&&await stopWatch()}),async unwatch(){r.watchListeners=[],await stopWatch()},mount(i,l){if((i=unstorage_8581f561_normalizeBaseKey(i))&&r.mounts[i])throw Error(`already mounted at ${i}`);return i&&(r.mountpoints.push(i),r.mountpoints.sort((i,r)=>r.length-i.length)),r.mounts[i]=l,r.watching&&Promise.resolve(watch(l,onChange,i)).then(c=>{r.unwatch[i]=c}).catch(console.error),c},async unmount(i,c=!0){(i=unstorage_8581f561_normalizeBaseKey(i))&&r.mounts[i]&&(r.watching&&i in r.unwatch&&(r.unwatch[i](),delete r.unwatch[i]),c&&await dispose(r.mounts[i]),r.mountpoints=r.mountpoints.filter(r=>r!==i),delete r.mounts[i])},getMount(i=""){i=normalizeKey(i)+":";let r=getMount(i);return{driver:r.driver,base:r.base}},getMounts(i="",r={}){i=normalizeKey(i);let c=getMounts(i,r.parents);return c.map(i=>({driver:i.driver,base:i.mountpoint}))}};return c}function watch(i,r,c){return i.watch?i.watch((i,l)=>r(i,c+l)):()=>{}}async function dispose(i){"function"==typeof i.dispose&&await asyncCall(i.dispose)}function promisifyRequest(i){return new Promise((r,c)=>{i.oncomplete=i.onsuccess=()=>r(i.result),i.onabort=i.onerror=()=>c(i.error)})}function createStore(i,r){let c=indexedDB.open(i);c.onupgradeneeded=()=>c.result.createObjectStore(r);let l=promisifyRequest(c);return(i,c)=>l.then(l=>c(l.transaction(r,i).objectStore(r)))}function defaultGetStore(){return l||(l=createStore("keyval-store","keyval")),l}function get(i,r=defaultGetStore()){return r("readonly",r=>promisifyRequest(r.get(i)))}function set(i,r,c=defaultGetStore()){return c("readwrite",c=>(c.put(r,i),promisifyRequest(c.transaction)))}function del(i,r=defaultGetStore()){return r("readwrite",r=>(r.delete(i),promisifyRequest(r.transaction)))}function clear(i=defaultGetStore()){return i("readwrite",i=>(i.clear(),promisifyRequest(i.transaction)))}function eachCursor(i,r){return i.openCursor().onsuccess=function(){this.result&&(r(this.result),this.result.continue())},promisifyRequest(i.transaction)}function keys(i=defaultGetStore()){return i("readonly",i=>{if(i.getAllKeys)return promisifyRequest(i.getAllKeys());let r=[];return eachCursor(i,i=>r.push(i.key)).then(()=>r)})}var J=c(74087),z=(i={})=>{let r;let c=i.base&&i.base.length>0?`${i.base}:`:"",e=i=>c+i;return i.dbName&&i.storeName&&(r=createStore(i.dbName,i.storeName)),{name:"idb-keyval",options:i,hasItem:async i=>!(typeof await get(e(i),r)>"u"),getItem:async i=>await get(e(i),r)??null,setItem:(i,c)=>set(e(i),c,r),removeItem:i=>del(e(i),r),getKeys:()=>keys(r),clear:()=>clear(r)}};let _=class _{constructor(){this.indexedDb=createStorage({driver:z({dbName:"WALLET_CONNECT_V2_INDEXED_DB",storeName:"keyvaluestorage"})})}async getKeys(){return this.indexedDb.getKeys()}async getEntries(){return(await this.indexedDb.getItems(await this.indexedDb.getKeys())).map(i=>[i.key,i.value])}async getItem(i){let r=await this.indexedDb.getItem(i);if(null!==r)return r}async setItem(i,r){await this.indexedDb.setItem(i,(0,J.u)(r))}async removeItem(i){await this.indexedDb.removeItem(i)}};var Q="u">typeof globalThis?globalThis:"u">typeof window?window:"u">typeof c.g?c.g:"u">typeof self?self:{},X={exports:{}};function k(i){var r;return[i[0],(0,J.D)(null!=(r=i[1])?r:"")]}!function(){let i;function t(){}(i=t).prototype.getItem=function(i){return this.hasOwnProperty(i)?String(this[i]):null},i.prototype.setItem=function(i,r){this[i]=String(r)},i.prototype.removeItem=function(i){delete this[i]},i.prototype.clear=function(){let i=this;Object.keys(i).forEach(function(r){i[r]=void 0,delete i[r]})},i.prototype.key=function(i){return i=i||0,Object.keys(this)[i]},i.prototype.__defineGetter__("length",function(){return Object.keys(this).length}),"u">typeof Q&&Q.localStorage?X.exports=Q.localStorage:"u">typeof window&&window.localStorage?X.exports=window.localStorage:X.exports=new t}();let K=class K{constructor(){this.localStorage=X.exports}async getKeys(){return Object.keys(this.localStorage)}async getEntries(){return Object.entries(this.localStorage).map(k)}async getItem(i){let r=this.localStorage.getItem(i);if(null!==r)return(0,J.D)(r)}async setItem(i,r){this.localStorage.setItem(i,(0,J.u)(r))}async removeItem(i){this.localStorage.removeItem(i)}};let O=async(i,r,c)=>{let l="wc_storage_version",S=await r.getItem(l);if(S&&S>=1){c(r);return}let P=await i.getKeys();if(!P.length){c(r);return}let C=[];for(;P.length;){let c=P.shift();if(!c)continue;let l=c.toLowerCase();if(l.includes("wc@")||l.includes("walletconnect")||l.includes("wc_")||l.includes("wallet_connect")){let l=await i.getItem(c);await r.setItem(c,l),C.push(c)}}await r.setItem(l,1),c(r),j(i,C)},j=async(i,r)=>{r.length&&r.forEach(async r=>{await i.removeItem(r)})};let h=class h{constructor(){this.initialized=!1,this.setInitialized=i=>{this.storage=i,this.initialized=!0};let i=new K;this.storage=i;try{let r=new _;O(i,r,this.setInitialized)}catch{this.initialized=!0}}async getKeys(){return await this.initialize(),this.storage.getKeys()}async getEntries(){return await this.initialize(),this.storage.getEntries()}async getItem(i){return await this.initialize(),this.storage.getItem(i)}async setItem(i,r){return await this.initialize(),this.storage.setItem(i,r)}async removeItem(i){return await this.initialize(),this.storage.removeItem(i)}async initialize(){this.initialized||await new Promise(i=>{let r=setInterval(()=>{this.initialized&&(clearInterval(r),i())},20)})}};var ee=c(60118),et=c(11121),eo=c(13263);let n=class n extends eo.q{constructor(i){super(),this.opts=i,this.protocol="wc",this.version=2}};let index_es_h=class index_es_h extends eo.q{constructor(i,r){super(),this.core=i,this.logger=r,this.records=new Map}};let a=class a{constructor(i,r){this.logger=i,this.core=r}};let u=class u extends eo.q{constructor(i,r){super(),this.relayer=i,this.logger=r}};let g=class g extends eo.q{constructor(i){super()}};let p=class p{constructor(i,r,c,l){this.core=i,this.logger=r,this.name=c}};let d=class d extends eo.q{constructor(i,r){super(),this.relayer=i,this.logger=r}};let index_es_E=class index_es_E extends eo.q{constructor(i,r){super(),this.core=i,this.logger=r}};let index_es_y=class index_es_y{constructor(i,r){this.projectId=i,this.logger=r}};let v=class v{constructor(i,r){this.projectId=i,this.logger=r}};let b=class b{constructor(i){this.opts=i,this.protocol="wc",this.version=2}};let w=class w{constructor(i){this.client=i}};var ep=c(56867),eg=c(69790),ey=c(88316);let em="base64url",e_="base58btc";var ew=c(37839),eb=c(12559),eI=c(93089);function encodeJSON(i){return(0,eb.B)((0,eI.m)((0,J.u)(i),"utf8"),em)}function encodeIss(i){let r=(0,eI.m)("K36",e_),c="z"+(0,eb.B)((0,ew.z)([r,i]),e_);return["did","key",c].join(":")}function encodeSig(i){return(0,eb.B)(i,em)}function encodeData(i){return(0,eI.m)([encodeJSON(i.header),encodeJSON(i.payload)].join("."),"utf8")}function encodeJWT(i){return[encodeJSON(i.header),encodeJSON(i.payload),encodeSig(i.signature)].join(".")}function generateKeyPair(i=(0,eg.randomBytes)(32)){return ep._w(i)}async function signJWT(i,r,c,l,S=(0,ey.fromMiliseconds)(Date.now())){let P={alg:"EdDSA",typ:"JWT"},C=encodeIss(l.publicKey),R=S+c,A={iss:C,sub:i,aud:r,iat:S,exp:R},q=encodeData({header:P,payload:A}),$=ep.Xx(l.secretKey,q);return encodeJWT({header:P,payload:A,signature:$})}c(97947);var eE=c(27147),ex=c(87878),eS=c(78102);let index_es_b=()=>"u">typeof WebSocket||"u">typeof c.g&&"u">typeof c.g.WebSocket||"u">typeof window&&"u">typeof window.WebSocket||"u">typeof self&&"u">typeof self.WebSocket,index_es_a=i=>i.split("?")[0],eP="u">typeof WebSocket?WebSocket:"u">typeof c.g&&"u">typeof c.g.WebSocket?c.g.WebSocket:"u">typeof window&&"u">typeof window.WebSocket?window.WebSocket:"u">typeof self&&"u">typeof self.WebSocket?self.WebSocket:c(13361);let f=class f{constructor(i){if(this.url=i,this.events=new S.EventEmitter,this.registering=!1,!(0,eS.isWsUrl)(i))throw Error(`Provided URL is not compatible with WebSocket connection: ${i}`);this.url=i}get connected(){return"u">typeof this.socket}get connecting(){return this.registering}on(i,r){this.events.on(i,r)}once(i,r){this.events.once(i,r)}off(i,r){this.events.off(i,r)}removeListener(i,r){this.events.removeListener(i,r)}async open(i=this.url){await this.register(i)}async close(){return new Promise((i,r)=>{if(typeof this.socket>"u"){r(Error("Connection already closed"));return}this.socket.onclose=r=>{this.onClose(r),i()},this.socket.close()})}async send(i){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send((0,J.u)(i))}catch(r){this.onError(i.id,r)}}register(i=this.url){if(!(0,eS.isWsUrl)(i))throw Error(`Provided URL is not compatible with WebSocket connection: ${i}`);if(this.registering){let i=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=i||this.events.listenerCount("open")>=i)&&this.events.setMaxListeners(i+1),new Promise((i,r)=>{this.events.once("register_error",i=>{this.resetMaxListeners(),r(i)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return r(Error("WebSocket connection is missing or invalid"));i(this.socket)})})}return this.url=i,this.registering=!0,new Promise((r,c)=>{let l=new URLSearchParams(i).get("origin"),S=(0,eS.isReactNative)()?{headers:{origin:l}}:{rejectUnauthorized:!(0,eS.isLocalhostUrl)(i)},P=new eP(i,[],S);index_es_b()?P.onerror=i=>{c(this.emitError(i.error))}:P.on("error",i=>{c(this.emitError(i))}),P.onopen=()=>{this.onOpen(P),r(P)}})}onOpen(i){i.onmessage=i=>this.onPayload(i),i.onclose=i=>this.onClose(i),this.socket=i,this.registering=!1,this.events.emit("open")}onClose(i){this.socket=void 0,this.registering=!1,this.events.emit("close",i)}onPayload(i){if(typeof i.data>"u")return;let r="string"==typeof i.data?(0,J.D)(i.data):i.data;this.events.emit("payload",r)}onError(i,r){let c=this.parseError(r),l=c.message||c.toString(),S=(0,eS.formatJsonRpcError)(i,l);this.events.emit("payload",S)}parseError(i,r=this.url){return(0,eS.parseConnectionError)(i,index_es_a(r),"WS")}resetMaxListeners(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}emitError(i){let r=this.parseError(Error(i?.message||`WebSocket connection failed for host: ${index_es_a(this.url)}`));return this.events.emit("register_error",r),r}};var eC=c(36657),eO=c.n(eC),eR=c(18805),eA=c.n(eR),eN=c(28070),Ji=function(i,r){if(i.length>=255)throw TypeError("Alphabet too long");for(var c=new Uint8Array(256),l=0;l>>0,C=new Uint8Array(P);i[r];){var $=c[i.charCodeAt(r)];if(255===$)return;for(var U=0,F=P-1;(0!==$||U>>0,C[F]=$%256>>>0,$=$/256>>>0;if(0!==$)throw Error("Non-zero carry");S=U,r++}if(" "!==i[r]){for(var J=P-S;J!==P&&0===C[J];)J++;for(var Q=new Uint8Array(l+(P-J)),X=l;J!==P;)Q[X++]=C[J++];return Q}}}function M(i){var c=y(i);if(c)return c;throw Error(`Non-${r} character`)}return{encode:function(r){if(r instanceof Uint8Array||(ArrayBuffer.isView(r)?r=new Uint8Array(r.buffer,r.byteOffset,r.byteLength):Array.isArray(r)&&(r=Uint8Array.from(r))),!(r instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(0===r.length)return"";for(var c=0,l=0,S=0,P=r.length;S!==P&&0===r[S];)S++,c++;for(var C=(P-S)*$+1>>>0,q=new Uint8Array(C);S!==P;){for(var U=r[S],F=0,J=C-1;(0!==U||F>>0,q[J]=U%R>>>0,U=U/R>>>0;if(0!==U)throw Error("Non-zero carry");l=F,S++}for(var Q=C-l;Q!==C&&0===q[Q];)Q++;for(var X=A.repeat(c);Q{if(i instanceof Uint8Array&&"Uint8Array"===i.constructor.name)return i;if(i instanceof ArrayBuffer)return new Uint8Array(i);if(ArrayBuffer.isView(i))return new Uint8Array(i.buffer,i.byteOffset,i.byteLength);throw Error("Unknown type, must be binary type")},Wi=i=>new TextEncoder().encode(i),Qi=i=>new TextDecoder().decode(i);let Zi=class Zi{constructor(i,r,c){this.name=i,this.prefix=r,this.baseEncode=c}encode(i){if(i instanceof Uint8Array)return`${this.prefix}${this.baseEncode(i)}`;throw Error("Unknown type, must be binary type")}};let es=class es{constructor(i,r,c){if(this.name=i,this.prefix=r,void 0===r.codePointAt(0))throw Error("Invalid prefix character");this.prefixCodePoint=r.codePointAt(0),this.baseDecode=c}decode(i){if("string"==typeof i){if(i.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(i)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(i.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(i){return Ue(this,i)}};let ts=class ts{constructor(i){this.decoders=i}or(i){return Ue(this,i)}decode(i){let r=i[0],c=this.decoders[r];if(c)return c.decode(i);throw RangeError(`Unable to decode multibase string ${JSON.stringify(i)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}};let Ue=(i,r)=>new ts({...i.decoders||{[i.prefix]:i},...r.decoders||{[r.prefix]:r}});let is=class is{constructor(i,r,c,l){this.name=i,this.prefix=r,this.baseEncode=c,this.baseDecode=l,this.encoder=new Zi(i,r,c),this.decoder=new es(i,r,l)}encode(i){return this.encoder.encode(i)}decode(i){return this.decoder.decode(i)}};let W=({name:i,prefix:r,encode:c,decode:l})=>new is(i,r,c,l),B=({prefix:i,name:r,alphabet:c})=>{let{encode:l,decode:S}=Ji(c,r);return W({prefix:i,name:r,encode:l,decode:i=>Ne(S(i))})},ss=(i,r,c,l)=>{let S={};for(let i=0;i=8&&(R-=8,C[q++]=255&A>>R)}if(R>=c||255&A<<8-R)throw SyntaxError("Unexpected end of data");return C},rs=(i,r,c)=>{let l="="===r[r.length-1],S=(1<c;)C-=c,P+=r[S&R>>C];if(C&&(P+=r[S&R<W({prefix:r,name:i,encode:i=>rs(i,l,c),decode:r=>ss(r,l,c,i)}),eL=W({prefix:"\x00",name:"identity",encode:i=>Qi(i),decode:i=>Wi(i)});var ej=Object.freeze({__proto__:null,identity:eL});let eT=index_es_g({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var ez=Object.freeze({__proto__:null,base2:eT});let eD=index_es_g({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var ek=Object.freeze({__proto__:null,base8:eD});let eM=B({prefix:"9",name:"base10",alphabet:"0123456789"});var eH=Object.freeze({__proto__:null,base10:eM});let e$=index_es_g({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),eU=index_es_g({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var eK=Object.freeze({__proto__:null,base16:e$,base16upper:eU});let eV=index_es_g({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),eB=index_es_g({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),eG=index_es_g({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),eW=index_es_g({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),eZ=index_es_g({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),eF=index_es_g({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),eJ=index_es_g({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),eY=index_es_g({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),eQ=index_es_g({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var eX=Object.freeze({__proto__:null,base32:eV,base32upper:eB,base32pad:eG,base32padupper:eW,base32hex:eZ,base32hexupper:eF,base32hexpad:eJ,base32hexpadupper:eY,base32z:eQ});let e0=B({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),e1=B({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var e5=Object.freeze({__proto__:null,base36:e0,base36upper:e1});let e6=B({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),e2=B({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var e3=Object.freeze({__proto__:null,base58btc:e6,base58flickr:e2});let e9=index_es_g({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),e8=index_es_g({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),e4=index_es_g({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),e7=index_es_g({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var tn=Object.freeze({__proto__:null,base64:e9,base64pad:e8,base64url:e4,base64urlpad:e7});let ta=Array.from("\uD83D\uDE80\uD83E\uDE90☄\uD83D\uDEF0\uD83C\uDF0C\uD83C\uDF11\uD83C\uDF12\uD83C\uDF13\uD83C\uDF14\uD83C\uDF15\uD83C\uDF16\uD83C\uDF17\uD83C\uDF18\uD83C\uDF0D\uD83C\uDF0F\uD83C\uDF0E\uD83D\uDC09☀\uD83D\uDCBB\uD83D\uDDA5\uD83D\uDCBE\uD83D\uDCBF\uD83D\uDE02❤\uD83D\uDE0D\uD83E\uDD23\uD83D\uDE0A\uD83D\uDE4F\uD83D\uDC95\uD83D\uDE2D\uD83D\uDE18\uD83D\uDC4D\uD83D\uDE05\uD83D\uDC4F\uD83D\uDE01\uD83D\uDD25\uD83E\uDD70\uD83D\uDC94\uD83D\uDC96\uD83D\uDC99\uD83D\uDE22\uD83E\uDD14\uD83D\uDE06\uD83D\uDE44\uD83D\uDCAA\uD83D\uDE09☺\uD83D\uDC4C\uD83E\uDD17\uD83D\uDC9C\uD83D\uDE14\uD83D\uDE0E\uD83D\uDE07\uD83C\uDF39\uD83E\uDD26\uD83C\uDF89\uD83D\uDC9E✌✨\uD83E\uDD37\uD83D\uDE31\uD83D\uDE0C\uD83C\uDF38\uD83D\uDE4C\uD83D\uDE0B\uD83D\uDC97\uD83D\uDC9A\uD83D\uDE0F\uD83D\uDC9B\uD83D\uDE42\uD83D\uDC93\uD83E\uDD29\uD83D\uDE04\uD83D\uDE00\uD83D\uDDA4\uD83D\uDE03\uD83D\uDCAF\uD83D\uDE48\uD83D\uDC47\uD83C\uDFB6\uD83D\uDE12\uD83E\uDD2D❣\uD83D\uDE1C\uD83D\uDC8B\uD83D\uDC40\uD83D\uDE2A\uD83D\uDE11\uD83D\uDCA5\uD83D\uDE4B\uD83D\uDE1E\uD83D\uDE29\uD83D\uDE21\uD83E\uDD2A\uD83D\uDC4A\uD83E\uDD73\uD83D\uDE25\uD83E\uDD24\uD83D\uDC49\uD83D\uDC83\uD83D\uDE33✋\uD83D\uDE1A\uD83D\uDE1D\uD83D\uDE34\uD83C\uDF1F\uD83D\uDE2C\uD83D\uDE43\uD83C\uDF40\uD83C\uDF37\uD83D\uDE3B\uD83D\uDE13⭐✅\uD83E\uDD7A\uD83C\uDF08\uD83D\uDE08\uD83E\uDD18\uD83D\uDCA6✔\uD83D\uDE23\uD83C\uDFC3\uD83D\uDC90☹\uD83C\uDF8A\uD83D\uDC98\uD83D\uDE20☝\uD83D\uDE15\uD83C\uDF3A\uD83C\uDF82\uD83C\uDF3B\uD83D\uDE10\uD83D\uDD95\uD83D\uDC9D\uD83D\uDE4A\uD83D\uDE39\uD83D\uDDE3\uD83D\uDCAB\uD83D\uDC80\uD83D\uDC51\uD83C\uDFB5\uD83E\uDD1E\uD83D\uDE1B\uD83D\uDD34\uD83D\uDE24\uD83C\uDF3C\uD83D\uDE2B⚽\uD83E\uDD19☕\uD83C\uDFC6\uD83E\uDD2B\uD83D\uDC48\uD83D\uDE2E\uD83D\uDE46\uD83C\uDF7B\uD83C\uDF43\uD83D\uDC36\uD83D\uDC81\uD83D\uDE32\uD83C\uDF3F\uD83E\uDDE1\uD83C\uDF81⚡\uD83C\uDF1E\uD83C\uDF88❌✊\uD83D\uDC4B\uD83D\uDE30\uD83E\uDD28\uD83D\uDE36\uD83E\uDD1D\uD83D\uDEB6\uD83D\uDCB0\uD83C\uDF53\uD83D\uDCA2\uD83E\uDD1F\uD83D\uDE41\uD83D\uDEA8\uD83D\uDCA8\uD83E\uDD2C✈\uD83C\uDF80\uD83C\uDF7A\uD83E\uDD13\uD83D\uDE19\uD83D\uDC9F\uD83C\uDF31\uD83D\uDE16\uD83D\uDC76\uD83E\uDD74▶➡❓\uD83D\uDC8E\uD83D\uDCB8⬇\uD83D\uDE28\uD83C\uDF1A\uD83E\uDD8B\uD83D\uDE37\uD83D\uDD7A⚠\uD83D\uDE45\uD83D\uDE1F\uD83D\uDE35\uD83D\uDC4E\uD83E\uDD32\uD83E\uDD20\uD83E\uDD27\uD83D\uDCCC\uD83D\uDD35\uD83D\uDC85\uD83E\uDDD0\uD83D\uDC3E\uD83C\uDF52\uD83D\uDE17\uD83E\uDD11\uD83C\uDF0A\uD83E\uDD2F\uD83D\uDC37☎\uD83D\uDCA7\uD83D\uDE2F\uD83D\uDC86\uD83D\uDC46\uD83C\uDFA4\uD83D\uDE47\uD83C\uDF51❄\uD83C\uDF34\uD83D\uDCA3\uD83D\uDC38\uD83D\uDC8C\uD83D\uDCCD\uD83E\uDD40\uD83E\uDD22\uD83D\uDC45\uD83D\uDCA1\uD83D\uDCA9\uD83D\uDC50\uD83D\uDCF8\uD83D\uDC7B\uD83E\uDD10\uD83E\uDD2E\uD83C\uDFBC\uD83E\uDD75\uD83D\uDEA9\uD83C\uDF4E\uD83C\uDF4A\uD83D\uDC7C\uD83D\uDC8D\uD83D\uDCE3\uD83E\uDD42"),to=ta.reduce((i,r,c)=>(i[c]=r,i),[]),tp=ta.reduce((i,r,c)=>(i[r.codePointAt(0)]=c,i),[]);function Ms(i){return i.reduce((i,r)=>i+=to[r],"")}function ks(i){let r=[];for(let c of i){let i=tp[c.codePointAt(0)];if(void 0===i)throw Error(`Non-base256emoji character: ${c}`);r.push(i)}return new Uint8Array(r)}let ty=W({prefix:"\uD83D\uDE80",name:"base256emoji",encode:Ms,decode:ks});var tm=Object.freeze({__proto__:null,base256emoji:ty});function $e(i,r,c){r=r||[],c=c||0;for(var l=c;i>=2147483648;)r[c++]=255&i|128,i/=128;for(;-128&i;)r[c++]=255&i|128,i>>>=7;return r[c]=0|i,$e.bytes=c-l+1,r}function he(i,r){var c,l=0,r=r||0,S=0,P=r,C=i.length;do{if(P>=C)throw he.bytes=0,RangeError("Could not decode varint");c=i[P++],l+=S<28?(127&c)<=128);return he.bytes=P-r,l}var t_={encode:$e,decode:he,encodingLength:function(i){return i<128?1:i<16384?2:i<2097152?3:i<268435456?4:i<34359738368?5:i<4398046511104?6:i<562949953421312?7:i<72057594037927940?8:i<0x7fffffffffffffff?9:10}};let Ke=(i,r,c=0)=>(t_.encode(i,r,c),r),Be=i=>t_.encodingLength(i),ce=(i,r)=>{let c=r.byteLength,l=Be(i),S=l+Be(c),P=new Uint8Array(S+c);return Ke(i,P,0),Ke(c,P,l),P.set(r,S),new or(i,c,r,P)};let or=class or{constructor(i,r,c,l){this.code=i,this.size=r,this.digest=c,this.bytes=l}};let Ve=({name:i,code:r,encode:c})=>new ar(i,r,c);let ar=class ar{constructor(i,r,c){this.name=i,this.code=r,this.encode=c}digest(i){if(i instanceof Uint8Array){let r=this.encode(i);return r instanceof Uint8Array?ce(this.code,r):r.then(i=>ce(this.code,i))}throw Error("Unknown type, must be binary type")}};let je=i=>async r=>new Uint8Array(await crypto.subtle.digest(i,r)),tw=Ve({name:"sha2-256",code:18,encode:je("SHA-256")}),tb=Ve({name:"sha2-512",code:19,encode:je("SHA-512")});var tI=Object.freeze({__proto__:null,sha256:tw,sha512:tb}),tE=Object.freeze({__proto__:null,identity:{code:0,name:"identity",encode:Ne,digest:i=>ce(0,Ne(i))}});new TextEncoder,new TextDecoder;let tx={...ej,...ez,...ek,...eH,...eK,...eX,...e5,...e3,...tn,...tm};function He(i){return null!=globalThis.Buffer?new Uint8Array(i.buffer,i.byteOffset,i.byteLength):i}function Dr(i=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?He(globalThis.Buffer.allocUnsafe(i)):new Uint8Array(i)}function Je(i,r,c,l){return{name:i,prefix:r,encoder:{name:i,prefix:r,encode:c},decoder:{decode:l}}}({...tI,...tE});let tS=Je("utf8","u",i=>"u"+new TextDecoder("utf8").decode(i),i=>new TextEncoder().encode(i.substring(1))),tP=Je("ascii","a",i=>{let r="a";for(let c=0;c{i=i.substring(1);let r=Dr(i.length);for(let c=0;c{if(!this.initialized){let i=await this.getKeyChain();"u">typeof i&&(this.keychain=i),this.initialized=!0}},this.has=i=>(this.isInitialized(),this.keychain.has(i)),this.set=async(i,r)=>{this.isInitialized(),this.keychain.set(i,r),await this.persist()},this.get=i=>{this.isInitialized();let r=this.keychain.get(i);if(typeof r>"u"){let{message:r}=(0,C.Z7)("NO_MATCHING_KEY",`${this.name}: ${i}`);throw Error(r)}return r},this.del=async i=>{this.isInitialized(),this.keychain.delete(i),await this.persist()},this.core=i,this.logger=(0,et.generateChildLogger)(r,this.name)}get context(){return(0,et.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setKeyChain(i){await this.core.storage.setItem(this.storageKey,(0,C.KC)(i))}async getKeyChain(){let i=await this.core.storage.getItem(this.storageKey);return"u">typeof i?(0,C.IP)(i):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){let{message:i}=(0,C.Z7)("NOT_INITIALIZED",this.name);throw Error(i)}}};let xt=class xt{constructor(i,r,c){this.core=i,this.logger=r,this.name="crypto",this.initialized=!1,this.init=async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)},this.hasKeys=i=>(this.isInitialized(),this.keychain.has(i)),this.getClientId=async()=>{this.isInitialized();let i=await this.getClientSeed(),r=generateKeyPair(i);return encodeIss(r.publicKey)},this.generateKeyPair=()=>{this.isInitialized();let i=(0,C.Au)();return this.setPrivateKey(i.publicKey,i.privateKey)},this.signJWT=async i=>{this.isInitialized();let r=await this.getClientSeed(),c=generateKeyPair(r),l=(0,C.jd)();return await signJWT(l,i,tj,c)},this.generateSharedKey=(i,r,c)=>{this.isInitialized();let l=this.getPrivateKey(i),S=(0,C.m$)(l,r);return this.setSymKey(S,c)},this.setSymKey=async(i,r)=>{this.isInitialized();let c=r||(0,C.Ym)(i);return await this.keychain.set(c,i),c},this.deleteKeyPair=async i=>{this.isInitialized(),await this.keychain.del(i)},this.deleteSymKey=async i=>{this.isInitialized(),await this.keychain.del(i)},this.encode=async(i,r,c)=>{this.isInitialized();let l=(0,C.EN)(c),S=(0,J.u)(r);if((0,C.Q8)(l)){let r=l.senderPublicKey,c=l.receiverPublicKey;i=await this.generateSharedKey(r,c)}let P=this.getSymKey(i),{type:R,senderPublicKey:A}=l;return(0,C.HI)({type:R,symKey:P,message:S,senderPublicKey:A})},this.decode=async(i,r,c)=>{this.isInitialized();let l=(0,C.Ll)(r,c);if((0,C.Q8)(l)){let r=l.receiverPublicKey,c=l.senderPublicKey;i=await this.generateSharedKey(r,c)}try{let c=this.getSymKey(i),l=(0,C.pe)({symKey:c,encoded:r});return(0,J.D)(l)}catch(r){this.logger.error(`Failed to decode message from topic: '${i}', clientId: '${await this.getClientId()}'`),this.logger.error(r)}},this.getPayloadType=i=>{let r=(0,C.vB)(i);return(0,C.WG)(r.type)},this.getPayloadSenderPublicKey=i=>{let r=(0,C.vB)(i);return r.senderPublicKey?(0,eE.BB)(r.senderPublicKey,C.AW):void 0},this.core=i,this.logger=(0,et.generateChildLogger)(r,this.name),this.keychain=c||new Pt(this.core,this.logger)}get context(){return(0,et.getLoggerContext)(this.logger)}async setPrivateKey(i,r){return await this.keychain.set(i,r),i}getPrivateKey(i){return this.keychain.get(i)}async getClientSeed(){let i="";try{i=this.keychain.get(tL)}catch{i=(0,C.jd)(),await this.keychain.set(tL,i)}return mr(i,"base16")}getSymKey(i){return this.keychain.get(i)}isInitialized(){if(!this.initialized){let{message:i}=(0,C.Z7)("NOT_INITIALIZED",this.name);throw Error(i)}}};let Ot=class Ot extends a{constructor(i,r){super(i,r),this.logger=i,this.core=r,this.messages=new Map,this.name="messages",this.version="0.3",this.initialized=!1,this.storagePrefix=tR,this.init=async()=>{if(!this.initialized){this.logger.trace("Initialized");try{let i=await this.getRelayerMessages();"u">typeof i&&(this.messages=i),this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",size:this.messages.size})}catch(i){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(i)}finally{this.initialized=!0}}},this.set=async(i,r)=>{this.isInitialized();let c=(0,C.rj)(r),l=this.messages.get(i);return typeof l>"u"&&(l={}),"u">typeof l[c]||(l[c]=r,this.messages.set(i,l),await this.persist()),c},this.get=i=>{this.isInitialized();let r=this.messages.get(i);return typeof r>"u"&&(r={}),r},this.has=(i,r)=>{this.isInitialized();let c=this.get(i),l=(0,C.rj)(r);return"u">typeof c[l]},this.del=async i=>{this.isInitialized(),this.messages.delete(i),await this.persist()},this.logger=(0,et.generateChildLogger)(i,this.name),this.core=r}get context(){return(0,et.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setRelayerMessages(i){await this.core.storage.setItem(this.storageKey,(0,C.KC)(i))}async getRelayerMessages(){let i=await this.core.storage.getItem(this.storageKey);return"u">typeof i?(0,C.IP)(i):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){let{message:i}=(0,C.Z7)("NOT_INITIALIZED",this.name);throw Error(i)}}};let vr=class vr extends u{constructor(i,r){super(i,r),this.relayer=i,this.logger=r,this.events=new S.EventEmitter,this.name="publisher",this.queue=new Map,this.publishTimeout=(0,ey.toMiliseconds)(ey.TEN_SECONDS),this.needsTransportRestart=!1,this.publish=async(i,r,c)=>{var l;this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:i,message:r,opts:c}});try{let S=c?.ttl||tT,P=(0,C._H)(c),R=c?.prompt||!1,A=c?.tag||0,q=c?.id||(0,eS.getBigIntRpcId)().toString(),$={topic:i,message:r,opts:{ttl:S,relay:P,prompt:R,tag:A,id:q}},U=setTimeout(()=>this.queue.set(q,$),this.publishTimeout);try{await await (0,C.hF)(this.rpcPublish(i,r,S,P,R,A,q),this.publishTimeout,"Failed to publish payload, please try again."),this.removeRequestFromQueue(q),this.relayer.events.emit(tD.publish,$)}catch(i){if(this.logger.debug("Publishing Payload stalled"),this.needsTransportRestart=!0,null!=(l=c?.internal)&&l.throwOnFailedPublish)throw this.removeRequestFromQueue(q),i;return}finally{clearTimeout(U)}this.logger.debug("Successfully Published Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:i,message:r,opts:c}})}catch(i){throw this.logger.debug("Failed to Publish Payload"),this.logger.error(i),i}},this.on=(i,r)=>{this.events.on(i,r)},this.once=(i,r)=>{this.events.once(i,r)},this.off=(i,r)=>{this.events.off(i,r)},this.removeListener=(i,r)=>{this.events.removeListener(i,r)},this.relayer=i,this.logger=(0,et.generateChildLogger)(r,this.name),this.registerEventListeners()}get context(){return(0,et.getLoggerContext)(this.logger)}rpcPublish(i,r,c,l,S,P,R){var A,q,$,U;let F={method:(0,C.cO)(l.protocol).publish,params:{topic:i,message:r,ttl:c,prompt:S,tag:P},id:R};return(0,C.o8)(null==(A=F.params)?void 0:A.prompt)&&(null==(q=F.params)||delete q.prompt),(0,C.o8)(null==($=F.params)?void 0:$.tag)&&(null==(U=F.params)||delete U.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:F}),this.relayer.request(F)}removeRequestFromQueue(i){this.queue.delete(i)}checkQueue(){this.queue.forEach(async i=>{let{topic:r,message:c,opts:l}=i;await this.publish(r,c,l)})}registerEventListeners(){this.relayer.core.heartbeat.on(ee.HEARTBEAT_EVENTS.pulse,()=>{if(this.needsTransportRestart){this.needsTransportRestart=!1,this.relayer.events.emit(tD.connection_stalled);return}this.checkQueue()}),this.relayer.on(tD.message_ack,i=>{this.removeRequestFromQueue(i.id.toString())})}};let Ir=class Ir{constructor(){this.map=new Map,this.set=(i,r)=>{let c=this.get(i);this.exists(i,r)||this.map.set(i,[...c,r])},this.get=i=>this.map.get(i)||[],this.exists=(i,r)=>this.get(i).includes(r),this.delete=(i,r)=>{if(typeof r>"u"){this.map.delete(i);return}if(!this.map.has(i))return;let c=this.get(i);if(!this.exists(i,r))return;let l=c.filter(i=>i!==r);if(!l.length){this.map.delete(i);return}this.map.set(i,l)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}};var tJ=Object.defineProperty,tY=Object.defineProperties,tQ=Object.getOwnPropertyDescriptors,tX=Object.getOwnPropertySymbols,t0=Object.prototype.hasOwnProperty,t1=Object.prototype.propertyIsEnumerable,zt=(i,r,c)=>r in i?tJ(i,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):i[r]=c,index_es_j=(i,r)=>{for(var c in r||(r={}))t0.call(r,c)&&zt(i,c,r[c]);if(tX)for(var c of tX(r))t1.call(r,c)&&zt(i,c,r[c]);return i},De=(i,r)=>tY(i,tQ(r));let Nt=class Nt extends d{constructor(i,r){super(i,r),this.relayer=i,this.logger=r,this.subscriptions=new Map,this.topicMap=new Ir,this.events=new S.EventEmitter,this.name="subscription",this.version="0.3",this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pollingInterval=20,this.storagePrefix=tR,this.subscribeTimeout=1e4,this.restartInProgress=!1,this.batchSubscribeTopicsLimit=500,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),this.registerEventListeners(),this.clientId=await this.relayer.core.crypto.getClientId())},this.subscribe=async(i,r)=>{await this.restartToComplete(),this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:i,opts:r}});try{let c=(0,C._H)(r),l={topic:i,relay:c};this.pending.set(i,l);let S=await this.rpcSubscribe(i,c);return this.onSubscribe(S,l),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:i,opts:r}}),S}catch(i){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(i),i}},this.unsubscribe=async(i,r)=>{await this.restartToComplete(),this.isInitialized(),"u">typeof r?.id?await this.unsubscribeById(i,r.id,r):await this.unsubscribeByTopic(i,r)},this.isSubscribed=async i=>!!this.topics.includes(i)||await new Promise((r,c)=>{let l=new ey.Watch;l.start(this.pendingSubscriptionWatchLabel);let S=setInterval(()=>{!this.pending.has(i)&&this.topics.includes(i)&&(clearInterval(S),l.stop(this.pendingSubscriptionWatchLabel),r(!0)),l.elapsed(this.pendingSubscriptionWatchLabel)>=t$&&(clearInterval(S),l.stop(this.pendingSubscriptionWatchLabel),c(Error("Subscription resolution timeout")))},this.pollingInterval)}).catch(()=>!1),this.on=(i,r)=>{this.events.on(i,r)},this.once=(i,r)=>{this.events.once(i,r)},this.off=(i,r)=>{this.events.off(i,r)},this.removeListener=(i,r)=>{this.events.removeListener(i,r)},this.restart=async()=>{this.restartInProgress=!0,await this.restore(),await this.reset(),this.restartInProgress=!1},this.relayer=i,this.logger=(0,et.generateChildLogger)(r,this.name),this.clientId=""}get context(){return(0,et.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.relayer.core.customStoragePrefix+"//"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}hasSubscription(i,r){let c=!1;try{c=this.getSubscription(i).topic===r}catch{}return c}onEnable(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear()}async unsubscribeByTopic(i,r){let c=this.topicMap.get(i);await Promise.all(c.map(async c=>await this.unsubscribeById(i,c,r)))}async unsubscribeById(i,r,c){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:i,id:r,opts:c}});try{let l=(0,C._H)(c);await this.rpcUnsubscribe(i,r,l);let S=(0,C.D6)("USER_DISCONNECTED",`${this.name}, ${i}`);await this.onUnsubscribe(i,r,S),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:i,id:r,opts:c}})}catch(i){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(i),i}}async rpcSubscribe(i,r){let c={method:(0,C.cO)(r.protocol).subscribe,params:{topic:i}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:c});try{await await (0,C.hF)(this.relayer.request(c),this.subscribeTimeout)}catch{this.logger.debug("Outgoing Relay Subscribe Payload stalled"),this.relayer.events.emit(tD.connection_stalled)}return(0,C.rj)(i+this.clientId)}async rpcBatchSubscribe(i){if(!i.length)return;let r=i[0].relay,c={method:(0,C.cO)(r.protocol).batchSubscribe,params:{topics:i.map(i=>i.topic)}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:c});try{return await await (0,C.hF)(this.relayer.request(c),this.subscribeTimeout)}catch{this.logger.debug("Outgoing Relay Payload stalled"),this.relayer.events.emit(tD.connection_stalled)}}rpcUnsubscribe(i,r,c){let l={method:(0,C.cO)(c.protocol).unsubscribe,params:{topic:i,id:r}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:l}),this.relayer.request(l)}onSubscribe(i,r){this.setSubscription(i,De(index_es_j({},r),{id:i})),this.pending.delete(r.topic)}onBatchSubscribe(i){i.length&&i.forEach(i=>{this.setSubscription(i.id,index_es_j({},i)),this.pending.delete(i.topic)})}async onUnsubscribe(i,r,c){this.events.removeAllListeners(r),this.hasSubscription(r,i)&&this.deleteSubscription(r,c),await this.relayer.messages.del(i)}async setRelayerSubscriptions(i){await this.relayer.core.storage.setItem(this.storageKey,i)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(i,r){this.subscriptions.has(i)||(this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:i,subscription:r}),this.addSubscription(i,r))}addSubscription(i,r){this.subscriptions.set(i,index_es_j({},r)),this.topicMap.set(r.topic,i),this.events.emit(tH.created,r)}getSubscription(i){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:i});let r=this.subscriptions.get(i);if(!r){let{message:r}=(0,C.Z7)("NO_MATCHING_KEY",`${this.name}: ${i}`);throw Error(r)}return r}deleteSubscription(i,r){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:i,reason:r});let c=this.getSubscription(i);this.subscriptions.delete(i),this.topicMap.delete(c.topic,i),this.events.emit(tH.deleted,De(index_es_j({},c),{reason:r}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit(tH.sync)}async reset(){if(this.cached.length){let i=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit);for(let r=0;r"u"||!i.length)return;if(this.subscriptions.size){let{message:i}=(0,C.Z7)("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(i),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),Error(i)}this.cached=i,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(i){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(i)}}async batchSubscribe(i){if(!i.length)return;let r=await this.rpcBatchSubscribe(i);(0,C.qt)(r)&&this.onBatchSubscribe(r.map((r,c)=>De(index_es_j({},i[c]),{id:r})))}async onConnect(){this.restartInProgress||(await this.restart(),this.onEnable())}onDisconnect(){this.onDisable()}async checkPending(){if(!this.initialized||this.relayer.transportExplicitlyClosed)return;let i=[];this.pending.forEach(r=>{i.push(r)}),await this.batchSubscribe(i)}registerEventListeners(){this.relayer.core.heartbeat.on(ee.HEARTBEAT_EVENTS.pulse,async()=>{await this.checkPending()}),this.relayer.on(tD.connect,async()=>{await this.onConnect()}),this.relayer.on(tD.disconnect,()=>{this.onDisconnect()}),this.events.on(tH.created,async i=>{let r=tH.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:i}),await this.persist()}),this.events.on(tH.deleted,async i=>{let r=tH.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:i}),await this.persist()})}isInitialized(){if(!this.initialized){let{message:i}=(0,C.Z7)("NOT_INITIALIZED",this.name);throw Error(i)}}async restartToComplete(){this.restartInProgress&&await new Promise(i=>{let r=setInterval(()=>{this.restartInProgress||(clearInterval(r),i())},this.pollingInterval)})}};var t5=Object.defineProperty,t6=Object.getOwnPropertySymbols,t2=Object.prototype.hasOwnProperty,t3=Object.prototype.propertyIsEnumerable,Lt=(i,r,c)=>r in i?t5(i,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):i[r]=c,Ar=(i,r)=>{for(var c in r||(r={}))t2.call(r,c)&&Lt(i,c,r[c]);if(t6)for(var c of t6(r))t3.call(r,c)&&Lt(i,c,r[c]);return i};let Ft=class Ft extends g{constructor(i){super(i),this.protocol="wc",this.version=2,this.events=new S.EventEmitter,this.name="relayer",this.transportExplicitlyClosed=!1,this.initialized=!1,this.connectionAttemptInProgress=!1,this.connectionStatusPollingInterval=20,this.staleConnectionErrors=["socket hang up","socket stalled"],this.hasExperiencedNetworkDisruption=!1,this.request=async i=>{this.logger.debug("Publishing Request Payload");try{return await this.toEstablishConnection(),await this.provider.request(i)}catch(i){throw this.logger.debug("Failed to Publish Request"),this.logger.error(i),i}},this.onPayloadHandler=i=>{this.onProviderPayload(i)},this.onConnectHandler=()=>{this.events.emit(tD.connect)},this.onDisconnectHandler=()=>{this.onProviderDisconnect()},this.onProviderErrorHandler=i=>{this.logger.error(i),this.events.emit(tD.error,i),this.logger.info("Fatal socket error received, closing transport"),this.transportClose()},this.registerProviderListeners=()=>{this.provider.on(tk.payload,this.onPayloadHandler),this.provider.on(tk.connect,this.onConnectHandler),this.provider.on(tk.disconnect,this.onDisconnectHandler),this.provider.on(tk.error,this.onProviderErrorHandler)},this.core=i.core,this.logger="u">typeof i.logger&&"string"!=typeof i.logger?(0,et.generateChildLogger)(i.logger,this.name):(0,et.pino)((0,et.getDefaultLoggerOptions)({level:i.logger||"error"})),this.messages=new Ot(this.logger,i.core),this.subscriber=new Nt(this,this.logger),this.publisher=new vr(this,this.logger),this.relayUrl=i?.relayUrl||tz,this.projectId=i.projectId,this.bundleId=(0,C.X_)(),this.provider={}}async init(){this.logger.trace("Initialized"),this.registerEventListeners(),await this.createProvider(),await Promise.all([this.messages.init(),this.subscriber.init()]);try{await this.transportOpen()}catch{this.logger.warn(`Connection via ${this.relayUrl} failed, attempting to connect via failover domain ${tq}...`),await this.restartTransport(tq)}this.initialized=!0,setTimeout(async()=>{0===this.subscriber.topics.length&&(this.logger.info("No topics subscribed to after init, closing transport"),await this.transportClose(),this.transportExplicitlyClosed=!1)},1e4)}get context(){return(0,et.getLoggerContext)(this.logger)}get connected(){return this.provider.connection.connected}get connecting(){return this.provider.connection.connecting}async publish(i,r,c){this.isInitialized(),await this.publisher.publish(i,r,c),await this.recordMessageEvent({topic:i,message:r,publishedAt:Date.now()})}async subscribe(i,r){var c;let l;this.isInitialized();let S=(null==(c=this.subscriber.topicMap.get(i))?void 0:c[0])||"";if(S)return S;let o=r=>{r.topic===i&&(this.subscriber.off(tH.created,o),l())};return await Promise.all([new Promise(i=>{l=i,this.subscriber.on(tH.created,o)}),new Promise(async c=>{S=await this.subscriber.subscribe(i,r),c()})]),S}async unsubscribe(i,r){this.isInitialized(),await this.subscriber.unsubscribe(i,r)}on(i,r){this.events.on(i,r)}once(i,r){this.events.once(i,r)}off(i,r){this.events.off(i,r)}removeListener(i,r){this.events.removeListener(i,r)}async transportClose(){this.transportExplicitlyClosed=!0,this.hasExperiencedNetworkDisruption&&this.connected?await (0,C.hF)(this.provider.disconnect(),1e3,"provider.disconnect()").catch(()=>this.onProviderDisconnect()):this.connected&&await this.provider.disconnect()}async transportOpen(i){if(this.transportExplicitlyClosed=!1,await this.confirmOnlineStateOrThrow(),!this.connectionAttemptInProgress){i&&i!==this.relayUrl&&(this.relayUrl=i,await this.transportClose(),await this.createProvider()),this.connectionAttemptInProgress=!0;try{await Promise.all([new Promise(i=>{if(!this.initialized)return i();this.subscriber.once(tH.resubscribed,()=>{i()})}),new Promise(async(i,r)=>{try{await (0,C.hF)(this.provider.connect(),1e4,`Socket stalled when trying to connect to ${this.relayUrl}`)}catch(i){r(i);return}i()})])}catch(i){if(this.logger.error(i),!this.isConnectionStalled(i.message))throw i;this.provider.events.emit(tk.disconnect)}finally{this.connectionAttemptInProgress=!1,this.hasExperiencedNetworkDisruption=!1}}}async restartTransport(i){await this.confirmOnlineStateOrThrow(),this.connectionAttemptInProgress||(this.relayUrl=i||this.relayUrl,await this.transportClose(),await this.createProvider(),await this.transportOpen())}async confirmOnlineStateOrThrow(){if(!await (0,C.Gg)())throw Error("No internet connection detected. Please restart your network and try again.")}isConnectionStalled(i){return this.staleConnectionErrors.some(r=>i.includes(r))}async createProvider(){this.provider.connection&&this.unregisterProviderListeners();let i=await this.core.crypto.signJWT(this.relayUrl);this.provider=new ex.r(new f((0,C.$0)({sdkVersion:"2.11.0",protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:i,useOnCloseEvent:!0,bundleId:this.bundleId}))),this.registerProviderListeners()}async recordMessageEvent(i){let{topic:r,message:c}=i;await this.messages.set(r,c)}async shouldIgnoreMessageEvent(i){let{topic:r,message:c}=i;if(!c||0===c.length)return this.logger.debug(`Ignoring invalid/empty message: ${c}`),!0;if(!await this.subscriber.isSubscribed(r))return this.logger.debug(`Ignoring message for non-subscribed topic ${r}`),!0;let l=this.messages.has(r,c);return l&&this.logger.debug(`Ignoring duplicate message: ${c}`),l}async onProviderPayload(i){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:i}),(0,eS.isJsonRpcRequest)(i)){if(!i.method.endsWith("_subscription"))return;let r=i.params,{topic:c,message:l,publishedAt:S}=r.data,P={topic:c,message:l,publishedAt:S};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(Ar({type:"event",event:r.id},P)),this.events.emit(r.id,P),await this.acknowledgePayload(i),await this.onMessageEvent(P)}else(0,eS.isJsonRpcResponse)(i)&&this.events.emit(tD.message_ack,i)}async onMessageEvent(i){await this.shouldIgnoreMessageEvent(i)||(this.events.emit(tD.message,i),await this.recordMessageEvent(i))}async acknowledgePayload(i){let r=(0,eS.formatJsonRpcResult)(i.id,!0);await this.provider.connection.send(r)}unregisterProviderListeners(){this.provider.off(tk.payload,this.onPayloadHandler),this.provider.off(tk.connect,this.onConnectHandler),this.provider.off(tk.disconnect,this.onDisconnectHandler),this.provider.off(tk.error,this.onProviderErrorHandler)}async registerEventListeners(){this.events.on(tD.connection_stalled,()=>{this.restartTransport().catch(i=>this.logger.error(i))});let i=await (0,C.Gg)();(0,C.uw)(async r=>{this.initialized&&i!==r&&(i=r,r?await this.restartTransport().catch(i=>this.logger.error(i)):(this.hasExperiencedNetworkDisruption=!0,await this.transportClose().catch(i=>this.logger.error(i))))})}onProviderDisconnect(){this.events.emit(tD.disconnect),this.attemptToReconnect()}attemptToReconnect(){this.transportExplicitlyClosed||(this.logger.info("attemptToReconnect called. Connecting..."),setTimeout(async()=>{await this.restartTransport().catch(i=>this.logger.error(i))},(0,ey.toMiliseconds)(tM)))}isInitialized(){if(!this.initialized){let{message:i}=(0,C.Z7)("NOT_INITIALIZED",this.name);throw Error(i)}}async toEstablishConnection(){if(await this.confirmOnlineStateOrThrow(),!this.connected){if(this.connectionAttemptInProgress)return await new Promise(i=>{let r=setInterval(()=>{this.connected&&(clearInterval(r),i())},this.connectionStatusPollingInterval)});await this.restartTransport()}}};var t9=Object.defineProperty,t8=Object.getOwnPropertySymbols,t4=Object.prototype.hasOwnProperty,t7=Object.prototype.propertyIsEnumerable,Mt=(i,r,c)=>r in i?t9(i,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):i[r]=c,kt=(i,r)=>{for(var c in r||(r={}))t4.call(r,c)&&Mt(i,c,r[c]);if(t8)for(var c of t8(r))t7.call(r,c)&&Mt(i,c,r[c]);return i};let Kt=class Kt extends p{constructor(i,r,c,l=tR,S){super(i,r,c,l),this.core=i,this.logger=r,this.name=c,this.map=new Map,this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=tR,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(i=>{this.getKey&&null!==i&&!(0,C.o8)(i)?this.map.set(this.getKey(i),i):(0,C.xW)(i)?this.map.set(i.id,i):(0,C.h1)(i)&&this.map.set(i.topic,i)}),this.cached=[],this.initialized=!0)},this.set=async(i,r)=>{this.isInitialized(),this.map.has(i)?await this.update(i,r):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:i,value:r}),this.map.set(i,r),await this.persist())},this.get=i=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:i}),this.getData(i)),this.getAll=i=>(this.isInitialized(),i?this.values.filter(r=>Object.keys(i).every(c=>eO()(r[c],i[c]))):this.values),this.update=async(i,r)=>{this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:i,update:r});let c=kt(kt({},this.getData(i)),r);this.map.set(i,c),await this.persist()},this.delete=async(i,r)=>{this.isInitialized(),this.map.has(i)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:i,reason:r}),this.map.delete(i),await this.persist())},this.logger=(0,et.generateChildLogger)(r,this.name),this.storagePrefix=l,this.getKey=S}get context(){return(0,et.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}async setDataStore(i){await this.core.storage.setItem(this.storageKey,i)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(i){let r=this.map.get(i);if(!r){let{message:r}=(0,C.Z7)("NO_MATCHING_KEY",`${this.name}: ${i}`);throw this.logger.error(r),Error(r)}return r}async persist(){await this.setDataStore(this.values)}async restore(){try{let i=await this.getDataStore();if(typeof i>"u"||!i.length)return;if(this.map.size){let{message:i}=(0,C.Z7)("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(i),Error(i)}this.cached=i,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(i){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(i)}}isInitialized(){if(!this.initialized){let{message:i}=(0,C.Z7)("NOT_INITIALIZED",this.name);throw Error(i)}}};let Bt=class Bt{constructor(i,r){this.core=i,this.logger=r,this.name="pairing",this.version="0.3",this.events=new(P()),this.initialized=!1,this.storagePrefix=tR,this.ignoredPayloadTypes=[C.rV],this.registeredMethods=[],this.init=async()=>{this.initialized||(await this.pairings.init(),await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace("Initialized"))},this.register=({methods:i})=>{this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...i])]},this.create=async()=>{this.isInitialized();let i=(0,C.jd)(),r=await this.core.crypto.setSymKey(i),c=(0,C.gn)(ey.FIVE_MINUTES),l={protocol:"irn"},S=(0,C.Bv)({protocol:this.core.protocol,version:this.core.version,topic:r,symKey:i,relay:l});return await this.pairings.set(r,{topic:r,expiry:c,relay:l,active:!1}),await this.core.relayer.subscribe(r),this.core.expirer.set(r,c),{topic:r,uri:S}},this.pair=async i=>{this.isInitialized(),this.isValidPair(i);let{topic:r,symKey:c,relay:l}=(0,C.he)(i.uri);if(this.pairings.keys.includes(r)&&this.pairings.get(r).active)throw Error(`Pairing already exists: ${r}. Please try again with a new connection URI.`);let S=(0,C.gn)(ey.FIVE_MINUTES),P={topic:r,relay:l,expiry:S,active:!1};return await this.pairings.set(r,P),this.core.expirer.set(r,S),i.activatePairing&&await this.activate({topic:r}),this.events.emit(tK.create,P),this.core.crypto.keychain.has(r)||(await this.core.crypto.setSymKey(c,r),await this.core.relayer.subscribe(r,{relay:l})),P},this.activate=async({topic:i})=>{this.isInitialized();let r=(0,C.gn)(ey.THIRTY_DAYS);await this.pairings.update(i,{active:!0,expiry:r}),this.core.expirer.set(i,r)},this.ping=async i=>{this.isInitialized(),await this.isValidPing(i);let{topic:r}=i;if(this.pairings.keys.includes(r)){let i=await this.sendRequest(r,"wc_pairingPing",{}),{done:c,resolve:l,reject:S}=(0,C.H1)();this.events.once((0,C.E0)("pairing_ping",i),({error:i})=>{i?S(i):l()}),await c()}},this.updateExpiry=async({topic:i,expiry:r})=>{this.isInitialized(),await this.pairings.update(i,{expiry:r})},this.updateMetadata=async({topic:i,metadata:r})=>{this.isInitialized(),await this.pairings.update(i,{peerMetadata:r})},this.getPairings=()=>(this.isInitialized(),this.pairings.values),this.disconnect=async i=>{this.isInitialized(),await this.isValidDisconnect(i);let{topic:r}=i;this.pairings.keys.includes(r)&&(await this.sendRequest(r,"wc_pairingDelete",(0,C.D6)("USER_DISCONNECTED")),await this.deletePairing(r))},this.sendRequest=async(i,r,c)=>{let l=(0,eS.formatJsonRpcRequest)(r,c),S=await this.core.crypto.encode(i,l),P=tU[r].req;return this.core.history.set(i,l),this.core.relayer.publish(i,S,P),l.id},this.sendResult=async(i,r,c)=>{let l=(0,eS.formatJsonRpcResult)(i,c),S=await this.core.crypto.encode(r,l),P=await this.core.history.get(r,i),C=tU[P.request.method].res;await this.core.relayer.publish(r,S,C),await this.core.history.resolve(l)},this.sendError=async(i,r,c)=>{let l=(0,eS.formatJsonRpcError)(i,c),S=await this.core.crypto.encode(r,l),P=await this.core.history.get(r,i),C=tU[P.request.method]?tU[P.request.method].res:tU.unregistered_method.res;await this.core.relayer.publish(r,S,C),await this.core.history.resolve(l)},this.deletePairing=async(i,r)=>{await this.core.relayer.unsubscribe(i),await Promise.all([this.pairings.delete(i,(0,C.D6)("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(i),r?Promise.resolve():this.core.expirer.del(i)])},this.cleanup=async()=>{let i=this.pairings.getAll().filter(i=>(0,C.Bw)(i.expiry));await Promise.all(i.map(i=>this.deletePairing(i.topic)))},this.onRelayEventRequest=i=>{let{topic:r,payload:c}=i;switch(c.method){case"wc_pairingPing":return this.onPairingPingRequest(r,c);case"wc_pairingDelete":return this.onPairingDeleteRequest(r,c);default:return this.onUnknownRpcMethodRequest(r,c)}},this.onRelayEventResponse=async i=>{let{topic:r,payload:c}=i,l=(await this.core.history.get(r,c.id)).request.method;return"wc_pairingPing"===l?this.onPairingPingResponse(r,c):this.onUnknownRpcMethodResponse(l)},this.onPairingPingRequest=async(i,r)=>{let{id:c}=r;try{this.isValidPing({topic:i}),await this.sendResult(c,i,!0),this.events.emit(tK.ping,{id:c,topic:i})}catch(r){await this.sendError(c,i,r),this.logger.error(r)}},this.onPairingPingResponse=(i,r)=>{let{id:c}=r;setTimeout(()=>{(0,eS.isJsonRpcResult)(r)?this.events.emit((0,C.E0)("pairing_ping",c),{}):(0,eS.isJsonRpcError)(r)&&this.events.emit((0,C.E0)("pairing_ping",c),{error:r.error})},500)},this.onPairingDeleteRequest=async(i,r)=>{let{id:c}=r;try{this.isValidDisconnect({topic:i}),await this.deletePairing(i),this.events.emit(tK.delete,{id:c,topic:i})}catch(r){await this.sendError(c,i,r),this.logger.error(r)}},this.onUnknownRpcMethodRequest=async(i,r)=>{let{id:c,method:l}=r;try{if(this.registeredMethods.includes(l))return;let r=(0,C.D6)("WC_METHOD_UNSUPPORTED",l);await this.sendError(c,i,r),this.logger.error(r)}catch(r){await this.sendError(c,i,r),this.logger.error(r)}},this.onUnknownRpcMethodResponse=i=>{this.registeredMethods.includes(i)||this.logger.error((0,C.D6)("WC_METHOD_UNSUPPORTED",i))},this.isValidPair=i=>{var r;if(!(0,C.EJ)(i)){let{message:r}=(0,C.Z7)("MISSING_OR_INVALID",`pair() params: ${i}`);throw Error(r)}if(!(0,C.jv)(i.uri)){let{message:r}=(0,C.Z7)("MISSING_OR_INVALID",`pair() uri: ${i.uri}`);throw Error(r)}let c=(0,C.he)(i.uri);if(!(null!=(r=c?.relay)&&r.protocol)){let{message:i}=(0,C.Z7)("MISSING_OR_INVALID","pair() uri#relay-protocol");throw Error(i)}if(!(null!=c&&c.symKey)){let{message:i}=(0,C.Z7)("MISSING_OR_INVALID","pair() uri#symKey");throw Error(i)}},this.isValidPing=async i=>{if(!(0,C.EJ)(i)){let{message:r}=(0,C.Z7)("MISSING_OR_INVALID",`ping() params: ${i}`);throw Error(r)}let{topic:r}=i;await this.isValidPairingTopic(r)},this.isValidDisconnect=async i=>{if(!(0,C.EJ)(i)){let{message:r}=(0,C.Z7)("MISSING_OR_INVALID",`disconnect() params: ${i}`);throw Error(r)}let{topic:r}=i;await this.isValidPairingTopic(r)},this.isValidPairingTopic=async i=>{if(!(0,C.M_)(i,!1)){let{message:r}=(0,C.Z7)("MISSING_OR_INVALID",`pairing topic should be a string: ${i}`);throw Error(r)}if(!this.pairings.keys.includes(i)){let{message:r}=(0,C.Z7)("NO_MATCHING_KEY",`pairing topic doesn't exist: ${i}`);throw Error(r)}if((0,C.Bw)(this.pairings.get(i).expiry)){await this.deletePairing(i);let{message:r}=(0,C.Z7)("EXPIRED",`pairing topic: ${i}`);throw Error(r)}},this.core=i,this.logger=(0,et.generateChildLogger)(r,this.name),this.pairings=new Kt(this.core,this.logger,this.name,this.storagePrefix)}get context(){return(0,et.getLoggerContext)(this.logger)}isInitialized(){if(!this.initialized){let{message:i}=(0,C.Z7)("NOT_INITIALIZED",this.name);throw Error(i)}}registerRelayerEvents(){this.core.relayer.on(tD.message,async i=>{let{topic:r,message:c}=i;if(!this.pairings.keys.includes(r)||this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(c)))return;let l=await this.core.crypto.decode(r,c);try{(0,eS.isJsonRpcRequest)(l)?(this.core.history.set(r,l),this.onRelayEventRequest({topic:r,payload:l})):(0,eS.isJsonRpcResponse)(l)&&(await this.core.history.resolve(l),await this.onRelayEventResponse({topic:r,payload:l}),this.core.history.delete(r,l.id))}catch(i){this.logger.error(i)}})}registerExpirerEvents(){this.core.expirer.on(tB.expired,async i=>{let{topic:r}=(0,C.iP)(i.target);r&&this.pairings.keys.includes(r)&&(await this.deletePairing(r,!0),this.events.emit(tK.expire,{topic:r}))})}};let Vt=class Vt extends index_es_h{constructor(i,r){super(i,r),this.core=i,this.logger=r,this.records=new Map,this.events=new S.EventEmitter,this.name="history",this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=tR,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(i=>this.records.set(i.id,i)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.set=(i,r,c)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:i,request:r,chainId:c}),this.records.has(r.id))return;let l={id:r.id,topic:i,request:{method:r.method,params:r.params||null},chainId:c,expiry:(0,C.gn)(ey.THIRTY_DAYS)};this.records.set(l.id,l),this.events.emit(tV.created,l)},this.resolve=async i=>{if(this.isInitialized(),this.logger.debug("Updating JSON-RPC response history record"),this.logger.trace({type:"method",method:"update",response:i}),!this.records.has(i.id))return;let r=await this.getRecord(i.id);typeof r.response>"u"&&(r.response=(0,eS.isJsonRpcError)(i)?{error:i.error}:{result:i.result},this.records.set(r.id,r),this.events.emit(tV.updated,r))},this.get=async(i,r)=>(this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:i,id:r}),await this.getRecord(r)),this.delete=(i,r)=>{this.isInitialized(),this.logger.debug("Deleting record"),this.logger.trace({type:"method",method:"delete",id:r}),this.values.forEach(c=>{c.topic!==i||"u">typeof r&&c.id!==r||(this.records.delete(c.id),this.events.emit(tV.deleted,c))})},this.exists=async(i,r)=>(this.isInitialized(),!!this.records.has(r)&&(await this.getRecord(r)).topic===i),this.on=(i,r)=>{this.events.on(i,r)},this.once=(i,r)=>{this.events.once(i,r)},this.off=(i,r)=>{this.events.off(i,r)},this.removeListener=(i,r)=>{this.events.removeListener(i,r)},this.logger=(0,et.generateChildLogger)(r,this.name)}get context(){return(0,et.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){let i=[];return this.values.forEach(r=>{if("u">typeof r.response)return;let c={topic:r.topic,request:(0,eS.formatJsonRpcRequest)(r.request.method,r.request.params,r.id),chainId:r.chainId};return i.push(c)}),i}async setJsonRpcRecords(i){await this.core.storage.setItem(this.storageKey,i)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(i){this.isInitialized();let r=this.records.get(i);if(!r){let{message:r}=(0,C.Z7)("NO_MATCHING_KEY",`${this.name}: ${i}`);throw Error(r)}return r}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit(tV.sync)}async restore(){try{let i=await this.getJsonRpcRecords();if(typeof i>"u"||!i.length)return;if(this.records.size){let{message:i}=(0,C.Z7)("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(i),Error(i)}this.cached=i,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(i){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(i)}}registerEventListeners(){this.events.on(tV.created,i=>{let r=tV.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:i}),this.persist()}),this.events.on(tV.updated,i=>{let r=tV.updated;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:i}),this.persist()}),this.events.on(tV.deleted,i=>{let r=tV.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:i}),this.persist()}),this.core.heartbeat.on(ee.HEARTBEAT_EVENTS.pulse,()=>{this.cleanup()})}cleanup(){try{this.records.forEach(i=>{(0,ey.toMiliseconds)(i.expiry||0)-Date.now()<=0&&(this.logger.info(`Deleting expired history log: ${i.id}`),this.delete(i.topic,i.id))})}catch(i){this.logger.warn(i)}}isInitialized(){if(!this.initialized){let{message:i}=(0,C.Z7)("NOT_INITIALIZED",this.name);throw Error(i)}}};let jt=class jt extends index_es_E{constructor(i,r){super(i,r),this.core=i,this.logger=r,this.expirations=new Map,this.events=new S.EventEmitter,this.name="expirer",this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=tR,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(i=>this.expirations.set(i.target,i)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.has=i=>{try{let r=this.formatTarget(i);return"u">typeof this.getExpiration(r)}catch{return!1}},this.set=(i,r)=>{this.isInitialized();let c=this.formatTarget(i),l={target:c,expiry:r};this.expirations.set(c,l),this.checkExpiry(c,l),this.events.emit(tB.created,{target:c,expiration:l})},this.get=i=>{this.isInitialized();let r=this.formatTarget(i);return this.getExpiration(r)},this.del=i=>{if(this.isInitialized(),this.has(i)){let r=this.formatTarget(i),c=this.getExpiration(r);this.expirations.delete(r),this.events.emit(tB.deleted,{target:r,expiration:c})}},this.on=(i,r)=>{this.events.on(i,r)},this.once=(i,r)=>{this.events.once(i,r)},this.off=(i,r)=>{this.events.off(i,r)},this.removeListener=(i,r)=>{this.events.removeListener(i,r)},this.logger=(0,et.generateChildLogger)(r,this.name)}get context(){return(0,et.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(i){if("string"==typeof i)return(0,C.Z4)(i);if("number"==typeof i)return(0,C.Gq)(i);let{message:r}=(0,C.Z7)("UNKNOWN_TYPE",`Target type: ${typeof i}`);throw Error(r)}async setExpirations(i){await this.core.storage.setItem(this.storageKey,i)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit(tB.sync)}async restore(){try{let i=await this.getExpirations();if(typeof i>"u"||!i.length)return;if(this.expirations.size){let{message:i}=(0,C.Z7)("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(i),Error(i)}this.cached=i,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(i){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(i)}}getExpiration(i){let r=this.expirations.get(i);if(!r){let{message:r}=(0,C.Z7)("NO_MATCHING_KEY",`${this.name}: ${i}`);throw this.logger.error(r),Error(r)}return r}checkExpiry(i,r){let{expiry:c}=r;(0,ey.toMiliseconds)(c)-Date.now()<=0&&this.expire(i,r)}expire(i,r){this.expirations.delete(i),this.events.emit(tB.expired,{target:i,expiration:r})}checkExpirations(){this.core.relayer.connected&&this.expirations.forEach((i,r)=>this.checkExpiry(r,i))}registerEventListeners(){this.core.heartbeat.on(ee.HEARTBEAT_EVENTS.pulse,()=>this.checkExpirations()),this.events.on(tB.created,i=>{let r=tB.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:i}),this.persist()}),this.events.on(tB.expired,i=>{let r=tB.expired;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:i}),this.persist()}),this.events.on(tB.deleted,i=>{let r=tB.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:i}),this.persist()})}isInitialized(){if(!this.initialized){let{message:i}=(0,C.Z7)("NOT_INITIALIZED",this.name);throw Error(i)}}};let qt=class qt extends index_es_y{constructor(i,r){super(i,r),this.projectId=i,this.logger=r,this.name=tG,this.initialized=!1,this.queue=[],this.verifyDisabled=!1,this.init=async i=>{if(this.verifyDisabled||(0,C.b$)()||!(0,C.jU)())return;let r=this.getVerifyUrl(i?.verifyUrl);this.verifyUrl!==r&&this.removeIframe(),this.verifyUrl=r;try{await this.createIframe()}catch(i){this.logger.info(`Verify iframe failed to load: ${this.verifyUrl}`),this.logger.info(i)}if(!this.initialized){this.removeIframe(),this.verifyUrl=tZ;try{await this.createIframe()}catch(i){this.logger.info(`Verify iframe failed to load: ${this.verifyUrl}`),this.logger.info(i),this.verifyDisabled=!0}}},this.register=async i=>{this.initialized?this.sendPost(i.attestationId):(this.addToQueue(i.attestationId),await this.init())},this.resolve=async i=>{let r;if(this.isDevEnv)return"";let c=this.getVerifyUrl(i?.verifyUrl);try{r=await this.fetchAttestation(i.attestationId,c)}catch(l){this.logger.info(`failed to resolve attestation: ${i.attestationId} from url: ${c}`),this.logger.info(l),r=await this.fetchAttestation(i.attestationId,tZ)}return r},this.fetchAttestation=async(i,r)=>{this.logger.info(`resolving attestation: ${i} from url: ${r}`);let c=this.startAbortTimer(2*ey.ONE_SECOND),l=await fetch(`${r}/attestation/${i}`,{signal:this.abortController.signal});return clearTimeout(c),200===l.status?await l.json():void 0},this.addToQueue=i=>{this.queue.push(i)},this.processQueue=()=>{0!==this.queue.length&&(this.queue.forEach(i=>this.sendPost(i)),this.queue=[])},this.sendPost=i=>{var r;try{if(!this.iframe)return;null==(r=this.iframe.contentWindow)||r.postMessage(i,"*"),this.logger.info(`postMessage sent: ${i} ${this.verifyUrl}`)}catch{}},this.createIframe=async()=>{let i;let s=r=>{"verify_ready"===r.data&&(this.initialized=!0,this.processQueue(),window.removeEventListener("message",s),i())};await Promise.race([new Promise(r=>{if(document.getElementById(tG))return r();window.addEventListener("message",s);let c=document.createElement("iframe");c.id=tG,c.src=`${this.verifyUrl}/${this.projectId}`,c.style.display="none",document.body.append(c),this.iframe=c,i=r}),new Promise((i,r)=>setTimeout(()=>{window.removeEventListener("message",s),r("verify iframe load timeout")},(0,ey.toMiliseconds)(ey.FIVE_SECONDS)))])},this.removeIframe=()=>{this.iframe&&(this.iframe.remove(),this.iframe=void 0,this.initialized=!1)},this.getVerifyUrl=i=>{let r=i||tW;return tF.includes(r)||(this.logger.info(`verify url: ${r}, not included in trusted list, assigning default: ${tW}`),r=tW),r},this.logger=(0,et.generateChildLogger)(r,this.name),this.verifyUrl=tW,this.abortController=new AbortController,this.isDevEnv=(0,C.UG)()&&eN.env.IS_VITEST}get context(){return(0,et.getLoggerContext)(this.logger)}startAbortTimer(i){return this.abortController=new AbortController,setTimeout(()=>this.abortController.abort(),(0,ey.toMiliseconds)(i))}};let Gt=class Gt extends v{constructor(i,r){super(i,r),this.projectId=i,this.logger=r,this.context="echo",this.registerDeviceToken=async i=>{let{clientId:r,token:c,notificationType:l,enableEncrypted:S=!1}=i,P=`https://echo.walletconnect.com/${this.projectId}/clients`;await eA()(P,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({client_id:r,type:l,token:c,always_raw:S})})},this.logger=(0,et.generateChildLogger)(r,this.context)}};var ie=Object.defineProperty,ir=Object.getOwnPropertySymbols,io=Object.prototype.hasOwnProperty,il=Object.prototype.propertyIsEnumerable,Ht=(i,r,c)=>r in i?ie(i,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):i[r]=c,Jt=(i,r)=>{for(var c in r||(r={}))io.call(r,c)&&Ht(i,c,r[c]);if(ir)for(var c of ir(r))il.call(r,c)&&Ht(i,c,r[c]);return i};let te=class te extends n{constructor(i){super(i),this.protocol="wc",this.version=2,this.name=tO,this.events=new S.EventEmitter,this.initialized=!1,this.on=(i,r)=>this.events.on(i,r),this.once=(i,r)=>this.events.once(i,r),this.off=(i,r)=>this.events.off(i,r),this.removeListener=(i,r)=>this.events.removeListener(i,r),this.projectId=i?.projectId,this.relayUrl=i?.relayUrl||tz,this.customStoragePrefix=null!=i&&i.customStoragePrefix?`:${i.customStoragePrefix}`:"";let r="u">typeof i?.logger&&"string"!=typeof i?.logger?i.logger:(0,et.pino)((0,et.getDefaultLoggerOptions)({level:i?.logger||tA.logger}));this.logger=(0,et.generateChildLogger)(r,this.name),this.heartbeat=new ee.HeartBeat,this.crypto=new xt(this,this.logger,i?.keychain),this.history=new Vt(this,this.logger),this.expirer=new jt(this,this.logger),this.storage=null!=i&&i.storage?i.storage:new h(Jt(Jt({},tN),i?.storageOptions)),this.relayer=new Ft({core:this,logger:this.logger,relayUrl:this.relayUrl,projectId:this.projectId}),this.pairing=new Bt(this,this.logger),this.verify=new qt(this.projectId||"",this.logger),this.echoClient=new Gt(this.projectId||"",this.logger)}static async init(i){let r=new te(i);await r.initialize();let c=await r.crypto.getClientId();return await r.storage.setItem("WALLETCONNECT_CLIENT_ID",c),r}get context(){return(0,et.getLoggerContext)(this.logger)}async start(){this.initialized||await this.initialize()}async initialize(){this.logger.trace("Initialized");try{await this.crypto.init(),await this.history.init(),await this.expirer.init(),await this.relayer.init(),await this.heartbeat.init(),await this.pairing.init(),this.initialized=!0,this.logger.info("Core Initialization Success")}catch(i){throw this.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,i),this.logger.error(i.message),i}}};let iu="client",id=`wc@2:${iu}:`,ig={name:iu,logger:"error"},iy="WALLETCONNECT_DEEPLINK_CHOICE",im="Proposal expired",i_=ey.SEVEN_DAYS,iw={wc_sessionPropose:{req:{ttl:ey.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:ey.FIVE_MINUTES,prompt:!1,tag:1101}},wc_sessionSettle:{req:{ttl:ey.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:ey.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:ey.ONE_DAY,prompt:!1,tag:1104},res:{ttl:ey.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:ey.ONE_DAY,prompt:!1,tag:1106},res:{ttl:ey.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:ey.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:ey.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:ey.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:ey.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:ey.ONE_DAY,prompt:!1,tag:1112},res:{ttl:ey.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:ey.THIRTY_SECONDS,prompt:!1,tag:1114},res:{ttl:ey.THIRTY_SECONDS,prompt:!1,tag:1115}}},ib={min:ey.FIVE_MINUTES,max:ey.SEVEN_DAYS},iI={idle:"IDLE",active:"ACTIVE"},iE=["wc_sessionPropose","wc_sessionRequest","wc_authRequest"];var ix=Object.defineProperty,iS=Object.defineProperties,iP=Object.getOwnPropertyDescriptors,iC=Object.getOwnPropertySymbols,iO=Object.prototype.hasOwnProperty,iR=Object.prototype.propertyIsEnumerable,index_es_de=(i,r,c)=>r in i?ix(i,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):i[r]=c,dist_index_es_g=(i,r)=>{for(var c in r||(r={}))iO.call(r,c)&&index_es_de(i,c,r[c]);if(iC)for(var c of iC(r))iR.call(r,c)&&index_es_de(i,c,r[c]);return i},dist_index_es_b=(i,r)=>iS(i,iP(r));let index_es_ds=class index_es_ds extends w{constructor(i){super(i),this.name="engine",this.events=new(P()),this.initialized=!1,this.ignoredPayloadTypes=[C.rV],this.requestQueue={state:iI.idle,queue:[]},this.sessionRequestQueue={state:iI.idle,queue:[]},this.requestQueueDelay=ey.ONE_SECOND,this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.registerPairingEvents(),this.client.core.pairing.register({methods:Object.keys(iw)}),this.initialized=!0,setTimeout(()=>{this.sessionRequestQueue.queue=this.getPendingSessionRequests(),this.processSessionRequestQueue()},(0,ey.toMiliseconds)(this.requestQueueDelay)))},this.connect=async i=>{await this.isInitialized();let r=dist_index_es_b(dist_index_es_g({},i),{requiredNamespaces:i.requiredNamespaces||{},optionalNamespaces:i.optionalNamespaces||{}});await this.isValidConnect(r);let{pairingTopic:c,requiredNamespaces:l,optionalNamespaces:S,sessionProperties:P,relays:R}=r,A=c,q,$=!1;if(A&&($=this.client.core.pairing.pairings.get(A).active),!A||!$){let{topic:i,uri:r}=await this.client.core.pairing.create();A=i,q=r}let U=await this.client.core.crypto.generateKeyPair(),F=dist_index_es_g({requiredNamespaces:l,optionalNamespaces:S,relays:R??[{protocol:"irn"}],proposer:{publicKey:U,metadata:this.client.metadata}},P&&{sessionProperties:P}),{reject:J,resolve:Q,done:X}=(0,C.H1)(ey.FIVE_MINUTES,im);if(this.events.once((0,C.E0)("session_connect"),async({error:i,session:r})=>{if(i)J(i);else if(r){r.self.publicKey=U;let i=dist_index_es_b(dist_index_es_g({},r),{requiredNamespaces:r.requiredNamespaces,optionalNamespaces:r.optionalNamespaces});await this.client.session.set(r.topic,i),await this.setExpiry(r.topic,r.expiry),A&&await this.client.core.pairing.updateMetadata({topic:A,metadata:r.peer.metadata}),Q(i)}}),!A){let{message:i}=(0,C.Z7)("NO_MATCHING_KEY",`connect() pairing topic: ${A}`);throw Error(i)}let ee=await this.sendRequest({topic:A,method:"wc_sessionPropose",params:F}),et=(0,C.gn)(ey.FIVE_MINUTES);return await this.setProposal(ee,dist_index_es_g({id:ee,expiry:et},F)),{uri:q,approval:X}},this.pair=async i=>(await this.isInitialized(),await this.client.core.pairing.pair(i)),this.approve=async i=>{await this.isInitialized(),await this.isValidApprove(i);let{id:r,relayProtocol:c,namespaces:l,sessionProperties:S}=i,P=this.client.proposal.get(r),{pairingTopic:R,proposer:A,requiredNamespaces:q,optionalNamespaces:$}=P;R=R||"",(0,C.L5)(q)||(q=(0,C.fc)(l,"approve()"));let U=await this.client.core.crypto.generateKeyPair(),F=A.publicKey,J=await this.client.core.crypto.generateSharedKey(U,F);R&&r&&(await this.client.core.pairing.updateMetadata({topic:R,metadata:A.metadata}),await this.sendResult({id:r,topic:R,result:{relay:{protocol:c??"irn"},responderPublicKey:U}}),await this.client.proposal.delete(r,(0,C.D6)("USER_DISCONNECTED")),await this.client.core.pairing.activate({topic:R}));let Q=dist_index_es_g({relay:{protocol:c??"irn"},namespaces:l,requiredNamespaces:q,optionalNamespaces:$,pairingTopic:R,controller:{publicKey:U,metadata:this.client.metadata},expiry:(0,C.gn)(i_)},S&&{sessionProperties:S});await this.client.core.relayer.subscribe(J),await this.sendRequest({topic:J,method:"wc_sessionSettle",params:Q,throwOnFailedPublish:!0});let X=dist_index_es_b(dist_index_es_g({},Q),{topic:J,pairingTopic:R,acknowledged:!1,self:Q.controller,peer:{publicKey:A.publicKey,metadata:A.metadata},controller:U});return await this.client.session.set(J,X),await this.setExpiry(J,(0,C.gn)(i_)),{topic:J,acknowledged:()=>new Promise(i=>setTimeout(()=>i(this.client.session.get(J)),500))}},this.reject=async i=>{await this.isInitialized(),await this.isValidReject(i);let{id:r,reason:c}=i,{pairingTopic:l}=this.client.proposal.get(r);l&&(await this.sendError(r,l,c),await this.client.proposal.delete(r,(0,C.D6)("USER_DISCONNECTED")))},this.update=async i=>{await this.isInitialized(),await this.isValidUpdate(i);let{topic:r,namespaces:c}=i,l=await this.sendRequest({topic:r,method:"wc_sessionUpdate",params:{namespaces:c}}),{done:S,resolve:P,reject:R}=(0,C.H1)();return this.events.once((0,C.E0)("session_update",l),({error:i})=>{i?R(i):P()}),await this.client.session.update(r,{namespaces:c}),{acknowledged:S}},this.extend=async i=>{await this.isInitialized(),await this.isValidExtend(i);let{topic:r}=i,c=await this.sendRequest({topic:r,method:"wc_sessionExtend",params:{}}),{done:l,resolve:S,reject:P}=(0,C.H1)();return this.events.once((0,C.E0)("session_extend",c),({error:i})=>{i?P(i):S()}),await this.setExpiry(r,(0,C.gn)(i_)),{acknowledged:l}},this.request=async i=>{await this.isInitialized(),await this.isValidRequest(i);let{chainId:r,request:c,topic:l,expiry:S}=i,P=(0,eS.payloadId)(),{done:R,resolve:A,reject:q}=(0,C.H1)(S,"Request expired. Please try again.");return this.events.once((0,C.E0)("session_request",P),({error:i,result:r})=>{i?q(i):A(r)}),await Promise.all([new Promise(async i=>{await this.sendRequest({clientRpcId:P,topic:l,method:"wc_sessionRequest",params:{request:c,chainId:r},expiry:S,throwOnFailedPublish:!0}).catch(i=>q(i)),this.client.events.emit("session_request_sent",{topic:l,request:c,chainId:r,id:P}),i()}),new Promise(async i=>{let r=await (0,C.bW)(this.client.core.storage,iy);(0,C.Hh)({id:P,topic:l,wcDeepLink:r}),i()}),R()]).then(i=>i[2])},this.respond=async i=>{await this.isInitialized(),await this.isValidRespond(i);let{topic:r,response:c}=i,{id:l}=c;(0,eS.isJsonRpcResult)(c)?await this.sendResult({id:l,topic:r,result:c.result,throwOnFailedPublish:!0}):(0,eS.isJsonRpcError)(c)&&await this.sendError(l,r,c.error),this.cleanupAfterResponse(i)},this.ping=async i=>{await this.isInitialized(),await this.isValidPing(i);let{topic:r}=i;if(this.client.session.keys.includes(r)){let i=await this.sendRequest({topic:r,method:"wc_sessionPing",params:{}}),{done:c,resolve:l,reject:S}=(0,C.H1)();this.events.once((0,C.E0)("session_ping",i),({error:i})=>{i?S(i):l()}),await c()}else this.client.core.pairing.pairings.keys.includes(r)&&await this.client.core.pairing.ping({topic:r})},this.emit=async i=>{await this.isInitialized(),await this.isValidEmit(i);let{topic:r,event:c,chainId:l}=i;await this.sendRequest({topic:r,method:"wc_sessionEvent",params:{event:c,chainId:l}})},this.disconnect=async i=>{await this.isInitialized(),await this.isValidDisconnect(i);let{topic:r}=i;this.client.session.keys.includes(r)?(await this.sendRequest({topic:r,method:"wc_sessionDelete",params:(0,C.D6)("USER_DISCONNECTED"),throwOnFailedPublish:!0}),await this.deleteSession(r)):await this.client.core.pairing.disconnect({topic:r})},this.find=i=>(this.isInitialized(),this.client.session.getAll().filter(r=>(0,C.Ih)(r,i))),this.getPendingSessionRequests=()=>(this.isInitialized(),this.client.pendingRequest.getAll()),this.cleanupDuplicatePairings=async i=>{if(i.pairingTopic)try{let r=this.client.core.pairing.pairings.get(i.pairingTopic),c=this.client.core.pairing.pairings.getAll().filter(c=>{var l,S;return(null==(l=c.peerMetadata)?void 0:l.url)&&(null==(S=c.peerMetadata)?void 0:S.url)===i.peer.metadata.url&&c.topic&&c.topic!==r.topic});if(0===c.length)return;this.client.logger.info(`Cleaning up ${c.length} duplicate pairing(s)`),await Promise.all(c.map(i=>this.client.core.pairing.disconnect({topic:i.topic}))),this.client.logger.info("Duplicate pairings clean up finished")}catch(i){this.client.logger.error(i)}},this.deleteSession=async(i,r)=>{let{self:c}=this.client.session.get(i);await this.client.core.relayer.unsubscribe(i),this.client.session.delete(i,(0,C.D6)("USER_DISCONNECTED")),this.client.core.crypto.keychain.has(c.publicKey)&&await this.client.core.crypto.deleteKeyPair(c.publicKey),this.client.core.crypto.keychain.has(i)&&await this.client.core.crypto.deleteSymKey(i),r||this.client.core.expirer.del(i),this.client.core.storage.removeItem(iy).catch(i=>this.client.logger.warn(i)),this.getPendingSessionRequests().forEach(r=>{r.topic===i&&this.deletePendingSessionRequest(r.id,(0,C.D6)("USER_DISCONNECTED"))})},this.deleteProposal=async(i,r)=>{await Promise.all([this.client.proposal.delete(i,(0,C.D6)("USER_DISCONNECTED")),r?Promise.resolve():this.client.core.expirer.del(i)])},this.deletePendingSessionRequest=async(i,r,c=!1)=>{await Promise.all([this.client.pendingRequest.delete(i,r),c?Promise.resolve():this.client.core.expirer.del(i)]),this.sessionRequestQueue.queue=this.sessionRequestQueue.queue.filter(r=>r.id!==i),c&&(this.sessionRequestQueue.state=iI.idle)},this.setExpiry=async(i,r)=>{this.client.session.keys.includes(i)&&await this.client.session.update(i,{expiry:r}),this.client.core.expirer.set(i,r)},this.setProposal=async(i,r)=>{await this.client.proposal.set(i,r),this.client.core.expirer.set(i,r.expiry)},this.setPendingSessionRequest=async i=>{let r=iw.wc_sessionRequest.req.ttl,{id:c,topic:l,params:S,verifyContext:P}=i;await this.client.pendingRequest.set(c,{id:c,topic:l,params:S,verifyContext:P}),r&&this.client.core.expirer.set(c,(0,C.gn)(r))},this.sendRequest=async i=>{let{topic:r,method:c,params:l,expiry:S,relayRpcId:P,clientRpcId:R,throwOnFailedPublish:A}=i,q=(0,eS.formatJsonRpcRequest)(c,l,R);if((0,C.jU)()&&iE.includes(c)){let i=(0,C.rj)(JSON.stringify(q));this.client.core.verify.register({attestationId:i})}let $=await this.client.core.crypto.encode(r,q),U=iw[c].req;return S&&(U.ttl=S),P&&(U.id=P),this.client.core.history.set(r,q),A?(U.internal=dist_index_es_b(dist_index_es_g({},U.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(r,$,U)):this.client.core.relayer.publish(r,$,U).catch(i=>this.client.logger.error(i)),q.id},this.sendResult=async i=>{let{id:r,topic:c,result:l,throwOnFailedPublish:S}=i,P=(0,eS.formatJsonRpcResult)(r,l),C=await this.client.core.crypto.encode(c,P),R=await this.client.core.history.get(c,r),A=iw[R.request.method].res;S?(A.internal=dist_index_es_b(dist_index_es_g({},A.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(c,C,A)):this.client.core.relayer.publish(c,C,A).catch(i=>this.client.logger.error(i)),await this.client.core.history.resolve(P)},this.sendError=async(i,r,c)=>{let l=(0,eS.formatJsonRpcError)(i,c),S=await this.client.core.crypto.encode(r,l),P=await this.client.core.history.get(r,i),C=iw[P.request.method].res;this.client.core.relayer.publish(r,S,C),await this.client.core.history.resolve(l)},this.cleanup=async()=>{let i=[],r=[];this.client.session.getAll().forEach(r=>{(0,C.Bw)(r.expiry)&&i.push(r.topic)}),this.client.proposal.getAll().forEach(i=>{(0,C.Bw)(i.expiry)&&r.push(i.id)}),await Promise.all([...i.map(i=>this.deleteSession(i)),...r.map(i=>this.deleteProposal(i))])},this.onRelayEventRequest=async i=>{this.requestQueue.queue.push(i),await this.processRequestsQueue()},this.processRequestsQueue=async()=>{if(this.requestQueue.state===iI.active){this.client.logger.info("Request queue already active, skipping...");return}for(this.client.logger.info(`Request queue starting with ${this.requestQueue.queue.length} requests`);this.requestQueue.queue.length>0;){this.requestQueue.state=iI.active;let i=this.requestQueue.queue.shift();if(i)try{this.processRequest(i),await new Promise(i=>setTimeout(i,300))}catch(i){this.client.logger.warn(i)}}this.requestQueue.state=iI.idle},this.processRequest=i=>{let{topic:r,payload:c}=i,l=c.method;switch(l){case"wc_sessionPropose":return this.onSessionProposeRequest(r,c);case"wc_sessionSettle":return this.onSessionSettleRequest(r,c);case"wc_sessionUpdate":return this.onSessionUpdateRequest(r,c);case"wc_sessionExtend":return this.onSessionExtendRequest(r,c);case"wc_sessionPing":return this.onSessionPingRequest(r,c);case"wc_sessionDelete":return this.onSessionDeleteRequest(r,c);case"wc_sessionRequest":return this.onSessionRequest(r,c);case"wc_sessionEvent":return this.onSessionEventRequest(r,c);default:return this.client.logger.info(`Unsupported request method ${l}`)}},this.onRelayEventResponse=async i=>{let{topic:r,payload:c}=i,l=(await this.client.core.history.get(r,c.id)).request.method;switch(l){case"wc_sessionPropose":return this.onSessionProposeResponse(r,c);case"wc_sessionSettle":return this.onSessionSettleResponse(r,c);case"wc_sessionUpdate":return this.onSessionUpdateResponse(r,c);case"wc_sessionExtend":return this.onSessionExtendResponse(r,c);case"wc_sessionPing":return this.onSessionPingResponse(r,c);case"wc_sessionRequest":return this.onSessionRequestResponse(r,c);default:return this.client.logger.info(`Unsupported response method ${l}`)}},this.onRelayEventUnknownPayload=i=>{let{topic:r}=i,{message:c}=(0,C.Z7)("MISSING_OR_INVALID",`Decoded payload on topic ${r} is not identifiable as a JSON-RPC request or a response.`);throw Error(c)},this.onSessionProposeRequest=async(i,r)=>{let{params:c,id:l}=r;try{this.isValidConnect(dist_index_es_g({},r.params));let S=(0,C.gn)(ey.FIVE_MINUTES),P=dist_index_es_g({id:l,pairingTopic:i,expiry:S},c);await this.setProposal(l,P);let R=(0,C.rj)(JSON.stringify(r)),A=await this.getVerifyContext(R,P.proposer.metadata);this.client.events.emit("session_proposal",{id:l,params:P,verifyContext:A})}catch(r){await this.sendError(l,i,r),this.client.logger.error(r)}},this.onSessionProposeResponse=async(i,r)=>{let{id:c}=r;if((0,eS.isJsonRpcResult)(r)){let{result:l}=r;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:l});let S=this.client.proposal.get(c);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:S});let P=S.proposer.publicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:P});let C=l.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:C});let R=await this.client.core.crypto.generateSharedKey(P,C);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:R});let A=await this.client.core.relayer.subscribe(R);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:A}),await this.client.core.pairing.activate({topic:i})}else(0,eS.isJsonRpcError)(r)&&(await this.client.proposal.delete(c,(0,C.D6)("USER_DISCONNECTED")),this.events.emit((0,C.E0)("session_connect"),{error:r.error}))},this.onSessionSettleRequest=async(i,r)=>{let{id:c,params:l}=r;try{this.isValidSessionSettleRequest(l);let{relay:c,controller:S,expiry:P,namespaces:R,requiredNamespaces:A,optionalNamespaces:q,sessionProperties:$,pairingTopic:U}=r.params,F=dist_index_es_g({topic:i,relay:c,expiry:P,namespaces:R,acknowledged:!0,pairingTopic:U,requiredNamespaces:A,optionalNamespaces:q,controller:S.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:S.publicKey,metadata:S.metadata}},$&&{sessionProperties:$});await this.sendResult({id:r.id,topic:i,result:!0}),this.events.emit((0,C.E0)("session_connect"),{session:F}),this.cleanupDuplicatePairings(F)}catch(r){await this.sendError(c,i,r),this.client.logger.error(r)}},this.onSessionSettleResponse=async(i,r)=>{let{id:c}=r;(0,eS.isJsonRpcResult)(r)?(await this.client.session.update(i,{acknowledged:!0}),this.events.emit((0,C.E0)("session_approve",c),{})):(0,eS.isJsonRpcError)(r)&&(await this.client.session.delete(i,(0,C.D6)("USER_DISCONNECTED")),this.events.emit((0,C.E0)("session_approve",c),{error:r.error}))},this.onSessionUpdateRequest=async(i,r)=>{let{params:c,id:l}=r;try{let r=`${i}_session_update`,S=C.O6.get(r);if(S&&this.isRequestOutOfSync(S,l)){this.client.logger.info(`Discarding out of sync request - ${l}`);return}this.isValidUpdate(dist_index_es_g({topic:i},c)),await this.client.session.update(i,{namespaces:c.namespaces}),await this.sendResult({id:l,topic:i,result:!0}),this.client.events.emit("session_update",{id:l,topic:i,params:c}),C.O6.set(r,l)}catch(r){await this.sendError(l,i,r),this.client.logger.error(r)}},this.isRequestOutOfSync=(i,r)=>parseInt(r.toString().slice(0,-3))<=parseInt(i.toString().slice(0,-3)),this.onSessionUpdateResponse=(i,r)=>{let{id:c}=r;(0,eS.isJsonRpcResult)(r)?this.events.emit((0,C.E0)("session_update",c),{}):(0,eS.isJsonRpcError)(r)&&this.events.emit((0,C.E0)("session_update",c),{error:r.error})},this.onSessionExtendRequest=async(i,r)=>{let{id:c}=r;try{this.isValidExtend({topic:i}),await this.setExpiry(i,(0,C.gn)(i_)),await this.sendResult({id:c,topic:i,result:!0}),this.client.events.emit("session_extend",{id:c,topic:i})}catch(r){await this.sendError(c,i,r),this.client.logger.error(r)}},this.onSessionExtendResponse=(i,r)=>{let{id:c}=r;(0,eS.isJsonRpcResult)(r)?this.events.emit((0,C.E0)("session_extend",c),{}):(0,eS.isJsonRpcError)(r)&&this.events.emit((0,C.E0)("session_extend",c),{error:r.error})},this.onSessionPingRequest=async(i,r)=>{let{id:c}=r;try{this.isValidPing({topic:i}),await this.sendResult({id:c,topic:i,result:!0}),this.client.events.emit("session_ping",{id:c,topic:i})}catch(r){await this.sendError(c,i,r),this.client.logger.error(r)}},this.onSessionPingResponse=(i,r)=>{let{id:c}=r;setTimeout(()=>{(0,eS.isJsonRpcResult)(r)?this.events.emit((0,C.E0)("session_ping",c),{}):(0,eS.isJsonRpcError)(r)&&this.events.emit((0,C.E0)("session_ping",c),{error:r.error})},500)},this.onSessionDeleteRequest=async(i,r)=>{let{id:c}=r;try{this.isValidDisconnect({topic:i,reason:r.params}),await Promise.all([new Promise(r=>{this.client.core.relayer.once(tD.publish,async()=>{r(await this.deleteSession(i))})}),this.sendResult({id:c,topic:i,result:!0})]),this.client.events.emit("session_delete",{id:c,topic:i})}catch(i){this.client.logger.error(i)}},this.onSessionRequest=async(i,r)=>{let{id:c,params:l}=r;try{this.isValidRequest(dist_index_es_g({topic:i},l));let r=(0,C.rj)(JSON.stringify((0,eS.formatJsonRpcRequest)("wc_sessionRequest",l,c))),S=this.client.session.get(i),P=await this.getVerifyContext(r,S.peer.metadata),R={id:c,topic:i,params:l,verifyContext:P};await this.setPendingSessionRequest(R),this.addSessionRequestToSessionRequestQueue(R),this.processSessionRequestQueue()}catch(r){await this.sendError(c,i,r),this.client.logger.error(r)}},this.onSessionRequestResponse=(i,r)=>{let{id:c}=r;(0,eS.isJsonRpcResult)(r)?this.events.emit((0,C.E0)("session_request",c),{result:r.result}):(0,eS.isJsonRpcError)(r)&&this.events.emit((0,C.E0)("session_request",c),{error:r.error})},this.onSessionEventRequest=async(i,r)=>{let{id:c,params:l}=r;try{let r=`${i}_session_event_${l.event.name}`,S=C.O6.get(r);if(S&&this.isRequestOutOfSync(S,c)){this.client.logger.info(`Discarding out of sync request - ${c}`);return}this.isValidEmit(dist_index_es_g({topic:i},l)),this.client.events.emit("session_event",{id:c,topic:i,params:l}),C.O6.set(r,c)}catch(r){await this.sendError(c,i,r),this.client.logger.error(r)}},this.addSessionRequestToSessionRequestQueue=i=>{this.sessionRequestQueue.queue.push(i)},this.cleanupAfterResponse=i=>{this.deletePendingSessionRequest(i.response.id,{message:"fulfilled",code:0}),setTimeout(()=>{this.sessionRequestQueue.state=iI.idle,this.processSessionRequestQueue()},(0,ey.toMiliseconds)(this.requestQueueDelay))},this.processSessionRequestQueue=()=>{if(this.sessionRequestQueue.state===iI.active){this.client.logger.info("session request queue is already active.");return}let i=this.sessionRequestQueue.queue[0];if(!i){this.client.logger.info("session request queue is empty.");return}try{this.sessionRequestQueue.state=iI.active,this.client.events.emit("session_request",i)}catch(i){this.client.logger.error(i)}},this.onPairingCreated=i=>{if(i.active)return;let r=this.client.proposal.getAll().find(r=>r.pairingTopic===i.topic);r&&this.onSessionProposeRequest(i.topic,(0,eS.formatJsonRpcRequest)("wc_sessionPropose",{requiredNamespaces:r.requiredNamespaces,optionalNamespaces:r.optionalNamespaces,relays:r.relays,proposer:r.proposer,sessionProperties:r.sessionProperties},r.id))},this.isValidConnect=async i=>{if(!(0,C.EJ)(i)){let{message:r}=(0,C.Z7)("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(i)}`);throw Error(r)}let{pairingTopic:r,requiredNamespaces:c,optionalNamespaces:l,sessionProperties:S,relays:P}=i;if((0,C.o8)(r)||await this.isValidPairingTopic(r),!(0,C.PM)(P,!0)){let{message:i}=(0,C.Z7)("MISSING_OR_INVALID",`connect() relays: ${P}`);throw Error(i)}(0,C.o8)(c)||0===(0,C.L5)(c)||this.validateNamespaces(c,"requiredNamespaces"),(0,C.o8)(l)||0===(0,C.L5)(l)||this.validateNamespaces(l,"optionalNamespaces"),(0,C.o8)(S)||this.validateSessionProps(S,"sessionProperties")},this.validateNamespaces=(i,r)=>{let c=(0,C.n)(i,"connect()",r);if(c)throw Error(c.message)},this.isValidApprove=async i=>{if(!(0,C.EJ)(i))throw Error((0,C.Z7)("MISSING_OR_INVALID",`approve() params: ${i}`).message);let{id:r,namespaces:c,relayProtocol:l,sessionProperties:S}=i;await this.isValidProposalId(r);let P=this.client.proposal.get(r),R=(0,C.in)(c,"approve()");if(R)throw Error(R.message);let A=(0,C.rF)(P.requiredNamespaces,c,"approve()");if(A)throw Error(A.message);if(!(0,C.M_)(l,!0)){let{message:i}=(0,C.Z7)("MISSING_OR_INVALID",`approve() relayProtocol: ${l}`);throw Error(i)}(0,C.o8)(S)||this.validateSessionProps(S,"sessionProperties")},this.isValidReject=async i=>{if(!(0,C.EJ)(i)){let{message:r}=(0,C.Z7)("MISSING_OR_INVALID",`reject() params: ${i}`);throw Error(r)}let{id:r,reason:c}=i;if(await this.isValidProposalId(r),!(0,C.$t)(c)){let{message:i}=(0,C.Z7)("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(c)}`);throw Error(i)}},this.isValidSessionSettleRequest=i=>{if(!(0,C.EJ)(i)){let{message:r}=(0,C.Z7)("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${i}`);throw Error(r)}let{relay:r,controller:c,namespaces:l,expiry:S}=i;if(!(0,C.Z2)(r)){let{message:i}=(0,C.Z7)("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw Error(i)}let P=(0,C.Dd)(c,"onSessionSettleRequest()");if(P)throw Error(P.message);let R=(0,C.in)(l,"onSessionSettleRequest()");if(R)throw Error(R.message);if((0,C.Bw)(S)){let{message:i}=(0,C.Z7)("EXPIRED","onSessionSettleRequest()");throw Error(i)}},this.isValidUpdate=async i=>{if(!(0,C.EJ)(i)){let{message:r}=(0,C.Z7)("MISSING_OR_INVALID",`update() params: ${i}`);throw Error(r)}let{topic:r,namespaces:c}=i;await this.isValidSessionTopic(r);let l=this.client.session.get(r),S=(0,C.in)(c,"update()");if(S)throw Error(S.message);let P=(0,C.rF)(l.requiredNamespaces,c,"update()");if(P)throw Error(P.message)},this.isValidExtend=async i=>{if(!(0,C.EJ)(i)){let{message:r}=(0,C.Z7)("MISSING_OR_INVALID",`extend() params: ${i}`);throw Error(r)}let{topic:r}=i;await this.isValidSessionTopic(r)},this.isValidRequest=async i=>{if(!(0,C.EJ)(i)){let{message:r}=(0,C.Z7)("MISSING_OR_INVALID",`request() params: ${i}`);throw Error(r)}let{topic:r,request:c,chainId:l,expiry:S}=i;await this.isValidSessionTopic(r);let{namespaces:P}=this.client.session.get(r);if(!(0,C.p8)(P,l)){let{message:i}=(0,C.Z7)("MISSING_OR_INVALID",`request() chainId: ${l}`);throw Error(i)}if(!(0,C.hH)(c)){let{message:i}=(0,C.Z7)("MISSING_OR_INVALID",`request() ${JSON.stringify(c)}`);throw Error(i)}if(!(0,C.al)(P,l,c.method)){let{message:i}=(0,C.Z7)("MISSING_OR_INVALID",`request() method: ${c.method}`);throw Error(i)}if(S&&!(0,C.ON)(S,ib)){let{message:i}=(0,C.Z7)("MISSING_OR_INVALID",`request() expiry: ${S}. Expiry must be a number (in seconds) between ${ib.min} and ${ib.max}`);throw Error(i)}},this.isValidRespond=async i=>{var r;if(!(0,C.EJ)(i)){let{message:r}=(0,C.Z7)("MISSING_OR_INVALID",`respond() params: ${i}`);throw Error(r)}let{topic:c,response:l}=i;try{await this.isValidSessionTopic(c)}catch(c){throw null!=(r=i?.response)&&r.id&&this.cleanupAfterResponse(i),c}if(!(0,C.JT)(l)){let{message:i}=(0,C.Z7)("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(l)}`);throw Error(i)}},this.isValidPing=async i=>{if(!(0,C.EJ)(i)){let{message:r}=(0,C.Z7)("MISSING_OR_INVALID",`ping() params: ${i}`);throw Error(r)}let{topic:r}=i;await this.isValidSessionOrPairingTopic(r)},this.isValidEmit=async i=>{if(!(0,C.EJ)(i)){let{message:r}=(0,C.Z7)("MISSING_OR_INVALID",`emit() params: ${i}`);throw Error(r)}let{topic:r,event:c,chainId:l}=i;await this.isValidSessionTopic(r);let{namespaces:S}=this.client.session.get(r);if(!(0,C.p8)(S,l)){let{message:i}=(0,C.Z7)("MISSING_OR_INVALID",`emit() chainId: ${l}`);throw Error(i)}if(!(0,C.nf)(c)){let{message:i}=(0,C.Z7)("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(c)}`);throw Error(i)}if(!(0,C.sI)(S,l,c.name)){let{message:i}=(0,C.Z7)("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(c)}`);throw Error(i)}},this.isValidDisconnect=async i=>{if(!(0,C.EJ)(i)){let{message:r}=(0,C.Z7)("MISSING_OR_INVALID",`disconnect() params: ${i}`);throw Error(r)}let{topic:r}=i;await this.isValidSessionOrPairingTopic(r)},this.getVerifyContext=async(i,r)=>{let c={verified:{verifyUrl:r.verifyUrl||tW,validation:"UNKNOWN",origin:r.url||""}};try{let l=await this.client.core.verify.resolve({attestationId:i,verifyUrl:r.verifyUrl});l&&(c.verified.origin=l.origin,c.verified.isScam=l.isScam,c.verified.validation=l.origin===new URL(r.url).origin?"VALID":"INVALID")}catch(i){this.client.logger.info(i)}return this.client.logger.info(`Verify context: ${JSON.stringify(c)}`),c},this.validateSessionProps=(i,r)=>{Object.values(i).forEach(i=>{if(!(0,C.M_)(i,!1)){let{message:c}=(0,C.Z7)("MISSING_OR_INVALID",`${r} must be in Record format. Received: ${JSON.stringify(i)}`);throw Error(c)}})}}async isInitialized(){if(!this.initialized){let{message:i}=(0,C.Z7)("NOT_INITIALIZED",this.name);throw Error(i)}await this.client.core.relayer.confirmOnlineStateOrThrow()}registerRelayerEvents(){this.client.core.relayer.on(tD.message,async i=>{let{topic:r,message:c}=i;if(this.ignoredPayloadTypes.includes(this.client.core.crypto.getPayloadType(c)))return;let l=await this.client.core.crypto.decode(r,c);try{(0,eS.isJsonRpcRequest)(l)?(this.client.core.history.set(r,l),this.onRelayEventRequest({topic:r,payload:l})):(0,eS.isJsonRpcResponse)(l)?(await this.client.core.history.resolve(l),await this.onRelayEventResponse({topic:r,payload:l}),this.client.core.history.delete(r,l.id)):this.onRelayEventUnknownPayload({topic:r,payload:l})}catch(i){this.client.logger.error(i)}})}registerExpirerEvents(){this.client.core.expirer.on(tB.expired,async i=>{let{topic:r,id:c}=(0,C.iP)(i.target);if(c&&this.client.pendingRequest.keys.includes(c))return await this.deletePendingSessionRequest(c,(0,C.Z7)("EXPIRED"),!0);r?this.client.session.keys.includes(r)&&(await this.deleteSession(r,!0),this.client.events.emit("session_expire",{topic:r})):c&&(await this.deleteProposal(c,!0),this.client.events.emit("proposal_expire",{id:c}))})}registerPairingEvents(){this.client.core.pairing.events.on(tK.create,i=>this.onPairingCreated(i))}isValidPairingTopic(i){if(!(0,C.M_)(i,!1)){let{message:r}=(0,C.Z7)("MISSING_OR_INVALID",`pairing topic should be a string: ${i}`);throw Error(r)}if(!this.client.core.pairing.pairings.keys.includes(i)){let{message:r}=(0,C.Z7)("NO_MATCHING_KEY",`pairing topic doesn't exist: ${i}`);throw Error(r)}if((0,C.Bw)(this.client.core.pairing.pairings.get(i).expiry)){let{message:r}=(0,C.Z7)("EXPIRED",`pairing topic: ${i}`);throw Error(r)}}async isValidSessionTopic(i){if(!(0,C.M_)(i,!1)){let{message:r}=(0,C.Z7)("MISSING_OR_INVALID",`session topic should be a string: ${i}`);throw Error(r)}if(!this.client.session.keys.includes(i)){let{message:r}=(0,C.Z7)("NO_MATCHING_KEY",`session topic doesn't exist: ${i}`);throw Error(r)}if((0,C.Bw)(this.client.session.get(i).expiry)){await this.deleteSession(i);let{message:r}=(0,C.Z7)("EXPIRED",`session topic: ${i}`);throw Error(r)}}async isValidSessionOrPairingTopic(i){if(this.client.session.keys.includes(i))await this.isValidSessionTopic(i);else if(this.client.core.pairing.pairings.keys.includes(i))this.isValidPairingTopic(i);else if((0,C.M_)(i,!1)){let{message:r}=(0,C.Z7)("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${i}`);throw Error(r)}else{let{message:r}=(0,C.Z7)("MISSING_OR_INVALID",`session or pairing topic should be a string: ${i}`);throw Error(r)}}async isValidProposalId(i){if(!(0,C.Q0)(i)){let{message:r}=(0,C.Z7)("MISSING_OR_INVALID",`proposal id should be a number: ${i}`);throw Error(r)}if(!this.client.proposal.keys.includes(i)){let{message:r}=(0,C.Z7)("NO_MATCHING_KEY",`proposal id doesn't exist: ${i}`);throw Error(r)}if((0,C.Bw)(this.client.proposal.get(i).expiry)){await this.deleteProposal(i);let{message:r}=(0,C.Z7)("EXPIRED",`proposal id: ${i}`);throw Error(r)}}};let index_es_us=class index_es_us extends Kt{constructor(i,r){super(i,r,"proposal",id),this.core=i,this.logger=r}};let index_es_ue=class index_es_ue extends Kt{constructor(i,r){super(i,r,"session",id),this.core=i,this.logger=r}};let index_es_gs=class index_es_gs extends Kt{constructor(i,r){super(i,r,"request",id,i=>i.id),this.core=i,this.logger=r}};let index_es_Q=class index_es_Q extends b{constructor(i){super(i),this.protocol="wc",this.version=2,this.name=ig.name,this.events=new S.EventEmitter,this.on=(i,r)=>this.events.on(i,r),this.once=(i,r)=>this.events.once(i,r),this.off=(i,r)=>this.events.off(i,r),this.removeListener=(i,r)=>this.events.removeListener(i,r),this.removeAllListeners=i=>this.events.removeAllListeners(i),this.connect=async i=>{try{return await this.engine.connect(i)}catch(i){throw this.logger.error(i.message),i}},this.pair=async i=>{try{return await this.engine.pair(i)}catch(i){throw this.logger.error(i.message),i}},this.approve=async i=>{try{return await this.engine.approve(i)}catch(i){throw this.logger.error(i.message),i}},this.reject=async i=>{try{return await this.engine.reject(i)}catch(i){throw this.logger.error(i.message),i}},this.update=async i=>{try{return await this.engine.update(i)}catch(i){throw this.logger.error(i.message),i}},this.extend=async i=>{try{return await this.engine.extend(i)}catch(i){throw this.logger.error(i.message),i}},this.request=async i=>{try{return await this.engine.request(i)}catch(i){throw this.logger.error(i.message),i}},this.respond=async i=>{try{return await this.engine.respond(i)}catch(i){throw this.logger.error(i.message),i}},this.ping=async i=>{try{return await this.engine.ping(i)}catch(i){throw this.logger.error(i.message),i}},this.emit=async i=>{try{return await this.engine.emit(i)}catch(i){throw this.logger.error(i.message),i}},this.disconnect=async i=>{try{return await this.engine.disconnect(i)}catch(i){throw this.logger.error(i.message),i}},this.find=i=>{try{return this.engine.find(i)}catch(i){throw this.logger.error(i.message),i}},this.getPendingSessionRequests=()=>{try{return this.engine.getPendingSessionRequests()}catch(i){throw this.logger.error(i.message),i}},this.name=i?.name||ig.name,this.metadata=i?.metadata||(0,C.D)();let r="u">typeof i?.logger&&"string"!=typeof i?.logger?i.logger:(0,et.pino)((0,et.getDefaultLoggerOptions)({level:i?.logger||ig.logger}));this.core=i?.core||new te(i),this.logger=(0,et.generateChildLogger)(r,this.name),this.session=new index_es_ue(this.core,this.logger),this.proposal=new index_es_us(this.core,this.logger),this.pendingRequest=new index_es_gs(this.core,this.logger),this.engine=new index_es_ds(this)}static async init(i){let r=new index_es_Q(i);return await r.initialize(),r}get context(){return(0,et.getLoggerContext)(this.logger)}get pairing(){return this.core.pairing.pairings}async initialize(){this.logger.trace("Initialized");try{await this.core.start(),await this.session.init(),await this.proposal.init(),await this.pendingRequest.init(),await this.engine.init(),this.core.verify.init({verifyUrl:this.metadata.verifyUrl}),this.logger.info("SignClient Initialization Success")}catch(i){throw this.logger.info("SignClient Initialization Failure"),this.logger.error(i.message),i}}};var iA=c(40174);let iN="error",iL="wc@2:universal_provider:",ij={DEFAULT_CHAIN_CHANGED:"default_chain_changed"};var iT="u">typeof globalThis?globalThis:"u">typeof window?window:"u">typeof c.g?c.g:"u">typeof self?self:{},iz={exports:{}};/** - * @license - * Lodash - * Copyright OpenJS Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */!function(i,r){(function(){var c,l="Expected a function",S="__lodash_hash_undefined__",P="__lodash_placeholder__",C=1/0,R=0/0,A=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],q="[object Arguments]",$="[object Array]",U="[object Boolean]",F="[object Date]",J="[object Error]",Q="[object Function]",X="[object GeneratorFunction]",ee="[object Map]",et="[object Number]",eo="[object Object]",ep="[object Promise]",eg="[object RegExp]",ey="[object Set]",em="[object String]",e_="[object Symbol]",ew="[object WeakMap]",eb="[object ArrayBuffer]",eI="[object DataView]",eE="[object Float32Array]",ex="[object Float64Array]",eS="[object Int8Array]",eP="[object Int16Array]",eC="[object Int32Array]",eO="[object Uint8Array]",eR="[object Uint8ClampedArray]",eA="[object Uint16Array]",eN="[object Uint32Array]",eL=/\b__p \+= '';/g,ej=/\b(__p \+=) '' \+/g,eT=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ez=/&(?:amp|lt|gt|quot|#39);/g,eD=/[&<>"']/g,ek=RegExp(ez.source),eM=RegExp(eD.source),eH=/<%-([\s\S]+?)%>/g,e$=/<%([\s\S]+?)%>/g,eU=/<%=([\s\S]+?)%>/g,eK=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,eV=/^\w*$/,eB=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,eG=/[\\^$.*+?()[\]{}|]/g,eW=RegExp(eG.source),eZ=/^\s+/,eF=/\s/,eJ=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,eY=/\{\n\/\* \[wrapped with (.+)\] \*/,eQ=/,? & /,eX=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,e0=/[()=,{}\[\]\/\s]/,e1=/\\(\\)?/g,e5=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,e6=/\w*$/,e2=/^[-+]0x[0-9a-f]+$/i,e3=/^0b[01]+$/i,e9=/^\[object .+?Constructor\]$/,e8=/^0o[0-7]+$/i,e4=/^(?:0|[1-9]\d*)$/,e7=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,tn=/($^)/,ta=/['\n\r\u2028\u2029\\]/g,to="\ud800-\udfff",tp="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ty="\\u2700-\\u27bf",tm="a-z\\xdf-\\xf6\\xf8-\\xff",t_="A-Z\\xc0-\\xd6\\xd8-\\xde",tw="\\ufe0e\\ufe0f",tb="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",tI="['’]",tE="["+tb+"]",tx="["+tp+"]",tS="["+tm+"]",tP="[^"+to+tb+"\\d+"+ty+tm+t_+"]",tC="\ud83c[\udffb-\udfff]",tO="[^"+to+"]",tR="(?:\ud83c[\udde6-\uddff]){2}",tA="[\ud800-\udbff][\udc00-\udfff]",tN="["+t_+"]",tL="\\u200d",tj="(?:"+tS+"|"+tP+")",tT="(?:"+tI+"(?:d|ll|m|re|s|t|ve))?",tz="(?:"+tI+"(?:D|LL|M|RE|S|T|VE))?",tq="(?:"+tx+"|"+tC+")?",tD="["+tw+"]?",tk="(?:"+tL+"(?:"+[tO,tR,tA].join("|")+")"+tD+tq+")*",tM=tD+tq+tk,tH="(?:"+["["+ty+"]",tR,tA].join("|")+")"+tM,t$="(?:"+[tO+tx+"?",tx,tR,tA,"["+to+"]"].join("|")+")",tU=RegExp(tI,"g"),tK=RegExp(tx,"g"),tV=RegExp(tC+"(?="+tC+")|"+t$+tM,"g"),tB=RegExp([tN+"?"+tS+"+"+tT+"(?="+[tE,tN,"$"].join("|")+")","(?:"+tN+"|"+tP+")+"+tz+"(?="+[tE,tN+tj,"$"].join("|")+")",tN+"?"+tj+"+"+tT,tN+"+"+tz,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",tH].join("|"),"g"),tG=RegExp("["+tL+to+tp+tw+"]"),tW=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tZ=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],tF=-1,tJ={};tJ[eE]=tJ[ex]=tJ[eS]=tJ[eP]=tJ[eC]=tJ[eO]=tJ[eR]=tJ[eA]=tJ[eN]=!0,tJ[q]=tJ[$]=tJ[eb]=tJ[U]=tJ[eI]=tJ[F]=tJ[J]=tJ[Q]=tJ[ee]=tJ[et]=tJ[eo]=tJ[eg]=tJ[ey]=tJ[em]=tJ[ew]=!1;var tY={};tY[q]=tY[$]=tY[eb]=tY[eI]=tY[U]=tY[F]=tY[eE]=tY[ex]=tY[eS]=tY[eP]=tY[eC]=tY[ee]=tY[et]=tY[eo]=tY[eg]=tY[ey]=tY[em]=tY[e_]=tY[eO]=tY[eR]=tY[eA]=tY[eN]=!0,tY[J]=tY[Q]=tY[ew]=!1;var tQ={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tX=parseFloat,t0=parseInt,t1="object"==typeof iT&&iT&&iT.Object===Object&&iT,t5="object"==typeof self&&self&&self.Object===Object&&self,t6=t1||t5||Function("return this")(),t2=r&&!r.nodeType&&r,t3=t2&&i&&!i.nodeType&&i,t9=t3&&t3.exports===t2,t8=t9&&t1.process,t4=function(){try{return t3&&t3.require&&t3.require("util").types||t8&&t8.binding&&t8.binding("util")}catch{}}(),t7=t4&&t4.isArrayBuffer,ie=t4&&t4.isDate,ir=t4&&t4.isMap,io=t4&&t4.isRegExp,il=t4&&t4.isSet,iu=t4&&t4.isTypedArray;function cn(i,r,c){switch(c.length){case 0:return i.call(r);case 1:return i.call(r,c[0]);case 2:return i.call(r,c[0],c[1]);case 3:return i.call(r,c[0],c[1],c[2])}return i.apply(r,c)}function Vo(i,r,c,l){for(var S=-1,P=null==i?0:i.length;++S-1}function Dr(i,r,c){for(var l=-1,S=null==i?0:i.length;++l-1;);return c}function Os(i,r){for(var c=i.length;c--&&Tt(r,i[c],0)>-1;);return c}function af(i,r){for(var c=i.length,l=0;c--;)i[c]===r&&++l;return l}var ig=Ur({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),iy=Ur({"&":"&","<":"<",">":">",'"':""","'":"'"});function cf(i){return"\\"+tQ[i]}function hf(i,r){return null==i?c:i[r]}function Lt(i){return tG.test(i)}function lf(i){return tW.test(i)}function pf(i){for(var r,c=[];!(r=i.next()).done;)c.push(r.value);return c}function qr(i){var r=-1,c=Array(i.size);return i.forEach(function(i,l){c[++r]=[l,i]}),c}function Rs(i,r){return function(c){return i(r(c))}}function tt(i,r){for(var c=-1,l=i.length,S=0,C=[];++c",""":'"',"'":"'"});function mf(i){for(var r=tV.lastIndex=0;tV.test(i);)++r;return r}function wf(i){return i.match(tV)||[]}function Pf(i){return i.match(tB)||[]}var i_=function h(i){var r,eF,eX=(i=null==i?t6:i_.defaults(t6.Object(),i,i_.pick(t6,tZ))).Array,to=i.Date,tp=i.Error,ty=i.Function,tm=i.Math,t_=i.Object,tw=i.RegExp,tb=i.String,tI=i.TypeError,tE=eX.prototype,tx=ty.prototype,tS=t_.prototype,tP=i["__core-js_shared__"],tC=tx.toString,tO=tS.hasOwnProperty,tR=0,tA=(r=/[^.]+$/.exec(tP&&tP.keys&&tP.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",tN=tS.toString,tL=tC.call(t_),tj=t6._,tT=tw("^"+tC.call(tO).replace(eG,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),tz=t9?i.Buffer:c,tq=i.Symbol,tD=i.Uint8Array,tk=tz?tz.allocUnsafe:c,tM=Rs(t_.getPrototypeOf,t_),tH=t_.create,t$=tS.propertyIsEnumerable,tV=tE.splice,tB=tq?tq.isConcatSpreadable:c,tG=tq?tq.iterator:c,tW=tq?tq.toStringTag:c,tQ=function(){try{var i=mt(t_,"defineProperty");return i({},"",{}),i}catch{}}(),t1=i.clearTimeout!==t6.clearTimeout&&i.clearTimeout,t5=to&&to.now!==t6.Date.now&&to.now,t2=i.setTimeout!==t6.setTimeout&&i.setTimeout,t3=tm.ceil,t8=tm.floor,t4=t_.getOwnPropertySymbols,id=tz?tz.isBuffer:c,iw=i.isFinite,ib=tE.join,iI=Rs(t_.keys,t_),iE=tm.max,ix=tm.min,iS=to.now,iP=i.parseInt,iC=tm.random,iO=tE.reverse,iR=mt(i,"DataView"),iA=mt(i,"Map"),iN=mt(i,"Promise"),iL=mt(i,"Set"),ij=mt(i,"WeakMap"),iT=mt(t_,"create"),iz=ij&&new ij,iq={},iD=wt(iR),ik=wt(iA),iM=wt(iN),iH=wt(iL),i$=wt(ij),iU=tq?tq.prototype:c,iK=iU?iU.valueOf:c,iV=iU?iU.toString:c;function a(i){if(Y(i)&&!rF(i)&&!(i instanceof H)){if(i instanceof Pn)return i;if(tO.call(i,"__wrapped__"))return Fu(i)}return new Pn(i)}var iB=function(){function n(){}return function(i){if(!K(i))return{};if(tH)return tH(i);n.prototype=i;var r=new n;return n.prototype=c,r}}();function qe(){}function Pn(i,r){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!r,this.__index__=0,this.__values__=c}function H(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Bf(){var i=new H(this.__wrapped__);return i.__actions__=un(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=un(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=un(this.__views__),i}function Gf(){if(this.__filtered__){var i=new H(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function zf(){var i=this.__wrapped__.value(),r=this.__dir__,c=rF(i),l=r<0,S=c?i.length:0,P=eh(0,S,this.__views__),C=P.start,R=P.end,A=R-C,q=l?R:C-1,$=this.__iteratees__,U=$.length,F=0,J=ix(A,this.__takeCount__);if(!c||!l&&S==A&&J==A)return ou(i,this.__actions__);var Q=[];e:for(;A--&&F-1}function nc(i,r){var c=this.__data__,l=Be(c,i);return l<0?(++this.size,c.push([i,r])):c[l][1]=r,this}function Gn(i){var r=-1,c=null==i?0:i.length;for(this.clear();++r=r?i:r)),i}function An(i,r,l,S,P,C){var R,A=1&r,$=2&r,U=4&r;if(l&&(R=P?l(i,S,P,C):l(i)),R!==c)return R;if(!K(i))return i;var F=rF(i);if(F){if(R=ih(i),!A)return un(i,R)}else{var J=i2(i),ee=J==Q||J==X;if(rY(i))return hu(i,A);if(J==eo||J==q||ee&&!P){if(R=$||ee?{}:bu(i),!A)return $?Zc(i,vc(R,i)):Yc(i,qs(R,i))}else{if(!tY[J])return P?i:{};R=sh(i,J,A)}}C||(C=new Rn);var et=C.get(i);if(et)return et;C.set(i,R),r1(i)?i.forEach(function(c){R.add(An(c,r,l,c,i,C))}):rX(i)&&i.forEach(function(c,S){R.set(S,An(c,r,l,S,i,C))});var ep=U?$?pi:li:$?on:V,eg=F?c:ep(i);return mn(eg||i,function(c,S){eg&&(c=i[S=c]),se(R,S,An(c,r,l,S,i,C))}),R}function _c(i){var r=V(i);return function(c){return Bs(c,i,r)}}function Bs(i,r,l){var S=l.length;if(null==i)return!S;for(i=t_(i);S--;){var P=l[S],C=r[P],R=i[P];if(R===c&&!(P in i)||!C(R))return!1}return!0}function Gs(i,r,S){if("function"!=typeof i)throw new tI(l);return i8(function(){i.apply(c,S)},r)}function ue(i,r,c,l){var S=-1,P=Ee,C=!0,R=i.length,A=[],q=r.length;if(!R)return A;c&&(r=G(r,hn(c))),l?(P=Dr,C=!1):r.length>=200&&(P=jt,C=!1,r=new gt(r));e:for(;++SP?0:P+l),(S=S===c||S>P?P:b(S))<0&&(S+=P),S=l>S?0:aa(S);l0&&c(R)?r>1?j(R,r-1,c,l,S):nt(S,R):l||(S[S.length]=R)}return S}var iZ=_u(),iF=_u(!0);function $n(i,r){return i&&iZ(i,r,V)}function Xr(i,r){return i&&iF(i,r,V)}function ze(i,r){return jn(r,function(r){return Jn(i[r])})}function _t(i,r){r=st(r,i);for(var l=0,S=r.length;null!=i&&lr}function Pc(i,r){return null!=i&&tO.call(i,r)}function Ac(i,r){return null!=i&&r in t_(i)}function Cc(i,r,c){return i>=ix(r,c)&&i=120&&U.length>=120)?new gt(R&&U):c}U=i[0];var F=-1,J=A[0];e:for(;++F-1;)R!==i&&tV.call(R,A,1),tV.call(i,A,1);return i}function ru(i,r){for(var c=i?r.length:0,l=c-1;c--;){var S=r[c];if(c==l||S!==P){var P=S;Zn(S)?tV.call(i,S,1):si(i,S)}}return i}function ei(i,r){return i+t8(iC()*(r-i+1))}function Nc(i,r,c,l){for(var S=-1,P=iE(t3((r-i)/(c||1)),0),C=eX(P);P--;)C[l?P:++S]=i,i+=c;return C}function ri(i,r){var c="";if(!i||r<1||r>9007199254740991)return c;do r%2&&(c+=i),(r=t8(r/2))&&(i+=i);while(r);return c}function L(i,r){return i4(Du(i,r,fn),i+"")}function $c(i){return Ms(Gt(i))}function Uc(i,r){var c=Gt(i);return tr(c,vt(r,0,c.length))}function fe(i,r,l,S){if(!K(i))return i;r=st(r,i);for(var P=-1,C=r.length,R=C-1,A=i;null!=A&&++PS?0:S+r),(c=c>S?S:c)<0&&(c+=S),S=r>c?0:c-r>>>0,r>>>=0;for(var P=eX(S);++l>>1,C=i[P];null!==C&&!pn(C)&&(c?C<=r:C=200){var q=r?null:i0(i);if(q)return Se(q);C=!1,S=jt,A=new gt}else A=r?[]:R;e:for(;++l=S?i:Cn(i,r,l)}var iX=t1||function(i){return t6.clearTimeout(i)};function hu(i,r){if(r)return i.slice();var c=i.length,l=tk?tk(c):new i.constructor(c);return i.copy(l),l}function fi(i){var r=new i.constructor(i.byteLength);return new tD(r).set(new tD(i)),r}function Bc(i,r){var c=r?fi(i.buffer):i.buffer;return new i.constructor(c,i.byteOffset,i.byteLength)}function Gc(i){var r=new i.constructor(i.source,e6.exec(i));return r.lastIndex=i.lastIndex,r}function zc(i){return iK?t_(iK.call(i)):{}}function lu(i,r){var c=r?fi(i.buffer):i.buffer;return new i.constructor(c,i.byteOffset,i.length)}function pu(i,r){if(i!==r){var l=i!==c,S=null===i,P=i==i,C=pn(i),R=r!==c,A=null===r,q=r==r,$=pn(r);if(!A&&!$&&!C&&i>r||C&&R&&q&&!A&&!$||S&&R&&q||!l&&q||!P)return 1;if(!S&&!C&&!$&&i=R)return A;return A*("desc"==c[l]?-1:1)}}return i.index-r.index}function du(i,r,c,l){for(var S=-1,P=i.length,C=c.length,R=-1,A=r.length,q=iE(P-C,0),$=eX(A+q),U=!l;++R1?l[P-1]:c,R=P>2?l[2]:c;for(C=i.length>3&&"function"==typeof C?(P--,C):c,R&&rn(l[0],l[1],R)&&(C=P<3?c:C,P=1),r=t_(r);++S-1?P[C?r[R]:R]:c}}function Pu(i){return Yn(function(r){var S=r.length,P=S,C=Pn.prototype.thru;for(i&&r.reverse();P--;){var R=r[P];if("function"!=typeof R)throw new tI(l);if(C&&!A&&"wrapper"==je(R))var A=new Pn([],!0)}for(P=A?P:S;++P1&&et.reverse(),U&&qA))return!1;var $=C.get(i),U=C.get(r);if($&&U)return $==r&&U==i;var F=-1,J=!0,Q=2&l?new gt:c;for(C.set(i,r),C.set(r,i);++F1?"& ":"")+r[l],r=r.join(c>2?", ":" "),i.replace(eJ,`{ -/* [wrapped with `+r+`] */ -`)}function ah(i){return rF(i)||rZ(i)||!!(tB&&i&&i[tB])}function Zn(i,r){var c=typeof i;return!!(r=r??9007199254740991)&&("number"==c||"symbol"!=c&&e4.test(i))&&i>-1&&i%1==0&&i0){if(++r>=800)return arguments[0]}else r=0;return i.apply(c,arguments)}}function tr(i,r){var l=-1,S=i.length,P=S-1;for(r=r===c?S:r;++l1?i[r-1]:c;return l="function"==typeof l?(i.pop(),l):c,Ku(i,l)});function Yu(i){var r=a(i);return r.__chain__=!0,r}function ml(i,r){return r(i),i}function er(i,r){return r(i)}var rO=Yn(function(i){var r=i.length,l=r?i[0]:0,S=this.__wrapped__,s=function(r){return Zr(r,i)};return!(r>1)&&!this.__actions__.length&&S instanceof H&&Zn(l)?((S=S.slice(l,+l+(r?1:0))).__actions__.push({func:er,args:[s],thisArg:c}),new Pn(S,this.__chain__).thru(function(i){return r&&!i.length&&i.push(c),i})):this.thru(s)});function Pl(){return Yu(this)}function Al(){return new Pn(this.value(),this.__chain__)}function Cl(){this.__values__===c&&(this.__values__=ua(this.value()));var i=this.__index__>=this.__values__.length,r=i?c:this.__values__[this.__index__++];return{done:i,value:r}}function Il(){return this}function xl(i){for(var r,l=this;l instanceof qe;){var S=Fu(l);S.__index__=0,S.__values__=c,r?P.__wrapped__=S:r=S;var P=S;l=l.__wrapped__}return P.__wrapped__=i,r}function El(){var i=this.__wrapped__;if(i instanceof H){var r=i;return this.__actions__.length&&(r=new H(this)),(r=r.reverse()).__actions__.push({func:er,args:[Ai],thisArg:c}),new Pn(r,this.__chain__)}return this.thru(Ai)}function yl(){return ou(this.__wrapped__,this.__actions__)}var rR=Je(function(i,r,c){tO.call(i,c)?++i[c]:zn(i,c,1)});function Ol(i,r,l){var S=rF(i)?As:mc;return l&&rn(i,r,l)&&(r=c),S(i,x(r,3))}function Rl(i,r){return(rF(i)?jn:Ks)(i,x(r,3))}var rA=wu(Mu),rN=wu(qu);function Ll(i,r){return j(rr(i,r),1)}function Dl(i,r){return j(rr(i,r),C)}function Hl(i,r,l){return l=l===c?1:b(l),j(rr(i,r),l)}function Zu(i,r){return(rF(i)?mn:iG)(i,x(r,3))}function Ju(i,r){return(rF(i)?ko:iW)(i,x(r,3))}var rL=Je(function(i,r,c){tO.call(i,c)?i[c].push(r):zn(i,c,[r])});function $l(i,r,c,l){i=an(i)?i:Gt(i),c=c&&!l?b(c):0;var S=i.length;return c<0&&(c=iE(S+c,0)),or(i)?c<=S&&i.indexOf(r,c)>-1:!!S&&Tt(i,r,c)>-1}var rj=L(function(i,r,c){var l=-1,S="function"==typeof r,P=an(i)?eX(i.length):[];return iG(i,function(i){P[++l]=S?cn(r,i,c):ae(i,r,c)}),P}),rT=Je(function(i,r,c){zn(i,c,r)});function rr(i,r){return(rF(i)?G:Vs)(i,x(r,3))}function Fl(i,r,l,S){return null==i?[]:(rF(r)||(r=null==r?[]:[r]),rF(l=S?c:l)||(l=null==l?[]:[l]),tu(i,r,l))}var rz=Je(function(i,r,c){i[c?0:1].push(r)},function(){return[[],[]]});function ql(i,r,c){var l=rF(i)?Hr:Es,S=arguments.length<3;return l(i,x(r,4),c,S,iG)}function Bl(i,r,c){var l=rF(i)?jo:Es,S=arguments.length<3;return l(i,x(r,4),c,S,iW)}function Gl(i,r){return(rF(i)?jn:Ks)(i,ur(x(r,3)))}function zl(i){return(rF(i)?Ms:$c)(i)}function Kl(i,r,l){return r=(l?rn(i,r,l):r===c)?1:b(r),(rF(i)?pc:Uc)(i,r)}function Yl(i){return(rF(i)?dc:Fc)(i)}function Zl(i){if(null==i)return 0;if(an(i))return or(i)?Dt(i):i.length;var r=i2(i);return r==ee||r==ey?i.size:jr(i).length}function Jl(i,r,l){var S=rF(i)?Nr:Mc;return l&&rn(i,r,l)&&(r=c),S(i,x(r,3))}var rq=L(function(i,r){if(null==i)return[];var c=r.length;return c>1&&rn(i,r[0],r[1])?r=[]:c>2&&rn(r[0],r[1],r[2])&&(r=[r[0]]),tu(i,j(r,1),[])}),rD=t5||function(){return t6.Date.now()};function Ql(i,r){if("function"!=typeof r)throw new tI(l);return i=b(i),function(){if(--i<1)return r.apply(this,arguments)}}function Xu(i,r,l){return r=l?c:r,r=i&&null==r?i.length:r,Kn(i,128,c,c,c,c,r)}function Qu(i,r){var S;if("function"!=typeof r)throw new tI(l);return i=b(i),function(){return--i>0&&(S=r.apply(this,arguments)),i<=1&&(r=c),S}}var rk=L(function(i,r,c){var l=1;if(c.length){var S=tt(c,qt(rk));l|=32}return Kn(i,l,r,c,S)}),rM=L(function(i,r,c){var l=3;if(c.length){var S=tt(c,qt(rM));l|=32}return Kn(r,l,i,c,S)});function ku(i,r,l){r=l?c:r;var S=Kn(i,8,c,c,c,c,c,r);return S.placeholder=ku.placeholder,S}function ju(i,r,l){r=l?c:r;var S=Kn(i,16,c,c,c,c,c,r);return S.placeholder=ju.placeholder,S}function na(i,r,S){var P,C,R,A,q,$,U=0,F=!1,J=!1,Q=!0;if("function"!=typeof i)throw new tI(l);function I(r){var l=P,S=C;return P=C=c,U=r,A=i.apply(S,l)}function E(i){return U=i,q=i8(D,r),F?I(i):A}function T(i){var c=i-$,l=i-U,S=r-c;return J?ix(S,R-l):S}function y(i){var l=i-$,S=i-U;return $===c||l>=r||l<0||J&&S>=R}function D(){var i=rD();if(y(i))return N(i);q=i8(D,T(i))}function N(i){return q=c,Q&&P?I(i):(P=C=c,A)}function dn(){q!==c&&iX(q),U=0,P=$=C=q=c}function sn(){return q===c?A:N(rD())}function gn(){var i=rD(),l=y(i);if(P=arguments,C=this,$=i,l){if(q===c)return E($);if(J)return iX(q),q=i8(D,r),I($)}return q===c&&(q=i8(D,r)),A}return r=xn(r)||0,K(S)&&(F=!!S.leading,R=(J="maxWait"in S)?iE(xn(S.maxWait)||0,r):R,Q="trailing"in S?!!S.trailing:Q),gn.cancel=dn,gn.flush=sn,gn}var rH=L(function(i,r){return Gs(i,1,r)}),r$=L(function(i,r,c){return Gs(i,xn(r)||0,c)});function jl(i){return Kn(i,512)}function sr(i,r){if("function"!=typeof i||null!=r&&"function"!=typeof r)throw new tI(l);var e=function(){var c=arguments,l=r?r.apply(this,c):c[0],S=e.cache;if(S.has(l))return S.get(l);var P=i.apply(this,c);return e.cache=S.set(l,P)||S,P};return e.cache=new(sr.Cache||Gn),e}function ur(i){if("function"!=typeof i)throw new tI(l);return function(){var r=arguments;switch(r.length){case 0:return!i.call(this);case 1:return!i.call(this,r[0]);case 2:return!i.call(this,r[0],r[1]);case 3:return!i.call(this,r[0],r[1],r[2])}return!i.apply(this,r)}}function np(i){return Qu(2,i)}sr.Cache=Gn;var rU=iQ(function(i,r){var c=(r=1==r.length&&rF(r[0])?G(r[0],hn(x())):G(j(r,1),hn(x()))).length;return L(function(l){for(var S=-1,P=ix(l.length,c);++S=r}),rZ=Js(function(){return arguments}())?Js:function(i){return Y(i)&&tO.call(i,"callee")&&!t$.call(i,"callee")},rF=eX.isArray,rJ=t7?hn(t7):xc;function an(i){return null!=i&&ar(i.length)&&!Jn(i)}function Z(i){return Y(i)&&an(i)}function _p(i){return!0===i||!1===i||Y(i)&&en(i)==U}var rY=id||Ni,rQ=ie?hn(ie):Ec;function wp(i){return Y(i)&&1===i.nodeType&&!pe(i)}function Pp(i){if(null==i)return!0;if(an(i)&&(rF(i)||"string"==typeof i||"function"==typeof i.splice||rY(i)||r5(i)||rZ(i)))return!i.length;var r=i2(i);if(r==ee||r==ey)return!i.size;if(he(i))return!jr(i).length;for(var c in i)if(tO.call(i,c))return!1;return!0}function Ap(i,r){return oe(i,r)}function Cp(i,r,l){var S=(l="function"==typeof l?l:c)?l(i,r):c;return S===c?oe(i,r,c,l):!!S}function Ei(i){if(!Y(i))return!1;var r=en(i);return r==J||"[object DOMException]"==r||"string"==typeof i.message&&"string"==typeof i.name&&!pe(i)}function Ip(i){return"number"==typeof i&&iw(i)}function Jn(i){if(!K(i))return!1;var r=en(i);return r==Q||r==X||"[object AsyncFunction]"==r||"[object Proxy]"==r}function ea(i){return"number"==typeof i&&i==b(i)}function ar(i){return"number"==typeof i&&i>-1&&i%1==0&&i<=9007199254740991}function K(i){var r=typeof i;return null!=i&&("object"==r||"function"==r)}function Y(i){return null!=i&&"object"==typeof i}var rX=ir?hn(ir):Sc;function xp(i,r){return i===r||kr(i,r,gi(r))}function Ep(i,r,l){return l="function"==typeof l?l:c,kr(i,r,gi(r),l)}function yp(i){return ia(i)&&i!=+i}function Sp(i){if(i3(i))throw new tp("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Xs(i)}function Op(i){return null===i}function Rp(i){return null==i}function ia(i){return"number"==typeof i||Y(i)&&en(i)==et}function pe(i){if(!Y(i)||en(i)!=eo)return!1;var r=tM(i);if(null===r)return!0;var c=tO.call(r,"constructor")&&r.constructor;return"function"==typeof c&&c instanceof c&&tC.call(c)==tL}var r0=io?hn(io):Oc;function bp(i){return ea(i)&&i>=-9007199254740991&&i<=9007199254740991}var r1=il?hn(il):Rc;function or(i){return"string"==typeof i||!rF(i)&&Y(i)&&en(i)==em}function pn(i){return"symbol"==typeof i||Y(i)&&en(i)==e_}var r5=iu?hn(iu):bc;function Tp(i){return i===c}function Lp(i){return Y(i)&&i2(i)==ew}function Dp(i){return Y(i)&&"[object WeakSet]"==en(i)}var r6=ke(ni),r2=ke(function(i,r){return i<=r});function ua(i){if(!i)return[];if(an(i))return or(i)?On(i):un(i);if(tG&&i[tG])return pf(i[tG]());var r=i2(i);return(r==ee?qr:r==ey?Se:Gt)(i)}function Xn(i){return i?(i=xn(i))===C||i===-C?(i<0?-1:1)*17976931348623157e292:i==i?i:0:0===i?i:0}function b(i){var r=Xn(i),c=r%1;return r==r?c?r-c:r:0}function aa(i){return i?vt(b(i),0,4294967295):0}function xn(i){if("number"==typeof i)return i;if(pn(i))return R;if(K(i)){var r="function"==typeof i.valueOf?i.valueOf():i;i=K(r)?r+"":r}if("string"!=typeof i)return 0===i?i:+i;i=ys(i);var c=e3.test(i);return c||e8.test(i)?t0(i.slice(2),c?2:8):e2.test(i)?R:+i}function oa(i){return Un(i,on(i))}function $p(i){return i?vt(b(i),-9007199254740991,9007199254740991):0===i?i:0}function W(i){return null==i?"":ln(i)}var r3=Ft(function(i,r){if(he(r)||an(r)){Un(r,V(r),i);return}for(var c in r)tO.call(r,c)&&se(i,c,r[c])}),r9=Ft(function(i,r){Un(r,on(r),i)}),r8=Ft(function(i,r,c,l){Un(r,on(r),i,l)}),r4=Ft(function(i,r,c,l){Un(r,V(r),i,l)}),r7=Yn(Zr);function Mp(i,r){var c=iB(i);return null==r?c:qs(c,r)}var ne=L(function(i,r){i=t_(i);var l=-1,S=r.length,P=S>2?r[2]:c;for(P&&rn(r[0],r[1],P)&&(S=1);++l1),r}),Un(i,pi(i),c),l&&(c=An(c,7,kc));for(var S=r.length;S--;)si(c,r[S]);return c});function sd(i,r){return ha(i,ur(x(r)))}var n_=Yn(function(i,r){return null==i?{}:Dc(i,r)});function ha(i,r){if(null==i)return{};var c=G(pi(i),function(i){return[i]});return r=x(r),eu(i,c,function(i,c){return r(i,c[0])})}function ad(i,r,l){r=st(r,i);var S=-1,P=r.length;for(P||(P=1,i=c);++Sr){var S=i;i=r,r=S}if(l||i%1||r%1){var P=iC();return ix(i+P*(r-i+tX("1e-"+((P+"").length-1))),r)}return ei(i,r)}var nI=Mt(function(i,r,c){return r=r.toLowerCase(),i+(c?da(r):r)});function da(i){return nR(W(i).toLowerCase())}function ga(i){return(i=W(i))&&i.replace(e7,ig).replace(tK,"")}function wd(i,r,l){i=W(i),r=ln(r);var S=i.length,P=l=l===c?S:vt(b(l),0,S);return(l-=r.length)>=0&&i.slice(l,P)==r}function Pd(i){return(i=W(i))&&eM.test(i)?i.replace(eD,iy):i}function Ad(i){return(i=W(i))&&eW.test(i)?i.replace(eG,"\\$&"):i}var nE=Mt(function(i,r,c){return i+(c?"-":"")+r.toLowerCase()}),nx=Mt(function(i,r,c){return i+(c?" ":"")+r.toLowerCase()}),nS=mu("toLowerCase");function Ed(i,r,c){i=W(i);var l=(r=b(r))?Dt(i):0;if(!r||l>=r)return i;var S=(r-l)/2;return Ve(t8(S),c)+i+Ve(t3(S),c)}function yd(i,r,c){i=W(i);var l=(r=b(r))?Dt(i):0;return r&&l>>0)?(i=W(i))&&("string"==typeof r||null!=r&&!r0(r))&&!(r=ln(r))&&Lt(i)?ut(On(i),0,l):i.split(r,l):[]}var nC=Mt(function(i,r,c){return i+(c?" ":"")+nR(r)});function Hd(i,r,c){return i=W(i),c=null==c?0:vt(b(c),0,i.length),r=ln(r),i.slice(c,c+r.length)==r}function Nd(i,r,l){var S=a.templateSettings;l&&rn(i,r,l)&&(r=c),i=W(i),r=r8({},r,S,Eu);var P,C,R=r8({},r.imports,S.imports,Eu),A=V(R),q=Mr(R,A),$=0,U=r.interpolate||tn,F="__p += '",J=tw((r.escape||tn).source+"|"+U.source+"|"+(U===eU?e5:tn).source+"|"+(r.evaluate||tn).source+"|$","g"),Q="//# sourceURL="+(tO.call(r,"sourceURL")?(r.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++tF+"]")+` -`;i.replace(J,function(r,c,l,S,R,A){return l||(l=S),F+=i.slice($,A).replace(ta,cf),c&&(P=!0,F+=`' + -__e(`+c+`) + -'`),R&&(C=!0,F+=`'; -`+R+`; -__p += '`),l&&(F+=`' + -((__t = (`+l+`)) == null ? '' : __t) + -'`),$=A+r.length,r}),F+=`'; -`;var X=tO.call(r,"variable")&&r.variable;if(X){if(e0.test(X))throw new tp("Invalid `variable` option passed into `_.template`")}else F=`with (obj) { -`+F+` -} -`;F=(C?F.replace(eL,""):F).replace(ej,"$1").replace(eT,"$1;"),F="function("+(X||"obj")+`) { -`+(X?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(P?", __e = _.escape":"")+(C?`, __j = Array.prototype.join; -function print() { __p += __j.call(arguments, '') } -`:`; -`)+F+`return __p -}`;var ee=nA(function(){return ty(A,Q+"return "+F).apply(c,q)});if(ee.source=F,Ei(ee))throw ee;return ee}function $d(i){return W(i).toLowerCase()}function Ud(i){return W(i).toUpperCase()}function Wd(i,r,l){if((i=W(i))&&(l||r===c))return ys(i);if(!i||!(r=ln(r)))return i;var S=On(i),P=On(r),C=Ss(S,P),R=Os(S,P)+1;return ut(S,C,R).join("")}function Fd(i,r,l){if((i=W(i))&&(l||r===c))return i.slice(0,bs(i)+1);if(!i||!(r=ln(r)))return i;var S=On(i),P=Os(S,On(r))+1;return ut(S,0,P).join("")}function Md(i,r,l){if((i=W(i))&&(l||r===c))return i.replace(eZ,"");if(!i||!(r=ln(r)))return i;var S=On(i),P=Ss(S,On(r));return ut(S,P).join("")}function qd(i,r){var l=30,S="...";if(K(r)){var P="separator"in r?r.separator:P;l="length"in r?b(r.length):l,S="omission"in r?ln(r.omission):S}var C=(i=W(i)).length;if(Lt(i)){var R=On(i);C=R.length}if(l>=C)return i;var A=l-Dt(S);if(A<1)return S;var q=R?ut(R,0,A).join(""):i.slice(0,A);if(P===c)return q+S;if(R&&(A+=q.length-A),r0(P)){if(i.slice(A).search(P)){var $,U=q;for(P.global||(P=tw(P.source,W(e6.exec(P))+"g")),P.lastIndex=0;$=P.exec(U);)var F=$.index;q=q.slice(0,F===c?A:F)}}else if(i.indexOf(ln(P),A)!=A){var J=q.lastIndexOf(P);J>-1&&(q=q.slice(0,J))}return q+S}function Bd(i){return(i=W(i))&&ek.test(i)?i.replace(ez,im):i}var nO=Mt(function(i,r,c){return i+(c?" ":"")+r.toUpperCase()}),nR=mu("toUpperCase");function va(i,r,l){return i=W(i),(r=l?c:r)===c?lf(i)?Pf(i):ef(i):i.match(r)||[]}var nA=L(function(i,r){try{return cn(i,c,r)}catch(i){return Ei(i)?i:new tp(i)}}),nN=Yn(function(i,r){return mn(r,function(r){zn(i,r=Wn(r),rk(i[r],i))}),i});function Kd(i){var r=null==i?0:i.length,c=x();return i=r?G(i,function(i){if("function"!=typeof i[1])throw new tI(l);return[c(i[0]),i[1]]}):[],L(function(c){for(var l=-1;++l9007199254740991)return[];var c=4294967295,l=ix(i,4294967295);r=x(r),i-=4294967295;for(var S=Fr(l,r);++c0||r<0)?new H(l):(i<0?l=l.takeRight(-i):i&&(l=l.drop(i)),r!==c&&(l=(r=b(r))<0?l.dropRight(-r):l.take(r-i)),l)},H.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},H.prototype.toArray=function(){return this.take(4294967295)},$n(H.prototype,function(i,r){var l=/^(?:filter|find|map|reject)|While$/.test(r),S=/^(?:head|last)$/.test(r),P=a[S?"take"+("last"==r?"Right":""):r],C=S||/^find/.test(r);P&&(a.prototype[r]=function(){var r=this.__wrapped__,R=S?[1]:arguments,A=r instanceof H,q=R[0],$=A||rF(r),m=function(i){var r=P.apply(a,nt([i],R));return S&&U?r[0]:r};$&&l&&"function"==typeof q&&1!=q.length&&(A=$=!1);var U=this.__chain__,F=!!this.__actions__.length,J=C&&!U,Q=A&&!F;if(!C&&$){r=Q?r:new H(this);var X=i.apply(r,R);return X.__actions__.push({func:er,args:[m],thisArg:c}),new Pn(X,U)}return J&&Q?i.apply(this,R):(X=this.thru(m),J?S?X.value()[0]:X.value():X)})}),mn(["pop","push","shift","sort","splice","unshift"],function(i){var r=tE[i],c=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",l=/^(?:pop|shift)$/.test(i);a.prototype[i]=function(){var i=arguments;if(l&&!this.__chain__){var S=this.value();return r.apply(rF(S)?S:[],i)}return this[c](function(c){return r.apply(rF(c)?c:[],i)})}}),$n(H.prototype,function(i,r){var c=a[r];if(c){var l=c.name+"";tO.call(iq,l)||(iq[l]=[]),iq[l].push({name:r,func:c})}}),iq[Xe(c,2).name]=[{name:"wrapper",func:c}],H.prototype.clone=Bf,H.prototype.reverse=Gf,H.prototype.value=zf,a.prototype.at=rO,a.prototype.chain=Pl,a.prototype.commit=Al,a.prototype.next=Cl,a.prototype.plant=xl,a.prototype.reverse=El,a.prototype.toJSON=a.prototype.valueOf=a.prototype.value=yl,a.prototype.first=a.prototype.head,tG&&(a.prototype[tG]=Il),a}();t3?((t3.exports=i_)._=i_,t2._=i_):t6._=i_}).call(iT)}(iz,iz.exports);var iq=Object.defineProperty,iD=Object.defineProperties,ik=Object.getOwnPropertyDescriptors,iM=Object.getOwnPropertySymbols,iH=Object.prototype.hasOwnProperty,i$=Object.prototype.propertyIsEnumerable,ya=(i,r,c)=>r in i?iq(i,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):i[r]=c,index_es_cr=(i,r)=>{for(var c in r||(r={}))iH.call(r,c)&&ya(i,c,r[c]);if(iM)for(var c of iM(r))i$.call(r,c)&&ya(i,c,r[c]);return i},Zg=(i,r)=>iD(i,ik(r));function index_es_ft(i,r,c){var l;let S=(0,C.DQ)(i);return(null==(l=r.rpcMap)?void 0:l[S.reference])||`https://rpc.walletconnect.com/v1/?chainId=${S.namespace}:${S.reference}&projectId=${c}`}function index_es_Ct(i){return i.includes(":")?i.split(":")[1]:i}function Sa(i){return i.map(i=>`${i.split(":")[0]}:${i.split(":")[1]}`)}function Jg(i,r){let c=Object.keys(r.namespaces).filter(r=>r.includes(i));if(!c.length)return[];let l=[];return c.forEach(i=>{let c=r.namespaces[i].accounts;l.push(...c)}),l}function Xg(i={},r={}){let c=Oa(i),l=Oa(r);return iz.exports.merge(c,l)}function Oa(i){var r,c,l,S;let P={};if(!(0,C.L5)(i))return P;for(let[R,A]of Object.entries(i)){let i=(0,C.gp)(R)?[R]:A.chains,q=A.methods||[],$=A.events||[],U=A.rpcMap||{},F=(0,C.M)(R);P[F]=Zg(index_es_cr(index_es_cr({},P[F]),A),{chains:(0,C.eG)(i,null==(r=P[F])?void 0:r.chains),methods:(0,C.eG)(q,null==(c=P[F])?void 0:c.methods),events:(0,C.eG)($,null==(l=P[F])?void 0:l.events),rpcMap:index_es_cr(index_es_cr({},U),null==(S=P[F])?void 0:S.rpcMap)})}return P}function Qg(i){return i.includes(":")?i.split(":")[2]:i}function Vg(i){let r={};for(let[c,l]of Object.entries(i)){let i=l.methods||[],S=l.events||[],P=l.accounts||[],R=(0,C.gp)(c)?[c]:l.chains?l.chains:Sa(l.accounts);r[c]={chains:R,methods:i,events:S,accounts:P}}return r}function index_es_Wi(i){return"number"==typeof i?i:i.includes("0x")?parseInt(i,16):i.includes(":")?Number(i.split(":")[1]):Number(i)}let iU={},index_es_z=i=>iU[i],Fi=(i,r)=>{iU[i]=r};let kg=class kg{constructor(i){this.name="polkadot",this.namespace=i.namespace,this.events=index_es_z("events"),this.client=index_es_z("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let i=this.namespace.chains[0];if(!i)throw Error("ChainId not found");return i.split(":")[1]}request(i){return this.namespace.methods.includes(i.request.method)?this.client.request(i):this.getHttpProvider().request(i.request)}setDefaultChain(i,r){this.httpProviders[i]||this.setHttpProvider(i,r),this.chainId=i,this.events.emit(ij.DEFAULT_CHAIN_CHANGED,`${this.name}:${i}`)}getAccounts(){let i=this.namespace.accounts;return i&&i.filter(i=>i.split(":")[1]===this.chainId.toString()).map(i=>i.split(":")[2])||[]}createHttpProviders(){let i={};return this.namespace.chains.forEach(r=>{var c;let l=index_es_Ct(r);i[l]=this.createHttpProvider(l,null==(c=this.namespace.rpcMap)?void 0:c[r])}),i}getHttpProvider(){let i=`${this.name}:${this.chainId}`,r=this.httpProviders[i];if(typeof r>"u")throw Error(`JSON-RPC provider for ${i} not found`);return r}setHttpProvider(i,r){let c=this.createHttpProvider(i,r);c&&(this.httpProviders[i]=c)}createHttpProvider(i,r){let c=r||index_es_ft(i,this.namespace,this.client.core.projectId);if(!c)throw Error(`No RPC url provided for chainId: ${i}`);return new ex.r(new iA.Z(c,index_es_z("disableProviderPing")))}};let jg=class jg{constructor(i){this.name="eip155",this.namespace=i.namespace,this.events=index_es_z("events"),this.client=index_es_z("client"),this.httpProviders=this.createHttpProviders(),this.chainId=parseInt(this.getDefaultChain())}async request(i){switch(i.request.method){case"eth_requestAccounts":case"eth_accounts":return this.getAccounts();case"wallet_switchEthereumChain":return await this.handleSwitchChain(i);case"eth_chainId":return parseInt(this.getDefaultChain())}return this.namespace.methods.includes(i.request.method)?await this.client.request(i):this.getHttpProvider().request(i.request)}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}setDefaultChain(i,r){this.httpProviders[i]||this.setHttpProvider(parseInt(i),r),this.chainId=parseInt(i),this.events.emit(ij.DEFAULT_CHAIN_CHANGED,`${this.name}:${i}`)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId.toString();if(this.namespace.defaultChain)return this.namespace.defaultChain;let i=this.namespace.chains[0];if(!i)throw Error("ChainId not found");return i.split(":")[1]}createHttpProvider(i,r){let c=r||index_es_ft(`${this.name}:${i}`,this.namespace,this.client.core.projectId);if(!c)throw Error(`No RPC url provided for chainId: ${i}`);return new ex.r(new iA.k(c,index_es_z("disableProviderPing")))}setHttpProvider(i,r){let c=this.createHttpProvider(i,r);c&&(this.httpProviders[i]=c)}createHttpProviders(){let i={};return this.namespace.chains.forEach(r=>{var c;let l=parseInt(index_es_Ct(r));i[l]=this.createHttpProvider(l,null==(c=this.namespace.rpcMap)?void 0:c[r])}),i}getAccounts(){let i=this.namespace.accounts;return i?[...new Set(i.filter(i=>i.split(":")[1]===this.chainId.toString()).map(i=>i.split(":")[2]))]:[]}getHttpProvider(){let i=this.chainId,r=this.httpProviders[i];if(typeof r>"u")throw Error(`JSON-RPC provider for ${i} not found`);return r}async handleSwitchChain(i){var r,c;let l=i.request.params?null==(r=i.request.params[0])?void 0:r.chainId:"0x0";l=l.startsWith("0x")?l:`0x${l}`;let S=parseInt(l,16);if(this.isChainApproved(S))this.setDefaultChain(`${S}`);else if(this.namespace.methods.includes("wallet_switchEthereumChain"))await this.client.request({topic:i.topic,request:{method:i.request.method,params:[{chainId:l}]},chainId:null==(c=this.namespace.chains)?void 0:c[0]}),this.setDefaultChain(`${S}`);else throw Error(`Failed to switch to chain 'eip155:${S}'. The chain is not approved or the wallet does not support 'wallet_switchEthereumChain' method.`);return null}isChainApproved(i){return this.namespace.chains.includes(`${this.name}:${i}`)}};let nv=class nv{constructor(i){this.name="solana",this.namespace=i.namespace,this.events=index_es_z("events"),this.client=index_es_z("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}requestAccounts(){return this.getAccounts()}request(i){return this.namespace.methods.includes(i.request.method)?this.client.request(i):this.getHttpProvider().request(i.request)}setDefaultChain(i,r){this.httpProviders[i]||this.setHttpProvider(i,r),this.chainId=i,this.events.emit(ij.DEFAULT_CHAIN_CHANGED,`${this.name}:${i}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let i=this.namespace.chains[0];if(!i)throw Error("ChainId not found");return i.split(":")[1]}getAccounts(){let i=this.namespace.accounts;return i?[...new Set(i.filter(i=>i.split(":")[1]===this.chainId.toString()).map(i=>i.split(":")[2]))]:[]}createHttpProviders(){let i={};return this.namespace.chains.forEach(r=>{var c;let l=index_es_Ct(r);i[l]=this.createHttpProvider(l,null==(c=this.namespace.rpcMap)?void 0:c[r])}),i}getHttpProvider(){let i=`${this.name}:${this.chainId}`,r=this.httpProviders[i];if(typeof r>"u")throw Error(`JSON-RPC provider for ${i} not found`);return r}setHttpProvider(i,r){let c=this.createHttpProvider(i,r);c&&(this.httpProviders[i]=c)}createHttpProvider(i,r){let c=r||index_es_ft(i,this.namespace,this.client.core.projectId);if(!c)throw Error(`No RPC url provided for chainId: ${i}`);return new ex.r(new iA.Z(c,index_es_z("disableProviderPing")))}};let tv=class tv{constructor(i){this.name="cosmos",this.namespace=i.namespace,this.events=index_es_z("events"),this.client=index_es_z("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let i=this.namespace.chains[0];if(!i)throw Error("ChainId not found");return i.split(":")[1]}request(i){return this.namespace.methods.includes(i.request.method)?this.client.request(i):this.getHttpProvider().request(i.request)}setDefaultChain(i,r){this.httpProviders[i]||this.setHttpProvider(i,r),this.chainId=i,this.events.emit(ij.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){let i=this.namespace.accounts;return i?[...new Set(i.filter(i=>i.split(":")[1]===this.chainId.toString()).map(i=>i.split(":")[2]))]:[]}createHttpProviders(){let i={};return this.namespace.chains.forEach(r=>{var c;let l=index_es_Ct(r);i[l]=this.createHttpProvider(l,null==(c=this.namespace.rpcMap)?void 0:c[r])}),i}getHttpProvider(){let i=`${this.name}:${this.chainId}`,r=this.httpProviders[i];if(typeof r>"u")throw Error(`JSON-RPC provider for ${i} not found`);return r}setHttpProvider(i,r){let c=this.createHttpProvider(i,r);c&&(this.httpProviders[i]=c)}createHttpProvider(i,r){let c=r||index_es_ft(i,this.namespace,this.client.core.projectId);if(!c)throw Error(`No RPC url provided for chainId: ${i}`);return new ex.r(new iA.Z(c,index_es_z("disableProviderPing")))}};let ev=class ev{constructor(i){this.name="cip34",this.namespace=i.namespace,this.events=index_es_z("events"),this.client=index_es_z("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let i=this.namespace.chains[0];if(!i)throw Error("ChainId not found");return i.split(":")[1]}request(i){return this.namespace.methods.includes(i.request.method)?this.client.request(i):this.getHttpProvider().request(i.request)}setDefaultChain(i,r){this.httpProviders[i]||this.setHttpProvider(i,r),this.chainId=i,this.events.emit(ij.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){let i=this.namespace.accounts;return i?[...new Set(i.filter(i=>i.split(":")[1]===this.chainId.toString()).map(i=>i.split(":")[2]))]:[]}createHttpProviders(){let i={};return this.namespace.chains.forEach(r=>{let c=this.getCardanoRPCUrl(r),l=index_es_Ct(r);i[l]=this.createHttpProvider(l,c)}),i}getHttpProvider(){let i=`${this.name}:${this.chainId}`,r=this.httpProviders[i];if(typeof r>"u")throw Error(`JSON-RPC provider for ${i} not found`);return r}getCardanoRPCUrl(i){let r=this.namespace.rpcMap;if(r)return r[i]}setHttpProvider(i,r){let c=this.createHttpProvider(i,r);c&&(this.httpProviders[i]=c)}createHttpProvider(i,r){let c=r||this.getCardanoRPCUrl(i);if(!c)throw Error(`No RPC url provided for chainId: ${i}`);return new ex.r(new iA.Z(c,index_es_z("disableProviderPing")))}};let rv=class rv{constructor(i){this.name="elrond",this.namespace=i.namespace,this.events=index_es_z("events"),this.client=index_es_z("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}requestAccounts(){return this.getAccounts()}request(i){return this.namespace.methods.includes(i.request.method)?this.client.request(i):this.getHttpProvider().request(i.request)}setDefaultChain(i,r){this.httpProviders[i]||this.setHttpProvider(i,r),this.chainId=i,this.events.emit(ij.DEFAULT_CHAIN_CHANGED,`${this.name}:${i}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let i=this.namespace.chains[0];if(!i)throw Error("ChainId not found");return i.split(":")[1]}getAccounts(){let i=this.namespace.accounts;return i?[...new Set(i.filter(i=>i.split(":")[1]===this.chainId.toString()).map(i=>i.split(":")[2]))]:[]}createHttpProviders(){let i={};return this.namespace.chains.forEach(r=>{var c;let l=index_es_Ct(r);i[l]=this.createHttpProvider(l,null==(c=this.namespace.rpcMap)?void 0:c[r])}),i}getHttpProvider(){let i=`${this.name}:${this.chainId}`,r=this.httpProviders[i];if(typeof r>"u")throw Error(`JSON-RPC provider for ${i} not found`);return r}setHttpProvider(i,r){let c=this.createHttpProvider(i,r);c&&(this.httpProviders[i]=c)}createHttpProvider(i,r){let c=r||index_es_ft(i,this.namespace,this.client.core.projectId);if(!c)throw Error(`No RPC url provided for chainId: ${i}`);return new ex.r(new iA.Z(c,index_es_z("disableProviderPing")))}};let iv=class iv{constructor(i){this.name="multiversx",this.namespace=i.namespace,this.events=index_es_z("events"),this.client=index_es_z("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}requestAccounts(){return this.getAccounts()}request(i){return this.namespace.methods.includes(i.request.method)?this.client.request(i):this.getHttpProvider().request(i.request)}setDefaultChain(i,r){this.httpProviders[i]||this.setHttpProvider(i,r),this.chainId=i,this.events.emit(ij.DEFAULT_CHAIN_CHANGED,`${this.name}:${i}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let i=this.namespace.chains[0];if(!i)throw Error("ChainId not found");return i.split(":")[1]}getAccounts(){let i=this.namespace.accounts;return i?[...new Set(i.filter(i=>i.split(":")[1]===this.chainId.toString()).map(i=>i.split(":")[2]))]:[]}createHttpProviders(){let i={};return this.namespace.chains.forEach(r=>{var c;let l=index_es_Ct(r);i[l]=this.createHttpProvider(l,null==(c=this.namespace.rpcMap)?void 0:c[r])}),i}getHttpProvider(){let i=`${this.name}:${this.chainId}`,r=this.httpProviders[i];if(typeof r>"u")throw Error(`JSON-RPC provider for ${i} not found`);return r}setHttpProvider(i,r){let c=this.createHttpProvider(i,r);c&&(this.httpProviders[i]=c)}createHttpProvider(i,r){let c=r||index_es_ft(i,this.namespace,this.client.core.projectId);if(!c)throw Error(`No RPC url provided for chainId: ${i}`);return new ex.r(new iA.Z(c,index_es_z("disableProviderPing")))}};let sv=class sv{constructor(i){this.name="near",this.namespace=i.namespace,this.events=index_es_z("events"),this.client=index_es_z("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let i=this.namespace.chains[0];if(!i)throw Error("ChainId not found");return i.split(":")[1]}request(i){return this.namespace.methods.includes(i.request.method)?this.client.request(i):this.getHttpProvider().request(i.request)}setDefaultChain(i,r){if(this.chainId=i,!this.httpProviders[i]){let c=r||index_es_ft(`${this.name}:${i}`,this.namespace);if(!c)throw Error(`No RPC url provided for chainId: ${i}`);this.setHttpProvider(i,c)}this.events.emit(ij.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){let i=this.namespace.accounts;return i&&i.filter(i=>i.split(":")[1]===this.chainId.toString()).map(i=>i.split(":")[2])||[]}createHttpProviders(){let i={};return this.namespace.chains.forEach(r=>{var c;i[r]=this.createHttpProvider(r,null==(c=this.namespace.rpcMap)?void 0:c[r])}),i}getHttpProvider(){let i=`${this.name}:${this.chainId}`,r=this.httpProviders[i];if(typeof r>"u")throw Error(`JSON-RPC provider for ${i} not found`);return r}setHttpProvider(i,r){let c=this.createHttpProvider(i,r);c&&(this.httpProviders[i]=c)}createHttpProvider(i,r){let c=r||index_es_ft(i,this.namespace);return typeof c>"u"?void 0:new ex.r(new iA.Z(c,index_es_z("disableProviderPing")))}};var iK=Object.defineProperty,iV=Object.defineProperties,iB=Object.getOwnPropertyDescriptors,iG=Object.getOwnPropertySymbols,iW=Object.prototype.hasOwnProperty,iZ=Object.prototype.propertyIsEnumerable,Ta=(i,r,c)=>r in i?iK(i,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):i[r]=c,index_es_hr=(i,r)=>{for(var c in r||(r={}))iW.call(r,c)&&Ta(i,c,r[c]);if(iG)for(var c of iG(r))iZ.call(r,c)&&Ta(i,c,r[c]);return i},Mi=(i,r)=>iV(i,iB(r));let index_es_lr=class index_es_lr{constructor(i){this.events=new(P()),this.rpcProviders={},this.shouldAbortPairingAttempt=!1,this.maxPairingAttempts=10,this.disableProviderPing=!1,this.providerOpts=i,this.logger="u">typeof i?.logger&&"string"!=typeof i?.logger?i.logger:(0,et.pino)((0,et.getDefaultLoggerOptions)({level:i?.logger||iN})),this.disableProviderPing=i?.disableProviderPing||!1}static async init(i){let r=new index_es_lr(i);return await r.initialize(),r}async request(i,r){let[c,l]=this.validateChain(r);if(!this.session)throw Error("Please call connect() before request()");return await this.getProvider(c).request({request:index_es_hr({},i),chainId:`${c}:${l}`,topic:this.session.topic})}sendAsync(i,r,c){let l=new Date().getTime();this.request(i,c).then(i=>r(null,(0,eS.formatJsonRpcResult)(l,i))).catch(i=>r(i,void 0))}async enable(){if(!this.client)throw Error("Sign Client not initialized");return this.session||await this.connect({namespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties}),await this.requestAccounts()}async disconnect(){var i;if(!this.session)throw Error("Please call connect() before enable()");await this.client.disconnect({topic:null==(i=this.session)?void 0:i.topic,reason:(0,C.D6)("USER_DISCONNECTED")}),await this.cleanup()}async connect(i){if(!this.client)throw Error("Sign Client not initialized");if(this.setNamespaces(i),await this.cleanupPendingPairings(),!i.skipPairing)return await this.pair(i.pairingTopic)}on(i,r){this.events.on(i,r)}once(i,r){this.events.once(i,r)}removeListener(i,r){this.events.removeListener(i,r)}off(i,r){this.events.off(i,r)}get isWalletConnect(){return!0}async pair(i){this.shouldAbortPairingAttempt=!1;let r=0;do{if(this.shouldAbortPairingAttempt)throw Error("Pairing aborted");if(r>=this.maxPairingAttempts)throw Error("Max auto pairing attempts reached");let{uri:c,approval:l}=await this.client.connect({pairingTopic:i,requiredNamespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties});c&&(this.uri=c,this.events.emit("display_uri",c)),await l().then(i=>{this.session=i,this.namespaces||(this.namespaces=Vg(i.namespaces),this.persist("namespaces",this.namespaces))}).catch(i=>{if(i.message!==im)throw i;r++})}while(!this.session);return this.onConnect(),this.session}setDefaultChain(i,r){try{if(!this.session)return;let[c,l]=this.validateChain(i);this.getProvider(c).setDefaultChain(l,r)}catch(i){if(!/Please call connect/.test(i.message))throw i}}async cleanupPendingPairings(i={}){this.logger.info("Cleaning up inactive pairings...");let r=this.client.pairing.getAll();if((0,C.qt)(r)){for(let c of r)i.deletePairings?this.client.core.expirer.set(c.topic,0):await this.client.core.relayer.subscriber.unsubscribe(c.topic);this.logger.info(`Inactive pairings cleared: ${r.length}`)}}abortPairingAttempt(){this.shouldAbortPairingAttempt=!0}async checkStorage(){if(this.namespaces=await this.getFromStore("namespaces"),this.optionalNamespaces=await this.getFromStore("optionalNamespaces")||{},this.client.session.length){let i=this.client.session.keys.length-1;this.session=this.client.session.get(this.client.session.keys[i]),this.createProviders()}}async initialize(){this.logger.trace("Initialized"),await this.createClient(),await this.checkStorage(),this.registerEventListeners()}async createClient(){this.client=this.providerOpts.client||await index_es_Q.init({logger:this.providerOpts.logger||iN,relayUrl:this.providerOpts.relayUrl||"wss://relay.walletconnect.com",projectId:this.providerOpts.projectId,metadata:this.providerOpts.metadata,storageOptions:this.providerOpts.storageOptions,storage:this.providerOpts.storage,name:this.providerOpts.name}),this.logger.trace("SignClient Initialized")}createProviders(){if(!this.client)throw Error("Sign Client not initialized");if(!this.session)throw Error("Session not initialized. Please call connect() before enable()");let i=[...new Set(Object.keys(this.session.namespaces).map(i=>(0,C.M)(i)))];Fi("client",this.client),Fi("events",this.events),Fi("disableProviderPing",this.disableProviderPing),i.forEach(i=>{if(!this.session)return;let r=Jg(i,this.session),c=Sa(r),l=Xg(this.namespaces,this.optionalNamespaces),S=Mi(index_es_hr({},l[i]),{accounts:r,chains:c});switch(i){case"eip155":this.rpcProviders[i]=new jg({namespace:S});break;case"solana":this.rpcProviders[i]=new nv({namespace:S});break;case"cosmos":this.rpcProviders[i]=new tv({namespace:S});break;case"polkadot":this.rpcProviders[i]=new kg({namespace:S});break;case"cip34":this.rpcProviders[i]=new ev({namespace:S});break;case"elrond":this.rpcProviders[i]=new rv({namespace:S});break;case"multiversx":this.rpcProviders[i]=new iv({namespace:S});break;case"near":this.rpcProviders[i]=new sv({namespace:S})}})}registerEventListeners(){if(typeof this.client>"u")throw Error("Sign Client is not initialized");this.client.on("session_ping",i=>{this.events.emit("session_ping",i)}),this.client.on("session_event",i=>{let{params:r}=i,{event:c}=r;if("accountsChanged"===c.name){let i=c.data;i&&(0,C.qt)(i)&&this.events.emit("accountsChanged",i.map(Qg))}else if("chainChanged"===c.name){let i=r.chainId,c=r.event.data,l=(0,C.M)(i),S=index_es_Wi(i)!==index_es_Wi(c)?`${l}:${index_es_Wi(c)}`:i;this.onChainChanged(S)}else this.events.emit(c.name,c.data);this.events.emit("session_event",i)}),this.client.on("session_update",({topic:i,params:r})=>{var c;let{namespaces:l}=r,S=null==(c=this.client)?void 0:c.session.get(i);this.session=Mi(index_es_hr({},S),{namespaces:l}),this.onSessionUpdate(),this.events.emit("session_update",{topic:i,params:r})}),this.client.on("session_delete",async i=>{await this.cleanup(),this.events.emit("session_delete",i),this.events.emit("disconnect",Mi(index_es_hr({},(0,C.D6)("USER_DISCONNECTED")),{data:i.topic}))}),this.on(ij.DEFAULT_CHAIN_CHANGED,i=>{this.onChainChanged(i,!0)})}getProvider(i){if(!this.rpcProviders[i])throw Error(`Provider not found: ${i}`);return this.rpcProviders[i]}onSessionUpdate(){Object.keys(this.rpcProviders).forEach(i=>{var r;this.getProvider(i).updateNamespace(null==(r=this.session)?void 0:r.namespaces[i])})}setNamespaces(i){let{namespaces:r,optionalNamespaces:c,sessionProperties:l}=i;r&&Object.keys(r).length&&(this.namespaces=r),c&&Object.keys(c).length&&(this.optionalNamespaces=c),this.sessionProperties=l,this.persist("namespaces",r),this.persist("optionalNamespaces",c)}validateChain(i){let[r,c]=i?.split(":")||["",""];if(!this.namespaces||!Object.keys(this.namespaces).length)return[r,c];if(r&&!Object.keys(this.namespaces||{}).map(i=>(0,C.M)(i)).includes(r))throw Error(`Namespace '${r}' is not configured. Please call connect() first with namespace config.`);if(r&&c)return[r,c];let l=(0,C.M)(Object.keys(this.namespaces)[0]),S=this.rpcProviders[l].getDefaultChain();return[l,S]}async requestAccounts(){let[i]=this.validateChain();return await this.getProvider(i).requestAccounts()}onChainChanged(i,r=!1){var c;if(!this.namespaces)return;let[l,S]=this.validateChain(i);r||this.getProvider(l).setDefaultChain(S),(null!=(c=this.namespaces[l])?c:this.namespaces[`${l}:${S}`]).defaultChain=S,this.persist("namespaces",this.namespaces),this.events.emit("chainChanged",S)}onConnect(){this.createProviders(),this.events.emit("connect",{session:this.session})}async cleanup(){this.session=void 0,this.namespaces=void 0,this.optionalNamespaces=void 0,this.sessionProperties=void 0,this.persist("namespaces",void 0),this.persist("optionalNamespaces",void 0),this.persist("sessionProperties",void 0),await this.cleanupPendingPairings({deletePairings:!0})}persist(i,r){this.client.core.storage.setItem(`${iL}/${i}`,r)}async getFromStore(i){return await this.client.core.storage.getItem(`${iL}/${i}`)}};let iF=["eth_sendTransaction","personal_sign"],iJ=["eth_accounts","eth_requestAccounts","eth_sendRawTransaction","eth_sign","eth_signTransaction","eth_signTypedData","eth_signTypedData_v3","eth_signTypedData_v4","eth_sendTransaction","personal_sign","wallet_switchEthereumChain","wallet_addEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"],iY=["chainChanged","accountsChanged"],iQ=["chainChanged","accountsChanged","message","disconnect","connect"];var iX=Object.defineProperty,i0=Object.defineProperties,i1=Object.getOwnPropertyDescriptors,i5=Object.getOwnPropertySymbols,i6=Object.prototype.hasOwnProperty,i2=Object.prototype.propertyIsEnumerable,dist_index_es_O=(i,r,c)=>r in i?iX(i,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):i[r]=c,index_es_p=(i,r)=>{for(var c in r||(r={}))i6.call(r,c)&&dist_index_es_O(i,c,r[c]);if(i5)for(var c of i5(r))i2.call(r,c)&&dist_index_es_O(i,c,r[c]);return i},index_es_M=(i,r)=>i0(i,i1(r));function ethereum_provider_dist_index_es_g(i){return Number(i[0].split(":")[1])}function index_es_f(i){return`0x${i.toString(16)}`}function L(i){let{chains:r,optionalChains:c,methods:l,optionalMethods:S,events:P,optionalEvents:R,rpcMap:A}=i;if(!(0,C.qt)(r))throw Error("Invalid chains");let q={chains:r,methods:l||iF,events:P||iY,rpcMap:index_es_p({},r.length?{[ethereum_provider_dist_index_es_g(r)]:A[ethereum_provider_dist_index_es_g(r)]}:{})},$=P?.filter(i=>!iY.includes(i)),U=l?.filter(i=>!iF.includes(i));if(!c&&!R&&!S&&!(null!=$&&$.length)&&!(null!=U&&U.length))return{required:r.length?q:void 0};let F=$?.length&&U?.length||!c,J={chains:[...new Set(F?q.chains.concat(c||[]):c)],methods:[...new Set(q.methods.concat(null!=S&&S.length?S:iJ))],events:[...new Set(q.events.concat(null!=R&&R.length?R:iQ))],rpcMap:A};return{required:r.length?q:void 0,optional:c.length?J:void 0}}let dist_index_es_v=class dist_index_es_v{constructor(){this.events=new S.EventEmitter,this.namespace="eip155",this.accounts=[],this.chainId=1,this.STORAGE_KEY="wc@2:ethereum_provider:",this.on=(i,r)=>(this.events.on(i,r),this),this.once=(i,r)=>(this.events.once(i,r),this),this.removeListener=(i,r)=>(this.events.removeListener(i,r),this),this.off=(i,r)=>(this.events.off(i,r),this),this.parseAccount=i=>this.isCompatibleChainId(i)?this.parseAccountId(i).address:i,this.signer={},this.rpc={}}static async init(i){let r=new dist_index_es_v;return await r.initialize(i),r}async request(i){return await this.signer.request(i,this.formatChainId(this.chainId))}sendAsync(i,r){this.signer.sendAsync(i,r,this.formatChainId(this.chainId))}get connected(){return!!this.signer.client&&this.signer.client.core.relayer.connected}get connecting(){return!!this.signer.client&&this.signer.client.core.relayer.connecting}async enable(){return this.session||await this.connect(),await this.request({method:"eth_requestAccounts"})}async connect(i){if(!this.signer.client)throw Error("Provider not initialized. Call init() first");this.loadConnectOpts(i);let{required:r,optional:c}=L(this.rpc);try{let l=await new Promise(async(l,S)=>{var P;this.rpc.showQrModal&&(null==(P=this.modal)||P.subscribeModal(i=>{i.open||this.signer.session||(this.signer.abortPairingAttempt(),S(Error("Connection request reset. Please try again.")))})),await this.signer.connect(index_es_M(index_es_p({namespaces:index_es_p({},r&&{[this.namespace]:r})},c&&{optionalNamespaces:{[this.namespace]:c}}),{pairingTopic:i?.pairingTopic})).then(i=>{l(i)}).catch(i=>{S(Error(i.message))})});if(!l)return;let S=(0,C.gu)(l.namespaces,[this.namespace]);this.setChainIds(this.rpc.chains.length?this.rpc.chains:S),this.setAccounts(S),this.events.emit("connect",{chainId:index_es_f(this.chainId)})}catch(i){throw this.signer.logger.error(i),i}finally{this.modal&&this.modal.closeModal()}}async disconnect(){this.session&&await this.signer.disconnect(),this.reset()}get isWalletConnect(){return!0}get session(){return this.signer.session}registerEventListeners(){this.signer.on("session_event",i=>{let{params:r}=i,{event:c}=r;"accountsChanged"===c.name?(this.accounts=this.parseAccounts(c.data),this.events.emit("accountsChanged",this.accounts)):"chainChanged"===c.name?this.setChainId(this.formatChainId(c.data)):this.events.emit(c.name,c.data),this.events.emit("session_event",i)}),this.signer.on("chainChanged",i=>{let r=parseInt(i);this.chainId=r,this.events.emit("chainChanged",index_es_f(this.chainId)),this.persist()}),this.signer.on("session_update",i=>{this.events.emit("session_update",i)}),this.signer.on("session_delete",i=>{this.reset(),this.events.emit("session_delete",i),this.events.emit("disconnect",index_es_M(index_es_p({},(0,C.D6)("USER_DISCONNECTED")),{data:i.topic,name:"USER_DISCONNECTED"}))}),this.signer.on("display_uri",i=>{var r,c;this.rpc.showQrModal&&(null==(r=this.modal)||r.closeModal(),null==(c=this.modal)||c.openModal({uri:i})),this.events.emit("display_uri",i)})}switchEthereumChain(i){this.request({method:"wallet_switchEthereumChain",params:[{chainId:i.toString(16)}]})}isCompatibleChainId(i){return"string"==typeof i&&i.startsWith(`${this.namespace}:`)}formatChainId(i){return`${this.namespace}:${i}`}parseChainId(i){return Number(i.split(":")[1])}setChainIds(i){let r=i.filter(i=>this.isCompatibleChainId(i)).map(i=>this.parseChainId(i));r.length&&(this.chainId=r[0],this.events.emit("chainChanged",index_es_f(this.chainId)),this.persist())}setChainId(i){if(this.isCompatibleChainId(i)){let r=this.parseChainId(i);this.chainId=r,this.switchEthereumChain(r)}}parseAccountId(i){let[r,c,l]=i.split(":");return{chainId:`${r}:${c}`,address:l}}setAccounts(i){this.accounts=i.filter(i=>this.parseChainId(this.parseAccountId(i).chainId)===this.chainId).map(i=>this.parseAccountId(i).address),this.events.emit("accountsChanged",this.accounts)}getRpcConfig(i){var r,c;let l=null!=(r=i?.chains)?r:[],S=null!=(c=i?.optionalChains)?c:[],P=l.concat(S);if(!P.length)throw Error("No chains specified in either `chains` or `optionalChains`");let C=l.length?i?.methods||iF:[],R=l.length?i?.events||iY:[],A=i?.optionalMethods||[],q=i?.optionalEvents||[],$=i?.rpcMap||this.buildRpcMap(P,i.projectId),U=i?.qrModalOptions||void 0;return{chains:l?.map(i=>this.formatChainId(i)),optionalChains:S.map(i=>this.formatChainId(i)),methods:C,events:R,optionalMethods:A,optionalEvents:q,rpcMap:$,showQrModal:!!(null!=i&&i.showQrModal),qrModalOptions:U,projectId:i.projectId,metadata:i.metadata}}buildRpcMap(i,r){let c={};return i.forEach(i=>{c[i]=this.getRpcUrl(i,r)}),c}async initialize(i){if(this.rpc=this.getRpcConfig(i),this.chainId=this.rpc.chains.length?ethereum_provider_dist_index_es_g(this.rpc.chains):ethereum_provider_dist_index_es_g(this.rpc.optionalChains),this.signer=await index_es_lr.init({projectId:this.rpc.projectId,metadata:this.rpc.metadata,disableProviderPing:i.disableProviderPing,relayUrl:i.relayUrl,storageOptions:i.storageOptions}),this.registerEventListeners(),await this.loadPersistedSession(),this.rpc.showQrModal){let i;try{let{WalletConnectModal:r}=await c.e(254).then(c.bind(c,79254));i=r}catch{throw Error("To use QR modal, please install @walletconnect/modal package")}if(i)try{this.modal=new i(index_es_p({projectId:this.rpc.projectId},this.rpc.qrModalOptions))}catch(i){throw this.signer.logger.error(i),Error("Could not generate WalletConnectModal Instance")}}}loadConnectOpts(i){if(!i)return;let{chains:r,optionalChains:c,rpcMap:l}=i;r&&(0,C.qt)(r)&&(this.rpc.chains=r.map(i=>this.formatChainId(i)),r.forEach(i=>{this.rpc.rpcMap[i]=l?.[i]||this.getRpcUrl(i)})),c&&(0,C.qt)(c)&&(this.rpc.optionalChains=[],this.rpc.optionalChains=c?.map(i=>this.formatChainId(i)),c.forEach(i=>{this.rpc.rpcMap[i]=l?.[i]||this.getRpcUrl(i)}))}getRpcUrl(i,r){var c;return(null==(c=this.rpc.rpcMap)?void 0:c[i])||`https://rpc.walletconnect.com/v1/?chainId=eip155:${i}&projectId=${r||this.rpc.projectId}`}async loadPersistedSession(){if(!this.session)return;let i=await this.signer.client.core.storage.getItem(`${this.STORAGE_KEY}/chainId`),r=this.session.namespaces[`${this.namespace}:${i}`]?this.session.namespaces[`${this.namespace}:${i}`]:this.session.namespaces[this.namespace];this.setChainIds(i?[this.formatChainId(i)]:r?.accounts),this.setAccounts(r?.accounts)}reset(){this.chainId=1,this.accounts=[]}persist(){this.session&&this.signer.client.core.storage.setItem(`${this.STORAGE_KEY}/chainId`,this.chainId)}parseAccounts(i){return"string"==typeof i||i instanceof String?[this.parseAccount(i)]:i.map(i=>this.parseAccount(i))}};let i3=dist_index_es_v},13263:function(i,r,c){"use strict";c.d(r,{q:function(){return IEvents}});let IEvents=class IEvents{}},50062:function(i,r,c){"use strict";c.r(r),c.d(r,{IEvents:function(){return l.q}});var l=c(13263)},64596:function(i,r,c){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.HEARTBEAT_EVENTS=r.HEARTBEAT_INTERVAL=void 0;let l=c(88316);r.HEARTBEAT_INTERVAL=l.FIVE_SECONDS,r.HEARTBEAT_EVENTS={pulse:"heartbeat_pulse"}},65886:function(i,r,c){"use strict";Object.defineProperty(r,"__esModule",{value:!0});let l=c(96579);l.__exportStar(c(64596),r)},57187:function(i,r,c){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.HeartBeat=void 0;let l=c(96579),S=c(68495),P=c(88316),C=c(22935),R=c(65886);let HeartBeat=class HeartBeat extends C.IHeartBeat{constructor(i){super(i),this.events=new S.EventEmitter,this.interval=R.HEARTBEAT_INTERVAL,this.interval=(null==i?void 0:i.interval)||R.HEARTBEAT_INTERVAL}static init(i){return l.__awaiter(this,void 0,void 0,function*(){let r=new HeartBeat(i);return yield r.init(),r})}init(){return l.__awaiter(this,void 0,void 0,function*(){yield this.initialize()})}stop(){clearInterval(this.intervalRef)}on(i,r){this.events.on(i,r)}once(i,r){this.events.once(i,r)}off(i,r){this.events.off(i,r)}removeListener(i,r){this.events.removeListener(i,r)}initialize(){return l.__awaiter(this,void 0,void 0,function*(){this.intervalRef=setInterval(()=>this.pulse(),P.toMiliseconds(this.interval))})}pulse(){this.events.emit(R.HEARTBEAT_EVENTS.pulse)}};r.HeartBeat=HeartBeat},60118:function(i,r,c){"use strict";Object.defineProperty(r,"__esModule",{value:!0});let l=c(96579);l.__exportStar(c(57187),r),l.__exportStar(c(22935),r),l.__exportStar(c(65886),r)},59998:function(i,r,c){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.IHeartBeat=void 0;let l=c(50062);let IHeartBeat=class IHeartBeat extends l.IEvents{constructor(i){super()}};r.IHeartBeat=IHeartBeat},22935:function(i,r,c){"use strict";Object.defineProperty(r,"__esModule",{value:!0});let l=c(96579);l.__exportStar(c(59998),r)},99369:function(i,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.PINO_CUSTOM_CONTEXT_KEY=r.PINO_LOGGER_DEFAULTS=void 0,r.PINO_LOGGER_DEFAULTS={level:"info"},r.PINO_CUSTOM_CONTEXT_KEY="custom_context"},11121:function(i,r,c){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.pino=void 0;let l=c(96579),S=l.__importDefault(c(2412));Object.defineProperty(r,"pino",{enumerable:!0,get:function(){return S.default}}),l.__exportStar(c(99369),r),l.__exportStar(c(54358),r)},54358:function(i,r,c){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.generateChildLogger=r.formatChildLoggerContext=r.getLoggerContext=r.setBrowserLoggerContext=r.getBrowserLoggerContext=r.getDefaultLoggerOptions=void 0;let l=c(99369);function getDefaultLoggerOptions(i){return Object.assign(Object.assign({},i),{level:(null==i?void 0:i.level)||l.PINO_LOGGER_DEFAULTS.level})}function getBrowserLoggerContext(i,r=l.PINO_CUSTOM_CONTEXT_KEY){return i[r]||""}function setBrowserLoggerContext(i,r,c=l.PINO_CUSTOM_CONTEXT_KEY){return i[c]=r,i}function getLoggerContext(i,r=l.PINO_CUSTOM_CONTEXT_KEY){return void 0===i.bindings?getBrowserLoggerContext(i,r):i.bindings().context||""}function formatChildLoggerContext(i,r,c=l.PINO_CUSTOM_CONTEXT_KEY){let S=getLoggerContext(i,c),P=S.trim()?`${S}/${r}`:r;return P}function generateChildLogger(i,r,c=l.PINO_CUSTOM_CONTEXT_KEY){let S=formatChildLoggerContext(i,r,c),P=i.child({context:S});return setBrowserLoggerContext(P,S,c)}r.getDefaultLoggerOptions=getDefaultLoggerOptions,r.getBrowserLoggerContext=getBrowserLoggerContext,r.setBrowserLoggerContext=setBrowserLoggerContext,r.getLoggerContext=getLoggerContext,r.formatChildLoggerContext=formatChildLoggerContext,r.generateChildLogger=generateChildLogger},97947:function(){},36657:function(i,r,c){i=c.nmd(i);var l,S="__lodash_hash_undefined__",P="[object Arguments]",C="[object Array]",R="[object Boolean]",A="[object Date]",q="[object Error]",$="[object Function]",U="[object Map]",F="[object Number]",J="[object Object]",Q="[object Promise]",X="[object RegExp]",ee="[object Set]",et="[object String]",eo="[object WeakMap]",ep="[object ArrayBuffer]",eg="[object DataView]",ey=/^\[object .+?Constructor\]$/,em=/^(?:0|[1-9]\d*)$/,e_={};e_["[object Float32Array]"]=e_["[object Float64Array]"]=e_["[object Int8Array]"]=e_["[object Int16Array]"]=e_["[object Int32Array]"]=e_["[object Uint8Array]"]=e_["[object Uint8ClampedArray]"]=e_["[object Uint16Array]"]=e_["[object Uint32Array]"]=!0,e_[P]=e_[C]=e_[ep]=e_[R]=e_[eg]=e_[A]=e_[q]=e_[$]=e_[U]=e_[F]=e_[J]=e_[X]=e_[ee]=e_[et]=e_[eo]=!1;var ew="object"==typeof c.g&&c.g&&c.g.Object===Object&&c.g,eb="object"==typeof self&&self&&self.Object===Object&&self,eI=ew||eb||Function("return this")(),eE=r&&!r.nodeType&&r,ex=eE&&i&&!i.nodeType&&i,eS=ex&&ex.exports===eE,eP=eS&&ew.process,eC=function(){try{return eP&&eP.binding&&eP.binding("util")}catch(i){}}(),eO=eC&&eC.isTypedArray;function arrayFilter(i,r){for(var c=-1,l=null==i?0:i.length,S=0,P=[];++c-1}function listCacheSet(i,r){var c=this.__data__,l=assocIndexOf(c,i);return l<0?(++this.size,c.push([i,r])):c[l][1]=r,this}function MapCache(i){var r=-1,c=null==i?0:i.length;for(this.clear();++rR))return!1;var q=P.get(i);if(q&&P.get(r))return q==r;var $=-1,U=!0,F=2&c?new SetCache:void 0;for(P.set(i,r),P.set(r,i);++$-1&&i%1==0&&i-1&&i%1==0&&i<=9007199254740991}function isObject(i){var r=typeof i;return null!=i&&("object"==r||"function"==r)}function isObjectLike(i){return null!=i&&"object"==typeof i}var to=eO?baseUnary(eO):baseIsTypedArray;function keys(i){return isArrayLike(i)?arrayLikeKeys(i):baseKeys(i)}function stubArray(){return[]}function stubFalse(){return!1}i.exports=isEqual},18805:function(i){"use strict";let r=self.fetch.bind(self);i.exports=r,i.exports.default=i.exports},3280:function(i){"use strict";function tryStringify(i){try{return JSON.stringify(i)}catch(i){return'"[Circular]"'}}function format(i,r,c){var l=c&&c.stringify||tryStringify;if("object"==typeof i&&null!==i){var S=r.length+1;if(1===S)return i;var P=Array(S);P[0]=l(i);for(var C=1;C-1?$:0,i.charCodeAt(F+1)){case 100:case 102:if(q>=R||null==r[q])break;$=R||null==r[q])break;$=R||void 0===r[q])break;$",$=F+2,F++;break}A+=l(r[q]),$=F+2,F++;break;case 115:if(q>=R)break;$-1&&(C=!1),"function"==typeof c&&(c.error=c.fatal=c.warn=c.info=c.debug=c.trace=c),!1===i.enabled&&(i.level="silent");let R=i.level||"info",A=Object.create(c);A.log||(A.log=noop),Object.defineProperty(A,"levelVal",{get:getLevelVal}),Object.defineProperty(A,"level",{get:getLevel,set:setLevel});let q={transmit:r,serialize:P,asObject:i.browser.asObject,levels:["error","fatal","warn","info","debug","trace"],timestamp:getTimeFunction(i)};function getLevelVal(){return"silent"===this.level?1/0:this.levels.values[this.level]}function getLevel(){return this._level}function setLevel(i){if("silent"!==i&&!this.levels.values[i])throw Error("unknown level "+i);this._level=i,set(q,A,"error","log"),set(q,A,"fatal","error"),set(q,A,"warn","error"),set(q,A,"info","log"),set(q,A,"debug","log"),set(q,A,"trace","log")}function child(c,S){if(!c)throw Error("missing bindings for child Pino");S=S||{},P&&c.serializers&&(S.serializers=c.serializers);let C=S.serializers;if(P&&C){var R=Object.assign({},l,C),A=!0===i.browser.serialize?Object.keys(R):P;delete c.serializers,applySerializers([c],A,R,this._stdErrSerialize)}function Child(i){this._childLevel=(0|i._childLevel)+1,this.error=bind(i,c,"error"),this.fatal=bind(i,c,"fatal"),this.warn=bind(i,c,"warn"),this.info=bind(i,c,"info"),this.debug=bind(i,c,"debug"),this.trace=bind(i,c,"trace"),R&&(this.serializers=R,this._serialize=A),r&&(this._logEvent=createLogEventShape([].concat(i._logEvent.bindings,c)))}return Child.prototype=this,new Child(this)}return A.levels=pino.levels,A.level=R,A.setMaxListeners=A.getMaxListeners=A.emit=A.addListener=A.on=A.prependListener=A.once=A.prependOnceListener=A.removeListener=A.removeAllListeners=A.listeners=A.listenerCount=A.eventNames=A.write=A.flush=noop,A.serializers=l,A._serialize=P,A._stdErrSerialize=C,A.child=child,r&&(A._logEvent=createLogEventShape()),A}function set(i,r,c,l){let P=Object.getPrototypeOf(r);r[c]=r.levelVal>r.levels.values[c]?noop:P[c]?P[c]:S[c]||S[l]||noop,wrap(i,r,c)}function wrap(i,r,c){if(i.transmit||r[c]!==noop){var l;r[c]=(l=r[c],function(){let P=i.timestamp(),C=Array(arguments.length),R=Object.getPrototypeOf&&Object.getPrototypeOf(this)===S?S:this;for(var A=0;A-1&&l in c&&(i[S][l]=c[l](i[S][l]))}function bind(i,r,c){return function(){let l=Array(1+arguments.length);l[0]=r;for(var S=1;S0},ResizeObserverController.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),a?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},ResizeObserverController.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},ResizeObserverController.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;c.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},ResizeObserverController.getInstance=function(){return this.instance_||(this.instance_=new ResizeObserverController),this.instance_},ResizeObserverController.instance_=null,ResizeObserverController}(),defineConfigurable=function(e,t){for(var n=0,r=Object.keys(t);n0},ResizeObserverSPI}(),v="undefined"!=typeof WeakMap?new WeakMap:new r,_=function(){function ResizeObserver(e){if(!(this instanceof ResizeObserver))throw TypeError("Cannot call a class as a function.");if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");var t=new l(e,u.getInstance(),this);v.set(this,t)}return ResizeObserver}();["observe","unobserve","disconnect"].forEach(function(e){_.prototype[e]=function(){var t;return(t=v.get(this))[e].apply(t,arguments)}});var p=void 0!==o.ResizeObserver?o.ResizeObserver:_;t.default=p}}]); \ No newline at end of file diff --git a/_next/static/chunks/7743.c89af59110d42f70.js b/_next/static/chunks/7743.c89af59110d42f70.js new file mode 100644 index 0000000..ac92d6d --- /dev/null +++ b/_next/static/chunks/7743.c89af59110d42f70.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7743],{87743:function(l,a,e){e.r(a),e.d(a,{default:function(){return f}});var f='data:image/svg+xml,'}}]); \ No newline at end of file diff --git a/_next/static/chunks/8028.56be45912326156f.js b/_next/static/chunks/8028.56be45912326156f.js new file mode 100644 index 0000000..fe0ccd9 --- /dev/null +++ b/_next/static/chunks/8028.56be45912326156f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8028],{58028:function(e,a,t){t.r(a),t.d(a,{default:function(){return i}});var i='data:image/svg+xml,'}}]); \ No newline at end of file diff --git a/_next/static/chunks/806.b8ad402b3d2590ab.js b/_next/static/chunks/806.b8ad402b3d2590ab.js new file mode 100644 index 0000000..e3a6f06 --- /dev/null +++ b/_next/static/chunks/806.b8ad402b3d2590ab.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[806],{10806:function(a,l,c){c.r(l),c.d(l,{default:function(){return i}});var i='data:image/svg+xml,'}}]); \ No newline at end of file diff --git a/_next/static/chunks/8108.0b7f7c109301a935.js b/_next/static/chunks/8108.0b7f7c109301a935.js new file mode 100644 index 0000000..692ebd0 --- /dev/null +++ b/_next/static/chunks/8108.0b7f7c109301a935.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8108],{78108:function(n,t,e){e.r(t),e.d(t,{default:function(){return i}});var i='{\n "connect_wallet": {\n "label": "지갑 연결",\n "wrong_network": {\n "label": "잘못된 네트워크"\n }\n },\n "intro": {\n "title": "지갑이란 무엇인가요?",\n "description": "지갑은 디지털 자산을 보내고, 받고, 저장하고, 표시하는 데 사용됩니다. 또한, 모든 웹 사이트에서 새 계정과 비밀번호를 생성할 필요 없이 로그인하는 새로운 방법입니다.",\n "digital_asset": {\n "title": "당신의 디지털 자산을 위한 집",\n "description": "지갑은 이더리움 및 NFT와 같은 디지털 자산을 보내고, 받고, 저장하고, 표시하는데 사용됩니다."\n },\n "login": {\n "title": "새로운 로그인 방식",\n "description": "모든 웹사이트에서 새 계정과 비밀번호를 생성하는 대신, 당신의 지갑을 연결하기만 하면 됩니다."\n },\n "get": {\n "label": "지갑 가져오기"\n },\n "learn_more": {\n "label": "더 알아보기"\n }\n },\n "sign_in": {\n "label": "계정을 확인하세요",\n "description": "연결을 완료하려면 이 계정의 소유자임을 확인하기 위해 지갑에 메시지에 서명해야 합니다.",\n "message": {\n "send": "메시지 보내기",\n "preparing": "메시지 준비 중...",\n "cancel": "취소",\n "preparing_error": "메시지 준비 중 오류가 발생했습니다. 다시 시도하세요!"\n },\n "signature": {\n "waiting": "서명을 기다리는 중...",\n "verifying": "서명 검증 중...",\n "signing_error": "메시지 서명 중 오류가 발생했습니다. 다시 시도하세요!",\n "verifying_error": "서명 검증 중 오류가 발생했습니다. 다시 시도하세요!",\n "oops_error": "앗, 문제가 발생했습니다!"\n }\n },\n "connect": {\n "label": "연결",\n "title": "지갑 연결",\n "new_to_ethereum": {\n "description": "이더리움 지갑에 처음 접하시나요?",\n "learn_more": {\n "label": "더 알아보기"\n }\n },\n "learn_more": {\n "label": "더 알아보기"\n },\n "recent": "최근",\n "status": {\n "opening": "%{wallet}열기 ...",\n "connecting": "연결 중",\n "connect_mobile": "%{wallet}에서 계속 진행",\n "not_installed": "%{wallet} 가 설치되어 있지 않습니다",\n "not_available": "%{wallet} 를 사용할 수 없습니다",\n "confirm": "확장 프로그램에서 연결을 확인하세요",\n "confirm_mobile": "지갑에서 연결 요청을 수락하십시오"\n },\n "secondary_action": {\n "get": {\n "description": "%{wallet}가 없나요?",\n "label": "GET"\n },\n "install": {\n "label": "설치"\n },\n "retry": {\n "label": "다시 시도"\n }\n },\n "walletconnect": {\n "description": {\n "full": "공식 WalletConnect 모달이 필요한가요?",\n "compact": "WalletConnect 모달이 필요한가요?"\n },\n "open": {\n "label": "열기"\n }\n }\n },\n "connect_scan": {\n "title": "%{wallet}로 스캔하기",\n "fallback_title": "휴대폰으로 스캔하기"\n },\n "connector_group": {\n "installed": "설치됨",\n "recommended": "추천",\n "other": "기타",\n "popular": "인기",\n "more": "더 보기",\n "others": "다른 지갑들"\n },\n "get": {\n "title": "월렛 받기",\n "action": {\n "label": "받기"\n },\n "mobile": {\n "description": "모바일 월렛"\n },\n "extension": {\n "description": "브라우저 확장 프로그램"\n },\n "mobile_and_extension": {\n "description": "모바일 지갑 및 확장 프로그램"\n },\n "mobile_and_desktop": {\n "description": "모바일 및 데스크톱 지갑"\n },\n "looking_for": {\n "title": "찾고 계신 것이 아닌가요?",\n "mobile": {\n "description": "메인 화면에서 다른 지갑 제공자를 사용하기 위해 지갑을 선택하세요."\n },\n "desktop": {\n "compact_description": "메인 화면에서 다른 지갑 제공자를 사용하기 위해 지갑을 선택하세요.",\n "wide_description": "왼쪽에서 지갑을 선택하여 다른 지갑 제공자를 사용하기 시작하세요."\n }\n }\n },\n "get_options": {\n "title": "%{wallet}로 시작하세요",\n "short_title": "%{wallet}얻기",\n "mobile": {\n "title": "모바일용 %{wallet}",\n "description": "모바일 지갑으로 이더리움 세계를 탐험하세요.",\n "download": {\n "label": "앱 받기"\n }\n },\n "extension": {\n "title": "%{browser}용 %{wallet}",\n "description": "가장 좋아하는 웹 브라우저에서 바로 지갑에 접근하세요.",\n "download": {\n "label": "추가하기 %{browser}"\n }\n },\n "desktop": {\n "title": "%{wallet} 용 %{platform}",\n "description": "강력한 데스크톱에서 네이티브로 지갑에 접근하세요.",\n "download": {\n "label": "%{platform}에 추가"\n }\n }\n },\n "get_mobile": {\n "title": "설치하기 %{wallet}",\n "description": "iOS 또는 Android에서 다운로드하기 위해 휴대폰으로 스캔하세요",\n "continue": {\n "label": "계속"\n }\n },\n "get_instructions": {\n "mobile": {\n "connect": {\n "label": "연결"\n },\n "learn_more": {\n "label": "더 알아보기"\n }\n },\n "extension": {\n "refresh": {\n "label": "새로고침"\n },\n "learn_more": {\n "label": "더 알아보기"\n }\n },\n "desktop": {\n "connect": {\n "label": "연결"\n },\n "learn_more": {\n "label": "더 알아보기"\n }\n }\n },\n "chains": {\n "title": "네트워크 전환",\n "wrong_network": "잘못된 네트워크를 탐지했습니다, 계속하려면 전환하거나 연결을 해제하세요.",\n "confirm": "지갑에서 승인",\n "switching_not_supported": "지갑에서 %{appName}네트워크를 전환하는 것은 지원되지 않습니다. 대신 지갑 내에서 네트워크를 전환해 보세요.",\n "switching_not_supported_fallback": "당신의 지갑은 이 앱에서 네트워크를 바꾸는 것을 지원하지 않습니다. 대신 지갑 내에서 네트워크를 변경해 보세요.",\n "disconnect": "연결 해제",\n "connected": "연결됨"\n },\n "profile": {\n "disconnect": {\n "label": "연결 해제"\n },\n "copy_address": {\n "label": "주소 복사",\n "copied": "복사됨!"\n },\n "explorer": {\n "label": "탐색기에서 더 보기"\n },\n "transactions": {\n "description": "%{appName} 거래가 여기에 나타납니다...",\n "description_fallback": "여기에 트랜잭션이 표시됩니다...",\n "recent": {\n "title": "최근 거래 내역"\n },\n "clear": {\n "label": "모두 지우기"\n }\n }\n },\n "wallet_connectors": {\n "argent": {\n "qr_code": {\n "step1": {\n "description": "지갑에 더 빠르게 액세스하려면 Argent를 홈 화면에 놓으세요.",\n "title": "Argent 앱을 열기"\n },\n "step2": {\n "description": "지갑과 사용자 이름을 생성하거나 기존의 지갑을 가져옵니다.",\n "title": "지갑 생성 또는 가져오기"\n },\n "step3": {\n "description": "스캔 후에 지갑을 연결하기 위한 연결 요청이 표시됩니다.",\n "title": "QR 코드 스캔 버튼을 누르기"\n }\n }\n },\n "bifrost": {\n "qr_code": {\n "step1": {\n "description": "더 빠른 접근을 위해 홈 화면에 Bifrost Wallet을 놓는 것을 권장합니다.",\n "title": "Bifrost 지갑 앱을 열어주세요"\n },\n "step2": {\n "description": "복구 문구를 사용하여 지갑을 생성하거나 가져옵니다.",\n "title": "지갑 생성 또는 가져오기"\n },\n "step3": {\n "description": "스캔 후 연결 프롬프트가 나타나고 지갑을 연결할 수 있습니다.",\n "title": "스캔 버튼을 누릅니다"\n }\n }\n },\n "bitget": {\n "qr_code": {\n "step1": {\n "description": "더 빠른 접근을 위해 Bitget 지갑을 홈 화면에 두는 것을 권장합니다.",\n "title": "Bitget 지갑 앱을 여세요"\n },\n "step2": {\n "description": "안전한 방법을 사용하여 지갑을 백업하세요. 절대로 비밀 구문을 누구와도 공유하지 마세요.",\n "title": "지갑 생성 또는 가져오기"\n },\n "step3": {\n "description": "스캔 후, 지갑을 연결하라는 연결 요청 메시지가 나타납니다.",\n "title": "스캔 버튼을 누르세요"\n }\n },\n "extension": {\n "step1": {\n "description": "지갑에 빠르게 액세스하기 위해 Bitget Wallet을 작업 표시줄에 고정하는 것을 권장합니다.",\n "title": "Bitget Wallet 확장 프로그램을 설치하세요"\n },\n "step2": {\n "description": "지갑을 안전한 방법으로 백업하세요. 절대로 비밀 문구를 누구와도 공유하지 마세요.",\n "title": "지갑 생성 또는 가져오기"\n },\n "step3": {\n "description": "지갑 설정을 마친 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요.",\n "title": "브라우저를 새로 고침하세요"\n }\n }\n },\n "bitski": {\n "extension": {\n "step1": {\n "description": "지갑에 더 빠르게 액세스하기 위해 Bitski를 작업 표시줄에 고정하는 것을 권장합니다.",\n "title": "Bitski 확장 프로그램을 설치합니다"\n },\n "step2": {\n "description": "안전한 방법을 사용하여 지갑을 백업하세요. 비밀 문구를 누구와도 공유하지 마세요.",\n "title": "지갑 만들기 또는 가져오기"\n },\n "step3": {\n "description": "지갑을 설정한 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요.",\n "title": "브라우저를 새로고침하세요"\n }\n }\n },\n "bitverse": {\n "qr_code": {\n "step1": {\n "title": "Bitverse 지갑 앱을 열어주세요",\n "description": "지갑에 더 빠르게 접근하기 위해 홈 화면에 Bitverse 지갑을 추가하세요."\n },\n "step2": {\n "title": "지갑 생성 또는 가져오기",\n "description": "새로운 지갑을 만들거나 기존의 지갑을 가져옵니다."\n },\n "step3": {\n "title": "QR 아이콘을 탭하고 스캔하기",\n "description": "홈화면의 QR 아이콘을 누르고 코드를 스캔하고 프롬프트를 확인하여 연결하세요."\n }\n }\n },\n "bloom": {\n "desktop": {\n "step1": {\n "title": "Bloom Wallet 앱을 엽니다",\n "description": "더 빠른 접근을 위해 Bloom Wallet을 홈 화면에 두는 것을 추천합니다."\n },\n "step2": {\n "description": "복구 문구를 사용하여 지갑을 생성하거나 가져옵니다.",\n "title": "지갑 생성 또는 가져오기"\n },\n "step3": {\n "description": "지갑을 갖춘 후, Bloom을 통해 연결하려면 연결하기를 클릭합니다. 앱에서 연결을 확인하는 프롬프트가 나타납니다.",\n "title": "연결하기를 클릭"\n }\n },\n "qr_code": {\n "step1": {\n "title": "Bloom Wallet 앱을 엽니다",\n "description": "더 빠른 접근을 위해 Bloom Wallet을 홈 화면에 두는 것을 추천합니다."\n },\n "step2": {\n "description": "복구 문구를 사용하여 지갑을 생성하거나 가져옵니다.",\n "title": "지갑 생성 또는 가져오기"\n },\n "step3": {\n "description": "지갑을 갖춘 후, Bloom을 통해 연결하려면 연결하기를 클릭합니다. 앱에서 연결을 확인하는 프롬프트가 나타납니다.",\n "title": "연결하기를 클릭"\n }\n }\n },\n "bybit": {\n "qr_code": {\n "step1": {\n "description": "지갑에 더 빠르게 접근하기 위해 홈 화면에 Bybit을 추가하는 것이 좋습니다.",\n "title": "Bybit 앱을 열어주세요"\n },\n "step2": {\n "description": "휴대폰에서 백업 기능을 이용하여 지갑을 쉽게 백업할 수 있습니다.",\n "title": "지갑 생성 또는 가져오기"\n },\n "step3": {\n "description": "스캔 후에 지갑을 연결하기 위한 연결 요청이 표시됩니다.",\n "title": "스캔 버튼을 누릅니다"\n }\n },\n "extension": {\n "step1": {\n "description": "브라우저의 오른쪽 상단에서 클릭하여 Bybit 지갑을 고정시켜 쉽게 접근하세요.",\n "title": "Bybit 지갑 확장 프로그램을 설치하세요"\n },\n "step2": {\n "description": "새로운 지갑을 만들거나 기존의 지갑을 가져옵니다.",\n "title": "지갑을 만들거나 가져옵니다"\n },\n "step3": {\n "description": "Bybit 지갑을 설정한 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요.",\n "title": "브라우저를 새로 고침하세요"\n }\n }\n },\n "coin98": {\n "qr_code": {\n "step1": {\n "description": "지갑에 빠르게 액세스하기 위해 Coin98 Wallet을 홈 화면에 두는 것을 권장합니다.",\n "title": "Coin98 Wallet 앱을 열기"\n },\n "step2": {\n "description": "휴대폰에서 백업 기능을 이용하여 지갑을 쉽게 백업할 수 있습니다.",\n "title": "지갑 만들기 또는 가져오기"\n },\n "step3": {\n "description": "스캔한 후 연결 프롬프트가 나타나 지갑을 연결하도록 합니다.",\n "title": "WalletConnect 버튼을 누르세요"\n }\n },\n "extension": {\n "step1": {\n "description": "브라우저 오른쪽 상단을 클릭하고 쉽게 액세스할 수 있도록 Coin98 Wallet을 고정하세요.",\n "title": "Coin98 Wallet 확장 프로그램을 설치하세요"\n },\n "step2": {\n "description": "새로운 지갑을 만들거나 기존의 지갑을 가져옵니다.",\n "title": "지갑을 만들거나 가져옵니다"\n },\n "step3": {\n "description": "Coin98 Wallet을 설정하면 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요.",\n "title": "브라우저를 새로고침 하세요"\n }\n }\n },\n "coinbase": {\n "qr_code": {\n "step1": {\n "description": "더 빠른 액세스를 위해 Coinbase Wallet을 홈 화면에 두는 것을 권장합니다.",\n "title": "Coinbase Wallet 앱을 엽니다"\n },\n "step2": {\n "description": "클라우드 백업 기능을 사용하여 지갑을 쉽게 백업할 수 있습니다.",\n "title": "지갑 생성 또는 가져오기"\n },\n "step3": {\n "description": "스캔한 후에 지갑을 연결하라는 연결 프롬프트가 나타납니다.",\n "title": "스캔 버튼을 탭하세요"\n }\n },\n "extension": {\n "step1": {\n "description": "지갑에 더 빠르게 접근할 수 있도록 Coinbase Wallet을 작업 표시줄에 고정하는 것을 권장합니다.",\n "title": "Coinbase Wallet 확장 프로그램을 설치하세요"\n },\n "step2": {\n "description": "안전한 방법을 사용하여 지갑을 백업하세요. 비밀 문구는 절대로 누구와도 공유하지 마세요.",\n "title": "지갑 만들기 또는 가져오기"\n },\n "step3": {\n "description": "지갑을 설정한 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요.",\n "title": "브라우저 새로고침"\n }\n }\n },\n "compass": {\n "extension": {\n "step1": {\n "description": "지갑에 더 빠르게 접근할 수 있도록 Compass Wallet을 작업 표시줄에 고정하는 것을 권장합니다.",\n "title": "Compass Wallet 확장 프로그램을 설치하세요"\n },\n "step2": {\n "description": "안전한 방법을 사용하여 지갑을 백업하세요. 절대로 비밀 구문을 누구와도 공유하지 마세요.",\n "title": "지갑 생성 또는 가져오기"\n },\n "step3": {\n "description": "지갑 설정을 마친 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요.",\n "title": "브라우저를 새로 고침하세요"\n }\n }\n },\n "core": {\n "qr_code": {\n "step1": {\n "description": "지갑에 빠르게 액세스할 수 있도록 Core를 홈 화면에 두는 것을 추천드립니다.",\n "title": "Core 앱 열기"\n },\n "step2": {\n "description": "휴대폰에서 우리의 백업 기능을 이용해 지갑을 쉽게 백업할 수 있습니다.",\n "title": "지갑 만들기 또는 가져오기"\n },\n "step3": {\n "description": "스캔 한 후에는 지갑을 연결하라는 연결 요청이 표시됩니다.",\n "title": "WalletConnect 버튼을 누르세요"\n }\n },\n "extension": {\n "step1": {\n "description": "지갑에 더 빠르게 액세스하기 위해 작업 표시줄에 Core를 고정하는 것을 권장합니다.",\n "title": "Core 확장 프로그램을 설치하세요"\n },\n "step2": {\n "description": "안전한 방법을 사용하여 지갑을 백업해야 합니다. 절대로 비밀 문구를 다른 사람과 공유하지 마세요.",\n "title": "지갑 만들기 또는 가져오기"\n },\n "step3": {\n "description": "지갑을 설정한 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요.",\n "title": "브라우저를 새로 고치세요"\n }\n }\n },\n "fox": {\n "qr_code": {\n "step1": {\n "description": "FoxWallet을 홈 화면에 놓는 것을 추천합니다. 이렇게 하면 더 빠르게 접근할 수 있습니다.",\n "title": "FoxWallet 앱을 열어주세요"\n },\n "step2": {\n "description": "지갑을 안전한 방법으로 백업하세요. 절대로 비밀 문구를 다른 사람과 공유하지 마세요.",\n "title": "지갑을 생성하거나 가져오기"\n },\n "step3": {\n "description": "스캔 후, 지갑을 연결하라는 연결 프롬프트가 표시됩니다.",\n "title": "스캔 버튼을 누르세요"\n }\n }\n },\n "frontier": {\n "qr_code": {\n "step1": {\n "description": "Frontier Wallet을 홈 화면에 놓는 것을 추천합니다. 이렇게 하면 더 빠르게 접근할 수 있습니다.",\n "title": "Frontier Wallet 앱을 열어주세요"\n },\n "step2": {\n "description": "지갑을 안전한 방법으로 백업해야 합니다. 비밀 구문을 누구와도 공유하지 마세요.",\n "title": "지갑 생성 또는 가져오기"\n },\n "step3": {\n "description": "스캔 후에 지갑을 연결하라는 연결 프롬프트가 표시됩니다.",\n "title": "스캔 버튼을 누르세요"\n }\n },\n "extension": {\n "step1": {\n "description": "지갑에 더 빠르게 액세스 할 수 있도록 Frontier Wallet을 작업 표시줄에 고정하는 것을 권장합니다.",\n "title": "Frontier Wallet 확장 프로그램 설치"\n },\n "step2": {\n "description": "지갑을 안전한 방법으로 백업해야 합니다. 비밀 구문을 누구와도 공유하지 마세요.",\n "title": "지갑 생성 또는 가져오기"\n },\n "step3": {\n "description": "지갑을 설정한 후에 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요.",\n "title": "브라우저를 새로 고칩니다"\n }\n }\n },\n "im_token": {\n "qr_code": {\n "step1": {\n "title": "imToken 앱을 연다",\n "description": "당신의 지갑에 더 빠르게 접근하기 위해 imToken 앱을 홈 화면에 둡니다."\n },\n "step2": {\n "title": "지갑을 만들거나 불러옵니다",\n "description": "새 지갑을 생성하거나 기존의 것을 가져옵니다."\n },\n "step3": {\n "title": "오른쪽 상단의 스캐너 아이콘을 누릅니다",\n "description": "새 연결을 선택하고 QR 코드를 스캔한 뒤, 연결하려는 프롬프트를 확인합니다."\n }\n }\n },\n "kaikas": {\n "extension": {\n "step1": {\n "description": "지갑에 더 빠르게 접근할 수 있도록 Kaikas Wallet을 작업 표시줄에 고정하는 것을 권장합니다.",\n "title": "Kaikas Wallet 확장 프로그램을 설치하세요"\n },\n "step2": {\n "description": "안전한 방법을 사용하여 지갑을 백업하세요. 비밀 문구는 절대로 누구와도 공유하지 마세요.",\n "title": "지갑 만들기 또는 가져오기"\n },\n "step3": {\n "description": "지갑을 설정한 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요.",\n "title": "브라우저 새로고침"\n }\n },\n "qr_code": {\n "step1": {\n "title": "Kaikas 앱을 열어주세요",\n "description": "지갑에 더 빠르게 접근하기 위해 홈 화면에 Kaikas 앱을 추가하세요."\n },\n "step2": {\n "title": "지갑 생성 또는 가져오기",\n "description": "새로운 지갑을 만들거나 기존의 지갑을 가져옵니다."\n },\n "step3": {\n "title": "오른쪽 상단의 스캐너 아이콘을 누릅니다",\n "description": "새 연결을 선택하고 QR 코드를 스캔한 뒤, 연결하려는 프롬프트를 확인합니다."\n }\n }\n },\n "kraken": {\n "qr_code": {\n "step1": {\n "title": "Kraken Wallet 앱을 여세요",\n "description": "지갑에 빠르게 액세스하기 위해 Kraken Wallet을 홈 화면에 두는 것을 권장합니다."\n },\n "step2": {\n "title": "지갑 생성 또는 가져오기",\n "description": "새로운 지갑을 만들거나 기존의 지갑을 가져옵니다."\n },\n "step3": {\n "title": "QR 아이콘을 탭하고 스캔하기",\n "description": "홈화면의 QR 아이콘을 누르고 코드를 스캔하고 프롬프트를 확인하여 연결하세요."\n }\n }\n },\n "kresus": {\n "qr_code": {\n "step1": {\n "title": "Kresus Wallet 앱을 엽니다",\n "description": "Kresus 지갑을 홈 화면에 추가하여 지갑에 더 빠르게 접근하세요."\n },\n "step2": {\n "title": "지갑 생성 또는 가져오기",\n "description": "새로운 지갑을 만들거나 기존의 지갑을 가져옵니다."\n },\n "step3": {\n "title": "QR 아이콘을 탭하고 스캔하기",\n "description": "홈화면의 QR 아이콘을 누르고 코드를 스캔하고 프롬프트를 확인하여 연결하세요."\n }\n }\n },\n "magicEden": {\n "extension": {\n "step1": {\n "title": "Magic Eden 확장 프로그램 설치",\n "description": "지갑에 더 쉽게 접근할 수 있도록 Magic Eden을 작업 표시줄에 고정하는 것을 권장합니다."\n },\n "step2": {\n "title": "지갑 생성 또는 가져오기",\n "description": "안전한 방법을 사용하여 지갑을 백업하세요. 절대로 누구와도 비밀 복구 구문을 공유하지 마세요."\n },\n "step3": {\n "title": "브라우저를 새로 고침하세요",\n "description": "지갑 설정을 마친 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요."\n }\n }\n },\n "metamask": {\n "qr_code": {\n "step1": {\n "title": "MetaMask 앱을 엽니다",\n "description": "빠른 액세스를 위해 MetaMask를 홈 화면에 두는 것을 권장합니다."\n },\n "step2": {\n "title": "지갑 생성 또는 가져오기",\n "description": "당신의 지갑을 안전한 방법으로 백업하는 것을 잊지 마세요. 절대로 비밀 구절을 공유하지 마세요."\n },\n "step3": {\n "title": "스캔 버튼을 누릅니다",\n "description": "스캔한 후에 지갑을 연결하라는 연결 프롬프트가 나타납니다."\n }\n },\n "extension": {\n "step1": {\n "title": "MetaMask 확장 프로그램을 설치하세요",\n "description": "지갑에 빠르게 접근하기 위해 MetaMask를 작업표시줄에 고정하는 것을 추천합니다."\n },\n "step2": {\n "title": "지갑 생성 또는 가져오기",\n "description": "안전한 방법을 사용하여 지갑을 백업하세요. 결코 비밀 문구를 다른 사람과 공유하지 마세요."\n },\n "step3": {\n "title": "브라우저를 새로 고치세요",\n "description": "지갑 설정을 마친 후에는 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요."\n }\n }\n },\n "okx": {\n "qr_code": {\n "step1": {\n "title": "OKX Wallet 앱을 열기",\n "description": "더 빠른 접근을 위해 OKX 지갑을 홈 화면에 두는 것을 추천합니다."\n },\n "step2": {\n "title": "지갑 만들기 또는 불러오기",\n "description": "안전한 방법으로 지갑을 백업하세요. 절대 비밀 문구를 다른 사람과 공유하지 마세요."\n },\n "step3": {\n "title": "스캔 버튼을 탭하세요",\n "description": "스캔 후 연결 요청이 나타나며, 이를 통해 지갑을 연결할 수 있습니다."\n }\n },\n "extension": {\n "step1": {\n "title": "OKX 지갑 확장 프로그램 설치하기",\n "description": "지갑에 빠르게 접근할 수 있도록 OKX 지갑을 작업 표시줄에 고정하는 것을 추천합니다."\n },\n "step2": {\n "title": "지갑 만들기 또는 불러오기",\n "description": "당신의 지갑을 안전한 방법으로 백업해야 합니다. 비밀 문구를 절대로 다른 사람과 공유하지 마세요."\n },\n "step3": {\n "title": "브라우저를 새로 고치세요",\n "description": "지갑을 설정한 후, 브라우저를 새로고침하고 확장 프로그램을 로드하기 위해 아래를 클릭하세요."\n }\n }\n },\n "omni": {\n "qr_code": {\n "step1": {\n "title": "Omni 앱을 열기",\n "description": "더 빠른 액세스를 위해 Omni를 홈 스크린에 추가하세요."\n },\n "step2": {\n "title": "지갑 만들기 또는 가져오기",\n "description": "새로운 지갑을 만들거나 기존의 하나를 가져옵니다."\n },\n "step3": {\n "title": "QR 아이콘을 탭하고 스캔하기",\n "description": "홈 화면의 QR 아이콘을 탭하고, 코드를 스캔하고 프롬프트를 확인하여 연결하세요."\n }\n }\n },\n "1inch": {\n "qr_code": {\n "step1": {\n "description": "지갑에 더 빠르게 접근하기 위해 홈 화면에 1inch 지갑을 추가하세요.",\n "title": "1inch 지갑 앱을 열어주세요"\n },\n "step2": {\n "description": "지갑과 사용자 이름을 생성하거나 기존의 지갑을 가져옵니다.",\n "title": "지갑 생성 또는 가져오기"\n },\n "step3": {\n "description": "스캔 후에 지갑을 연결하기 위한 연결 요청이 표시됩니다.",\n "title": "QR 코드 스캔 버튼을 누르기"\n }\n }\n },\n "token_pocket": {\n "qr_code": {\n "step1": {\n "title": "TokenPocket 앱을 열어주세요",\n "description": "빠른 접근을 위해 홈 화면에 TokenPocket을 추가하는 것을 권장합니다."\n },\n "step2": {\n "title": "지갑 생성 또는 가져오기",\n "description": "안전한 방법을 사용하여 지갑을 백업하세요. 절대로 누구에게도 비밀 문구를 공유하지 마세요."\n },\n "step3": {\n "title": "스캔 버튼을 탭하세요",\n "description": "스캔 후에 지갑을 연결하라는 프롬프트가 표시됩니다."\n }\n },\n "extension": {\n "step1": {\n "title": "TokenPocket 확장 프로그램을 설치하세요",\n "description": "지갑에 빠르게 접근하기 위해 TokenPocket를 작업 표시줄에 고정하는 것을 추천합니다."\n },\n "step2": {\n "title": "지갑 생성 또는 가져오기",\n "description": "안전한 방법을 사용하여 지갑을 백업하세요. 절대로 비밀 문구를 다른 사람과 공유하지 마세요."\n },\n "step3": {\n "title": "브라우저 새로고침",\n "description": "지갑을 설정하면 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드합니다."\n }\n }\n },\n "trust": {\n "qr_code": {\n "step1": {\n "title": "Trust Wallet 앱을 열기",\n "description": "지갑에 빠르게 접근하기 위해 Trust Wallet을 홈 스크린에 두세요."\n },\n "step2": {\n "title": "지갑 생성 또는 가져오기",\n "description": "새로운 지갑을 생성하거나 기존의 것을 가져오세요."\n },\n "step3": {\n "title": "설정에서 WalletConnect를 탭하세요",\n "description": "새 연결을 선택한 다음 QR 코드를 스캔하고, 연결을 확인하는 프롬프트를 확인하세요."\n }\n },\n "extension": {\n "step1": {\n "title": "Trust Wallet 확장 프로그램을 설치하세요",\n "description": "브라우저의 오른쪽 상단을 클릭하고 Trust Wallet을 고정하여 쉽게 접근하세요."\n },\n "step2": {\n "title": "지갑 생성 또는 가져오기",\n "description": "새로운 지갑을 생성하거나 기존의 것을 가져오세요."\n },\n "step3": {\n "title": "브라우저를 새로고침하세요",\n "description": "Trust Wallet을 설정한 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드합니다."\n }\n }\n },\n "uniswap": {\n "qr_code": {\n "step1": {\n "title": "Uniswap 앱을 엽니다",\n "description": "Uniswap Wallet을 홈 화면에 추가하여 지갑에 더 빠르게 액세스하세요."\n },\n "step2": {\n "title": "지갑을 만들거나 가져오기",\n "description": "새 지갑을 생성하거나 기존의 것을 가져옵니다."\n },\n "step3": {\n "title": "QR 아이콘을 누르고 스캔하기",\n "description": "홈화면의 QR 아이콘을 누르고 코드를 스캔하고 프롬프트를 확인하여 연결하세요."\n }\n }\n },\n "zerion": {\n "qr_code": {\n "step1": {\n "title": "Zerion 앱을 엽니다",\n "description": "더 빠른 접근을 위해 Zerion을 홈 화면에 두는 것을 권장합니다."\n },\n "step2": {\n "title": "지갑 만들기 또는 가져오기",\n "description": "안전한 방법으로 지갑을 백업하세요. 절대로 비밀 구절을 누군가와 공유하지 마세요."\n },\n "step3": {\n "title": "스캔 버튼을 탭하세요",\n "description": "스캔 후 연결 프롬프트가 나타나 지갑을 연결하세요."\n }\n },\n "extension": {\n "step1": {\n "title": "Zerion 확장 프로그램을 설치하세요",\n "description": "지갑에 더 빠르게 접근할 수 있도록 Zerion을 작업 표시줄에 고정하는 것을 권장합니다."\n },\n "step2": {\n "title": "지갑 생성 또는 가져오기",\n "description": "안전한 방법을 사용하여 지갑을 백업하세요. 비밀 구문을 절대로 다른 사람과 공유하지 마세요."\n },\n "step3": {\n "title": "브라우저를 새로 고치세요",\n "description": "지갑을 설정한 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요."\n }\n }\n },\n "rainbow": {\n "qr_code": {\n "step1": {\n "title": "Rainbow 앱 열기",\n "description": "지갑에 더 빠르게 접근하기 위해 홈 화면에 Rainbow를 두는 것을 추천합니다."\n },\n "step2": {\n "title": "지갑 생성 또는 가져오기",\n "description": "휴대폰에 있는 백업 기능을 사용하여 지갑을 쉽게 백업할 수 있습니다."\n },\n "step3": {\n "title": "스캔 버튼을 누르세요",\n "description": "스캔 후, 지갑을 연결하라는 연결 프롬프트가 나타납니다."\n }\n }\n },\n "enkrypt": {\n "extension": {\n "step1": {\n "description": "지갑에 더 빠르게 접근하기 위해 작업 표시줄에 Enkrypt Wallet를 고정하는 것을 추천합니다.",\n "title": "Enkrypt Wallet 확장 프로그램을 설치하세요"\n },\n "step2": {\n "description": "지갑을 안전한 방법으로 백업하세요. 절대로 비밀 문구를 다른 사람과 공유하지 마세요.",\n "title": "지갑 생성 또는 가져오기"\n },\n "step3": {\n "description": "지갑을 설정한 후에는 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요.",\n "title": "브라우저 새로고침"\n }\n }\n },\n "frame": {\n "extension": {\n "step1": {\n "description": "지갑에 더 빠르게 접근할 수 있도록 Frame을 작업 표시줄에 고정하는 것을 추천합니다.",\n "title": "Frame 및 동반 확장 프로그램 설치"\n },\n "step2": {\n "description": "안전한 방법을 사용하여 지갑을 백업하세요. 절대로 비밀 구문을 다른 사람과 공유하지 마세요.",\n "title": "지갑 생성 또는 가져오기"\n },\n "step3": {\n "description": "지갑을 설정한 후에는 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요.",\n "title": "브라우저 새로고침"\n }\n }\n },\n "one_key": {\n "extension": {\n "step1": {\n "title": "OneKey Wallet 확장 프로그램을 설치하세요",\n "description": "지갑에 빠르게 접근할 수 있도록 OneKey Wallet을 작업 표시줄에 고정하는 것을 권장합니다."\n },\n "step2": {\n "title": "지갑 생성 또는 불러오기",\n "description": "지갑을 안전한 방법으로 백업하세요. 절대로 비밀 문구를 다른 사람과 공유하지 마세요."\n },\n "step3": {\n "title": "브라우저를 새로고침 하세요",\n "description": "지갑을 설정한 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요."\n }\n }\n },\n "phantom": {\n "extension": {\n "step1": {\n "title": "Phantom 확장 프로그램을 설치하세요",\n "description": "지갑에 더 쉽게 접근할 수 있도록 Phantom을 작업 표시줄에 고정하는 것을 권장합니다."\n },\n "step2": {\n "title": "지갑 생성 또는 불러오기",\n "description": "안전한 방법을 사용하여 지갑을 백업하세요. 절대로 누구와도 비밀 복구 구문을 공유하지 마세요."\n },\n "step3": {\n "title": "브라우저를 새로고침 하세요",\n "description": "지갑을 설정한 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요."\n }\n }\n },\n "rabby": {\n "extension": {\n "step1": {\n "title": "Rabby 확장 프로그램을 설치하세요",\n "description": "지갑에 더 빠르게 액세스할 수 있도록 Rabby를 작업표시줄에 고정하는 것을 권장합니다."\n },\n "step2": {\n "title": "지갑 만들기 또는 가져오기",\n "description": "안전한 방법을 사용하여 지갑을 백업하세요. 절대로 누구와도 비밀 구문을 공유하지 마세요."\n },\n "step3": {\n "title": "브라우저를 새로고침 하세요",\n "description": "지갑 설정을 완료하면 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드합니다."\n }\n }\n },\n "ronin": {\n "qr_code": {\n "step1": {\n "description": "Ronin Wallet을 홈 화면에 두어 더 빠른 접근을 추천드립니다.",\n "title": "Ronin Wallet 앱을 열기"\n },\n "step2": {\n "description": "안전한 방법을 사용하여 지갑을 백업하세요. 절대로 비밀 구문을 누구와도 공유하지 마세요.",\n "title": "지갑 생성 또는 가져오기"\n },\n "step3": {\n "description": "스캔 후에 지갑을 연결하기 위한 연결 요청이 표시됩니다.",\n "title": "스캔 버튼을 누릅니다"\n }\n },\n "extension": {\n "step1": {\n "description": "작업 표시줄에 Ronin Wallet을 고정하여 지갑에 더 빠르게 접근할 수 있도록 추천합니다.",\n "title": "Ronin Wallet 확장 프로그램 설치하기"\n },\n "step2": {\n "description": "안전한 방법을 사용하여 지갑을 백업하세요. 절대로 비밀 구문을 누구와도 공유하지 마세요.",\n "title": "지갑 생성 또는 가져오기"\n },\n "step3": {\n "description": "지갑 설정을 마친 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요.",\n "title": "브라우저를 새로 고침하세요"\n }\n }\n },\n "ramper": {\n "extension": {\n "step1": {\n "title": "Ramper 확장 프로그램 설치하기",\n "description": "작업 표시줄에 Ramper를 고정하여 지갑 접근을 용이하게 할 것을 추천합니다."\n },\n "step2": {\n "title": "지갑 생성",\n "description": "안전한 방법을 사용하여 지갑을 백업하세요. 절대로 비밀 구문을 누구와도 공유하지 마세요."\n },\n "step3": {\n "title": "브라우저를 새로 고침하세요",\n "description": "지갑 설정을 마친 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요."\n }\n }\n },\n "safeheron": {\n "extension": {\n "step1": {\n "title": "코어 확장 프로그램 설치",\n "description": "지갑에 빠르게 액세스하기 위해 Safeheron을 작업 표시줄에 고정하는 것을 권장합니다."\n },\n "step2": {\n "title": "지갑 만들기 또는 가져오기",\n "description": "안전한 방법을 사용하여 지갑을 백업하세요. 비밀 문구를 절대 다른 사람과 공유하지 마세요."\n },\n "step3": {\n "title": "브라우저 새로고침",\n "description": "지갑 설정을 완료하면 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드합니다."\n }\n }\n },\n "taho": {\n "extension": {\n "step1": {\n "title": "Taho 확장 프로그램 설치",\n "description": "지갑에 더 빠르게 액세스하기 위해 Taho를 작업 표시줄에 고정하는 것을 추천합니다."\n },\n "step2": {\n "title": "지갑 생성 또는 가져오기",\n "description": "안전한 방법을 사용하여 지갑을 백업하세요. 결코 비밀 문구를 누군가와 공유하지 마세요."\n },\n "step3": {\n "title": "브라우저를 새로고침 하세요",\n "description": "지갑을 설정한 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요."\n }\n }\n },\n "talisman": {\n "extension": {\n "step1": {\n "title": "탈리스만 확장 프로그램 설치",\n "description": "지갑에 더 빠르게 접근하기 위해 Talisman을 작업 표시줄에 고정하는 것을 추천합니다."\n },\n "step2": {\n "title": "이더리움 지갑 생성 또는 가져오기",\n "description": "반드시 안전한 방법을 사용하여 지갑을 백업하세요. 복구 문구를 누구와도 공유하지 마세요."\n },\n "step3": {\n "title": "브라우저를 새로고침 하세요",\n "description": "지갑을 설정 한 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요."\n }\n }\n },\n "xdefi": {\n "extension": {\n "step1": {\n "title": "XDEFI 지갑 확장 프로그램을 설치하세요",\n "description": "지갑에 빠르게 액세스하기 위해 작업 표시줄에 XDEFI Wallet을 고정하는 것을 권장합니다."\n },\n "step2": {\n "title": "지갑을 만들거나 가져오기",\n "description": "반드시 안전한 방법을 사용하여 지갑을 백업하세요. 비밀 문구를 누구와도 공유하지 마세요."\n },\n "step3": {\n "title": "브라우저를 새로고침 하세요",\n "description": "지갑을 설정한 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요."\n }\n }\n },\n "zeal": {\n "extension": {\n "step1": {\n "title": "Zeal 확장 프로그램을 설치하세요",\n "description": "월렛에 더 빠르게 액세스할 수 있도록 Zeal을 작업 표시 줄에 고정하는 것을 권장합니다."\n },\n "step2": {\n "title": "지갑 생성 또는 가져오기",\n "description": "안전한 방법을 사용하여 지갑을 백업하세요. 절대로 비밀 구문을 누구와도 공유하지 마세요."\n },\n "step3": {\n "title": "브라우저를 새로 고침하세요",\n "description": "지갑 설정을 마친 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요."\n }\n }\n },\n "safepal": {\n "extension": {\n "step1": {\n "title": "SafePal Wallet 확장 프로그램을 설치하세요",\n "description": "브라우저의 오른쪽 상단에서 클릭하고 SafePal Wallet을 고정하여 쉽게 접근하세요."\n },\n "step2": {\n "title": "지갑을 만들거나 가져옵니다",\n "description": "새로운 지갑을 만들거나 기존의 지갑을 가져옵니다."\n },\n "step3": {\n "title": "브라우저를 새로 고침하세요",\n "description": "SafePal Wallet을 설정한 후에는 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요."\n }\n },\n "qr_code": {\n "step1": {\n "title": "SafePal Wallet 앱을 여세요",\n "description": "월렛에 빠르게 액세스할 수 있도록 SafePal Wallet을 홈 화면에 두세요."\n },\n "step2": {\n "title": "지갑 생성 또는 가져오기",\n "description": "새로운 지갑을 만들거나 기존의 지갑을 가져옵니다."\n },\n "step3": {\n "title": "설정에서 WalletConnect를 탭하세요",\n "description": "새 연결을 선택하고 QR 코드를 스캔한 뒤, 연결하려는 프롬프트를 확인합니다."\n }\n }\n },\n "desig": {\n "extension": {\n "step1": {\n "title": "Desig 확장 프로그램 설치",\n "description": "당신의 지갑에 더 쉽게 접근하기 위해 작업 표시줄에 Desig을 고정하는 것을 권장합니다."\n },\n "step2": {\n "title": "지갑 생성",\n "description": "안전한 방법을 사용하여 지갑을 백업하세요. 절대로 비밀 구문을 누구와도 공유하지 마세요."\n },\n "step3": {\n "title": "브라우저를 새로 고침하세요",\n "description": "지갑 설정을 마친 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요."\n }\n }\n },\n "subwallet": {\n "extension": {\n "step1": {\n "title": "SubWallet 확장 프로그램 설치",\n "description": "당신의 지갑에 더 빠르게 접근하기 위해 작업 표시줄에 SubWallet을 고정하는 것을 권장합니다."\n },\n "step2": {\n "title": "지갑 생성 또는 가져오기",\n "description": "반드시 안전한 방법을 사용하여 지갑을 백업하세요. 복구 문구를 누구와도 공유하지 마세요."\n },\n "step3": {\n "title": "브라우저를 새로 고침하세요",\n "description": "지갑 설정을 마친 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요."\n }\n },\n "qr_code": {\n "step1": {\n "title": "SubWallet 앱 열기",\n "description": "더 빠른 접근을 위해 SubWallet을 홈 화면에 두는 것을 권장합니다."\n },\n "step2": {\n "title": "지갑 생성 또는 가져오기",\n "description": "안전한 방법을 사용하여 지갑을 백업하세요. 절대로 비밀 구문을 누구와도 공유하지 마세요."\n },\n "step3": {\n "title": "스캔 버튼을 누릅니다",\n "description": "스캔 후에 지갑을 연결하기 위한 연결 요청이 표시됩니다."\n }\n }\n },\n "clv": {\n "extension": {\n "step1": {\n "title": "CLV Wallet 확장 프로그램 설치",\n "description": "당신의 지갑에 더 빠르게 접근하기 위해 작업 표시줄에 CLV Wallet을 고정하는 것을 권장합니다."\n },\n "step2": {\n "title": "지갑 생성 또는 가져오기",\n "description": "안전한 방법을 사용하여 지갑을 백업하세요. 절대로 비밀 구문을 누구와도 공유하지 마세요."\n },\n "step3": {\n "title": "브라우저를 새로 고침하세요",\n "description": "지갑 설정을 마친 후 아래를 클릭하여 브라우저를 새로고침하고 확장 프로그램을 로드하세요."\n }\n },\n "qr_code": {\n "step1": {\n "title": "CLV Wallet 앱을 엽니다",\n "description": "더 빠른 접근을 위해 CLV Wallet을 홈 화면에 놓는 것이 좋습니다."\n },\n "step2": {\n "title": "지갑 생성 또는 가져오기",\n "description": "안전한 방법을 사용하여 지갑을 백업하세요. 절대로 비밀 구문을 누구와도 공유하지 마세요."\n },\n "step3": {\n "title": "스캔 버튼을 누릅니다",\n "description": "스캔 후에 지갑을 연결하기 위한 연결 요청이 표시됩니다."\n }\n }\n },\n "okto": {\n "qr_code": {\n "step1": {\n "title": "Okto 앱을 엽니다",\n "description": "빠른 접근을 위해 Okto를 홈 화면에 추가합니다"\n },\n "step2": {\n "title": "MPC Wallet을 만듭니다",\n "description": "계정을 만들고 지갑을 생성합니다"\n },\n "step3": {\n "title": "설정에서 WalletConnect를 탭하세요",\n "description": "오른쪽 상단의 QR 아이콘을 탭하고 연결하려면 알림을 확인합니다."\n }\n }\n },\n "ledger": {\n "desktop": {\n "step1": {\n "title": "Ledger Live 앱을 엽니다",\n "description": "빠른 접근을 위해 Ledger Live를 홈화면에 두는 것을 권장합니다."\n },\n "step2": {\n "title": "Ledger 설정",\n "description": "새 Ledger를 설정하거나 기존 Ledger에 연결하세요."\n },\n "step3": {\n "title": "연결",\n "description": "스캔 후 연결 요청이 나타나며, 이를 통해 지갑을 연결할 수 있습니다."\n }\n },\n "qr_code": {\n "step1": {\n "title": "Ledger Live 앱을 엽니다",\n "description": "빠른 접근을 위해 Ledger Live를 홈화면에 두는 것을 권장합니다."\n },\n "step2": {\n "title": "Ledger 설정",\n "description": "데스크톱 앱과 동기화하거나 Ledger를 연결할 수 있습니다."\n },\n "step3": {\n "title": "코드를 스캔하세요",\n "description": "WalletConnect를 탭하고 스캐너로 전환합니다. 스캔 후 연결 요청이 나타나며, 이를 통해 지갑을 연결할 수 있습니다."\n }\n }\n }\n }\n}\n'}}]); \ No newline at end of file diff --git a/_next/static/chunks/8122.5005b17bac05db78.js b/_next/static/chunks/8122.5005b17bac05db78.js new file mode 100644 index 0000000..950930d --- /dev/null +++ b/_next/static/chunks/8122.5005b17bac05db78.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8122],{88122:function(e,a,n){n.r(a),n.d(a,{default:function(){return r}});var r='{\n "connect_wallet": {\n "label": "Conectar la billetera",\n "wrong_network": {\n "label": "Red incorrecta"\n }\n },\n "intro": {\n "title": "\xbfQu\xe9 es una billetera?",\n "description": "Una billetera se usa para enviar, recibir, almacenar y mostrar activos digitales. Tambi\xe9n es una nueva forma de iniciar sesi\xf3n, sin necesidad de crear nuevas cuentas y contrase\xf1as en cada sitio web.",\n "digital_asset": {\n "title": "Un hogar para tus Activos Digitales",\n "description": "Las carteras se utilizan para enviar, recibir, almacenar y mostrar activos digitales como Ethereum y NFTs."\n },\n "login": {\n "title": "Una nueva forma de iniciar sesi\xf3n",\n "description": "En lugar de crear nuevas cuentas y contrase\xf1as en cada sitio web, simplemente conecta tu cartera."\n },\n "get": {\n "label": "Obtener una billetera"\n },\n "learn_more": {\n "label": "Obtener m\xe1s informaci\xf3n"\n }\n },\n "sign_in": {\n "label": "Verifica tu cuenta",\n "description": "Para terminar de conectar, debes firmar un mensaje en tu billetera para verificar que eres el propietario de esta cuenta.",\n "message": {\n "send": "Enviar mensaje",\n "preparing": "Preparando mensaje...",\n "cancel": "Cancelar",\n "preparing_error": "Error al preparar el mensaje, \xa1intenta de nuevo!"\n },\n "signature": {\n "waiting": "Esperando firma...",\n "verifying": "Verificando firma...",\n "signing_error": "Error al firmar el mensaje, \xa1intenta de nuevo!",\n "verifying_error": "Error al verificar la firma, \xa1intenta de nuevo!",\n "oops_error": "\xa1Ups! Algo sali\xf3 mal."\n }\n },\n "connect": {\n "label": "Conectar",\n "title": "Conectar una billetera",\n "new_to_ethereum": {\n "description": "\xbfEres nuevo en las billeteras Ethereum?",\n "learn_more": {\n "label": "Obtener m\xe1s informaci\xf3n"\n }\n },\n "learn_more": {\n "label": "Obtener m\xe1s informaci\xf3n"\n },\n "recent": "Reciente",\n "status": {\n "opening": "Abriendo %{wallet}...",\n "connecting": "Conectando",\n "connect_mobile": "Continuar en %{wallet}",\n "not_installed": "%{wallet} no est\xe1 instalado",\n "not_available": "%{wallet} no est\xe1 disponible",\n "confirm": "Confirma la conexi\xf3n en la extensi\xf3n",\n "confirm_mobile": "Aceptar la solicitud de conexi\xf3n en la cartera"\n },\n "secondary_action": {\n "get": {\n "description": "\xbfNo tienes %{wallet}?",\n "label": "OBTENER"\n },\n "install": {\n "label": "INSTALAR"\n },\n "retry": {\n "label": "REINTENTAR"\n }\n },\n "walletconnect": {\n "description": {\n "full": "\xbfNecesitas el modal oficial de WalletConnect?",\n "compact": "\xbfNecesitas el modal de WalletConnect?"\n },\n "open": {\n "label": "ABRIR"\n }\n }\n },\n "connect_scan": {\n "title": "Escanea con %{wallet}",\n "fallback_title": "Escanea con tu tel\xe9fono"\n },\n "connector_group": {\n "installed": "Instalado",\n "recommended": "Recomendado",\n "other": "Otro",\n "popular": "Popular",\n "more": "M\xe1s",\n "others": "Otros"\n },\n "get": {\n "title": "Obtener una billetera",\n "action": {\n "label": "OBTENER"\n },\n "mobile": {\n "description": "Billetera M\xf3vil"\n },\n "extension": {\n "description": "Extensi\xf3n de navegador"\n },\n "mobile_and_extension": {\n "description": "Billetera m\xf3vil y extensi\xf3n"\n },\n "mobile_and_desktop": {\n "description": "Billetera M\xf3vil y de Escritorio"\n },\n "looking_for": {\n "title": "\xbfNo es lo que est\xe1s buscando?",\n "mobile": {\n "description": "Seleccione una billetera en la pantalla principal para comenzar con un proveedor de billetera diferente."\n },\n "desktop": {\n "compact_description": "Seleccione una cartera en la pantalla principal para comenzar con un proveedor de cartera diferente.",\n "wide_description": "Seleccione una cartera a la izquierda para comenzar con un proveedor de cartera diferente."\n }\n }\n },\n "get_options": {\n "title": "Comienza con %{wallet}",\n "short_title": "Obtener %{wallet}",\n "mobile": {\n "title": "%{wallet} para m\xf3vil",\n "description": "Use la billetera m\xf3vil para explorar el mundo de Ethereum.",\n "download": {\n "label": "Obtener la aplicaci\xf3n"\n }\n },\n "extension": {\n "title": "%{wallet} para %{browser}",\n "description": "Acceda a su billetera directamente desde su navegador web favorito.",\n "download": {\n "label": "A\xf1adir a %{browser}"\n }\n },\n "desktop": {\n "title": "%{wallet} para %{platform}",\n "description": "Acceda a su billetera de forma nativa desde su potente escritorio.",\n "download": {\n "label": "A\xf1adir a %{platform}"\n }\n }\n },\n "get_mobile": {\n "title": "Instalar %{wallet}",\n "description": "Escanee con su tel\xe9fono para descargar en iOS o Android",\n "continue": {\n "label": "Continuar"\n }\n },\n "get_instructions": {\n "mobile": {\n "connect": {\n "label": "Conectar"\n },\n "learn_more": {\n "label": "Obtener m\xe1s informaci\xf3n"\n }\n },\n "extension": {\n "refresh": {\n "label": "Actualizar"\n },\n "learn_more": {\n "label": "Obtener m\xe1s informaci\xf3n"\n }\n },\n "desktop": {\n "connect": {\n "label": "Conectar"\n },\n "learn_more": {\n "label": "Obtener m\xe1s informaci\xf3n"\n }\n }\n },\n "chains": {\n "title": "Cambiar redes",\n "wrong_network": "Se detect\xf3 la red incorrecta, cambia o descon\xe9ctate para continuar.",\n "confirm": "Confirmar en la cartera",\n "switching_not_supported": "Tu cartera no admite cambiar las redes desde %{appName}. Intenta cambiar las redes desde tu cartera.",\n "switching_not_supported_fallback": "Su billetera no admite el cambio de redes desde esta aplicaci\xf3n. Intente cambiar de red desde dentro de su billetera en su lugar.",\n "disconnect": "Desconectar",\n "connected": "Conectado"\n },\n "profile": {\n "disconnect": {\n "label": "Desconectar"\n },\n "copy_address": {\n "label": "Copiar direcci\xf3n",\n "copied": "\xa1Copiado!"\n },\n "explorer": {\n "label": "Ver m\xe1s en el explorador"\n },\n "transactions": {\n "description": "%{appName} transacciones aparecer\xe1n aqu\xed...",\n "description_fallback": "Tus transacciones aparecer\xe1n aqu\xed...",\n "recent": {\n "title": "Transacciones recientes"\n },\n "clear": {\n "label": "Borrar Todo"\n }\n }\n },\n "wallet_connectors": {\n "argent": {\n "qr_code": {\n "step1": {\n "description": "Coloque Argent en su pantalla de inicio para un acceso m\xe1s r\xe1pido a su billetera.",\n "title": "Abra la aplicaci\xf3n Argent"\n },\n "step2": {\n "description": "Cree una billetera y un nombre de usuario, o importe una billetera existente.",\n "title": "Crear o Importar una Billetera"\n },\n "step3": {\n "description": "Despu\xe9s de escanear, aparecer\xe1 un mensaje de conexi\xf3n para que conecte su billetera.",\n "title": "Toque el bot\xf3n Escanear QR"\n }\n }\n },\n "bifrost": {\n "qr_code": {\n "step1": {\n "description": "Recomendamos poner Bifrost Wallet en su pantalla de inicio para un acceso m\xe1s r\xe1pido.",\n "title": "Abra la aplicaci\xf3n Bifrost Wallet"\n },\n "step2": {\n "description": "Cree o importe una billetera usando su frase de recuperaci\xf3n.",\n "title": "Crear o Importar una Billetera"\n },\n "step3": {\n "description": "Despu\xe9s de escanear, aparecer\xe1 un aviso de conexi\xf3n para que conecte su billetera.",\n "title": "Toque el bot\xf3n de escaneo"\n }\n }\n },\n "bitget": {\n "qr_code": {\n "step1": {\n "description": "Recomendamos colocar Bitget Wallet en su pantalla de inicio para un acceso m\xe1s r\xe1pido.",\n "title": "Abra la aplicaci\xf3n Bitget Wallet"\n },\n "step2": {\n "description": "Aseg\xfarese de respaldar su billetera utilizando un m\xe9todo seguro. Nunca comparta su frase secreta con nadie.",\n "title": "Crear o Importar una Billetera"\n },\n "step3": {\n "description": "Despu\xe9s de escanear, aparecer\xe1 un aviso de conexi\xf3n para que pueda conectar su billetera.",\n "title": "Toque el bot\xf3n de escanear"\n }\n },\n "extension": {\n "step1": {\n "description": "Recomendamos anclar Bitget Wallet a su barra de tareas para un acceso m\xe1s r\xe1pido a su billetera.",\n "title": "Instale la extensi\xf3n de la Billetera Bitget"\n },\n "step2": {\n "description": "Aseg\xfarate de respaldar tu billetera utilizando un m\xe9todo seguro. Nunca compartas tu frase secreta con nadie.",\n "title": "Crear o Importar una Billetera"\n },\n "step3": {\n "description": "Una vez que configures tu billetera, haz clic a continuaci\xf3n para refrescar el navegador y cargar la extensi\xf3n.",\n "title": "Refrescar tu navegador"\n }\n }\n },\n "bitski": {\n "extension": {\n "step1": {\n "description": "Recomendamos anclar Bitski a tu barra de tareas para un acceso m\xe1s r\xe1pido a tu billetera.",\n "title": "Instala la extensi\xf3n Bitski"\n },\n "step2": {\n "description": "Aseg\xfarate de respaldar tu billetera utilizando un m\xe9todo seguro. Nunca compartas tu frase secreta con nadie.",\n "title": "Crear o Importar una Billetera"\n },\n "step3": {\n "description": "Una vez que configure su billetera, haga clic abajo para actualizar el navegador y cargar la extensi\xf3n.",\n "title": "Actualiza tu navegador"\n }\n }\n },\n "bitverse": {\n "qr_code": {\n "step1": {\n "title": "Abra la aplicaci\xf3n Bitverse Wallet",\n "description": "Agregue Bitverse Wallet a su pantalla de inicio para un acceso m\xe1s r\xe1pido a su billetera."\n },\n "step2": {\n "title": "Crear o Importar una Billetera",\n "description": "Crea una nueva billetera o importa una existente."\n },\n "step3": {\n "title": "Toque el icono de QR y escanee",\n "description": "Toca el icono QR en tu pantalla de inicio, escanea el c\xf3digo y confirma el prompt para conectar."\n }\n }\n },\n "bloom": {\n "desktop": {\n "step1": {\n "title": "Abra la aplicaci\xf3n Bloom Wallet",\n "description": "Recomendamos colocar Bloom Wallet en su pantalla de inicio para un acceso m\xe1s r\xe1pido."\n },\n "step2": {\n "description": "Cree o importe una billetera usando su frase de recuperaci\xf3n.",\n "title": "Crear o Importar una Billetera"\n },\n "step3": {\n "description": "Despu\xe9s de tener una billetera, haga clic en Conectar para conectarse a trav\xe9s de Bloom. Aparecer\xe1 un aviso de conexi\xf3n en la aplicaci\xf3n para que confirme la conexi\xf3n.",\n "title": "Haga clic en Conectar"\n }\n },\n "qr_code": {\n "step1": {\n "title": "Abra la aplicaci\xf3n Bloom Wallet",\n "description": "Recomendamos colocar Bloom Wallet en su pantalla de inicio para un acceso m\xe1s r\xe1pido."\n },\n "step2": {\n "description": "Cree o importe una billetera usando su frase de recuperaci\xf3n.",\n "title": "Crear o Importar una Billetera"\n },\n "step3": {\n "description": "Despu\xe9s de tener una billetera, haga clic en Conectar para conectarse a trav\xe9s de Bloom. Aparecer\xe1 un aviso de conexi\xf3n en la aplicaci\xf3n para que confirme la conexi\xf3n.",\n "title": "Haga clic en Conectar"\n }\n }\n },\n "bybit": {\n "qr_code": {\n "step1": {\n "description": "Recomendamos poner Bybit en su pantalla de inicio para un acceso m\xe1s r\xe1pido a su billetera.",\n "title": "Abra la aplicaci\xf3n Bybit"\n },\n "step2": {\n "description": "Puede respaldar f\xe1cilmente su billetera utilizando nuestra funci\xf3n de respaldo en su tel\xe9fono.",\n "title": "Crear o Importar una Billetera"\n },\n "step3": {\n "description": "Despu\xe9s de escanear, aparecer\xe1 un mensaje de conexi\xf3n para que conecte su billetera.",\n "title": "Toque el bot\xf3n de escaneo"\n }\n },\n "extension": {\n "step1": {\n "description": "Haga clic en la parte superior derecha de su navegador y ancle Bybit Wallet para un acceso f\xe1cil.",\n "title": "Instale la extensi\xf3n Bybit Wallet"\n },\n "step2": {\n "description": "Crea una nueva billetera o importa una existente.",\n "title": "Crear o Importar una billetera"\n },\n "step3": {\n "description": "Una vez que haya configurado Bybit Wallet, haga clic a continuaci\xf3n para actualizar el navegador y cargar la extensi\xf3n.",\n "title": "Refrescar tu navegador"\n }\n }\n },\n "coin98": {\n "qr_code": {\n "step1": {\n "description": "Recomendamos poner Coin98 Wallet en la pantalla de inicio para un acceso m\xe1s r\xe1pido a su billetera.",\n "title": "Abra la aplicaci\xf3n Coin98 Wallet"\n },\n "step2": {\n "description": "Puede respaldar f\xe1cilmente su billetera utilizando nuestra funci\xf3n de respaldo en su tel\xe9fono.",\n "title": "Crear o Importar una Billetera"\n },\n "step3": {\n "description": "Despu\xe9s de escanear, aparecer\xe1 un aviso de conexi\xf3n para que conecte su billetera.",\n "title": "Toque el bot\xf3n WalletConnect"\n }\n },\n "extension": {\n "step1": {\n "description": "Haga clic en la parte superior derecha de su navegador y fije Coin98 Wallet para un f\xe1cil acceso.",\n "title": "Instale la extensi\xf3n Coin98 Wallet"\n },\n "step2": {\n "description": "Crea una nueva billetera o importa una existente.",\n "title": "Crear o Importar una billetera"\n },\n "step3": {\n "description": "Una vez que configures Coin98 Wallet, haz clic a continuaci\xf3n para refrescar el navegador y cargar la extensi\xf3n.",\n "title": "Refresca tu navegador"\n }\n }\n },\n "coinbase": {\n "qr_code": {\n "step1": {\n "description": "Recomendamos poner Coinbase Wallet en tu pantalla de inicio para un acceso m\xe1s r\xe1pido.",\n "title": "Abre la aplicaci\xf3n de la Billetera Coinbase"\n },\n "step2": {\n "description": "Puedes respaldar tu billetera f\xe1cilmente utilizando la funci\xf3n de respaldo en la nube.",\n "title": "Crear o Importar una Billetera"\n },\n "step3": {\n "description": "Despu\xe9s de escanear, aparecer\xe1 un aviso de conexi\xf3n para que conectes tu billetera.",\n "title": "Pulsa el bot\xf3n de escanear"\n }\n },\n "extension": {\n "step1": {\n "description": "Te recomendamos anclar la Billetera Coinbase a tu barra de tareas para un acceso m\xe1s r\xe1pido a tu billetera.",\n "title": "Instala la extensi\xf3n de la Billetera Coinbase"\n },\n "step2": {\n "description": "Aseg\xfarate de respaldar tu billetera utilizando un m\xe9todo seguro. Nunca compartas tu frase secreta con nadie.",\n "title": "Crear o Importar una Billetera"\n },\n "step3": {\n "description": "Una vez que configure su billetera, haga clic abajo para refrescar el navegador y cargar la extensi\xf3n.",\n "title": "Refresca tu navegador"\n }\n }\n },\n "compass": {\n "extension": {\n "step1": {\n "description": "Recomendamos anclar la Billetera Compass a tu barra de tareas para un acceso m\xe1s r\xe1pido a tu billetera.",\n "title": "Instala la extensi\xf3n de la Billetera Compass"\n },\n "step2": {\n "description": "Aseg\xfarese de respaldar su billetera utilizando un m\xe9todo seguro. Nunca comparta su frase secreta con nadie.",\n "title": "Crear o Importar una Billetera"\n },\n "step3": {\n "description": "Una vez que configures tu billetera, haz clic a continuaci\xf3n para refrescar el navegador y cargar la extensi\xf3n.",\n "title": "Refrescar tu navegador"\n }\n }\n },\n "core": {\n "qr_code": {\n "step1": {\n "description": "Recomendamos poner Core en su pantalla de inicio para un acceso m\xe1s r\xe1pido a su billetera.",\n "title": "Abra la aplicaci\xf3n Core"\n },\n "step2": {\n "description": "Puedes respaldar f\xe1cilmente tu billetera utilizando nuestra funci\xf3n de respaldo en tu tel\xe9fono.",\n "title": "Crear o Importar una Billetera"\n },\n "step3": {\n "description": "Despu\xe9s de escanear, aparecer\xe1 un aviso de conexi\xf3n para que conectes tu billetera.",\n "title": "Toque el bot\xf3n WalletConnect"\n }\n },\n "extension": {\n "step1": {\n "description": "Recomendamos fijar Core a tu barra de tareas para acceder m\xe1s r\xe1pido a tu billetera.",\n "title": "Instala la extensi\xf3n Core"\n },\n "step2": {\n "description": "Aseg\xfarate de hacer una copia de seguridad de tu billetera utilizando un m\xe9todo seguro. Nunca compartas tu frase secreta con nadie.",\n "title": "Crear o Importar una Billetera"\n },\n "step3": {\n "description": "Una vez que configures tu billetera, haz clic a continuaci\xf3n para refrescar el navegador y cargar la extensi\xf3n.",\n "title": "Refresca tu navegador"\n }\n }\n },\n "fox": {\n "qr_code": {\n "step1": {\n "description": "Recomendamos poner FoxWallet en tu pantalla de inicio para un acceso m\xe1s r\xe1pido.",\n "title": "Abre la aplicaci\xf3n FoxWallet"\n },\n "step2": {\n "description": "Aseg\xfarate de respaldar tu billetera utilizando un m\xe9todo seguro. Nunca compartas tu frase secreta con nadie.",\n "title": "Crear o Importar una Billetera"\n },\n "step3": {\n "description": "Despu\xe9s de escanear, aparecer\xe1 una solicitud de conexi\xf3n para que conectes tu billetera.",\n "title": "Toca el bot\xf3n de escanear"\n }\n }\n },\n "frontier": {\n "qr_code": {\n "step1": {\n "description": "Recomendamos poner la Billetera Frontier en tu pantalla principal para un acceso m\xe1s r\xe1pido.",\n "title": "Abre la aplicaci\xf3n de la Billetera Frontier"\n },\n "step2": {\n "description": "Aseg\xfarate de respaldar tu billetera utilizando un m\xe9todo seguro. Nunca compartas tu frase secreta con nadie.",\n "title": "Crear o Importar una Billetera"\n },\n "step3": {\n "description": "Despu\xe9s de escanear, aparecer\xe1 un mensaje para que conectes tu billetera.",\n "title": "Haz clic en el bot\xf3n de escaneo"\n }\n },\n "extension": {\n "step1": {\n "description": "Recomendamos anclar la billetera Frontier a tu barra de tareas para un acceso m\xe1s r\xe1pido a tu billetera.",\n "title": "Instala la extensi\xf3n de la billetera Frontier"\n },\n "step2": {\n "description": "Aseg\xfarese de hacer una copia de seguridad de su billetera utilizando un m\xe9todo seguro. Nunca comparta su frase secreta con nadie.",\n "title": "Crear o Importar una Billetera"\n },\n "step3": {\n "description": "Una vez que configure su billetera, haga clic a continuaci\xf3n para actualizar el navegador y cargar la extensi\xf3n.",\n "title": "Actualizar tu navegador"\n }\n }\n },\n "im_token": {\n "qr_code": {\n "step1": {\n "title": "Abrir la aplicaci\xf3n imToken",\n "description": "Pon la aplicaci\xf3n imToken en tu pantalla de inicio para un acceso m\xe1s r\xe1pido a tu billetera."\n },\n "step2": {\n "title": "Crear o Importar una Billetera",\n "description": "Crea una nueva billetera o importa una existente."\n },\n "step3": {\n "title": "Toca el Icono del Esc\xe1ner en la esquina superior derecha",\n "description": "Elija Nueva Conexi\xf3n, luego escanee el c\xf3digo QR y confirme el aviso para conectar."\n }\n }\n },\n "kaikas": {\n "extension": {\n "step1": {\n "description": "Recomendamos anclar Kaikas a su barra de tareas para un acceso m\xe1s r\xe1pido a su billetera.",\n "title": "Instale la extensi\xf3n Kaikas"\n },\n "step2": {\n "description": "Aseg\xfarese de respaldar su billetera utilizando un m\xe9todo seguro. Nunca comparta su frase secreta con nadie.",\n "title": "Crear o Importar una Billetera"\n },\n "step3": {\n "description": "Una vez que configures tu billetera, haz clic a continuaci\xf3n para refrescar el navegador y cargar la extensi\xf3n.",\n "title": "Refrescar tu navegador"\n }\n },\n "qr_code": {\n "step1": {\n "title": "Abra la aplicaci\xf3n Kaikas",\n "description": "Ponga la aplicaci\xf3n Kaikas en su pantalla de inicio para un acceso m\xe1s r\xe1pido a su billetera."\n },\n "step2": {\n "title": "Crear o Importar una Billetera",\n "description": "Crea una nueva billetera o importa una existente."\n },\n "step3": {\n "title": "Toca el Icono del Esc\xe1ner en la esquina superior derecha",\n "description": "Elija Nueva Conexi\xf3n, luego escanee el c\xf3digo QR y confirme el aviso para conectar."\n }\n }\n },\n "kraken": {\n "qr_code": {\n "step1": {\n "title": "Abre la aplicaci\xf3n Kraken Wallet",\n "description": "Agrega la Billetera Kraken a tu pantalla de inicio para un acceso m\xe1s r\xe1pido a tu billetera."\n },\n "step2": {\n "title": "Crear o Importar una Billetera",\n "description": "Crea una nueva billetera o importa una existente."\n },\n "step3": {\n "title": "Toque el icono de QR y escanee",\n "description": "Toca el icono QR en tu pantalla de inicio, escanea el c\xf3digo y confirma el prompt para conectar."\n }\n }\n },\n "kresus": {\n "qr_code": {\n "step1": {\n "title": "Abra la aplicaci\xf3n Kresus Wallet",\n "description": "Agregue Kresus Wallet a su pantalla de inicio para un acceso m\xe1s r\xe1pido a su billetera."\n },\n "step2": {\n "title": "Crear o Importar una Billetera",\n "description": "Crea una nueva billetera o importa una existente."\n },\n "step3": {\n "title": "Toque el icono de QR y escanee",\n "description": "Toca el icono QR en tu pantalla de inicio, escanea el c\xf3digo y confirma el prompt para conectar."\n }\n }\n },\n "magicEden": {\n "extension": {\n "step1": {\n "title": "Instala la extensi\xf3n de Magic Eden",\n "description": "Recomendamos anclar Magic Eden a tu barra de tareas para acceder m\xe1s f\xe1cilmente a tu billetera."\n },\n "step2": {\n "title": "Crear o Importar una Billetera",\n "description": "Aseg\xfarese de respaldar su billetera usando un m\xe9todo seguro. Nunca comparta su frase secreta de recuperaci\xf3n con nadie."\n },\n "step3": {\n "title": "Refrescar tu navegador",\n "description": "Una vez que configures tu billetera, haz clic a continuaci\xf3n para refrescar el navegador y cargar la extensi\xf3n."\n }\n }\n },\n "metamask": {\n "qr_code": {\n "step1": {\n "title": "Abre la aplicaci\xf3n MetaMask",\n "description": "Recomendamos colocar MetaMask en tu pantalla de inicio para un acceso m\xe1s r\xe1pido."\n },\n "step2": {\n "title": "Crear o Importar una Billetera",\n "description": "Aseg\xfarate de respaldar tu billetera utilizando un m\xe9todo seguro. Nunca compartas tu frase secreta con nadie."\n },\n "step3": {\n "title": "Toca el bot\xf3n de escanear",\n "description": "Despu\xe9s de escanear, aparecer\xe1 un aviso de conexi\xf3n para que conectes tu billetera."\n }\n },\n "extension": {\n "step1": {\n "title": "Instala la extensi\xf3n MetaMask",\n "description": "Recomendamos anclar MetaMask a tu barra de tareas para un acceso m\xe1s r\xe1pido a tu billetera."\n },\n "step2": {\n "title": "Crear o Importar una Billetera",\n "description": "Aseg\xfarate de hacer una copia de seguridad de tu billetera usando un m\xe9todo seguro. Nunca compartas tu frase secreta con nadie."\n },\n "step3": {\n "title": "Refresca tu navegador",\n "description": "Una vez que configures tu billetera, haz clic abajo para refrescar el navegador y cargar la extensi\xf3n."\n }\n }\n },\n "okx": {\n "qr_code": {\n "step1": {\n "title": "Abre la aplicaci\xf3n OKX Wallet",\n "description": "Recomendamos colocar OKX Wallet en tu pantalla de inicio para un acceso m\xe1s r\xe1pido."\n },\n "step2": {\n "title": "Crear o Importar una Billetera",\n "description": "Aseg\xfarate de respaldar tu billetera usando un m\xe9todo seguro. Nunca compartas tu frase secreta con nadie."\n },\n "step3": {\n "title": "Toca el bot\xf3n de escanear",\n "description": "Despu\xe9s de escanear, aparecer\xe1 un aviso de conexi\xf3n para que conectes tu billetera."\n }\n },\n "extension": {\n "step1": {\n "title": "Instala la extensi\xf3n de Billetera OKX",\n "description": "Recomendamos anclar la Billetera OKX a tu barra de tareas para un acceso m\xe1s r\xe1pido a tu billetera."\n },\n "step2": {\n "title": "Crear o Importar una Billetera",\n "description": "Aseg\xfarate de respaldar tu billetera usando un m\xe9todo seguro. Nunca compartas tu frase secreta con nadie."\n },\n "step3": {\n "title": "Refresca tu navegador",\n "description": "Una vez que configure su billetera, haga clic abajo para actualizar el navegador y cargar la extensi\xf3n."\n }\n }\n },\n "omni": {\n "qr_code": {\n "step1": {\n "title": "Abra la aplicaci\xf3n Omni",\n "description": "Agregue Omni a su pantalla de inicio para un acceso m\xe1s r\xe1pido a su billetera."\n },\n "step2": {\n "title": "Crear o Importar una Billetera",\n "description": "Crear una nueva billetera o importar una existente."\n },\n "step3": {\n "title": "Toque el icono de QR y escanee",\n "description": "Toca el icono QR en tu pantalla principal, escanea el c\xf3digo y confirma el aviso para conectar."\n }\n }\n },\n "1inch": {\n "qr_code": {\n "step1": {\n "description": "Ponga 1inch Wallet en su pantalla de inicio para un acceso m\xe1s r\xe1pido a su billetera.",\n "title": "Abra la aplicaci\xf3n 1inch Wallet"\n },\n "step2": {\n "description": "Cree una billetera y un nombre de usuario, o importe una billetera existente.",\n "title": "Crear o Importar una Billetera"\n },\n "step3": {\n "description": "Despu\xe9s de escanear, aparecer\xe1 un mensaje de conexi\xf3n para que conecte su billetera.",\n "title": "Toque el bot\xf3n Escanear QR"\n }\n }\n },\n "token_pocket": {\n "qr_code": {\n "step1": {\n "title": "Abre la aplicaci\xf3n TokenPocket",\n "description": "Recomendamos colocar TokenPocket en tu pantalla principal para un acceso m\xe1s r\xe1pido."\n },\n "step2": {\n "title": "Crear o importar una Billetera",\n "description": "Aseg\xfarate de respaldar tu billetera utilizando un m\xe9todo seguro. Nunca compartas tu frase secreta con nadie."\n },\n "step3": {\n "title": "Toca el bot\xf3n de escaneo",\n "description": "Despu\xe9s de escanear, aparecer\xe1 una solicitud de conexi\xf3n para que puedas conectar tu billetera."\n }\n },\n "extension": {\n "step1": {\n "title": "Instala la extensi\xf3n TokenPocket",\n "description": "Recomendamos anclar TokenPocket a tu barra de tareas para un acceso m\xe1s r\xe1pido a tu billetera."\n },\n "step2": {\n "title": "Crear o Importar una Billetera",\n "description": "Aseg\xfarate de respaldar tu billetera utilizando un m\xe9todo seguro. Nunca compartas tu frase secreta con nadie."\n },\n "step3": {\n "title": "Actualiza tu navegador",\n "description": "Una vez que configures tu billetera, haz clic a continuaci\xf3n para actualizar el navegador y cargar la extensi\xf3n."\n }\n }\n },\n "trust": {\n "qr_code": {\n "step1": {\n "title": "Abre la aplicaci\xf3n Trust Wallet",\n "description": "Ubica Trust Wallet en tu pantalla de inicio para un acceso m\xe1s r\xe1pido a tu billetera."\n },\n "step2": {\n "title": "Crear o Importar una Billetera",\n "description": "Crea una nueva billetera o importa una existente."\n },\n "step3": {\n "title": "Toca WalletConnect en Configuraciones",\n "description": "Elige Nueva Conexi\xf3n, luego escanea el c\xf3digo QR y confirma el aviso para conectar."\n }\n },\n "extension": {\n "step1": {\n "title": "Instala la extensi\xf3n de Trust Wallet",\n "description": "Haz clic en la parte superior derecha de tu navegador y fija Trust Wallet para un f\xe1cil acceso."\n },\n "step2": {\n "title": "Crea o Importa una billetera",\n "description": "Crea una nueva billetera o importa una existente."\n },\n "step3": {\n "title": "Refresca tu navegador",\n "description": "Una vez que configures Trust Wallet, haz clic abajo para refrescar el navegador y cargar la extensi\xf3n."\n }\n }\n },\n "uniswap": {\n "qr_code": {\n "step1": {\n "title": "Abre la aplicaci\xf3n Uniswap",\n "description": "Agrega la billetera Uniswap a tu pantalla de inicio para un acceso m\xe1s r\xe1pido a tu billetera."\n },\n "step2": {\n "title": "Crear o Importar una Billetera",\n "description": "Crea una nueva billetera o importa una existente."\n },\n "step3": {\n "title": "Toca el icono QR y escanea",\n "description": "Toca el icono QR en tu pantalla de inicio, escanea el c\xf3digo y confirma el prompt para conectar."\n }\n }\n },\n "zerion": {\n "qr_code": {\n "step1": {\n "title": "Abre la aplicaci\xf3n Zerion",\n "description": "Recomendamos poner Zerion en tu pantalla de inicio para un acceso m\xe1s r\xe1pido."\n },\n "step2": {\n "title": "Crear o Importar una Billetera",\n "description": "Aseg\xfarate de hacer una copia de seguridad de tu billetera utilizando un m\xe9todo seguro. Nunca compartas tu frase secreta con nadie."\n },\n "step3": {\n "title": "Toca el bot\xf3n de escanear",\n "description": "Despu\xe9s de escanear, aparecer\xe1 un aviso de conexi\xf3n para que conectes tu billetera."\n }\n },\n "extension": {\n "step1": {\n "title": "Instala la extensi\xf3n Zerion",\n "description": "Recomendamos anclar Zerion a tu barra de tareas para un acceso m\xe1s r\xe1pido a tu billetera."\n },\n "step2": {\n "title": "Crear o Importar una Billetera",\n "description": "Aseg\xfarese de respaldar su billetera usando un m\xe9todo seguro. Nunca comparta su frase secreta con nadie."\n },\n "step3": {\n "title": "Actualiza tu navegador",\n "description": "Una vez que configures tu billetera, haz clic a continuaci\xf3n para actualizar el navegador y cargar la extensi\xf3n."\n }\n }\n },\n "rainbow": {\n "qr_code": {\n "step1": {\n "title": "Abre la aplicaci\xf3n Rainbow",\n "description": "Recomendamos poner Rainbow en tu pantalla de inicio para un acceso m\xe1s r\xe1pido a tu billetera."\n },\n "step2": {\n "title": "Crear o Importar una Billetera",\n "description": "Puedes respaldar f\xe1cilmente tu billetera usando nuestra funci\xf3n de respaldo en tu tel\xe9fono."\n },\n "step3": {\n "title": "Toca el bot\xf3n de escanear",\n "description": "Despu\xe9s de escanear, aparecer\xe1 una solicitud de conexi\xf3n para que conectes tu billetera."\n }\n }\n },\n "enkrypt": {\n "extension": {\n "step1": {\n "description": "Recomendamos anclar la Billetera Enkrypt a tu barra de tareas para un acceso m\xe1s r\xe1pido a tu billetera.",\n "title": "Instala la extensi\xf3n de Billetera Enkrypt"\n },\n "step2": {\n "description": "Aseg\xfarate de respaldar tu billetera utilizando un m\xe9todo seguro. Nunca compartas tu frase secreta con nadie.",\n "title": "Crear o Importar una Billetera"\n },\n "step3": {\n "description": "Una vez que configures tu billetera, haz clic abajo para refrescar el navegador y cargar la extensi\xf3n.",\n "title": "Refresca tu navegador"\n }\n }\n },\n "frame": {\n "extension": {\n "step1": {\n "description": "Recomendamos anclar Frame a tu barra de tareas para un acceso m\xe1s r\xe1pido a tu billetera.",\n "title": "Instala Frame y la extensi\xf3n complementaria"\n },\n "step2": {\n "description": "Aseg\xfarate de respaldar tu billetera utilizando un m\xe9todo seguro. Nunca compartas tu frase secreta con nadie.",\n "title": "Crear o Importar una Billetera"\n },\n "step3": {\n "description": "Una vez que configures tu billetera, haz clic a continuaci\xf3n para refrescar el navegador y cargar la extensi\xf3n.",\n "title": "Refresca tu navegador"\n }\n }\n },\n "one_key": {\n "extension": {\n "step1": {\n "title": "Instale la extensi\xf3n de Billetera OneKey",\n "description": "Recomendamos anclar la Billetera OneKey a tu barra de tareas para un acceso m\xe1s r\xe1pido a tu billetera."\n },\n "step2": {\n "title": "Crear o Importar una Billetera",\n "description": "Aseg\xfarese de respaldar su billetera usando un m\xe9todo seguro. Nunca comparta su frase secreta con nadie."\n },\n "step3": {\n "title": "Actualiza tu navegador",\n "description": "Una vez que configures tu billetera, haz clic a continuaci\xf3n para actualizar el navegador y cargar la extensi\xf3n."\n }\n }\n },\n "phantom": {\n "extension": {\n "step1": {\n "title": "Instala la extensi\xf3n Phantom",\n "description": "Recomendamos fijar Phantom a tu barra de tareas para un acceso m\xe1s f\xe1cil a tu billetera."\n },\n "step2": {\n "title": "Crear o Importar una Billetera",\n "description": "Aseg\xfarese de respaldar su billetera usando un m\xe9todo seguro. Nunca comparta su frase secreta de recuperaci\xf3n con nadie."\n },\n "step3": {\n "title": "Actualiza tu navegador",\n "description": "Una vez que configures tu billetera, haz clic abajo para refrescar el navegador y cargar la extensi\xf3n."\n }\n }\n },\n "rabby": {\n "extension": {\n "step1": {\n "title": "Instala la extensi\xf3n Rabby",\n "description": "Recomendamos anclar Rabby a tu barra de tareas para un acceso m\xe1s r\xe1pido a tu billetera."\n },\n "step2": {\n "title": "Crear o Importar una Billetera",\n "description": "Aseg\xfarate de hacer una copia de seguridad de tu billetera utilizando un m\xe9todo seguro. Nunca compartas tu frase secreta con nadie."\n },\n "step3": {\n "title": "Actualiza tu navegador",\n "description": "Una vez que configures tu billetera, haz clic abajo para actualizar el navegador y cargar la extensi\xf3n."\n }\n }\n },\n "ronin": {\n "qr_code": {\n "step1": {\n "description": "Recomendamos poner Ronin Wallet en su pantalla de inicio para un acceso m\xe1s r\xe1pido.",\n "title": "Abra la aplicaci\xf3n Ronin Wallet"\n },\n "step2": {\n "description": "Aseg\xfarese de respaldar su billetera utilizando un m\xe9todo seguro. Nunca comparta su frase secreta con nadie.",\n "title": "Crear o Importar una Billetera"\n },\n "step3": {\n "description": "Despu\xe9s de escanear, aparecer\xe1 un mensaje de conexi\xf3n para que conecte su billetera.",\n "title": "Toque el bot\xf3n de escaneo"\n }\n },\n "extension": {\n "step1": {\n "description": "Recomendamos anclar Ronin Wallet a su barra de tareas para un acceso m\xe1s r\xe1pido a su billetera.",\n "title": "Instale la extensi\xf3n Ronin Wallet"\n },\n "step2": {\n "description": "Aseg\xfarese de respaldar su billetera utilizando un m\xe9todo seguro. Nunca comparta su frase secreta con nadie.",\n "title": "Crear o Importar una Billetera"\n },\n "step3": {\n "description": "Una vez que configures tu billetera, haz clic a continuaci\xf3n para refrescar el navegador y cargar la extensi\xf3n.",\n "title": "Refrescar tu navegador"\n }\n }\n },\n "ramper": {\n "extension": {\n "step1": {\n "title": "Instale la extensi\xf3n Ramper",\n "description": "Recomendamos anclar Ramper a su barra de tareas para un acceso m\xe1s f\xe1cil a su billetera."\n },\n "step2": {\n "title": "Crea una Cartera",\n "description": "Aseg\xfarese de respaldar su billetera utilizando un m\xe9todo seguro. Nunca comparta su frase secreta con nadie."\n },\n "step3": {\n "title": "Refrescar tu navegador",\n "description": "Una vez que configures tu billetera, haz clic a continuaci\xf3n para refrescar el navegador y cargar la extensi\xf3n."\n }\n }\n },\n "safeheron": {\n "extension": {\n "step1": {\n "title": "Instala la extensi\xf3n Core",\n "description": "Recomendamos anclar Safeheron a tu barra de tareas para un acceso m\xe1s r\xe1pido a tu billetera."\n },\n "step2": {\n "title": "Crear o Importar una Billetera",\n "description": "Aseg\xfarate de respaldar tu billetera utilizando un m\xe9todo seguro. Nunca compartas tu frase secreta con nadie."\n },\n "step3": {\n "title": "Refresca tu navegador",\n "description": "Una vez que configures tu billetera, haz clic abajo para refrescar el navegador y cargar la extensi\xf3n."\n }\n }\n },\n "taho": {\n "extension": {\n "step1": {\n "title": "Instala la extensi\xf3n de Taho",\n "description": "Recomendamos anclar Taho a tu barra de tareas para un acceso m\xe1s r\xe1pido a tu billetera."\n },\n "step2": {\n "title": "Crea o Importa una Billetera",\n "description": "Aseg\xfarate de respaldar tu billetera utilizando un m\xe9todo seguro. Nunca compartas tu frase secreta con nadie."\n },\n "step3": {\n "title": "Refresca tu navegador",\n "description": "Una vez que configures tu billetera, haz clic abajo para refrescar el navegador y cargar la extensi\xf3n."\n }\n }\n },\n "talisman": {\n "extension": {\n "step1": {\n "title": "Instala la extensi\xf3n de Talisman",\n "description": "Recomendamos anclar Talisman a tu barra de tareas para un acceso m\xe1s r\xe1pido a tu billetera."\n },\n "step2": {\n "title": "Crea o importa una billetera Ethereum",\n "description": "Aseg\xfarate de respaldar tu billetera usando un m\xe9todo seguro. Nunca compartas tu frase de recuperaci\xf3n con nadie."\n },\n "step3": {\n "title": "Recarga tu navegador",\n "description": "Una vez que configures tu billetera, haz clic abajo para refrescar el navegador y cargar la extensi\xf3n."\n }\n }\n },\n "xdefi": {\n "extension": {\n "step1": {\n "title": "Instala la extensi\xf3n de la billetera XDEFI",\n "description": "Recomendamos anclar XDEFI Wallet a su barra de tareas para un acceso m\xe1s r\xe1pido a su billetera."\n },\n "step2": {\n "title": "Crear o Importar una Billetera",\n "description": "Aseg\xfarese de respaldar su billetera utilizando un m\xe9todo seguro. Nunca comparta su frase secreta con nadie."\n },\n "step3": {\n "title": "Actualice su navegador",\n "description": "Una vez que configure su billetera, haga clic abajo para actualizar el navegador y cargar la extensi\xf3n."\n }\n }\n },\n "zeal": {\n "extension": {\n "step1": {\n "title": "Instale la extensi\xf3n Zeal",\n "description": "Recomendamos anclar Zeal a su barra de tareas para un acceso m\xe1s r\xe1pido a su billetera."\n },\n "step2": {\n "title": "Crear o Importar una Billetera",\n "description": "Aseg\xfarese de respaldar su billetera utilizando un m\xe9todo seguro. Nunca comparta su frase secreta con nadie."\n },\n "step3": {\n "title": "Refrescar tu navegador",\n "description": "Una vez que configures tu billetera, haz clic a continuaci\xf3n para refrescar el navegador y cargar la extensi\xf3n."\n }\n }\n },\n "safepal": {\n "extension": {\n "step1": {\n "title": "Instale la extensi\xf3n de la billetera SafePal",\n "description": "Haga clic en la esquina superior derecha de su navegador y ancle SafePal Wallet para un f\xe1cil acceso."\n },\n "step2": {\n "title": "Crear o Importar una billetera",\n "description": "Crea una nueva billetera o importa una existente."\n },\n "step3": {\n "title": "Refrescar tu navegador",\n "description": "Una vez que configure la Billetera SafePal, haga clic abajo para refrescar el navegador y cargar la extensi\xf3n."\n }\n },\n "qr_code": {\n "step1": {\n "title": "Abra la aplicaci\xf3n Billetera SafePal",\n "description": "Coloque la Billetera SafePal en su pantalla de inicio para un acceso m\xe1s r\xe1pido a su billetera."\n },\n "step2": {\n "title": "Crear o Importar una Billetera",\n "description": "Crea una nueva billetera o importa una existente."\n },\n "step3": {\n "title": "Toca WalletConnect en Configuraciones",\n "description": "Elija Nueva Conexi\xf3n, luego escanee el c\xf3digo QR y confirme el aviso para conectar."\n }\n }\n },\n "desig": {\n "extension": {\n "step1": {\n "title": "Instala la extensi\xf3n Desig",\n "description": "Recomendamos anclar Desig a tu barra de tareas para acceder m\xe1s f\xe1cilmente a tu cartera."\n },\n "step2": {\n "title": "Crea una Cartera",\n "description": "Aseg\xfarese de respaldar su billetera utilizando un m\xe9todo seguro. Nunca comparta su frase secreta con nadie."\n },\n "step3": {\n "title": "Refrescar tu navegador",\n "description": "Una vez que configures tu billetera, haz clic a continuaci\xf3n para refrescar el navegador y cargar la extensi\xf3n."\n }\n }\n },\n "subwallet": {\n "extension": {\n "step1": {\n "title": "Instala la extensi\xf3n SubWallet",\n "description": "Recomendamos anclar SubWallet a tu barra de tareas para acceder a tu cartera m\xe1s r\xe1pidamente."\n },\n "step2": {\n "title": "Crear o Importar una Billetera",\n "description": "Aseg\xfarate de respaldar tu billetera usando un m\xe9todo seguro. Nunca compartas tu frase de recuperaci\xf3n con nadie."\n },\n "step3": {\n "title": "Refrescar tu navegador",\n "description": "Una vez que configures tu billetera, haz clic a continuaci\xf3n para refrescar el navegador y cargar la extensi\xf3n."\n }\n },\n "qr_code": {\n "step1": {\n "title": "Abre la aplicaci\xf3n SubWallet",\n "description": "Recomendamos colocar SubWallet en tu pantalla principal para un acceso m\xe1s r\xe1pido."\n },\n "step2": {\n "title": "Crear o Importar una Billetera",\n "description": "Aseg\xfarese de respaldar su billetera utilizando un m\xe9todo seguro. Nunca comparta su frase secreta con nadie."\n },\n "step3": {\n "title": "Toque el bot\xf3n de escaneo",\n "description": "Despu\xe9s de escanear, aparecer\xe1 un mensaje de conexi\xf3n para que conecte su billetera."\n }\n }\n },\n "clv": {\n "extension": {\n "step1": {\n "title": "Instala la extensi\xf3n CLV Wallet",\n "description": "Recomendamos anclar la billetera CLV a tu barra de tareas para un acceso m\xe1s r\xe1pido a tu billetera."\n },\n "step2": {\n "title": "Crear o Importar una Billetera",\n "description": "Aseg\xfarese de respaldar su billetera utilizando un m\xe9todo seguro. Nunca comparta su frase secreta con nadie."\n },\n "step3": {\n "title": "Refrescar tu navegador",\n "description": "Una vez que configures tu billetera, haz clic a continuaci\xf3n para refrescar el navegador y cargar la extensi\xf3n."\n }\n },\n "qr_code": {\n "step1": {\n "title": "Abra la aplicaci\xf3n CLV Wallet",\n "description": "Recomendamos colocar la billetera CLV en tu pantalla de inicio para un acceso m\xe1s r\xe1pido."\n },\n "step2": {\n "title": "Crear o Importar una Billetera",\n "description": "Aseg\xfarese de respaldar su billetera utilizando un m\xe9todo seguro. Nunca comparta su frase secreta con nadie."\n },\n "step3": {\n "title": "Toque el bot\xf3n de escaneo",\n "description": "Despu\xe9s de escanear, aparecer\xe1 un mensaje de conexi\xf3n para que conecte su billetera."\n }\n }\n },\n "okto": {\n "qr_code": {\n "step1": {\n "title": "Abra la aplicaci\xf3n Okto",\n "description": "Agrega Okto a tu pantalla de inicio para un acceso r\xe1pido"\n },\n "step2": {\n "title": "Crea una billetera MPC",\n "description": "Crea una cuenta y genera una billetera"\n },\n "step3": {\n "title": "Toca WalletConnect en Configuraciones",\n "description": "Toca el icono de Escanear QR en la parte superior derecha y confirma el mensaje para conectar."\n }\n }\n },\n "ledger": {\n "desktop": {\n "step1": {\n "title": "Abra la aplicaci\xf3n Ledger Live",\n "description": "Recomendamos poner Ledger Live en su pantalla de inicio para un acceso m\xe1s r\xe1pido."\n },\n "step2": {\n "title": "Configure su Ledger",\n "description": "Configure un nuevo Ledger o con\xe9ctese a uno existente."\n },\n "step3": {\n "title": "Conectar",\n "description": "Despu\xe9s de escanear, aparecer\xe1 un aviso de conexi\xf3n para que conectes tu billetera."\n }\n },\n "qr_code": {\n "step1": {\n "title": "Abra la aplicaci\xf3n Ledger Live",\n "description": "Recomendamos poner Ledger Live en su pantalla de inicio para un acceso m\xe1s r\xe1pido."\n },\n "step2": {\n "title": "Configure su Ledger",\n "description": "Puedes sincronizar con la aplicaci\xf3n de escritorio o conectar tu Ledger."\n },\n "step3": {\n "title": "Escanea el c\xf3digo",\n "description": "Toca WalletConnect y luego cambia a Scanner. Despu\xe9s de escanear, aparecer\xe1 un aviso de conexi\xf3n para que conectes tu billetera."\n }\n }\n }\n }\n}\n'}}]); \ No newline at end of file diff --git a/_next/static/chunks/8128-85b1b9ef3dbba538.js b/_next/static/chunks/8128-85b1b9ef3dbba538.js new file mode 100644 index 0000000..4144189 --- /dev/null +++ b/_next/static/chunks/8128-85b1b9ef3dbba538.js @@ -0,0 +1,1323 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8128],{86997:function(e,n,i){"use strict";function vanilla_extract_private_esm_getVarName(e){var n=e.match(/^var\((.*)\)$/);return n?n[1]:e}function vanilla_extract_private_esm_get(e,n){var i=e;for(var o of n){if(!(o in i))throw Error("Path ".concat(n.join(" -> ")," does not exist in object"));i=i[o]}return i}function vanilla_extract_private_esm_walkObject(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o={};for(var s in e){var c=e[s],u=[...i,s];"string"==typeof c||"number"==typeof c||null==c?o[s]=n(c,u):"object"!=typeof c||Array.isArray(c)?console.warn('Skipping invalid key "'.concat(u.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(c)?"Array":typeof c,'"')):o[s]=vanilla_extract_private_esm_walkObject(c,n,u)}return o}function assignInlineVars(e,n){var i={};if("object"==typeof n)vanilla_extract_private_esm_walkObject(n,(n,o)=>{null!=n&&(i[vanilla_extract_private_esm_getVarName(vanilla_extract_private_esm_get(e,o))]=String(n))});else for(var o in e){var s=e[o];null!=s&&(i[vanilla_extract_private_esm_getVarName(o)]=s)}return Object.defineProperty(i,"toString",{value:function(){return Object.keys(this).map(e=>"".concat(e,":").concat(this[e])).join(";")},writable:!1}),i}i.d(n,{L:function(){return assignInlineVars}})},81950:function(e,n,i){"use strict";function _toPrimitive(e,n){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var o=i.call(e,n||"default");if("object"!=typeof o)return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}function _toPropertyKey(e){var n=_toPrimitive(e,"string");return"symbol"==typeof n?n:String(n)}function _defineProperty(e,n,i){return(n=_toPropertyKey(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function ownKeys(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),i.push.apply(i,o)}return i}function _objectSpread2(e){for(var n=1;nfunction(){for(var n=arguments.length,i=Array(n),o=0;oe.styles)),c=Object.keys(s),u=c.filter(e=>"mappings"in s[e]);return Object.assign(n=>{var i=[],o={},c=_objectSpread2({},n),l=!1;for(var d of u){var f=n[d];if(null!=f)for(var m of(l=!0,s[d].mappings))o[m]=f,null==c[m]&&delete c[m]}var g=l?_objectSpread2(_objectSpread2({},o),c):n;for(var b in g)if("continue"===function(){var e=g[b],n=s[b];try{if(n.mappings)return"continue";if("string"==typeof e||"number"==typeof e)i.push(n.values[e].defaultClass);else if(Array.isArray(e))for(var o=0;oe,createSprinkles=function(){return createSprinkles_c8550e00_esm_createSprinkles(composeStyles)(...arguments)}},49561:function(e,n,i){"use strict";i.d(n,{d:function(){return createMapValueFn},M:function(){return createNormalizeValueFn}});var addRecipe=function(e,n){return Object.defineProperty(e,"__recipe__",{value:n,writable:!1}),e};function createNormalizeValueFn(e){var{conditions:n}=e;if(!n)throw Error("Styles have no conditions");return addRecipe(function(e){if("string"==typeof e||"number"==typeof e||"boolean"==typeof e){if(!n.defaultCondition)throw Error("No default condition");return{[n.defaultCondition]:e}}if(Array.isArray(e)){if(!("responsiveArray"in n))throw Error("Responsive arrays are not supported");var i={};for(var o in n.responsiveArray)null!=e[o]&&(i[n.responsiveArray[o]]=e[o]);return i}return e},{importPath:"@vanilla-extract/sprinkles/createUtils",importName:"createNormalizeValueFn",args:[{conditions:e.conditions}]})}function createMapValueFn(e){var{conditions:n}=e;if(!n)throw Error("Styles have no conditions");var i=createNormalizeValueFn(e);return addRecipe(function(e,o){if("string"==typeof e||"number"==typeof e||"boolean"==typeof e){if(!n.defaultCondition)throw Error("No default condition");return o(e,n.defaultCondition)}var s=Array.isArray(e)?i(e):e,c={};for(var u in s)null!=s[u]&&(c[u]=o(s[u],u));return c},{importPath:"@vanilla-extract/sprinkles/createUtils",importName:"createMapValueFn",args:[{conditions:e.conditions}]})}},13526:function(e){"use strict";var n={single_source_shortest_paths:function(e,i,o){var s,c,u,l,d,f,m,g={},b={};b[i]=0;var y=n.PriorityQueue.make();for(y.push(i,0);!y.empty();)for(u in c=(s=y.pop()).value,l=s.cost,d=e[c]||{})d.hasOwnProperty(u)&&(f=l+d[u],m=b[u],(void 0===b[u]||m>f)&&(b[u]=f,y.push(u,f),g[u]=c));if(void 0!==o&&void 0===b[o])throw Error(["Could not find a path from ",i," to ",o,"."].join(""));return g},extract_shortest_path_from_predecessor_list:function(e,n){for(var i=[],o=n;o;)i.push(o),e[o],o=e[o];return i.reverse(),i},find_path:function(e,i,o){var s=n.single_source_shortest_paths(e,i,o);return n.extract_shortest_path_from_predecessor_list(s,o)},PriorityQueue:{make:function(e){var i,o=n.PriorityQueue,s={};for(i in e=e||{},o)o.hasOwnProperty(i)&&(s[i]=o[i]);return s.queue=[],s.sorter=e.sorter||o.default_sorter,s},default_sorter:function(e,n){return e.cost-n.cost},push:function(e,n){this.queue.push({value:e,cost:n}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=n},62981:function(e){"use strict";e.exports=function(e){for(var n=[],i=e.length,o=0;o=55296&&s<=56319&&i>o+1){var c=e.charCodeAt(o+1);c>=56320&&c<=57343&&(s=(s-55296)*1024+c-56320+65536,o+=1)}if(s<128){n.push(s);continue}if(s<2048){n.push(s>>6|192),n.push(63&s|128);continue}if(s<55296||s>=57344&&s<65536){n.push(s>>12|224),n.push(s>>6&63|128),n.push(63&s|128);continue}if(s>=65536&&s<=1114111){n.push(s>>18|240),n.push(s>>12&63|128),n.push(s>>6&63|128),n.push(63&s|128);continue}n.push(239,191,189)}return new Uint8Array(n).buffer}},71100:function(e){"use strict";var n=Object.prototype.hasOwnProperty,i="~";function Events(){}function EE(e,n,i){this.fn=e,this.context=n,this.once=i||!1}function addListener(e,n,o,s,c){if("function"!=typeof o)throw TypeError("The listener must be a function");var u=new EE(o,s||e,c),l=i?i+n:n;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],u]:e._events[l].push(u):(e._events[l]=u,e._eventsCount++),e}function clearEvent(e,n){0==--e._eventsCount?e._events=new Events:delete e._events[n]}function EventEmitter(){this._events=new Events,this._eventsCount=0}Object.create&&(Events.prototype=Object.create(null),new Events().__proto__||(i=!1)),EventEmitter.prototype.eventNames=function(){var e,o,s=[];if(0===this._eventsCount)return s;for(o in e=this._events)n.call(e,o)&&s.push(i?o.slice(1):o);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(e)):s},EventEmitter.prototype.listeners=function(e){var n=i?i+e:e,o=this._events[n];if(!o)return[];if(o.fn)return[o.fn];for(var s=0,c=o.length,u=Array(c);s1)for(var i=1;i>>7-e%8&1)==1},put:function(e,n){for(let i=0;i>>n-i-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){let n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),e&&(this.buffer[n]|=128>>>this.length%8),this.length++}},e.exports=BitBuffer},54813:function(e){function BitMatrix(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)}BitMatrix.prototype.set=function(e,n,i,o){let s=e*this.size+n;this.data[s]=i,o&&(this.reservedBit[s]=!0)},BitMatrix.prototype.get=function(e,n){return this.data[e*this.size+n]},BitMatrix.prototype.xor=function(e,n,i){this.data[e*this.size+n]^=i},BitMatrix.prototype.isReserved=function(e,n){return this.reservedBit[e*this.size+n]},e.exports=BitMatrix},75112:function(e,n,i){let o=i(62981),s=i(20608);function ByteData(e){this.mode=s.BYTE,"string"==typeof e&&(e=o(e)),this.data=new Uint8Array(e)}ByteData.getBitsLength=function(e){return 8*e},ByteData.prototype.getLength=function(){return this.data.length},ByteData.prototype.getBitsLength=function(){return ByteData.getBitsLength(this.data.length)},ByteData.prototype.write=function(e){for(let n=0,i=this.data.length;n=0&&e.bit<4},n.from=function(e,i){if(n.isValid(e))return e;try{return fromString(e)}catch(e){return i}}},2379:function(e,n,i){let o=i(49210).getSymbolSize;n.getPositions=function(e){let n=o(e);return[[0,0],[n-7,0],[0,n-7]]}},88566:function(e,n,i){let o=i(49210),s=o.getBCHDigit(1335);n.getEncodedBits=function(e,n){let i=e.bit<<3|n,c=i<<10;for(;o.getBCHDigit(c)-s>=0;)c^=1335<=33088&&i<=40956)i-=33088;else if(i>=57408&&i<=60351)i-=49472;else throw Error("Invalid SJIS character: "+this.data[n]+"\nMake sure your charset is UTF-8");i=(i>>>8&255)*192+(255&i),e.put(i,13)}},e.exports=KanjiData},61760:function(e,n){n.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};let i={N1:3,N2:3,N3:40,N4:10};function getMaskAt(e,i,o){switch(e){case n.Patterns.PATTERN000:return(i+o)%2==0;case n.Patterns.PATTERN001:return i%2==0;case n.Patterns.PATTERN010:return o%3==0;case n.Patterns.PATTERN011:return(i+o)%3==0;case n.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(o/3))%2==0;case n.Patterns.PATTERN101:return i*o%2+i*o%3==0;case n.Patterns.PATTERN110:return(i*o%2+i*o%3)%2==0;case n.Patterns.PATTERN111:return(i*o%3+(i+o)%2)%2==0;default:throw Error("bad maskPattern:"+e)}}n.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},n.from=function(e){return n.isValid(e)?parseInt(e,10):void 0},n.getPenaltyN1=function(e){let n=e.size,o=0,s=0,c=0,u=null,l=null;for(let d=0;d=5&&(o+=i.N1+(s-5)),u=n,s=1),(n=e.get(f,d))===l?c++:(c>=5&&(o+=i.N1+(c-5)),l=n,c=1)}s>=5&&(o+=i.N1+(s-5)),c>=5&&(o+=i.N1+(c-5))}return o},n.getPenaltyN2=function(e){let n=e.size,o=0;for(let i=0;i=10&&(1488===s||93===s)&&o++,c=c<<1&2047|e.get(u,i),u>=10&&(1488===c||93===c)&&o++}return o*i.N3},n.getPenaltyN4=function(e){let n=0,o=e.data.length;for(let i=0;i=1&&n<10?e.ccBits[0]:n<27?e.ccBits[1]:e.ccBits[2]},n.getBestModeForData=function(e){return s.testNumeric(e)?n.NUMERIC:s.testAlphanumeric(e)?n.ALPHANUMERIC:s.testKanji(e)?n.KANJI:n.BYTE},n.toString=function(e){if(e&&e.id)return e.id;throw Error("Invalid mode")},n.isValid=function(e){return e&&e.bit&&e.ccBits},n.from=function(e,i){if(n.isValid(e))return e;try{return fromString(e)}catch(e){return i}}},98163:function(e,n,i){let o=i(20608);function NumericData(e){this.mode=o.NUMERIC,this.data=e.toString()}NumericData.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},NumericData.prototype.getLength=function(){return this.data.length},NumericData.prototype.getBitsLength=function(){return NumericData.getBitsLength(this.data.length)},NumericData.prototype.write=function(e){let n,i;for(n=0;n+3<=this.data.length;n+=3)i=parseInt(this.data.substr(n,3),10),e.put(i,10);let o=this.data.length-n;o>0&&(i=parseInt(this.data.substr(n),10),e.put(i,3*o+1))},e.exports=NumericData},60466:function(e,n,i){let o=i(88201);n.mul=function(e,n){let i=new Uint8Array(e.length+n.length-1);for(let s=0;s=0;){let e=i[0];for(let s=0;s=0&&n<=6&&(0===o||6===o)||o>=0&&o<=6&&(0===n||6===n)||n>=2&&n<=4&&o>=2&&o<=4?e.set(s+n,c+o,!0,!0):e.set(s+n,c+o,!1,!0))}}function setupTimingPattern(e){let n=e.size;for(let i=8;i>n&1)==1,e.set(i,o,s,!0),e.set(o,i,s,!0)}function setupFormatInfo(e,n,i){let o,s;let c=e.size,u=y.getEncodedBits(n,i);for(o=0;o<15;o++)s=(u>>o&1)==1,o<6?e.set(o,8,s,!0):o<8?e.set(o+1,8,s,!0):e.set(c-15+o,8,s,!0),o<8?e.set(8,c-o-1,s,!0):o<9?e.set(8,15-o-1+1,s,!0):e.set(8,15-o-1,s,!0);e.set(c-8,8,1,!0)}function setupData(e,n){let i=e.size,o=-1,s=i-1,c=7,u=0;for(let l=i-1;l>0;l-=2)for(6===l&&l--;;){for(let i=0;i<2;i++)if(!e.isReserved(s,l-i)){let o=!1;u>>c&1)==1),e.set(s,l-i,o),-1==--c&&(u++,c=7)}if((s+=o)<0||i<=s){s-=o,o=-o;break}}}function createData(e,n,i){let s=new c;i.forEach(function(n){s.put(n.mode.bit,4),s.put(n.getLength(),w.getCharCountIndicator(n.mode,e)),n.write(s)});let u=o.getSymbolTotalCodewords(e),l=m.getTotalCodewordsCount(e,n),d=(u-l)*8;for(s.getLengthInBits()+4<=d&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(0);let f=(d-s.getLengthInBits())/8;for(let e=0;e=7&&setupVersionInfo(g,n),setupData(g,d),isNaN(s)&&(s=f.getBestMask(g,setupFormatInfo.bind(null,g,i))),f.applyMask(s,g),setupFormatInfo(g,i,s),{modules:g,version:n,errorCorrectionLevel:i,maskPattern:s,segments:c}}n.create=function(e,n){let i,c;if(void 0===e||""===e)throw Error("No input text");let u=s.M;return void 0!==n&&(u=s.from(n.errorCorrectionLevel,s.M),i=b.from(n.version),c=f.from(n.maskPattern),n.toSJISFunc&&o.setToSJISFunction(n.toSJISFunc)),createSymbol(e,i,u,c)}},14196:function(e,n,i){let o=i(60466);function ReedSolomonEncoder(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}ReedSolomonEncoder.prototype.initialize=function(e){this.degree=e,this.genPoly=o.generateECPolynomial(this.degree)},ReedSolomonEncoder.prototype.encode=function(e){if(!this.genPoly)throw Error("Encoder not initialized");let n=new Uint8Array(e.length+this.degree);n.set(e);let i=o.mod(n,this.genPoly),s=this.degree-i.length;if(s>0){let e=new Uint8Array(this.degree);return e.set(i,s),e}return i},e.exports=ReedSolomonEncoder},80347:function(e,n){let i="[0-9]+",o="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";o=o.replace(/u/g,"\\u");let s="(?:(?![A-Z0-9 $%*+\\-./:]|"+o+")(?:.|[\r\n]))+";n.KANJI=RegExp(o,"g"),n.BYTE_KANJI=RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),n.BYTE=RegExp(s,"g"),n.NUMERIC=RegExp(i,"g"),n.ALPHANUMERIC=RegExp("[A-Z $%*+\\-./:]+","g");let c=RegExp("^"+o+"$"),u=RegExp("^"+i+"$"),l=RegExp("^[A-Z0-9 $%*+\\-./:]+$");n.testKanji=function(e){return c.test(e)},n.testNumeric=function(e){return u.test(e)},n.testAlphanumeric=function(e){return l.test(e)}},22844:function(e,n,i){let o=i(20608),s=i(98163),c=i(60051),u=i(75112),l=i(26250),d=i(80347),f=i(49210),m=i(13526);function getStringByteLength(e){return unescape(encodeURIComponent(e)).length}function getSegments(e,n,i){let o;let s=[];for(;null!==(o=e.exec(i));)s.push({data:o[0],index:o.index,mode:n,length:o[0].length});return s}function getSegmentsFromString(e){let n,i;let s=getSegments(d.NUMERIC,o.NUMERIC,e),c=getSegments(d.ALPHANUMERIC,o.ALPHANUMERIC,e);f.isKanjiModeEnabled()?(n=getSegments(d.BYTE,o.BYTE,e),i=getSegments(d.KANJI,o.KANJI,e)):(n=getSegments(d.BYTE_KANJI,o.BYTE,e),i=[]);let u=s.concat(c,n,i);return u.sort(function(e,n){return e.index-n.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function getSegmentBitsLength(e,n){switch(n){case o.NUMERIC:return s.getBitsLength(e);case o.ALPHANUMERIC:return c.getBitsLength(e);case o.KANJI:return l.getBitsLength(e);case o.BYTE:return u.getBitsLength(e)}}function mergeSegments(e){return e.reduce(function(e,n){let i=e.length-1>=0?e[e.length-1]:null;return i&&i.mode===n.mode?e[e.length-1].data+=n.data:e.push(n),e},[])}function buildNodes(e){let n=[];for(let i=0;i40)throw Error('"version" should be in range from 1 to 40');return 4*e+17},n.getSymbolTotalCodewords=function(e){return o[e]},n.getBCHDigit=function(e){let n=0;for(;0!==e;)n++,e>>>=1;return n},n.setToSJISFunction=function(e){if("function"!=typeof e)throw Error('"toSJISFunc" is not a valid function.');i=e},n.isKanjiModeEnabled=function(){return void 0!==i},n.toSJIS=function(e){return i(e)}},80789:function(e,n){n.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},87667:function(e,n,i){let o=i(49210),s=i(58045),c=i(6084),u=i(20608),l=i(80789),d=o.getBCHDigit(7973);function getBestVersionForDataLength(e,i,o){for(let s=1;s<=40;s++)if(i<=n.getCapacity(s,o,e))return s}function getReservedBitsCount(e,n){return u.getCharCountIndicator(e,n)+4}function getTotalBitsFromDataArray(e,n){let i=0;return e.forEach(function(e){let o=getReservedBitsCount(e.mode,n);i+=o+e.getBitsLength()}),i}function getBestVersionForMixedData(e,i){for(let o=1;o<=40;o++){let s=getTotalBitsFromDataArray(e,o);if(s<=n.getCapacity(o,i,u.MIXED))return o}}n.from=function(e,n){return l.isValid(e)?parseInt(e,10):n},n.getCapacity=function(e,n,i){if(!l.isValid(e))throw Error("Invalid QR Code version");void 0===i&&(i=u.BYTE);let c=o.getSymbolTotalCodewords(e),d=s.getTotalCodewordsCount(e,n),f=(c-d)*8;if(i===u.MIXED)return f;let m=f-getReservedBitsCount(i,e);switch(i){case u.NUMERIC:return Math.floor(m/10*3);case u.ALPHANUMERIC:return Math.floor(m/11*2);case u.KANJI:return Math.floor(m/13);case u.BYTE:default:return Math.floor(m/8)}},n.getBestVersionForData=function(e,n){let i;let o=c.from(n,c.M);if(Array.isArray(e)){if(e.length>1)return getBestVersionForMixedData(e,o);if(0===e.length)return 1;i=e[0]}else i=e;return getBestVersionForDataLength(i.mode,i.getLength(),o)},n.getEncodedBits=function(e){if(!l.isValid(e)||e<7)throw Error("Invalid QR Code version");let n=e<<12;for(;o.getBCHDigit(n)-d>=0;)n^=7973<0&&d>0&&e[l-1]||(o+=c?svgCmd("M",d+i,.5+f+i):svgCmd("m",s,0),s=0,c=!1),d+1':"",f="',m=s.width?'width="'+s.width+'" height="'+s.width+'" ':"",g=''+d+f+"\n";return"function"==typeof i&&i(null,g),g}},86957:function(e,n){function hex2rgba(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw Error("Color should be defined as hex string");let n=e.slice().replace("#","").split("");if(n.length<3||5===n.length||n.length>8)throw Error("Invalid hex color: "+e);(3===n.length||4===n.length)&&(n=Array.prototype.concat.apply([],n.map(function(e){return[e,e]}))),6===n.length&&n.push("F","F");let i=parseInt(n.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:255&i,hex:"#"+n.slice(0,6).join("")}}n.getOptions=function(e){e||(e={}),e.color||(e.color={});let n=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,i=e.width&&e.width>=21?e.width:void 0,o=e.scale||4;return{width:i,scale:i?4:o,margin:n,color:{dark:hex2rgba(e.color.dark||"#000000ff"),light:hex2rgba(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},n.getScale=function(e,n){return n.width&&n.width>=e+2*n.margin?n.width/(e+2*n.margin):n.scale},n.getImageWidth=function(e,i){let o=n.getScale(e,i);return Math.floor((e+2*i.margin)*o)},n.qrToImageData=function(e,i,o){let s=i.modules.size,c=i.modules.data,u=n.getScale(s,o),l=Math.floor((s+2*o.margin)*u),d=o.margin*u,f=[o.color.light,o.color.dark];for(let n=0;n=d&&i>=d&&n