@dcl/governance-site 2.5.2-35861583677.commit-9185f43 → 2.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. package/assets/{ConstantsUtil-0186a343.js → ConstantsUtil-12e6a2bb.js} +1 -1
  2. package/assets/{ExchangeController-58cfc61e.js → ExchangeController-643262b5.js} +1 -1
  3. package/assets/{HelpersUtil-026d751f.js → HelpersUtil-60cf4b9e.js} +1 -1
  4. package/assets/{NetworkUtil-9d775636.js → NetworkUtil-d5c36eeb.js} +1 -1
  5. package/assets/{ReownAuthentication-e9d543a6.js → ReownAuthentication-8d2a56b7.js} +1 -1
  6. package/assets/{SwapController-1e7ac90d.js → SwapController-ec94aefd.js} +1 -1
  7. package/assets/{UserAvatar-9b8de83c.js → UserAvatar-c4c6f1af.js} +1 -1
  8. package/assets/{W3MFrameProviderSingleton-967a5251.js → W3MFrameProviderSingleton-9b881e0b.js} +2 -2
  9. package/assets/{basic-8129beff.js → basic-b66b1534.js} +1 -1
  10. package/assets/{biconomy-341f7abf.js → biconomy-0bb59ab2.js} +1 -1
  11. package/assets/{ccip-9be4c874.js → ccip-85e3e3c5.js} +1 -1
  12. package/assets/{ccip-522e35c5.js → ccip-efee88f7.js} +1 -1
  13. package/assets/{chains-3d11688e.js → chains-cf69a777.js} +1 -1
  14. package/assets/{common-ac3a84bf.js → common-e0cac0df.js} +1 -1
  15. package/assets/{compat-80bca490.js → compat-71a66acb.js} +1 -1
  16. package/assets/{controller-06b1d4a6.js → controller-d86046db.js} +1 -1
  17. package/assets/{core-701e3000.js → core-45974d7a.js} +3 -3
  18. package/assets/{custom-05656959.js → custom-9004b4b3.js} +1 -1
  19. package/assets/{data-capture-4c4bff8c.js → data-capture-12e9d85a.js} +1 -1
  20. package/assets/decimals-6ffbc32f.js +1 -0
  21. package/assets/{decimals-7a8f2808.js → decimals-cfa355bc.js} +1 -1
  22. package/assets/{email-83340241.js → email-c6d69083.js} +1 -1
  23. package/assets/{embedded-wallet-5f601961.js → embedded-wallet-e5d118f6.js} +1 -1
  24. package/assets/{engine-a3c58826.js → engine-07d8f645.js} +1 -1
  25. package/assets/{estimate-l1-fee-e22e70df.js → estimate-l1-fee-d17c1e08.js} +1 -1
  26. package/assets/eth_estimateGas-7f2877bc.js +1 -0
  27. package/assets/{eth_getStorageAt-fece51db.js → eth_getStorageAt-92c86335.js} +1 -1
  28. package/assets/{eth_getTransactionCount-b3bc696d.js → eth_getTransactionCount-a363592d.js} +1 -1
  29. package/assets/{ethereum-dfcdc726.js → ethereum-9003ce91.js} +1 -1
  30. package/assets/{execute-ddc9aba5.js → execute-58117325.js} +1 -1
  31. package/assets/{extractIPFS-f2fa1c0d.js → extractIPFS-740d3942.js} +1 -1
  32. package/assets/features-69728e49.js +1 -0
  33. package/assets/{fetchTokenMetadata-9aa0579f.js → fetchTokenMetadata-50021bbb.js} +1 -1
  34. package/assets/{fortmatic-b2c3dfe2.js → fortmatic-85e0786b.js} +1 -1
  35. package/assets/{get-bytecode-3e525016.js → get-bytecode-5ffd5a72.js} +1 -1
  36. package/assets/{get-ecosystem-wallet-info-af73bf8f.js → get-ecosystem-wallet-info-672852ad.js} +1 -1
  37. package/assets/{getBalance-5553b762.js → getBalance-e83e74ec.js} +1 -1
  38. package/assets/{getInstalledModules-8c794f3f.js → getInstalledModules-47eae60a.js} +1 -1
  39. package/assets/{getNFT-e357df62.js → getNFT-3987f97e.js} +1 -1
  40. package/assets/{getNFT-e012001d.js → getNFT-c7d33df9.js} +1 -1
  41. package/assets/{hashBytecode-f2cbe7cf.js → hashBytecode-c065a35e.js} +1 -1
  42. package/assets/{hashTypedData-6c569030.js → hashTypedData-dc94f2c7.js} +1 -1
  43. package/assets/{hashTypedData-80d0736a.js → hashTypedData-e7e64650.js} +1 -1
  44. package/assets/{in-app-98ae0a96.js → in-app-453bb1f7.js} +1 -1
  45. package/assets/{in-app-wallet-calls-6bbf9789.js → in-app-wallet-calls-fe46398d.js} +1 -1
  46. package/assets/{index-ff52fd4e.js → index-08f04cbb.js} +1 -1
  47. package/assets/{index-2fd9095a.js → index-129b97d3.js} +1 -1
  48. package/assets/{index-1a84fe52.js → index-15e7c060.js} +151 -151
  49. package/assets/{index-9294dcd7.js → index-167070de.js} +1 -1
  50. package/assets/{index-27604e48.js → index-1d95ad58.js} +1 -1
  51. package/assets/{index-758bf1f0.js → index-20eef359.js} +1 -1
  52. package/assets/{index-edac5298.js → index-21f59c3f.js} +1 -1
  53. package/assets/{index-46384ac4.js → index-2202337a.js} +1 -1
  54. package/assets/{index-63c89e55.js → index-2460308b.js} +1 -1
  55. package/assets/{index-6780e2be.js → index-24fb56f5.js} +1 -1
  56. package/assets/{index-85bdd658.js → index-29539a2f.js} +1 -1
  57. package/assets/{index-5ad2a852.js → index-2d514245.js} +1 -1
  58. package/assets/{index-8b08acb1.js → index-2dd055de.js} +1 -1
  59. package/assets/{index-b881deee.js → index-2e37f177.js} +2 -2
  60. package/assets/{index-979a21b1.js → index-370aa60e.js} +1 -1
  61. package/assets/{index-a46e95e9.js → index-3c52de53.js} +1 -1
  62. package/assets/{index-59fc9a5d.js → index-402b8316.js} +1 -1
  63. package/assets/index-44be3484.js +1 -0
  64. package/assets/{index-9d6a41bc.js → index-47361cd5.js} +1 -1
  65. package/assets/{index-83245c25.js → index-5a8bf9c4.js} +1 -1
  66. package/assets/{index-45e821a2.js → index-5dbf4239.js} +1 -1
  67. package/assets/{index-3b0c0492.js → index-5fbb2d75.js} +2 -2
  68. package/assets/{index-25b31062.js → index-77d93504.js} +1 -1
  69. package/assets/{index-c4b46d38.js → index-791b12a4.js} +1 -1
  70. package/assets/{index-82528685.js → index-7c1be638.js} +1 -1
  71. package/assets/{index-2151fb57.js → index-7d1f63bd.js} +2 -2
  72. package/assets/{index-b93c6430.js → index-7e28f2fc.js} +1 -1
  73. package/assets/{index-0388e212.js → index-80b80a71.js} +1 -1
  74. package/assets/{index-9a10118e.js → index-839c5c5b.js} +1 -1
  75. package/assets/{index-7a6898a2.js → index-87dbd00f.js} +1 -1
  76. package/assets/{index-258eaeba.js → index-891172e6.js} +1 -1
  77. package/assets/{index-19c63dfb.css → index-90155201.css} +4 -4
  78. package/assets/{index-164d622a.js → index-9a760eac.js} +1 -1
  79. package/assets/{index-e706d2dd.js → index-9afa2668.js} +1 -1
  80. package/assets/{index-319df612.js → index-9ea16346.js} +1 -1
  81. package/assets/{index-9dbf9a6d.js → index-a18b560c.js} +1 -1
  82. package/assets/{index-08f74686.js → index-a4248efb.js} +1 -1
  83. package/assets/{index-88a218ce.js → index-a7767ea3.js} +1 -1
  84. package/assets/{index-9b3e03a6.js → index-b13ed1ec.js} +1 -1
  85. package/assets/{index-fabddcdf.js → index-b45c09a9.js} +1 -1
  86. package/assets/{index-1f941621.js → index-b527c799.js} +1 -1
  87. package/assets/{index-49378015.js → index-b5e215b8.js} +1 -1
  88. package/assets/{index-56215787.js → index-b7d53192.js} +1 -1
  89. package/assets/{index-38eb3ccf.js → index-cb3fe6e9.js} +1 -1
  90. package/assets/{index-dd7935fc.js → index-d244ca51.js} +1 -1
  91. package/assets/{index-c9395bda.js → index-d354e1f9.js} +1 -1
  92. package/assets/{index-2dea5e5e.js → index-dee9ac04.js} +1 -1
  93. package/assets/{index-8bdaeaf2.js → index-e3af3031.js} +1 -1
  94. package/assets/{index-745ac19e.js → index-efba757a.js} +1 -1
  95. package/assets/{index-1ebd6ac9.js → index-f4cdc276.js} +1 -1
  96. package/assets/{index-d410c519.js → index-f7c2590b.js} +1 -1
  97. package/assets/{index-e4a08cd9.js → index-fab41ca4.js} +2 -2
  98. package/assets/{index-e7a5e177.js → index-fae262e7.js} +1 -1
  99. package/assets/{index-dbe55de2.js → index-fe062be4.js} +1 -1
  100. package/assets/{index-1735c2dc.js → index-fed92dcc.js} +1 -1
  101. package/assets/{index.es-f33fd942.js → index.es-5aa0d50a.js} +1 -1
  102. package/assets/{index.es-a3dba62d.js → index.es-6593e9d5.js} +3 -3
  103. package/assets/{index.es-d75c71a0.js → index.es-85f63de0.js} +1 -1
  104. package/assets/{index.web-480572c8.js → index.web-306a1027.js} +1 -1
  105. package/assets/{localBatchGatewayRequest-efd5ac4a.js → localBatchGatewayRequest-411c128f.js} +1 -1
  106. package/assets/{native-a05bab03.js → native-85cf9a70.js} +1 -1
  107. package/assets/{networks-2b2a76a9.js → networks-d2845e09.js} +1 -1
  108. package/assets/{onramp-19c3d49b.js → onramp-6646db1a.js} +1 -1
  109. package/assets/{openzeppelin-b027e042.js → openzeppelin-e8349b33.js} +1 -1
  110. package/assets/{ownerOf-aaa7f15d.js → ownerOf-55136d5e.js} +1 -1
  111. package/assets/parseNft-31c4f39c.js +1 -0
  112. package/assets/{parseSignature-2a8160cd.js → parseSignature-1d6d054b.js} +1 -1
  113. package/assets/{parseSignature-993a1f6b.js → parseSignature-8b0103cc.js} +2 -2
  114. package/assets/{passkeys-5985ac24.js → passkeys-0719af8c.js} +1 -1
  115. package/assets/{pay-with-exchange-be950970.js → pay-with-exchange-af95dfc0.js} +1 -1
  116. package/assets/{prepare-contract-call-8aa69ada.js → prepare-contract-call-748ecde9.js} +1 -1
  117. package/assets/{qr-overlay-af51f28c.js → qr-overlay-4801bc9d.js} +1 -1
  118. package/assets/{receive-0381a78f.js → receive-5ab7d62d.js} +1 -1
  119. package/assets/{redirect-state-defbbf42.js → redirect-state-a1320f05.js} +1 -1
  120. package/assets/{resolveImplementation-62075124.js → resolveImplementation-cb0539a0.js} +1 -1
  121. package/assets/{rpc-238b416b.js → rpc-36c563fa.js} +1 -1
  122. package/assets/{secp256k1-cda45740.js → secp256k1-37b9d4e3.js} +1 -1
  123. package/assets/{secp256k1-1b67b0f3.js → secp256k1-9629690b.js} +1 -1
  124. package/assets/{secp256k1-52a3953d.js → secp256k1-bf3da7d0.js} +1 -1
  125. package/assets/{send-batch-transaction-37dfd3aa.js → send-batch-transaction-81e57581.js} +1 -1
  126. package/assets/{send-1d9bf8b0.js → send-d53f43c7.js} +1 -1
  127. package/assets/{send-eip712-transaction-549d9c5e.js → send-eip712-transaction-a47e922f.js} +1 -1
  128. package/assets/send-gasless-transaction-435a0b52.js +1 -0
  129. package/assets/{send-transaction-be048c3f.js → send-transaction-67c3dee6.js} +1 -1
  130. package/assets/{session-proposal-bf723dfb.js → session-proposal-cd3e7992.js} +1 -1
  131. package/assets/{session-request-adcff7df.js → session-request-17a40140.js} +1 -1
  132. package/assets/{sha256-20325278.js → sha256-d43d53f9.js} +1 -1
  133. package/assets/{signing-3a53acbe.js → signing-0d32a553.js} +2 -2
  134. package/assets/{socials-f7529d78.js → socials-751977bb.js} +1 -1
  135. package/assets/{swaps-17bc96cf.js → swaps-15e8e094.js} +1 -1
  136. package/assets/{thirdweb-88164bcf.js → thirdweb-a73505fb.js} +2 -2
  137. package/assets/{to-serializable-transaction-b9665f26.js → to-serializable-transaction-bad67be2.js} +2 -2
  138. package/assets/{totalSupply-1da49819.js → totalSupply-bf737476.js} +1 -1
  139. package/assets/{transaction-c89d76c9.js → transaction-989e6649.js} +1 -1
  140. package/assets/{transactionReceipt-e9fe9529.js → transactionReceipt-d7930fcc.js} +1 -1
  141. package/assets/{transactions-6a2c06c6.js → transactions-5afca2c4.js} +1 -1
  142. package/assets/{tslib.es6-627b8828.js → tslib.es6-97e67337.js} +1 -1
  143. package/assets/{utils-b0786619.js → utils-fbfba7d2.js} +1 -1
  144. package/assets/{verifyHash-1c30e3f1.js → verifyHash-19e485a9.js} +1 -1
  145. package/assets/{w3m-modal-35482de7.js → w3m-modal-3cd9b482.js} +1 -1
  146. package/assets/{w3m-modal-c7ed658d.js → w3m-modal-fef63841.js} +1 -1
  147. package/assets/{wait-for-tx-receipt-997fc5db.js → wait-for-tx-receipt-4debdf1f.js} +1 -1
  148. package/assets/{wallets-608f085e.js → wallets-8232c84e.js} +4 -4
  149. package/assets/{web-connector-44f067c5.js → web-connector-11892b55.js} +2 -2
  150. package/assets/{writeContract-8e997358.js → writeContract-1a4ef85b.js} +2 -2
  151. package/assets/{zora-sepolia-da0294c7.js → zora-sepolia-c6b21858.js} +1 -1
  152. package/assets/{zoraTestnet-83f44c9a.js → zoraTestnet-9fee657d.js} +1 -1
  153. package/index.html +4 -4
  154. package/package.json +2 -2
  155. package/assets/decimals-ae1efeb6.js +0 -1
  156. package/assets/eth_estimateGas-4bda2940.js +0 -1
  157. package/assets/features-e6abfb3d.js +0 -1
  158. package/assets/index-2158aa04.js +0 -1
  159. package/assets/parseNft-50788d83.js +0 -1
  160. package/assets/send-gasless-transaction-2889f57e.js +0 -1
@@ -1,2 +1,2 @@
1
- import{Y as Ie,k as J,v as W,A as x,C as k,d as Me,i as ye,J as We,O as D,Z as Le,o as H,p as qe,a as $e,c as ne,_ as xe,$ as X,a0 as j,F as De,V as Y,a1 as Q,H as be,a2 as He}from"./W3MFrameProviderSingleton-967a5251.js";import{C as S,N as ge}from"./NetworkUtil-9d775636.js";import{a8 as Fe,U as _,l as de,k as B,n as re}from"./createBatchScheduler-7c9ada66.js";import{a1 as Be,a0 as q,be as Ve,bf as ze,bg as Ge,c as Ke,bh as Je,bi as Xe}from"./writeContract-8e997358.js";import"./index-83245c25.js";import{_ as we}from"./index-1a84fe52.js";import{w as Te,a as Ye,f as Qe}from"./http-a4cf4808.js";import{e as Ze}from"./index-00639714.js";import{c as et}from"./store-af6293b2.js";import{a as Pe,c as tt,g as nt,s as it,w as st,b as ot,d as rt,p as ct}from"./custom-05656959.js";function U(o,e,t){const n=o[e.name];if(typeof n=="function")return n;const s=o[t];return typeof s=="function"?s:i=>e(o,i)}const ie="3.6.4",at=()=>`@wagmi/core@${ie}`;var ke=globalThis&&globalThis.__classPrivateFieldGet||function(o,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?o!==e||!n:!e.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(o):n?n.value:e.get(o)},ce,Re;class O extends Error{get docsBaseUrl(){return"https://wagmi.sh/core"}get version(){return at()}constructor(e,t={}){var i;super(),ce.add(this),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:"WagmiCoreError"});const n=t.cause instanceof O?t.cause.details:(i=t.cause)!=null&&i.message?t.cause.message:t.details,s=t.cause instanceof O&&t.cause.docsPath||t.docsPath;this.message=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...s?[`Docs: ${this.docsBaseUrl}${s}.html${t.docsSlug?`#${t.docsSlug}`:""}`]:[],...n?[`Details: ${n}`]:[],`Version: ${this.version}`].join(`
2
- `),t.cause&&(this.cause=t.cause),this.details=n,this.docsPath=s,this.metaMessages=t.metaMessages,this.shortMessage=e}walk(e){return ke(this,ce,"m",Re).call(this,this,e)}}ce=new WeakSet,Re=function o(e,t){return t!=null&&t(e)?e:e.cause?ke(this,ce,"m",o).call(this,e.cause,t):e};class V extends O{constructor(){super("Chain not configured."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotConfiguredError"})}}class dt extends O{constructor(){super("Connector already connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAlreadyConnectedError"})}}class ut extends O{constructor(){super("Connector not connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorNotConnectedError"})}}class lt extends O{constructor({address:e,connector:t}){super(`Account "${e}" not found for connector "${t.name}".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAccountNotFoundError"})}}class ht extends O{constructor({connectionChainId:e,connectorChainId:t}){super(`The current chain of the connector (id: ${t}) does not match the connection's chain (id: ${e}).`,{metaMessages:[`Current Chain ID: ${t}`,`Expected Chain ID: ${e}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorChainMismatchError"})}}class ft extends O{constructor({connector:e}){super(`Connector "${e.name}" unavailable while reconnecting.`,{details:["During the reconnection step, the only connector methods guaranteed to be available are: `id`, `name`, `type`, `uid`.","All other methods are not guaranteed to be available until reconnection completes and connectors are fully restored.","This error commonly occurs for connectors that asynchronously inject after reconnection has already started."].join(" ")}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorUnavailableReconnectingError"})}}async function ue(o,e){var n;let t;if(typeof e.connector=="function"?t=o._internal.connectors.setup(e.connector):t=e.connector,t.uid===o.state.current)throw new dt;try{o.setState(c=>({...c,status:"connecting"})),t.emitter.emit("message",{type:"connecting"});const{connector:s,...i}=e,d=await t.connect(i);return t.emitter.off("connect",o._internal.events.connect),t.emitter.on("change",o._internal.events.change),t.emitter.on("disconnect",o._internal.events.disconnect),await((n=o.storage)==null?void 0:n.setItem("recentConnectorId",t.id)),o.setState(c=>({...c,connections:new Map(c.connections).set(t.uid,{accounts:i.withCapabilities?d.accounts.map(u=>typeof u=="object"?u.address:u):d.accounts,chainId:d.chainId,connector:t}),current:t.uid,status:"connected"})),{accounts:i.withCapabilities?d.accounts.map(c=>typeof c=="object"?c:{address:c,capabilities:{}}):d.accounts,chainId:d.chainId}}catch(s){throw o.setState(i=>({...i,status:i.current?"connected":"disconnected"})),s}}async function G(o,e={}){const{assertChainId:t=!0}=e;let n;if(e.connector){const{connector:r}=e;if(o.state.status==="reconnecting"&&!r.getAccounts&&!r.getChainId)throw new ft({connector:r});const[l,g]=await Promise.all([r.getAccounts().catch(f=>{if(e.account===null)return[];throw f}),r.getChainId()]);n={accounts:l,chainId:g,connector:r}}else n=o.state.connections.get(o.state.current);if(!n)throw new ut;const s=e.chainId??n.chainId,i=await n.connector.getChainId();if(t&&i!==s)throw new ht({connectionChainId:s,connectorChainId:i});const d=n.connector;if(d.getClient)return d.getClient({chainId:s});const c=Be(e.account??n.accounts[0]);if(c&&(c.address=q(c.address)),e.account&&!n.accounts.some(r=>r.toLowerCase()===c.address.toLowerCase()))throw new lt({address:c.address,connector:d});const u=o.chains.find(r=>r.id===s),a=await n.connector.getProvider({chainId:s});return Pe({account:c,chain:u,name:"Connector Client",transport:r=>tt(a)({...r,retryCount:0})})}async function ve(o,e={}){var s,i;let t;if(e.connector)t=e.connector;else{const{connections:d,current:c}=o.state,u=d.get(c);t=u==null?void 0:u.connector}const n=o.state.connections;t&&(await t.disconnect(),t.emitter.off("change",o._internal.events.change),t.emitter.off("disconnect",o._internal.events.disconnect),t.emitter.on("connect",o._internal.events.connect),n.delete(t.uid)),o.setState(d=>{if(n.size===0)return{...d,connections:new Map,current:null,status:"disconnected"};const c=n.values().next().value;return{...d,connections:new Map(n),current:c.connector.uid}});{const d=o.state.current;if(!d)return;const c=(s=o.state.connections.get(d))==null?void 0:s.connector;if(!c)return;await((i=o.storage)==null?void 0:i.setItem("recentConnectorId",c.id))}}async function gt(o,e){const{chainId:t,connector:n,...s}=e;let i;e.account?i=e.account:i=(await G(o,{account:e.account,assertChainId:!1,chainId:t,connector:n})).account;const d=o.getClient({chainId:t});return U(d,Ve,"estimateGas")({...s,account:i})}async function mt(o,e){const{address:t,blockNumber:n,blockTag:s,chainId:i}=e,d=o.getClient({chainId:i}),u=await U(d,nt,"getBalance")(n!==void 0?{address:t,blockNumber:n}:{address:t,blockTag:s}),a=o.chains.find(r=>r.id===i)??d.chain;return{decimals:a.nativeCurrency.decimals,symbol:a.nativeCurrency.symbol,value:u}}function z(o,e){if(o===e)return!0;if(o&&e&&typeof o=="object"&&typeof e=="object"){if(o.constructor!==e.constructor)return!1;let t,n;if(Array.isArray(o)&&Array.isArray(e)){if(t=o.length,t!==e.length)return!1;for(n=t;n--!==0;)if(!z(o[n],e[n]))return!1;return!0}if(typeof o.valueOf=="function"&&o.valueOf!==Object.prototype.valueOf)return o.valueOf()===e.valueOf();if(typeof o.toString=="function"&&o.toString!==Object.prototype.toString)return o.toString()===e.toString();const s=Object.keys(o);if(t=s.length,t!==Object.keys(e).length)return!1;for(n=t;n--!==0;)if(!Object.hasOwn(e,s[n]))return!1;for(n=t;n--!==0;){const i=s[n];if(i&&!z(o[i],e[i]))return!1}return!0}return o!==o&&e!==e}function se(o){const e=o.state.current,t=o.state.connections.get(e),n=t==null?void 0:t.accounts,s=n==null?void 0:n[0],i=o.chains.find(c=>c.id===(t==null?void 0:t.chainId)),d=o.state.status;switch(d){case"connected":return{address:s,addresses:n,chain:i,chainId:t==null?void 0:t.chainId,connector:t==null?void 0:t.connector,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:d};case"reconnecting":return{address:s,addresses:n,chain:i,chainId:t==null?void 0:t.chainId,connector:t==null?void 0:t.connector,isConnected:!!s,isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:d};case"connecting":return{address:s,addresses:n,chain:i,chainId:t==null?void 0:t.chainId,connector:t==null?void 0:t.connector,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:d};case"disconnected":return{address:void 0,addresses:void 0,chain:void 0,chainId:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:d}}}let Z=[];function M(o){const e=[...o.state.connections.values()];return o.state.status==="reconnecting"||z(Z,e)?Z:(Z=e,e)}async function Ct(o,e){const{account:t,chainId:n,connector:s,...i}=e;let d;return typeof t=="object"&&(t==null?void 0:t.type)==="local"?d=o.getClient({chainId:n}):d=await G(o,{account:t??void 0,assertChainId:!1,chainId:n,connector:s}),U(d,ze,"prepareTransactionRequest")({...i,...t?{account:t}:{}})}let le=!1;async function he(o,e={}){var a,r;if(le)return[];le=!0,o.setState(l=>({...l,status:l.current?"reconnecting":"connecting"}));const t=[];if((a=e.connectors)!=null&&a.length)for(const l of e.connectors){let g;typeof l=="function"?g=o._internal.connectors.setup(l):g=l,t.push(g)}else t.push(...o.connectors);let n;try{n=await((r=o.storage)==null?void 0:r.getItem("recentConnectorId"))}catch{}const s={};for(const[,l]of o.state.connections)s[l.connector.id]=1;n&&(s[n]=0);const i=Object.keys(s).length>0?[...t].sort((l,g)=>(s[l.id]??10)-(s[g.id]??10)):t;let d=!1;const c=[],u=[];for(const l of i){const g=await l.getProvider().catch(()=>{});if(!g||u.some(m=>m===g)||!await l.isAuthorized())continue;const p=await l.connect({isReconnecting:!0}).catch(()=>null);p&&(l.emitter.off("connect",o._internal.events.connect),l.emitter.on("change",o._internal.events.change),l.emitter.on("disconnect",o._internal.events.disconnect),o.setState(m=>{const I=new Map(d?m.connections:new Map).set(l.uid,{accounts:p.accounts,chainId:p.chainId,connector:l});return{...m,current:d?m.current:l.uid,connections:I}}),c.push({accounts:p.accounts,chainId:p.chainId,connector:l}),u.push(g),d=!0)}return(o.state.status==="reconnecting"||o.state.status==="connecting")&&(d?o.setState(l=>({...l,status:"connected"})):o.setState(l=>({...l,connections:new Map,current:null,status:"disconnected"}))),le=!1,c}async function wt(o,e){const{account:t,chainId:n,connector:s,...i}=e;let d;typeof t=="object"&&(t==null?void 0:t.type)==="local"?d=o.getClient({chainId:n}):d=await G(o,{account:t??void 0,assertChainId:!1,chainId:n,connector:s});const c=(()=>{var r;return!n||((r=d.chain)==null?void 0:r.id)===n?d.chain:{id:n}})();return await U(d,Ge,"sendTransaction")({...i,...t?{account:t}:{},assertChainId:!!n,chain:c,gas:i.gas??void 0})}async function pt(o,e){const{account:t,connector:n,...s}=e;let i;return typeof t=="object"&&t.type==="local"?i=o.getClient():i=await G(o,{account:t,connector:n}),U(i,it,"signMessage")({...s,...t?{account:t}:{}})}class L extends O{constructor(){super("Provider not found."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderNotFoundError"})}}class It extends O{constructor({connector:e}){super(`"${e.name}" does not support programmatic chain switching.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainNotSupportedError"})}}async function Ae(o,e){var d;const{addEthereumChainParameter:t,chainId:n}=e,s=o.state.connections.get(((d=e.connector)==null?void 0:d.uid)??o.state.current);if(s){const c=s.connector;if(!c.switchChain)throw new It({connector:c});return await c.switchChain({addEthereumChainParameter:t,chainId:n})}const i=o.chains.find(c=>c.id===n);if(!i)throw new V;return o.setState(c=>({...c,chainId:n})),i}async function yt(o,e){const{chainId:t,timeout:n=0,...s}=e,i=o.getClient({chainId:t}),c=await U(i,st,"waitForTransactionReceipt")({...s,timeout:n});if(c.status==="reverted")throw await Te(async()=>{const u=U(i,ot,"getTransaction"),{from:a,...r}=await u({hash:c.transactionHash}),g=await U(i,Ke,"call")({...r,account:a,data:r.input,gasPrice:r.type!=="eip1559"?r.gasPrice:void 0,maxFeePerGas:r.type==="eip1559"?r.maxFeePerGas:void 0,maxPriorityFeePerGas:r.type==="eip1559"?r.maxPriorityFeePerGas:void 0}),f=g!=null&&g.data?Fe(`0x${g.data.substring(138)}`):"unknown reason";return new Error(f)},{timeout:n>0?Math.min(n,1e4):1e4,errorInstance:new Error("unknown reason")});return{...c,chainId:i.chain.id}}function bt(o,e){const{onChange:t}=e;return o.subscribe(()=>se(o),t,{equalityFn(n,s){const{connector:i,...d}=n,{connector:c,...u}=s;return z(d,u)&&(i==null?void 0:i.id)===(c==null?void 0:c.id)&&(i==null?void 0:i.uid)===(c==null?void 0:c.uid)}})}function vt(o,e){const{onChange:t}=e;return o.subscribe(()=>M(o),t,{equalityFn:z})}function At(o,e){const{onChange:t}=e;return o._internal.connectors.subscribe((n,s)=>{t(Object.values(n),s)})}function Nt(o,e){const{syncConnectedChain:t=o._internal.syncConnectedChain,...n}=e;let s;const i=u=>{s&&s();const a=o.getClient({chainId:u});return s=U(a,rt,"watchPendingTransactions")(n),s},d=i(e.chainId);let c;return t&&!e.chainId&&(c=o.subscribe(({chainId:u})=>u,async u=>i(u))),()=>{d==null||d(),c==null||c()}}async function Et(o,e){const{account:t,chainId:n,connector:s,...i}=e;let d;typeof t=="object"&&(t==null?void 0:t.type)==="local"?d=o.getClient({chainId:n}):d=await G(o,{account:t??void 0,assertChainId:!1,chainId:n,connector:s});const c=(()=>{var r;return!n||((r=d.chain)==null?void 0:r.id)===n?d.chain:{id:n}})();return await U(d,Je,"writeContract")({...i,...t?{account:t}:{},assertChainId:!!n,chain:c})}function sn(o){return o}ae.type="injected";function ae(o={}){const{shimDisconnect:e=!0,unstable_shimAsyncInject:t}=o;function n(){const u=o.target;if(typeof u=="function"){const a=u();if(a)return a}return typeof u=="object"?u:typeof u=="string"?{...St[u]??{id:u,name:`${u[0].toUpperCase()}${u.slice(1)}`,provider:`is${u[0].toUpperCase()}${u.slice(1)}`}}:{id:"injected",name:"Injected",provider(a){return a==null?void 0:a.ethereum}}}let s,i,d,c;return u=>({get icon(){return n().icon},get id(){return n().id},get name(){return n().name},type:ae.type,async setup(){const a=await this.getProvider();a!=null&&a.on&&o.target&&(d||(d=this.onConnect.bind(this),a.on("connect",d)),s||(s=this.onAccountsChanged.bind(this),a.on("accountsChanged",s)))},async connect({chainId:a,isReconnecting:r,withCapabilities:l}={}){var p,m,I,v,y,E;const g=await this.getProvider();if(!g)throw new L;let f=[];if(r)f=await this.getAccounts().catch(()=>[]);else if(e)try{f=(v=(I=(m=(p=(await g.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]}))[0])==null?void 0:p.caveats)==null?void 0:m[0])==null?void 0:I.value)==null?void 0:v.map(h=>q(h)),f.length>0&&(f=await this.getAccounts())}catch(N){const h=N;if(h.code===_.code)throw new _(h);if(h.code===de.code)throw h}try{!(f!=null&&f.length)&&!r&&(f=(await g.request({method:"eth_requestAccounts"})).map(C=>q(C))),d&&(g.removeListener("connect",d),d=void 0),s||(s=this.onAccountsChanged.bind(this),g.on("accountsChanged",s)),i||(i=this.onChainChanged.bind(this),g.on("chainChanged",i)),c||(c=this.onDisconnect.bind(this),g.on("disconnect",c));let N=await this.getChainId();if(a&&N!==a){const h=await this.switchChain({chainId:a}).catch(C=>{if(C.code===_.code)throw C;return{id:N}});N=(h==null?void 0:h.id)??N}return e&&await((y=u.storage)==null?void 0:y.removeItem(`${this.id}.disconnected`)),o.target||await((E=u.storage)==null?void 0:E.setItem("injected.connected",!0)),{accounts:l?f.map(h=>({address:h,capabilities:{}})):f,chainId:N}}catch(N){const h=N;throw h.code===_.code?new _(h):h.code===de.code?new de(h):h}},async disconnect(){var r,l;const a=await this.getProvider();if(!a)throw new L;i&&(a.removeListener("chainChanged",i),i=void 0),c&&(a.removeListener("disconnect",c),c=void 0),d||(d=this.onConnect.bind(this),a.on("connect",d));try{await Te(()=>a.request({method:"wallet_revokePermissions",params:[{eth_accounts:{}}]}),{timeout:100})}catch{}e&&await((r=u.storage)==null?void 0:r.setItem(`${this.id}.disconnected`,!0)),o.target||await((l=u.storage)==null?void 0:l.removeItem("injected.connected"))},async getAccounts(){const a=await this.getProvider();if(!a)throw new L;return(await a.request({method:"eth_accounts"})).map(l=>q(l))},async getChainId(){const a=await this.getProvider();if(!a)throw new L;const r=await a.request({method:"eth_chainId"});return Number(r)},async getProvider(){if(typeof window>"u")return;let a;const r=n();return typeof r.provider=="function"?a=r.provider(window):typeof r.provider=="string"?a=oe(window,r.provider):a=r.provider,a&&!a.removeListener&&("off"in a&&typeof a.off=="function"?a.removeListener=a.off:a.removeListener=()=>{}),a},async isAuthorized(){var a,r;try{if(e&&await((a=u.storage)==null?void 0:a.getItem(`${this.id}.disconnected`))||!o.target&&!await((r=u.storage)==null?void 0:r.getItem("injected.connected")))return!1;if(!await this.getProvider()){if(t!==void 0&&t!==!1){const p=async()=>(typeof window<"u"&&window.removeEventListener("ethereum#initialized",p),!!await this.getProvider()),m=typeof t=="number"?t:1e3;if(await Promise.race([...typeof window<"u"?[new Promise(v=>window.addEventListener("ethereum#initialized",()=>v(p()),{once:!0}))]:[],new Promise(v=>setTimeout(()=>v(p()),m))]))return!0}throw new L}return!!(await Ye(()=>this.getAccounts())).length}catch{return!1}},async switchChain({addEthereumChainParameter:a,chainId:r}){var p,m,I,v;const l=await this.getProvider();if(!l)throw new L;const g=u.chains.find(y=>y.id===r);if(!g)throw new B(new V);const f=new Promise(y=>{const E=N=>{"chainId"in N&&N.chainId===r&&(u.emitter.off("change",E),y())};u.emitter.on("change",E)});try{return await Promise.all([l.request({method:"wallet_switchEthereumChain",params:[{chainId:re(r)}]}).then(async()=>{await this.getChainId()===r&&u.emitter.emit("change",{chainId:r})}),f]),g}catch(y){const E=y;if(E.code===4902||((m=(p=E==null?void 0:E.data)==null?void 0:p.originalError)==null?void 0:m.code)===4902)try{const{default:N,...h}=g.blockExplorers??{};let C;a!=null&&a.blockExplorerUrls?C=a.blockExplorerUrls:N&&(C=[N.url,...Object.values(h).map(b=>b.url)]);let w;(I=a==null?void 0:a.rpcUrls)!=null&&I.length?w=a.rpcUrls:w=[((v=g.rpcUrls.default)==null?void 0:v.http[0])??""];const A={blockExplorerUrls:C,chainId:re(r),chainName:(a==null?void 0:a.chainName)??g.name,iconUrls:a==null?void 0:a.iconUrls,nativeCurrency:(a==null?void 0:a.nativeCurrency)??g.nativeCurrency,rpcUrls:w};return await Promise.all([l.request({method:"wallet_addEthereumChain",params:[A]}).then(async()=>{if(await this.getChainId()===r)u.emitter.emit("change",{chainId:r});else throw new _(new Error("User rejected switch after adding network."))}),f]),g}catch(N){throw new _(N)}throw E.code===_.code?new _(E):new B(E)}},async onAccountsChanged(a){var r;if(a.length===0)this.onDisconnect();else if(u.emitter.listenerCount("connect")){const l=(await this.getChainId()).toString();this.onConnect({chainId:l}),e&&await((r=u.storage)==null?void 0:r.removeItem(`${this.id}.disconnected`))}else u.emitter.emit("change",{accounts:a.map(l=>q(l))})},onChainChanged(a){const r=Number(a);u.emitter.emit("change",{chainId:r})},async onConnect(a){const r=await this.getAccounts();if(r.length===0)return;const l=Number(a.chainId);u.emitter.emit("connect",{accounts:r,chainId:l});const g=await this.getProvider();g&&(d&&(g.removeListener("connect",d),d=void 0),s||(s=this.onAccountsChanged.bind(this),g.on("accountsChanged",s)),i||(i=this.onChainChanged.bind(this),g.on("chainChanged",i)),c||(c=this.onDisconnect.bind(this),g.on("disconnect",c)))},async onDisconnect(a){const r=await this.getProvider();a&&a.code===1013&&r&&(await this.getAccounts()).length||(u.emitter.emit("disconnect"),r&&(i&&(r.removeListener("chainChanged",i),i=void 0),c&&(r.removeListener("disconnect",c),c=void 0),d||(d=this.onConnect.bind(this),r.on("connect",d))))}})}const St={coinbaseWallet:{id:"coinbaseWallet",name:"Coinbase Wallet",provider(o){return o!=null&&o.coinbaseWalletExtension?o.coinbaseWalletExtension:oe(o,"isCoinbaseWallet")}},metaMask:{id:"metaMask",name:"MetaMask",provider(o){return oe(o,e=>{if(!e.isMetaMask||e.isBraveWallet&&!e._events&&!e._state)return!1;const t=["isApexWallet","isAvalanche","isBitKeep","isBlockWallet","isKuCoinWallet","isMathWallet","isOkxWallet","isOKExWallet","isOneInchIOSWallet","isOneInchAndroidWallet","isOpera","isPhantom","isPortal","isRabby","isTokenPocket","isTokenary","isUniswapWallet","isZerion"];for(const n of t)if(e[n])return!1;return!0})}},phantom:{id:"phantom",name:"Phantom",provider(o){var e,t;return(e=o==null?void 0:o.phantom)!=null&&e.ethereum?(t=o.phantom)==null?void 0:t.ethereum:oe(o,"isPhantom")}}};function oe(o,e){function t(s){return typeof e=="function"?e(s):typeof e=="string"?s[e]:!0}const n=o.ethereum;if(n!=null&&n.providers)return n.providers.find(s=>t(s));if(n&&t(n))return n}const _t=o=>(e,t,n)=>{const s=n.subscribe;return n.subscribe=(d,c,u)=>{let a=d;if(c){const r=(u==null?void 0:u.equalityFn)||Object.is;let l=d(n.getState());a=g=>{const f=d(g);if(!r(l,f)){const p=l;c(l=f,p)}},u!=null&&u.fireImmediately&&c(l,l)}return s(a)},o(e,t,n)},Tt=_t;function Pt(o,e){let t;try{t=o()}catch{return}return{getItem:s=>{var i;const d=u=>u===null?null:JSON.parse(u,e==null?void 0:e.reviver),c=(i=t.getItem(s))!=null?i:null;return c instanceof Promise?c.then(d):d(c)},setItem:(s,i)=>t.setItem(s,JSON.stringify(i,e==null?void 0:e.replacer)),removeItem:s=>t.removeItem(s)}}const me=o=>e=>{try{const t=o(e);return t instanceof Promise?t:{then(n){return me(n)(t)},catch(n){return this}}}catch(t){return{then(n){return this},catch(n){return me(n)(t)}}}},kt=(o,e)=>(t,n,s)=>{let i={storage:Pt(()=>localStorage),partialize:m=>m,version:0,merge:(m,I)=>({...I,...m}),...e},d=!1;const c=new Set,u=new Set;let a=i.storage;if(!a)return o((...m)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),t(...m)},n,s);const r=()=>{const m=i.partialize({...n()});return a.setItem(i.name,{state:m,version:i.version})},l=s.setState;s.setState=(m,I)=>{l(m,I),r()};const g=o((...m)=>{t(...m),r()},n,s);s.getInitialState=()=>g;let f;const p=()=>{var m,I;if(!a)return;d=!1,c.forEach(y=>{var E;return y((E=n())!=null?E:g)});const v=((I=i.onRehydrateStorage)==null?void 0:I.call(i,(m=n())!=null?m:g))||void 0;return me(a.getItem.bind(a))(i.name).then(y=>{if(y)if(typeof y.version=="number"&&y.version!==i.version){if(i.migrate)return[!0,i.migrate(y.state,y.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,y.state];return[!1,void 0]}).then(y=>{var E;const[N,h]=y;if(f=i.merge(h,(E=n())!=null?E:g),t(f,!0),N)return r()}).then(()=>{v==null||v(f,void 0),f=n(),d=!0,u.forEach(y=>y(f))}).catch(y=>{v==null||v(void 0,y)})};return s.persist={setOptions:m=>{i={...i,...m},m.storage&&(a=m.storage)},clearStorage:()=>{a==null||a.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>p(),hasHydrated:()=>d,onHydrate:m=>(c.add(m),()=>{c.delete(m)}),onFinishHydration:m=>(u.add(m),()=>{u.delete(m)})},i.skipHydration||p(),f||g},Rt=kt,Ne=o=>{let e;const t=new Set,n=(a,r)=>{const l=typeof a=="function"?a(e):a;if(!Object.is(l,e)){const g=e;e=r??(typeof l!="object"||l===null)?l:Object.assign({},e,l),t.forEach(f=>f(e,g))}},s=()=>e,c={setState:n,getState:s,getInitialState:()=>u,subscribe:a=>(t.add(a),()=>t.delete(a))},u=e=o(n,s,c);return c},fe=o=>o?Ne(o):Ne;class Ot{constructor(e){Object.defineProperty(this,"uid",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"_emitter",{enumerable:!0,configurable:!0,writable:!0,value:new Ze.EventEmitter})}on(e,t){this._emitter.on(e,t)}once(e,t){this._emitter.once(e,t)}off(e,t){this._emitter.off(e,t)}emit(e,...t){const n=t[0];this._emitter.emit(e,{uid:this.uid,...n})}listenerCount(e){return this._emitter.listenerCount(e)}}function Ut(o){return new Ot(o)}function jt(o,e){return JSON.parse(o,(t,n)=>{let s=n;return(s==null?void 0:s.__type)==="bigint"&&(s=BigInt(s.value)),(s==null?void 0:s.__type)==="Map"&&(s=new Map(s.value)),(e==null?void 0:e(t,s))??s})}function Ee(o,e){return o.slice(0,e).join(".")||"."}function Se(o,e){const{length:t}=o;for(let n=0;n<t;++n)if(o[n]===e)return n+1;return 0}function Mt(o,e){const t=typeof o=="function",n=typeof e=="function",s=[],i=[];return function(c,u){if(typeof u=="object")if(s.length){const a=Se(s,this);a===0?s[s.length]=this:(s.splice(a),i.splice(a)),i[i.length]=c;const r=Se(s,u);if(r!==0)return n?e.call(this,c,u,Ee(i,r)):`[ref=${Ee(i,r)}]`}else s[0]=u,i[0]=c;return t?o.call(this,c,u):u}}function Wt(o,e,t,n){return JSON.stringify(o,Mt((s,i)=>{let d=i;return typeof d=="bigint"&&(d={__type:"bigint",value:i.toString()}),d instanceof Map&&(d={__type:"Map",value:Array.from(i.entries())}),(e==null?void 0:e(s,d))??d},n),t??void 0)}function Lt(o){const{deserialize:e=jt,key:t="wagmi",serialize:n=Wt,storage:s=Oe}=o;function i(d){return d instanceof Promise?d.then(c=>c).catch(()=>null):d}return{...s,key:t,async getItem(d,c){const u=s.getItem(`${t}.${d}`),a=await i(u);return a?e(a)??null:c??null},async setItem(d,c){const u=`${t}.${d}`;c===null?await i(s.removeItem(u)):await i(s.setItem(u,n(c)))},async removeItem(d){await i(s.removeItem(`${t}.${d}`))}}}const Oe={getItem:()=>null,setItem:()=>{},removeItem:()=>{}};function qt(){const o=(()=>typeof window<"u"&&window.localStorage?window.localStorage:Oe)();return{getItem(e){return o.getItem(e)},removeItem(e){o.removeItem(e)},setItem(e,t){try{o.setItem(e,t)}catch{}}}}const Ce=256;let ee=Ce,te;function $t(o=11){if(!te||ee+o>Ce*2){te="",ee=0;for(let e=0;e<Ce;e++)te+=(256+Math.random()*256|0).toString(16).substring(1)}return te.substring(ee,ee+++o)}function xt(o){const{multiInjectedProviderDiscovery:e=!0,storage:t=Lt({storage:qt()}),syncConnectedChain:n=!0,ssr:s=!1,...i}=o,d=typeof window<"u"&&e?et():void 0,c=fe(()=>i.chains),u=fe(()=>{const h=[],C=new Set;for(const w of i.connectors??[]){const A=a(w);if(h.push(A),!s&&A.rdns){const b=typeof A.rdns=="string"?[A.rdns]:A.rdns;for(const T of b)C.add(T)}}if(!s&&d){const w=d.getProviders();for(const A of w)C.has(A.info.rdns)||h.push(a(r(A)))}return h});function a(h){var b;const C=Ut($t());let w;const A={...h({emitter:C,chains:c.getState(),get providers(){if(!d||!w)return[];const T=typeof w=="string"?[w]:w,R=d.getProviders();return T.flatMap(K=>R.filter(P=>P.info.rdns===K))},storage:t,transports:i.transports}),emitter:C,uid:C.uid};return w=A.rdns,C.on("connect",E),(b=A.setup)==null||b.call(A),A}function r(h){const{info:C}=h,w=h.provider;return ae({target:{...C,id:C.rdns,provider:w}})}const l=new Map;function g(h={}){const C=h.chainId??I.getState().chainId,w=c.getState().find(b=>b.id===C);if(h.chainId&&!w)throw new V;{const b=l.get(I.getState().chainId);if(b&&!w)return b;if(!w)throw new V}{const b=l.get(C);if(b)return b}let A;if(i.client)A=i.client({chain:w});else{const b=w.id,T=c.getState().map(P=>P.id),R={},K=Object.entries(i);for(const[P,$]of K)if(!(P==="chains"||P==="client"||P==="connectors"||P==="transports"))if(typeof $=="object")if(b in $)R[P]=$[b];else{if(T.some(je=>je in $))continue;R[P]=$}else R[P]=$;A=Pe({...R,chain:w,batch:R.batch??{multicall:!0},transport:P=>i.transports[b]({...P,connectors:u})})}return l.set(C,A),A}function f(){return{chainId:c.getState()[0].id,connections:new Map,current:null,status:"disconnected"}}let p;const m="0.0.0-canary-";ie.startsWith(m)?p=Number.parseInt(ie.replace(m,""),10):p=Number.parseInt(ie.split(".")[0]??"0",10);const I=fe(Tt(t?Rt(f,{migrate(h,C){if(C===p)return h;const w=f(),A=v(h,w.chainId);return{...w,chainId:A}},name:"store",partialize(h){return{connections:{__type:"Map",value:Array.from(h.connections.entries()).map(([C,w])=>{const{id:A,name:b,type:T,uid:R}=w.connector;return[C,{...w,connector:{id:A,name:b,type:T,uid:R}}]})},chainId:h.chainId,current:h.current}},merge(h,C){typeof h=="object"&&h&&"status"in h&&delete h.status;const w=v(h,C.chainId);return{...C,...h,chainId:w}},skipHydration:s,storage:t,version:p}):f));I.setState(f());function v(h,C){return h&&typeof h=="object"&&"chainId"in h&&typeof h.chainId=="number"&&c.getState().some(w=>w.id===h.chainId)?h.chainId:C}n&&I.subscribe(({connections:h,current:C})=>{var w;return C?(w=h.get(C))==null?void 0:w.chainId:void 0},h=>{if(c.getState().some(w=>w.id===h))return I.setState(w=>({...w,chainId:h??w.chainId}))}),d==null||d.subscribe(h=>{const C=new Set,w=new Set;for(const b of u.getState())if(C.add(b.id),b.rdns){const T=typeof b.rdns=="string"?[b.rdns]:b.rdns;for(const R of T)w.add(R)}const A=[];for(const b of h){if(w.has(b.info.rdns))continue;const T=a(r(b));C.has(T.id)||A.push(T)}t&&!I.persist.hasHydrated()||u.setState(b=>[...b,...A],!0)});function y(h){I.setState(C=>{const w=C.connections.get(h.uid);return w?{...C,connections:new Map(C.connections).set(h.uid,{accounts:h.accounts??w.accounts,chainId:h.chainId??w.chainId,connector:w.connector})}:C})}function E(h){I.getState().status==="connecting"||I.getState().status==="reconnecting"||I.setState(C=>{const w=u.getState().find(A=>A.uid===h.uid);return w?(w.emitter.listenerCount("connect")&&w.emitter.off("connect",y),w.emitter.listenerCount("change")||w.emitter.on("change",y),w.emitter.listenerCount("disconnect")||w.emitter.on("disconnect",N),{...C,connections:new Map(C.connections).set(h.uid,{accounts:h.accounts,chainId:h.chainId,connector:w}),current:h.uid,status:"connected"}):C})}function N(h){I.setState(C=>{const w=C.connections.get(h.uid);if(w){const b=w.connector;b.emitter.listenerCount("change")&&w.connector.emitter.off("change",y),b.emitter.listenerCount("disconnect")&&w.connector.emitter.off("disconnect",N),b.emitter.listenerCount("connect")||w.connector.emitter.on("connect",E)}if(C.connections.delete(h.uid),C.connections.size===0)return{...C,connections:new Map,current:null,status:"disconnected"};const A=C.connections.values().next().value;return{...C,connections:new Map(C.connections),current:A.connector.uid}})}return{get chains(){return c.getState()},get connectors(){return u.getState()},storage:t,getClient:g,get state(){return I.getState()},setState(h){let C;typeof h=="function"?C=h(I.getState()):C=h;const w=f();typeof C!="object"&&(C=w),Object.keys(w).some(b=>!(b in C))&&(C=w),I.setState(C,!0)},subscribe(h,C,w){return I.subscribe(h,C,w?{...w,fireImmediately:w.emitImmediately}:void 0)},_internal:{mipd:d,async revalidate(){const h=I.getState(),C=h.connections;let w=h.current;for(const[,A]of C){const b=A.connector;b.isAuthorized&&await b.isAuthorized()||(C.delete(b.uid),w===b.uid&&(w=null))}I.setState(A=>({...A,connections:C,current:w}))},store:I,ssr:!!s,syncConnectedChain:n,transports:i.transports,chains:{setState(h){const C=typeof h=="function"?h(c.getState()):h;if(C.length!==0)return c.setState(C,!0)},subscribe(h){return c.subscribe(h)}},connectors:{providerDetailToConnector:r,setup:a,setState(h){return u.setState(typeof h=="function"?h(u.getState()):h,!0)},subscribe(h){return u.subscribe(h)}},events:{change:y,connect:E,disconnect:N}}}}function Ue(o){let e=[],t,n;function s(c){var r,l;const u=k.getCaipNetworks(S.CHAIN.EVM);let a=Number(ge.parseEvmChainId(c));if(!u.some(g=>String(g.id)===String(c))){const g=((r=k.getActiveCaipNetwork(S.CHAIN.EVM))==null?void 0:r.id)||((l=u[0])==null?void 0:l.id);g&&Number.isInteger(Number(g))&&(a=Number(g))}if(!a)throw new Error("ChainId not found in networks");return a}function i(){var c;return t||(t=Ie.getInstance({projectId:o.options.projectId,chainId:(c=J())==null?void 0:c.caipNetworkId,enableLogger:o.options.enableAuthLogger,onTimeout:u=>{u==="iframe_load_failed"?x.open(W.ALERT_ERRORS.IFRAME_LOAD_FAILED,"error"):u==="iframe_request_timeout"?x.open(W.ALERT_ERRORS.IFRAME_REQUEST_TIMEOUT,"error"):u==="unverified_domain"&&x.open(W.ALERT_ERRORS.UNVERIFIED_DOMAIN,"error")},abortController:W.EmbeddedWalletAbortController,getActiveCaipNetwork:u=>J(u),getCaipNetworks:u=>k.getCaipNetworks(u)})),t}async function d(c={}){var m;const u=i();let a=c.chainId;if(c.isReconnecting){const I=ge.parseEvmChainId(u.getLastUsedChainId()||""),v=(m=o.chains)==null?void 0:m[0].id;if(a=I||v,!a)throw new Error("ChainId not found in provider")}const r=ye("eip155"),{address:l,chainId:g,accounts:f}=await We.authConnectorAuthenticate({authConnector:u,chainId:a,preferredAccountType:r,socialUri:c.socialUri,chainNamespace:S.CHAIN.EVM});e=(f==null?void 0:f.map(I=>I.address))||[l];const p=s(g);return{accounts:e,account:l,chainId:p,chain:{id:p,unsupported:!1}}}return c=>({id:S.CONNECTOR_ID.AUTH,name:S.CONNECTOR_NAMES.AUTH,type:"AUTH",chain:S.CHAIN.EVM,async connect(u={}){if(n){const r=await n;return{accounts:u.withCapabilities?r.accounts.map(l=>({address:l,capabilities:{}})):r.accounts,chainId:r.chainId}}n||(n=new Promise(r=>{r(d(u))}));const a=await n;return n=void 0,{accounts:u.withCapabilities?a.accounts.map(r=>({address:r,capabilities:{}})):a.accounts,chainId:a.chainId}},async disconnect(){await(await this.getProvider()).disconnect()},getAccounts(){return e!=null&&e.length?(c.emitter.emit("change",{accounts:e}),Promise.resolve(e)):Promise.resolve([])},async getProvider(){var u;return this.provider||(this.provider=Ie.getInstance({projectId:o.options.projectId,chainId:(u=J())==null?void 0:u.caipNetworkId,enableLogger:o.options.enableAuthLogger,abortController:W.EmbeddedWalletAbortController,onTimeout:a=>{a==="iframe_load_failed"?x.open(W.ALERT_ERRORS.IFRAME_LOAD_FAILED,"error"):a==="iframe_request_timeout"?x.open(W.ALERT_ERRORS.IFRAME_REQUEST_TIMEOUT,"error"):a==="unverified_domain"&&x.open(W.ALERT_ERRORS.UNVERIFIED_DOMAIN,"error")},getActiveCaipNetwork:a=>J(a),getCaipNetworks:a=>k.getCaipNetworks(a)})),Promise.resolve(this.provider)},async getChainId(){const u=await this.getProvider(),{chainId:a}=await u.getChainId();return s(a)},async isAuthorized(){const a=k.state.activeChain===S.CHAIN.EVM;if(S.AUTH_CONNECTOR_SUPPORTED_CHAINS.some(g=>Me.getConnectorId(g)===S.CONNECTOR_ID.AUTH)&&!a)return!1;const l=await this.getProvider();return Promise.resolve(l.getLoginEmailUsed())},async switchChain({chainId:u}){var a;try{const r=c.chains.find(p=>p.id===u);if(!r)throw new B(new Error("chain not found on connector."));const l=await this.getProvider(),g=ye("eip155"),f=await l.connect({chainId:u,preferredAccountType:g});return e=((a=f==null?void 0:f.accounts)==null?void 0:a.map(p=>p.address))||[f.address],c.emitter.emit("change",{chainId:Number(u),accounts:e}),r}catch(r){throw r instanceof Error?new B(r):r}},onAccountsChanged(u){u.length===0?this.onDisconnect():c.emitter.emit("change",{accounts:u.map(q)})},onChainChanged(u){const a=Number(u);c.emitter.emit("change",{chainId:a})},async onDisconnect(u){await(await this.getProvider()).disconnect()}})}pe.type="walletConnect";function pe(o){const e=o.isNewChainsStale??!0;let t,n,s,i,d,c,u;return a=>({id:"walletConnect",name:"WalletConnect",type:pe.type,provider:o.universalProvider,async setup(){const r=await this.getProvider().catch(()=>null);r&&(i||(i=this.onConnect.bind(this),r.on("connect",i)),c||(c=this.onSessionDelete.bind(this),r.on("session_delete",c)))},async connect({...r}={}){var l,g,f;try{const p=k.getCaipNetworks(),m=await this.getProvider();if(!m)throw new L;d||(d=this.onDisplayUri,m.on("display_uri",d));const I=await this.isChainsStale();m.session&&I&&await m.disconnect();const v=D.state.universalProviderConfigOverride;if(!m.session||I){const A=Le.createNamespaces(p,v);await m.connect({optionalNamespaces:A,..."pairingTopic"in r?{pairingTopic:r.pairingTopic}:{}}),this.setRequestedChainsIds(p.map(b=>Number(b.id)))}const y=await this.getAccounts(),E=await this.getChainId(),N=(f=(g=(l=m.session)==null?void 0:l.namespaces)==null?void 0:g.eip155)==null?void 0:f.chains,h=N==null?void 0:N.some(A=>Number(A.split(":")[1])===E);let C=1;h?C=E:N!=null&&N[0]&&(C=Number(N[0].split(":")[1])),d&&(m.removeListener("display_uri",d),d=void 0),i&&(m.removeListener("connect",i),i=void 0),n||(n=this.onAccountsChanged.bind(this),m.on("accountsChanged",n)),s||(s=this.onChainChanged.bind(this),m.on("chainChanged",s)),u||(u=this.onDisconnect.bind(this),m.on("disconnect",u)),c||(c=this.onSessionDelete.bind(this),m.on("session_delete",c));const w=v==null?void 0:v.defaultChain;return m.setDefaultChain(w??`eip155:${C}`),{accounts:y,chainId:C}}catch(p){throw/(user rejected|connection request reset)/i.test(p==null?void 0:p.message)?new _(p):p}},async disconnect(){const r=await this.getProvider();try{await(r==null?void 0:r.disconnect())}catch(l){if(!/No matching key/i.test(l.message))throw l}finally{s&&(r==null||r.removeListener("chainChanged",s),s=void 0),u&&(r==null||r.removeListener("disconnect",u),u=void 0),i||(i=this.onConnect.bind(this),r==null||r.on("connect",i)),n&&(r==null||r.removeListener("accountsChanged",n),n=void 0),c&&(r==null||r.removeListener("session_delete",c),c=void 0),this.setRequestedChainsIds([])}},async getAccounts(){var m,I,v;const r=await this.getProvider();if(!((m=r==null?void 0:r.session)!=null&&m.namespaces))return[];const l=(v=(I=r==null?void 0:r.session)==null?void 0:I.namespaces[S.CHAIN.EVM])==null?void 0:v.accounts,g=(l==null?void 0:l.map(y=>y.split(":")[2]))??[],f=new Set;return g.filter(y=>{const E=y==null?void 0:y.toLowerCase();return f.has(E)?!1:(f.add(E),!0)})},async getProvider({chainId:r}={}){var f,p;t||(t=o.universalProvider,t==null||t.events.setMaxListeners(Number.POSITIVE_INFINITY));const l=H.getActiveNamespace(),g=(f=k.getActiveCaipNetwork())==null?void 0:f.id;if(r&&g!==r&&l){const m=H.getStoredActiveCaipNetworkId(),I=l?k.getCaipNetworks(l):[],v=I==null?void 0:I.find(y=>y.id===m);v&&v.chainNamespace===S.CHAIN.EVM&&await((p=this.switchChain)==null?void 0:p.call(this,{chainId:Number(v.id)}))}return t},async getChainId(){var p,m,I,v;const r=(p=k.getActiveCaipNetwork(S.CHAIN.EVM))==null?void 0:p.id;if(r)return r;const g=(v=(I=(m=(await this.getProvider()).session)==null?void 0:m.namespaces[S.CHAIN.EVM])==null?void 0:I.chains)==null?void 0:v[0],f=k.getCaipNetworks().find(y=>y.id===g);return f==null?void 0:f.id},async isAuthorized(){try{const[r,l]=await Promise.all([this.getAccounts(),this.getProvider()]);return r.length?await this.isChainsStale()&&l.session?(await l.disconnect().catch(()=>{}),!1):!0:!1}catch{return!1}},async switchChain({addEthereumChainParameter:r,chainId:l}){var p,m,I,v;const g=await this.getProvider();if(!g)throw new L;const f=k.getCaipNetworks().find(y=>y.id===l);if(!f)throw new B(new V);try{await g.request({method:"wallet_switchEthereumChain",params:[{chainId:re(l)}]}),f!=null&&f.caipNetworkId&&g.setDefaultChain(f==null?void 0:f.caipNetworkId),a.emitter.emit("change",{chainId:Number(l)});const y=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...y,l]),{...f,id:f.id}}catch(y){const E=y;if(/(?:user rejected)/iu.test(E.message))throw new _(E);try{let N;r!=null&&r.blockExplorerUrls?N=r.blockExplorerUrls:N=(p=f.blockExplorers)!=null&&p.default.url?[(m=f.blockExplorers)==null?void 0:m.default.url]:[];const h=((v=(I=f.rpcUrls)==null?void 0:I.chainDefault)==null?void 0:v.http)||[],C={blockExplorerUrls:N,chainId:re(l),chainName:f.name,iconUrls:r==null?void 0:r.iconUrls,nativeCurrency:f.nativeCurrency,rpcUrls:h};await g.request({method:"wallet_addEthereumChain",params:[C]});const w=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...w,l]),{...f,id:f.id}}catch(N){throw new _(N)}}},onAccountsChanged(r){r.length===0?this.onDisconnect():a.emitter.emit("change",{accounts:r.map(l=>q(l))})},onChainChanged(r){const l=Number(r);a.emitter.emit("change",{chainId:l})},onConnect(r){this.setRequestedChainsIds(k.getCaipNetworks().map(l=>Number(l.id)))},async onDisconnect(r){this.setRequestedChainsIds([]),a.emitter.emit("disconnect");const l=await this.getProvider();n&&(l.removeListener("accountsChanged",n),n=void 0),s&&(l.removeListener("chainChanged",s),s=void 0),u&&(l.removeListener("disconnect",u),u=void 0),c&&(l.removeListener("session_delete",c),c=void 0),i||(i=this.onConnect.bind(this),l.on("connect",i))},onDisplayUri(r){a.emitter.emit("message",{type:"display_uri",data:r})},onSessionDelete(){this.onDisconnect()},getNamespaceChainsIds(){var g,f,p;if(!((g=t==null?void 0:t.session)!=null&&g.namespaces))return[];const r=(p=(f=t==null?void 0:t.session)==null?void 0:f.namespaces[S.CHAIN.EVM])==null?void 0:p.accounts;return(r==null?void 0:r.map(m=>Number.parseInt(m.split(":")[1]??"")))??[]},async getRequestedChainsIds(){var l;const r=await((l=a.storage)==null?void 0:l.getItem(this.requestedChainsStorageKey))??[];return[...new Set(r)]},async isChainsStale(){if(!e)return!1;const r=a.chains.map(f=>f.id),l=this.getNamespaceChainsIds();if(l.length&&!l.some(f=>r.includes(f)))return!1;const g=await this.getRequestedChainsIds();return!r.every(f=>g.includes(Number(f)))},async setRequestedChainsIds(r){var l;await((l=a.storage)==null?void 0:l.setItem(this.requestedChainsStorageKey,r))},get requestedChainsStorageKey(){return`${this.id}.requestedChains`}})}const F=qe({pendingTransactions:0}),_e={state:F,subscribeKey(o,e){return $e(F,o,e)},increase(o){F[o]+=1},decrease(o){F[o]-=1},reset(o){F[o]=0}};async function Dt(o){if(ne.isSafeApp()){const{safe:e}=await we(()=>import("./index-7a6898a2.js"),["assets/index-7a6898a2.js","assets/index-1a84fe52.js","assets/index-19c63dfb.css","assets/writeContract-8e997358.js","assets/createBatchScheduler-7c9ada66.js","assets/http-a4cf4808.js","assets/custom-05656959.js","assets/compat-80bca490.js","assets/W3MFrameProviderSingleton-967a5251.js","assets/index-83245c25.js","assets/NetworkUtil-9d775636.js","assets/index-00639714.js","assets/store-af6293b2.js"]);if(e&&!o.some(t=>t.type==="safe"))return e()}return null}async function Ht(o){try{const{baseAccount:e}=await we(()=>import("./index-7a6898a2.js"),["assets/index-7a6898a2.js","assets/index-1a84fe52.js","assets/index-19c63dfb.css","assets/writeContract-8e997358.js","assets/createBatchScheduler-7c9ada66.js","assets/http-a4cf4808.js","assets/custom-05656959.js","assets/compat-80bca490.js","assets/W3MFrameProviderSingleton-967a5251.js","assets/index-83245c25.js","assets/NetworkUtil-9d775636.js","assets/index-00639714.js","assets/store-af6293b2.js"]);if(e&&!o.some(t=>t.id==="baseAccount"))return e()}catch(e){console.error("Failed to import Base Account SDK:",e)}return null}async function Ft(o,e){try{const{coinbaseWallet:t}=await we(()=>import("./index-7a6898a2.js"),["assets/index-7a6898a2.js","assets/index-1a84fe52.js","assets/index-19c63dfb.css","assets/writeContract-8e997358.js","assets/createBatchScheduler-7c9ada66.js","assets/http-a4cf4808.js","assets/custom-05656959.js","assets/compat-80bca490.js","assets/W3MFrameProviderSingleton-967a5251.js","assets/index-83245c25.js","assets/NetworkUtil-9d775636.js","assets/index-00639714.js","assets/store-af6293b2.js"]);if(t&&!o.some(n=>n.id==="coinbaseWallet"))return t({preference:e})}catch(t){console.error("Failed to import Coinbase Wallet SDK:",t)}return null}const Bt={enable:!1,pollingInterval:3e4};class Vt extends xe{constructor(e){const t=X.extendCaipNetworks(e.networks,{projectId:e.projectId,customNetworkImageUrls:{},customRpcUrls:e.customRpcUrls});super(),this.balancePromises={},this.namespace=S.CHAIN.EVM,this.adapterType=S.ADAPTER_TYPES.WAGMI,this.projectId=e.projectId,this.pendingTransactionsFilter={...Bt,...e.pendingTransactionsFilter??{}},this.createConfig({...e,networks:t}),this.checkChainId()}construct(e){this.checkChainId(),this.setupWatchers()}async getAccounts(e){const t=this.getWagmiConnector(e.id);if(!t)return{accounts:[]};if(t.id===S.CONNECTOR_ID.AUTH){const d=await t.getProvider();if(!(d!=null&&d.user))return{accounts:[]};const{address:c,accounts:u,chainId:a}=d.user;return Promise.resolve({accounts:(u||[{address:c,type:"eoa"}]).map(r=>ne.createAccount({caipAddress:`eip155:${a}:${r.address}`,type:r.type}))})}const{addresses:n,address:s,chainId:i}=se(this.wagmiConfig);return Promise.resolve({accounts:i?[...new Set(n||[s])].map(d=>ne.createAccount({caipAddress:`eip155:${i}:${d||""}`,type:"eoa"})):[]})}checkChainId(){const{chainId:e}=se(this.wagmiConfig);e&&this.emit("switchNetwork",{chainId:e})}getWagmiConnector(e){return this.wagmiConfig.connectors.find(t=>t.id===e)}createConfig(e){this.wagmiChains=e.networks.filter(s=>s.chainNamespace===S.CHAIN.EVM);const t={},n=[...e.connectors??[]];this.wagmiChains.forEach(s=>{var c,u;const i=(c=e.transports)==null?void 0:c[s.id],d=X.getCaipNetworkId(s);i?t[s.id]=X.extendWagmiTransports(s,e.projectId,i):t[s.id]=X.getViemTransport(s,e.projectId,(u=e.customRpcUrls)==null?void 0:u[d])}),this.wagmiConfig=xt({...e,chains:this.wagmiChains,connectors:n,transports:t})}setupWatchPendingTransactions(){if(!this.pendingTransactionsFilter.enable||this.unwatchPendingTransactions)return;this.unwatchPendingTransactions=Nt(this.wagmiConfig,{pollingInterval:this.pendingTransactionsFilter.pollingInterval,onError:()=>{},onTransactions:()=>{this.emit("pendingTransactions"),_e.increase("pendingTransactions")}});const e=_e.subscribeKey("pendingTransactions",t=>{var n;t>=S.LIMITS.PENDING_TRANSACTIONS&&((n=this.unwatchPendingTransactions)==null||n.call(this),e())})}setupWatchers(){vt(this.wagmiConfig,{onChange:e=>{this.clearConnections(),this.addConnection(...e.map(t=>{const n=this.getCaipNetworks().find(i=>i.id===t.chainId),s=t.connector.id===S.CONNECTOR_ID.AUTH;return{accounts:t.accounts.map(i=>({address:this.toChecksummedAddress(i)})),caipNetwork:n,connectorId:t.connector.id,auth:s?{name:H.getConnectedSocialProvider(),username:H.getConnectedSocialUsername()}:void 0}}))}}),bt(this.wagmiConfig,{onChange:(e,t)=>{var n;if(e.status==="disconnected"&&t.address&&this.emit("disconnect"),e!=null&&e.chainId&&(e==null?void 0:e.chainId)!==(t==null?void 0:t.chainId)&&this.emit("switchNetwork",{chainId:e.chainId}),e.status==="connected"){const s=e.address!==(t==null?void 0:t.address),i=e.connector.id!==((n=t.connector)==null?void 0:n.id),d=t.status!=="connected";(s||i||d)&&(this.setupWatchPendingTransactions(),this.handleAccountChanged({address:e.address,chainId:e.chainId,connector:e.connector}))}}})}async addThirdPartyConnectors(){const e=[],{enableCoinbase:t,enableBaseAccount:n,coinbasePreference:s}=D.state||{};if(n!==!1){const d=await Ht(this.wagmiConfig.connectors);d&&e.push(d)}if(t!==!1){const d=await Ft(this.wagmiConfig.connectors,s);d&&e.push(d)}const i=await Dt(this.wagmiConfig.connectors);i&&e.push(i),await Promise.all(e.map(d=>{const c=this.configureInternalConnector(d);return this.addWagmiConnector(c)}))}addWagmiConnectors(){const e=[];D.state.enableInjected!==!1&&e.push(ae({shimDisconnect:!0}));const{features:t,remoteFeatures:n,projectId:s,enableAuthLogger:i}=D.state,d=(n==null?void 0:n.email)??(t==null?void 0:t.email)??!0,c=(n==null?void 0:n.socials)??(t==null?void 0:t.socials),u=Array.isArray(c)&&(c==null?void 0:c.length)>0;(d||u)&&e.push(Ue({chains:this.wagmiChains,options:{projectId:s,enableAuthLogger:i}})),e.forEach(a=>{this.configureInternalConnector(a)})}configureInternalConnector(e){const t=this.wagmiConfig._internal.connectors.setup(e);return this.wagmiConfig._internal.connectors.setState(n=>[...n,t]),t}async handleAccountChanged({address:e,chainId:t,connector:n}){if(!this.namespace)throw new Error("WagmiAdapter:handleAccountChanged - namespace is required");const s=await n.getProvider().catch(()=>{});this.emit("accountChanged",{address:this.toChecksummedAddress(e),chainId:t,connector:{id:n.id,name:j.ConnectorNamesMap[n.id]??n.name,imageId:j.ConnectorImageIds[n.id],type:j.ConnectorTypesMap[n.type]??"EXTERNAL",info:n.id===S.CONNECTOR_ID.INJECTED?void 0:{rdns:n.id},provider:s,chain:this.namespace,chains:[]}})}async writeSolanaTransaction(){return Promise.resolve({hash:""})}async signMessage(e){try{return{signature:await pt(this.wagmiConfig,{message:e.message,account:e.address})}}catch{throw new Error("WagmiAdapter:signMessage - Sign message failed")}}async sendTransaction(e){var c;const{chainId:t,address:n}=se(this.wagmiConfig),s=(c=this.wagmiChains)==null?void 0:c.find(u=>u.id===t),i={account:n,to:e.to,value:Number.isNaN(Number(e.value))?BigInt(0):BigInt(e.value),gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,data:e.data,chain:s,type:"legacy",parameters:["nonce"]};await Ct(this.wagmiConfig,i);const d=await wt(this.wagmiConfig,i);return await yt(this.wagmiConfig,{hash:d,timeout:25e3}),{hash:d}}async writeContract(e){var c;const{caipNetwork:t,...n}=e,s=Number(ge.caipNetworkIdToNumber(t.caipNetworkId)),i=(c=this.wagmiChains)==null?void 0:c.find(u=>u.id===s);return{hash:await Et(this.wagmiConfig,{chain:i,address:n.tokenAddress,account:n.fromAddress,abi:n.abi,functionName:n.method,args:n.args,__mode:"prepared"})}}async estimateGas(e){try{return{gas:await gt(this.wagmiConfig,{account:e.address,to:e.to,data:e.data,type:"legacy"})}}catch{throw new Error("WagmiAdapter:estimateGas - error estimating gas")}}parseUnits(e){return ct(e.value,e.decimals)}formatUnits(e){return Qe(e.value,e.decimals)}async addWagmiConnector(e){if(!this.namespace)throw new Error("WagmiAdapter:addWagmiConnector - namespace is required");const{enableEIP6963:t,enableInjected:n}=D.state||{},s=e.type===S.CONNECTOR_ID.INJECTED,i=e.id===S.CONNECTOR_ID.INJECTED,d=s&&!i;if(i&&n===!1||d&&t===!1||e.id===S.CONNECTOR_ID.AUTH||e.id===S.CONNECTOR_ID.WALLET_CONNECT)return;let c;e.id!==S.CONNECTOR_ID.BASE_ACCOUNT&&(c=await e.getProvider().catch(()=>{}));const u=De.state.connectorImages;this.addConnector({id:e.id,explorerId:j.ConnectorExplorerIds[e.id]??j.ConnectorExplorerIds[e.name],imageUrl:(u==null?void 0:u[e.id])??e.icon,name:j.ConnectorNamesMap[e.id]??e.name,imageId:j.ConnectorImageIds[e.id],type:j.ConnectorTypesMap[e.type]??"EXTERNAL",info:e.id===S.CONNECTOR_ID.INJECTED?void 0:{rdns:e.id},provider:c,chain:this.namespace,chains:[]})}async syncConnectors(){At(this.wagmiConfig,{onChange:e=>{e.forEach(t=>this.addWagmiConnector(t))}}),this.addWagmiConnectors(),await Promise.all(this.wagmiConfig.connectors.map(e=>this.addWagmiConnector(e))),await this.addThirdPartyConnectors()}async syncConnections(){const e=this.connectors.filter(t=>{const{hasDisconnected:n,hasConnected:s}=Y.getConnectorStorageInfo(t.id,this.namespace);return!n&&s}).map(t=>this.getWagmiConnector(t.id)).filter(Boolean);await he(this.wagmiConfig,{connectors:e})}async syncConnection(e){var a,r;const{id:t,chainId:n}=e,i=M(this.wagmiConfig).find(l=>l.connector.id===t),d=this.getWagmiConnector(t),c=await(d==null?void 0:d.getProvider());if(ne.isSafeApp()&&t===S.CONNECTOR_ID.SAFE&&!(i!=null&&i.accounts.length)){const l=this.getWagmiConnector("safe");if(l){const g=await ue(this.wagmiConfig,{connector:l,chainId:Number(n)}),f=await l.getProvider();return{chainId:Number(n),address:this.toChecksummedAddress(g.accounts[0]),provider:f,type:(a=i==null?void 0:i.connector.type)==null?void 0:a.toUpperCase(),id:i==null?void 0:i.connector.id}}}return{chainId:Number(i==null?void 0:i.chainId),address:this.toChecksummedAddress(i==null?void 0:i.accounts[0]),provider:c,type:(r=i==null?void 0:i.connector.type)==null?void 0:r.toUpperCase(),id:i==null?void 0:i.connector.id}}async connectWalletConnect(e){try{const t=this.getWalletConnectConnector();await t.authenticate();const n=this.getWagmiConnector("walletConnect");if(!n)throw new Error("UniversalAdapter:connectWalletConnect - connector not found");const s=await ue(this.wagmiConfig,{connector:n,chainId:e?Number(e):void 0});return s.chainId!==Number(e)&&await Ae(this.wagmiConfig,{chainId:s.chainId}),{clientId:await t.provider.client.core.crypto.getClientId()}}catch(t){throw t instanceof _?new Q(t):be.isUserRejectedRequestError(t)?new Q(t):t}}async connect(e){var t,n,s,i,d;try{const{id:c,address:u,provider:a,type:r,info:l,chainId:g,socialUri:f}=e,p=this.getWagmiConnector(c);if(!p)throw new Error("connectionControllerClient:connectExternal - connector is undefined");a&&l&&p.id===S.CONNECTOR_ID.EIP6963&&((t=p.setEip6963Wallet)==null||t.call(p,{provider:a,info:l}));const m=(s=(n=this.wagmiConfig.state)==null?void 0:n.connections)==null?void 0:s.get(p.uid);if(m){await((i=this.wagmiConfig.storage)==null?void 0:i.setItem("recentConnectorId",p.id));const y=[...m.accounts].sort((E,N)=>Y.isLowerCaseMatch(E,u)?-1:Y.isLowerCaseMatch(N,u)?1:0);return(d=this.wagmiConfig)==null||d.setState(E=>({...E,connections:new Map(E.connections).set(p.uid,{accounts:y,chainId:m.chainId,connector:m.connector}),current:p.uid,status:"connected"})),{address:this.toChecksummedAddress(y[0]),chainId:m.chainId,provider:a,type:r,id:c}}const I=await ue(this.wagmiConfig,{connector:p,chainId:g?Number(g):void 0,socialUri:f}),v=a??await p.getProvider();return{address:this.toChecksummedAddress(I.accounts[0]),chainId:I.chainId,provider:v,type:r,id:c}}catch(c){throw c instanceof _?new Q(c):be.isUserRejectedRequestError(c)?new Q(c):c}}get connections(){return Array.from(this.wagmiConfig.state.connections.values()).map(e=>({accounts:e.accounts.map(t=>({address:this.toChecksummedAddress(t)})),connectorId:e.connector.id}))}async reconnect(e){const{id:t}=e,n=this.getWagmiConnector(t);if(!n)throw new Error("connectionControllerClient:connectExternal - connector is undefined");await he(this.wagmiConfig,{connectors:[n]})}async getBalance(e){const t=e.address,n=this.getCaipNetworks().find(s=>s.id===e.chainId);if(!t)return Promise.resolve({balance:"0.00",symbol:"ETH"});if(n&&this.wagmiConfig){const s=`${n.caipNetworkId}:${e.address}`,i=this.balancePromises[s];if(i)return i;const d=H.getNativeBalanceCacheForCaipAddress(s);return d?{balance:d.balance,symbol:d.symbol}:(this.balancePromises[s]=new Promise(async c=>{var u,a;try{const r=Number(e.chainId),l=await mt(this.wagmiConfig,{address:e.address,chainId:r,token:(a=(u=e.tokens)==null?void 0:u[n.caipNetworkId])==null?void 0:a.address});H.updateNativeBalanceCache({caipAddress:s,balance:l.formatted,symbol:l.symbol,timestamp:Date.now()}),c({balance:l.formatted,symbol:l.symbol})}catch(r){console.warn("Appkit:WagmiAdapter:getBalance - Error getting balance",r),c({balance:"0.00",symbol:"ETH"})}}).finally(()=>{delete this.balancePromises[s]}),this.balancePromises[s]||{balance:"0.00",symbol:"ETH"})}return{balance:"",symbol:""}}getWalletConnectProvider(){var e;return(e=this.getWagmiConnector("walletConnect"))==null?void 0:e.provider}async disconnect(e){if(e.id){const t=this.getWagmiConnector(e.id),s=M(this.wagmiConfig).find(i=>Y.isLowerCaseMatch(i.connector.id,e.id));return await ve(this.wagmiConfig,{connector:t}),D.state.enableReconnect===!1&&this.deleteConnection(e.id),s?{connections:[{accounts:s.accounts.map(i=>({address:this.toChecksummedAddress(i)})),connectorId:s.connector.id}]}:{connections:[]}}return this.disconnectAll()}async disconnectAll(){const e=M(this.wagmiConfig),t=await Promise.allSettled(e.map(async n=>{const s=this.getWagmiConnector(n.connector.id);return s&&await ve(this.wagmiConfig,{connector:s}),n}));return this.wagmiConfig.state.connections.clear(),{connections:t.filter(n=>n.status==="fulfilled").map(({value:n})=>({accounts:n.accounts.map(s=>({address:this.toChecksummedAddress(s)})),connectorId:n.connector.id}))}}async switchNetwork(e){var f,p,m,I,v;const{caipNetwork:t}=e,n=this.wagmiConfig.chains.find(y=>y.id.toString()===t.id.toString());if(!n)throw new Error("connectionControllerClient:switchNetwork - wagmiChain is undefined");const{name:s,nativeCurrency:i,rpcUrls:d,blockExplorers:c,id:u}=n,a=((m=(p=(f=t.rpcUrls)==null?void 0:f.chainDefault)==null?void 0:p.http)==null?void 0:m[0])??d.default.http[0]??"",r=(c==null?void 0:c.default.url)??((v=(I=t.blockExplorers)==null?void 0:I.default)==null?void 0:v.url)??"",l=i??t.nativeCurrency,g=s??t.name;await Ae(this.wagmiConfig,{chainId:u,addEthereumChainParameter:{chainName:g,nativeCurrency:l,rpcUrls:[a],blockExplorerUrls:[r]}}),await super.switchNetwork(e)}async getCapabilities(e){if(!this.wagmiConfig)throw new Error("connectionControllerClient:getCapabilities - wagmiConfig is undefined");const n=M(this.wagmiConfig)[0],s=n?this.getWagmiConnector(n.connector.id):null;if(!s)throw new Error("connectionControllerClient:getCapabilities - connector is undefined");const i=await s.getProvider();if(!i)throw new Error("connectionControllerClient:getCapabilities - provider is undefined");return await i.request({method:"wallet_getCapabilities",params:[e]})}async grantPermissions(e){if(!this.wagmiConfig)throw new Error("connectionControllerClient:grantPermissions - wagmiConfig is undefined");const n=M(this.wagmiConfig)[0],s=n?this.getWagmiConnector(n.connector.id):null;if(!s)throw new Error("connectionControllerClient:grantPermissions - connector is undefined");const i=await s.getProvider();if(!i)throw new Error("connectionControllerClient:grantPermissions - provider is undefined");return i.request({method:"wallet_grantPermissions",params:e})}async revokePermissions(e){if(!this.wagmiConfig)throw new Error("connectionControllerClient:revokePermissions - wagmiConfig is undefined");const n=M(this.wagmiConfig)[0],s=n?this.getWagmiConnector(n.connector.id):null;if(!s)throw new Error("connectionControllerClient:revokePermissions - connector is undefined");const i=await s.getProvider();if(!i)throw new Error("connectionControllerClient:revokePermissions - provider is undefined");return i.request({method:"wallet_revokePermissions",params:e})}async walletGetAssets(e){if(!this.wagmiConfig)throw new Error("connectionControllerClient:walletGetAssets - wagmiConfig is undefined");const n=M(this.wagmiConfig)[0],s=n?this.getWagmiConnector(n.connector.id):null;if(!s)throw new Error("connectionControllerClient:walletGetAssets - connector is undefined");const i=await s.getProvider();if(!i)throw new Error("connectionControllerClient:walletGetAssets - provider is undefined");return i.request({method:"wallet_getAssets",params:[e]})}setAuthProvider(e){if(!this.namespace)throw new Error("WagmiAdapter:setAuthProvider - namespace is required");this.addConnector({id:S.CONNECTOR_ID.AUTH,type:"AUTH",name:S.CONNECTOR_NAMES.AUTH,provider:e,imageId:j.ConnectorImageIds[S.CONNECTOR_ID.AUTH],chain:this.namespace,chains:[]})}async setUniversalProvider(e){e.on("connect",()=>{const n=M(this.wagmiConfig),s=this.getWagmiConnector("walletConnect");if(s&&!n.find(i=>i.connector.id===s.id)){if(k.state.activeChain==="eip155")return;he(this.wagmiConfig,{connectors:[s]})}});const t=pe({universalProvider:e});return this.configureInternalConnector(t),this.addConnector(new He({provider:e,caipNetworks:this.getCaipNetworks(),namespace:"eip155"})),Promise.resolve()}toChecksummedAddress(e){if(!e)return e;try{return Xe(e.toLowerCase())}catch{return e}}}const on=Object.freeze(Object.defineProperty({__proto__:null,WagmiAdapter:Vt,authConnector:Ue},Symbol.toStringTag,{value:"Module"}));export{ut as C,L as P,V as a,on as b,sn as c,ae as i};
1
+ import{Y as Ie,k as J,v as W,A as x,C as k,d as Me,i as ye,J as We,O as D,Z as Le,o as H,p as qe,a as $e,c as ne,_ as xe,$ as X,a0 as j,F as De,V as Y,a1 as Q,H as be,a2 as He}from"./W3MFrameProviderSingleton-9b881e0b.js";import{C as S,N as ge}from"./NetworkUtil-d5c36eeb.js";import{a8 as Fe,U as _,l as de,k as B,n as re}from"./createBatchScheduler-7c9ada66.js";import{a1 as Be,a0 as q,be as Ve,bf as ze,bg as Ge,c as Ke,bh as Je,bi as Xe}from"./writeContract-1a4ef85b.js";import"./index-5a8bf9c4.js";import{_ as we}from"./index-15e7c060.js";import{w as Te,a as Ye,f as Qe}from"./http-a4cf4808.js";import{e as Ze}from"./index-00639714.js";import{c as et}from"./store-af6293b2.js";import{a as Pe,c as tt,g as nt,s as it,w as st,b as ot,d as rt,p as ct}from"./custom-9004b4b3.js";function U(o,e,t){const n=o[e.name];if(typeof n=="function")return n;const s=o[t];return typeof s=="function"?s:i=>e(o,i)}const ie="3.6.4",at=()=>`@wagmi/core@${ie}`;var ke=globalThis&&globalThis.__classPrivateFieldGet||function(o,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?o!==e||!n:!e.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(o):n?n.value:e.get(o)},ce,Re;class O extends Error{get docsBaseUrl(){return"https://wagmi.sh/core"}get version(){return at()}constructor(e,t={}){var i;super(),ce.add(this),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:"WagmiCoreError"});const n=t.cause instanceof O?t.cause.details:(i=t.cause)!=null&&i.message?t.cause.message:t.details,s=t.cause instanceof O&&t.cause.docsPath||t.docsPath;this.message=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...s?[`Docs: ${this.docsBaseUrl}${s}.html${t.docsSlug?`#${t.docsSlug}`:""}`]:[],...n?[`Details: ${n}`]:[],`Version: ${this.version}`].join(`
2
+ `),t.cause&&(this.cause=t.cause),this.details=n,this.docsPath=s,this.metaMessages=t.metaMessages,this.shortMessage=e}walk(e){return ke(this,ce,"m",Re).call(this,this,e)}}ce=new WeakSet,Re=function o(e,t){return t!=null&&t(e)?e:e.cause?ke(this,ce,"m",o).call(this,e.cause,t):e};class V extends O{constructor(){super("Chain not configured."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotConfiguredError"})}}class dt extends O{constructor(){super("Connector already connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAlreadyConnectedError"})}}class ut extends O{constructor(){super("Connector not connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorNotConnectedError"})}}class lt extends O{constructor({address:e,connector:t}){super(`Account "${e}" not found for connector "${t.name}".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAccountNotFoundError"})}}class ht extends O{constructor({connectionChainId:e,connectorChainId:t}){super(`The current chain of the connector (id: ${t}) does not match the connection's chain (id: ${e}).`,{metaMessages:[`Current Chain ID: ${t}`,`Expected Chain ID: ${e}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorChainMismatchError"})}}class ft extends O{constructor({connector:e}){super(`Connector "${e.name}" unavailable while reconnecting.`,{details:["During the reconnection step, the only connector methods guaranteed to be available are: `id`, `name`, `type`, `uid`.","All other methods are not guaranteed to be available until reconnection completes and connectors are fully restored.","This error commonly occurs for connectors that asynchronously inject after reconnection has already started."].join(" ")}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorUnavailableReconnectingError"})}}async function ue(o,e){var n;let t;if(typeof e.connector=="function"?t=o._internal.connectors.setup(e.connector):t=e.connector,t.uid===o.state.current)throw new dt;try{o.setState(c=>({...c,status:"connecting"})),t.emitter.emit("message",{type:"connecting"});const{connector:s,...i}=e,d=await t.connect(i);return t.emitter.off("connect",o._internal.events.connect),t.emitter.on("change",o._internal.events.change),t.emitter.on("disconnect",o._internal.events.disconnect),await((n=o.storage)==null?void 0:n.setItem("recentConnectorId",t.id)),o.setState(c=>({...c,connections:new Map(c.connections).set(t.uid,{accounts:i.withCapabilities?d.accounts.map(u=>typeof u=="object"?u.address:u):d.accounts,chainId:d.chainId,connector:t}),current:t.uid,status:"connected"})),{accounts:i.withCapabilities?d.accounts.map(c=>typeof c=="object"?c:{address:c,capabilities:{}}):d.accounts,chainId:d.chainId}}catch(s){throw o.setState(i=>({...i,status:i.current?"connected":"disconnected"})),s}}async function G(o,e={}){const{assertChainId:t=!0}=e;let n;if(e.connector){const{connector:r}=e;if(o.state.status==="reconnecting"&&!r.getAccounts&&!r.getChainId)throw new ft({connector:r});const[l,g]=await Promise.all([r.getAccounts().catch(f=>{if(e.account===null)return[];throw f}),r.getChainId()]);n={accounts:l,chainId:g,connector:r}}else n=o.state.connections.get(o.state.current);if(!n)throw new ut;const s=e.chainId??n.chainId,i=await n.connector.getChainId();if(t&&i!==s)throw new ht({connectionChainId:s,connectorChainId:i});const d=n.connector;if(d.getClient)return d.getClient({chainId:s});const c=Be(e.account??n.accounts[0]);if(c&&(c.address=q(c.address)),e.account&&!n.accounts.some(r=>r.toLowerCase()===c.address.toLowerCase()))throw new lt({address:c.address,connector:d});const u=o.chains.find(r=>r.id===s),a=await n.connector.getProvider({chainId:s});return Pe({account:c,chain:u,name:"Connector Client",transport:r=>tt(a)({...r,retryCount:0})})}async function ve(o,e={}){var s,i;let t;if(e.connector)t=e.connector;else{const{connections:d,current:c}=o.state,u=d.get(c);t=u==null?void 0:u.connector}const n=o.state.connections;t&&(await t.disconnect(),t.emitter.off("change",o._internal.events.change),t.emitter.off("disconnect",o._internal.events.disconnect),t.emitter.on("connect",o._internal.events.connect),n.delete(t.uid)),o.setState(d=>{if(n.size===0)return{...d,connections:new Map,current:null,status:"disconnected"};const c=n.values().next().value;return{...d,connections:new Map(n),current:c.connector.uid}});{const d=o.state.current;if(!d)return;const c=(s=o.state.connections.get(d))==null?void 0:s.connector;if(!c)return;await((i=o.storage)==null?void 0:i.setItem("recentConnectorId",c.id))}}async function gt(o,e){const{chainId:t,connector:n,...s}=e;let i;e.account?i=e.account:i=(await G(o,{account:e.account,assertChainId:!1,chainId:t,connector:n})).account;const d=o.getClient({chainId:t});return U(d,Ve,"estimateGas")({...s,account:i})}async function mt(o,e){const{address:t,blockNumber:n,blockTag:s,chainId:i}=e,d=o.getClient({chainId:i}),u=await U(d,nt,"getBalance")(n!==void 0?{address:t,blockNumber:n}:{address:t,blockTag:s}),a=o.chains.find(r=>r.id===i)??d.chain;return{decimals:a.nativeCurrency.decimals,symbol:a.nativeCurrency.symbol,value:u}}function z(o,e){if(o===e)return!0;if(o&&e&&typeof o=="object"&&typeof e=="object"){if(o.constructor!==e.constructor)return!1;let t,n;if(Array.isArray(o)&&Array.isArray(e)){if(t=o.length,t!==e.length)return!1;for(n=t;n--!==0;)if(!z(o[n],e[n]))return!1;return!0}if(typeof o.valueOf=="function"&&o.valueOf!==Object.prototype.valueOf)return o.valueOf()===e.valueOf();if(typeof o.toString=="function"&&o.toString!==Object.prototype.toString)return o.toString()===e.toString();const s=Object.keys(o);if(t=s.length,t!==Object.keys(e).length)return!1;for(n=t;n--!==0;)if(!Object.hasOwn(e,s[n]))return!1;for(n=t;n--!==0;){const i=s[n];if(i&&!z(o[i],e[i]))return!1}return!0}return o!==o&&e!==e}function se(o){const e=o.state.current,t=o.state.connections.get(e),n=t==null?void 0:t.accounts,s=n==null?void 0:n[0],i=o.chains.find(c=>c.id===(t==null?void 0:t.chainId)),d=o.state.status;switch(d){case"connected":return{address:s,addresses:n,chain:i,chainId:t==null?void 0:t.chainId,connector:t==null?void 0:t.connector,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:d};case"reconnecting":return{address:s,addresses:n,chain:i,chainId:t==null?void 0:t.chainId,connector:t==null?void 0:t.connector,isConnected:!!s,isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:d};case"connecting":return{address:s,addresses:n,chain:i,chainId:t==null?void 0:t.chainId,connector:t==null?void 0:t.connector,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:d};case"disconnected":return{address:void 0,addresses:void 0,chain:void 0,chainId:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:d}}}let Z=[];function M(o){const e=[...o.state.connections.values()];return o.state.status==="reconnecting"||z(Z,e)?Z:(Z=e,e)}async function Ct(o,e){const{account:t,chainId:n,connector:s,...i}=e;let d;return typeof t=="object"&&(t==null?void 0:t.type)==="local"?d=o.getClient({chainId:n}):d=await G(o,{account:t??void 0,assertChainId:!1,chainId:n,connector:s}),U(d,ze,"prepareTransactionRequest")({...i,...t?{account:t}:{}})}let le=!1;async function he(o,e={}){var a,r;if(le)return[];le=!0,o.setState(l=>({...l,status:l.current?"reconnecting":"connecting"}));const t=[];if((a=e.connectors)!=null&&a.length)for(const l of e.connectors){let g;typeof l=="function"?g=o._internal.connectors.setup(l):g=l,t.push(g)}else t.push(...o.connectors);let n;try{n=await((r=o.storage)==null?void 0:r.getItem("recentConnectorId"))}catch{}const s={};for(const[,l]of o.state.connections)s[l.connector.id]=1;n&&(s[n]=0);const i=Object.keys(s).length>0?[...t].sort((l,g)=>(s[l.id]??10)-(s[g.id]??10)):t;let d=!1;const c=[],u=[];for(const l of i){const g=await l.getProvider().catch(()=>{});if(!g||u.some(m=>m===g)||!await l.isAuthorized())continue;const p=await l.connect({isReconnecting:!0}).catch(()=>null);p&&(l.emitter.off("connect",o._internal.events.connect),l.emitter.on("change",o._internal.events.change),l.emitter.on("disconnect",o._internal.events.disconnect),o.setState(m=>{const I=new Map(d?m.connections:new Map).set(l.uid,{accounts:p.accounts,chainId:p.chainId,connector:l});return{...m,current:d?m.current:l.uid,connections:I}}),c.push({accounts:p.accounts,chainId:p.chainId,connector:l}),u.push(g),d=!0)}return(o.state.status==="reconnecting"||o.state.status==="connecting")&&(d?o.setState(l=>({...l,status:"connected"})):o.setState(l=>({...l,connections:new Map,current:null,status:"disconnected"}))),le=!1,c}async function wt(o,e){const{account:t,chainId:n,connector:s,...i}=e;let d;typeof t=="object"&&(t==null?void 0:t.type)==="local"?d=o.getClient({chainId:n}):d=await G(o,{account:t??void 0,assertChainId:!1,chainId:n,connector:s});const c=(()=>{var r;return!n||((r=d.chain)==null?void 0:r.id)===n?d.chain:{id:n}})();return await U(d,Ge,"sendTransaction")({...i,...t?{account:t}:{},assertChainId:!!n,chain:c,gas:i.gas??void 0})}async function pt(o,e){const{account:t,connector:n,...s}=e;let i;return typeof t=="object"&&t.type==="local"?i=o.getClient():i=await G(o,{account:t,connector:n}),U(i,it,"signMessage")({...s,...t?{account:t}:{}})}class L extends O{constructor(){super("Provider not found."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderNotFoundError"})}}class It extends O{constructor({connector:e}){super(`"${e.name}" does not support programmatic chain switching.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainNotSupportedError"})}}async function Ae(o,e){var d;const{addEthereumChainParameter:t,chainId:n}=e,s=o.state.connections.get(((d=e.connector)==null?void 0:d.uid)??o.state.current);if(s){const c=s.connector;if(!c.switchChain)throw new It({connector:c});return await c.switchChain({addEthereumChainParameter:t,chainId:n})}const i=o.chains.find(c=>c.id===n);if(!i)throw new V;return o.setState(c=>({...c,chainId:n})),i}async function yt(o,e){const{chainId:t,timeout:n=0,...s}=e,i=o.getClient({chainId:t}),c=await U(i,st,"waitForTransactionReceipt")({...s,timeout:n});if(c.status==="reverted")throw await Te(async()=>{const u=U(i,ot,"getTransaction"),{from:a,...r}=await u({hash:c.transactionHash}),g=await U(i,Ke,"call")({...r,account:a,data:r.input,gasPrice:r.type!=="eip1559"?r.gasPrice:void 0,maxFeePerGas:r.type==="eip1559"?r.maxFeePerGas:void 0,maxPriorityFeePerGas:r.type==="eip1559"?r.maxPriorityFeePerGas:void 0}),f=g!=null&&g.data?Fe(`0x${g.data.substring(138)}`):"unknown reason";return new Error(f)},{timeout:n>0?Math.min(n,1e4):1e4,errorInstance:new Error("unknown reason")});return{...c,chainId:i.chain.id}}function bt(o,e){const{onChange:t}=e;return o.subscribe(()=>se(o),t,{equalityFn(n,s){const{connector:i,...d}=n,{connector:c,...u}=s;return z(d,u)&&(i==null?void 0:i.id)===(c==null?void 0:c.id)&&(i==null?void 0:i.uid)===(c==null?void 0:c.uid)}})}function vt(o,e){const{onChange:t}=e;return o.subscribe(()=>M(o),t,{equalityFn:z})}function At(o,e){const{onChange:t}=e;return o._internal.connectors.subscribe((n,s)=>{t(Object.values(n),s)})}function Nt(o,e){const{syncConnectedChain:t=o._internal.syncConnectedChain,...n}=e;let s;const i=u=>{s&&s();const a=o.getClient({chainId:u});return s=U(a,rt,"watchPendingTransactions")(n),s},d=i(e.chainId);let c;return t&&!e.chainId&&(c=o.subscribe(({chainId:u})=>u,async u=>i(u))),()=>{d==null||d(),c==null||c()}}async function Et(o,e){const{account:t,chainId:n,connector:s,...i}=e;let d;typeof t=="object"&&(t==null?void 0:t.type)==="local"?d=o.getClient({chainId:n}):d=await G(o,{account:t??void 0,assertChainId:!1,chainId:n,connector:s});const c=(()=>{var r;return!n||((r=d.chain)==null?void 0:r.id)===n?d.chain:{id:n}})();return await U(d,Je,"writeContract")({...i,...t?{account:t}:{},assertChainId:!!n,chain:c})}function sn(o){return o}ae.type="injected";function ae(o={}){const{shimDisconnect:e=!0,unstable_shimAsyncInject:t}=o;function n(){const u=o.target;if(typeof u=="function"){const a=u();if(a)return a}return typeof u=="object"?u:typeof u=="string"?{...St[u]??{id:u,name:`${u[0].toUpperCase()}${u.slice(1)}`,provider:`is${u[0].toUpperCase()}${u.slice(1)}`}}:{id:"injected",name:"Injected",provider(a){return a==null?void 0:a.ethereum}}}let s,i,d,c;return u=>({get icon(){return n().icon},get id(){return n().id},get name(){return n().name},type:ae.type,async setup(){const a=await this.getProvider();a!=null&&a.on&&o.target&&(d||(d=this.onConnect.bind(this),a.on("connect",d)),s||(s=this.onAccountsChanged.bind(this),a.on("accountsChanged",s)))},async connect({chainId:a,isReconnecting:r,withCapabilities:l}={}){var p,m,I,v,y,E;const g=await this.getProvider();if(!g)throw new L;let f=[];if(r)f=await this.getAccounts().catch(()=>[]);else if(e)try{f=(v=(I=(m=(p=(await g.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]}))[0])==null?void 0:p.caveats)==null?void 0:m[0])==null?void 0:I.value)==null?void 0:v.map(h=>q(h)),f.length>0&&(f=await this.getAccounts())}catch(N){const h=N;if(h.code===_.code)throw new _(h);if(h.code===de.code)throw h}try{!(f!=null&&f.length)&&!r&&(f=(await g.request({method:"eth_requestAccounts"})).map(C=>q(C))),d&&(g.removeListener("connect",d),d=void 0),s||(s=this.onAccountsChanged.bind(this),g.on("accountsChanged",s)),i||(i=this.onChainChanged.bind(this),g.on("chainChanged",i)),c||(c=this.onDisconnect.bind(this),g.on("disconnect",c));let N=await this.getChainId();if(a&&N!==a){const h=await this.switchChain({chainId:a}).catch(C=>{if(C.code===_.code)throw C;return{id:N}});N=(h==null?void 0:h.id)??N}return e&&await((y=u.storage)==null?void 0:y.removeItem(`${this.id}.disconnected`)),o.target||await((E=u.storage)==null?void 0:E.setItem("injected.connected",!0)),{accounts:l?f.map(h=>({address:h,capabilities:{}})):f,chainId:N}}catch(N){const h=N;throw h.code===_.code?new _(h):h.code===de.code?new de(h):h}},async disconnect(){var r,l;const a=await this.getProvider();if(!a)throw new L;i&&(a.removeListener("chainChanged",i),i=void 0),c&&(a.removeListener("disconnect",c),c=void 0),d||(d=this.onConnect.bind(this),a.on("connect",d));try{await Te(()=>a.request({method:"wallet_revokePermissions",params:[{eth_accounts:{}}]}),{timeout:100})}catch{}e&&await((r=u.storage)==null?void 0:r.setItem(`${this.id}.disconnected`,!0)),o.target||await((l=u.storage)==null?void 0:l.removeItem("injected.connected"))},async getAccounts(){const a=await this.getProvider();if(!a)throw new L;return(await a.request({method:"eth_accounts"})).map(l=>q(l))},async getChainId(){const a=await this.getProvider();if(!a)throw new L;const r=await a.request({method:"eth_chainId"});return Number(r)},async getProvider(){if(typeof window>"u")return;let a;const r=n();return typeof r.provider=="function"?a=r.provider(window):typeof r.provider=="string"?a=oe(window,r.provider):a=r.provider,a&&!a.removeListener&&("off"in a&&typeof a.off=="function"?a.removeListener=a.off:a.removeListener=()=>{}),a},async isAuthorized(){var a,r;try{if(e&&await((a=u.storage)==null?void 0:a.getItem(`${this.id}.disconnected`))||!o.target&&!await((r=u.storage)==null?void 0:r.getItem("injected.connected")))return!1;if(!await this.getProvider()){if(t!==void 0&&t!==!1){const p=async()=>(typeof window<"u"&&window.removeEventListener("ethereum#initialized",p),!!await this.getProvider()),m=typeof t=="number"?t:1e3;if(await Promise.race([...typeof window<"u"?[new Promise(v=>window.addEventListener("ethereum#initialized",()=>v(p()),{once:!0}))]:[],new Promise(v=>setTimeout(()=>v(p()),m))]))return!0}throw new L}return!!(await Ye(()=>this.getAccounts())).length}catch{return!1}},async switchChain({addEthereumChainParameter:a,chainId:r}){var p,m,I,v;const l=await this.getProvider();if(!l)throw new L;const g=u.chains.find(y=>y.id===r);if(!g)throw new B(new V);const f=new Promise(y=>{const E=N=>{"chainId"in N&&N.chainId===r&&(u.emitter.off("change",E),y())};u.emitter.on("change",E)});try{return await Promise.all([l.request({method:"wallet_switchEthereumChain",params:[{chainId:re(r)}]}).then(async()=>{await this.getChainId()===r&&u.emitter.emit("change",{chainId:r})}),f]),g}catch(y){const E=y;if(E.code===4902||((m=(p=E==null?void 0:E.data)==null?void 0:p.originalError)==null?void 0:m.code)===4902)try{const{default:N,...h}=g.blockExplorers??{};let C;a!=null&&a.blockExplorerUrls?C=a.blockExplorerUrls:N&&(C=[N.url,...Object.values(h).map(b=>b.url)]);let w;(I=a==null?void 0:a.rpcUrls)!=null&&I.length?w=a.rpcUrls:w=[((v=g.rpcUrls.default)==null?void 0:v.http[0])??""];const A={blockExplorerUrls:C,chainId:re(r),chainName:(a==null?void 0:a.chainName)??g.name,iconUrls:a==null?void 0:a.iconUrls,nativeCurrency:(a==null?void 0:a.nativeCurrency)??g.nativeCurrency,rpcUrls:w};return await Promise.all([l.request({method:"wallet_addEthereumChain",params:[A]}).then(async()=>{if(await this.getChainId()===r)u.emitter.emit("change",{chainId:r});else throw new _(new Error("User rejected switch after adding network."))}),f]),g}catch(N){throw new _(N)}throw E.code===_.code?new _(E):new B(E)}},async onAccountsChanged(a){var r;if(a.length===0)this.onDisconnect();else if(u.emitter.listenerCount("connect")){const l=(await this.getChainId()).toString();this.onConnect({chainId:l}),e&&await((r=u.storage)==null?void 0:r.removeItem(`${this.id}.disconnected`))}else u.emitter.emit("change",{accounts:a.map(l=>q(l))})},onChainChanged(a){const r=Number(a);u.emitter.emit("change",{chainId:r})},async onConnect(a){const r=await this.getAccounts();if(r.length===0)return;const l=Number(a.chainId);u.emitter.emit("connect",{accounts:r,chainId:l});const g=await this.getProvider();g&&(d&&(g.removeListener("connect",d),d=void 0),s||(s=this.onAccountsChanged.bind(this),g.on("accountsChanged",s)),i||(i=this.onChainChanged.bind(this),g.on("chainChanged",i)),c||(c=this.onDisconnect.bind(this),g.on("disconnect",c)))},async onDisconnect(a){const r=await this.getProvider();a&&a.code===1013&&r&&(await this.getAccounts()).length||(u.emitter.emit("disconnect"),r&&(i&&(r.removeListener("chainChanged",i),i=void 0),c&&(r.removeListener("disconnect",c),c=void 0),d||(d=this.onConnect.bind(this),r.on("connect",d))))}})}const St={coinbaseWallet:{id:"coinbaseWallet",name:"Coinbase Wallet",provider(o){return o!=null&&o.coinbaseWalletExtension?o.coinbaseWalletExtension:oe(o,"isCoinbaseWallet")}},metaMask:{id:"metaMask",name:"MetaMask",provider(o){return oe(o,e=>{if(!e.isMetaMask||e.isBraveWallet&&!e._events&&!e._state)return!1;const t=["isApexWallet","isAvalanche","isBitKeep","isBlockWallet","isKuCoinWallet","isMathWallet","isOkxWallet","isOKExWallet","isOneInchIOSWallet","isOneInchAndroidWallet","isOpera","isPhantom","isPortal","isRabby","isTokenPocket","isTokenary","isUniswapWallet","isZerion"];for(const n of t)if(e[n])return!1;return!0})}},phantom:{id:"phantom",name:"Phantom",provider(o){var e,t;return(e=o==null?void 0:o.phantom)!=null&&e.ethereum?(t=o.phantom)==null?void 0:t.ethereum:oe(o,"isPhantom")}}};function oe(o,e){function t(s){return typeof e=="function"?e(s):typeof e=="string"?s[e]:!0}const n=o.ethereum;if(n!=null&&n.providers)return n.providers.find(s=>t(s));if(n&&t(n))return n}const _t=o=>(e,t,n)=>{const s=n.subscribe;return n.subscribe=(d,c,u)=>{let a=d;if(c){const r=(u==null?void 0:u.equalityFn)||Object.is;let l=d(n.getState());a=g=>{const f=d(g);if(!r(l,f)){const p=l;c(l=f,p)}},u!=null&&u.fireImmediately&&c(l,l)}return s(a)},o(e,t,n)},Tt=_t;function Pt(o,e){let t;try{t=o()}catch{return}return{getItem:s=>{var i;const d=u=>u===null?null:JSON.parse(u,e==null?void 0:e.reviver),c=(i=t.getItem(s))!=null?i:null;return c instanceof Promise?c.then(d):d(c)},setItem:(s,i)=>t.setItem(s,JSON.stringify(i,e==null?void 0:e.replacer)),removeItem:s=>t.removeItem(s)}}const me=o=>e=>{try{const t=o(e);return t instanceof Promise?t:{then(n){return me(n)(t)},catch(n){return this}}}catch(t){return{then(n){return this},catch(n){return me(n)(t)}}}},kt=(o,e)=>(t,n,s)=>{let i={storage:Pt(()=>localStorage),partialize:m=>m,version:0,merge:(m,I)=>({...I,...m}),...e},d=!1;const c=new Set,u=new Set;let a=i.storage;if(!a)return o((...m)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),t(...m)},n,s);const r=()=>{const m=i.partialize({...n()});return a.setItem(i.name,{state:m,version:i.version})},l=s.setState;s.setState=(m,I)=>{l(m,I),r()};const g=o((...m)=>{t(...m),r()},n,s);s.getInitialState=()=>g;let f;const p=()=>{var m,I;if(!a)return;d=!1,c.forEach(y=>{var E;return y((E=n())!=null?E:g)});const v=((I=i.onRehydrateStorage)==null?void 0:I.call(i,(m=n())!=null?m:g))||void 0;return me(a.getItem.bind(a))(i.name).then(y=>{if(y)if(typeof y.version=="number"&&y.version!==i.version){if(i.migrate)return[!0,i.migrate(y.state,y.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,y.state];return[!1,void 0]}).then(y=>{var E;const[N,h]=y;if(f=i.merge(h,(E=n())!=null?E:g),t(f,!0),N)return r()}).then(()=>{v==null||v(f,void 0),f=n(),d=!0,u.forEach(y=>y(f))}).catch(y=>{v==null||v(void 0,y)})};return s.persist={setOptions:m=>{i={...i,...m},m.storage&&(a=m.storage)},clearStorage:()=>{a==null||a.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>p(),hasHydrated:()=>d,onHydrate:m=>(c.add(m),()=>{c.delete(m)}),onFinishHydration:m=>(u.add(m),()=>{u.delete(m)})},i.skipHydration||p(),f||g},Rt=kt,Ne=o=>{let e;const t=new Set,n=(a,r)=>{const l=typeof a=="function"?a(e):a;if(!Object.is(l,e)){const g=e;e=r??(typeof l!="object"||l===null)?l:Object.assign({},e,l),t.forEach(f=>f(e,g))}},s=()=>e,c={setState:n,getState:s,getInitialState:()=>u,subscribe:a=>(t.add(a),()=>t.delete(a))},u=e=o(n,s,c);return c},fe=o=>o?Ne(o):Ne;class Ot{constructor(e){Object.defineProperty(this,"uid",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"_emitter",{enumerable:!0,configurable:!0,writable:!0,value:new Ze.EventEmitter})}on(e,t){this._emitter.on(e,t)}once(e,t){this._emitter.once(e,t)}off(e,t){this._emitter.off(e,t)}emit(e,...t){const n=t[0];this._emitter.emit(e,{uid:this.uid,...n})}listenerCount(e){return this._emitter.listenerCount(e)}}function Ut(o){return new Ot(o)}function jt(o,e){return JSON.parse(o,(t,n)=>{let s=n;return(s==null?void 0:s.__type)==="bigint"&&(s=BigInt(s.value)),(s==null?void 0:s.__type)==="Map"&&(s=new Map(s.value)),(e==null?void 0:e(t,s))??s})}function Ee(o,e){return o.slice(0,e).join(".")||"."}function Se(o,e){const{length:t}=o;for(let n=0;n<t;++n)if(o[n]===e)return n+1;return 0}function Mt(o,e){const t=typeof o=="function",n=typeof e=="function",s=[],i=[];return function(c,u){if(typeof u=="object")if(s.length){const a=Se(s,this);a===0?s[s.length]=this:(s.splice(a),i.splice(a)),i[i.length]=c;const r=Se(s,u);if(r!==0)return n?e.call(this,c,u,Ee(i,r)):`[ref=${Ee(i,r)}]`}else s[0]=u,i[0]=c;return t?o.call(this,c,u):u}}function Wt(o,e,t,n){return JSON.stringify(o,Mt((s,i)=>{let d=i;return typeof d=="bigint"&&(d={__type:"bigint",value:i.toString()}),d instanceof Map&&(d={__type:"Map",value:Array.from(i.entries())}),(e==null?void 0:e(s,d))??d},n),t??void 0)}function Lt(o){const{deserialize:e=jt,key:t="wagmi",serialize:n=Wt,storage:s=Oe}=o;function i(d){return d instanceof Promise?d.then(c=>c).catch(()=>null):d}return{...s,key:t,async getItem(d,c){const u=s.getItem(`${t}.${d}`),a=await i(u);return a?e(a)??null:c??null},async setItem(d,c){const u=`${t}.${d}`;c===null?await i(s.removeItem(u)):await i(s.setItem(u,n(c)))},async removeItem(d){await i(s.removeItem(`${t}.${d}`))}}}const Oe={getItem:()=>null,setItem:()=>{},removeItem:()=>{}};function qt(){const o=(()=>typeof window<"u"&&window.localStorage?window.localStorage:Oe)();return{getItem(e){return o.getItem(e)},removeItem(e){o.removeItem(e)},setItem(e,t){try{o.setItem(e,t)}catch{}}}}const Ce=256;let ee=Ce,te;function $t(o=11){if(!te||ee+o>Ce*2){te="",ee=0;for(let e=0;e<Ce;e++)te+=(256+Math.random()*256|0).toString(16).substring(1)}return te.substring(ee,ee+++o)}function xt(o){const{multiInjectedProviderDiscovery:e=!0,storage:t=Lt({storage:qt()}),syncConnectedChain:n=!0,ssr:s=!1,...i}=o,d=typeof window<"u"&&e?et():void 0,c=fe(()=>i.chains),u=fe(()=>{const h=[],C=new Set;for(const w of i.connectors??[]){const A=a(w);if(h.push(A),!s&&A.rdns){const b=typeof A.rdns=="string"?[A.rdns]:A.rdns;for(const T of b)C.add(T)}}if(!s&&d){const w=d.getProviders();for(const A of w)C.has(A.info.rdns)||h.push(a(r(A)))}return h});function a(h){var b;const C=Ut($t());let w;const A={...h({emitter:C,chains:c.getState(),get providers(){if(!d||!w)return[];const T=typeof w=="string"?[w]:w,R=d.getProviders();return T.flatMap(K=>R.filter(P=>P.info.rdns===K))},storage:t,transports:i.transports}),emitter:C,uid:C.uid};return w=A.rdns,C.on("connect",E),(b=A.setup)==null||b.call(A),A}function r(h){const{info:C}=h,w=h.provider;return ae({target:{...C,id:C.rdns,provider:w}})}const l=new Map;function g(h={}){const C=h.chainId??I.getState().chainId,w=c.getState().find(b=>b.id===C);if(h.chainId&&!w)throw new V;{const b=l.get(I.getState().chainId);if(b&&!w)return b;if(!w)throw new V}{const b=l.get(C);if(b)return b}let A;if(i.client)A=i.client({chain:w});else{const b=w.id,T=c.getState().map(P=>P.id),R={},K=Object.entries(i);for(const[P,$]of K)if(!(P==="chains"||P==="client"||P==="connectors"||P==="transports"))if(typeof $=="object")if(b in $)R[P]=$[b];else{if(T.some(je=>je in $))continue;R[P]=$}else R[P]=$;A=Pe({...R,chain:w,batch:R.batch??{multicall:!0},transport:P=>i.transports[b]({...P,connectors:u})})}return l.set(C,A),A}function f(){return{chainId:c.getState()[0].id,connections:new Map,current:null,status:"disconnected"}}let p;const m="0.0.0-canary-";ie.startsWith(m)?p=Number.parseInt(ie.replace(m,""),10):p=Number.parseInt(ie.split(".")[0]??"0",10);const I=fe(Tt(t?Rt(f,{migrate(h,C){if(C===p)return h;const w=f(),A=v(h,w.chainId);return{...w,chainId:A}},name:"store",partialize(h){return{connections:{__type:"Map",value:Array.from(h.connections.entries()).map(([C,w])=>{const{id:A,name:b,type:T,uid:R}=w.connector;return[C,{...w,connector:{id:A,name:b,type:T,uid:R}}]})},chainId:h.chainId,current:h.current}},merge(h,C){typeof h=="object"&&h&&"status"in h&&delete h.status;const w=v(h,C.chainId);return{...C,...h,chainId:w}},skipHydration:s,storage:t,version:p}):f));I.setState(f());function v(h,C){return h&&typeof h=="object"&&"chainId"in h&&typeof h.chainId=="number"&&c.getState().some(w=>w.id===h.chainId)?h.chainId:C}n&&I.subscribe(({connections:h,current:C})=>{var w;return C?(w=h.get(C))==null?void 0:w.chainId:void 0},h=>{if(c.getState().some(w=>w.id===h))return I.setState(w=>({...w,chainId:h??w.chainId}))}),d==null||d.subscribe(h=>{const C=new Set,w=new Set;for(const b of u.getState())if(C.add(b.id),b.rdns){const T=typeof b.rdns=="string"?[b.rdns]:b.rdns;for(const R of T)w.add(R)}const A=[];for(const b of h){if(w.has(b.info.rdns))continue;const T=a(r(b));C.has(T.id)||A.push(T)}t&&!I.persist.hasHydrated()||u.setState(b=>[...b,...A],!0)});function y(h){I.setState(C=>{const w=C.connections.get(h.uid);return w?{...C,connections:new Map(C.connections).set(h.uid,{accounts:h.accounts??w.accounts,chainId:h.chainId??w.chainId,connector:w.connector})}:C})}function E(h){I.getState().status==="connecting"||I.getState().status==="reconnecting"||I.setState(C=>{const w=u.getState().find(A=>A.uid===h.uid);return w?(w.emitter.listenerCount("connect")&&w.emitter.off("connect",y),w.emitter.listenerCount("change")||w.emitter.on("change",y),w.emitter.listenerCount("disconnect")||w.emitter.on("disconnect",N),{...C,connections:new Map(C.connections).set(h.uid,{accounts:h.accounts,chainId:h.chainId,connector:w}),current:h.uid,status:"connected"}):C})}function N(h){I.setState(C=>{const w=C.connections.get(h.uid);if(w){const b=w.connector;b.emitter.listenerCount("change")&&w.connector.emitter.off("change",y),b.emitter.listenerCount("disconnect")&&w.connector.emitter.off("disconnect",N),b.emitter.listenerCount("connect")||w.connector.emitter.on("connect",E)}if(C.connections.delete(h.uid),C.connections.size===0)return{...C,connections:new Map,current:null,status:"disconnected"};const A=C.connections.values().next().value;return{...C,connections:new Map(C.connections),current:A.connector.uid}})}return{get chains(){return c.getState()},get connectors(){return u.getState()},storage:t,getClient:g,get state(){return I.getState()},setState(h){let C;typeof h=="function"?C=h(I.getState()):C=h;const w=f();typeof C!="object"&&(C=w),Object.keys(w).some(b=>!(b in C))&&(C=w),I.setState(C,!0)},subscribe(h,C,w){return I.subscribe(h,C,w?{...w,fireImmediately:w.emitImmediately}:void 0)},_internal:{mipd:d,async revalidate(){const h=I.getState(),C=h.connections;let w=h.current;for(const[,A]of C){const b=A.connector;b.isAuthorized&&await b.isAuthorized()||(C.delete(b.uid),w===b.uid&&(w=null))}I.setState(A=>({...A,connections:C,current:w}))},store:I,ssr:!!s,syncConnectedChain:n,transports:i.transports,chains:{setState(h){const C=typeof h=="function"?h(c.getState()):h;if(C.length!==0)return c.setState(C,!0)},subscribe(h){return c.subscribe(h)}},connectors:{providerDetailToConnector:r,setup:a,setState(h){return u.setState(typeof h=="function"?h(u.getState()):h,!0)},subscribe(h){return u.subscribe(h)}},events:{change:y,connect:E,disconnect:N}}}}function Ue(o){let e=[],t,n;function s(c){var r,l;const u=k.getCaipNetworks(S.CHAIN.EVM);let a=Number(ge.parseEvmChainId(c));if(!u.some(g=>String(g.id)===String(c))){const g=((r=k.getActiveCaipNetwork(S.CHAIN.EVM))==null?void 0:r.id)||((l=u[0])==null?void 0:l.id);g&&Number.isInteger(Number(g))&&(a=Number(g))}if(!a)throw new Error("ChainId not found in networks");return a}function i(){var c;return t||(t=Ie.getInstance({projectId:o.options.projectId,chainId:(c=J())==null?void 0:c.caipNetworkId,enableLogger:o.options.enableAuthLogger,onTimeout:u=>{u==="iframe_load_failed"?x.open(W.ALERT_ERRORS.IFRAME_LOAD_FAILED,"error"):u==="iframe_request_timeout"?x.open(W.ALERT_ERRORS.IFRAME_REQUEST_TIMEOUT,"error"):u==="unverified_domain"&&x.open(W.ALERT_ERRORS.UNVERIFIED_DOMAIN,"error")},abortController:W.EmbeddedWalletAbortController,getActiveCaipNetwork:u=>J(u),getCaipNetworks:u=>k.getCaipNetworks(u)})),t}async function d(c={}){var m;const u=i();let a=c.chainId;if(c.isReconnecting){const I=ge.parseEvmChainId(u.getLastUsedChainId()||""),v=(m=o.chains)==null?void 0:m[0].id;if(a=I||v,!a)throw new Error("ChainId not found in provider")}const r=ye("eip155"),{address:l,chainId:g,accounts:f}=await We.authConnectorAuthenticate({authConnector:u,chainId:a,preferredAccountType:r,socialUri:c.socialUri,chainNamespace:S.CHAIN.EVM});e=(f==null?void 0:f.map(I=>I.address))||[l];const p=s(g);return{accounts:e,account:l,chainId:p,chain:{id:p,unsupported:!1}}}return c=>({id:S.CONNECTOR_ID.AUTH,name:S.CONNECTOR_NAMES.AUTH,type:"AUTH",chain:S.CHAIN.EVM,async connect(u={}){if(n){const r=await n;return{accounts:u.withCapabilities?r.accounts.map(l=>({address:l,capabilities:{}})):r.accounts,chainId:r.chainId}}n||(n=new Promise(r=>{r(d(u))}));const a=await n;return n=void 0,{accounts:u.withCapabilities?a.accounts.map(r=>({address:r,capabilities:{}})):a.accounts,chainId:a.chainId}},async disconnect(){await(await this.getProvider()).disconnect()},getAccounts(){return e!=null&&e.length?(c.emitter.emit("change",{accounts:e}),Promise.resolve(e)):Promise.resolve([])},async getProvider(){var u;return this.provider||(this.provider=Ie.getInstance({projectId:o.options.projectId,chainId:(u=J())==null?void 0:u.caipNetworkId,enableLogger:o.options.enableAuthLogger,abortController:W.EmbeddedWalletAbortController,onTimeout:a=>{a==="iframe_load_failed"?x.open(W.ALERT_ERRORS.IFRAME_LOAD_FAILED,"error"):a==="iframe_request_timeout"?x.open(W.ALERT_ERRORS.IFRAME_REQUEST_TIMEOUT,"error"):a==="unverified_domain"&&x.open(W.ALERT_ERRORS.UNVERIFIED_DOMAIN,"error")},getActiveCaipNetwork:a=>J(a),getCaipNetworks:a=>k.getCaipNetworks(a)})),Promise.resolve(this.provider)},async getChainId(){const u=await this.getProvider(),{chainId:a}=await u.getChainId();return s(a)},async isAuthorized(){const a=k.state.activeChain===S.CHAIN.EVM;if(S.AUTH_CONNECTOR_SUPPORTED_CHAINS.some(g=>Me.getConnectorId(g)===S.CONNECTOR_ID.AUTH)&&!a)return!1;const l=await this.getProvider();return Promise.resolve(l.getLoginEmailUsed())},async switchChain({chainId:u}){var a;try{const r=c.chains.find(p=>p.id===u);if(!r)throw new B(new Error("chain not found on connector."));const l=await this.getProvider(),g=ye("eip155"),f=await l.connect({chainId:u,preferredAccountType:g});return e=((a=f==null?void 0:f.accounts)==null?void 0:a.map(p=>p.address))||[f.address],c.emitter.emit("change",{chainId:Number(u),accounts:e}),r}catch(r){throw r instanceof Error?new B(r):r}},onAccountsChanged(u){u.length===0?this.onDisconnect():c.emitter.emit("change",{accounts:u.map(q)})},onChainChanged(u){const a=Number(u);c.emitter.emit("change",{chainId:a})},async onDisconnect(u){await(await this.getProvider()).disconnect()}})}pe.type="walletConnect";function pe(o){const e=o.isNewChainsStale??!0;let t,n,s,i,d,c,u;return a=>({id:"walletConnect",name:"WalletConnect",type:pe.type,provider:o.universalProvider,async setup(){const r=await this.getProvider().catch(()=>null);r&&(i||(i=this.onConnect.bind(this),r.on("connect",i)),c||(c=this.onSessionDelete.bind(this),r.on("session_delete",c)))},async connect({...r}={}){var l,g,f;try{const p=k.getCaipNetworks(),m=await this.getProvider();if(!m)throw new L;d||(d=this.onDisplayUri,m.on("display_uri",d));const I=await this.isChainsStale();m.session&&I&&await m.disconnect();const v=D.state.universalProviderConfigOverride;if(!m.session||I){const A=Le.createNamespaces(p,v);await m.connect({optionalNamespaces:A,..."pairingTopic"in r?{pairingTopic:r.pairingTopic}:{}}),this.setRequestedChainsIds(p.map(b=>Number(b.id)))}const y=await this.getAccounts(),E=await this.getChainId(),N=(f=(g=(l=m.session)==null?void 0:l.namespaces)==null?void 0:g.eip155)==null?void 0:f.chains,h=N==null?void 0:N.some(A=>Number(A.split(":")[1])===E);let C=1;h?C=E:N!=null&&N[0]&&(C=Number(N[0].split(":")[1])),d&&(m.removeListener("display_uri",d),d=void 0),i&&(m.removeListener("connect",i),i=void 0),n||(n=this.onAccountsChanged.bind(this),m.on("accountsChanged",n)),s||(s=this.onChainChanged.bind(this),m.on("chainChanged",s)),u||(u=this.onDisconnect.bind(this),m.on("disconnect",u)),c||(c=this.onSessionDelete.bind(this),m.on("session_delete",c));const w=v==null?void 0:v.defaultChain;return m.setDefaultChain(w??`eip155:${C}`),{accounts:y,chainId:C}}catch(p){throw/(user rejected|connection request reset)/i.test(p==null?void 0:p.message)?new _(p):p}},async disconnect(){const r=await this.getProvider();try{await(r==null?void 0:r.disconnect())}catch(l){if(!/No matching key/i.test(l.message))throw l}finally{s&&(r==null||r.removeListener("chainChanged",s),s=void 0),u&&(r==null||r.removeListener("disconnect",u),u=void 0),i||(i=this.onConnect.bind(this),r==null||r.on("connect",i)),n&&(r==null||r.removeListener("accountsChanged",n),n=void 0),c&&(r==null||r.removeListener("session_delete",c),c=void 0),this.setRequestedChainsIds([])}},async getAccounts(){var m,I,v;const r=await this.getProvider();if(!((m=r==null?void 0:r.session)!=null&&m.namespaces))return[];const l=(v=(I=r==null?void 0:r.session)==null?void 0:I.namespaces[S.CHAIN.EVM])==null?void 0:v.accounts,g=(l==null?void 0:l.map(y=>y.split(":")[2]))??[],f=new Set;return g.filter(y=>{const E=y==null?void 0:y.toLowerCase();return f.has(E)?!1:(f.add(E),!0)})},async getProvider({chainId:r}={}){var f,p;t||(t=o.universalProvider,t==null||t.events.setMaxListeners(Number.POSITIVE_INFINITY));const l=H.getActiveNamespace(),g=(f=k.getActiveCaipNetwork())==null?void 0:f.id;if(r&&g!==r&&l){const m=H.getStoredActiveCaipNetworkId(),I=l?k.getCaipNetworks(l):[],v=I==null?void 0:I.find(y=>y.id===m);v&&v.chainNamespace===S.CHAIN.EVM&&await((p=this.switchChain)==null?void 0:p.call(this,{chainId:Number(v.id)}))}return t},async getChainId(){var p,m,I,v;const r=(p=k.getActiveCaipNetwork(S.CHAIN.EVM))==null?void 0:p.id;if(r)return r;const g=(v=(I=(m=(await this.getProvider()).session)==null?void 0:m.namespaces[S.CHAIN.EVM])==null?void 0:I.chains)==null?void 0:v[0],f=k.getCaipNetworks().find(y=>y.id===g);return f==null?void 0:f.id},async isAuthorized(){try{const[r,l]=await Promise.all([this.getAccounts(),this.getProvider()]);return r.length?await this.isChainsStale()&&l.session?(await l.disconnect().catch(()=>{}),!1):!0:!1}catch{return!1}},async switchChain({addEthereumChainParameter:r,chainId:l}){var p,m,I,v;const g=await this.getProvider();if(!g)throw new L;const f=k.getCaipNetworks().find(y=>y.id===l);if(!f)throw new B(new V);try{await g.request({method:"wallet_switchEthereumChain",params:[{chainId:re(l)}]}),f!=null&&f.caipNetworkId&&g.setDefaultChain(f==null?void 0:f.caipNetworkId),a.emitter.emit("change",{chainId:Number(l)});const y=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...y,l]),{...f,id:f.id}}catch(y){const E=y;if(/(?:user rejected)/iu.test(E.message))throw new _(E);try{let N;r!=null&&r.blockExplorerUrls?N=r.blockExplorerUrls:N=(p=f.blockExplorers)!=null&&p.default.url?[(m=f.blockExplorers)==null?void 0:m.default.url]:[];const h=((v=(I=f.rpcUrls)==null?void 0:I.chainDefault)==null?void 0:v.http)||[],C={blockExplorerUrls:N,chainId:re(l),chainName:f.name,iconUrls:r==null?void 0:r.iconUrls,nativeCurrency:f.nativeCurrency,rpcUrls:h};await g.request({method:"wallet_addEthereumChain",params:[C]});const w=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...w,l]),{...f,id:f.id}}catch(N){throw new _(N)}}},onAccountsChanged(r){r.length===0?this.onDisconnect():a.emitter.emit("change",{accounts:r.map(l=>q(l))})},onChainChanged(r){const l=Number(r);a.emitter.emit("change",{chainId:l})},onConnect(r){this.setRequestedChainsIds(k.getCaipNetworks().map(l=>Number(l.id)))},async onDisconnect(r){this.setRequestedChainsIds([]),a.emitter.emit("disconnect");const l=await this.getProvider();n&&(l.removeListener("accountsChanged",n),n=void 0),s&&(l.removeListener("chainChanged",s),s=void 0),u&&(l.removeListener("disconnect",u),u=void 0),c&&(l.removeListener("session_delete",c),c=void 0),i||(i=this.onConnect.bind(this),l.on("connect",i))},onDisplayUri(r){a.emitter.emit("message",{type:"display_uri",data:r})},onSessionDelete(){this.onDisconnect()},getNamespaceChainsIds(){var g,f,p;if(!((g=t==null?void 0:t.session)!=null&&g.namespaces))return[];const r=(p=(f=t==null?void 0:t.session)==null?void 0:f.namespaces[S.CHAIN.EVM])==null?void 0:p.accounts;return(r==null?void 0:r.map(m=>Number.parseInt(m.split(":")[1]??"")))??[]},async getRequestedChainsIds(){var l;const r=await((l=a.storage)==null?void 0:l.getItem(this.requestedChainsStorageKey))??[];return[...new Set(r)]},async isChainsStale(){if(!e)return!1;const r=a.chains.map(f=>f.id),l=this.getNamespaceChainsIds();if(l.length&&!l.some(f=>r.includes(f)))return!1;const g=await this.getRequestedChainsIds();return!r.every(f=>g.includes(Number(f)))},async setRequestedChainsIds(r){var l;await((l=a.storage)==null?void 0:l.setItem(this.requestedChainsStorageKey,r))},get requestedChainsStorageKey(){return`${this.id}.requestedChains`}})}const F=qe({pendingTransactions:0}),_e={state:F,subscribeKey(o,e){return $e(F,o,e)},increase(o){F[o]+=1},decrease(o){F[o]-=1},reset(o){F[o]=0}};async function Dt(o){if(ne.isSafeApp()){const{safe:e}=await we(()=>import("./index-87dbd00f.js"),["assets/index-87dbd00f.js","assets/index-15e7c060.js","assets/index-90155201.css","assets/writeContract-1a4ef85b.js","assets/createBatchScheduler-7c9ada66.js","assets/http-a4cf4808.js","assets/custom-9004b4b3.js","assets/compat-71a66acb.js","assets/W3MFrameProviderSingleton-9b881e0b.js","assets/index-5a8bf9c4.js","assets/NetworkUtil-d5c36eeb.js","assets/index-00639714.js","assets/store-af6293b2.js"]);if(e&&!o.some(t=>t.type==="safe"))return e()}return null}async function Ht(o){try{const{baseAccount:e}=await we(()=>import("./index-87dbd00f.js"),["assets/index-87dbd00f.js","assets/index-15e7c060.js","assets/index-90155201.css","assets/writeContract-1a4ef85b.js","assets/createBatchScheduler-7c9ada66.js","assets/http-a4cf4808.js","assets/custom-9004b4b3.js","assets/compat-71a66acb.js","assets/W3MFrameProviderSingleton-9b881e0b.js","assets/index-5a8bf9c4.js","assets/NetworkUtil-d5c36eeb.js","assets/index-00639714.js","assets/store-af6293b2.js"]);if(e&&!o.some(t=>t.id==="baseAccount"))return e()}catch(e){console.error("Failed to import Base Account SDK:",e)}return null}async function Ft(o,e){try{const{coinbaseWallet:t}=await we(()=>import("./index-87dbd00f.js"),["assets/index-87dbd00f.js","assets/index-15e7c060.js","assets/index-90155201.css","assets/writeContract-1a4ef85b.js","assets/createBatchScheduler-7c9ada66.js","assets/http-a4cf4808.js","assets/custom-9004b4b3.js","assets/compat-71a66acb.js","assets/W3MFrameProviderSingleton-9b881e0b.js","assets/index-5a8bf9c4.js","assets/NetworkUtil-d5c36eeb.js","assets/index-00639714.js","assets/store-af6293b2.js"]);if(t&&!o.some(n=>n.id==="coinbaseWallet"))return t({preference:e})}catch(t){console.error("Failed to import Coinbase Wallet SDK:",t)}return null}const Bt={enable:!1,pollingInterval:3e4};class Vt extends xe{constructor(e){const t=X.extendCaipNetworks(e.networks,{projectId:e.projectId,customNetworkImageUrls:{},customRpcUrls:e.customRpcUrls});super(),this.balancePromises={},this.namespace=S.CHAIN.EVM,this.adapterType=S.ADAPTER_TYPES.WAGMI,this.projectId=e.projectId,this.pendingTransactionsFilter={...Bt,...e.pendingTransactionsFilter??{}},this.createConfig({...e,networks:t}),this.checkChainId()}construct(e){this.checkChainId(),this.setupWatchers()}async getAccounts(e){const t=this.getWagmiConnector(e.id);if(!t)return{accounts:[]};if(t.id===S.CONNECTOR_ID.AUTH){const d=await t.getProvider();if(!(d!=null&&d.user))return{accounts:[]};const{address:c,accounts:u,chainId:a}=d.user;return Promise.resolve({accounts:(u||[{address:c,type:"eoa"}]).map(r=>ne.createAccount({caipAddress:`eip155:${a}:${r.address}`,type:r.type}))})}const{addresses:n,address:s,chainId:i}=se(this.wagmiConfig);return Promise.resolve({accounts:i?[...new Set(n||[s])].map(d=>ne.createAccount({caipAddress:`eip155:${i}:${d||""}`,type:"eoa"})):[]})}checkChainId(){const{chainId:e}=se(this.wagmiConfig);e&&this.emit("switchNetwork",{chainId:e})}getWagmiConnector(e){return this.wagmiConfig.connectors.find(t=>t.id===e)}createConfig(e){this.wagmiChains=e.networks.filter(s=>s.chainNamespace===S.CHAIN.EVM);const t={},n=[...e.connectors??[]];this.wagmiChains.forEach(s=>{var c,u;const i=(c=e.transports)==null?void 0:c[s.id],d=X.getCaipNetworkId(s);i?t[s.id]=X.extendWagmiTransports(s,e.projectId,i):t[s.id]=X.getViemTransport(s,e.projectId,(u=e.customRpcUrls)==null?void 0:u[d])}),this.wagmiConfig=xt({...e,chains:this.wagmiChains,connectors:n,transports:t})}setupWatchPendingTransactions(){if(!this.pendingTransactionsFilter.enable||this.unwatchPendingTransactions)return;this.unwatchPendingTransactions=Nt(this.wagmiConfig,{pollingInterval:this.pendingTransactionsFilter.pollingInterval,onError:()=>{},onTransactions:()=>{this.emit("pendingTransactions"),_e.increase("pendingTransactions")}});const e=_e.subscribeKey("pendingTransactions",t=>{var n;t>=S.LIMITS.PENDING_TRANSACTIONS&&((n=this.unwatchPendingTransactions)==null||n.call(this),e())})}setupWatchers(){vt(this.wagmiConfig,{onChange:e=>{this.clearConnections(),this.addConnection(...e.map(t=>{const n=this.getCaipNetworks().find(i=>i.id===t.chainId),s=t.connector.id===S.CONNECTOR_ID.AUTH;return{accounts:t.accounts.map(i=>({address:this.toChecksummedAddress(i)})),caipNetwork:n,connectorId:t.connector.id,auth:s?{name:H.getConnectedSocialProvider(),username:H.getConnectedSocialUsername()}:void 0}}))}}),bt(this.wagmiConfig,{onChange:(e,t)=>{var n;if(e.status==="disconnected"&&t.address&&this.emit("disconnect"),e!=null&&e.chainId&&(e==null?void 0:e.chainId)!==(t==null?void 0:t.chainId)&&this.emit("switchNetwork",{chainId:e.chainId}),e.status==="connected"){const s=e.address!==(t==null?void 0:t.address),i=e.connector.id!==((n=t.connector)==null?void 0:n.id),d=t.status!=="connected";(s||i||d)&&(this.setupWatchPendingTransactions(),this.handleAccountChanged({address:e.address,chainId:e.chainId,connector:e.connector}))}}})}async addThirdPartyConnectors(){const e=[],{enableCoinbase:t,enableBaseAccount:n,coinbasePreference:s}=D.state||{};if(n!==!1){const d=await Ht(this.wagmiConfig.connectors);d&&e.push(d)}if(t!==!1){const d=await Ft(this.wagmiConfig.connectors,s);d&&e.push(d)}const i=await Dt(this.wagmiConfig.connectors);i&&e.push(i),await Promise.all(e.map(d=>{const c=this.configureInternalConnector(d);return this.addWagmiConnector(c)}))}addWagmiConnectors(){const e=[];D.state.enableInjected!==!1&&e.push(ae({shimDisconnect:!0}));const{features:t,remoteFeatures:n,projectId:s,enableAuthLogger:i}=D.state,d=(n==null?void 0:n.email)??(t==null?void 0:t.email)??!0,c=(n==null?void 0:n.socials)??(t==null?void 0:t.socials),u=Array.isArray(c)&&(c==null?void 0:c.length)>0;(d||u)&&e.push(Ue({chains:this.wagmiChains,options:{projectId:s,enableAuthLogger:i}})),e.forEach(a=>{this.configureInternalConnector(a)})}configureInternalConnector(e){const t=this.wagmiConfig._internal.connectors.setup(e);return this.wagmiConfig._internal.connectors.setState(n=>[...n,t]),t}async handleAccountChanged({address:e,chainId:t,connector:n}){if(!this.namespace)throw new Error("WagmiAdapter:handleAccountChanged - namespace is required");const s=await n.getProvider().catch(()=>{});this.emit("accountChanged",{address:this.toChecksummedAddress(e),chainId:t,connector:{id:n.id,name:j.ConnectorNamesMap[n.id]??n.name,imageId:j.ConnectorImageIds[n.id],type:j.ConnectorTypesMap[n.type]??"EXTERNAL",info:n.id===S.CONNECTOR_ID.INJECTED?void 0:{rdns:n.id},provider:s,chain:this.namespace,chains:[]}})}async writeSolanaTransaction(){return Promise.resolve({hash:""})}async signMessage(e){try{return{signature:await pt(this.wagmiConfig,{message:e.message,account:e.address})}}catch{throw new Error("WagmiAdapter:signMessage - Sign message failed")}}async sendTransaction(e){var c;const{chainId:t,address:n}=se(this.wagmiConfig),s=(c=this.wagmiChains)==null?void 0:c.find(u=>u.id===t),i={account:n,to:e.to,value:Number.isNaN(Number(e.value))?BigInt(0):BigInt(e.value),gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,data:e.data,chain:s,type:"legacy",parameters:["nonce"]};await Ct(this.wagmiConfig,i);const d=await wt(this.wagmiConfig,i);return await yt(this.wagmiConfig,{hash:d,timeout:25e3}),{hash:d}}async writeContract(e){var c;const{caipNetwork:t,...n}=e,s=Number(ge.caipNetworkIdToNumber(t.caipNetworkId)),i=(c=this.wagmiChains)==null?void 0:c.find(u=>u.id===s);return{hash:await Et(this.wagmiConfig,{chain:i,address:n.tokenAddress,account:n.fromAddress,abi:n.abi,functionName:n.method,args:n.args,__mode:"prepared"})}}async estimateGas(e){try{return{gas:await gt(this.wagmiConfig,{account:e.address,to:e.to,data:e.data,type:"legacy"})}}catch{throw new Error("WagmiAdapter:estimateGas - error estimating gas")}}parseUnits(e){return ct(e.value,e.decimals)}formatUnits(e){return Qe(e.value,e.decimals)}async addWagmiConnector(e){if(!this.namespace)throw new Error("WagmiAdapter:addWagmiConnector - namespace is required");const{enableEIP6963:t,enableInjected:n}=D.state||{},s=e.type===S.CONNECTOR_ID.INJECTED,i=e.id===S.CONNECTOR_ID.INJECTED,d=s&&!i;if(i&&n===!1||d&&t===!1||e.id===S.CONNECTOR_ID.AUTH||e.id===S.CONNECTOR_ID.WALLET_CONNECT)return;let c;e.id!==S.CONNECTOR_ID.BASE_ACCOUNT&&(c=await e.getProvider().catch(()=>{}));const u=De.state.connectorImages;this.addConnector({id:e.id,explorerId:j.ConnectorExplorerIds[e.id]??j.ConnectorExplorerIds[e.name],imageUrl:(u==null?void 0:u[e.id])??e.icon,name:j.ConnectorNamesMap[e.id]??e.name,imageId:j.ConnectorImageIds[e.id],type:j.ConnectorTypesMap[e.type]??"EXTERNAL",info:e.id===S.CONNECTOR_ID.INJECTED?void 0:{rdns:e.id},provider:c,chain:this.namespace,chains:[]})}async syncConnectors(){At(this.wagmiConfig,{onChange:e=>{e.forEach(t=>this.addWagmiConnector(t))}}),this.addWagmiConnectors(),await Promise.all(this.wagmiConfig.connectors.map(e=>this.addWagmiConnector(e))),await this.addThirdPartyConnectors()}async syncConnections(){const e=this.connectors.filter(t=>{const{hasDisconnected:n,hasConnected:s}=Y.getConnectorStorageInfo(t.id,this.namespace);return!n&&s}).map(t=>this.getWagmiConnector(t.id)).filter(Boolean);await he(this.wagmiConfig,{connectors:e})}async syncConnection(e){var a,r;const{id:t,chainId:n}=e,i=M(this.wagmiConfig).find(l=>l.connector.id===t),d=this.getWagmiConnector(t),c=await(d==null?void 0:d.getProvider());if(ne.isSafeApp()&&t===S.CONNECTOR_ID.SAFE&&!(i!=null&&i.accounts.length)){const l=this.getWagmiConnector("safe");if(l){const g=await ue(this.wagmiConfig,{connector:l,chainId:Number(n)}),f=await l.getProvider();return{chainId:Number(n),address:this.toChecksummedAddress(g.accounts[0]),provider:f,type:(a=i==null?void 0:i.connector.type)==null?void 0:a.toUpperCase(),id:i==null?void 0:i.connector.id}}}return{chainId:Number(i==null?void 0:i.chainId),address:this.toChecksummedAddress(i==null?void 0:i.accounts[0]),provider:c,type:(r=i==null?void 0:i.connector.type)==null?void 0:r.toUpperCase(),id:i==null?void 0:i.connector.id}}async connectWalletConnect(e){try{const t=this.getWalletConnectConnector();await t.authenticate();const n=this.getWagmiConnector("walletConnect");if(!n)throw new Error("UniversalAdapter:connectWalletConnect - connector not found");const s=await ue(this.wagmiConfig,{connector:n,chainId:e?Number(e):void 0});return s.chainId!==Number(e)&&await Ae(this.wagmiConfig,{chainId:s.chainId}),{clientId:await t.provider.client.core.crypto.getClientId()}}catch(t){throw t instanceof _?new Q(t):be.isUserRejectedRequestError(t)?new Q(t):t}}async connect(e){var t,n,s,i,d;try{const{id:c,address:u,provider:a,type:r,info:l,chainId:g,socialUri:f}=e,p=this.getWagmiConnector(c);if(!p)throw new Error("connectionControllerClient:connectExternal - connector is undefined");a&&l&&p.id===S.CONNECTOR_ID.EIP6963&&((t=p.setEip6963Wallet)==null||t.call(p,{provider:a,info:l}));const m=(s=(n=this.wagmiConfig.state)==null?void 0:n.connections)==null?void 0:s.get(p.uid);if(m){await((i=this.wagmiConfig.storage)==null?void 0:i.setItem("recentConnectorId",p.id));const y=[...m.accounts].sort((E,N)=>Y.isLowerCaseMatch(E,u)?-1:Y.isLowerCaseMatch(N,u)?1:0);return(d=this.wagmiConfig)==null||d.setState(E=>({...E,connections:new Map(E.connections).set(p.uid,{accounts:y,chainId:m.chainId,connector:m.connector}),current:p.uid,status:"connected"})),{address:this.toChecksummedAddress(y[0]),chainId:m.chainId,provider:a,type:r,id:c}}const I=await ue(this.wagmiConfig,{connector:p,chainId:g?Number(g):void 0,socialUri:f}),v=a??await p.getProvider();return{address:this.toChecksummedAddress(I.accounts[0]),chainId:I.chainId,provider:v,type:r,id:c}}catch(c){throw c instanceof _?new Q(c):be.isUserRejectedRequestError(c)?new Q(c):c}}get connections(){return Array.from(this.wagmiConfig.state.connections.values()).map(e=>({accounts:e.accounts.map(t=>({address:this.toChecksummedAddress(t)})),connectorId:e.connector.id}))}async reconnect(e){const{id:t}=e,n=this.getWagmiConnector(t);if(!n)throw new Error("connectionControllerClient:connectExternal - connector is undefined");await he(this.wagmiConfig,{connectors:[n]})}async getBalance(e){const t=e.address,n=this.getCaipNetworks().find(s=>s.id===e.chainId);if(!t)return Promise.resolve({balance:"0.00",symbol:"ETH"});if(n&&this.wagmiConfig){const s=`${n.caipNetworkId}:${e.address}`,i=this.balancePromises[s];if(i)return i;const d=H.getNativeBalanceCacheForCaipAddress(s);return d?{balance:d.balance,symbol:d.symbol}:(this.balancePromises[s]=new Promise(async c=>{var u,a;try{const r=Number(e.chainId),l=await mt(this.wagmiConfig,{address:e.address,chainId:r,token:(a=(u=e.tokens)==null?void 0:u[n.caipNetworkId])==null?void 0:a.address});H.updateNativeBalanceCache({caipAddress:s,balance:l.formatted,symbol:l.symbol,timestamp:Date.now()}),c({balance:l.formatted,symbol:l.symbol})}catch(r){console.warn("Appkit:WagmiAdapter:getBalance - Error getting balance",r),c({balance:"0.00",symbol:"ETH"})}}).finally(()=>{delete this.balancePromises[s]}),this.balancePromises[s]||{balance:"0.00",symbol:"ETH"})}return{balance:"",symbol:""}}getWalletConnectProvider(){var e;return(e=this.getWagmiConnector("walletConnect"))==null?void 0:e.provider}async disconnect(e){if(e.id){const t=this.getWagmiConnector(e.id),s=M(this.wagmiConfig).find(i=>Y.isLowerCaseMatch(i.connector.id,e.id));return await ve(this.wagmiConfig,{connector:t}),D.state.enableReconnect===!1&&this.deleteConnection(e.id),s?{connections:[{accounts:s.accounts.map(i=>({address:this.toChecksummedAddress(i)})),connectorId:s.connector.id}]}:{connections:[]}}return this.disconnectAll()}async disconnectAll(){const e=M(this.wagmiConfig),t=await Promise.allSettled(e.map(async n=>{const s=this.getWagmiConnector(n.connector.id);return s&&await ve(this.wagmiConfig,{connector:s}),n}));return this.wagmiConfig.state.connections.clear(),{connections:t.filter(n=>n.status==="fulfilled").map(({value:n})=>({accounts:n.accounts.map(s=>({address:this.toChecksummedAddress(s)})),connectorId:n.connector.id}))}}async switchNetwork(e){var f,p,m,I,v;const{caipNetwork:t}=e,n=this.wagmiConfig.chains.find(y=>y.id.toString()===t.id.toString());if(!n)throw new Error("connectionControllerClient:switchNetwork - wagmiChain is undefined");const{name:s,nativeCurrency:i,rpcUrls:d,blockExplorers:c,id:u}=n,a=((m=(p=(f=t.rpcUrls)==null?void 0:f.chainDefault)==null?void 0:p.http)==null?void 0:m[0])??d.default.http[0]??"",r=(c==null?void 0:c.default.url)??((v=(I=t.blockExplorers)==null?void 0:I.default)==null?void 0:v.url)??"",l=i??t.nativeCurrency,g=s??t.name;await Ae(this.wagmiConfig,{chainId:u,addEthereumChainParameter:{chainName:g,nativeCurrency:l,rpcUrls:[a],blockExplorerUrls:[r]}}),await super.switchNetwork(e)}async getCapabilities(e){if(!this.wagmiConfig)throw new Error("connectionControllerClient:getCapabilities - wagmiConfig is undefined");const n=M(this.wagmiConfig)[0],s=n?this.getWagmiConnector(n.connector.id):null;if(!s)throw new Error("connectionControllerClient:getCapabilities - connector is undefined");const i=await s.getProvider();if(!i)throw new Error("connectionControllerClient:getCapabilities - provider is undefined");return await i.request({method:"wallet_getCapabilities",params:[e]})}async grantPermissions(e){if(!this.wagmiConfig)throw new Error("connectionControllerClient:grantPermissions - wagmiConfig is undefined");const n=M(this.wagmiConfig)[0],s=n?this.getWagmiConnector(n.connector.id):null;if(!s)throw new Error("connectionControllerClient:grantPermissions - connector is undefined");const i=await s.getProvider();if(!i)throw new Error("connectionControllerClient:grantPermissions - provider is undefined");return i.request({method:"wallet_grantPermissions",params:e})}async revokePermissions(e){if(!this.wagmiConfig)throw new Error("connectionControllerClient:revokePermissions - wagmiConfig is undefined");const n=M(this.wagmiConfig)[0],s=n?this.getWagmiConnector(n.connector.id):null;if(!s)throw new Error("connectionControllerClient:revokePermissions - connector is undefined");const i=await s.getProvider();if(!i)throw new Error("connectionControllerClient:revokePermissions - provider is undefined");return i.request({method:"wallet_revokePermissions",params:e})}async walletGetAssets(e){if(!this.wagmiConfig)throw new Error("connectionControllerClient:walletGetAssets - wagmiConfig is undefined");const n=M(this.wagmiConfig)[0],s=n?this.getWagmiConnector(n.connector.id):null;if(!s)throw new Error("connectionControllerClient:walletGetAssets - connector is undefined");const i=await s.getProvider();if(!i)throw new Error("connectionControllerClient:walletGetAssets - provider is undefined");return i.request({method:"wallet_getAssets",params:[e]})}setAuthProvider(e){if(!this.namespace)throw new Error("WagmiAdapter:setAuthProvider - namespace is required");this.addConnector({id:S.CONNECTOR_ID.AUTH,type:"AUTH",name:S.CONNECTOR_NAMES.AUTH,provider:e,imageId:j.ConnectorImageIds[S.CONNECTOR_ID.AUTH],chain:this.namespace,chains:[]})}async setUniversalProvider(e){e.on("connect",()=>{const n=M(this.wagmiConfig),s=this.getWagmiConnector("walletConnect");if(s&&!n.find(i=>i.connector.id===s.id)){if(k.state.activeChain==="eip155")return;he(this.wagmiConfig,{connectors:[s]})}});const t=pe({universalProvider:e});return this.configureInternalConnector(t),this.addConnector(new He({provider:e,caipNetworks:this.getCaipNetworks(),namespace:"eip155"})),Promise.resolve()}toChecksummedAddress(e){if(!e)return e;try{return Xe(e.toLowerCase())}catch{return e}}}const on=Object.freeze(Object.defineProperty({__proto__:null,WagmiAdapter:Vt,authConnector:Ue},Symbol.toStringTag,{value:"Module"}));export{ut as C,L as P,V as a,on as b,sn as c,ae as i};
@@ -1,4 +1,4 @@
1
- import{a as p,i as d,b as m}from"./lit-element-0711c853.js";import{n as h}from"./class-map-d7835e88.js";import{r as g,v as r}from"./index-e4a08cd9.js";import{c as x}from"./index-dd7935fc.js";const f=p`
1
+ import{a as p,i as d,b as m}from"./lit-element-0711c853.js";import{n as h}from"./class-map-d7835e88.js";import{r as g,v as r}from"./index-fab41ca4.js";import{c as x}from"./index-d244ca51.js";const f=p`
2
2
  :host {
3
3
  display: flex;
4
4
  }
@@ -1 +1 @@
1
- import{a as c,b as h,c as T,d,e as p,f as m,g as b,h as u,i as k,j as g,k as f,l as y,m as j,n as S,o as x,p as v,q as z,r as C,s as w,t as M,u as N,v as E,w as q,x as D,y as L,z as B,A as P,B as G,C as V,D as A,E as H,F as O,G as Z,H as I,I as _,J as F,K,L as U,M as R,N as X,O as J,P as Q,Q as W,R as Y,S as $,T as aa,U as sa,V as ea,W as ta,X as na,Y as ia,Z as oa,_ as ra,$ as la,a0 as ca,a1 as ha,a2 as Ta,a3 as da,a4 as pa,a5 as ma,a6 as ba,a7 as ua,a8 as ka,a9 as ga,aa as fa,ab as ya,ac as ja,ad as Sa,ae as xa,af as va,ag as za,ah as Ca,ai as wa,aj as Ma,ak as Na,al as Ea,am as qa,an as Da,ao as La,ap as Ba,aq as Pa,ar as Ga,as as Va,at as Aa,au as Ha,av as Oa,aw as Za,ax as Ia,ay as _a,az as Fa,aA as Ka,aB as Ua,aC as Ra,aD as Xa,aE as Ja,aF as Qa,aG as Wa,aH as Ya,aI as $a,aJ as as,aK as ss,aL as es,aM as ts,aN as ns,aO as is,aP as os,aQ as rs,aR as ls,aS as cs,aT as hs,aU as Ts,aV as ds,aW as ps,aX as ms,aY as bs,aZ as us,a_ as ks,a$ as gs,b0 as fs,b1 as ys,b2 as js,b3 as Ss,b4 as xs,b5 as vs,b6 as zs,b7 as Cs,b8 as ws,b9 as Ms,ba as Ns,bb as Es,bc as qs,bd as Ds,be as Ls,bf as Bs,bg as Ps,bh as Gs,bi as Vs,bj as As,bk as Hs,bl as Os,bm as Zs,bn as Is,bo as _s,bp as Fs,bq as Ks,br as Us,bs as Rs,bt as Xs,bu as Js,bv as Qs,bw as Ws,bx as Ys,by as $s,bz as ae,bA as se,bB as ee,bC as te,bD as ne,bE as ie,bF as oe,bG as re,bH as le,bI as ce,bJ as he,bK as Te,bL as de,bM as pe,bN as me,bO as be,bP as ue,bQ as ke,bR as ge,bS as fe,bT as ye,bU as je,bV as Se,bW as xe,bX as ve,bY as ze,bZ as Ce,b_ as we,b$ as Me,c0 as Ne,c1 as Ee,c2 as qe,c3 as De,c4 as Le,c5 as Be,c6 as Pe,c7 as Ge,c8 as Ve,c9 as Ae,ca as He,cb as Oe,cc as Ze,cd as Ie,ce as _e,cf as Fe,cg as Ke,ch as Ue,ci as Re,cj as Xe,ck as Je,cl as Qe,cm as We,cn as Ye,co as $e,cp as at,cq as st,cr as et,cs as tt,ct as nt,cu as it,cv as ot,cw as rt,cx as lt,cy as ct,cz as ht,cA as Tt,cB as dt,cC as pt,cD as mt,cE as bt,cF as ut,cG as kt,cH as gt,cI as ft,cJ as yt,cK as jt,cL as St,cM as xt,cN as vt,cO as zt,cP as Ct,cQ as wt,cR as Mt,cS as Nt,cT as Et,cU as qt,cV as Dt,cW as Lt,cX as Bt,cY as Pt,cZ as Gt,c_ as Vt,c$ as At,d0 as Ht,d1 as Ot,d2 as Zt,d3 as It,d4 as _t,d5 as Ft,d6 as Kt,d7 as Ut,d8 as Rt,d9 as Xt,da as Jt,db as Qt,dc as Wt,dd as Yt,de as $t,df as an,dg as sn,dh as en,di as tn,dj as nn,dk as on,dl as rn,dm as ln,dn as cn,dp as hn,dq as Tn,dr as dn,ds as pn,dt as mn,du as bn,dv as un,dw as kn,dx as gn,dy as fn,dz as yn,dA as a,dB as jn,dC as Sn,dD as xn,dE as vn,dF as zn,dG as Cn,dH as wn,dI as Mn,dJ as Nn,dK as En,dL as qn,dM as Dn,dN as Ln,dO as Bn,dP as Pn,dQ as Gn,dR as Vn,dS as An,dT as Hn,dU as On,dV as Zn,dW as In,dX as _n,dY as Fn,dZ as Kn,d_ as Un,d$ as Rn,e0 as Xn,e1 as Jn,e2 as Qn,e3 as Wn,e4 as Yn,e5 as $n,e6 as ai,e7 as si,e8 as ei,e9 as ti,ea as ni,eb as ii,ec as oi,ed as ri,ee as li,ef as ci,eg as hi,eh as Ti,ei as di,ej as pi,ek as mi,el as bi,em as ui,en as ki,eo as gi,ep as fi,eq as yi,er as ji,es as Si,et as xi,eu as vi,ev as zi,ew as Ci,ex as wi,ey as Mi,ez as Ni,eA as Ei,eB as qi,eC as Di,eD as Li,eE as Bi,eF as Pi,eG as Gi,eH as Vi,eI as Ai,eJ as Hi,eK as Oi,eL as Zi,eM as Ii,eN as _i,eO as Fi,eP as Ki,eQ as Ui,eR as Ri,eS as Xi,eT as Ji,eU as Qi,eV as Wi,eW as Yi,eX as $i,eY as ao,eZ as so,e_ as eo,e$ as to,f0 as no,f1 as io,f2 as oo,f3 as ro,f4 as lo,f5 as co,f6 as ho,f7 as To,f8 as po,f9 as mo,fa as bo,fb as uo,fc as ko,fd as go,fe as fo,ff as yo,fg as jo,fh as So,fi as xo,fj as vo,fk as zo,fl as Co,fm as wo,fn as Mo,fo as No,fp as Eo,fq as qo,fr as Do,fs as Lo,ft as Bo,fu as Po,fv as Go,fw as Vo,fx as Ao,fy as Ho,fz as Oo,fA as Zo,fB as Io,fC as _o,fD as Fo,fE as Ko,fF as Uo,fG as Ro,fH as Xo,fI as Jo,fJ as Qo,fK as Wo,fL as Yo,fM as $o,fN as ar,fO as sr,fP as er,fQ as tr,fR as nr,fS as ir,fT as or,fU as rr,fV as lr,fW as cr,fX as hr,fY as Tr,fZ as dr,f_ as pr,f$ as mr,g0 as br,g1 as ur,g2 as kr,g3 as gr,g4 as fr,g5 as yr,g6 as jr,g7 as Sr,g8 as xr,g9 as vr,ga as zr,gb as Cr,gc as wr,gd as Mr,ge as Nr,gf as Er,gg as qr,gh as Dr,gi as Lr,gj as Br,gk as Pr,gl as Gr,gm as Vr,gn as Ar,go as Hr,gp as Or,gq as Zr,gr as Ir,gs as _r,gt as Fr,gu as Kr,gv as Ur,gw as Rr,gx as Xr,gy as Jr,gz as Qr,gA as Wr,gB as Yr,gC as $r,gD as al,gE as sl,gF as el,gG as tl,gH as nl,gI as il,gJ as ol,gK as rl,gL as ll,gM as cl,gN as hl,gO as Tl,gP as dl,gQ as pl,gR as ml,gS as bl,gT as ul,gU as kl,gV as gl,gW as fl,gX as yl,gY as jl,gZ as Sl,g_ as xl,g$ as vl,h0 as zl,h1 as Cl,h2 as wl,h3 as Ml,h4 as Nl,h5 as El,h6 as ql,h7 as Dl,h8 as Ll,h9 as Bl,ha as Pl,hb as Gl,hc as Vl,hd as Al,he as Hl,hf as Ol,hg as Zl,hh as Il,hi as _l,hj as Fl,hk as Kl,hl as Ul,hm as Rl,hn as Xl,ho as Jl,hp as Ql,hq as Wl,hr as Yl,hs as $l,ht as ac,hu as sc,hv as ec,hw as tc,hx as nc,hy as ic,hz as oc,hA as rc,hB as lc,hC as cc,hD as hc,hE as Tc,hF as dc,hG as pc,hH as mc,hI as bc,hJ as uc,hK as kc,hL as gc,hM as fc,hN as yc,hO as jc,hP as Sc,hQ as xc,hR as vc,hS as zc,hT as Cc,hU as wc,hV as Mc,hW as Nc,hX as Ec,hY as qc,hZ as Dc,h_ as Lc,h$ as Bc,i0 as Pc,i1 as Gc,i2 as Vc,i3 as Ac,i4 as Hc,i5 as Oc,i6 as Zc,i7 as Ic,i8 as _c,i9 as Fc,ia as Kc,ib as Uc,ic as Rc,id as Xc,ie as Jc,ig as Qc,ih as Wc,ii as Yc,ij as s,ik as $c,il as ah,im as sh,io as eh,ip as th,iq as nh,ir as ih,is as oh,it as rh,iu as lh,iv as ch,iw as hh,ix as Th,iy as dh,iz as ph,iA as mh,iB as bh,iC as uh,iD as kh,iE as gh,iF as fh,iG as yh,iH as jh,iI as Sh,iJ as xh,iK as vh,iL as zh,iM as Ch,iN as wh,iO as Mh,iP as Nh,iQ as Eh,iR as qh,iS as Dh,iT as e,iU as Lh,iV as Bh,iW as t,iX as Ph,iY as Gh,iZ as Vh,i_ as Ah,i$ as Hh,j0 as Oh,j1 as Zh,j2 as Ih,j3 as _h,j4 as Fh,j5 as Kh,j6 as Uh,j7 as Rh,j8 as Xh,j9 as Jh,ja as Qh,jb as Wh,jc as Yh,jd as $h,je as aT,jf as sT,jg as eT,jh as tT,ji as nT,jj as iT,jk as oT,jl as rT,jm as lT,jn as cT,jo as hT,jp as TT,jq as dT,jr as pT,js as mT,jt as bT,ju as uT,jv as kT,jw as gT,jx as fT,jy as yT,jz as jT,jA as ST,jB as xT,jC as vT,jD as zT,jE as CT,jF as wT,jG as MT,jH as NT,jI as ET,jJ as n,jK as qT,jL as DT,jM as LT,jN as BT,jO as PT,jP as GT,jQ as VT,jR as AT,jS as HT,jT as OT,jU as ZT,jV as IT,jW as _T,jX as FT,jY as KT,jZ as UT,j_ as RT,j$ as XT,k0 as JT,k1 as QT,k2 as WT,k3 as YT,k4 as $T,k5 as ad,k6 as sd,k7 as ed,k8 as td,k9 as nd,ka as id,kb as od,kc as rd,kd as ld,ke as cd,kf as hd,kg as Td,kh as dd,ki as pd,kj as i,kk as o,kl as r,km as l,kn as md,ko as bd,kp as ud,kq as kd,kr as gd,ks as fd,kt as yd,ku as jd}from"./zoraTestnet-83f44c9a.js";const xd=Object.freeze(Object.defineProperty({__proto__:null,abey:c,abstract:h,abstractTestnet:T,acala:d,acria:p,adf:m,adi:b,agungTestnet:u,aioz:k,alephZero:g,alephZeroTestnet:f,alienx:y,alienxHalTestnet:j,alpenTestnet:S,ancient8:x,ancient8Sepolia:v,anvil:z,apeChain:C,apexTestnet:w,apollo:M,arbitrum:N,arbitrumGoerli:E,arbitrumNova:q,arbitrumSepolia:D,arc:L,arcTestnet:B,arenaz:P,areonNetwork:G,areonNetworkTestnet:V,areum:A,artelaTestnet:H,arthera:O,artheraTestnet:Z,assetChain:I,assetChainTestnet:_,astar:F,astarZkEVM:K,astarZkyoto:U,atletaOlympia:R,aurora:X,auroraTestnet:J,auroria:Q,autheoTestnet:W,avalanche:Y,avalancheFuji:$,b3:aa,b3Sepolia:sa,bahamut:ea,base:ta,baseGoerli:na,basePreconf:ia,baseSepolia:oa,baseSepoliaPreconf:ra,basecampTestnet:la,battlechain:ca,battlechainTestnet:ha,beam:Ta,beamTestnet:da,bearNetworkChainMainnet:pa,bearNetworkChainTestnet:ma,berachain:ba,berachainBepolia:ua,berachainTestnet:ka,berachainTestnetbArtio:ga,bevmMainnet:fa,bifrost:ya,birdlayer:ja,bitTorrent:Sa,bitTorrentTestnet:xa,bitgert:va,bitkub:za,bitkubTestnet:Ca,bitlayer:wa,bitlayerTestnet:Ma,bitrock:Na,blast:Ea,blastSepolia:qa,bob:Da,bobSepolia:La,boba:Ba,bobaSepolia:Pa,boolBetaMainnet:Ga,botanix:Va,botanixTestnet:Aa,bounceBit:Ha,bounceBitTestnet:Oa,bronos:Za,bronosTestnet:Ia,bsc:_a,bscGreenfield:Fa,bscTestnet:Ka,bsquared:Ua,bsquaredTestnet:Ra,btr:Xa,btrTestnet:Ja,bxn:Qa,bxnTestnet:Wa,cannon:Ya,canto:$a,celo:as,celoAlfajores:ss,celoSepolia:es,chang:ts,chiliz:ns,chips:is,citrate:os,citrea:rs,citreaTestnet:ls,classic:cs,codex:hs,codexTestnet:Ts,coinbit:ds,coinex:ps,confluxESpace:ms,confluxESpaceTestnet:bs,coreDao:us,coreTestnet1:ks,coreTestnet2:gs,corn:fs,cornTestnet:ys,cpchain:js,crab:Ss,creatorTestnet:xs,creditCoin3Devnet:vs,creditCoin3Mainnet:zs,creditCoin3Testnet:Cs,cronos:ws,cronosTestnet:Ms,cronoszkEVM:Ns,cronoszkEVMTestnet:Es,crossbell:qs,crossfi:Ds,curtis:Ls,cyber:Bs,cyberTestnet:Ps,dailyNetwork:Gs,dailyNetworkTestnet:Vs,darwinia:As,datahavenTestnet:Hs,dbkchain:Os,dchain:Zs,dchainTestnet:Is,defiOracleMetaMainnet:_s,defichainEvm:Fs,defichainEvmTestnet:Ks,degen:Us,dfk:Rs,diode:Xs,disChain:Js,dodochainTestnet:Qs,dogechain:Ws,domaTestnet:Ys,donatuz:$s,dosChain:ae,dosChainTestnet:se,dreyerxMainnet:ee,dreyerxTestnet:te,dustboyIoT:ne,dymension:ie,eden:oe,edexa:re,edexaTestnet:le,edgeless:ce,edgelessTestnet:he,edgeware:Te,edgewareTestnet:de,eduChain:pe,eduChainTestnet:me,elastos:be,elastosTestnet:ue,electroneum:ke,electroneumTestnet:ge,elysiumTestnet:fe,energy:ye,eni:je,eniTestnet:Se,enuls:xe,eon:ve,eos:ze,eosTestnet:Ce,eteria:we,etherlink:Me,etherlinkShadownetTestnet:Ne,etherlinkTestnet:Ee,ethernity:qe,etp:De,evmos:Le,evmosTestnet:Be,excelonMainnet:Pe,expanse:Ge,exsat:Ve,exsatTestnet:Ae,fantom:He,fantomSonicTestnet:Oe,fantomTestnet:Ze,fibo:Ie,filecoin:_e,filecoinCalibration:Fe,filecoinHyperspace:Ke,fireChain:Ue,flame:Re,flare:Xe,flareTestnet:Je,flowMainnet:Qe,flowPreviewnet:We,flowTestnet:Ye,fluence:$e,fluenceStage:at,fluenceTestnet:st,fluent:et,fluentDevnet:tt,fluentTestnet:nt,form:it,formTestnet:ot,forma:rt,formicarium:lt,forta:ct,foundry:ht,fraxtal:Tt,fraxtalTestnet:dt,funkiMainnet:pt,funkiSepolia:mt,fuse:bt,fuseSparknet:ut,fusion:kt,fusionTestnet:gt,garnet:ft,gatechain:yt,geist:jt,genesys:St,gensyn:xt,giwaSepolia:vt,giwaSepoliaPreconf:zt,glideL1Protocol:Ct,glideL2Protocol:wt,gnosis:Mt,gnosisChiado:Nt,goChain:Et,goat:qt,gobi:Dt,godwoken:Lt,goerli:Bt,graphite:Pt,graphiteTestnet:Gt,grav:Vt,gravity:At,gunz:Ht,guruNetwork:Ot,guruTestnet:Zt,ham:It,happychainTestnet:_t,haqqMainnet:Ft,haqqTestedge2:Kt,hardhat:Ut,harmonyOne:Rt,hashkey:Xt,hashkeyTestnet:Jt,hausTestnet:Qt,haustTestnet:Wt,hedera:Yt,hederaPreviewnet:$t,hederaTestnet:an,hela:sn,heliosTestnet:en,hemi:tn,hemiSepolia:nn,henesys:on,holesky:rn,hoodi:ln,horizenTestnet:cn,hpb:hn,hpp:Tn,hppSepolia:dn,huddle01Mainnet:pn,huddle01Testnet:mn,humanity:bn,humanityTestnet:un,humanode:kn,humanodeTestnet5:gn,hychain:fn,hychainTestnet:yn,hyperEvm:a,hyperliquid:a,hyperliquidEvmTestnet:jn,iSunCoin:Sn,icbNetwork:xn,idchain:vn,igra:zn,immutableZkEvm:Cn,immutableZkEvmTestnet:wn,inEVM:Mn,initVerse:Nn,initVerseGenesis:En,injective:qn,injectiveTestnet:Dn,ink:Ln,inkSepolia:Bn,iota:Pn,iotaTestnet:Gn,iotex:Vn,iotexTestnet:An,jasmyChain:Hn,jasmyChainTestnet:On,jbc:Zn,jbcTestnet:In,jocMainnet:_n,jocTestnet:Fn,jovay:Kn,jovaySepolia:Un,juneo:Rn,juneoBCH1Chain:Xn,juneoDAI1Chain:Jn,juneoDOGE1Chain:Qn,juneoEUR1Chain:Wn,juneoGLD1Chain:Yn,juneoLINK1Chain:$n,juneoLTC1Chain:ai,juneoSGD1Chain:si,juneoSocotraTestnet:ei,juneoUSD1Chain:ti,juneoUSDT1Chain:ni,juneomBTC1Chain:ii,kaia:oi,kairos:ri,kakarotSepolia:li,kakarotStarknetSepolia:ci,kardiaChain:hi,karura:Ti,katana:di,kava:pi,kavaTestnet:mi,kcc:bi,kii:ui,kiiTestnetOro:ki,kinto:gi,klaytn:fi,klaytnBaobab:yi,koi:ji,kroma:Si,kromaSepolia:xi,krown:vi,l3x:zi,l3xTestnet:Ci,ladyChain:wi,lavita:Mi,lens:Ni,lensTestnet:Ei,lestnet:qi,lightlinkPegasus:Di,lightlinkPhoenix:Li,linea:Bi,lineaGoerli:Pi,lineaSepolia:Gi,lineaTestnet:Vi,lisk:Ai,liskSepolia:Hi,loadAlphanet:Oi,localhost:Zi,loop:Ii,lukso:_i,luksoTestnet:Fi,lumiaMainnet:Ki,lumiaTestnet:Ui,lumoz:Ri,lumozTestnet:Xi,luxeports:Ji,lycan:Qi,lyra:Wi,mainnet:Yi,mandala:$i,manta:ao,mantaSepoliaTestnet:so,mantaTestnet:eo,mantle:to,mantleSepoliaTestnet:no,mantleTestnet:io,mantraDuKongEVMTestnet:oo,mantraEVM:ro,mapProtocol:lo,marooTestnet:co,marsCredit:ho,matchain:To,matchainTestnet:po,mchVerse:mo,megaeth:bo,megaethTestnet:uo,mekong:ko,meld:go,memecore:fo,merlin:yo,merlinErigonTestnet:jo,metachain:So,metachainIstanbul:xo,metadium:vo,metalL2:zo,meter:Co,meterTestnet:wo,metis:Mo,metisGoerli:No,metisSepolia:Eo,mev:qo,mevTestnet:Do,mezo:Lo,mezoTestnet:Bo,mint:Po,mintSepoliaTestnet:Go,mitosisTestnet:Vo,mizuhikiTestnetAwaji:Ao,mode:Ho,modeTestnet:Oo,monad:Zo,monadTestnet:Io,moonbaseAlpha:_o,moonbeam:Fo,moonbeamDev:Ko,moonriver:Uo,morph:Ro,morphHolesky:Xo,morphSepolia:Jo,morphTachyon:Qo,morphTachyonTestnet:Wo,nahmii:Yo,nautilus:$o,near:ar,nearTestnet:sr,neonDevnet:er,neonMainnet:tr,neoxMainnet:nr,neoxT4:ir,newton:or,nexi:rr,nexilix:lr,nibiru:cr,nitrographTestnet:hr,nomina:Tr,oasisTestnet:dr,oasys:pr,odysseyTestnet:mr,okc:br,omax:ur,omni:kr,omniOmega:gr,oneWorld:fr,oortMainnetDev:yr,opBNB:jr,opBNBTestnet:Sr,openledger:xr,optimism:vr,optimismGoerli:zr,optimismSepolia:Cr,optopia:wr,optopiaTestnet:Mr,orderly:Nr,orderlySepolia:Er,otimDevnet:qr,palm:Dr,palmTestnet:Lr,paseoPassetHub:Br,peaq:Pr,pgn:Gr,pgnTestnet:Vr,phoenix:Ar,planq:Hr,plasma:Or,plasmaDevnet:Zr,plasmaTestnet:Ir,playfiAlbireo:_r,plinga:Fr,plume:Kr,plumeDevnet:Ur,plumeMainnet:Rr,plumeSepolia:Xr,plumeTestnet:Jr,polterTestnet:Qr,polygon:Wr,polygonAmoy:Yr,polygonMumbai:$r,polygonZkEvm:al,polygonZkEvmCardona:sl,polygonZkEvmTestnet:el,polynomial:tl,polynomialSepolia:nl,potos:il,potosTestnet:ol,premiumBlockTestnet:rl,pulsechain:ll,pulsechainV4:cl,pumpfiTestnet:hl,pyrope:Tl,qMainnet:dl,qTestnet:pl,ql1:ml,quai:bl,quaiTestnet:ul,radius:kl,radiusTestnet:gl,reactiveTestnet:fl,real:yl,redbellyMainnet:jl,redbellyTestnet:Sl,reddio:xl,reddioSepolia:vl,redstone:zl,rei:Cl,reyaNetwork:wl,rise:Ml,riseTestnet:Nl,rivalz:El,robinhood:ql,robinhoodTestnet:Dl,rollux:Ll,rolluxTestnet:Bl,ronin:Pl,root:Gl,rootPorcini:Vl,rootstock:Al,rootstockTestnet:Hl,rss3:Ol,rss3Sepolia:Zl,saakuru:Il,saga:_l,saigon:Fl,sanko:Kl,sapphire:Ul,sapphireTestnet:Rl,satoshiVM:Xl,satoshiVMTestnet:Jl,scroll:Ql,scrollSepolia:Wl,sei:Yl,seiTestnet:$l,seismicDevnet:ac,sentrix:sc,sentrixTestnet:ec,sepolia:tc,shape:nc,shapeSepolia:ic,shardeum:oc,shardeumSphinx:rc,shibarium:lc,shibariumTestnet:cc,shiden:hc,shimmer:Tc,shimmerTestnet:dc,sidraChain:pc,silentData:mc,silicon:bc,siliconSepolia:uc,sixProtocol:kc,skaleBase:gc,skaleBaseSepoliaTestnet:fc,skaleBlockBrawlers:yc,skaleCalypso:jc,skaleCalypsoTestnet:Sc,skaleCryptoBlades:xc,skaleCryptoColosseum:vc,skaleEuropa:zc,skaleEuropaTestnet:Cc,skaleExorde:wc,skaleHumanProtocol:Mc,skaleNebula:Nc,skaleNebulaTestnet:Ec,skaleRazor:qc,skaleTitan:Dc,skaleTitanTestnet:Lc,sketchpad:Bc,snax:Pc,snaxTestnet:Gc,somnia:Vc,somniaTestnet:Ac,soneium:Hc,soneiumMinato:Oc,songbird:Zc,songbirdTestnet:Ic,sonic:_c,sonicBlazeTestnet:Fc,sonicTestnet:Kc,sophon:Uc,sophonTestnet:Rc,sova:Xc,sovaSepolia:Jc,spicy:Qc,stable:Wc,stableTestnet:Yc,statusNetworkSepolia:s,statusSepolia:s,step:$c,story:ah,storyAeneid:sh,storyOdyssey:eh,storyTestnet:th,stratis:nh,subtensorEvm:ih,superlumio:oh,superposition:rh,superseed:lh,superseedSepolia:ch,surgeTestnet:hh,swan:Th,swanProximaTestnet:dh,swanSaturnTestnet:ph,swellchain:mh,swellchainTestnet:bh,swissdlt:uh,syscoin:kh,syscoinTestnet:gh,tac:fh,tacSPB:yh,taiko:jh,taikoHekla:Sh,taikoHoodi:xh,taikoJolnir:vh,taikoKatla:zh,taikoTestnetSepolia:Ch,taraxa:wh,taraxaTestnet:Mh,teaSepolia:Nh,telcoinTestnet:Eh,telos:qh,telosTestnet:Dh,tempo:e,tempoDevnet:Lh,tempoLocalnet:Bh,tempoMainnet:e,tempoModerato:t,tempoTestnet:t,tenet:Ph,ternoa:Gh,thaiChain:Vh,that:Ah,theta:Hh,thetaTestnet:Oh,thunderCore:Zh,thunderTestnet:Ih,tiktrixTestnet:_h,tomb:Fh,treasure:Kh,treasureTopaz:Uh,tron:Rh,tronNile:Xh,tronShasta:Jh,ubiq:Qh,ultra:Wh,ultraTestnet:Yh,ultron:$h,ultronTestnet:aT,unichain:sT,unichainSepolia:eT,unique:tT,uniqueOpal:nT,uniqueQuartz:iT,unreal:oT,valygoNft:rT,valygoSmartchain:lT,vana:cT,vanaMoksha:hT,vanar:TT,vechain:dT,velas:pT,viction:mT,victionTestnet:bT,vision:uT,visionTestnet:kT,wanchain:gT,wanchainTestnet:fT,weaveVMAlphanet:yT,wemix:jT,wemixTestnet:ST,westendAssetHub:xT,whitechain:vT,whitechainSepolia:zT,whitechainTestnet:CT,wmcTestnet:wT,worldLand:MT,worldchain:NT,worldchainSepolia:ET,x1Testnet:n,xLayer:qT,xLayerTestnet:n,xai:DT,xaiTestnet:LT,xdc:BT,xdcTestnet:PT,xgr:GT,xoneMainnet:VT,xoneTestnet:AT,xphereMainnet:HT,xphereTestnet:OT,xpla:ZT,xrOne:IT,xrSepolia:_T,xrplevm:FT,xrplevmDevnet:KT,xrplevmTestnet:UT,ynxTestnet:RT,yooldoVerse:XT,yooldoVerseTestnet:JT,zenchainTestnet:QT,zeniq:WT,zeroG:YT,zeroGGalileoTestnet:$T,zeroGMainnet:ad,zeroGTestnet:sd,zeroNetwork:ed,zetachain:td,zetachainAthensTestnet:nd,zhejiang:id,zilliqa:od,zilliqaTestnet:rd,zircuit:ld,zircuitGarfieldTestnet:cd,zkFair:hd,zkFairTestnet:Td,zkLinkNova:dd,zkLinkNovaSepoliaTestnet:pd,zkSync:i,zkSyncInMemoryNode:o,zkSyncLocalNode:r,zkSyncSepoliaTestnet:l,zkXPLA:md,zkXPLATestnet:bd,zksync:i,zksyncInMemoryNode:o,zksyncLocalCustomHyperchain:ud,zksyncLocalHyperchain:kd,zksyncLocalHyperchainL1:gd,zksyncLocalNode:r,zksyncSepoliaTestnet:l,zora:fd,zoraSepolia:yd,zoraTestnet:jd},Symbol.toStringTag,{value:"Module"}));export{xd as c};
1
+ import{a as c,b as h,c as T,d,e as p,f as m,g as b,h as u,i as k,j as g,k as f,l as y,m as j,n as S,o as x,p as v,q as z,r as C,s as w,t as M,u as N,v as E,w as q,x as D,y as L,z as B,A as P,B as G,C as V,D as A,E as H,F as O,G as Z,H as I,I as _,J as F,K,L as U,M as R,N as X,O as J,P as Q,Q as W,R as Y,S as $,T as aa,U as sa,V as ea,W as ta,X as na,Y as ia,Z as oa,_ as ra,$ as la,a0 as ca,a1 as ha,a2 as Ta,a3 as da,a4 as pa,a5 as ma,a6 as ba,a7 as ua,a8 as ka,a9 as ga,aa as fa,ab as ya,ac as ja,ad as Sa,ae as xa,af as va,ag as za,ah as Ca,ai as wa,aj as Ma,ak as Na,al as Ea,am as qa,an as Da,ao as La,ap as Ba,aq as Pa,ar as Ga,as as Va,at as Aa,au as Ha,av as Oa,aw as Za,ax as Ia,ay as _a,az as Fa,aA as Ka,aB as Ua,aC as Ra,aD as Xa,aE as Ja,aF as Qa,aG as Wa,aH as Ya,aI as $a,aJ as as,aK as ss,aL as es,aM as ts,aN as ns,aO as is,aP as os,aQ as rs,aR as ls,aS as cs,aT as hs,aU as Ts,aV as ds,aW as ps,aX as ms,aY as bs,aZ as us,a_ as ks,a$ as gs,b0 as fs,b1 as ys,b2 as js,b3 as Ss,b4 as xs,b5 as vs,b6 as zs,b7 as Cs,b8 as ws,b9 as Ms,ba as Ns,bb as Es,bc as qs,bd as Ds,be as Ls,bf as Bs,bg as Ps,bh as Gs,bi as Vs,bj as As,bk as Hs,bl as Os,bm as Zs,bn as Is,bo as _s,bp as Fs,bq as Ks,br as Us,bs as Rs,bt as Xs,bu as Js,bv as Qs,bw as Ws,bx as Ys,by as $s,bz as ae,bA as se,bB as ee,bC as te,bD as ne,bE as ie,bF as oe,bG as re,bH as le,bI as ce,bJ as he,bK as Te,bL as de,bM as pe,bN as me,bO as be,bP as ue,bQ as ke,bR as ge,bS as fe,bT as ye,bU as je,bV as Se,bW as xe,bX as ve,bY as ze,bZ as Ce,b_ as we,b$ as Me,c0 as Ne,c1 as Ee,c2 as qe,c3 as De,c4 as Le,c5 as Be,c6 as Pe,c7 as Ge,c8 as Ve,c9 as Ae,ca as He,cb as Oe,cc as Ze,cd as Ie,ce as _e,cf as Fe,cg as Ke,ch as Ue,ci as Re,cj as Xe,ck as Je,cl as Qe,cm as We,cn as Ye,co as $e,cp as at,cq as st,cr as et,cs as tt,ct as nt,cu as it,cv as ot,cw as rt,cx as lt,cy as ct,cz as ht,cA as Tt,cB as dt,cC as pt,cD as mt,cE as bt,cF as ut,cG as kt,cH as gt,cI as ft,cJ as yt,cK as jt,cL as St,cM as xt,cN as vt,cO as zt,cP as Ct,cQ as wt,cR as Mt,cS as Nt,cT as Et,cU as qt,cV as Dt,cW as Lt,cX as Bt,cY as Pt,cZ as Gt,c_ as Vt,c$ as At,d0 as Ht,d1 as Ot,d2 as Zt,d3 as It,d4 as _t,d5 as Ft,d6 as Kt,d7 as Ut,d8 as Rt,d9 as Xt,da as Jt,db as Qt,dc as Wt,dd as Yt,de as $t,df as an,dg as sn,dh as en,di as tn,dj as nn,dk as on,dl as rn,dm as ln,dn as cn,dp as hn,dq as Tn,dr as dn,ds as pn,dt as mn,du as bn,dv as un,dw as kn,dx as gn,dy as fn,dz as yn,dA as a,dB as jn,dC as Sn,dD as xn,dE as vn,dF as zn,dG as Cn,dH as wn,dI as Mn,dJ as Nn,dK as En,dL as qn,dM as Dn,dN as Ln,dO as Bn,dP as Pn,dQ as Gn,dR as Vn,dS as An,dT as Hn,dU as On,dV as Zn,dW as In,dX as _n,dY as Fn,dZ as Kn,d_ as Un,d$ as Rn,e0 as Xn,e1 as Jn,e2 as Qn,e3 as Wn,e4 as Yn,e5 as $n,e6 as ai,e7 as si,e8 as ei,e9 as ti,ea as ni,eb as ii,ec as oi,ed as ri,ee as li,ef as ci,eg as hi,eh as Ti,ei as di,ej as pi,ek as mi,el as bi,em as ui,en as ki,eo as gi,ep as fi,eq as yi,er as ji,es as Si,et as xi,eu as vi,ev as zi,ew as Ci,ex as wi,ey as Mi,ez as Ni,eA as Ei,eB as qi,eC as Di,eD as Li,eE as Bi,eF as Pi,eG as Gi,eH as Vi,eI as Ai,eJ as Hi,eK as Oi,eL as Zi,eM as Ii,eN as _i,eO as Fi,eP as Ki,eQ as Ui,eR as Ri,eS as Xi,eT as Ji,eU as Qi,eV as Wi,eW as Yi,eX as $i,eY as ao,eZ as so,e_ as eo,e$ as to,f0 as no,f1 as io,f2 as oo,f3 as ro,f4 as lo,f5 as co,f6 as ho,f7 as To,f8 as po,f9 as mo,fa as bo,fb as uo,fc as ko,fd as go,fe as fo,ff as yo,fg as jo,fh as So,fi as xo,fj as vo,fk as zo,fl as Co,fm as wo,fn as Mo,fo as No,fp as Eo,fq as qo,fr as Do,fs as Lo,ft as Bo,fu as Po,fv as Go,fw as Vo,fx as Ao,fy as Ho,fz as Oo,fA as Zo,fB as Io,fC as _o,fD as Fo,fE as Ko,fF as Uo,fG as Ro,fH as Xo,fI as Jo,fJ as Qo,fK as Wo,fL as Yo,fM as $o,fN as ar,fO as sr,fP as er,fQ as tr,fR as nr,fS as ir,fT as or,fU as rr,fV as lr,fW as cr,fX as hr,fY as Tr,fZ as dr,f_ as pr,f$ as mr,g0 as br,g1 as ur,g2 as kr,g3 as gr,g4 as fr,g5 as yr,g6 as jr,g7 as Sr,g8 as xr,g9 as vr,ga as zr,gb as Cr,gc as wr,gd as Mr,ge as Nr,gf as Er,gg as qr,gh as Dr,gi as Lr,gj as Br,gk as Pr,gl as Gr,gm as Vr,gn as Ar,go as Hr,gp as Or,gq as Zr,gr as Ir,gs as _r,gt as Fr,gu as Kr,gv as Ur,gw as Rr,gx as Xr,gy as Jr,gz as Qr,gA as Wr,gB as Yr,gC as $r,gD as al,gE as sl,gF as el,gG as tl,gH as nl,gI as il,gJ as ol,gK as rl,gL as ll,gM as cl,gN as hl,gO as Tl,gP as dl,gQ as pl,gR as ml,gS as bl,gT as ul,gU as kl,gV as gl,gW as fl,gX as yl,gY as jl,gZ as Sl,g_ as xl,g$ as vl,h0 as zl,h1 as Cl,h2 as wl,h3 as Ml,h4 as Nl,h5 as El,h6 as ql,h7 as Dl,h8 as Ll,h9 as Bl,ha as Pl,hb as Gl,hc as Vl,hd as Al,he as Hl,hf as Ol,hg as Zl,hh as Il,hi as _l,hj as Fl,hk as Kl,hl as Ul,hm as Rl,hn as Xl,ho as Jl,hp as Ql,hq as Wl,hr as Yl,hs as $l,ht as ac,hu as sc,hv as ec,hw as tc,hx as nc,hy as ic,hz as oc,hA as rc,hB as lc,hC as cc,hD as hc,hE as Tc,hF as dc,hG as pc,hH as mc,hI as bc,hJ as uc,hK as kc,hL as gc,hM as fc,hN as yc,hO as jc,hP as Sc,hQ as xc,hR as vc,hS as zc,hT as Cc,hU as wc,hV as Mc,hW as Nc,hX as Ec,hY as qc,hZ as Dc,h_ as Lc,h$ as Bc,i0 as Pc,i1 as Gc,i2 as Vc,i3 as Ac,i4 as Hc,i5 as Oc,i6 as Zc,i7 as Ic,i8 as _c,i9 as Fc,ia as Kc,ib as Uc,ic as Rc,id as Xc,ie as Jc,ig as Qc,ih as Wc,ii as Yc,ij as s,ik as $c,il as ah,im as sh,io as eh,ip as th,iq as nh,ir as ih,is as oh,it as rh,iu as lh,iv as ch,iw as hh,ix as Th,iy as dh,iz as ph,iA as mh,iB as bh,iC as uh,iD as kh,iE as gh,iF as fh,iG as yh,iH as jh,iI as Sh,iJ as xh,iK as vh,iL as zh,iM as Ch,iN as wh,iO as Mh,iP as Nh,iQ as Eh,iR as qh,iS as Dh,iT as e,iU as Lh,iV as Bh,iW as t,iX as Ph,iY as Gh,iZ as Vh,i_ as Ah,i$ as Hh,j0 as Oh,j1 as Zh,j2 as Ih,j3 as _h,j4 as Fh,j5 as Kh,j6 as Uh,j7 as Rh,j8 as Xh,j9 as Jh,ja as Qh,jb as Wh,jc as Yh,jd as $h,je as aT,jf as sT,jg as eT,jh as tT,ji as nT,jj as iT,jk as oT,jl as rT,jm as lT,jn as cT,jo as hT,jp as TT,jq as dT,jr as pT,js as mT,jt as bT,ju as uT,jv as kT,jw as gT,jx as fT,jy as yT,jz as jT,jA as ST,jB as xT,jC as vT,jD as zT,jE as CT,jF as wT,jG as MT,jH as NT,jI as ET,jJ as n,jK as qT,jL as DT,jM as LT,jN as BT,jO as PT,jP as GT,jQ as VT,jR as AT,jS as HT,jT as OT,jU as ZT,jV as IT,jW as _T,jX as FT,jY as KT,jZ as UT,j_ as RT,j$ as XT,k0 as JT,k1 as QT,k2 as WT,k3 as YT,k4 as $T,k5 as ad,k6 as sd,k7 as ed,k8 as td,k9 as nd,ka as id,kb as od,kc as rd,kd as ld,ke as cd,kf as hd,kg as Td,kh as dd,ki as pd,kj as i,kk as o,kl as r,km as l,kn as md,ko as bd,kp as ud,kq as kd,kr as gd,ks as fd,kt as yd,ku as jd}from"./zoraTestnet-9fee657d.js";const xd=Object.freeze(Object.defineProperty({__proto__:null,abey:c,abstract:h,abstractTestnet:T,acala:d,acria:p,adf:m,adi:b,agungTestnet:u,aioz:k,alephZero:g,alephZeroTestnet:f,alienx:y,alienxHalTestnet:j,alpenTestnet:S,ancient8:x,ancient8Sepolia:v,anvil:z,apeChain:C,apexTestnet:w,apollo:M,arbitrum:N,arbitrumGoerli:E,arbitrumNova:q,arbitrumSepolia:D,arc:L,arcTestnet:B,arenaz:P,areonNetwork:G,areonNetworkTestnet:V,areum:A,artelaTestnet:H,arthera:O,artheraTestnet:Z,assetChain:I,assetChainTestnet:_,astar:F,astarZkEVM:K,astarZkyoto:U,atletaOlympia:R,aurora:X,auroraTestnet:J,auroria:Q,autheoTestnet:W,avalanche:Y,avalancheFuji:$,b3:aa,b3Sepolia:sa,bahamut:ea,base:ta,baseGoerli:na,basePreconf:ia,baseSepolia:oa,baseSepoliaPreconf:ra,basecampTestnet:la,battlechain:ca,battlechainTestnet:ha,beam:Ta,beamTestnet:da,bearNetworkChainMainnet:pa,bearNetworkChainTestnet:ma,berachain:ba,berachainBepolia:ua,berachainTestnet:ka,berachainTestnetbArtio:ga,bevmMainnet:fa,bifrost:ya,birdlayer:ja,bitTorrent:Sa,bitTorrentTestnet:xa,bitgert:va,bitkub:za,bitkubTestnet:Ca,bitlayer:wa,bitlayerTestnet:Ma,bitrock:Na,blast:Ea,blastSepolia:qa,bob:Da,bobSepolia:La,boba:Ba,bobaSepolia:Pa,boolBetaMainnet:Ga,botanix:Va,botanixTestnet:Aa,bounceBit:Ha,bounceBitTestnet:Oa,bronos:Za,bronosTestnet:Ia,bsc:_a,bscGreenfield:Fa,bscTestnet:Ka,bsquared:Ua,bsquaredTestnet:Ra,btr:Xa,btrTestnet:Ja,bxn:Qa,bxnTestnet:Wa,cannon:Ya,canto:$a,celo:as,celoAlfajores:ss,celoSepolia:es,chang:ts,chiliz:ns,chips:is,citrate:os,citrea:rs,citreaTestnet:ls,classic:cs,codex:hs,codexTestnet:Ts,coinbit:ds,coinex:ps,confluxESpace:ms,confluxESpaceTestnet:bs,coreDao:us,coreTestnet1:ks,coreTestnet2:gs,corn:fs,cornTestnet:ys,cpchain:js,crab:Ss,creatorTestnet:xs,creditCoin3Devnet:vs,creditCoin3Mainnet:zs,creditCoin3Testnet:Cs,cronos:ws,cronosTestnet:Ms,cronoszkEVM:Ns,cronoszkEVMTestnet:Es,crossbell:qs,crossfi:Ds,curtis:Ls,cyber:Bs,cyberTestnet:Ps,dailyNetwork:Gs,dailyNetworkTestnet:Vs,darwinia:As,datahavenTestnet:Hs,dbkchain:Os,dchain:Zs,dchainTestnet:Is,defiOracleMetaMainnet:_s,defichainEvm:Fs,defichainEvmTestnet:Ks,degen:Us,dfk:Rs,diode:Xs,disChain:Js,dodochainTestnet:Qs,dogechain:Ws,domaTestnet:Ys,donatuz:$s,dosChain:ae,dosChainTestnet:se,dreyerxMainnet:ee,dreyerxTestnet:te,dustboyIoT:ne,dymension:ie,eden:oe,edexa:re,edexaTestnet:le,edgeless:ce,edgelessTestnet:he,edgeware:Te,edgewareTestnet:de,eduChain:pe,eduChainTestnet:me,elastos:be,elastosTestnet:ue,electroneum:ke,electroneumTestnet:ge,elysiumTestnet:fe,energy:ye,eni:je,eniTestnet:Se,enuls:xe,eon:ve,eos:ze,eosTestnet:Ce,eteria:we,etherlink:Me,etherlinkShadownetTestnet:Ne,etherlinkTestnet:Ee,ethernity:qe,etp:De,evmos:Le,evmosTestnet:Be,excelonMainnet:Pe,expanse:Ge,exsat:Ve,exsatTestnet:Ae,fantom:He,fantomSonicTestnet:Oe,fantomTestnet:Ze,fibo:Ie,filecoin:_e,filecoinCalibration:Fe,filecoinHyperspace:Ke,fireChain:Ue,flame:Re,flare:Xe,flareTestnet:Je,flowMainnet:Qe,flowPreviewnet:We,flowTestnet:Ye,fluence:$e,fluenceStage:at,fluenceTestnet:st,fluent:et,fluentDevnet:tt,fluentTestnet:nt,form:it,formTestnet:ot,forma:rt,formicarium:lt,forta:ct,foundry:ht,fraxtal:Tt,fraxtalTestnet:dt,funkiMainnet:pt,funkiSepolia:mt,fuse:bt,fuseSparknet:ut,fusion:kt,fusionTestnet:gt,garnet:ft,gatechain:yt,geist:jt,genesys:St,gensyn:xt,giwaSepolia:vt,giwaSepoliaPreconf:zt,glideL1Protocol:Ct,glideL2Protocol:wt,gnosis:Mt,gnosisChiado:Nt,goChain:Et,goat:qt,gobi:Dt,godwoken:Lt,goerli:Bt,graphite:Pt,graphiteTestnet:Gt,grav:Vt,gravity:At,gunz:Ht,guruNetwork:Ot,guruTestnet:Zt,ham:It,happychainTestnet:_t,haqqMainnet:Ft,haqqTestedge2:Kt,hardhat:Ut,harmonyOne:Rt,hashkey:Xt,hashkeyTestnet:Jt,hausTestnet:Qt,haustTestnet:Wt,hedera:Yt,hederaPreviewnet:$t,hederaTestnet:an,hela:sn,heliosTestnet:en,hemi:tn,hemiSepolia:nn,henesys:on,holesky:rn,hoodi:ln,horizenTestnet:cn,hpb:hn,hpp:Tn,hppSepolia:dn,huddle01Mainnet:pn,huddle01Testnet:mn,humanity:bn,humanityTestnet:un,humanode:kn,humanodeTestnet5:gn,hychain:fn,hychainTestnet:yn,hyperEvm:a,hyperliquid:a,hyperliquidEvmTestnet:jn,iSunCoin:Sn,icbNetwork:xn,idchain:vn,igra:zn,immutableZkEvm:Cn,immutableZkEvmTestnet:wn,inEVM:Mn,initVerse:Nn,initVerseGenesis:En,injective:qn,injectiveTestnet:Dn,ink:Ln,inkSepolia:Bn,iota:Pn,iotaTestnet:Gn,iotex:Vn,iotexTestnet:An,jasmyChain:Hn,jasmyChainTestnet:On,jbc:Zn,jbcTestnet:In,jocMainnet:_n,jocTestnet:Fn,jovay:Kn,jovaySepolia:Un,juneo:Rn,juneoBCH1Chain:Xn,juneoDAI1Chain:Jn,juneoDOGE1Chain:Qn,juneoEUR1Chain:Wn,juneoGLD1Chain:Yn,juneoLINK1Chain:$n,juneoLTC1Chain:ai,juneoSGD1Chain:si,juneoSocotraTestnet:ei,juneoUSD1Chain:ti,juneoUSDT1Chain:ni,juneomBTC1Chain:ii,kaia:oi,kairos:ri,kakarotSepolia:li,kakarotStarknetSepolia:ci,kardiaChain:hi,karura:Ti,katana:di,kava:pi,kavaTestnet:mi,kcc:bi,kii:ui,kiiTestnetOro:ki,kinto:gi,klaytn:fi,klaytnBaobab:yi,koi:ji,kroma:Si,kromaSepolia:xi,krown:vi,l3x:zi,l3xTestnet:Ci,ladyChain:wi,lavita:Mi,lens:Ni,lensTestnet:Ei,lestnet:qi,lightlinkPegasus:Di,lightlinkPhoenix:Li,linea:Bi,lineaGoerli:Pi,lineaSepolia:Gi,lineaTestnet:Vi,lisk:Ai,liskSepolia:Hi,loadAlphanet:Oi,localhost:Zi,loop:Ii,lukso:_i,luksoTestnet:Fi,lumiaMainnet:Ki,lumiaTestnet:Ui,lumoz:Ri,lumozTestnet:Xi,luxeports:Ji,lycan:Qi,lyra:Wi,mainnet:Yi,mandala:$i,manta:ao,mantaSepoliaTestnet:so,mantaTestnet:eo,mantle:to,mantleSepoliaTestnet:no,mantleTestnet:io,mantraDuKongEVMTestnet:oo,mantraEVM:ro,mapProtocol:lo,marooTestnet:co,marsCredit:ho,matchain:To,matchainTestnet:po,mchVerse:mo,megaeth:bo,megaethTestnet:uo,mekong:ko,meld:go,memecore:fo,merlin:yo,merlinErigonTestnet:jo,metachain:So,metachainIstanbul:xo,metadium:vo,metalL2:zo,meter:Co,meterTestnet:wo,metis:Mo,metisGoerli:No,metisSepolia:Eo,mev:qo,mevTestnet:Do,mezo:Lo,mezoTestnet:Bo,mint:Po,mintSepoliaTestnet:Go,mitosisTestnet:Vo,mizuhikiTestnetAwaji:Ao,mode:Ho,modeTestnet:Oo,monad:Zo,monadTestnet:Io,moonbaseAlpha:_o,moonbeam:Fo,moonbeamDev:Ko,moonriver:Uo,morph:Ro,morphHolesky:Xo,morphSepolia:Jo,morphTachyon:Qo,morphTachyonTestnet:Wo,nahmii:Yo,nautilus:$o,near:ar,nearTestnet:sr,neonDevnet:er,neonMainnet:tr,neoxMainnet:nr,neoxT4:ir,newton:or,nexi:rr,nexilix:lr,nibiru:cr,nitrographTestnet:hr,nomina:Tr,oasisTestnet:dr,oasys:pr,odysseyTestnet:mr,okc:br,omax:ur,omni:kr,omniOmega:gr,oneWorld:fr,oortMainnetDev:yr,opBNB:jr,opBNBTestnet:Sr,openledger:xr,optimism:vr,optimismGoerli:zr,optimismSepolia:Cr,optopia:wr,optopiaTestnet:Mr,orderly:Nr,orderlySepolia:Er,otimDevnet:qr,palm:Dr,palmTestnet:Lr,paseoPassetHub:Br,peaq:Pr,pgn:Gr,pgnTestnet:Vr,phoenix:Ar,planq:Hr,plasma:Or,plasmaDevnet:Zr,plasmaTestnet:Ir,playfiAlbireo:_r,plinga:Fr,plume:Kr,plumeDevnet:Ur,plumeMainnet:Rr,plumeSepolia:Xr,plumeTestnet:Jr,polterTestnet:Qr,polygon:Wr,polygonAmoy:Yr,polygonMumbai:$r,polygonZkEvm:al,polygonZkEvmCardona:sl,polygonZkEvmTestnet:el,polynomial:tl,polynomialSepolia:nl,potos:il,potosTestnet:ol,premiumBlockTestnet:rl,pulsechain:ll,pulsechainV4:cl,pumpfiTestnet:hl,pyrope:Tl,qMainnet:dl,qTestnet:pl,ql1:ml,quai:bl,quaiTestnet:ul,radius:kl,radiusTestnet:gl,reactiveTestnet:fl,real:yl,redbellyMainnet:jl,redbellyTestnet:Sl,reddio:xl,reddioSepolia:vl,redstone:zl,rei:Cl,reyaNetwork:wl,rise:Ml,riseTestnet:Nl,rivalz:El,robinhood:ql,robinhoodTestnet:Dl,rollux:Ll,rolluxTestnet:Bl,ronin:Pl,root:Gl,rootPorcini:Vl,rootstock:Al,rootstockTestnet:Hl,rss3:Ol,rss3Sepolia:Zl,saakuru:Il,saga:_l,saigon:Fl,sanko:Kl,sapphire:Ul,sapphireTestnet:Rl,satoshiVM:Xl,satoshiVMTestnet:Jl,scroll:Ql,scrollSepolia:Wl,sei:Yl,seiTestnet:$l,seismicDevnet:ac,sentrix:sc,sentrixTestnet:ec,sepolia:tc,shape:nc,shapeSepolia:ic,shardeum:oc,shardeumSphinx:rc,shibarium:lc,shibariumTestnet:cc,shiden:hc,shimmer:Tc,shimmerTestnet:dc,sidraChain:pc,silentData:mc,silicon:bc,siliconSepolia:uc,sixProtocol:kc,skaleBase:gc,skaleBaseSepoliaTestnet:fc,skaleBlockBrawlers:yc,skaleCalypso:jc,skaleCalypsoTestnet:Sc,skaleCryptoBlades:xc,skaleCryptoColosseum:vc,skaleEuropa:zc,skaleEuropaTestnet:Cc,skaleExorde:wc,skaleHumanProtocol:Mc,skaleNebula:Nc,skaleNebulaTestnet:Ec,skaleRazor:qc,skaleTitan:Dc,skaleTitanTestnet:Lc,sketchpad:Bc,snax:Pc,snaxTestnet:Gc,somnia:Vc,somniaTestnet:Ac,soneium:Hc,soneiumMinato:Oc,songbird:Zc,songbirdTestnet:Ic,sonic:_c,sonicBlazeTestnet:Fc,sonicTestnet:Kc,sophon:Uc,sophonTestnet:Rc,sova:Xc,sovaSepolia:Jc,spicy:Qc,stable:Wc,stableTestnet:Yc,statusNetworkSepolia:s,statusSepolia:s,step:$c,story:ah,storyAeneid:sh,storyOdyssey:eh,storyTestnet:th,stratis:nh,subtensorEvm:ih,superlumio:oh,superposition:rh,superseed:lh,superseedSepolia:ch,surgeTestnet:hh,swan:Th,swanProximaTestnet:dh,swanSaturnTestnet:ph,swellchain:mh,swellchainTestnet:bh,swissdlt:uh,syscoin:kh,syscoinTestnet:gh,tac:fh,tacSPB:yh,taiko:jh,taikoHekla:Sh,taikoHoodi:xh,taikoJolnir:vh,taikoKatla:zh,taikoTestnetSepolia:Ch,taraxa:wh,taraxaTestnet:Mh,teaSepolia:Nh,telcoinTestnet:Eh,telos:qh,telosTestnet:Dh,tempo:e,tempoDevnet:Lh,tempoLocalnet:Bh,tempoMainnet:e,tempoModerato:t,tempoTestnet:t,tenet:Ph,ternoa:Gh,thaiChain:Vh,that:Ah,theta:Hh,thetaTestnet:Oh,thunderCore:Zh,thunderTestnet:Ih,tiktrixTestnet:_h,tomb:Fh,treasure:Kh,treasureTopaz:Uh,tron:Rh,tronNile:Xh,tronShasta:Jh,ubiq:Qh,ultra:Wh,ultraTestnet:Yh,ultron:$h,ultronTestnet:aT,unichain:sT,unichainSepolia:eT,unique:tT,uniqueOpal:nT,uniqueQuartz:iT,unreal:oT,valygoNft:rT,valygoSmartchain:lT,vana:cT,vanaMoksha:hT,vanar:TT,vechain:dT,velas:pT,viction:mT,victionTestnet:bT,vision:uT,visionTestnet:kT,wanchain:gT,wanchainTestnet:fT,weaveVMAlphanet:yT,wemix:jT,wemixTestnet:ST,westendAssetHub:xT,whitechain:vT,whitechainSepolia:zT,whitechainTestnet:CT,wmcTestnet:wT,worldLand:MT,worldchain:NT,worldchainSepolia:ET,x1Testnet:n,xLayer:qT,xLayerTestnet:n,xai:DT,xaiTestnet:LT,xdc:BT,xdcTestnet:PT,xgr:GT,xoneMainnet:VT,xoneTestnet:AT,xphereMainnet:HT,xphereTestnet:OT,xpla:ZT,xrOne:IT,xrSepolia:_T,xrplevm:FT,xrplevmDevnet:KT,xrplevmTestnet:UT,ynxTestnet:RT,yooldoVerse:XT,yooldoVerseTestnet:JT,zenchainTestnet:QT,zeniq:WT,zeroG:YT,zeroGGalileoTestnet:$T,zeroGMainnet:ad,zeroGTestnet:sd,zeroNetwork:ed,zetachain:td,zetachainAthensTestnet:nd,zhejiang:id,zilliqa:od,zilliqaTestnet:rd,zircuit:ld,zircuitGarfieldTestnet:cd,zkFair:hd,zkFairTestnet:Td,zkLinkNova:dd,zkLinkNovaSepoliaTestnet:pd,zkSync:i,zkSyncInMemoryNode:o,zkSyncLocalNode:r,zkSyncSepoliaTestnet:l,zkXPLA:md,zkXPLATestnet:bd,zksync:i,zksyncInMemoryNode:o,zksyncLocalCustomHyperchain:ud,zksyncLocalHyperchain:kd,zksyncLocalHyperchainL1:gd,zksyncLocalNode:r,zksyncSepoliaTestnet:l,zora:fd,zoraSepolia:yd,zoraTestnet:jd},Symbol.toStringTag,{value:"Module"}));export{xd as c};