@dcl/blog-site 0.2.3-24088316758.commit-34384cf → 0.3.1-24101748563.commit-5dd23bd

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 (158) hide show
  1. package/assets/{QueryClientProvider-DFnrqjxK.js → QueryClientProvider-D8JGfTJZ.js} +1 -1
  2. package/assets/{SignInRedirect-YsS_y43O.js → SignInRedirect-B22Or21E.js} +3 -3
  3. package/assets/{X-DQRyaTAP.js → X-BO8TUwpx.js} +1 -1
  4. package/assets/{__federation_expose_App-BWDr6ljs.js → __federation_expose_App-CWaPdzVQ.js} +1 -1
  5. package/assets/{__federation_fn_import-DsoKw508.js → __federation_fn_import-BZzr9p5I.js} +1 -1
  6. package/assets/__federation_shared_@dcl/{hooks-P78bsY9M.js → hooks-XkzV3bRk.js} +3 -3
  7. package/assets/__federation_shared_@emotion/react-BhDT4KPC.js +1 -0
  8. package/assets/__federation_shared_@emotion/{styled-CtXq_gFe.js → styled-BVF-ZKxF.js} +1 -1
  9. package/assets/{__federation_shared_decentraland-ui2-DRl5ehN-.js → __federation_shared_decentraland-ui2-CXg36SD8.js} +6 -6
  10. package/assets/{__federation_shared_react-redux-DRaqgPHP.js → __federation_shared_react-redux-NgrasIXv.js} +1 -1
  11. package/assets/{__federation_shared_react-router-dom-ClUJIur8.js → __federation_shared_react-router-dom-l5xPnLcY.js} +1 -1
  12. package/assets/{__federation_shared_viem-OkDZ_da3.js → __federation_shared_viem-BVxLUNAk.js} +1 -1
  13. package/assets/{__federation_shared_wagmi-DxQyjTpB.js → __federation_shared_wagmi-AT48iUUQ.js} +1 -1
  14. package/assets/{add-BJhrLyz2.js → add-DsbBlWlM.js} +1 -1
  15. package/assets/{all-wallets-BKl1d9ay.js → all-wallets-B2MkoXVx.js} +1 -1
  16. package/assets/{app-store-Cz4wx5Ml.js → app-store-CjTy6Aou.js} +1 -1
  17. package/assets/{apple-ZB0nqM0P.js → apple-C42DI4gz.js} +1 -1
  18. package/assets/{arrow-bottom-circle-qQ6xlCaO.js → arrow-bottom-circle-CiqHtGRW.js} +1 -1
  19. package/assets/{arrow-bottom-DPabveW2.js → arrow-bottom-pdzlDD-Z.js} +1 -1
  20. package/assets/{arrow-left-D_0jfro8.js → arrow-left-08APJrdW.js} +1 -1
  21. package/assets/{arrow-right-Bxr-_0TM.js → arrow-right-DUgVHYNJ.js} +1 -1
  22. package/assets/{arrow-top-CcZJfPaY.js → arrow-top-Ca_tExYU.js} +1 -1
  23. package/assets/{auto-track-CXTejErn.js → auto-track-WztB0WEY.js} +1 -1
  24. package/assets/{bank-qzSNVmpL.js → bank-x_nSAJBk.js} +1 -1
  25. package/assets/{basic-CriAqicR.js → basic-BrMvAX6u.js} +1 -1
  26. package/assets/{biconomy-7PcFs3b0.js → biconomy-CYCfPY-1.js} +1 -1
  27. package/assets/{browser-B01ZPlHW.js → browser-Dge4C11C.js} +1 -1
  28. package/assets/{card-C8yazSyG.js → card-CIoGdXXo.js} +1 -1
  29. package/assets/{ccip-D0tvzkwi.js → ccip-DuOQXVmH.js} +1 -1
  30. package/assets/{checkmark-DEpAI8yr.js → checkmark-BUTpQBAq.js} +1 -1
  31. package/assets/{checkmark-bold-CmJidmVJ.js → checkmark-bold-wisdjxwy.js} +1 -1
  32. package/assets/{chevron-bottom-DWsbL4vJ.js → chevron-bottom-tgYS2nxV.js} +1 -1
  33. package/assets/{chevron-left-DLMg9i5k.js → chevron-left-CVi7nRwx.js} +1 -1
  34. package/assets/{chevron-right-BR2L5tDn.js → chevron-right-qhPosP7c.js} +1 -1
  35. package/assets/{chevron-top-BWtZfQ2F.js → chevron-top-DGNdu6kp.js} +1 -1
  36. package/assets/{chrome-store-BGE1p2Hx.js → chrome-store-Cirv8vTS.js} +1 -1
  37. package/assets/{clock-B12ZBUD7.js → clock-DusO0auP.js} +1 -1
  38. package/assets/{close-B54jTe2O.js → close-BiCrbcWh.js} +1 -1
  39. package/assets/{coinPlaceholder-B5PhQfVg.js → coinPlaceholder-Boe6JGgf.js} +1 -1
  40. package/assets/{compass-CEs6S01I.js → compass-BtKHBveM.js} +1 -1
  41. package/assets/{controller-n5F8mc3X.js → controller-CwvKDb2m.js} +2 -2
  42. package/assets/{copy-DwrKUUfz.js → copy-D8aKsSJt.js} +1 -1
  43. package/assets/{core-DPOUi4Tl.js → core-Bf1Copq6.js} +3 -3
  44. package/assets/{createBundlerClient-YqcE2yqs.js → createBundlerClient-DbsEHJ4Z.js} +1 -1
  45. package/assets/{createClient-BxHhKlNq.js → createClient-CTGnCkcz.js} +1 -1
  46. package/assets/{cursor-CGBFNPoh.js → cursor-DghXh_g_.js} +1 -1
  47. package/assets/{cursor-transparent-D3nfFufs.js → cursor-transparent-B7SlxiQh.js} +1 -1
  48. package/assets/{decimals-D0IunObY.js → decimals-BsDfmgVP.js} +1 -1
  49. package/assets/{decimals-BMO-32AD.js → decimals-D9AvtxfV.js} +1 -1
  50. package/assets/{desktop-Bjkc6WkG.js → desktop-Pzo63lfj.js} +1 -1
  51. package/assets/{detectExtension-BEr9WLqO.js → detectExtension-mP3NQwTG.js} +1 -1
  52. package/assets/{disconnect-D9dYAsxs.js → disconnect-BIV5nbxd.js} +1 -1
  53. package/assets/{discord-DZuYBrqS.js → discord-nMOsPVZo.js} +1 -1
  54. package/assets/{emotion-react.browser.esm-Ce2LppU1.js → emotion-react.browser.esm-B33-U3sx.js} +1 -1
  55. package/assets/{emotion-use-insertion-effect-with-fallbacks.browser.esm-ByQDcQjl.js → emotion-use-insertion-effect-with-fallbacks.browser.esm-DBOXbAB5.js} +1 -1
  56. package/assets/{encode-cHgp5mHv.js → encode-dCkbk3AQ.js} +2 -2
  57. package/assets/{engine-BVbFCTQK.js → engine-r9qQuN5M.js} +1 -1
  58. package/assets/{estimate-gas-DBgT8NWo.js → estimate-gas-DZC98WAc.js} +3 -3
  59. package/assets/{estimate-l1-fee-C2ptcVct.js → estimate-l1-fee-BqktBe1N.js} +1 -1
  60. package/assets/{eth_getStorageAt-B9Y_JVAm.js → eth_getStorageAt-2wC3xick.js} +1 -1
  61. package/assets/{etherscan-oUtlOsmK.js → etherscan-DwU0ZuSh.js} +1 -1
  62. package/assets/{exclamation-triangle-BdB5oh3a.js → exclamation-triangle-VqIj0jCQ.js} +1 -1
  63. package/assets/{extension-CjK6xfgN.js → extension-mw9o_4yJ.js} +1 -1
  64. package/assets/{external-link-dD0-Gy7Y.js → external-link-BEb6h2zw.js} +1 -1
  65. package/assets/{extractIPFS-BN8-L65J.js → extractIPFS-iuWdTU-T.js} +1 -1
  66. package/assets/{facebook-CInWYo4e.js → facebook-CtNr4Jq4.js} +1 -1
  67. package/assets/{farcaster-Dk7xCnWZ.js → farcaster-6ksO-rAC.js} +1 -1
  68. package/assets/{fee-data-DBS1-uI-.js → fee-data-Bea8WIXf.js} +1 -1
  69. package/assets/{fetchTokenMetadata-sBUH3xE3.js → fetchTokenMetadata-Dm2AtYtD.js} +2 -2
  70. package/assets/{filters-CQJE56FO.js → filters-C_s4jUrY.js} +1 -1
  71. package/assets/{get-ecosystem-wallet-info-DkhEjWQL.js → get-ecosystem-wallet-info-Bms1j5h1.js} +1 -1
  72. package/assets/{getBalance-NroDyfvQ.js → getBalance-a-vaaoih.js} +1 -1
  73. package/assets/{getInstalledModules-DFAdG78-.js → getInstalledModules-D7sZQpkY.js} +1 -1
  74. package/assets/{getNFT-CZphITDU.js → getNFT-DcuzkXO1.js} +2 -2
  75. package/assets/{getNFT-CM6jDDoS.js → getNFT-_r5vGHFJ.js} +1 -1
  76. package/assets/{github-D7bNXBE_.js → github-BmI1Y3Mq.js} +1 -1
  77. package/assets/{google-C7wxpdtc.js → google-sF2KogsG.js} +1 -1
  78. package/assets/{help-circle-jHfnx5-M.js → help-circle-DSRpOqA6.js} +1 -1
  79. package/assets/{id-B0bg6br2.js → id-iHUbf3q0.js} +1 -1
  80. package/assets/{image-CFkOYVVZ.js → image--QGVCz5N.js} +1 -1
  81. package/assets/{in-app-wallet-calls-CUJMAfNk.js → in-app-wallet-calls-Bv1Gy8VE.js} +1 -1
  82. package/assets/{index-C9ZtSkAF.js → index-0Lc22N7_.js} +1 -1
  83. package/assets/{index-p2T8GhRA.js → index-BdC5gkgz.js} +1 -1
  84. package/assets/index-BjzJcZq6.js +1 -1
  85. package/assets/{index-B6POK61z.js → index-CFlkkEji.js} +1 -1
  86. package/assets/{index-DyFSxszr.js → index-ChmbYVEY.js} +1 -1
  87. package/assets/{index-DuUs6XE9.js → index-DQX07DEN.js} +1 -1
  88. package/assets/{index-CK_y9rJC.js → index-DZJu62Lr.js} +3 -3
  89. package/assets/{index-C2t4sTPE.js → index-DdPrHjBq.js} +1 -1
  90. package/assets/index-Dy0yjznp.js +1 -1
  91. package/assets/{index-HwVh-q7L.js → index-DyIEPOp8.js} +1 -1
  92. package/assets/{index-BqaO8h_q.js → index-XySjXoqx.js} +2 -2
  93. package/assets/{index-CDUZj6Gh.js → index-aTooKCfO.js} +1 -1
  94. package/assets/{index-CgabfD28.js → index-vgC1T0K1.js} +2 -2
  95. package/assets/{index.es-DiIxomE4.js → index.es-B7NpsfKw.js} +3 -3
  96. package/assets/{index.es-C4uogg3R.js → index.es-DsAmcMC8.js} +1 -1
  97. package/assets/{info-a5qnZWSp.js → info-Slo6gOQz.js} +1 -1
  98. package/assets/{info-circle-CtpHiT1K.js → info-circle-dZrAOaJf.js} +1 -1
  99. package/assets/jsx-runtime-DncYoG30.js +1 -1
  100. package/assets/{lightbulb-Cedc0rYJ.js → lightbulb-B5ard69F.js} +1 -1
  101. package/assets/{localBatchGatewayRequest-xHNW-Ehl.js → localBatchGatewayRequest-CRyf88kF.js} +1 -1
  102. package/assets/{mail-D96xVokz.js → mail-BFUvh_js.js} +1 -1
  103. package/assets/{mobile-DsDxm8mI.js → mobile-Brs476ln.js} +1 -1
  104. package/assets/{more-BedDVxwf.js → more-t7x11Ar7.js} +1 -1
  105. package/assets/{network-placeholder-CpA4BghL.js → network-placeholder-BzBIrmUa.js} +1 -1
  106. package/assets/{nftPlaceholder-E0nNrT1f.js → nftPlaceholder-D10ThqXV.js} +1 -1
  107. package/assets/{off-C8YtcDJA.js → off-CO1Tb2Ra.js} +1 -1
  108. package/assets/{openzeppelin-CQer_fI1.js → openzeppelin-CwvUITdR.js} +1 -1
  109. package/assets/{ownerOf-GjaKoeq1.js → ownerOf-DIbB8-Pu.js} +1 -1
  110. package/assets/{parseNft-CxF6cVbB.js → parseNft-DEGeShRT.js} +2 -2
  111. package/assets/{play-store-wzv988wO.js → play-store-tFVQP-h8.js} +1 -1
  112. package/assets/{plus-BOnP2W3B.js → plus-CU1RvNcK.js} +1 -1
  113. package/assets/preload-helper-BLohficu.js +1 -0
  114. package/assets/{qr-code-5Zy3Jwmz.js → qr-code-DutEJOZ7.js} +1 -1
  115. package/assets/{qr-overlay-qPTQSVWY.js → qr-overlay-DYDcnTaw.js} +1 -1
  116. package/assets/{recycle-horizontal-BiLXE1ph.js → recycle-horizontal-CFph0tAQ.js} +1 -1
  117. package/assets/{refresh-DrIaQxXR.js → refresh-Bnog49AD.js} +1 -1
  118. package/assets/remoteEntry.js +1 -1
  119. package/assets/{reown-logo-C50d_2u-.js → reown-logo-OCpE5bKV.js} +1 -1
  120. package/assets/{resolveImplementation-Bp817C6y.js → resolveImplementation-DWPGoMu1.js} +1 -1
  121. package/assets/{search-CtoMI8IW.js → search-qNuV9lyV.js} +1 -1
  122. package/assets/{secp256k1-lKd37s6b.js → secp256k1-BV4QVD29.js} +1 -1
  123. package/assets/{send-DjyS4WAU.js → send-Dii2Pw7R.js} +1 -1
  124. package/assets/{send-batch-transaction-DBV6UBBv.js → send-batch-transaction-B5a_BUBh.js} +1 -1
  125. package/assets/{send-eip712-transaction-CI65hvCl.js → send-eip712-transaction-1K3ti4op.js} +2 -2
  126. package/assets/{send-gasless-transaction-C7lHksJD.js → send-gasless-transaction-DI77vCwk.js} +2 -2
  127. package/assets/{serializeTransaction-6LlbmJwH.js → serializeTransaction-JIZ3RKrK.js} +1 -1
  128. package/assets/{session-proposal-BJ6dUV4k.js → session-proposal-noyeBULg.js} +1 -1
  129. package/assets/{session-request-Cen_JpY8.js → session-request-YLRKLINI.js} +2 -2
  130. package/assets/{signing-BsPRCC1P.js → signing-BuBuOxhe.js} +3 -3
  131. package/assets/{swapHorizontal-DUMDblJm.js → swapHorizontal-22C2KQaF.js} +1 -1
  132. package/assets/{swapHorizontalBold-Du4gzczl.js → swapHorizontalBold-BfcrMuey.js} +1 -1
  133. package/assets/{swapHorizontalMedium-BkSTzo9o.js → swapHorizontalMedium-BHDs4ZZW.js} +1 -1
  134. package/assets/{swapHorizontalRoundedBold-CQD5i-I5.js → swapHorizontalRoundedBold-DU6UvZ-c.js} +1 -1
  135. package/assets/{swapVertical-CjSXuBHb.js → swapVertical-C4tNz6XG.js} +1 -1
  136. package/assets/{telegram-uAGG8XwG.js → telegram-BfTKby3L.js} +1 -1
  137. package/assets/{thirdweb-DOoFBA7F.js → thirdweb-BQj4AreN.js} +3 -3
  138. package/assets/{three-dots-BWtFKrpY.js → three-dots-Bal3nsdA.js} +1 -1
  139. package/assets/{totalSupply-CjCaaPZD.js → totalSupply-C0h1Q6z_.js} +1 -1
  140. package/assets/{twitch-VH9Dk-Bx.js → twitch-K-DI4jqQ.js} +1 -1
  141. package/assets/{twitterIcon-Bfs32uTm.js → twitterIcon-uj4yS-Ve.js} +1 -1
  142. package/assets/{uid-XfAtrElX.js → uid-BPvHxAG-.js} +3 -3
  143. package/assets/{verify-4fUj-WRm.js → verify-BXUso18-.js} +1 -1
  144. package/assets/{verify-filled-sllS8Nrv.js → verify-filled-CAuC0tVY.js} +1 -1
  145. package/assets/{w3m-modal-Blb5XI95.js → w3m-modal-C0c69JDZ.js} +1 -1
  146. package/assets/{wait-for-tx-receipt-BR33kfvc.js → wait-for-tx-receipt-RNMBP9Yx.js} +1 -1
  147. package/assets/{wallet-DuQpuU5E.js → wallet-BJobAv1p.js} +1 -1
  148. package/assets/{wallet-placeholder-CERukyIC.js → wallet-placeholder-Bi5Qwdj0.js} +1 -1
  149. package/assets/{walletconnect-CsB9GzlO.js → walletconnect-qUwOWdk_.js} +1 -1
  150. package/assets/{wallets-vcnqEomN.js → wallets-BQJnnz7M.js} +5 -5
  151. package/assets/{warning-circle-C8yGFMlX.js → warning-circle-D80mCLLJ.js} +1 -1
  152. package/assets/{web-connector-Jj-2yhMg.js → web-connector-zH75MT1q.js} +3 -3
  153. package/assets/{webSocket-BfTFTYzP.js → webSocket-Dj4mcolG.js} +1 -1
  154. package/assets/{x-BXVsZnMK.js → x-BRO0JOIq.js} +1 -1
  155. package/index.html +17 -17
  156. package/package.json +3 -3
  157. package/assets/__federation_shared_@emotion/react-CtCvVI4H.js +0 -1
  158. package/assets/preload-helper-2M-6abck.js +0 -1
@@ -1,2 +1,2 @@
1
- import{importShared as B}from"./__federation_fn_import-DsoKw508.js";import{j as ae}from"./jsx-runtime-DncYoG30.js";const ce="2.22.1",ue=()=>`@wagmi/core@${ce}`;var z=function(e,t,n,s){if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?s:n==="a"?s.call(e):s?s.value:t.get(e)},O,H;let C=class I extends Error{get docsBaseUrl(){return"https://wagmi.sh/core"}get version(){return ue()}constructor(t,n={}){super(),O.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 s=n.cause instanceof I?n.cause.details:n.cause?.message?n.cause.message:n.details,i=n.cause instanceof I&&n.cause.docsPath||n.docsPath;this.message=[t||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...i?[`Docs: ${this.docsBaseUrl}${i}.html${n.docsSlug?`#${n.docsSlug}`:""}`]:[],...s?[`Details: ${s}`]:[],`Version: ${this.version}`].join(`
1
+ import{importShared as B}from"./__federation_fn_import-BZzr9p5I.js";import{j as ae}from"./jsx-runtime-DncYoG30.js";const ce="2.22.1",ue=()=>`@wagmi/core@${ce}`;var z=function(e,t,n,s){if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?s:n==="a"?s.call(e):s?s.value:t.get(e)},O,H;let C=class I extends Error{get docsBaseUrl(){return"https://wagmi.sh/core"}get version(){return ue()}constructor(t,n={}){super(),O.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 s=n.cause instanceof I?n.cause.details:n.cause?.message?n.cause.message:n.details,i=n.cause instanceof I&&n.cause.docsPath||n.docsPath;this.message=[t||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...i?[`Docs: ${this.docsBaseUrl}${i}.html${n.docsSlug?`#${n.docsSlug}`:""}`]:[],...s?[`Details: ${s}`]:[],`Version: ${this.version}`].join(`
2
2
  `),n.cause&&(this.cause=n.cause),this.details=s,this.docsPath=i,this.metaMessages=n.metaMessages,this.shortMessage=t}walk(t){return z(this,O,"m",H).call(this,this,t)}};O=new WeakSet,H=function e(t,n){return n?.(t)?t:t.cause?z(this,O,"m",e).call(this,t.cause,n):t};class he extends C{constructor(){super("Chain not configured."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotConfiguredError"})}}class Ne extends C{constructor(){super("Connector already connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAlreadyConnectedError"})}}class $e extends C{constructor(){super("Connector not connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorNotConnectedError"})}}class Ke extends C{constructor(){super("Connector not found."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorNotFoundError"})}}class _e extends C{constructor({address:t,connector:n}){super(`Account "${t}" not found for connector "${n.name}".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAccountNotFoundError"})}}class We extends C{constructor({connectionChainId:t,connectorChainId:n}){super(`The current chain of the connector (id: ${n}) does not match the connection's chain (id: ${t}).`,{metaMessages:[`Current Chain ID: ${n}`,`Expected Chain ID: ${t}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorChainMismatchError"})}}class Ge extends C{constructor({connector:t}){super(`Connector "${t.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"})}}class F extends C{constructor(){super("Provider not found."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderNotFoundError"})}}class Qe extends C{constructor({connector:t}){super(`"${t.name}" does not support programmatic chain switching.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainNotSupportedError"})}}function Be(e){return e}const{getAddress:E,numberToHex:N,ResourceUnavailableRpcError:x,SwitchChainError:$,UserRejectedRequestError:b,withRetry:le,withTimeout:de}=await B("viem");V.type="injected";function V(e={}){const{shimDisconnect:t=!0,unstable_shimAsyncInject:n}=e;function s(){const c=e.target;if(typeof c=="function"){const o=c();if(o)return o}return typeof c=="object"?c:typeof c=="string"?{...fe[c]??{id:c,name:`${c[0].toUpperCase()}${c.slice(1)}`,provider:`is${c[0].toUpperCase()}${c.slice(1)}`}}:{id:"injected",name:"Injected",provider(o){return o?.ethereum}}}let i,a,l,r;return c=>({get icon(){return s().icon},get id(){return s().id},get name(){return s().name},get supportsSimulation(){return!0},type:V.type,async setup(){const o=await this.getProvider();o?.on&&e.target&&(l||(l=this.onConnect.bind(this),o.on("connect",l)),i||(i=this.onAccountsChanged.bind(this),o.on("accountsChanged",i)))},async connect({chainId:o,isReconnecting:u,withCapabilities:y}={}){const d=await this.getProvider();if(!d)throw new F;let p=[];if(u)p=await this.getAccounts().catch(()=>[]);else if(t)try{p=(await d.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]}))[0]?.caveats?.[0]?.value?.map(h=>E(h)),p.length>0&&(p=await this.getAccounts())}catch(f){const h=f;if(h.code===b.code)throw new b(h);if(h.code===x.code)throw h}try{!p?.length&&!u&&(p=(await d.request({method:"eth_requestAccounts"})).map(m=>E(m))),l&&(d.removeListener("connect",l),l=void 0),i||(i=this.onAccountsChanged.bind(this),d.on("accountsChanged",i)),a||(a=this.onChainChanged.bind(this),d.on("chainChanged",a)),r||(r=this.onDisconnect.bind(this),d.on("disconnect",r));let f=await this.getChainId();return o&&f!==o&&(f=(await this.switchChain({chainId:o}).catch(m=>{if(m.code===b.code)throw m;return{id:f}}))?.id??f),t&&await c.storage?.removeItem(`${this.id}.disconnected`),e.target||await c.storage?.setItem("injected.connected",!0),{accounts:y?p.map(h=>({address:h,capabilities:{}})):p,chainId:f}}catch(f){const h=f;throw h.code===b.code?new b(h):h.code===x.code?new x(h):h}},async disconnect(){const o=await this.getProvider();if(!o)throw new F;a&&(o.removeListener("chainChanged",a),a=void 0),r&&(o.removeListener("disconnect",r),r=void 0),l||(l=this.onConnect.bind(this),o.on("connect",l));try{await de(()=>o.request({method:"wallet_revokePermissions",params:[{eth_accounts:{}}]}),{timeout:100})}catch{}t&&await c.storage?.setItem(`${this.id}.disconnected`,!0),e.target||await c.storage?.removeItem("injected.connected")},async getAccounts(){const o=await this.getProvider();if(!o)throw new F;return(await o.request({method:"eth_accounts"})).map(y=>E(y))},async getChainId(){const o=await this.getProvider();if(!o)throw new F;const u=await o.request({method:"eth_chainId"});return Number(u)},async getProvider(){if(typeof window>"u")return;let o;const u=s();return typeof u.provider=="function"?o=u.provider(window):typeof u.provider=="string"?o=j(window,u.provider):o=u.provider,o&&!o.removeListener&&("off"in o&&typeof o.off=="function"?o.removeListener=o.off:o.removeListener=()=>{}),o},async isAuthorized(){try{if(t&&await c.storage?.getItem(`${this.id}.disconnected`)||!e.target&&!await c.storage?.getItem("injected.connected"))return!1;if(!await this.getProvider()){if(n!==void 0&&n!==!1){const d=async()=>(typeof window<"u"&&window.removeEventListener("ethereum#initialized",d),!!await this.getProvider()),p=typeof n=="number"?n:1e3;if(await Promise.race([...typeof window<"u"?[new Promise(h=>window.addEventListener("ethereum#initialized",()=>h(d()),{once:!0}))]:[],new Promise(h=>setTimeout(()=>h(d()),p))]))return!0}throw new F}return!!(await le(()=>this.getAccounts())).length}catch{return!1}},async switchChain({addEthereumChainParameter:o,chainId:u}){const y=await this.getProvider();if(!y)throw new F;const d=c.chains.find(f=>f.id===u);if(!d)throw new $(new he);const p=new Promise(f=>{const h=m=>{"chainId"in m&&m.chainId===u&&(c.emitter.off("change",h),f())};c.emitter.on("change",h)});try{return await Promise.all([y.request({method:"wallet_switchEthereumChain",params:[{chainId:N(u)}]}).then(async()=>{await this.getChainId()===u&&c.emitter.emit("change",{chainId:u})}),p]),d}catch(f){const h=f;if(h.code===4902||h?.data?.originalError?.code===4902)try{const{default:m,...v}=d.blockExplorers??{};let g;o?.blockExplorerUrls?g=o.blockExplorerUrls:m&&(g=[m.url,...Object.values(v).map(P=>P.url)]);let w;o?.rpcUrls?.length?w=o.rpcUrls:w=[d.rpcUrls.default?.http[0]??""];const S={blockExplorerUrls:g,chainId:N(u),chainName:o?.chainName??d.name,iconUrls:o?.iconUrls,nativeCurrency:o?.nativeCurrency??d.nativeCurrency,rpcUrls:w};return await Promise.all([y.request({method:"wallet_addEthereumChain",params:[S]}).then(async()=>{if(await this.getChainId()===u)c.emitter.emit("change",{chainId:u});else throw new b(new Error("User rejected switch after adding network."))}),p]),d}catch(m){throw new b(m)}throw h.code===b.code?new b(h):new $(h)}},async onAccountsChanged(o){if(o.length===0)this.onDisconnect();else if(c.emitter.listenerCount("connect")){const u=(await this.getChainId()).toString();this.onConnect({chainId:u}),t&&await c.storage?.removeItem(`${this.id}.disconnected`)}else c.emitter.emit("change",{accounts:o.map(u=>E(u))})},onChainChanged(o){const u=Number(o);c.emitter.emit("change",{chainId:u})},async onConnect(o){const u=await this.getAccounts();if(u.length===0)return;const y=Number(o.chainId);c.emitter.emit("connect",{accounts:u,chainId:y});const d=await this.getProvider();d&&(l&&(d.removeListener("connect",l),l=void 0),i||(i=this.onAccountsChanged.bind(this),d.on("accountsChanged",i)),a||(a=this.onChainChanged.bind(this),d.on("chainChanged",a)),r||(r=this.onDisconnect.bind(this),d.on("disconnect",r)))},async onDisconnect(o){const u=await this.getProvider();o&&o.code===1013&&u&&(await this.getAccounts()).length||(c.emitter.emit("disconnect"),u&&(a&&(u.removeListener("chainChanged",a),a=void 0),r&&(u.removeListener("disconnect",r),r=void 0),l||(l=this.onConnect.bind(this),u.on("connect",l))))}})}const fe={coinbaseWallet:{id:"coinbaseWallet",name:"Coinbase Wallet",provider(e){return e?.coinbaseWalletExtension?e.coinbaseWalletExtension:j(e,"isCoinbaseWallet")}},metaMask:{id:"metaMask",name:"MetaMask",provider(e){return j(e,t=>{if(!t.isMetaMask||t.isBraveWallet&&!t._events&&!t._state)return!1;const n=["isApexWallet","isAvalanche","isBitKeep","isBlockWallet","isKuCoinWallet","isMathWallet","isOkxWallet","isOKExWallet","isOneInchIOSWallet","isOneInchAndroidWallet","isOpera","isPhantom","isPortal","isRabby","isTokenPocket","isTokenary","isUniswapWallet","isZerion"];for(const s of n)if(t[s])return!1;return!0})}},phantom:{id:"phantom",name:"Phantom",provider(e){return e?.phantom?.ethereum?e.phantom?.ethereum:j(e,"isPhantom")}}};function j(e,t){function n(i){return typeof t=="function"?t(i):typeof t=="string"?i[t]:!0}const s=e.ethereum;if(s?.providers)return s.providers.find(i=>n(i));if(s&&n(s))return s}var J=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},me={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},pe=class{#t=me;#n=!1;setTimeoutProvider(e){this.#t=e}setTimeout(e,t){return this.#t.setTimeout(e,t)}clearTimeout(e){this.#t.clearTimeout(e)}setInterval(e,t){return this.#t.setInterval(e,t)}clearInterval(e){this.#t.clearInterval(e)}},T=new pe;function ye(e){setTimeout(e,0)}var A=typeof window>"u"||"Deno"in globalThis;function K(){}function ze(e,t){return typeof e=="function"?e(t):e}function ve(e){return typeof e=="number"&&e>=0&&e!==1/0}function ge(e,t){return Math.max(e+(t||0)-Date.now(),0)}function we(e,t){return typeof e=="function"?e(t):e}function be(e,t){return typeof e=="function"?e(t):e}function He(e,t){const{type:n="all",exact:s,fetchStatus:i,predicate:a,queryKey:l,stale:r}=e;if(l){if(s){if(t.queryHash!==Ce(l,t.options))return!1}else if(!D(t.queryKey,l))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof r=="boolean"&&t.isStale()!==r||i&&i!==t.state.fetchStatus||a&&!a(t))}function Ve(e,t){const{exact:n,status:s,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(q(t.options.mutationKey)!==q(a))return!1}else if(!D(t.options.mutationKey,a))return!1}return!(s&&t.state.status!==s||i&&!i(t))}function Ce(e,t){return(t?.queryKeyHashFn||q)(e)}function q(e){return JSON.stringify(e,(t,n)=>M(n)?Object.keys(n).sort().reduce((s,i)=>(s[i]=n[i],s),{}):n)}function D(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>D(e[n],t[n])):!1}var Pe=Object.prototype.hasOwnProperty;function Z(e,t){if(e===t)return e;const n=_(e)&&_(t);if(!n&&!(M(e)&&M(t)))return t;const i=(n?e:Object.keys(e)).length,a=n?t:Object.keys(t),l=a.length,r=n?new Array(l):{};let c=0;for(let o=0;o<l;o++){const u=n?o:a[o],y=e[u],d=t[u];if(y===d){r[u]=y,(n?o<i:Pe.call(e,u))&&c++;continue}if(y===null||d===null||typeof y!="object"||typeof d!="object"){r[u]=d;continue}const p=Z(y,d);r[u]=p,p===y&&c++}return i===l&&c===i?e:r}function Je(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function _(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function M(e){if(!W(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!W(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function W(e){return Object.prototype.toString.call(e)==="[object Object]"}function Se(e){return new Promise(t=>{T.setTimeout(t,e)})}function Fe(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Z(e,t):t}function Ee(e,t,n=0){const s=[...e,t];return n&&s.length>n?s.slice(1):s}function je(e,t,n=0){const s=[t,...e];return n&&s.length>n?s.slice(0,-1):s}var X=Symbol();function Y(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===X?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Ze(e,t){return typeof e=="function"?e(...t):!!e}function Oe(e,t,n){let s=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),s||(s=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)}),e}var Ae=class extends J{#t;#n;#e;constructor(){super(),this.#e=e=>{if(!A&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#n||this.setEventListener(this.#e)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#e=e,this.#n?.(),this.#n=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},xe=new Ae;function Ie(){let e,t;const n=new Promise((i,a)=>{e=i,t=a});n.status="pending",n.catch(()=>{});function s(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{s({status:"fulfilled",value:i}),e(i)},n.reject=i=>{s({status:"rejected",reason:i}),t(i)},n}var Te=ye;function qe(){let e=[],t=0,n=r=>{r()},s=r=>{r()},i=Te;const a=r=>{t?e.push(r):i(()=>{n(r)})},l=()=>{const r=e;e=[],r.length&&i(()=>{s(()=>{r.forEach(c=>{n(c)})})})};return{batch:r=>{let c;t++;try{c=r()}finally{t--,t||l()}return c},batchCalls:r=>(...c)=>{a(()=>{r(...c)})},schedule:a,setNotifyFunction:r=>{n=r},setBatchNotifyFunction:r=>{s=r},setScheduler:r=>{i=r}}}var ee=qe(),Me=class extends J{#t=!0;#n;#e;constructor(){super(),this.#e=e=>{if(!A&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#n||this.setEventListener(this.#e)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#e=e,this.#n?.(),this.#n=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#t}},te=new Me;function Ue(e){return Math.min(1e3*2**e,3e4)}function ne(e){return(e??"online")==="online"?te.isOnline():!0}var U=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function re(e){let t=!1,n=0,s;const i=Ie(),a=()=>i.status!=="pending",l=h=>{if(!a()){const m=new U(h);d(m),e.onCancel?.(m)}},r=()=>{t=!0},c=()=>{t=!1},o=()=>xe.isFocused()&&(e.networkMode==="always"||te.isOnline())&&e.canRun(),u=()=>ne(e.networkMode)&&e.canRun(),y=h=>{a()||(s?.(),i.resolve(h))},d=h=>{a()||(s?.(),i.reject(h))},p=()=>new Promise(h=>{s=m=>{(a()||o())&&h(m)},e.onPause?.()}).then(()=>{s=void 0,a()||e.onContinue?.()}),f=()=>{if(a())return;let h;const m=n===0?e.initialPromise:void 0;try{h=m??e.fn()}catch(v){h=Promise.reject(v)}Promise.resolve(h).then(y).catch(v=>{if(a())return;const g=e.retry??(A?0:3),w=e.retryDelay??Ue,S=typeof w=="function"?w(n,v):w,P=g===!0||typeof g=="number"&&n<g||typeof g=="function"&&g(n,v);if(t||!P){d(v);return}n++,e.onFail?.(n,v),Se(S).then(()=>o()?void 0:p()).then(()=>{t?d(v):f()})})};return{promise:i,status:()=>i.status,cancel:l,continue:()=>(s?.(),i),cancelRetry:r,continueRetry:c,canStart:u,start:()=>(u()?f():p().then(f),i)}}var se=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ve(this.gcTime)&&(this.#t=T.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(A?1/0:5*60*1e3))}clearGcTimeout(){this.#t&&(T.clearTimeout(this.#t),this.#t=void 0)}},Xe=class extends se{#t;#n;#e;#s;#r;#a;#o;constructor(e){super(),this.#o=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#s=e.client,this.#e=this.#s.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=Q(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#a,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=Q(this.options);t.data!==void 0&&(this.setState(G(t.data,t.dataUpdatedAt)),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#e.remove(this)}setData(e,t){const n=Fe(this.state.data,e,this.options);return this.#i({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(K).catch(K):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>be(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===X||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>we(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!ge(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#o?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#e.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const r=this.observers.find(c=>c.options.queryFn);r&&this.setOptions(r.options)}const n=new AbortController,s=r=>{Object.defineProperty(r,"signal",{enumerable:!0,get:()=>(this.#o=!0,n.signal)})},i=()=>{const r=Y(this.options,t),o=(()=>{const u={client:this.#s,queryKey:this.queryKey,meta:this.meta};return s(u),u})();return this.#o=!1,this.options.persister?this.options.persister(r,o,this):r(o)},l=(()=>{const r={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#s,state:this.state,fetchFn:i};return s(r),r})();this.options.behavior?.onFetch(l,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#i({type:"fetch",meta:l.fetchOptions?.meta}),this.#r=re({initialPromise:t?.initialPromise,fn:l.fetchFn,onCancel:r=>{r instanceof U&&r.revert&&this.setState({...this.#n,fetchStatus:"idle"}),n.abort()},onFail:(r,c)=>{this.#i({type:"failed",failureCount:r,error:c})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0});try{const r=await this.#r.start();if(r===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(r),this.#e.config.onSuccess?.(r,this),this.#e.config.onSettled?.(r,this.state.error,this),r}catch(r){if(r instanceof U){if(r.silent)return this.#r.promise;if(r.revert){if(this.state.data===void 0)throw r;return this.state.data}}throw this.#i({type:"error",error:r}),this.#e.config.onError?.(r,this),this.#e.config.onSettled?.(this.state.data,r,this),r}finally{this.scheduleGc()}}#i(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...Re(n.data,this.options),fetchMeta:e.meta??null};case"success":const s={...n,...G(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?s:void 0,s;case"error":const i=e.error;return{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),ee.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#e.notify({query:this,type:"updated",action:e})})}};function Re(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ne(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function G(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Q(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,s=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}function Ye(e){return{onFetch:(t,n)=>{const s=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],l=t.state.data?.pageParams||[];let r={pages:[],pageParams:[]},c=0;const o=async()=>{let u=!1;const y=f=>{Oe(f,()=>t.signal,()=>u=!0)},d=Y(t.options,t.fetchOptions),p=async(f,h,m)=>{if(u)return Promise.reject();if(h==null&&f.pages.length)return Promise.resolve(f);const g=(()=>{const L={client:t.client,queryKey:t.queryKey,pageParam:h,direction:m?"backward":"forward",meta:t.options.meta};return y(L),L})(),w=await d(g),{maxPages:S}=t.options,P=m?je:Ee;return{pages:P(f.pages,w,S),pageParams:P(f.pageParams,h,S)}};if(i&&a.length){const f=i==="backward",h=f?ie:R,m={pages:a,pageParams:l},v=h(s,m);r=await p(m,v,f)}else{const f=e??a.length;do{const h=c===0?l[0]??s.initialPageParam:R(s,r);if(c>0&&h==null)break;r=await p(r,h),c++}while(c<f)}return r};t.options.persister?t.fetchFn=()=>t.options.persister?.(o,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=o}}}function R(e,{pages:t,pageParams:n}){const s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,n[s],n):void 0}function ie(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function et(e,t){return t?R(e,t)!=null:!1}function tt(e,t){return!t||!e.getPreviousPageParam?!1:ie(e,t)!=null}var nt=class extends se{#t;#n;#e;#s;constructor(e){super(),this.#t=e.client,this.mutationId=e.mutationId,this.#e=e.mutationCache,this.#n=[],this.state=e.state||De(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#n.includes(e)||(this.#n.push(e),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#n=this.#n.filter(t=>t!==e),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#n.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#s?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},n={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#s=re({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(a,l)=>{this.#r({type:"failed",failureCount:a,error:l})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const s=this.state.status==="pending",i=!this.#s.canStart();try{if(s)t();else{this.#r({type:"pending",variables:e,isPaused:i}),await this.#e.config.onMutate?.(e,this,n);const l=await this.options.onMutate?.(e,n);l!==this.state.context&&this.#r({type:"pending",context:l,variables:e,isPaused:i})}const a=await this.#s.start();return await this.#e.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#e.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#r({type:"success",data:a}),a}catch(a){try{await this.#e.config.onError?.(a,e,this.state.context,this,n)}catch(l){Promise.reject(l)}try{await this.options.onError?.(a,e,this.state.context,n)}catch(l){Promise.reject(l)}try{await this.#e.config.onSettled?.(void 0,a,this.state.variables,this.state.context,this,n)}catch(l){Promise.reject(l)}try{await this.options.onSettled?.(void 0,a,e,this.state.context,n)}catch(l){Promise.reject(l)}throw this.#r({type:"error",error:a}),a}finally{this.#e.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),ee.batch(()=>{this.#n.forEach(n=>{n.onMutationUpdate(e)}),this.#e.notify({mutation:this,type:"updated",action:e})})}};function De(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}const k=await B("react");var oe=k.createContext(void 0),rt=e=>{const t=k.useContext(oe);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},st=({client:e,children:t})=>(k.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),ae.jsx(oe.Provider,{value:e,children:t}));export{A,ve as B,he as C,ge as D,T as E,Re as F,Fe as G,tt as H,et as I,De as J,Ze as K,rt as L,nt as M,C as N,Z as O,F as P,Xe as Q,Ke as R,J as S,K as a,He as b,Be as c,ze as d,Ye as e,xe as f,q as g,Ce as h,V as i,st as j,Ne as k,Ge as l,Ve as m,ee as n,te as o,D as p,$e as q,we as r,X as s,We as t,_e as u,Qe as v,ce as w,Ie as x,be as y,Je as z};