@antseed/payments 0.1.2 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/LICENSE +674 -0
  2. package/dist/crypto-context.d.ts +2 -1
  3. package/dist/crypto-context.js +3 -13
  4. package/dist/crypto-context.js.map +1 -1
  5. package/dist/routes.d.ts +1 -0
  6. package/dist/routes.js +132 -20
  7. package/dist/routes.js.map +1 -1
  8. package/dist/server.js +10 -3
  9. package/dist/server.js.map +1 -1
  10. package/dist/web/assets/add-BIV5AyuA.js +15 -0
  11. package/dist/web/assets/all-wallets-EBePThCL.js +6 -0
  12. package/dist/web/assets/app-store-BjklFqDr.js +17 -0
  13. package/dist/web/assets/apple-D1VE8Smb.js +18 -0
  14. package/dist/web/assets/arrow-bottom-ZsiT1L1y.js +8 -0
  15. package/dist/web/assets/arrow-bottom-circle-DKvUi0Ci.js +11 -0
  16. package/dist/web/assets/arrow-left-DqPtSsbQ.js +8 -0
  17. package/dist/web/assets/arrow-right-C-L7Eq7n.js +8 -0
  18. package/dist/web/assets/arrow-top-BsmnE_gW.js +8 -0
  19. package/dist/web/assets/bank-BJyS5lzc.js +14 -0
  20. package/dist/web/assets/basic-GN_iqL6N.js +2128 -0
  21. package/dist/web/assets/browser-CzG38Il3.js +14 -0
  22. package/dist/web/assets/card-BLn7fSRd.js +14 -0
  23. package/dist/web/assets/{ccip-CM_YDd5S.js → ccip-DzXGS3YO.js} +1 -1
  24. package/dist/web/assets/checkmark-LJnZOJkW.js +11 -0
  25. package/dist/web/assets/checkmark-bold-DdCvfZpZ.js +8 -0
  26. package/dist/web/assets/chevron-bottom-fPQSj-LV.js +8 -0
  27. package/dist/web/assets/chevron-left-DxQSFiW8.js +8 -0
  28. package/dist/web/assets/chevron-right-COD1o4NQ.js +8 -0
  29. package/dist/web/assets/chevron-top-B6E8u1u1.js +8 -0
  30. package/dist/web/assets/chrome-store-BVadPKvh.js +61 -0
  31. package/dist/web/assets/clock-CxMPGV40.js +8 -0
  32. package/dist/web/assets/close-BoT-UoFd.js +8 -0
  33. package/dist/web/assets/coinPlaceholder-DTR4YLbx.js +8 -0
  34. package/dist/web/assets/compass-u6DewpdB.js +8 -0
  35. package/dist/web/assets/copy-guqFsruM.js +15 -0
  36. package/dist/web/assets/core-Do4oAjfk.js +908 -0
  37. package/dist/web/assets/cursor-Cyzj71eZ.js +3 -0
  38. package/dist/web/assets/cursor-transparent-b6KJIq15.js +12 -0
  39. package/dist/web/assets/desktop-OTJfzaeI.js +9 -0
  40. package/dist/web/assets/disconnect-DJjKJNIm.js +8 -0
  41. package/dist/web/assets/discord-BfWJZWec.js +17 -0
  42. package/dist/web/assets/etherscan-BRcaU-hR.js +6 -0
  43. package/dist/web/assets/events-DQ172AOg.js +1 -0
  44. package/dist/web/assets/exclamation-triangle-TqYv9OE3.js +4 -0
  45. package/dist/web/assets/extension-Bcq1-Vc9.js +8 -0
  46. package/dist/web/assets/external-link-Dl8906oz.js +8 -0
  47. package/dist/web/assets/facebook-BEGagL0C.js +26 -0
  48. package/dist/web/assets/farcaster-COGce0XN.js +12 -0
  49. package/dist/web/assets/filters-DHDAVWM_.js +8 -0
  50. package/dist/web/assets/github-CHkFHIOw.js +18 -0
  51. package/dist/web/assets/google-BVPM91iU.js +18 -0
  52. package/dist/web/assets/help-circle-JqiWjFOK.js +12 -0
  53. package/dist/web/assets/id-CsrkQOLZ.js +12 -0
  54. package/dist/web/assets/image-DVcW7iXO.js +4 -0
  55. package/dist/web/assets/index-5w7d6cAM.js +1730 -0
  56. package/dist/web/assets/index-9qmOgJOU.js +16 -0
  57. package/dist/web/assets/index-BF417SGJ.js +1 -0
  58. package/dist/web/assets/index-DuvDGHB2.js +47 -0
  59. package/dist/web/assets/index-DzJb2L5K.js +395 -0
  60. package/dist/web/assets/index-kzlEvkEN.js +1 -0
  61. package/dist/web/assets/index.es-CpQtULc3.js +39 -0
  62. package/dist/web/assets/info-BInhAzlq.js +3 -0
  63. package/dist/web/assets/info-circle-BQVRr1po.js +12 -0
  64. package/dist/web/assets/lightbulb-BxxYBMhT.js +3 -0
  65. package/dist/web/assets/mail-D_0lmFKl.js +8 -0
  66. package/dist/web/assets/{metamask-sdk-mx1KHMGY.js → metamask-sdk-DWKTYpSR.js} +15 -15
  67. package/dist/web/assets/mobile-DWLQto9I.js +9 -0
  68. package/dist/web/assets/more-KNa1lBim.js +11 -0
  69. package/dist/web/assets/network-placeholder-BootwA5c.js +14 -0
  70. package/dist/web/assets/nftPlaceholder-DDZ5L7H6.js +8 -0
  71. package/dist/web/assets/off-D0UPLkkK.js +8 -0
  72. package/dist/web/assets/play-store-B_CaXXPp.js +32 -0
  73. package/dist/web/assets/plus-BcvR0JCg.js +13 -0
  74. package/dist/web/assets/qr-code-Txj5hQxm.js +6 -0
  75. package/dist/web/assets/recycle-horizontal-_rXVIasi.js +9 -0
  76. package/dist/web/assets/refresh-CHoOsJ33.js +8 -0
  77. package/dist/web/assets/reown-logo-BHSUfB2F.js +12 -0
  78. package/dist/web/assets/search-BSbqjN1T.js +8 -0
  79. package/dist/web/assets/secp256k1-KHQhI22D.js +1 -0
  80. package/dist/web/assets/secp256k1-bI3F5j6R.js +1 -0
  81. package/dist/web/assets/send-CD2UnMQE.js +15 -0
  82. package/dist/web/assets/swapHorizontal-D8K8GaAT.js +8 -0
  83. package/dist/web/assets/swapHorizontalBold-CQkuydSS.js +8 -0
  84. package/dist/web/assets/swapHorizontalMedium-Di6AKYYk.js +16 -0
  85. package/dist/web/assets/swapHorizontalRoundedBold-Cs0NEdw6.js +8 -0
  86. package/dist/web/assets/swapVertical-BnACgsHa.js +8 -0
  87. package/dist/web/assets/telegram-CItM_Dok.js +16 -0
  88. package/dist/web/assets/three-dots-CWyCBR2N.js +5 -0
  89. package/dist/web/assets/twitch-DlpdSRKl.js +18 -0
  90. package/dist/web/assets/twitterIcon-BIJMMIxn.js +6 -0
  91. package/dist/web/assets/verify-VRzbSjrR.js +8 -0
  92. package/dist/web/assets/verify-filled-CQITc0RR.js +8 -0
  93. package/dist/web/assets/w3m-modal-BUECoo-v.js +642 -0
  94. package/dist/web/assets/wallet-DzucEhgC.js +8 -0
  95. package/dist/web/assets/wallet-placeholder-DDE-TuyH.js +14 -0
  96. package/dist/web/assets/walletconnect-Bz-1NlJ1.js +30 -0
  97. package/dist/web/assets/warning-circle-BkUEJMvU.js +12 -0
  98. package/dist/web/assets/x-iLiJ5bOe.js +12 -0
  99. package/dist/web/index.html +1 -1
  100. package/package.json +20 -21
  101. package/dist/web/assets/connectors-BIqtKyuJ.js +0 -1
  102. package/dist/web/assets/connectors-BkiAkXrA.js +0 -1
  103. package/dist/web/assets/connectors-DAWtxdNk.js +0 -1
  104. package/dist/web/assets/connectors-mXb62Iam.js +0 -1
  105. package/dist/web/assets/index-DMM40kDk.js +0 -1727
@@ -0,0 +1,1730 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-BF417SGJ.js","assets/index-kzlEvkEN.js","assets/index-DuvDGHB2.js","assets/events-DQ172AOg.js","assets/index.es-CpQtULc3.js"])))=>i.map(i=>d[i]);
2
+ var R8=Object.defineProperty;var tv=e=>{throw TypeError(e)};var N8=(e,t,n)=>t in e?R8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Eo=(e,t,n)=>N8(e,typeof t!="symbol"?t+"":t,n),M0=(e,t,n)=>t.has(e)||tv("Cannot "+n);var D=(e,t,n)=>(M0(e,t,"read from private field"),n?n.call(e):t.get(e)),Ae=(e,t,n)=>t.has(e)?tv("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),fe=(e,t,n,r)=>(M0(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Te=(e,t,n)=>(M0(e,t,"access private method"),n);var Eu=(e,t,n,r)=>({set _(i){fe(e,t,i,n)},get _(){return D(e,t,r)}});(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const c of a.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var UN=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function WN(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var D0={exports:{}},Ga={},L0={exports:{}},Re={};/**
3
+ * @license React
4
+ * react.production.min.js
5
+ *
6
+ * Copyright (c) Facebook, Inc. and its affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */var nv;function M8(){if(nv)return Re;nv=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.iterator;function m(L){return L===null||typeof L!="object"?null:(L=g&&L[g]||L["@@iterator"],typeof L=="function"?L:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,b={};function E(L,ee,we){this.props=L,this.context=ee,this.refs=b,this.updater=we||y}E.prototype.isReactComponent={},E.prototype.setState=function(L,ee){if(typeof L!="object"&&typeof L!="function"&&L!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,L,ee,"setState")},E.prototype.forceUpdate=function(L){this.updater.enqueueForceUpdate(this,L,"forceUpdate")};function A(){}A.prototype=E.prototype;function j(L,ee,we){this.props=L,this.context=ee,this.refs=b,this.updater=we||y}var S=j.prototype=new A;S.constructor=j,w(S,E.prototype),S.isPureReactComponent=!0;var k=Array.isArray,I=Object.prototype.hasOwnProperty,P={current:null},_={key:!0,ref:!0,__self:!0,__source:!0};function T(L,ee,we){var oe,le={},he=null,Ce=null;if(ee!=null)for(oe in ee.ref!==void 0&&(Ce=ee.ref),ee.key!==void 0&&(he=""+ee.key),ee)I.call(ee,oe)&&!_.hasOwnProperty(oe)&&(le[oe]=ee[oe]);var _e=arguments.length-2;if(_e===1)le.children=we;else if(1<_e){for(var Oe=Array(_e),Ve=0;Ve<_e;Ve++)Oe[Ve]=arguments[Ve+2];le.children=Oe}if(L&&L.defaultProps)for(oe in _e=L.defaultProps,_e)le[oe]===void 0&&(le[oe]=_e[oe]);return{$$typeof:e,type:L,key:he,ref:Ce,props:le,_owner:P.current}}function M(L,ee){return{$$typeof:e,type:L.type,key:ee,ref:L.ref,props:L.props,_owner:L._owner}}function V(L){return typeof L=="object"&&L!==null&&L.$$typeof===e}function Q(L){var ee={"=":"=0",":":"=2"};return"$"+L.replace(/[=:]/g,function(we){return ee[we]})}var Z=/\/+/g;function G(L,ee){return typeof L=="object"&&L!==null&&L.key!=null?Q(""+L.key):ee.toString(36)}function se(L,ee,we,oe,le){var he=typeof L;(he==="undefined"||he==="boolean")&&(L=null);var Ce=!1;if(L===null)Ce=!0;else switch(he){case"string":case"number":Ce=!0;break;case"object":switch(L.$$typeof){case e:case t:Ce=!0}}if(Ce)return Ce=L,le=le(Ce),L=oe===""?"."+G(Ce,0):oe,k(le)?(we="",L!=null&&(we=L.replace(Z,"$&/")+"/"),se(le,ee,we,"",function(Ve){return Ve})):le!=null&&(V(le)&&(le=M(le,we+(!le.key||Ce&&Ce.key===le.key?"":(""+le.key).replace(Z,"$&/")+"/")+L)),ee.push(le)),1;if(Ce=0,oe=oe===""?".":oe+":",k(L))for(var _e=0;_e<L.length;_e++){he=L[_e];var Oe=oe+G(he,_e);Ce+=se(he,ee,we,Oe,le)}else if(Oe=m(L),typeof Oe=="function")for(L=Oe.call(L),_e=0;!(he=L.next()).done;)he=he.value,Oe=oe+G(he,_e++),Ce+=se(he,ee,we,Oe,le);else if(he==="object")throw ee=String(L),Error("Objects are not valid as a React child (found: "+(ee==="[object Object]"?"object with keys {"+Object.keys(L).join(", ")+"}":ee)+"). If you meant to render a collection of children, use an array instead.");return Ce}function $(L,ee,we){if(L==null)return L;var oe=[],le=0;return se(L,oe,"","",function(he){return ee.call(we,he,le++)}),oe}function X(L){if(L._status===-1){var ee=L._result;ee=ee(),ee.then(function(we){(L._status===0||L._status===-1)&&(L._status=1,L._result=we)},function(we){(L._status===0||L._status===-1)&&(L._status=2,L._result=we)}),L._status===-1&&(L._status=0,L._result=ee)}if(L._status===1)return L._result.default;throw L._result}var te={current:null},z={transition:null},J={ReactCurrentDispatcher:te,ReactCurrentBatchConfig:z,ReactCurrentOwner:P};function Y(){throw Error("act(...) is not supported in production builds of React.")}return Re.Children={map:$,forEach:function(L,ee,we){$(L,function(){ee.apply(this,arguments)},we)},count:function(L){var ee=0;return $(L,function(){ee++}),ee},toArray:function(L){return $(L,function(ee){return ee})||[]},only:function(L){if(!V(L))throw Error("React.Children.only expected to receive a single React element child.");return L}},Re.Component=E,Re.Fragment=n,Re.Profiler=i,Re.PureComponent=j,Re.StrictMode=r,Re.Suspense=d,Re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=J,Re.act=Y,Re.cloneElement=function(L,ee,we){if(L==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+L+".");var oe=w({},L.props),le=L.key,he=L.ref,Ce=L._owner;if(ee!=null){if(ee.ref!==void 0&&(he=ee.ref,Ce=P.current),ee.key!==void 0&&(le=""+ee.key),L.type&&L.type.defaultProps)var _e=L.type.defaultProps;for(Oe in ee)I.call(ee,Oe)&&!_.hasOwnProperty(Oe)&&(oe[Oe]=ee[Oe]===void 0&&_e!==void 0?_e[Oe]:ee[Oe])}var Oe=arguments.length-2;if(Oe===1)oe.children=we;else if(1<Oe){_e=Array(Oe);for(var Ve=0;Ve<Oe;Ve++)_e[Ve]=arguments[Ve+2];oe.children=_e}return{$$typeof:e,type:L.type,key:le,ref:he,props:oe,_owner:Ce}},Re.createContext=function(L){return L={$$typeof:c,_currentValue:L,_currentValue2:L,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},L.Provider={$$typeof:a,_context:L},L.Consumer=L},Re.createElement=T,Re.createFactory=function(L){var ee=T.bind(null,L);return ee.type=L,ee},Re.createRef=function(){return{current:null}},Re.forwardRef=function(L){return{$$typeof:u,render:L}},Re.isValidElement=V,Re.lazy=function(L){return{$$typeof:p,_payload:{_status:-1,_result:L},_init:X}},Re.memo=function(L,ee){return{$$typeof:f,type:L,compare:ee===void 0?null:ee}},Re.startTransition=function(L){var ee=z.transition;z.transition={};try{L()}finally{z.transition=ee}},Re.unstable_act=Y,Re.useCallback=function(L,ee){return te.current.useCallback(L,ee)},Re.useContext=function(L){return te.current.useContext(L)},Re.useDebugValue=function(){},Re.useDeferredValue=function(L){return te.current.useDeferredValue(L)},Re.useEffect=function(L,ee){return te.current.useEffect(L,ee)},Re.useId=function(){return te.current.useId()},Re.useImperativeHandle=function(L,ee,we){return te.current.useImperativeHandle(L,ee,we)},Re.useInsertionEffect=function(L,ee){return te.current.useInsertionEffect(L,ee)},Re.useLayoutEffect=function(L,ee){return te.current.useLayoutEffect(L,ee)},Re.useMemo=function(L,ee){return te.current.useMemo(L,ee)},Re.useReducer=function(L,ee,we){return te.current.useReducer(L,ee,we)},Re.useRef=function(L){return te.current.useRef(L)},Re.useState=function(L){return te.current.useState(L)},Re.useSyncExternalStore=function(L,ee,we){return te.current.useSyncExternalStore(L,ee,we)},Re.useTransition=function(){return te.current.useTransition()},Re.version="18.3.1",Re}var rv;function Qc(){return rv||(rv=1,L0.exports=M8()),L0.exports}/**
11
+ * @license React
12
+ * react-jsx-runtime.production.min.js
13
+ *
14
+ * Copyright (c) Facebook, Inc. and its affiliates.
15
+ *
16
+ * This source code is licensed under the MIT license found in the
17
+ * LICENSE file in the root directory of this source tree.
18
+ */var ov;function D8(){if(ov)return Ga;ov=1;var e=Qc(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function c(u,d,f){var p,g={},m=null,y=null;f!==void 0&&(m=""+f),d.key!==void 0&&(m=""+d.key),d.ref!==void 0&&(y=d.ref);for(p in d)r.call(d,p)&&!a.hasOwnProperty(p)&&(g[p]=d[p]);if(u&&u.defaultProps)for(p in d=u.defaultProps,d)g[p]===void 0&&(g[p]=d[p]);return{$$typeof:t,type:u,key:m,ref:y,props:g,_owner:i.current}}return Ga.Fragment=n,Ga.jsx=c,Ga.jsxs=c,Ga}var iv;function L8(){return iv||(iv=1,D0.exports=D8()),D0.exports}var W=L8(),Au={},F0={exports:{}},en={},z0={exports:{}},U0={};/**
19
+ * @license React
20
+ * scheduler.production.min.js
21
+ *
22
+ * Copyright (c) Facebook, Inc. and its affiliates.
23
+ *
24
+ * This source code is licensed under the MIT license found in the
25
+ * LICENSE file in the root directory of this source tree.
26
+ */var sv;function F8(){return sv||(sv=1,(function(e){function t(z,J){var Y=z.length;z.push(J);e:for(;0<Y;){var L=Y-1>>>1,ee=z[L];if(0<i(ee,J))z[L]=J,z[Y]=ee,Y=L;else break e}}function n(z){return z.length===0?null:z[0]}function r(z){if(z.length===0)return null;var J=z[0],Y=z.pop();if(Y!==J){z[0]=Y;e:for(var L=0,ee=z.length,we=ee>>>1;L<we;){var oe=2*(L+1)-1,le=z[oe],he=oe+1,Ce=z[he];if(0>i(le,Y))he<ee&&0>i(Ce,le)?(z[L]=Ce,z[he]=Y,L=he):(z[L]=le,z[oe]=Y,L=oe);else if(he<ee&&0>i(Ce,Y))z[L]=Ce,z[he]=Y,L=he;else break e}}return J}function i(z,J){var Y=z.sortIndex-J.sortIndex;return Y!==0?Y:z.id-J.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var c=Date,u=c.now();e.unstable_now=function(){return c.now()-u}}var d=[],f=[],p=1,g=null,m=3,y=!1,w=!1,b=!1,E=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(z){for(var J=n(f);J!==null;){if(J.callback===null)r(f);else if(J.startTime<=z)r(f),J.sortIndex=J.expirationTime,t(d,J);else break;J=n(f)}}function k(z){if(b=!1,S(z),!w)if(n(d)!==null)w=!0,X(I);else{var J=n(f);J!==null&&te(k,J.startTime-z)}}function I(z,J){w=!1,b&&(b=!1,A(T),T=-1),y=!0;var Y=m;try{for(S(J),g=n(d);g!==null&&(!(g.expirationTime>J)||z&&!Q());){var L=g.callback;if(typeof L=="function"){g.callback=null,m=g.priorityLevel;var ee=L(g.expirationTime<=J);J=e.unstable_now(),typeof ee=="function"?g.callback=ee:g===n(d)&&r(d),S(J)}else r(d);g=n(d)}if(g!==null)var we=!0;else{var oe=n(f);oe!==null&&te(k,oe.startTime-J),we=!1}return we}finally{g=null,m=Y,y=!1}}var P=!1,_=null,T=-1,M=5,V=-1;function Q(){return!(e.unstable_now()-V<M)}function Z(){if(_!==null){var z=e.unstable_now();V=z;var J=!0;try{J=_(!0,z)}finally{J?G():(P=!1,_=null)}}else P=!1}var G;if(typeof j=="function")G=function(){j(Z)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,$=se.port2;se.port1.onmessage=Z,G=function(){$.postMessage(null)}}else G=function(){E(Z,0)};function X(z){_=z,P||(P=!0,G())}function te(z,J){T=E(function(){z(e.unstable_now())},J)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(z){z.callback=null},e.unstable_continueExecution=function(){w||y||(w=!0,X(I))},e.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<z?Math.floor(1e3/z):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(d)},e.unstable_next=function(z){switch(m){case 1:case 2:case 3:var J=3;break;default:J=m}var Y=m;m=J;try{return z()}finally{m=Y}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(z,J){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var Y=m;m=z;try{return J()}finally{m=Y}},e.unstable_scheduleCallback=function(z,J,Y){var L=e.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?L+Y:L):Y=L,z){case 1:var ee=-1;break;case 2:ee=250;break;case 5:ee=1073741823;break;case 4:ee=1e4;break;default:ee=5e3}return ee=Y+ee,z={id:p++,callback:J,priorityLevel:z,startTime:Y,expirationTime:ee,sortIndex:-1},Y>L?(z.sortIndex=Y,t(f,z),n(d)===null&&z===n(f)&&(b?(A(T),T=-1):b=!0,te(k,Y-L))):(z.sortIndex=ee,t(d,z),w||y||(w=!0,X(I))),z},e.unstable_shouldYield=Q,e.unstable_wrapCallback=function(z){var J=m;return function(){var Y=m;m=J;try{return z.apply(this,arguments)}finally{m=Y}}}})(U0)),U0}var av;function z8(){return av||(av=1,z0.exports=F8()),z0.exports}/**
27
+ * @license React
28
+ * react-dom.production.min.js
29
+ *
30
+ * Copyright (c) Facebook, Inc. and its affiliates.
31
+ *
32
+ * This source code is licensed under the MIT license found in the
33
+ * LICENSE file in the root directory of this source tree.
34
+ */var cv;function U8(){if(cv)return en;cv=1;var e=Qc(),t=z8();function n(o){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+o,l=1;l<arguments.length;l++)s+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+o+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,i={};function a(o,s){c(o,s),c(o+"Capture",s)}function c(o,s){for(i[o]=s,o=0;o<s.length;o++)r.add(s[o])}var u=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},g={};function m(o){return d.call(g,o)?!0:d.call(p,o)?!1:f.test(o)?g[o]=!0:(p[o]=!0,!1)}function y(o,s,l,h){if(l!==null&&l.type===0)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":return h?!1:l!==null?!l.acceptsBooleans:(o=o.toLowerCase().slice(0,5),o!=="data-"&&o!=="aria-");default:return!1}}function w(o,s,l,h){if(s===null||typeof s>"u"||y(o,s,l,h))return!0;if(h)return!1;if(l!==null)switch(l.type){case 3:return!s;case 4:return s===!1;case 5:return isNaN(s);case 6:return isNaN(s)||1>s}return!1}function b(o,s,l,h,v,x,B){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=h,this.attributeNamespace=v,this.mustUseProperty=l,this.propertyName=o,this.type=s,this.sanitizeURL=x,this.removeEmptyString=B}var E={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(o){E[o]=new b(o,0,!1,o,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(o){var s=o[0];E[s]=new b(s,1,!1,o[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(o){E[o]=new b(o,2,!1,o.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(o){E[o]=new b(o,2,!1,o,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(o){E[o]=new b(o,3,!1,o.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(o){E[o]=new b(o,3,!0,o,null,!1,!1)}),["capture","download"].forEach(function(o){E[o]=new b(o,4,!1,o,null,!1,!1)}),["cols","rows","size","span"].forEach(function(o){E[o]=new b(o,6,!1,o,null,!1,!1)}),["rowSpan","start"].forEach(function(o){E[o]=new b(o,5,!1,o.toLowerCase(),null,!1,!1)});var A=/[\-:]([a-z])/g;function j(o){return o[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(o){var s=o.replace(A,j);E[s]=new b(s,1,!1,o,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(o){var s=o.replace(A,j);E[s]=new b(s,1,!1,o,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(o){var s=o.replace(A,j);E[s]=new b(s,1,!1,o,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(o){E[o]=new b(o,1,!1,o.toLowerCase(),null,!1,!1)}),E.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(o){E[o]=new b(o,1,!1,o.toLowerCase(),null,!0,!0)});function S(o,s,l,h){var v=E.hasOwnProperty(s)?E[s]:null;(v!==null?v.type!==0:h||!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(w(s,l,v,h)&&(l=null),h||v===null?m(s)&&(l===null?o.removeAttribute(s):o.setAttribute(s,""+l)):v.mustUseProperty?o[v.propertyName]=l===null?v.type===3?!1:"":l:(s=v.attributeName,h=v.attributeNamespace,l===null?o.removeAttribute(s):(v=v.type,l=v===3||v===4&&l===!0?"":""+l,h?o.setAttributeNS(h,s,l):o.setAttribute(s,l))))}var k=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,I=Symbol.for("react.element"),P=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),V=Symbol.for("react.provider"),Q=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),se=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),te=Symbol.for("react.offscreen"),z=Symbol.iterator;function J(o){return o===null||typeof o!="object"?null:(o=z&&o[z]||o["@@iterator"],typeof o=="function"?o:null)}var Y=Object.assign,L;function ee(o){if(L===void 0)try{throw Error()}catch(l){var s=l.stack.trim().match(/\n( *(at )?)/);L=s&&s[1]||""}return`
35
+ `+L+o}var we=!1;function oe(o,s){if(!o||we)return"";we=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(s)if(s=function(){throw Error()},Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(K){var h=K}Reflect.construct(o,[],s)}else{try{s.call()}catch(K){h=K}o.call(s.prototype)}else{try{throw Error()}catch(K){h=K}o()}}catch(K){if(K&&h&&typeof K.stack=="string"){for(var v=K.stack.split(`
36
+ `),x=h.stack.split(`
37
+ `),B=v.length-1,O=x.length-1;1<=B&&0<=O&&v[B]!==x[O];)O--;for(;1<=B&&0<=O;B--,O--)if(v[B]!==x[O]){if(B!==1||O!==1)do if(B--,O--,0>O||v[B]!==x[O]){var F=`
38
+ `+v[B].replace(" at new "," at ");return o.displayName&&F.includes("<anonymous>")&&(F=F.replace("<anonymous>",o.displayName)),F}while(1<=B&&0<=O);break}}}finally{we=!1,Error.prepareStackTrace=l}return(o=o?o.displayName||o.name:"")?ee(o):""}function le(o){switch(o.tag){case 5:return ee(o.type);case 16:return ee("Lazy");case 13:return ee("Suspense");case 19:return ee("SuspenseList");case 0:case 2:case 15:return o=oe(o.type,!1),o;case 11:return o=oe(o.type.render,!1),o;case 1:return o=oe(o.type,!0),o;default:return""}}function he(o){if(o==null)return null;if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case _:return"Fragment";case P:return"Portal";case M:return"Profiler";case T:return"StrictMode";case G:return"Suspense";case se:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case Q:return(o.displayName||"Context")+".Consumer";case V:return(o._context.displayName||"Context")+".Provider";case Z:var s=o.render;return o=o.displayName,o||(o=s.displayName||s.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case $:return s=o.displayName||null,s!==null?s:he(o.type)||"Memo";case X:s=o._payload,o=o._init;try{return he(o(s))}catch{}}return null}function Ce(o){var s=o.type;switch(o.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return o=s.render,o=o.displayName||o.name||"",s.displayName||(o!==""?"ForwardRef("+o+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return he(s);case 8:return s===T?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function _e(o){switch(typeof o){case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function Oe(o){var s=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function Ve(o){var s=Oe(o)?"checked":"value",l=Object.getOwnPropertyDescriptor(o.constructor.prototype,s),h=""+o[s];if(!o.hasOwnProperty(s)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var v=l.get,x=l.set;return Object.defineProperty(o,s,{configurable:!0,get:function(){return v.call(this)},set:function(B){h=""+B,x.call(this,B)}}),Object.defineProperty(o,s,{enumerable:l.enumerable}),{getValue:function(){return h},setValue:function(B){h=""+B},stopTracking:function(){o._valueTracker=null,delete o[s]}}}}function Cn(o){o._valueTracker||(o._valueTracker=Ve(o))}function En(o){if(!o)return!1;var s=o._valueTracker;if(!s)return!0;var l=s.getValue(),h="";return o&&(h=Oe(o)?o.checked?"true":"false":o.value),o=h,o!==l?(s.setValue(o),!0):!1}function Mt(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}function An(o,s){var l=s.checked;return Y({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??o._wrapperState.initialChecked})}function zn(o,s){var l=s.defaultValue==null?"":s.defaultValue,h=s.checked!=null?s.checked:s.defaultChecked;l=_e(s.value!=null?s.value:l),o._wrapperState={initialChecked:h,initialValue:l,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function kn(o,s){s=s.checked,s!=null&&S(o,"checked",s,!1)}function ua(o,s){kn(o,s);var l=_e(s.value),h=s.type;if(l!=null)h==="number"?(l===0&&o.value===""||o.value!=l)&&(o.value=""+l):o.value!==""+l&&(o.value=""+l);else if(h==="submit"||h==="reset"){o.removeAttribute("value");return}s.hasOwnProperty("value")?Qi(o,s.type,l):s.hasOwnProperty("defaultValue")&&Qi(o,s.type,_e(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(o.defaultChecked=!!s.defaultChecked)}function Ko(o,s,l){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var h=s.type;if(!(h!=="submit"&&h!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+o._wrapperState.initialValue,l||s===o.value||(o.value=s),o.defaultValue=s}l=o.name,l!==""&&(o.name=""),o.defaultChecked=!!o._wrapperState.initialChecked,l!==""&&(o.name=l)}function Qi(o,s,l){(s!=="number"||Mt(o.ownerDocument)!==o)&&(l==null?o.defaultValue=""+o._wrapperState.initialValue:o.defaultValue!==""+l&&(o.defaultValue=""+l))}var Un=Array.isArray;function eo(o,s,l,h){if(o=o.options,s){s={};for(var v=0;v<l.length;v++)s["$"+l[v]]=!0;for(l=0;l<o.length;l++)v=s.hasOwnProperty("$"+o[l].value),o[l].selected!==v&&(o[l].selected=v),v&&h&&(o[l].defaultSelected=!0)}else{for(l=""+_e(l),s=null,v=0;v<o.length;v++){if(o[v].value===l){o[v].selected=!0,h&&(o[v].defaultSelected=!0);return}s!==null||o[v].disabled||(s=o[v])}s!==null&&(s.selected=!0)}}function Yo(o,s){if(s.dangerouslySetInnerHTML!=null)throw Error(n(91));return Y({},s,{value:void 0,defaultValue:void 0,children:""+o._wrapperState.initialValue})}function to(o,s){var l=s.value;if(l==null){if(l=s.children,s=s.defaultValue,l!=null){if(s!=null)throw Error(n(92));if(Un(l)){if(1<l.length)throw Error(n(93));l=l[0]}s=l}s==null&&(s=""),l=s}o._wrapperState={initialValue:_e(l)}}function no(o,s){var l=_e(s.value),h=_e(s.defaultValue);l!=null&&(l=""+l,l!==o.value&&(o.value=l),s.defaultValue==null&&o.defaultValue!==l&&(o.defaultValue=l)),h!=null&&(o.defaultValue=""+h)}function ml(o){var s=o.textContent;s===o._wrapperState.initialValue&&s!==""&&s!==null&&(o.value=s)}function da(o){switch(o){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Gi(o,s){return o==null||o==="http://www.w3.org/1999/xhtml"?da(s):o==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":o}var It,Ar=(function(o){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(s,l,h,v){MSApp.execUnsafeLocalFunction(function(){return o(s,l,h,v)})}:o})(function(o,s){if(o.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in o)o.innerHTML=s;else{for(It=It||document.createElement("div"),It.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=It.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;s.firstChild;)o.appendChild(s.firstChild)}});function sr(o,s){if(s){var l=o.firstChild;if(l&&l===o.lastChild&&l.nodeType===3){l.nodeValue=s;return}}o.textContent=s}var Pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Fe=["Webkit","ms","Moz","O"];Object.keys(Pe).forEach(function(o){Fe.forEach(function(s){s=s+o.charAt(0).toUpperCase()+o.substring(1),Pe[s]=Pe[o]})});function Be(o,s,l){return s==null||typeof s=="boolean"||s===""?"":l||typeof s!="number"||s===0||Pe.hasOwnProperty(o)&&Pe[o]?(""+s).trim():s+"px"}function qe(o,s){o=o.style;for(var l in s)if(s.hasOwnProperty(l)){var h=l.indexOf("--")===0,v=Be(l,s[l],h);l==="float"&&(l="cssFloat"),h?o.setProperty(l,v):o[l]=v}}var Wn=Y({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Qt(o,s){if(s){if(Wn[o]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(n(137,o));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(n(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(n(61))}if(s.style!=null&&typeof s.style!="object")throw Error(n(62))}}function Le(o,s){if(o.indexOf("-")===-1)return typeof s.is=="string";switch(o){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ie=null;function Gt(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var Jo=null,kr=null,Ki=null;function v1(o){if(o=Oa(o)){if(typeof Jo!="function")throw Error(n(280));var s=o.stateNode;s&&(s=Ll(s),Jo(o.stateNode,o.type,s))}}function w1(o){kr?Ki?Ki.push(o):Ki=[o]:kr=o}function b1(){if(kr){var o=kr,s=Ki;if(Ki=kr=null,v1(o),s)for(o=0;o<s.length;o++)v1(s[o])}}function x1(o,s){return o(s)}function C1(){}var Zd=!1;function E1(o,s,l){if(Zd)return o(s,l);Zd=!0;try{return x1(o,s,l)}finally{Zd=!1,(kr!==null||Ki!==null)&&(C1(),b1())}}function fa(o,s){var l=o.stateNode;if(l===null)return null;var h=Ll(l);if(h===null)return null;l=h[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(o=o.type,h=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!h;break e;default:o=!1}if(o)return null;if(l&&typeof l!="function")throw Error(n(231,s,typeof l));return l}var Xd=!1;if(u)try{var ha={};Object.defineProperty(ha,"passive",{get:function(){Xd=!0}}),window.addEventListener("test",ha,ha),window.removeEventListener("test",ha,ha)}catch{Xd=!1}function zx(o,s,l,h,v,x,B,O,F){var K=Array.prototype.slice.call(arguments,3);try{s.apply(l,K)}catch(ie){this.onError(ie)}}var pa=!1,gl=null,yl=!1,ef=null,Ux={onError:function(o){pa=!0,gl=o}};function Wx(o,s,l,h,v,x,B,O,F){pa=!1,gl=null,zx.apply(Ux,arguments)}function $x(o,s,l,h,v,x,B,O,F){if(Wx.apply(this,arguments),pa){if(pa){var K=gl;pa=!1,gl=null}else throw Error(n(198));yl||(yl=!0,ef=K)}}function Zo(o){var s=o,l=o;if(o.alternate)for(;s.return;)s=s.return;else{o=s;do s=o,(s.flags&4098)!==0&&(l=s.return),o=s.return;while(o)}return s.tag===3?l:null}function A1(o){if(o.tag===13){var s=o.memoizedState;if(s===null&&(o=o.alternate,o!==null&&(s=o.memoizedState)),s!==null)return s.dehydrated}return null}function k1(o){if(Zo(o)!==o)throw Error(n(188))}function qx(o){var s=o.alternate;if(!s){if(s=Zo(o),s===null)throw Error(n(188));return s!==o?null:o}for(var l=o,h=s;;){var v=l.return;if(v===null)break;var x=v.alternate;if(x===null){if(h=v.return,h!==null){l=h;continue}break}if(v.child===x.child){for(x=v.child;x;){if(x===l)return k1(v),o;if(x===h)return k1(v),s;x=x.sibling}throw Error(n(188))}if(l.return!==h.return)l=v,h=x;else{for(var B=!1,O=v.child;O;){if(O===l){B=!0,l=v,h=x;break}if(O===h){B=!0,h=v,l=x;break}O=O.sibling}if(!B){for(O=x.child;O;){if(O===l){B=!0,l=x,h=v;break}if(O===h){B=!0,h=x,l=v;break}O=O.sibling}if(!B)throw Error(n(189))}}if(l.alternate!==h)throw Error(n(190))}if(l.tag!==3)throw Error(n(188));return l.stateNode.current===l?o:s}function S1(o){return o=qx(o),o!==null?I1(o):null}function I1(o){if(o.tag===5||o.tag===6)return o;for(o=o.child;o!==null;){var s=I1(o);if(s!==null)return s;o=o.sibling}return null}var j1=t.unstable_scheduleCallback,B1=t.unstable_cancelCallback,Hx=t.unstable_shouldYield,Vx=t.unstable_requestPaint,rt=t.unstable_now,Qx=t.unstable_getCurrentPriorityLevel,tf=t.unstable_ImmediatePriority,_1=t.unstable_UserBlockingPriority,vl=t.unstable_NormalPriority,Gx=t.unstable_LowPriority,P1=t.unstable_IdlePriority,wl=null,ar=null;function Kx(o){if(ar&&typeof ar.onCommitFiberRoot=="function")try{ar.onCommitFiberRoot(wl,o,void 0,(o.current.flags&128)===128)}catch{}}var $n=Math.clz32?Math.clz32:Zx,Yx=Math.log,Jx=Math.LN2;function Zx(o){return o>>>=0,o===0?32:31-(Yx(o)/Jx|0)|0}var bl=64,xl=4194304;function ma(o){switch(o&-o){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return o&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return o}}function Cl(o,s){var l=o.pendingLanes;if(l===0)return 0;var h=0,v=o.suspendedLanes,x=o.pingedLanes,B=l&268435455;if(B!==0){var O=B&~v;O!==0?h=ma(O):(x&=B,x!==0&&(h=ma(x)))}else B=l&~v,B!==0?h=ma(B):x!==0&&(h=ma(x));if(h===0)return 0;if(s!==0&&s!==h&&(s&v)===0&&(v=h&-h,x=s&-s,v>=x||v===16&&(x&4194240)!==0))return s;if((h&4)!==0&&(h|=l&16),s=o.entangledLanes,s!==0)for(o=o.entanglements,s&=h;0<s;)l=31-$n(s),v=1<<l,h|=o[l],s&=~v;return h}function Xx(o,s){switch(o){case 1:case 2:case 4:return s+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function eC(o,s){for(var l=o.suspendedLanes,h=o.pingedLanes,v=o.expirationTimes,x=o.pendingLanes;0<x;){var B=31-$n(x),O=1<<B,F=v[B];F===-1?((O&l)===0||(O&h)!==0)&&(v[B]=Xx(O,s)):F<=s&&(o.expiredLanes|=O),x&=~O}}function nf(o){return o=o.pendingLanes&-1073741825,o!==0?o:o&1073741824?1073741824:0}function T1(){var o=bl;return bl<<=1,(bl&4194240)===0&&(bl=64),o}function rf(o){for(var s=[],l=0;31>l;l++)s.push(o);return s}function ga(o,s,l){o.pendingLanes|=s,s!==536870912&&(o.suspendedLanes=0,o.pingedLanes=0),o=o.eventTimes,s=31-$n(s),o[s]=l}function tC(o,s){var l=o.pendingLanes&~s;o.pendingLanes=s,o.suspendedLanes=0,o.pingedLanes=0,o.expiredLanes&=s,o.mutableReadLanes&=s,o.entangledLanes&=s,s=o.entanglements;var h=o.eventTimes;for(o=o.expirationTimes;0<l;){var v=31-$n(l),x=1<<v;s[v]=0,h[v]=-1,o[v]=-1,l&=~x}}function of(o,s){var l=o.entangledLanes|=s;for(o=o.entanglements;l;){var h=31-$n(l),v=1<<h;v&s|o[h]&s&&(o[h]|=s),l&=~v}}var He=0;function O1(o){return o&=-o,1<o?4<o?(o&268435455)!==0?16:536870912:4:1}var R1,sf,N1,M1,D1,af=!1,El=[],ro=null,oo=null,io=null,ya=new Map,va=new Map,so=[],nC="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function L1(o,s){switch(o){case"focusin":case"focusout":ro=null;break;case"dragenter":case"dragleave":oo=null;break;case"mouseover":case"mouseout":io=null;break;case"pointerover":case"pointerout":ya.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":va.delete(s.pointerId)}}function wa(o,s,l,h,v,x){return o===null||o.nativeEvent!==x?(o={blockedOn:s,domEventName:l,eventSystemFlags:h,nativeEvent:x,targetContainers:[v]},s!==null&&(s=Oa(s),s!==null&&sf(s)),o):(o.eventSystemFlags|=h,s=o.targetContainers,v!==null&&s.indexOf(v)===-1&&s.push(v),o)}function rC(o,s,l,h,v){switch(s){case"focusin":return ro=wa(ro,o,s,l,h,v),!0;case"dragenter":return oo=wa(oo,o,s,l,h,v),!0;case"mouseover":return io=wa(io,o,s,l,h,v),!0;case"pointerover":var x=v.pointerId;return ya.set(x,wa(ya.get(x)||null,o,s,l,h,v)),!0;case"gotpointercapture":return x=v.pointerId,va.set(x,wa(va.get(x)||null,o,s,l,h,v)),!0}return!1}function F1(o){var s=Xo(o.target);if(s!==null){var l=Zo(s);if(l!==null){if(s=l.tag,s===13){if(s=A1(l),s!==null){o.blockedOn=s,D1(o.priority,function(){N1(l)});return}}else if(s===3&&l.stateNode.current.memoizedState.isDehydrated){o.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}o.blockedOn=null}function Al(o){if(o.blockedOn!==null)return!1;for(var s=o.targetContainers;0<s.length;){var l=lf(o.domEventName,o.eventSystemFlags,s[0],o.nativeEvent);if(l===null){l=o.nativeEvent;var h=new l.constructor(l.type,l);Ie=h,l.target.dispatchEvent(h),Ie=null}else return s=Oa(l),s!==null&&sf(s),o.blockedOn=l,!1;s.shift()}return!0}function z1(o,s,l){Al(o)&&l.delete(s)}function oC(){af=!1,ro!==null&&Al(ro)&&(ro=null),oo!==null&&Al(oo)&&(oo=null),io!==null&&Al(io)&&(io=null),ya.forEach(z1),va.forEach(z1)}function ba(o,s){o.blockedOn===s&&(o.blockedOn=null,af||(af=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,oC)))}function xa(o){function s(v){return ba(v,o)}if(0<El.length){ba(El[0],o);for(var l=1;l<El.length;l++){var h=El[l];h.blockedOn===o&&(h.blockedOn=null)}}for(ro!==null&&ba(ro,o),oo!==null&&ba(oo,o),io!==null&&ba(io,o),ya.forEach(s),va.forEach(s),l=0;l<so.length;l++)h=so[l],h.blockedOn===o&&(h.blockedOn=null);for(;0<so.length&&(l=so[0],l.blockedOn===null);)F1(l),l.blockedOn===null&&so.shift()}var Yi=k.ReactCurrentBatchConfig,kl=!0;function iC(o,s,l,h){var v=He,x=Yi.transition;Yi.transition=null;try{He=1,cf(o,s,l,h)}finally{He=v,Yi.transition=x}}function sC(o,s,l,h){var v=He,x=Yi.transition;Yi.transition=null;try{He=4,cf(o,s,l,h)}finally{He=v,Yi.transition=x}}function cf(o,s,l,h){if(kl){var v=lf(o,s,l,h);if(v===null)Sf(o,s,h,Sl,l),L1(o,h);else if(rC(v,o,s,l,h))h.stopPropagation();else if(L1(o,h),s&4&&-1<nC.indexOf(o)){for(;v!==null;){var x=Oa(v);if(x!==null&&R1(x),x=lf(o,s,l,h),x===null&&Sf(o,s,h,Sl,l),x===v)break;v=x}v!==null&&h.stopPropagation()}else Sf(o,s,h,null,l)}}var Sl=null;function lf(o,s,l,h){if(Sl=null,o=Gt(h),o=Xo(o),o!==null)if(s=Zo(o),s===null)o=null;else if(l=s.tag,l===13){if(o=A1(s),o!==null)return o;o=null}else if(l===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;o=null}else s!==o&&(o=null);return Sl=o,null}function U1(o){switch(o){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Qx()){case tf:return 1;case _1:return 4;case vl:case Gx:return 16;case P1:return 536870912;default:return 16}default:return 16}}var ao=null,uf=null,Il=null;function W1(){if(Il)return Il;var o,s=uf,l=s.length,h,v="value"in ao?ao.value:ao.textContent,x=v.length;for(o=0;o<l&&s[o]===v[o];o++);var B=l-o;for(h=1;h<=B&&s[l-h]===v[x-h];h++);return Il=v.slice(o,1<h?1-h:void 0)}function jl(o){var s=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&s===13&&(o=13)):o=s,o===10&&(o=13),32<=o||o===13?o:0}function Bl(){return!0}function $1(){return!1}function dn(o){function s(l,h,v,x,B){this._reactName=l,this._targetInst=v,this.type=h,this.nativeEvent=x,this.target=B,this.currentTarget=null;for(var O in o)o.hasOwnProperty(O)&&(l=o[O],this[O]=l?l(x):x[O]);return this.isDefaultPrevented=(x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1)?Bl:$1,this.isPropagationStopped=$1,this}return Y(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Bl)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Bl)},persist:function(){},isPersistent:Bl}),s}var Ji={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},df=dn(Ji),Ca=Y({},Ji,{view:0,detail:0}),aC=dn(Ca),ff,hf,Ea,_l=Y({},Ca,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:mf,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==Ea&&(Ea&&o.type==="mousemove"?(ff=o.screenX-Ea.screenX,hf=o.screenY-Ea.screenY):hf=ff=0,Ea=o),ff)},movementY:function(o){return"movementY"in o?o.movementY:hf}}),q1=dn(_l),cC=Y({},_l,{dataTransfer:0}),lC=dn(cC),uC=Y({},Ca,{relatedTarget:0}),pf=dn(uC),dC=Y({},Ji,{animationName:0,elapsedTime:0,pseudoElement:0}),fC=dn(dC),hC=Y({},Ji,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),pC=dn(hC),mC=Y({},Ji,{data:0}),H1=dn(mC),gC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},yC={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},vC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wC(o){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(o):(o=vC[o])?!!s[o]:!1}function mf(){return wC}var bC=Y({},Ca,{key:function(o){if(o.key){var s=gC[o.key]||o.key;if(s!=="Unidentified")return s}return o.type==="keypress"?(o=jl(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?yC[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:mf,charCode:function(o){return o.type==="keypress"?jl(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?jl(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),xC=dn(bC),CC=Y({},_l,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),V1=dn(CC),EC=Y({},Ca,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:mf}),AC=dn(EC),kC=Y({},Ji,{propertyName:0,elapsedTime:0,pseudoElement:0}),SC=dn(kC),IC=Y({},_l,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),jC=dn(IC),BC=[9,13,27,32],gf=u&&"CompositionEvent"in window,Aa=null;u&&"documentMode"in document&&(Aa=document.documentMode);var _C=u&&"TextEvent"in window&&!Aa,Q1=u&&(!gf||Aa&&8<Aa&&11>=Aa),G1=" ",K1=!1;function Y1(o,s){switch(o){case"keyup":return BC.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function J1(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var Zi=!1;function PC(o,s){switch(o){case"compositionend":return J1(s);case"keypress":return s.which!==32?null:(K1=!0,G1);case"textInput":return o=s.data,o===G1&&K1?null:o;default:return null}}function TC(o,s){if(Zi)return o==="compositionend"||!gf&&Y1(o,s)?(o=W1(),Il=uf=ao=null,Zi=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return Q1&&s.locale!=="ko"?null:s.data;default:return null}}var OC={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Z1(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s==="input"?!!OC[o.type]:s==="textarea"}function X1(o,s,l,h){w1(h),s=Nl(s,"onChange"),0<s.length&&(l=new df("onChange","change",null,l,h),o.push({event:l,listeners:s}))}var ka=null,Sa=null;function RC(o){yg(o,0)}function Pl(o){var s=rs(o);if(En(s))return o}function NC(o,s){if(o==="change")return s}var eg=!1;if(u){var yf;if(u){var vf="oninput"in document;if(!vf){var tg=document.createElement("div");tg.setAttribute("oninput","return;"),vf=typeof tg.oninput=="function"}yf=vf}else yf=!1;eg=yf&&(!document.documentMode||9<document.documentMode)}function ng(){ka&&(ka.detachEvent("onpropertychange",rg),Sa=ka=null)}function rg(o){if(o.propertyName==="value"&&Pl(Sa)){var s=[];X1(s,Sa,o,Gt(o)),E1(RC,s)}}function MC(o,s,l){o==="focusin"?(ng(),ka=s,Sa=l,ka.attachEvent("onpropertychange",rg)):o==="focusout"&&ng()}function DC(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return Pl(Sa)}function LC(o,s){if(o==="click")return Pl(s)}function FC(o,s){if(o==="input"||o==="change")return Pl(s)}function zC(o,s){return o===s&&(o!==0||1/o===1/s)||o!==o&&s!==s}var qn=typeof Object.is=="function"?Object.is:zC;function Ia(o,s){if(qn(o,s))return!0;if(typeof o!="object"||o===null||typeof s!="object"||s===null)return!1;var l=Object.keys(o),h=Object.keys(s);if(l.length!==h.length)return!1;for(h=0;h<l.length;h++){var v=l[h];if(!d.call(s,v)||!qn(o[v],s[v]))return!1}return!0}function og(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function ig(o,s){var l=og(o);o=0;for(var h;l;){if(l.nodeType===3){if(h=o+l.textContent.length,o<=s&&h>=s)return{node:l,offset:s-o};o=h}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=og(l)}}function sg(o,s){return o&&s?o===s?!0:o&&o.nodeType===3?!1:s&&s.nodeType===3?sg(o,s.parentNode):"contains"in o?o.contains(s):o.compareDocumentPosition?!!(o.compareDocumentPosition(s)&16):!1:!1}function ag(){for(var o=window,s=Mt();s instanceof o.HTMLIFrameElement;){try{var l=typeof s.contentWindow.location.href=="string"}catch{l=!1}if(l)o=s.contentWindow;else break;s=Mt(o.document)}return s}function wf(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s&&(s==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||s==="textarea"||o.contentEditable==="true")}function UC(o){var s=ag(),l=o.focusedElem,h=o.selectionRange;if(s!==l&&l&&l.ownerDocument&&sg(l.ownerDocument.documentElement,l)){if(h!==null&&wf(l)){if(s=h.start,o=h.end,o===void 0&&(o=s),"selectionStart"in l)l.selectionStart=s,l.selectionEnd=Math.min(o,l.value.length);else if(o=(s=l.ownerDocument||document)&&s.defaultView||window,o.getSelection){o=o.getSelection();var v=l.textContent.length,x=Math.min(h.start,v);h=h.end===void 0?x:Math.min(h.end,v),!o.extend&&x>h&&(v=h,h=x,x=v),v=ig(l,x);var B=ig(l,h);v&&B&&(o.rangeCount!==1||o.anchorNode!==v.node||o.anchorOffset!==v.offset||o.focusNode!==B.node||o.focusOffset!==B.offset)&&(s=s.createRange(),s.setStart(v.node,v.offset),o.removeAllRanges(),x>h?(o.addRange(s),o.extend(B.node,B.offset)):(s.setEnd(B.node,B.offset),o.addRange(s)))}}for(s=[],o=l;o=o.parentNode;)o.nodeType===1&&s.push({element:o,left:o.scrollLeft,top:o.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<s.length;l++)o=s[l],o.element.scrollLeft=o.left,o.element.scrollTop=o.top}}var WC=u&&"documentMode"in document&&11>=document.documentMode,Xi=null,bf=null,ja=null,xf=!1;function cg(o,s,l){var h=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;xf||Xi==null||Xi!==Mt(h)||(h=Xi,"selectionStart"in h&&wf(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),ja&&Ia(ja,h)||(ja=h,h=Nl(bf,"onSelect"),0<h.length&&(s=new df("onSelect","select",null,s,l),o.push({event:s,listeners:h}),s.target=Xi)))}function Tl(o,s){var l={};return l[o.toLowerCase()]=s.toLowerCase(),l["Webkit"+o]="webkit"+s,l["Moz"+o]="moz"+s,l}var es={animationend:Tl("Animation","AnimationEnd"),animationiteration:Tl("Animation","AnimationIteration"),animationstart:Tl("Animation","AnimationStart"),transitionend:Tl("Transition","TransitionEnd")},Cf={},lg={};u&&(lg=document.createElement("div").style,"AnimationEvent"in window||(delete es.animationend.animation,delete es.animationiteration.animation,delete es.animationstart.animation),"TransitionEvent"in window||delete es.transitionend.transition);function Ol(o){if(Cf[o])return Cf[o];if(!es[o])return o;var s=es[o],l;for(l in s)if(s.hasOwnProperty(l)&&l in lg)return Cf[o]=s[l];return o}var ug=Ol("animationend"),dg=Ol("animationiteration"),fg=Ol("animationstart"),hg=Ol("transitionend"),pg=new Map,mg="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function co(o,s){pg.set(o,s),a(s,[o])}for(var Ef=0;Ef<mg.length;Ef++){var Af=mg[Ef],$C=Af.toLowerCase(),qC=Af[0].toUpperCase()+Af.slice(1);co($C,"on"+qC)}co(ug,"onAnimationEnd"),co(dg,"onAnimationIteration"),co(fg,"onAnimationStart"),co("dblclick","onDoubleClick"),co("focusin","onFocus"),co("focusout","onBlur"),co(hg,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ba="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),HC=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ba));function gg(o,s,l){var h=o.type||"unknown-event";o.currentTarget=l,$x(h,s,void 0,o),o.currentTarget=null}function yg(o,s){s=(s&4)!==0;for(var l=0;l<o.length;l++){var h=o[l],v=h.event;h=h.listeners;e:{var x=void 0;if(s)for(var B=h.length-1;0<=B;B--){var O=h[B],F=O.instance,K=O.currentTarget;if(O=O.listener,F!==x&&v.isPropagationStopped())break e;gg(v,O,K),x=F}else for(B=0;B<h.length;B++){if(O=h[B],F=O.instance,K=O.currentTarget,O=O.listener,F!==x&&v.isPropagationStopped())break e;gg(v,O,K),x=F}}}if(yl)throw o=ef,yl=!1,ef=null,o}function Ge(o,s){var l=s[Tf];l===void 0&&(l=s[Tf]=new Set);var h=o+"__bubble";l.has(h)||(vg(s,o,2,!1),l.add(h))}function kf(o,s,l){var h=0;s&&(h|=4),vg(l,o,h,s)}var Rl="_reactListening"+Math.random().toString(36).slice(2);function _a(o){if(!o[Rl]){o[Rl]=!0,r.forEach(function(l){l!=="selectionchange"&&(HC.has(l)||kf(l,!1,o),kf(l,!0,o))});var s=o.nodeType===9?o:o.ownerDocument;s===null||s[Rl]||(s[Rl]=!0,kf("selectionchange",!1,s))}}function vg(o,s,l,h){switch(U1(s)){case 1:var v=iC;break;case 4:v=sC;break;default:v=cf}l=v.bind(null,s,l,o),v=void 0,!Xd||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(v=!0),h?v!==void 0?o.addEventListener(s,l,{capture:!0,passive:v}):o.addEventListener(s,l,!0):v!==void 0?o.addEventListener(s,l,{passive:v}):o.addEventListener(s,l,!1)}function Sf(o,s,l,h,v){var x=h;if((s&1)===0&&(s&2)===0&&h!==null)e:for(;;){if(h===null)return;var B=h.tag;if(B===3||B===4){var O=h.stateNode.containerInfo;if(O===v||O.nodeType===8&&O.parentNode===v)break;if(B===4)for(B=h.return;B!==null;){var F=B.tag;if((F===3||F===4)&&(F=B.stateNode.containerInfo,F===v||F.nodeType===8&&F.parentNode===v))return;B=B.return}for(;O!==null;){if(B=Xo(O),B===null)return;if(F=B.tag,F===5||F===6){h=x=B;continue e}O=O.parentNode}}h=h.return}E1(function(){var K=x,ie=Gt(l),ae=[];e:{var re=pg.get(o);if(re!==void 0){var pe=df,ye=o;switch(o){case"keypress":if(jl(l)===0)break e;case"keydown":case"keyup":pe=xC;break;case"focusin":ye="focus",pe=pf;break;case"focusout":ye="blur",pe=pf;break;case"beforeblur":case"afterblur":pe=pf;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":pe=q1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":pe=lC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":pe=AC;break;case ug:case dg:case fg:pe=fC;break;case hg:pe=SC;break;case"scroll":pe=aC;break;case"wheel":pe=jC;break;case"copy":case"cut":case"paste":pe=pC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":pe=V1}var ve=(s&4)!==0,ot=!ve&&o==="scroll",q=ve?re!==null?re+"Capture":null:re;ve=[];for(var U=K,H;U!==null;){H=U;var ue=H.stateNode;if(H.tag===5&&ue!==null&&(H=ue,q!==null&&(ue=fa(U,q),ue!=null&&ve.push(Pa(U,ue,H)))),ot)break;U=U.return}0<ve.length&&(re=new pe(re,ye,null,l,ie),ae.push({event:re,listeners:ve}))}}if((s&7)===0){e:{if(re=o==="mouseover"||o==="pointerover",pe=o==="mouseout"||o==="pointerout",re&&l!==Ie&&(ye=l.relatedTarget||l.fromElement)&&(Xo(ye)||ye[Sr]))break e;if((pe||re)&&(re=ie.window===ie?ie:(re=ie.ownerDocument)?re.defaultView||re.parentWindow:window,pe?(ye=l.relatedTarget||l.toElement,pe=K,ye=ye?Xo(ye):null,ye!==null&&(ot=Zo(ye),ye!==ot||ye.tag!==5&&ye.tag!==6)&&(ye=null)):(pe=null,ye=K),pe!==ye)){if(ve=q1,ue="onMouseLeave",q="onMouseEnter",U="mouse",(o==="pointerout"||o==="pointerover")&&(ve=V1,ue="onPointerLeave",q="onPointerEnter",U="pointer"),ot=pe==null?re:rs(pe),H=ye==null?re:rs(ye),re=new ve(ue,U+"leave",pe,l,ie),re.target=ot,re.relatedTarget=H,ue=null,Xo(ie)===K&&(ve=new ve(q,U+"enter",ye,l,ie),ve.target=H,ve.relatedTarget=ot,ue=ve),ot=ue,pe&&ye)t:{for(ve=pe,q=ye,U=0,H=ve;H;H=ts(H))U++;for(H=0,ue=q;ue;ue=ts(ue))H++;for(;0<U-H;)ve=ts(ve),U--;for(;0<H-U;)q=ts(q),H--;for(;U--;){if(ve===q||q!==null&&ve===q.alternate)break t;ve=ts(ve),q=ts(q)}ve=null}else ve=null;pe!==null&&wg(ae,re,pe,ve,!1),ye!==null&&ot!==null&&wg(ae,ot,ye,ve,!0)}}e:{if(re=K?rs(K):window,pe=re.nodeName&&re.nodeName.toLowerCase(),pe==="select"||pe==="input"&&re.type==="file")var xe=NC;else if(Z1(re))if(eg)xe=FC;else{xe=DC;var ke=MC}else(pe=re.nodeName)&&pe.toLowerCase()==="input"&&(re.type==="checkbox"||re.type==="radio")&&(xe=LC);if(xe&&(xe=xe(o,K))){X1(ae,xe,l,ie);break e}ke&&ke(o,re,K),o==="focusout"&&(ke=re._wrapperState)&&ke.controlled&&re.type==="number"&&Qi(re,"number",re.value)}switch(ke=K?rs(K):window,o){case"focusin":(Z1(ke)||ke.contentEditable==="true")&&(Xi=ke,bf=K,ja=null);break;case"focusout":ja=bf=Xi=null;break;case"mousedown":xf=!0;break;case"contextmenu":case"mouseup":case"dragend":xf=!1,cg(ae,l,ie);break;case"selectionchange":if(WC)break;case"keydown":case"keyup":cg(ae,l,ie)}var Se;if(gf)e:{switch(o){case"compositionstart":var je="onCompositionStart";break e;case"compositionend":je="onCompositionEnd";break e;case"compositionupdate":je="onCompositionUpdate";break e}je=void 0}else Zi?Y1(o,l)&&(je="onCompositionEnd"):o==="keydown"&&l.keyCode===229&&(je="onCompositionStart");je&&(Q1&&l.locale!=="ko"&&(Zi||je!=="onCompositionStart"?je==="onCompositionEnd"&&Zi&&(Se=W1()):(ao=ie,uf="value"in ao?ao.value:ao.textContent,Zi=!0)),ke=Nl(K,je),0<ke.length&&(je=new H1(je,o,null,l,ie),ae.push({event:je,listeners:ke}),Se?je.data=Se:(Se=J1(l),Se!==null&&(je.data=Se)))),(Se=_C?PC(o,l):TC(o,l))&&(K=Nl(K,"onBeforeInput"),0<K.length&&(ie=new H1("onBeforeInput","beforeinput",null,l,ie),ae.push({event:ie,listeners:K}),ie.data=Se))}yg(ae,s)})}function Pa(o,s,l){return{instance:o,listener:s,currentTarget:l}}function Nl(o,s){for(var l=s+"Capture",h=[];o!==null;){var v=o,x=v.stateNode;v.tag===5&&x!==null&&(v=x,x=fa(o,l),x!=null&&h.unshift(Pa(o,x,v)),x=fa(o,s),x!=null&&h.push(Pa(o,x,v))),o=o.return}return h}function ts(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5);return o||null}function wg(o,s,l,h,v){for(var x=s._reactName,B=[];l!==null&&l!==h;){var O=l,F=O.alternate,K=O.stateNode;if(F!==null&&F===h)break;O.tag===5&&K!==null&&(O=K,v?(F=fa(l,x),F!=null&&B.unshift(Pa(l,F,O))):v||(F=fa(l,x),F!=null&&B.push(Pa(l,F,O)))),l=l.return}B.length!==0&&o.push({event:s,listeners:B})}var VC=/\r\n?/g,QC=/\u0000|\uFFFD/g;function bg(o){return(typeof o=="string"?o:""+o).replace(VC,`
39
+ `).replace(QC,"")}function Ml(o,s,l){if(s=bg(s),bg(o)!==s&&l)throw Error(n(425))}function Dl(){}var If=null,jf=null;function Bf(o,s){return o==="textarea"||o==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var _f=typeof setTimeout=="function"?setTimeout:void 0,GC=typeof clearTimeout=="function"?clearTimeout:void 0,xg=typeof Promise=="function"?Promise:void 0,KC=typeof queueMicrotask=="function"?queueMicrotask:typeof xg<"u"?function(o){return xg.resolve(null).then(o).catch(YC)}:_f;function YC(o){setTimeout(function(){throw o})}function Pf(o,s){var l=s,h=0;do{var v=l.nextSibling;if(o.removeChild(l),v&&v.nodeType===8)if(l=v.data,l==="/$"){if(h===0){o.removeChild(v),xa(s);return}h--}else l!=="$"&&l!=="$?"&&l!=="$!"||h++;l=v}while(l);xa(s)}function lo(o){for(;o!=null;o=o.nextSibling){var s=o.nodeType;if(s===1||s===3)break;if(s===8){if(s=o.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return o}function Cg(o){o=o.previousSibling;for(var s=0;o;){if(o.nodeType===8){var l=o.data;if(l==="$"||l==="$!"||l==="$?"){if(s===0)return o;s--}else l==="/$"&&s++}o=o.previousSibling}return null}var ns=Math.random().toString(36).slice(2),cr="__reactFiber$"+ns,Ta="__reactProps$"+ns,Sr="__reactContainer$"+ns,Tf="__reactEvents$"+ns,JC="__reactListeners$"+ns,ZC="__reactHandles$"+ns;function Xo(o){var s=o[cr];if(s)return s;for(var l=o.parentNode;l;){if(s=l[Sr]||l[cr]){if(l=s.alternate,s.child!==null||l!==null&&l.child!==null)for(o=Cg(o);o!==null;){if(l=o[cr])return l;o=Cg(o)}return s}o=l,l=o.parentNode}return null}function Oa(o){return o=o[cr]||o[Sr],!o||o.tag!==5&&o.tag!==6&&o.tag!==13&&o.tag!==3?null:o}function rs(o){if(o.tag===5||o.tag===6)return o.stateNode;throw Error(n(33))}function Ll(o){return o[Ta]||null}var Of=[],os=-1;function uo(o){return{current:o}}function Ke(o){0>os||(o.current=Of[os],Of[os]=null,os--)}function Qe(o,s){os++,Of[os]=o.current,o.current=s}var fo={},jt=uo(fo),Kt=uo(!1),ei=fo;function is(o,s){var l=o.type.contextTypes;if(!l)return fo;var h=o.stateNode;if(h&&h.__reactInternalMemoizedUnmaskedChildContext===s)return h.__reactInternalMemoizedMaskedChildContext;var v={},x;for(x in l)v[x]=s[x];return h&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=s,o.__reactInternalMemoizedMaskedChildContext=v),v}function Yt(o){return o=o.childContextTypes,o!=null}function Fl(){Ke(Kt),Ke(jt)}function Eg(o,s,l){if(jt.current!==fo)throw Error(n(168));Qe(jt,s),Qe(Kt,l)}function Ag(o,s,l){var h=o.stateNode;if(s=s.childContextTypes,typeof h.getChildContext!="function")return l;h=h.getChildContext();for(var v in h)if(!(v in s))throw Error(n(108,Ce(o)||"Unknown",v));return Y({},l,h)}function zl(o){return o=(o=o.stateNode)&&o.__reactInternalMemoizedMergedChildContext||fo,ei=jt.current,Qe(jt,o),Qe(Kt,Kt.current),!0}function kg(o,s,l){var h=o.stateNode;if(!h)throw Error(n(169));l?(o=Ag(o,s,ei),h.__reactInternalMemoizedMergedChildContext=o,Ke(Kt),Ke(jt),Qe(jt,o)):Ke(Kt),Qe(Kt,l)}var Ir=null,Ul=!1,Rf=!1;function Sg(o){Ir===null?Ir=[o]:Ir.push(o)}function XC(o){Ul=!0,Sg(o)}function ho(){if(!Rf&&Ir!==null){Rf=!0;var o=0,s=He;try{var l=Ir;for(He=1;o<l.length;o++){var h=l[o];do h=h(!0);while(h!==null)}Ir=null,Ul=!1}catch(v){throw Ir!==null&&(Ir=Ir.slice(o+1)),j1(tf,ho),v}finally{He=s,Rf=!1}}return null}var ss=[],as=0,Wl=null,$l=0,Sn=[],In=0,ti=null,jr=1,Br="";function ni(o,s){ss[as++]=$l,ss[as++]=Wl,Wl=o,$l=s}function Ig(o,s,l){Sn[In++]=jr,Sn[In++]=Br,Sn[In++]=ti,ti=o;var h=jr;o=Br;var v=32-$n(h)-1;h&=~(1<<v),l+=1;var x=32-$n(s)+v;if(30<x){var B=v-v%5;x=(h&(1<<B)-1).toString(32),h>>=B,v-=B,jr=1<<32-$n(s)+v|l<<v|h,Br=x+o}else jr=1<<x|l<<v|h,Br=o}function Nf(o){o.return!==null&&(ni(o,1),Ig(o,1,0))}function Mf(o){for(;o===Wl;)Wl=ss[--as],ss[as]=null,$l=ss[--as],ss[as]=null;for(;o===ti;)ti=Sn[--In],Sn[In]=null,Br=Sn[--In],Sn[In]=null,jr=Sn[--In],Sn[In]=null}var fn=null,hn=null,Ye=!1,Hn=null;function jg(o,s){var l=Pn(5,null,null,0);l.elementType="DELETED",l.stateNode=s,l.return=o,s=o.deletions,s===null?(o.deletions=[l],o.flags|=16):s.push(l)}function Bg(o,s){switch(o.tag){case 5:var l=o.type;return s=s.nodeType!==1||l.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(o.stateNode=s,fn=o,hn=lo(s.firstChild),!0):!1;case 6:return s=o.pendingProps===""||s.nodeType!==3?null:s,s!==null?(o.stateNode=s,fn=o,hn=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(l=ti!==null?{id:jr,overflow:Br}:null,o.memoizedState={dehydrated:s,treeContext:l,retryLane:1073741824},l=Pn(18,null,null,0),l.stateNode=s,l.return=o,o.child=l,fn=o,hn=null,!0):!1;default:return!1}}function Df(o){return(o.mode&1)!==0&&(o.flags&128)===0}function Lf(o){if(Ye){var s=hn;if(s){var l=s;if(!Bg(o,s)){if(Df(o))throw Error(n(418));s=lo(l.nextSibling);var h=fn;s&&Bg(o,s)?jg(h,l):(o.flags=o.flags&-4097|2,Ye=!1,fn=o)}}else{if(Df(o))throw Error(n(418));o.flags=o.flags&-4097|2,Ye=!1,fn=o}}}function _g(o){for(o=o.return;o!==null&&o.tag!==5&&o.tag!==3&&o.tag!==13;)o=o.return;fn=o}function ql(o){if(o!==fn)return!1;if(!Ye)return _g(o),Ye=!0,!1;var s;if((s=o.tag!==3)&&!(s=o.tag!==5)&&(s=o.type,s=s!=="head"&&s!=="body"&&!Bf(o.type,o.memoizedProps)),s&&(s=hn)){if(Df(o))throw Pg(),Error(n(418));for(;s;)jg(o,s),s=lo(s.nextSibling)}if(_g(o),o.tag===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(n(317));e:{for(o=o.nextSibling,s=0;o;){if(o.nodeType===8){var l=o.data;if(l==="/$"){if(s===0){hn=lo(o.nextSibling);break e}s--}else l!=="$"&&l!=="$!"&&l!=="$?"||s++}o=o.nextSibling}hn=null}}else hn=fn?lo(o.stateNode.nextSibling):null;return!0}function Pg(){for(var o=hn;o;)o=lo(o.nextSibling)}function cs(){hn=fn=null,Ye=!1}function Ff(o){Hn===null?Hn=[o]:Hn.push(o)}var e8=k.ReactCurrentBatchConfig;function Ra(o,s,l){if(o=l.ref,o!==null&&typeof o!="function"&&typeof o!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(n(309));var h=l.stateNode}if(!h)throw Error(n(147,o));var v=h,x=""+o;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===x?s.ref:(s=function(B){var O=v.refs;B===null?delete O[x]:O[x]=B},s._stringRef=x,s)}if(typeof o!="string")throw Error(n(284));if(!l._owner)throw Error(n(290,o))}return o}function Hl(o,s){throw o=Object.prototype.toString.call(s),Error(n(31,o==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":o))}function Tg(o){var s=o._init;return s(o._payload)}function Og(o){function s(q,U){if(o){var H=q.deletions;H===null?(q.deletions=[U],q.flags|=16):H.push(U)}}function l(q,U){if(!o)return null;for(;U!==null;)s(q,U),U=U.sibling;return null}function h(q,U){for(q=new Map;U!==null;)U.key!==null?q.set(U.key,U):q.set(U.index,U),U=U.sibling;return q}function v(q,U){return q=xo(q,U),q.index=0,q.sibling=null,q}function x(q,U,H){return q.index=H,o?(H=q.alternate,H!==null?(H=H.index,H<U?(q.flags|=2,U):H):(q.flags|=2,U)):(q.flags|=1048576,U)}function B(q){return o&&q.alternate===null&&(q.flags|=2),q}function O(q,U,H,ue){return U===null||U.tag!==6?(U=_0(H,q.mode,ue),U.return=q,U):(U=v(U,H),U.return=q,U)}function F(q,U,H,ue){var xe=H.type;return xe===_?ie(q,U,H.props.children,ue,H.key):U!==null&&(U.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===X&&Tg(xe)===U.type)?(ue=v(U,H.props),ue.ref=Ra(q,U,H),ue.return=q,ue):(ue=mu(H.type,H.key,H.props,null,q.mode,ue),ue.ref=Ra(q,U,H),ue.return=q,ue)}function K(q,U,H,ue){return U===null||U.tag!==4||U.stateNode.containerInfo!==H.containerInfo||U.stateNode.implementation!==H.implementation?(U=P0(H,q.mode,ue),U.return=q,U):(U=v(U,H.children||[]),U.return=q,U)}function ie(q,U,H,ue,xe){return U===null||U.tag!==7?(U=ui(H,q.mode,ue,xe),U.return=q,U):(U=v(U,H),U.return=q,U)}function ae(q,U,H){if(typeof U=="string"&&U!==""||typeof U=="number")return U=_0(""+U,q.mode,H),U.return=q,U;if(typeof U=="object"&&U!==null){switch(U.$$typeof){case I:return H=mu(U.type,U.key,U.props,null,q.mode,H),H.ref=Ra(q,null,U),H.return=q,H;case P:return U=P0(U,q.mode,H),U.return=q,U;case X:var ue=U._init;return ae(q,ue(U._payload),H)}if(Un(U)||J(U))return U=ui(U,q.mode,H,null),U.return=q,U;Hl(q,U)}return null}function re(q,U,H,ue){var xe=U!==null?U.key:null;if(typeof H=="string"&&H!==""||typeof H=="number")return xe!==null?null:O(q,U,""+H,ue);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case I:return H.key===xe?F(q,U,H,ue):null;case P:return H.key===xe?K(q,U,H,ue):null;case X:return xe=H._init,re(q,U,xe(H._payload),ue)}if(Un(H)||J(H))return xe!==null?null:ie(q,U,H,ue,null);Hl(q,H)}return null}function pe(q,U,H,ue,xe){if(typeof ue=="string"&&ue!==""||typeof ue=="number")return q=q.get(H)||null,O(U,q,""+ue,xe);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case I:return q=q.get(ue.key===null?H:ue.key)||null,F(U,q,ue,xe);case P:return q=q.get(ue.key===null?H:ue.key)||null,K(U,q,ue,xe);case X:var ke=ue._init;return pe(q,U,H,ke(ue._payload),xe)}if(Un(ue)||J(ue))return q=q.get(H)||null,ie(U,q,ue,xe,null);Hl(U,ue)}return null}function ye(q,U,H,ue){for(var xe=null,ke=null,Se=U,je=U=0,yt=null;Se!==null&&je<H.length;je++){Se.index>je?(yt=Se,Se=null):yt=Se.sibling;var Ue=re(q,Se,H[je],ue);if(Ue===null){Se===null&&(Se=yt);break}o&&Se&&Ue.alternate===null&&s(q,Se),U=x(Ue,U,je),ke===null?xe=Ue:ke.sibling=Ue,ke=Ue,Se=yt}if(je===H.length)return l(q,Se),Ye&&ni(q,je),xe;if(Se===null){for(;je<H.length;je++)Se=ae(q,H[je],ue),Se!==null&&(U=x(Se,U,je),ke===null?xe=Se:ke.sibling=Se,ke=Se);return Ye&&ni(q,je),xe}for(Se=h(q,Se);je<H.length;je++)yt=pe(Se,q,je,H[je],ue),yt!==null&&(o&&yt.alternate!==null&&Se.delete(yt.key===null?je:yt.key),U=x(yt,U,je),ke===null?xe=yt:ke.sibling=yt,ke=yt);return o&&Se.forEach(function(Co){return s(q,Co)}),Ye&&ni(q,je),xe}function ve(q,U,H,ue){var xe=J(H);if(typeof xe!="function")throw Error(n(150));if(H=xe.call(H),H==null)throw Error(n(151));for(var ke=xe=null,Se=U,je=U=0,yt=null,Ue=H.next();Se!==null&&!Ue.done;je++,Ue=H.next()){Se.index>je?(yt=Se,Se=null):yt=Se.sibling;var Co=re(q,Se,Ue.value,ue);if(Co===null){Se===null&&(Se=yt);break}o&&Se&&Co.alternate===null&&s(q,Se),U=x(Co,U,je),ke===null?xe=Co:ke.sibling=Co,ke=Co,Se=yt}if(Ue.done)return l(q,Se),Ye&&ni(q,je),xe;if(Se===null){for(;!Ue.done;je++,Ue=H.next())Ue=ae(q,Ue.value,ue),Ue!==null&&(U=x(Ue,U,je),ke===null?xe=Ue:ke.sibling=Ue,ke=Ue);return Ye&&ni(q,je),xe}for(Se=h(q,Se);!Ue.done;je++,Ue=H.next())Ue=pe(Se,q,je,Ue.value,ue),Ue!==null&&(o&&Ue.alternate!==null&&Se.delete(Ue.key===null?je:Ue.key),U=x(Ue,U,je),ke===null?xe=Ue:ke.sibling=Ue,ke=Ue);return o&&Se.forEach(function(O8){return s(q,O8)}),Ye&&ni(q,je),xe}function ot(q,U,H,ue){if(typeof H=="object"&&H!==null&&H.type===_&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case I:e:{for(var xe=H.key,ke=U;ke!==null;){if(ke.key===xe){if(xe=H.type,xe===_){if(ke.tag===7){l(q,ke.sibling),U=v(ke,H.props.children),U.return=q,q=U;break e}}else if(ke.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===X&&Tg(xe)===ke.type){l(q,ke.sibling),U=v(ke,H.props),U.ref=Ra(q,ke,H),U.return=q,q=U;break e}l(q,ke);break}else s(q,ke);ke=ke.sibling}H.type===_?(U=ui(H.props.children,q.mode,ue,H.key),U.return=q,q=U):(ue=mu(H.type,H.key,H.props,null,q.mode,ue),ue.ref=Ra(q,U,H),ue.return=q,q=ue)}return B(q);case P:e:{for(ke=H.key;U!==null;){if(U.key===ke)if(U.tag===4&&U.stateNode.containerInfo===H.containerInfo&&U.stateNode.implementation===H.implementation){l(q,U.sibling),U=v(U,H.children||[]),U.return=q,q=U;break e}else{l(q,U);break}else s(q,U);U=U.sibling}U=P0(H,q.mode,ue),U.return=q,q=U}return B(q);case X:return ke=H._init,ot(q,U,ke(H._payload),ue)}if(Un(H))return ye(q,U,H,ue);if(J(H))return ve(q,U,H,ue);Hl(q,H)}return typeof H=="string"&&H!==""||typeof H=="number"?(H=""+H,U!==null&&U.tag===6?(l(q,U.sibling),U=v(U,H),U.return=q,q=U):(l(q,U),U=_0(H,q.mode,ue),U.return=q,q=U),B(q)):l(q,U)}return ot}var ls=Og(!0),Rg=Og(!1),Vl=uo(null),Ql=null,us=null,zf=null;function Uf(){zf=us=Ql=null}function Wf(o){var s=Vl.current;Ke(Vl),o._currentValue=s}function $f(o,s,l){for(;o!==null;){var h=o.alternate;if((o.childLanes&s)!==s?(o.childLanes|=s,h!==null&&(h.childLanes|=s)):h!==null&&(h.childLanes&s)!==s&&(h.childLanes|=s),o===l)break;o=o.return}}function ds(o,s){Ql=o,zf=us=null,o=o.dependencies,o!==null&&o.firstContext!==null&&((o.lanes&s)!==0&&(Jt=!0),o.firstContext=null)}function jn(o){var s=o._currentValue;if(zf!==o)if(o={context:o,memoizedValue:s,next:null},us===null){if(Ql===null)throw Error(n(308));us=o,Ql.dependencies={lanes:0,firstContext:o}}else us=us.next=o;return s}var ri=null;function qf(o){ri===null?ri=[o]:ri.push(o)}function Ng(o,s,l,h){var v=s.interleaved;return v===null?(l.next=l,qf(s)):(l.next=v.next,v.next=l),s.interleaved=l,_r(o,h)}function _r(o,s){o.lanes|=s;var l=o.alternate;for(l!==null&&(l.lanes|=s),l=o,o=o.return;o!==null;)o.childLanes|=s,l=o.alternate,l!==null&&(l.childLanes|=s),l=o,o=o.return;return l.tag===3?l.stateNode:null}var po=!1;function Hf(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Mg(o,s){o=o.updateQueue,s.updateQueue===o&&(s.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,effects:o.effects})}function Pr(o,s){return{eventTime:o,lane:s,tag:0,payload:null,callback:null,next:null}}function mo(o,s,l){var h=o.updateQueue;if(h===null)return null;if(h=h.shared,(ze&2)!==0){var v=h.pending;return v===null?s.next=s:(s.next=v.next,v.next=s),h.pending=s,_r(o,l)}return v=h.interleaved,v===null?(s.next=s,qf(h)):(s.next=v.next,v.next=s),h.interleaved=s,_r(o,l)}function Gl(o,s,l){if(s=s.updateQueue,s!==null&&(s=s.shared,(l&4194240)!==0)){var h=s.lanes;h&=o.pendingLanes,l|=h,s.lanes=l,of(o,l)}}function Dg(o,s){var l=o.updateQueue,h=o.alternate;if(h!==null&&(h=h.updateQueue,l===h)){var v=null,x=null;if(l=l.firstBaseUpdate,l!==null){do{var B={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};x===null?v=x=B:x=x.next=B,l=l.next}while(l!==null);x===null?v=x=s:x=x.next=s}else v=x=s;l={baseState:h.baseState,firstBaseUpdate:v,lastBaseUpdate:x,shared:h.shared,effects:h.effects},o.updateQueue=l;return}o=l.lastBaseUpdate,o===null?l.firstBaseUpdate=s:o.next=s,l.lastBaseUpdate=s}function Kl(o,s,l,h){var v=o.updateQueue;po=!1;var x=v.firstBaseUpdate,B=v.lastBaseUpdate,O=v.shared.pending;if(O!==null){v.shared.pending=null;var F=O,K=F.next;F.next=null,B===null?x=K:B.next=K,B=F;var ie=o.alternate;ie!==null&&(ie=ie.updateQueue,O=ie.lastBaseUpdate,O!==B&&(O===null?ie.firstBaseUpdate=K:O.next=K,ie.lastBaseUpdate=F))}if(x!==null){var ae=v.baseState;B=0,ie=K=F=null,O=x;do{var re=O.lane,pe=O.eventTime;if((h&re)===re){ie!==null&&(ie=ie.next={eventTime:pe,lane:0,tag:O.tag,payload:O.payload,callback:O.callback,next:null});e:{var ye=o,ve=O;switch(re=s,pe=l,ve.tag){case 1:if(ye=ve.payload,typeof ye=="function"){ae=ye.call(pe,ae,re);break e}ae=ye;break e;case 3:ye.flags=ye.flags&-65537|128;case 0:if(ye=ve.payload,re=typeof ye=="function"?ye.call(pe,ae,re):ye,re==null)break e;ae=Y({},ae,re);break e;case 2:po=!0}}O.callback!==null&&O.lane!==0&&(o.flags|=64,re=v.effects,re===null?v.effects=[O]:re.push(O))}else pe={eventTime:pe,lane:re,tag:O.tag,payload:O.payload,callback:O.callback,next:null},ie===null?(K=ie=pe,F=ae):ie=ie.next=pe,B|=re;if(O=O.next,O===null){if(O=v.shared.pending,O===null)break;re=O,O=re.next,re.next=null,v.lastBaseUpdate=re,v.shared.pending=null}}while(!0);if(ie===null&&(F=ae),v.baseState=F,v.firstBaseUpdate=K,v.lastBaseUpdate=ie,s=v.shared.interleaved,s!==null){v=s;do B|=v.lane,v=v.next;while(v!==s)}else x===null&&(v.shared.lanes=0);si|=B,o.lanes=B,o.memoizedState=ae}}function Lg(o,s,l){if(o=s.effects,s.effects=null,o!==null)for(s=0;s<o.length;s++){var h=o[s],v=h.callback;if(v!==null){if(h.callback=null,h=l,typeof v!="function")throw Error(n(191,v));v.call(h)}}}var Na={},lr=uo(Na),Ma=uo(Na),Da=uo(Na);function oi(o){if(o===Na)throw Error(n(174));return o}function Vf(o,s){switch(Qe(Da,s),Qe(Ma,o),Qe(lr,Na),o=s.nodeType,o){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:Gi(null,"");break;default:o=o===8?s.parentNode:s,s=o.namespaceURI||null,o=o.tagName,s=Gi(s,o)}Ke(lr),Qe(lr,s)}function fs(){Ke(lr),Ke(Ma),Ke(Da)}function Fg(o){oi(Da.current);var s=oi(lr.current),l=Gi(s,o.type);s!==l&&(Qe(Ma,o),Qe(lr,l))}function Qf(o){Ma.current===o&&(Ke(lr),Ke(Ma))}var Ze=uo(0);function Yl(o){for(var s=o;s!==null;){if(s.tag===13){var l=s.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var Gf=[];function Kf(){for(var o=0;o<Gf.length;o++)Gf[o]._workInProgressVersionPrimary=null;Gf.length=0}var Jl=k.ReactCurrentDispatcher,Yf=k.ReactCurrentBatchConfig,ii=0,Xe=null,dt=null,mt=null,Zl=!1,La=!1,Fa=0,t8=0;function Bt(){throw Error(n(321))}function Jf(o,s){if(s===null)return!1;for(var l=0;l<s.length&&l<o.length;l++)if(!qn(o[l],s[l]))return!1;return!0}function Zf(o,s,l,h,v,x){if(ii=x,Xe=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,Jl.current=o===null||o.memoizedState===null?i8:s8,o=l(h,v),La){x=0;do{if(La=!1,Fa=0,25<=x)throw Error(n(301));x+=1,mt=dt=null,s.updateQueue=null,Jl.current=a8,o=l(h,v)}while(La)}if(Jl.current=tu,s=dt!==null&&dt.next!==null,ii=0,mt=dt=Xe=null,Zl=!1,s)throw Error(n(300));return o}function Xf(){var o=Fa!==0;return Fa=0,o}function ur(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mt===null?Xe.memoizedState=mt=o:mt=mt.next=o,mt}function Bn(){if(dt===null){var o=Xe.alternate;o=o!==null?o.memoizedState:null}else o=dt.next;var s=mt===null?Xe.memoizedState:mt.next;if(s!==null)mt=s,dt=o;else{if(o===null)throw Error(n(310));dt=o,o={memoizedState:dt.memoizedState,baseState:dt.baseState,baseQueue:dt.baseQueue,queue:dt.queue,next:null},mt===null?Xe.memoizedState=mt=o:mt=mt.next=o}return mt}function za(o,s){return typeof s=="function"?s(o):s}function e0(o){var s=Bn(),l=s.queue;if(l===null)throw Error(n(311));l.lastRenderedReducer=o;var h=dt,v=h.baseQueue,x=l.pending;if(x!==null){if(v!==null){var B=v.next;v.next=x.next,x.next=B}h.baseQueue=v=x,l.pending=null}if(v!==null){x=v.next,h=h.baseState;var O=B=null,F=null,K=x;do{var ie=K.lane;if((ii&ie)===ie)F!==null&&(F=F.next={lane:0,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null}),h=K.hasEagerState?K.eagerState:o(h,K.action);else{var ae={lane:ie,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null};F===null?(O=F=ae,B=h):F=F.next=ae,Xe.lanes|=ie,si|=ie}K=K.next}while(K!==null&&K!==x);F===null?B=h:F.next=O,qn(h,s.memoizedState)||(Jt=!0),s.memoizedState=h,s.baseState=B,s.baseQueue=F,l.lastRenderedState=h}if(o=l.interleaved,o!==null){v=o;do x=v.lane,Xe.lanes|=x,si|=x,v=v.next;while(v!==o)}else v===null&&(l.lanes=0);return[s.memoizedState,l.dispatch]}function t0(o){var s=Bn(),l=s.queue;if(l===null)throw Error(n(311));l.lastRenderedReducer=o;var h=l.dispatch,v=l.pending,x=s.memoizedState;if(v!==null){l.pending=null;var B=v=v.next;do x=o(x,B.action),B=B.next;while(B!==v);qn(x,s.memoizedState)||(Jt=!0),s.memoizedState=x,s.baseQueue===null&&(s.baseState=x),l.lastRenderedState=x}return[x,h]}function zg(){}function Ug(o,s){var l=Xe,h=Bn(),v=s(),x=!qn(h.memoizedState,v);if(x&&(h.memoizedState=v,Jt=!0),h=h.queue,n0(qg.bind(null,l,h,o),[o]),h.getSnapshot!==s||x||mt!==null&&mt.memoizedState.tag&1){if(l.flags|=2048,Ua(9,$g.bind(null,l,h,v,s),void 0,null),gt===null)throw Error(n(349));(ii&30)!==0||Wg(l,s,v)}return v}function Wg(o,s,l){o.flags|=16384,o={getSnapshot:s,value:l},s=Xe.updateQueue,s===null?(s={lastEffect:null,stores:null},Xe.updateQueue=s,s.stores=[o]):(l=s.stores,l===null?s.stores=[o]:l.push(o))}function $g(o,s,l,h){s.value=l,s.getSnapshot=h,Hg(s)&&Vg(o)}function qg(o,s,l){return l(function(){Hg(s)&&Vg(o)})}function Hg(o){var s=o.getSnapshot;o=o.value;try{var l=s();return!qn(o,l)}catch{return!0}}function Vg(o){var s=_r(o,1);s!==null&&Kn(s,o,1,-1)}function Qg(o){var s=ur();return typeof o=="function"&&(o=o()),s.memoizedState=s.baseState=o,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:za,lastRenderedState:o},s.queue=o,o=o.dispatch=o8.bind(null,Xe,o),[s.memoizedState,o]}function Ua(o,s,l,h){return o={tag:o,create:s,destroy:l,deps:h,next:null},s=Xe.updateQueue,s===null?(s={lastEffect:null,stores:null},Xe.updateQueue=s,s.lastEffect=o.next=o):(l=s.lastEffect,l===null?s.lastEffect=o.next=o:(h=l.next,l.next=o,o.next=h,s.lastEffect=o)),o}function Gg(){return Bn().memoizedState}function Xl(o,s,l,h){var v=ur();Xe.flags|=o,v.memoizedState=Ua(1|s,l,void 0,h===void 0?null:h)}function eu(o,s,l,h){var v=Bn();h=h===void 0?null:h;var x=void 0;if(dt!==null){var B=dt.memoizedState;if(x=B.destroy,h!==null&&Jf(h,B.deps)){v.memoizedState=Ua(s,l,x,h);return}}Xe.flags|=o,v.memoizedState=Ua(1|s,l,x,h)}function Kg(o,s){return Xl(8390656,8,o,s)}function n0(o,s){return eu(2048,8,o,s)}function Yg(o,s){return eu(4,2,o,s)}function Jg(o,s){return eu(4,4,o,s)}function Zg(o,s){if(typeof s=="function")return o=o(),s(o),function(){s(null)};if(s!=null)return o=o(),s.current=o,function(){s.current=null}}function Xg(o,s,l){return l=l!=null?l.concat([o]):null,eu(4,4,Zg.bind(null,s,o),l)}function r0(){}function ey(o,s){var l=Bn();s=s===void 0?null:s;var h=l.memoizedState;return h!==null&&s!==null&&Jf(s,h[1])?h[0]:(l.memoizedState=[o,s],o)}function ty(o,s){var l=Bn();s=s===void 0?null:s;var h=l.memoizedState;return h!==null&&s!==null&&Jf(s,h[1])?h[0]:(o=o(),l.memoizedState=[o,s],o)}function ny(o,s,l){return(ii&21)===0?(o.baseState&&(o.baseState=!1,Jt=!0),o.memoizedState=l):(qn(l,s)||(l=T1(),Xe.lanes|=l,si|=l,o.baseState=!0),s)}function n8(o,s){var l=He;He=l!==0&&4>l?l:4,o(!0);var h=Yf.transition;Yf.transition={};try{o(!1),s()}finally{He=l,Yf.transition=h}}function ry(){return Bn().memoizedState}function r8(o,s,l){var h=wo(o);if(l={lane:h,action:l,hasEagerState:!1,eagerState:null,next:null},oy(o))iy(s,l);else if(l=Ng(o,s,l,h),l!==null){var v=Lt();Kn(l,o,h,v),sy(l,s,h)}}function o8(o,s,l){var h=wo(o),v={lane:h,action:l,hasEagerState:!1,eagerState:null,next:null};if(oy(o))iy(s,v);else{var x=o.alternate;if(o.lanes===0&&(x===null||x.lanes===0)&&(x=s.lastRenderedReducer,x!==null))try{var B=s.lastRenderedState,O=x(B,l);if(v.hasEagerState=!0,v.eagerState=O,qn(O,B)){var F=s.interleaved;F===null?(v.next=v,qf(s)):(v.next=F.next,F.next=v),s.interleaved=v;return}}catch{}finally{}l=Ng(o,s,v,h),l!==null&&(v=Lt(),Kn(l,o,h,v),sy(l,s,h))}}function oy(o){var s=o.alternate;return o===Xe||s!==null&&s===Xe}function iy(o,s){La=Zl=!0;var l=o.pending;l===null?s.next=s:(s.next=l.next,l.next=s),o.pending=s}function sy(o,s,l){if((l&4194240)!==0){var h=s.lanes;h&=o.pendingLanes,l|=h,s.lanes=l,of(o,l)}}var tu={readContext:jn,useCallback:Bt,useContext:Bt,useEffect:Bt,useImperativeHandle:Bt,useInsertionEffect:Bt,useLayoutEffect:Bt,useMemo:Bt,useReducer:Bt,useRef:Bt,useState:Bt,useDebugValue:Bt,useDeferredValue:Bt,useTransition:Bt,useMutableSource:Bt,useSyncExternalStore:Bt,useId:Bt,unstable_isNewReconciler:!1},i8={readContext:jn,useCallback:function(o,s){return ur().memoizedState=[o,s===void 0?null:s],o},useContext:jn,useEffect:Kg,useImperativeHandle:function(o,s,l){return l=l!=null?l.concat([o]):null,Xl(4194308,4,Zg.bind(null,s,o),l)},useLayoutEffect:function(o,s){return Xl(4194308,4,o,s)},useInsertionEffect:function(o,s){return Xl(4,2,o,s)},useMemo:function(o,s){var l=ur();return s=s===void 0?null:s,o=o(),l.memoizedState=[o,s],o},useReducer:function(o,s,l){var h=ur();return s=l!==void 0?l(s):s,h.memoizedState=h.baseState=s,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:s},h.queue=o,o=o.dispatch=r8.bind(null,Xe,o),[h.memoizedState,o]},useRef:function(o){var s=ur();return o={current:o},s.memoizedState=o},useState:Qg,useDebugValue:r0,useDeferredValue:function(o){return ur().memoizedState=o},useTransition:function(){var o=Qg(!1),s=o[0];return o=n8.bind(null,o[1]),ur().memoizedState=o,[s,o]},useMutableSource:function(){},useSyncExternalStore:function(o,s,l){var h=Xe,v=ur();if(Ye){if(l===void 0)throw Error(n(407));l=l()}else{if(l=s(),gt===null)throw Error(n(349));(ii&30)!==0||Wg(h,s,l)}v.memoizedState=l;var x={value:l,getSnapshot:s};return v.queue=x,Kg(qg.bind(null,h,x,o),[o]),h.flags|=2048,Ua(9,$g.bind(null,h,x,l,s),void 0,null),l},useId:function(){var o=ur(),s=gt.identifierPrefix;if(Ye){var l=Br,h=jr;l=(h&~(1<<32-$n(h)-1)).toString(32)+l,s=":"+s+"R"+l,l=Fa++,0<l&&(s+="H"+l.toString(32)),s+=":"}else l=t8++,s=":"+s+"r"+l.toString(32)+":";return o.memoizedState=s},unstable_isNewReconciler:!1},s8={readContext:jn,useCallback:ey,useContext:jn,useEffect:n0,useImperativeHandle:Xg,useInsertionEffect:Yg,useLayoutEffect:Jg,useMemo:ty,useReducer:e0,useRef:Gg,useState:function(){return e0(za)},useDebugValue:r0,useDeferredValue:function(o){var s=Bn();return ny(s,dt.memoizedState,o)},useTransition:function(){var o=e0(za)[0],s=Bn().memoizedState;return[o,s]},useMutableSource:zg,useSyncExternalStore:Ug,useId:ry,unstable_isNewReconciler:!1},a8={readContext:jn,useCallback:ey,useContext:jn,useEffect:n0,useImperativeHandle:Xg,useInsertionEffect:Yg,useLayoutEffect:Jg,useMemo:ty,useReducer:t0,useRef:Gg,useState:function(){return t0(za)},useDebugValue:r0,useDeferredValue:function(o){var s=Bn();return dt===null?s.memoizedState=o:ny(s,dt.memoizedState,o)},useTransition:function(){var o=t0(za)[0],s=Bn().memoizedState;return[o,s]},useMutableSource:zg,useSyncExternalStore:Ug,useId:ry,unstable_isNewReconciler:!1};function Vn(o,s){if(o&&o.defaultProps){s=Y({},s),o=o.defaultProps;for(var l in o)s[l]===void 0&&(s[l]=o[l]);return s}return s}function o0(o,s,l,h){s=o.memoizedState,l=l(h,s),l=l==null?s:Y({},s,l),o.memoizedState=l,o.lanes===0&&(o.updateQueue.baseState=l)}var nu={isMounted:function(o){return(o=o._reactInternals)?Zo(o)===o:!1},enqueueSetState:function(o,s,l){o=o._reactInternals;var h=Lt(),v=wo(o),x=Pr(h,v);x.payload=s,l!=null&&(x.callback=l),s=mo(o,x,v),s!==null&&(Kn(s,o,v,h),Gl(s,o,v))},enqueueReplaceState:function(o,s,l){o=o._reactInternals;var h=Lt(),v=wo(o),x=Pr(h,v);x.tag=1,x.payload=s,l!=null&&(x.callback=l),s=mo(o,x,v),s!==null&&(Kn(s,o,v,h),Gl(s,o,v))},enqueueForceUpdate:function(o,s){o=o._reactInternals;var l=Lt(),h=wo(o),v=Pr(l,h);v.tag=2,s!=null&&(v.callback=s),s=mo(o,v,h),s!==null&&(Kn(s,o,h,l),Gl(s,o,h))}};function ay(o,s,l,h,v,x,B){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(h,x,B):s.prototype&&s.prototype.isPureReactComponent?!Ia(l,h)||!Ia(v,x):!0}function cy(o,s,l){var h=!1,v=fo,x=s.contextType;return typeof x=="object"&&x!==null?x=jn(x):(v=Yt(s)?ei:jt.current,h=s.contextTypes,x=(h=h!=null)?is(o,v):fo),s=new s(l,x),o.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=nu,o.stateNode=s,s._reactInternals=o,h&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=v,o.__reactInternalMemoizedMaskedChildContext=x),s}function ly(o,s,l,h){o=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(l,h),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(l,h),s.state!==o&&nu.enqueueReplaceState(s,s.state,null)}function i0(o,s,l,h){var v=o.stateNode;v.props=l,v.state=o.memoizedState,v.refs={},Hf(o);var x=s.contextType;typeof x=="object"&&x!==null?v.context=jn(x):(x=Yt(s)?ei:jt.current,v.context=is(o,x)),v.state=o.memoizedState,x=s.getDerivedStateFromProps,typeof x=="function"&&(o0(o,s,x,l),v.state=o.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(s=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),s!==v.state&&nu.enqueueReplaceState(v,v.state,null),Kl(o,l,v,h),v.state=o.memoizedState),typeof v.componentDidMount=="function"&&(o.flags|=4194308)}function hs(o,s){try{var l="",h=s;do l+=le(h),h=h.return;while(h);var v=l}catch(x){v=`
40
+ Error generating stack: `+x.message+`
41
+ `+x.stack}return{value:o,source:s,stack:v,digest:null}}function s0(o,s,l){return{value:o,source:null,stack:l??null,digest:s??null}}function a0(o,s){try{console.error(s.value)}catch(l){setTimeout(function(){throw l})}}var c8=typeof WeakMap=="function"?WeakMap:Map;function uy(o,s,l){l=Pr(-1,l),l.tag=3,l.payload={element:null};var h=s.value;return l.callback=function(){lu||(lu=!0,C0=h),a0(o,s)},l}function dy(o,s,l){l=Pr(-1,l),l.tag=3;var h=o.type.getDerivedStateFromError;if(typeof h=="function"){var v=s.value;l.payload=function(){return h(v)},l.callback=function(){a0(o,s)}}var x=o.stateNode;return x!==null&&typeof x.componentDidCatch=="function"&&(l.callback=function(){a0(o,s),typeof h!="function"&&(yo===null?yo=new Set([this]):yo.add(this));var B=s.stack;this.componentDidCatch(s.value,{componentStack:B!==null?B:""})}),l}function fy(o,s,l){var h=o.pingCache;if(h===null){h=o.pingCache=new c8;var v=new Set;h.set(s,v)}else v=h.get(s),v===void 0&&(v=new Set,h.set(s,v));v.has(l)||(v.add(l),o=C8.bind(null,o,s,l),s.then(o,o))}function hy(o){do{var s;if((s=o.tag===13)&&(s=o.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return o;o=o.return}while(o!==null);return null}function py(o,s,l,h,v){return(o.mode&1)===0?(o===s?o.flags|=65536:(o.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(s=Pr(-1,1),s.tag=2,mo(l,s,1))),l.lanes|=1),o):(o.flags|=65536,o.lanes=v,o)}var l8=k.ReactCurrentOwner,Jt=!1;function Dt(o,s,l,h){s.child=o===null?Rg(s,null,l,h):ls(s,o.child,l,h)}function my(o,s,l,h,v){l=l.render;var x=s.ref;return ds(s,v),h=Zf(o,s,l,h,x,v),l=Xf(),o!==null&&!Jt?(s.updateQueue=o.updateQueue,s.flags&=-2053,o.lanes&=~v,Tr(o,s,v)):(Ye&&l&&Nf(s),s.flags|=1,Dt(o,s,h,v),s.child)}function gy(o,s,l,h,v){if(o===null){var x=l.type;return typeof x=="function"&&!B0(x)&&x.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(s.tag=15,s.type=x,yy(o,s,x,h,v)):(o=mu(l.type,null,h,s,s.mode,v),o.ref=s.ref,o.return=s,s.child=o)}if(x=o.child,(o.lanes&v)===0){var B=x.memoizedProps;if(l=l.compare,l=l!==null?l:Ia,l(B,h)&&o.ref===s.ref)return Tr(o,s,v)}return s.flags|=1,o=xo(x,h),o.ref=s.ref,o.return=s,s.child=o}function yy(o,s,l,h,v){if(o!==null){var x=o.memoizedProps;if(Ia(x,h)&&o.ref===s.ref)if(Jt=!1,s.pendingProps=h=x,(o.lanes&v)!==0)(o.flags&131072)!==0&&(Jt=!0);else return s.lanes=o.lanes,Tr(o,s,v)}return c0(o,s,l,h,v)}function vy(o,s,l){var h=s.pendingProps,v=h.children,x=o!==null?o.memoizedState:null;if(h.mode==="hidden")if((s.mode&1)===0)s.memoizedState={baseLanes:0,cachePool:null,transitions:null},Qe(ms,pn),pn|=l;else{if((l&1073741824)===0)return o=x!==null?x.baseLanes|l:l,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:o,cachePool:null,transitions:null},s.updateQueue=null,Qe(ms,pn),pn|=o,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},h=x!==null?x.baseLanes:l,Qe(ms,pn),pn|=h}else x!==null?(h=x.baseLanes|l,s.memoizedState=null):h=l,Qe(ms,pn),pn|=h;return Dt(o,s,v,l),s.child}function wy(o,s){var l=s.ref;(o===null&&l!==null||o!==null&&o.ref!==l)&&(s.flags|=512,s.flags|=2097152)}function c0(o,s,l,h,v){var x=Yt(l)?ei:jt.current;return x=is(s,x),ds(s,v),l=Zf(o,s,l,h,x,v),h=Xf(),o!==null&&!Jt?(s.updateQueue=o.updateQueue,s.flags&=-2053,o.lanes&=~v,Tr(o,s,v)):(Ye&&h&&Nf(s),s.flags|=1,Dt(o,s,l,v),s.child)}function by(o,s,l,h,v){if(Yt(l)){var x=!0;zl(s)}else x=!1;if(ds(s,v),s.stateNode===null)ou(o,s),cy(s,l,h),i0(s,l,h,v),h=!0;else if(o===null){var B=s.stateNode,O=s.memoizedProps;B.props=O;var F=B.context,K=l.contextType;typeof K=="object"&&K!==null?K=jn(K):(K=Yt(l)?ei:jt.current,K=is(s,K));var ie=l.getDerivedStateFromProps,ae=typeof ie=="function"||typeof B.getSnapshotBeforeUpdate=="function";ae||typeof B.UNSAFE_componentWillReceiveProps!="function"&&typeof B.componentWillReceiveProps!="function"||(O!==h||F!==K)&&ly(s,B,h,K),po=!1;var re=s.memoizedState;B.state=re,Kl(s,h,B,v),F=s.memoizedState,O!==h||re!==F||Kt.current||po?(typeof ie=="function"&&(o0(s,l,ie,h),F=s.memoizedState),(O=po||ay(s,l,O,h,re,F,K))?(ae||typeof B.UNSAFE_componentWillMount!="function"&&typeof B.componentWillMount!="function"||(typeof B.componentWillMount=="function"&&B.componentWillMount(),typeof B.UNSAFE_componentWillMount=="function"&&B.UNSAFE_componentWillMount()),typeof B.componentDidMount=="function"&&(s.flags|=4194308)):(typeof B.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=h,s.memoizedState=F),B.props=h,B.state=F,B.context=K,h=O):(typeof B.componentDidMount=="function"&&(s.flags|=4194308),h=!1)}else{B=s.stateNode,Mg(o,s),O=s.memoizedProps,K=s.type===s.elementType?O:Vn(s.type,O),B.props=K,ae=s.pendingProps,re=B.context,F=l.contextType,typeof F=="object"&&F!==null?F=jn(F):(F=Yt(l)?ei:jt.current,F=is(s,F));var pe=l.getDerivedStateFromProps;(ie=typeof pe=="function"||typeof B.getSnapshotBeforeUpdate=="function")||typeof B.UNSAFE_componentWillReceiveProps!="function"&&typeof B.componentWillReceiveProps!="function"||(O!==ae||re!==F)&&ly(s,B,h,F),po=!1,re=s.memoizedState,B.state=re,Kl(s,h,B,v);var ye=s.memoizedState;O!==ae||re!==ye||Kt.current||po?(typeof pe=="function"&&(o0(s,l,pe,h),ye=s.memoizedState),(K=po||ay(s,l,K,h,re,ye,F)||!1)?(ie||typeof B.UNSAFE_componentWillUpdate!="function"&&typeof B.componentWillUpdate!="function"||(typeof B.componentWillUpdate=="function"&&B.componentWillUpdate(h,ye,F),typeof B.UNSAFE_componentWillUpdate=="function"&&B.UNSAFE_componentWillUpdate(h,ye,F)),typeof B.componentDidUpdate=="function"&&(s.flags|=4),typeof B.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof B.componentDidUpdate!="function"||O===o.memoizedProps&&re===o.memoizedState||(s.flags|=4),typeof B.getSnapshotBeforeUpdate!="function"||O===o.memoizedProps&&re===o.memoizedState||(s.flags|=1024),s.memoizedProps=h,s.memoizedState=ye),B.props=h,B.state=ye,B.context=F,h=K):(typeof B.componentDidUpdate!="function"||O===o.memoizedProps&&re===o.memoizedState||(s.flags|=4),typeof B.getSnapshotBeforeUpdate!="function"||O===o.memoizedProps&&re===o.memoizedState||(s.flags|=1024),h=!1)}return l0(o,s,l,h,x,v)}function l0(o,s,l,h,v,x){wy(o,s);var B=(s.flags&128)!==0;if(!h&&!B)return v&&kg(s,l,!1),Tr(o,s,x);h=s.stateNode,l8.current=s;var O=B&&typeof l.getDerivedStateFromError!="function"?null:h.render();return s.flags|=1,o!==null&&B?(s.child=ls(s,o.child,null,x),s.child=ls(s,null,O,x)):Dt(o,s,O,x),s.memoizedState=h.state,v&&kg(s,l,!0),s.child}function xy(o){var s=o.stateNode;s.pendingContext?Eg(o,s.pendingContext,s.pendingContext!==s.context):s.context&&Eg(o,s.context,!1),Vf(o,s.containerInfo)}function Cy(o,s,l,h,v){return cs(),Ff(v),s.flags|=256,Dt(o,s,l,h),s.child}var u0={dehydrated:null,treeContext:null,retryLane:0};function d0(o){return{baseLanes:o,cachePool:null,transitions:null}}function Ey(o,s,l){var h=s.pendingProps,v=Ze.current,x=!1,B=(s.flags&128)!==0,O;if((O=B)||(O=o!==null&&o.memoizedState===null?!1:(v&2)!==0),O?(x=!0,s.flags&=-129):(o===null||o.memoizedState!==null)&&(v|=1),Qe(Ze,v&1),o===null)return Lf(s),o=s.memoizedState,o!==null&&(o=o.dehydrated,o!==null)?((s.mode&1)===0?s.lanes=1:o.data==="$!"?s.lanes=8:s.lanes=1073741824,null):(B=h.children,o=h.fallback,x?(h=s.mode,x=s.child,B={mode:"hidden",children:B},(h&1)===0&&x!==null?(x.childLanes=0,x.pendingProps=B):x=gu(B,h,0,null),o=ui(o,h,l,null),x.return=s,o.return=s,x.sibling=o,s.child=x,s.child.memoizedState=d0(l),s.memoizedState=u0,o):f0(s,B));if(v=o.memoizedState,v!==null&&(O=v.dehydrated,O!==null))return u8(o,s,B,h,O,v,l);if(x){x=h.fallback,B=s.mode,v=o.child,O=v.sibling;var F={mode:"hidden",children:h.children};return(B&1)===0&&s.child!==v?(h=s.child,h.childLanes=0,h.pendingProps=F,s.deletions=null):(h=xo(v,F),h.subtreeFlags=v.subtreeFlags&14680064),O!==null?x=xo(O,x):(x=ui(x,B,l,null),x.flags|=2),x.return=s,h.return=s,h.sibling=x,s.child=h,h=x,x=s.child,B=o.child.memoizedState,B=B===null?d0(l):{baseLanes:B.baseLanes|l,cachePool:null,transitions:B.transitions},x.memoizedState=B,x.childLanes=o.childLanes&~l,s.memoizedState=u0,h}return x=o.child,o=x.sibling,h=xo(x,{mode:"visible",children:h.children}),(s.mode&1)===0&&(h.lanes=l),h.return=s,h.sibling=null,o!==null&&(l=s.deletions,l===null?(s.deletions=[o],s.flags|=16):l.push(o)),s.child=h,s.memoizedState=null,h}function f0(o,s){return s=gu({mode:"visible",children:s},o.mode,0,null),s.return=o,o.child=s}function ru(o,s,l,h){return h!==null&&Ff(h),ls(s,o.child,null,l),o=f0(s,s.pendingProps.children),o.flags|=2,s.memoizedState=null,o}function u8(o,s,l,h,v,x,B){if(l)return s.flags&256?(s.flags&=-257,h=s0(Error(n(422))),ru(o,s,B,h)):s.memoizedState!==null?(s.child=o.child,s.flags|=128,null):(x=h.fallback,v=s.mode,h=gu({mode:"visible",children:h.children},v,0,null),x=ui(x,v,B,null),x.flags|=2,h.return=s,x.return=s,h.sibling=x,s.child=h,(s.mode&1)!==0&&ls(s,o.child,null,B),s.child.memoizedState=d0(B),s.memoizedState=u0,x);if((s.mode&1)===0)return ru(o,s,B,null);if(v.data==="$!"){if(h=v.nextSibling&&v.nextSibling.dataset,h)var O=h.dgst;return h=O,x=Error(n(419)),h=s0(x,h,void 0),ru(o,s,B,h)}if(O=(B&o.childLanes)!==0,Jt||O){if(h=gt,h!==null){switch(B&-B){case 4:v=2;break;case 16:v=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:v=32;break;case 536870912:v=268435456;break;default:v=0}v=(v&(h.suspendedLanes|B))!==0?0:v,v!==0&&v!==x.retryLane&&(x.retryLane=v,_r(o,v),Kn(h,o,v,-1))}return j0(),h=s0(Error(n(421))),ru(o,s,B,h)}return v.data==="$?"?(s.flags|=128,s.child=o.child,s=E8.bind(null,o),v._reactRetry=s,null):(o=x.treeContext,hn=lo(v.nextSibling),fn=s,Ye=!0,Hn=null,o!==null&&(Sn[In++]=jr,Sn[In++]=Br,Sn[In++]=ti,jr=o.id,Br=o.overflow,ti=s),s=f0(s,h.children),s.flags|=4096,s)}function Ay(o,s,l){o.lanes|=s;var h=o.alternate;h!==null&&(h.lanes|=s),$f(o.return,s,l)}function h0(o,s,l,h,v){var x=o.memoizedState;x===null?o.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:h,tail:l,tailMode:v}:(x.isBackwards=s,x.rendering=null,x.renderingStartTime=0,x.last=h,x.tail=l,x.tailMode=v)}function ky(o,s,l){var h=s.pendingProps,v=h.revealOrder,x=h.tail;if(Dt(o,s,h.children,l),h=Ze.current,(h&2)!==0)h=h&1|2,s.flags|=128;else{if(o!==null&&(o.flags&128)!==0)e:for(o=s.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&Ay(o,l,s);else if(o.tag===19)Ay(o,l,s);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break e;for(;o.sibling===null;){if(o.return===null||o.return===s)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}h&=1}if(Qe(Ze,h),(s.mode&1)===0)s.memoizedState=null;else switch(v){case"forwards":for(l=s.child,v=null;l!==null;)o=l.alternate,o!==null&&Yl(o)===null&&(v=l),l=l.sibling;l=v,l===null?(v=s.child,s.child=null):(v=l.sibling,l.sibling=null),h0(s,!1,v,l,x);break;case"backwards":for(l=null,v=s.child,s.child=null;v!==null;){if(o=v.alternate,o!==null&&Yl(o)===null){s.child=v;break}o=v.sibling,v.sibling=l,l=v,v=o}h0(s,!0,l,null,x);break;case"together":h0(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function ou(o,s){(s.mode&1)===0&&o!==null&&(o.alternate=null,s.alternate=null,s.flags|=2)}function Tr(o,s,l){if(o!==null&&(s.dependencies=o.dependencies),si|=s.lanes,(l&s.childLanes)===0)return null;if(o!==null&&s.child!==o.child)throw Error(n(153));if(s.child!==null){for(o=s.child,l=xo(o,o.pendingProps),s.child=l,l.return=s;o.sibling!==null;)o=o.sibling,l=l.sibling=xo(o,o.pendingProps),l.return=s;l.sibling=null}return s.child}function d8(o,s,l){switch(s.tag){case 3:xy(s),cs();break;case 5:Fg(s);break;case 1:Yt(s.type)&&zl(s);break;case 4:Vf(s,s.stateNode.containerInfo);break;case 10:var h=s.type._context,v=s.memoizedProps.value;Qe(Vl,h._currentValue),h._currentValue=v;break;case 13:if(h=s.memoizedState,h!==null)return h.dehydrated!==null?(Qe(Ze,Ze.current&1),s.flags|=128,null):(l&s.child.childLanes)!==0?Ey(o,s,l):(Qe(Ze,Ze.current&1),o=Tr(o,s,l),o!==null?o.sibling:null);Qe(Ze,Ze.current&1);break;case 19:if(h=(l&s.childLanes)!==0,(o.flags&128)!==0){if(h)return ky(o,s,l);s.flags|=128}if(v=s.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),Qe(Ze,Ze.current),h)break;return null;case 22:case 23:return s.lanes=0,vy(o,s,l)}return Tr(o,s,l)}var Sy,p0,Iy,jy;Sy=function(o,s){for(var l=s.child;l!==null;){if(l.tag===5||l.tag===6)o.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===s)break;for(;l.sibling===null;){if(l.return===null||l.return===s)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},p0=function(){},Iy=function(o,s,l,h){var v=o.memoizedProps;if(v!==h){o=s.stateNode,oi(lr.current);var x=null;switch(l){case"input":v=An(o,v),h=An(o,h),x=[];break;case"select":v=Y({},v,{value:void 0}),h=Y({},h,{value:void 0}),x=[];break;case"textarea":v=Yo(o,v),h=Yo(o,h),x=[];break;default:typeof v.onClick!="function"&&typeof h.onClick=="function"&&(o.onclick=Dl)}Qt(l,h);var B;l=null;for(K in v)if(!h.hasOwnProperty(K)&&v.hasOwnProperty(K)&&v[K]!=null)if(K==="style"){var O=v[K];for(B in O)O.hasOwnProperty(B)&&(l||(l={}),l[B]="")}else K!=="dangerouslySetInnerHTML"&&K!=="children"&&K!=="suppressContentEditableWarning"&&K!=="suppressHydrationWarning"&&K!=="autoFocus"&&(i.hasOwnProperty(K)?x||(x=[]):(x=x||[]).push(K,null));for(K in h){var F=h[K];if(O=v!=null?v[K]:void 0,h.hasOwnProperty(K)&&F!==O&&(F!=null||O!=null))if(K==="style")if(O){for(B in O)!O.hasOwnProperty(B)||F&&F.hasOwnProperty(B)||(l||(l={}),l[B]="");for(B in F)F.hasOwnProperty(B)&&O[B]!==F[B]&&(l||(l={}),l[B]=F[B])}else l||(x||(x=[]),x.push(K,l)),l=F;else K==="dangerouslySetInnerHTML"?(F=F?F.__html:void 0,O=O?O.__html:void 0,F!=null&&O!==F&&(x=x||[]).push(K,F)):K==="children"?typeof F!="string"&&typeof F!="number"||(x=x||[]).push(K,""+F):K!=="suppressContentEditableWarning"&&K!=="suppressHydrationWarning"&&(i.hasOwnProperty(K)?(F!=null&&K==="onScroll"&&Ge("scroll",o),x||O===F||(x=[])):(x=x||[]).push(K,F))}l&&(x=x||[]).push("style",l);var K=x;(s.updateQueue=K)&&(s.flags|=4)}},jy=function(o,s,l,h){l!==h&&(s.flags|=4)};function Wa(o,s){if(!Ye)switch(o.tailMode){case"hidden":s=o.tail;for(var l=null;s!==null;)s.alternate!==null&&(l=s),s=s.sibling;l===null?o.tail=null:l.sibling=null;break;case"collapsed":l=o.tail;for(var h=null;l!==null;)l.alternate!==null&&(h=l),l=l.sibling;h===null?s||o.tail===null?o.tail=null:o.tail.sibling=null:h.sibling=null}}function _t(o){var s=o.alternate!==null&&o.alternate.child===o.child,l=0,h=0;if(s)for(var v=o.child;v!==null;)l|=v.lanes|v.childLanes,h|=v.subtreeFlags&14680064,h|=v.flags&14680064,v.return=o,v=v.sibling;else for(v=o.child;v!==null;)l|=v.lanes|v.childLanes,h|=v.subtreeFlags,h|=v.flags,v.return=o,v=v.sibling;return o.subtreeFlags|=h,o.childLanes=l,s}function f8(o,s,l){var h=s.pendingProps;switch(Mf(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _t(s),null;case 1:return Yt(s.type)&&Fl(),_t(s),null;case 3:return h=s.stateNode,fs(),Ke(Kt),Ke(jt),Kf(),h.pendingContext&&(h.context=h.pendingContext,h.pendingContext=null),(o===null||o.child===null)&&(ql(s)?s.flags|=4:o===null||o.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,Hn!==null&&(k0(Hn),Hn=null))),p0(o,s),_t(s),null;case 5:Qf(s);var v=oi(Da.current);if(l=s.type,o!==null&&s.stateNode!=null)Iy(o,s,l,h,v),o.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!h){if(s.stateNode===null)throw Error(n(166));return _t(s),null}if(o=oi(lr.current),ql(s)){h=s.stateNode,l=s.type;var x=s.memoizedProps;switch(h[cr]=s,h[Ta]=x,o=(s.mode&1)!==0,l){case"dialog":Ge("cancel",h),Ge("close",h);break;case"iframe":case"object":case"embed":Ge("load",h);break;case"video":case"audio":for(v=0;v<Ba.length;v++)Ge(Ba[v],h);break;case"source":Ge("error",h);break;case"img":case"image":case"link":Ge("error",h),Ge("load",h);break;case"details":Ge("toggle",h);break;case"input":zn(h,x),Ge("invalid",h);break;case"select":h._wrapperState={wasMultiple:!!x.multiple},Ge("invalid",h);break;case"textarea":to(h,x),Ge("invalid",h)}Qt(l,x),v=null;for(var B in x)if(x.hasOwnProperty(B)){var O=x[B];B==="children"?typeof O=="string"?h.textContent!==O&&(x.suppressHydrationWarning!==!0&&Ml(h.textContent,O,o),v=["children",O]):typeof O=="number"&&h.textContent!==""+O&&(x.suppressHydrationWarning!==!0&&Ml(h.textContent,O,o),v=["children",""+O]):i.hasOwnProperty(B)&&O!=null&&B==="onScroll"&&Ge("scroll",h)}switch(l){case"input":Cn(h),Ko(h,x,!0);break;case"textarea":Cn(h),ml(h);break;case"select":case"option":break;default:typeof x.onClick=="function"&&(h.onclick=Dl)}h=v,s.updateQueue=h,h!==null&&(s.flags|=4)}else{B=v.nodeType===9?v:v.ownerDocument,o==="http://www.w3.org/1999/xhtml"&&(o=da(l)),o==="http://www.w3.org/1999/xhtml"?l==="script"?(o=B.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild)):typeof h.is=="string"?o=B.createElement(l,{is:h.is}):(o=B.createElement(l),l==="select"&&(B=o,h.multiple?B.multiple=!0:h.size&&(B.size=h.size))):o=B.createElementNS(o,l),o[cr]=s,o[Ta]=h,Sy(o,s,!1,!1),s.stateNode=o;e:{switch(B=Le(l,h),l){case"dialog":Ge("cancel",o),Ge("close",o),v=h;break;case"iframe":case"object":case"embed":Ge("load",o),v=h;break;case"video":case"audio":for(v=0;v<Ba.length;v++)Ge(Ba[v],o);v=h;break;case"source":Ge("error",o),v=h;break;case"img":case"image":case"link":Ge("error",o),Ge("load",o),v=h;break;case"details":Ge("toggle",o),v=h;break;case"input":zn(o,h),v=An(o,h),Ge("invalid",o);break;case"option":v=h;break;case"select":o._wrapperState={wasMultiple:!!h.multiple},v=Y({},h,{value:void 0}),Ge("invalid",o);break;case"textarea":to(o,h),v=Yo(o,h),Ge("invalid",o);break;default:v=h}Qt(l,v),O=v;for(x in O)if(O.hasOwnProperty(x)){var F=O[x];x==="style"?qe(o,F):x==="dangerouslySetInnerHTML"?(F=F?F.__html:void 0,F!=null&&Ar(o,F)):x==="children"?typeof F=="string"?(l!=="textarea"||F!=="")&&sr(o,F):typeof F=="number"&&sr(o,""+F):x!=="suppressContentEditableWarning"&&x!=="suppressHydrationWarning"&&x!=="autoFocus"&&(i.hasOwnProperty(x)?F!=null&&x==="onScroll"&&Ge("scroll",o):F!=null&&S(o,x,F,B))}switch(l){case"input":Cn(o),Ko(o,h,!1);break;case"textarea":Cn(o),ml(o);break;case"option":h.value!=null&&o.setAttribute("value",""+_e(h.value));break;case"select":o.multiple=!!h.multiple,x=h.value,x!=null?eo(o,!!h.multiple,x,!1):h.defaultValue!=null&&eo(o,!!h.multiple,h.defaultValue,!0);break;default:typeof v.onClick=="function"&&(o.onclick=Dl)}switch(l){case"button":case"input":case"select":case"textarea":h=!!h.autoFocus;break e;case"img":h=!0;break e;default:h=!1}}h&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return _t(s),null;case 6:if(o&&s.stateNode!=null)jy(o,s,o.memoizedProps,h);else{if(typeof h!="string"&&s.stateNode===null)throw Error(n(166));if(l=oi(Da.current),oi(lr.current),ql(s)){if(h=s.stateNode,l=s.memoizedProps,h[cr]=s,(x=h.nodeValue!==l)&&(o=fn,o!==null))switch(o.tag){case 3:Ml(h.nodeValue,l,(o.mode&1)!==0);break;case 5:o.memoizedProps.suppressHydrationWarning!==!0&&Ml(h.nodeValue,l,(o.mode&1)!==0)}x&&(s.flags|=4)}else h=(l.nodeType===9?l:l.ownerDocument).createTextNode(h),h[cr]=s,s.stateNode=h}return _t(s),null;case 13:if(Ke(Ze),h=s.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(Ye&&hn!==null&&(s.mode&1)!==0&&(s.flags&128)===0)Pg(),cs(),s.flags|=98560,x=!1;else if(x=ql(s),h!==null&&h.dehydrated!==null){if(o===null){if(!x)throw Error(n(318));if(x=s.memoizedState,x=x!==null?x.dehydrated:null,!x)throw Error(n(317));x[cr]=s}else cs(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;_t(s),x=!1}else Hn!==null&&(k0(Hn),Hn=null),x=!0;if(!x)return s.flags&65536?s:null}return(s.flags&128)!==0?(s.lanes=l,s):(h=h!==null,h!==(o!==null&&o.memoizedState!==null)&&h&&(s.child.flags|=8192,(s.mode&1)!==0&&(o===null||(Ze.current&1)!==0?ft===0&&(ft=3):j0())),s.updateQueue!==null&&(s.flags|=4),_t(s),null);case 4:return fs(),p0(o,s),o===null&&_a(s.stateNode.containerInfo),_t(s),null;case 10:return Wf(s.type._context),_t(s),null;case 17:return Yt(s.type)&&Fl(),_t(s),null;case 19:if(Ke(Ze),x=s.memoizedState,x===null)return _t(s),null;if(h=(s.flags&128)!==0,B=x.rendering,B===null)if(h)Wa(x,!1);else{if(ft!==0||o!==null&&(o.flags&128)!==0)for(o=s.child;o!==null;){if(B=Yl(o),B!==null){for(s.flags|=128,Wa(x,!1),h=B.updateQueue,h!==null&&(s.updateQueue=h,s.flags|=4),s.subtreeFlags=0,h=l,l=s.child;l!==null;)x=l,o=h,x.flags&=14680066,B=x.alternate,B===null?(x.childLanes=0,x.lanes=o,x.child=null,x.subtreeFlags=0,x.memoizedProps=null,x.memoizedState=null,x.updateQueue=null,x.dependencies=null,x.stateNode=null):(x.childLanes=B.childLanes,x.lanes=B.lanes,x.child=B.child,x.subtreeFlags=0,x.deletions=null,x.memoizedProps=B.memoizedProps,x.memoizedState=B.memoizedState,x.updateQueue=B.updateQueue,x.type=B.type,o=B.dependencies,x.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),l=l.sibling;return Qe(Ze,Ze.current&1|2),s.child}o=o.sibling}x.tail!==null&&rt()>gs&&(s.flags|=128,h=!0,Wa(x,!1),s.lanes=4194304)}else{if(!h)if(o=Yl(B),o!==null){if(s.flags|=128,h=!0,l=o.updateQueue,l!==null&&(s.updateQueue=l,s.flags|=4),Wa(x,!0),x.tail===null&&x.tailMode==="hidden"&&!B.alternate&&!Ye)return _t(s),null}else 2*rt()-x.renderingStartTime>gs&&l!==1073741824&&(s.flags|=128,h=!0,Wa(x,!1),s.lanes=4194304);x.isBackwards?(B.sibling=s.child,s.child=B):(l=x.last,l!==null?l.sibling=B:s.child=B,x.last=B)}return x.tail!==null?(s=x.tail,x.rendering=s,x.tail=s.sibling,x.renderingStartTime=rt(),s.sibling=null,l=Ze.current,Qe(Ze,h?l&1|2:l&1),s):(_t(s),null);case 22:case 23:return I0(),h=s.memoizedState!==null,o!==null&&o.memoizedState!==null!==h&&(s.flags|=8192),h&&(s.mode&1)!==0?(pn&1073741824)!==0&&(_t(s),s.subtreeFlags&6&&(s.flags|=8192)):_t(s),null;case 24:return null;case 25:return null}throw Error(n(156,s.tag))}function h8(o,s){switch(Mf(s),s.tag){case 1:return Yt(s.type)&&Fl(),o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 3:return fs(),Ke(Kt),Ke(jt),Kf(),o=s.flags,(o&65536)!==0&&(o&128)===0?(s.flags=o&-65537|128,s):null;case 5:return Qf(s),null;case 13:if(Ke(Ze),o=s.memoizedState,o!==null&&o.dehydrated!==null){if(s.alternate===null)throw Error(n(340));cs()}return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 19:return Ke(Ze),null;case 4:return fs(),null;case 10:return Wf(s.type._context),null;case 22:case 23:return I0(),null;case 24:return null;default:return null}}var iu=!1,Pt=!1,p8=typeof WeakSet=="function"?WeakSet:Set,ge=null;function ps(o,s){var l=o.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(h){tt(o,s,h)}else l.current=null}function m0(o,s,l){try{l()}catch(h){tt(o,s,h)}}var By=!1;function m8(o,s){if(If=kl,o=ag(),wf(o)){if("selectionStart"in o)var l={start:o.selectionStart,end:o.selectionEnd};else e:{l=(l=o.ownerDocument)&&l.defaultView||window;var h=l.getSelection&&l.getSelection();if(h&&h.rangeCount!==0){l=h.anchorNode;var v=h.anchorOffset,x=h.focusNode;h=h.focusOffset;try{l.nodeType,x.nodeType}catch{l=null;break e}var B=0,O=-1,F=-1,K=0,ie=0,ae=o,re=null;t:for(;;){for(var pe;ae!==l||v!==0&&ae.nodeType!==3||(O=B+v),ae!==x||h!==0&&ae.nodeType!==3||(F=B+h),ae.nodeType===3&&(B+=ae.nodeValue.length),(pe=ae.firstChild)!==null;)re=ae,ae=pe;for(;;){if(ae===o)break t;if(re===l&&++K===v&&(O=B),re===x&&++ie===h&&(F=B),(pe=ae.nextSibling)!==null)break;ae=re,re=ae.parentNode}ae=pe}l=O===-1||F===-1?null:{start:O,end:F}}else l=null}l=l||{start:0,end:0}}else l=null;for(jf={focusedElem:o,selectionRange:l},kl=!1,ge=s;ge!==null;)if(s=ge,o=s.child,(s.subtreeFlags&1028)!==0&&o!==null)o.return=s,ge=o;else for(;ge!==null;){s=ge;try{var ye=s.alternate;if((s.flags&1024)!==0)switch(s.tag){case 0:case 11:case 15:break;case 1:if(ye!==null){var ve=ye.memoizedProps,ot=ye.memoizedState,q=s.stateNode,U=q.getSnapshotBeforeUpdate(s.elementType===s.type?ve:Vn(s.type,ve),ot);q.__reactInternalSnapshotBeforeUpdate=U}break;case 3:var H=s.stateNode.containerInfo;H.nodeType===1?H.textContent="":H.nodeType===9&&H.documentElement&&H.removeChild(H.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(ue){tt(s,s.return,ue)}if(o=s.sibling,o!==null){o.return=s.return,ge=o;break}ge=s.return}return ye=By,By=!1,ye}function $a(o,s,l){var h=s.updateQueue;if(h=h!==null?h.lastEffect:null,h!==null){var v=h=h.next;do{if((v.tag&o)===o){var x=v.destroy;v.destroy=void 0,x!==void 0&&m0(s,l,x)}v=v.next}while(v!==h)}}function su(o,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var l=s=s.next;do{if((l.tag&o)===o){var h=l.create;l.destroy=h()}l=l.next}while(l!==s)}}function g0(o){var s=o.ref;if(s!==null){var l=o.stateNode;switch(o.tag){case 5:o=l;break;default:o=l}typeof s=="function"?s(o):s.current=o}}function _y(o){var s=o.alternate;s!==null&&(o.alternate=null,_y(s)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(s=o.stateNode,s!==null&&(delete s[cr],delete s[Ta],delete s[Tf],delete s[JC],delete s[ZC])),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}function Py(o){return o.tag===5||o.tag===3||o.tag===4}function Ty(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||Py(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function y0(o,s,l){var h=o.tag;if(h===5||h===6)o=o.stateNode,s?l.nodeType===8?l.parentNode.insertBefore(o,s):l.insertBefore(o,s):(l.nodeType===8?(s=l.parentNode,s.insertBefore(o,l)):(s=l,s.appendChild(o)),l=l._reactRootContainer,l!=null||s.onclick!==null||(s.onclick=Dl));else if(h!==4&&(o=o.child,o!==null))for(y0(o,s,l),o=o.sibling;o!==null;)y0(o,s,l),o=o.sibling}function v0(o,s,l){var h=o.tag;if(h===5||h===6)o=o.stateNode,s?l.insertBefore(o,s):l.appendChild(o);else if(h!==4&&(o=o.child,o!==null))for(v0(o,s,l),o=o.sibling;o!==null;)v0(o,s,l),o=o.sibling}var xt=null,Qn=!1;function go(o,s,l){for(l=l.child;l!==null;)Oy(o,s,l),l=l.sibling}function Oy(o,s,l){if(ar&&typeof ar.onCommitFiberUnmount=="function")try{ar.onCommitFiberUnmount(wl,l)}catch{}switch(l.tag){case 5:Pt||ps(l,s);case 6:var h=xt,v=Qn;xt=null,go(o,s,l),xt=h,Qn=v,xt!==null&&(Qn?(o=xt,l=l.stateNode,o.nodeType===8?o.parentNode.removeChild(l):o.removeChild(l)):xt.removeChild(l.stateNode));break;case 18:xt!==null&&(Qn?(o=xt,l=l.stateNode,o.nodeType===8?Pf(o.parentNode,l):o.nodeType===1&&Pf(o,l),xa(o)):Pf(xt,l.stateNode));break;case 4:h=xt,v=Qn,xt=l.stateNode.containerInfo,Qn=!0,go(o,s,l),xt=h,Qn=v;break;case 0:case 11:case 14:case 15:if(!Pt&&(h=l.updateQueue,h!==null&&(h=h.lastEffect,h!==null))){v=h=h.next;do{var x=v,B=x.destroy;x=x.tag,B!==void 0&&((x&2)!==0||(x&4)!==0)&&m0(l,s,B),v=v.next}while(v!==h)}go(o,s,l);break;case 1:if(!Pt&&(ps(l,s),h=l.stateNode,typeof h.componentWillUnmount=="function"))try{h.props=l.memoizedProps,h.state=l.memoizedState,h.componentWillUnmount()}catch(O){tt(l,s,O)}go(o,s,l);break;case 21:go(o,s,l);break;case 22:l.mode&1?(Pt=(h=Pt)||l.memoizedState!==null,go(o,s,l),Pt=h):go(o,s,l);break;default:go(o,s,l)}}function Ry(o){var s=o.updateQueue;if(s!==null){o.updateQueue=null;var l=o.stateNode;l===null&&(l=o.stateNode=new p8),s.forEach(function(h){var v=A8.bind(null,o,h);l.has(h)||(l.add(h),h.then(v,v))})}}function Gn(o,s){var l=s.deletions;if(l!==null)for(var h=0;h<l.length;h++){var v=l[h];try{var x=o,B=s,O=B;e:for(;O!==null;){switch(O.tag){case 5:xt=O.stateNode,Qn=!1;break e;case 3:xt=O.stateNode.containerInfo,Qn=!0;break e;case 4:xt=O.stateNode.containerInfo,Qn=!0;break e}O=O.return}if(xt===null)throw Error(n(160));Oy(x,B,v),xt=null,Qn=!1;var F=v.alternate;F!==null&&(F.return=null),v.return=null}catch(K){tt(v,s,K)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)Ny(s,o),s=s.sibling}function Ny(o,s){var l=o.alternate,h=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:if(Gn(s,o),dr(o),h&4){try{$a(3,o,o.return),su(3,o)}catch(ve){tt(o,o.return,ve)}try{$a(5,o,o.return)}catch(ve){tt(o,o.return,ve)}}break;case 1:Gn(s,o),dr(o),h&512&&l!==null&&ps(l,l.return);break;case 5:if(Gn(s,o),dr(o),h&512&&l!==null&&ps(l,l.return),o.flags&32){var v=o.stateNode;try{sr(v,"")}catch(ve){tt(o,o.return,ve)}}if(h&4&&(v=o.stateNode,v!=null)){var x=o.memoizedProps,B=l!==null?l.memoizedProps:x,O=o.type,F=o.updateQueue;if(o.updateQueue=null,F!==null)try{O==="input"&&x.type==="radio"&&x.name!=null&&kn(v,x),Le(O,B);var K=Le(O,x);for(B=0;B<F.length;B+=2){var ie=F[B],ae=F[B+1];ie==="style"?qe(v,ae):ie==="dangerouslySetInnerHTML"?Ar(v,ae):ie==="children"?sr(v,ae):S(v,ie,ae,K)}switch(O){case"input":ua(v,x);break;case"textarea":no(v,x);break;case"select":var re=v._wrapperState.wasMultiple;v._wrapperState.wasMultiple=!!x.multiple;var pe=x.value;pe!=null?eo(v,!!x.multiple,pe,!1):re!==!!x.multiple&&(x.defaultValue!=null?eo(v,!!x.multiple,x.defaultValue,!0):eo(v,!!x.multiple,x.multiple?[]:"",!1))}v[Ta]=x}catch(ve){tt(o,o.return,ve)}}break;case 6:if(Gn(s,o),dr(o),h&4){if(o.stateNode===null)throw Error(n(162));v=o.stateNode,x=o.memoizedProps;try{v.nodeValue=x}catch(ve){tt(o,o.return,ve)}}break;case 3:if(Gn(s,o),dr(o),h&4&&l!==null&&l.memoizedState.isDehydrated)try{xa(s.containerInfo)}catch(ve){tt(o,o.return,ve)}break;case 4:Gn(s,o),dr(o);break;case 13:Gn(s,o),dr(o),v=o.child,v.flags&8192&&(x=v.memoizedState!==null,v.stateNode.isHidden=x,!x||v.alternate!==null&&v.alternate.memoizedState!==null||(x0=rt())),h&4&&Ry(o);break;case 22:if(ie=l!==null&&l.memoizedState!==null,o.mode&1?(Pt=(K=Pt)||ie,Gn(s,o),Pt=K):Gn(s,o),dr(o),h&8192){if(K=o.memoizedState!==null,(o.stateNode.isHidden=K)&&!ie&&(o.mode&1)!==0)for(ge=o,ie=o.child;ie!==null;){for(ae=ge=ie;ge!==null;){switch(re=ge,pe=re.child,re.tag){case 0:case 11:case 14:case 15:$a(4,re,re.return);break;case 1:ps(re,re.return);var ye=re.stateNode;if(typeof ye.componentWillUnmount=="function"){h=re,l=re.return;try{s=h,ye.props=s.memoizedProps,ye.state=s.memoizedState,ye.componentWillUnmount()}catch(ve){tt(h,l,ve)}}break;case 5:ps(re,re.return);break;case 22:if(re.memoizedState!==null){Ly(ae);continue}}pe!==null?(pe.return=re,ge=pe):Ly(ae)}ie=ie.sibling}e:for(ie=null,ae=o;;){if(ae.tag===5){if(ie===null){ie=ae;try{v=ae.stateNode,K?(x=v.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none"):(O=ae.stateNode,F=ae.memoizedProps.style,B=F!=null&&F.hasOwnProperty("display")?F.display:null,O.style.display=Be("display",B))}catch(ve){tt(o,o.return,ve)}}}else if(ae.tag===6){if(ie===null)try{ae.stateNode.nodeValue=K?"":ae.memoizedProps}catch(ve){tt(o,o.return,ve)}}else if((ae.tag!==22&&ae.tag!==23||ae.memoizedState===null||ae===o)&&ae.child!==null){ae.child.return=ae,ae=ae.child;continue}if(ae===o)break e;for(;ae.sibling===null;){if(ae.return===null||ae.return===o)break e;ie===ae&&(ie=null),ae=ae.return}ie===ae&&(ie=null),ae.sibling.return=ae.return,ae=ae.sibling}}break;case 19:Gn(s,o),dr(o),h&4&&Ry(o);break;case 21:break;default:Gn(s,o),dr(o)}}function dr(o){var s=o.flags;if(s&2){try{e:{for(var l=o.return;l!==null;){if(Py(l)){var h=l;break e}l=l.return}throw Error(n(160))}switch(h.tag){case 5:var v=h.stateNode;h.flags&32&&(sr(v,""),h.flags&=-33);var x=Ty(o);v0(o,x,v);break;case 3:case 4:var B=h.stateNode.containerInfo,O=Ty(o);y0(o,O,B);break;default:throw Error(n(161))}}catch(F){tt(o,o.return,F)}o.flags&=-3}s&4096&&(o.flags&=-4097)}function g8(o,s,l){ge=o,My(o)}function My(o,s,l){for(var h=(o.mode&1)!==0;ge!==null;){var v=ge,x=v.child;if(v.tag===22&&h){var B=v.memoizedState!==null||iu;if(!B){var O=v.alternate,F=O!==null&&O.memoizedState!==null||Pt;O=iu;var K=Pt;if(iu=B,(Pt=F)&&!K)for(ge=v;ge!==null;)B=ge,F=B.child,B.tag===22&&B.memoizedState!==null?Fy(v):F!==null?(F.return=B,ge=F):Fy(v);for(;x!==null;)ge=x,My(x),x=x.sibling;ge=v,iu=O,Pt=K}Dy(o)}else(v.subtreeFlags&8772)!==0&&x!==null?(x.return=v,ge=x):Dy(o)}}function Dy(o){for(;ge!==null;){var s=ge;if((s.flags&8772)!==0){var l=s.alternate;try{if((s.flags&8772)!==0)switch(s.tag){case 0:case 11:case 15:Pt||su(5,s);break;case 1:var h=s.stateNode;if(s.flags&4&&!Pt)if(l===null)h.componentDidMount();else{var v=s.elementType===s.type?l.memoizedProps:Vn(s.type,l.memoizedProps);h.componentDidUpdate(v,l.memoizedState,h.__reactInternalSnapshotBeforeUpdate)}var x=s.updateQueue;x!==null&&Lg(s,x,h);break;case 3:var B=s.updateQueue;if(B!==null){if(l=null,s.child!==null)switch(s.child.tag){case 5:l=s.child.stateNode;break;case 1:l=s.child.stateNode}Lg(s,B,l)}break;case 5:var O=s.stateNode;if(l===null&&s.flags&4){l=O;var F=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":F.autoFocus&&l.focus();break;case"img":F.src&&(l.src=F.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var K=s.alternate;if(K!==null){var ie=K.memoizedState;if(ie!==null){var ae=ie.dehydrated;ae!==null&&xa(ae)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Pt||s.flags&512&&g0(s)}catch(re){tt(s,s.return,re)}}if(s===o){ge=null;break}if(l=s.sibling,l!==null){l.return=s.return,ge=l;break}ge=s.return}}function Ly(o){for(;ge!==null;){var s=ge;if(s===o){ge=null;break}var l=s.sibling;if(l!==null){l.return=s.return,ge=l;break}ge=s.return}}function Fy(o){for(;ge!==null;){var s=ge;try{switch(s.tag){case 0:case 11:case 15:var l=s.return;try{su(4,s)}catch(F){tt(s,l,F)}break;case 1:var h=s.stateNode;if(typeof h.componentDidMount=="function"){var v=s.return;try{h.componentDidMount()}catch(F){tt(s,v,F)}}var x=s.return;try{g0(s)}catch(F){tt(s,x,F)}break;case 5:var B=s.return;try{g0(s)}catch(F){tt(s,B,F)}}}catch(F){tt(s,s.return,F)}if(s===o){ge=null;break}var O=s.sibling;if(O!==null){O.return=s.return,ge=O;break}ge=s.return}}var y8=Math.ceil,au=k.ReactCurrentDispatcher,w0=k.ReactCurrentOwner,_n=k.ReactCurrentBatchConfig,ze=0,gt=null,it=null,Ct=0,pn=0,ms=uo(0),ft=0,qa=null,si=0,cu=0,b0=0,Ha=null,Zt=null,x0=0,gs=1/0,Or=null,lu=!1,C0=null,yo=null,uu=!1,vo=null,du=0,Va=0,E0=null,fu=-1,hu=0;function Lt(){return(ze&6)!==0?rt():fu!==-1?fu:fu=rt()}function wo(o){return(o.mode&1)===0?1:(ze&2)!==0&&Ct!==0?Ct&-Ct:e8.transition!==null?(hu===0&&(hu=T1()),hu):(o=He,o!==0||(o=window.event,o=o===void 0?16:U1(o.type)),o)}function Kn(o,s,l,h){if(50<Va)throw Va=0,E0=null,Error(n(185));ga(o,l,h),((ze&2)===0||o!==gt)&&(o===gt&&((ze&2)===0&&(cu|=l),ft===4&&bo(o,Ct)),Xt(o,h),l===1&&ze===0&&(s.mode&1)===0&&(gs=rt()+500,Ul&&ho()))}function Xt(o,s){var l=o.callbackNode;eC(o,s);var h=Cl(o,o===gt?Ct:0);if(h===0)l!==null&&B1(l),o.callbackNode=null,o.callbackPriority=0;else if(s=h&-h,o.callbackPriority!==s){if(l!=null&&B1(l),s===1)o.tag===0?XC(Uy.bind(null,o)):Sg(Uy.bind(null,o)),KC(function(){(ze&6)===0&&ho()}),l=null;else{switch(O1(h)){case 1:l=tf;break;case 4:l=_1;break;case 16:l=vl;break;case 536870912:l=P1;break;default:l=vl}l=Ky(l,zy.bind(null,o))}o.callbackPriority=s,o.callbackNode=l}}function zy(o,s){if(fu=-1,hu=0,(ze&6)!==0)throw Error(n(327));var l=o.callbackNode;if(ys()&&o.callbackNode!==l)return null;var h=Cl(o,o===gt?Ct:0);if(h===0)return null;if((h&30)!==0||(h&o.expiredLanes)!==0||s)s=pu(o,h);else{s=h;var v=ze;ze|=2;var x=$y();(gt!==o||Ct!==s)&&(Or=null,gs=rt()+500,ci(o,s));do try{b8();break}catch(O){Wy(o,O)}while(!0);Uf(),au.current=x,ze=v,it!==null?s=0:(gt=null,Ct=0,s=ft)}if(s!==0){if(s===2&&(v=nf(o),v!==0&&(h=v,s=A0(o,v))),s===1)throw l=qa,ci(o,0),bo(o,h),Xt(o,rt()),l;if(s===6)bo(o,h);else{if(v=o.current.alternate,(h&30)===0&&!v8(v)&&(s=pu(o,h),s===2&&(x=nf(o),x!==0&&(h=x,s=A0(o,x))),s===1))throw l=qa,ci(o,0),bo(o,h),Xt(o,rt()),l;switch(o.finishedWork=v,o.finishedLanes=h,s){case 0:case 1:throw Error(n(345));case 2:li(o,Zt,Or);break;case 3:if(bo(o,h),(h&130023424)===h&&(s=x0+500-rt(),10<s)){if(Cl(o,0)!==0)break;if(v=o.suspendedLanes,(v&h)!==h){Lt(),o.pingedLanes|=o.suspendedLanes&v;break}o.timeoutHandle=_f(li.bind(null,o,Zt,Or),s);break}li(o,Zt,Or);break;case 4:if(bo(o,h),(h&4194240)===h)break;for(s=o.eventTimes,v=-1;0<h;){var B=31-$n(h);x=1<<B,B=s[B],B>v&&(v=B),h&=~x}if(h=v,h=rt()-h,h=(120>h?120:480>h?480:1080>h?1080:1920>h?1920:3e3>h?3e3:4320>h?4320:1960*y8(h/1960))-h,10<h){o.timeoutHandle=_f(li.bind(null,o,Zt,Or),h);break}li(o,Zt,Or);break;case 5:li(o,Zt,Or);break;default:throw Error(n(329))}}}return Xt(o,rt()),o.callbackNode===l?zy.bind(null,o):null}function A0(o,s){var l=Ha;return o.current.memoizedState.isDehydrated&&(ci(o,s).flags|=256),o=pu(o,s),o!==2&&(s=Zt,Zt=l,s!==null&&k0(s)),o}function k0(o){Zt===null?Zt=o:Zt.push.apply(Zt,o)}function v8(o){for(var s=o;;){if(s.flags&16384){var l=s.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var h=0;h<l.length;h++){var v=l[h],x=v.getSnapshot;v=v.value;try{if(!qn(x(),v))return!1}catch{return!1}}}if(l=s.child,s.subtreeFlags&16384&&l!==null)l.return=s,s=l;else{if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function bo(o,s){for(s&=~b0,s&=~cu,o.suspendedLanes|=s,o.pingedLanes&=~s,o=o.expirationTimes;0<s;){var l=31-$n(s),h=1<<l;o[l]=-1,s&=~h}}function Uy(o){if((ze&6)!==0)throw Error(n(327));ys();var s=Cl(o,0);if((s&1)===0)return Xt(o,rt()),null;var l=pu(o,s);if(o.tag!==0&&l===2){var h=nf(o);h!==0&&(s=h,l=A0(o,h))}if(l===1)throw l=qa,ci(o,0),bo(o,s),Xt(o,rt()),l;if(l===6)throw Error(n(345));return o.finishedWork=o.current.alternate,o.finishedLanes=s,li(o,Zt,Or),Xt(o,rt()),null}function S0(o,s){var l=ze;ze|=1;try{return o(s)}finally{ze=l,ze===0&&(gs=rt()+500,Ul&&ho())}}function ai(o){vo!==null&&vo.tag===0&&(ze&6)===0&&ys();var s=ze;ze|=1;var l=_n.transition,h=He;try{if(_n.transition=null,He=1,o)return o()}finally{He=h,_n.transition=l,ze=s,(ze&6)===0&&ho()}}function I0(){pn=ms.current,Ke(ms)}function ci(o,s){o.finishedWork=null,o.finishedLanes=0;var l=o.timeoutHandle;if(l!==-1&&(o.timeoutHandle=-1,GC(l)),it!==null)for(l=it.return;l!==null;){var h=l;switch(Mf(h),h.tag){case 1:h=h.type.childContextTypes,h!=null&&Fl();break;case 3:fs(),Ke(Kt),Ke(jt),Kf();break;case 5:Qf(h);break;case 4:fs();break;case 13:Ke(Ze);break;case 19:Ke(Ze);break;case 10:Wf(h.type._context);break;case 22:case 23:I0()}l=l.return}if(gt=o,it=o=xo(o.current,null),Ct=pn=s,ft=0,qa=null,b0=cu=si=0,Zt=Ha=null,ri!==null){for(s=0;s<ri.length;s++)if(l=ri[s],h=l.interleaved,h!==null){l.interleaved=null;var v=h.next,x=l.pending;if(x!==null){var B=x.next;x.next=v,h.next=B}l.pending=h}ri=null}return o}function Wy(o,s){do{var l=it;try{if(Uf(),Jl.current=tu,Zl){for(var h=Xe.memoizedState;h!==null;){var v=h.queue;v!==null&&(v.pending=null),h=h.next}Zl=!1}if(ii=0,mt=dt=Xe=null,La=!1,Fa=0,w0.current=null,l===null||l.return===null){ft=1,qa=s,it=null;break}e:{var x=o,B=l.return,O=l,F=s;if(s=Ct,O.flags|=32768,F!==null&&typeof F=="object"&&typeof F.then=="function"){var K=F,ie=O,ae=ie.tag;if((ie.mode&1)===0&&(ae===0||ae===11||ae===15)){var re=ie.alternate;re?(ie.updateQueue=re.updateQueue,ie.memoizedState=re.memoizedState,ie.lanes=re.lanes):(ie.updateQueue=null,ie.memoizedState=null)}var pe=hy(B);if(pe!==null){pe.flags&=-257,py(pe,B,O,x,s),pe.mode&1&&fy(x,K,s),s=pe,F=K;var ye=s.updateQueue;if(ye===null){var ve=new Set;ve.add(F),s.updateQueue=ve}else ye.add(F);break e}else{if((s&1)===0){fy(x,K,s),j0();break e}F=Error(n(426))}}else if(Ye&&O.mode&1){var ot=hy(B);if(ot!==null){(ot.flags&65536)===0&&(ot.flags|=256),py(ot,B,O,x,s),Ff(hs(F,O));break e}}x=F=hs(F,O),ft!==4&&(ft=2),Ha===null?Ha=[x]:Ha.push(x),x=B;do{switch(x.tag){case 3:x.flags|=65536,s&=-s,x.lanes|=s;var q=uy(x,F,s);Dg(x,q);break e;case 1:O=F;var U=x.type,H=x.stateNode;if((x.flags&128)===0&&(typeof U.getDerivedStateFromError=="function"||H!==null&&typeof H.componentDidCatch=="function"&&(yo===null||!yo.has(H)))){x.flags|=65536,s&=-s,x.lanes|=s;var ue=dy(x,O,s);Dg(x,ue);break e}}x=x.return}while(x!==null)}Hy(l)}catch(xe){s=xe,it===l&&l!==null&&(it=l=l.return);continue}break}while(!0)}function $y(){var o=au.current;return au.current=tu,o===null?tu:o}function j0(){(ft===0||ft===3||ft===2)&&(ft=4),gt===null||(si&268435455)===0&&(cu&268435455)===0||bo(gt,Ct)}function pu(o,s){var l=ze;ze|=2;var h=$y();(gt!==o||Ct!==s)&&(Or=null,ci(o,s));do try{w8();break}catch(v){Wy(o,v)}while(!0);if(Uf(),ze=l,au.current=h,it!==null)throw Error(n(261));return gt=null,Ct=0,ft}function w8(){for(;it!==null;)qy(it)}function b8(){for(;it!==null&&!Hx();)qy(it)}function qy(o){var s=Gy(o.alternate,o,pn);o.memoizedProps=o.pendingProps,s===null?Hy(o):it=s,w0.current=null}function Hy(o){var s=o;do{var l=s.alternate;if(o=s.return,(s.flags&32768)===0){if(l=f8(l,s,pn),l!==null){it=l;return}}else{if(l=h8(l,s),l!==null){l.flags&=32767,it=l;return}if(o!==null)o.flags|=32768,o.subtreeFlags=0,o.deletions=null;else{ft=6,it=null;return}}if(s=s.sibling,s!==null){it=s;return}it=s=o}while(s!==null);ft===0&&(ft=5)}function li(o,s,l){var h=He,v=_n.transition;try{_n.transition=null,He=1,x8(o,s,l,h)}finally{_n.transition=v,He=h}return null}function x8(o,s,l,h){do ys();while(vo!==null);if((ze&6)!==0)throw Error(n(327));l=o.finishedWork;var v=o.finishedLanes;if(l===null)return null;if(o.finishedWork=null,o.finishedLanes=0,l===o.current)throw Error(n(177));o.callbackNode=null,o.callbackPriority=0;var x=l.lanes|l.childLanes;if(tC(o,x),o===gt&&(it=gt=null,Ct=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||uu||(uu=!0,Ky(vl,function(){return ys(),null})),x=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||x){x=_n.transition,_n.transition=null;var B=He;He=1;var O=ze;ze|=4,w0.current=null,m8(o,l),Ny(l,o),UC(jf),kl=!!If,jf=If=null,o.current=l,g8(l),Vx(),ze=O,He=B,_n.transition=x}else o.current=l;if(uu&&(uu=!1,vo=o,du=v),x=o.pendingLanes,x===0&&(yo=null),Kx(l.stateNode),Xt(o,rt()),s!==null)for(h=o.onRecoverableError,l=0;l<s.length;l++)v=s[l],h(v.value,{componentStack:v.stack,digest:v.digest});if(lu)throw lu=!1,o=C0,C0=null,o;return(du&1)!==0&&o.tag!==0&&ys(),x=o.pendingLanes,(x&1)!==0?o===E0?Va++:(Va=0,E0=o):Va=0,ho(),null}function ys(){if(vo!==null){var o=O1(du),s=_n.transition,l=He;try{if(_n.transition=null,He=16>o?16:o,vo===null)var h=!1;else{if(o=vo,vo=null,du=0,(ze&6)!==0)throw Error(n(331));var v=ze;for(ze|=4,ge=o.current;ge!==null;){var x=ge,B=x.child;if((ge.flags&16)!==0){var O=x.deletions;if(O!==null){for(var F=0;F<O.length;F++){var K=O[F];for(ge=K;ge!==null;){var ie=ge;switch(ie.tag){case 0:case 11:case 15:$a(8,ie,x)}var ae=ie.child;if(ae!==null)ae.return=ie,ge=ae;else for(;ge!==null;){ie=ge;var re=ie.sibling,pe=ie.return;if(_y(ie),ie===K){ge=null;break}if(re!==null){re.return=pe,ge=re;break}ge=pe}}}var ye=x.alternate;if(ye!==null){var ve=ye.child;if(ve!==null){ye.child=null;do{var ot=ve.sibling;ve.sibling=null,ve=ot}while(ve!==null)}}ge=x}}if((x.subtreeFlags&2064)!==0&&B!==null)B.return=x,ge=B;else e:for(;ge!==null;){if(x=ge,(x.flags&2048)!==0)switch(x.tag){case 0:case 11:case 15:$a(9,x,x.return)}var q=x.sibling;if(q!==null){q.return=x.return,ge=q;break e}ge=x.return}}var U=o.current;for(ge=U;ge!==null;){B=ge;var H=B.child;if((B.subtreeFlags&2064)!==0&&H!==null)H.return=B,ge=H;else e:for(B=U;ge!==null;){if(O=ge,(O.flags&2048)!==0)try{switch(O.tag){case 0:case 11:case 15:su(9,O)}}catch(xe){tt(O,O.return,xe)}if(O===B){ge=null;break e}var ue=O.sibling;if(ue!==null){ue.return=O.return,ge=ue;break e}ge=O.return}}if(ze=v,ho(),ar&&typeof ar.onPostCommitFiberRoot=="function")try{ar.onPostCommitFiberRoot(wl,o)}catch{}h=!0}return h}finally{He=l,_n.transition=s}}return!1}function Vy(o,s,l){s=hs(l,s),s=uy(o,s,1),o=mo(o,s,1),s=Lt(),o!==null&&(ga(o,1,s),Xt(o,s))}function tt(o,s,l){if(o.tag===3)Vy(o,o,l);else for(;s!==null;){if(s.tag===3){Vy(s,o,l);break}else if(s.tag===1){var h=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(yo===null||!yo.has(h))){o=hs(l,o),o=dy(s,o,1),s=mo(s,o,1),o=Lt(),s!==null&&(ga(s,1,o),Xt(s,o));break}}s=s.return}}function C8(o,s,l){var h=o.pingCache;h!==null&&h.delete(s),s=Lt(),o.pingedLanes|=o.suspendedLanes&l,gt===o&&(Ct&l)===l&&(ft===4||ft===3&&(Ct&130023424)===Ct&&500>rt()-x0?ci(o,0):b0|=l),Xt(o,s)}function Qy(o,s){s===0&&((o.mode&1)===0?s=1:(s=xl,xl<<=1,(xl&130023424)===0&&(xl=4194304)));var l=Lt();o=_r(o,s),o!==null&&(ga(o,s,l),Xt(o,l))}function E8(o){var s=o.memoizedState,l=0;s!==null&&(l=s.retryLane),Qy(o,l)}function A8(o,s){var l=0;switch(o.tag){case 13:var h=o.stateNode,v=o.memoizedState;v!==null&&(l=v.retryLane);break;case 19:h=o.stateNode;break;default:throw Error(n(314))}h!==null&&h.delete(s),Qy(o,l)}var Gy;Gy=function(o,s,l){if(o!==null)if(o.memoizedProps!==s.pendingProps||Kt.current)Jt=!0;else{if((o.lanes&l)===0&&(s.flags&128)===0)return Jt=!1,d8(o,s,l);Jt=(o.flags&131072)!==0}else Jt=!1,Ye&&(s.flags&1048576)!==0&&Ig(s,$l,s.index);switch(s.lanes=0,s.tag){case 2:var h=s.type;ou(o,s),o=s.pendingProps;var v=is(s,jt.current);ds(s,l),v=Zf(null,s,h,o,v,l);var x=Xf();return s.flags|=1,typeof v=="object"&&v!==null&&typeof v.render=="function"&&v.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,Yt(h)?(x=!0,zl(s)):x=!1,s.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,Hf(s),v.updater=nu,s.stateNode=v,v._reactInternals=s,i0(s,h,o,l),s=l0(null,s,h,!0,x,l)):(s.tag=0,Ye&&x&&Nf(s),Dt(null,s,v,l),s=s.child),s;case 16:h=s.elementType;e:{switch(ou(o,s),o=s.pendingProps,v=h._init,h=v(h._payload),s.type=h,v=s.tag=S8(h),o=Vn(h,o),v){case 0:s=c0(null,s,h,o,l);break e;case 1:s=by(null,s,h,o,l);break e;case 11:s=my(null,s,h,o,l);break e;case 14:s=gy(null,s,h,Vn(h.type,o),l);break e}throw Error(n(306,h,""))}return s;case 0:return h=s.type,v=s.pendingProps,v=s.elementType===h?v:Vn(h,v),c0(o,s,h,v,l);case 1:return h=s.type,v=s.pendingProps,v=s.elementType===h?v:Vn(h,v),by(o,s,h,v,l);case 3:e:{if(xy(s),o===null)throw Error(n(387));h=s.pendingProps,x=s.memoizedState,v=x.element,Mg(o,s),Kl(s,h,null,l);var B=s.memoizedState;if(h=B.element,x.isDehydrated)if(x={element:h,isDehydrated:!1,cache:B.cache,pendingSuspenseBoundaries:B.pendingSuspenseBoundaries,transitions:B.transitions},s.updateQueue.baseState=x,s.memoizedState=x,s.flags&256){v=hs(Error(n(423)),s),s=Cy(o,s,h,l,v);break e}else if(h!==v){v=hs(Error(n(424)),s),s=Cy(o,s,h,l,v);break e}else for(hn=lo(s.stateNode.containerInfo.firstChild),fn=s,Ye=!0,Hn=null,l=Rg(s,null,h,l),s.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(cs(),h===v){s=Tr(o,s,l);break e}Dt(o,s,h,l)}s=s.child}return s;case 5:return Fg(s),o===null&&Lf(s),h=s.type,v=s.pendingProps,x=o!==null?o.memoizedProps:null,B=v.children,Bf(h,v)?B=null:x!==null&&Bf(h,x)&&(s.flags|=32),wy(o,s),Dt(o,s,B,l),s.child;case 6:return o===null&&Lf(s),null;case 13:return Ey(o,s,l);case 4:return Vf(s,s.stateNode.containerInfo),h=s.pendingProps,o===null?s.child=ls(s,null,h,l):Dt(o,s,h,l),s.child;case 11:return h=s.type,v=s.pendingProps,v=s.elementType===h?v:Vn(h,v),my(o,s,h,v,l);case 7:return Dt(o,s,s.pendingProps,l),s.child;case 8:return Dt(o,s,s.pendingProps.children,l),s.child;case 12:return Dt(o,s,s.pendingProps.children,l),s.child;case 10:e:{if(h=s.type._context,v=s.pendingProps,x=s.memoizedProps,B=v.value,Qe(Vl,h._currentValue),h._currentValue=B,x!==null)if(qn(x.value,B)){if(x.children===v.children&&!Kt.current){s=Tr(o,s,l);break e}}else for(x=s.child,x!==null&&(x.return=s);x!==null;){var O=x.dependencies;if(O!==null){B=x.child;for(var F=O.firstContext;F!==null;){if(F.context===h){if(x.tag===1){F=Pr(-1,l&-l),F.tag=2;var K=x.updateQueue;if(K!==null){K=K.shared;var ie=K.pending;ie===null?F.next=F:(F.next=ie.next,ie.next=F),K.pending=F}}x.lanes|=l,F=x.alternate,F!==null&&(F.lanes|=l),$f(x.return,l,s),O.lanes|=l;break}F=F.next}}else if(x.tag===10)B=x.type===s.type?null:x.child;else if(x.tag===18){if(B=x.return,B===null)throw Error(n(341));B.lanes|=l,O=B.alternate,O!==null&&(O.lanes|=l),$f(B,l,s),B=x.sibling}else B=x.child;if(B!==null)B.return=x;else for(B=x;B!==null;){if(B===s){B=null;break}if(x=B.sibling,x!==null){x.return=B.return,B=x;break}B=B.return}x=B}Dt(o,s,v.children,l),s=s.child}return s;case 9:return v=s.type,h=s.pendingProps.children,ds(s,l),v=jn(v),h=h(v),s.flags|=1,Dt(o,s,h,l),s.child;case 14:return h=s.type,v=Vn(h,s.pendingProps),v=Vn(h.type,v),gy(o,s,h,v,l);case 15:return yy(o,s,s.type,s.pendingProps,l);case 17:return h=s.type,v=s.pendingProps,v=s.elementType===h?v:Vn(h,v),ou(o,s),s.tag=1,Yt(h)?(o=!0,zl(s)):o=!1,ds(s,l),cy(s,h,v),i0(s,h,v,l),l0(null,s,h,!0,o,l);case 19:return ky(o,s,l);case 22:return vy(o,s,l)}throw Error(n(156,s.tag))};function Ky(o,s){return j1(o,s)}function k8(o,s,l,h){this.tag=o,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pn(o,s,l,h){return new k8(o,s,l,h)}function B0(o){return o=o.prototype,!(!o||!o.isReactComponent)}function S8(o){if(typeof o=="function")return B0(o)?1:0;if(o!=null){if(o=o.$$typeof,o===Z)return 11;if(o===$)return 14}return 2}function xo(o,s){var l=o.alternate;return l===null?(l=Pn(o.tag,s,o.key,o.mode),l.elementType=o.elementType,l.type=o.type,l.stateNode=o.stateNode,l.alternate=o,o.alternate=l):(l.pendingProps=s,l.type=o.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=o.flags&14680064,l.childLanes=o.childLanes,l.lanes=o.lanes,l.child=o.child,l.memoizedProps=o.memoizedProps,l.memoizedState=o.memoizedState,l.updateQueue=o.updateQueue,s=o.dependencies,l.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},l.sibling=o.sibling,l.index=o.index,l.ref=o.ref,l}function mu(o,s,l,h,v,x){var B=2;if(h=o,typeof o=="function")B0(o)&&(B=1);else if(typeof o=="string")B=5;else e:switch(o){case _:return ui(l.children,v,x,s);case T:B=8,v|=8;break;case M:return o=Pn(12,l,s,v|2),o.elementType=M,o.lanes=x,o;case G:return o=Pn(13,l,s,v),o.elementType=G,o.lanes=x,o;case se:return o=Pn(19,l,s,v),o.elementType=se,o.lanes=x,o;case te:return gu(l,v,x,s);default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case V:B=10;break e;case Q:B=9;break e;case Z:B=11;break e;case $:B=14;break e;case X:B=16,h=null;break e}throw Error(n(130,o==null?o:typeof o,""))}return s=Pn(B,l,s,v),s.elementType=o,s.type=h,s.lanes=x,s}function ui(o,s,l,h){return o=Pn(7,o,h,s),o.lanes=l,o}function gu(o,s,l,h){return o=Pn(22,o,h,s),o.elementType=te,o.lanes=l,o.stateNode={isHidden:!1},o}function _0(o,s,l){return o=Pn(6,o,null,s),o.lanes=l,o}function P0(o,s,l){return s=Pn(4,o.children!==null?o.children:[],o.key,s),s.lanes=l,s.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},s}function I8(o,s,l,h,v){this.tag=s,this.containerInfo=o,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=rf(0),this.expirationTimes=rf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rf(0),this.identifierPrefix=h,this.onRecoverableError=v,this.mutableSourceEagerHydrationData=null}function T0(o,s,l,h,v,x,B,O,F){return o=new I8(o,s,l,O,F),s===1?(s=1,x===!0&&(s|=8)):s=0,x=Pn(3,null,null,s),o.current=x,x.stateNode=o,x.memoizedState={element:h,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},Hf(x),o}function j8(o,s,l){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:P,key:h==null?null:""+h,children:o,containerInfo:s,implementation:l}}function Yy(o){if(!o)return fo;o=o._reactInternals;e:{if(Zo(o)!==o||o.tag!==1)throw Error(n(170));var s=o;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(Yt(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(n(171))}if(o.tag===1){var l=o.type;if(Yt(l))return Ag(o,l,s)}return s}function Jy(o,s,l,h,v,x,B,O,F){return o=T0(l,h,!0,o,v,x,B,O,F),o.context=Yy(null),l=o.current,h=Lt(),v=wo(l),x=Pr(h,v),x.callback=s??null,mo(l,x,v),o.current.lanes=v,ga(o,v,h),Xt(o,h),o}function yu(o,s,l,h){var v=s.current,x=Lt(),B=wo(v);return l=Yy(l),s.context===null?s.context=l:s.pendingContext=l,s=Pr(x,B),s.payload={element:o},h=h===void 0?null:h,h!==null&&(s.callback=h),o=mo(v,s,B),o!==null&&(Kn(o,v,B,x),Gl(o,v,B)),B}function vu(o){if(o=o.current,!o.child)return null;switch(o.child.tag){case 5:return o.child.stateNode;default:return o.child.stateNode}}function Zy(o,s){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var l=o.retryLane;o.retryLane=l!==0&&l<s?l:s}}function O0(o,s){Zy(o,s),(o=o.alternate)&&Zy(o,s)}function B8(){return null}var Xy=typeof reportError=="function"?reportError:function(o){console.error(o)};function R0(o){this._internalRoot=o}wu.prototype.render=R0.prototype.render=function(o){var s=this._internalRoot;if(s===null)throw Error(n(409));yu(o,s,null,null)},wu.prototype.unmount=R0.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var s=o.containerInfo;ai(function(){yu(null,o,null,null)}),s[Sr]=null}};function wu(o){this._internalRoot=o}wu.prototype.unstable_scheduleHydration=function(o){if(o){var s=M1();o={blockedOn:null,target:o,priority:s};for(var l=0;l<so.length&&s!==0&&s<so[l].priority;l++);so.splice(l,0,o),l===0&&F1(o)}};function N0(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function bu(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11&&(o.nodeType!==8||o.nodeValue!==" react-mount-point-unstable "))}function ev(){}function _8(o,s,l,h,v){if(v){if(typeof h=="function"){var x=h;h=function(){var K=vu(B);x.call(K)}}var B=Jy(s,h,o,0,null,!1,!1,"",ev);return o._reactRootContainer=B,o[Sr]=B.current,_a(o.nodeType===8?o.parentNode:o),ai(),B}for(;v=o.lastChild;)o.removeChild(v);if(typeof h=="function"){var O=h;h=function(){var K=vu(F);O.call(K)}}var F=T0(o,0,!1,null,null,!1,!1,"",ev);return o._reactRootContainer=F,o[Sr]=F.current,_a(o.nodeType===8?o.parentNode:o),ai(function(){yu(s,F,l,h)}),F}function xu(o,s,l,h,v){var x=l._reactRootContainer;if(x){var B=x;if(typeof v=="function"){var O=v;v=function(){var F=vu(B);O.call(F)}}yu(s,B,o,v)}else B=_8(l,s,o,v,h);return vu(B)}R1=function(o){switch(o.tag){case 3:var s=o.stateNode;if(s.current.memoizedState.isDehydrated){var l=ma(s.pendingLanes);l!==0&&(of(s,l|1),Xt(s,rt()),(ze&6)===0&&(gs=rt()+500,ho()))}break;case 13:ai(function(){var h=_r(o,1);if(h!==null){var v=Lt();Kn(h,o,1,v)}}),O0(o,1)}},sf=function(o){if(o.tag===13){var s=_r(o,134217728);if(s!==null){var l=Lt();Kn(s,o,134217728,l)}O0(o,134217728)}},N1=function(o){if(o.tag===13){var s=wo(o),l=_r(o,s);if(l!==null){var h=Lt();Kn(l,o,s,h)}O0(o,s)}},M1=function(){return He},D1=function(o,s){var l=He;try{return He=o,s()}finally{He=l}},Jo=function(o,s,l){switch(s){case"input":if(ua(o,l),s=l.name,l.type==="radio"&&s!=null){for(l=o;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<l.length;s++){var h=l[s];if(h!==o&&h.form===o.form){var v=Ll(h);if(!v)throw Error(n(90));En(h),ua(h,v)}}}break;case"textarea":no(o,l);break;case"select":s=l.value,s!=null&&eo(o,!!l.multiple,s,!1)}},x1=S0,C1=ai;var P8={usingClientEntryPoint:!1,Events:[Oa,rs,Ll,w1,b1,S0]},Qa={findFiberByHostInstance:Xo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},T8={bundleType:Qa.bundleType,version:Qa.version,rendererPackageName:Qa.rendererPackageName,rendererConfig:Qa.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:k.ReactCurrentDispatcher,findHostInstanceByFiber:function(o){return o=S1(o),o===null?null:o.stateNode},findFiberByHostInstance:Qa.findFiberByHostInstance||B8,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Cu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Cu.isDisabled&&Cu.supportsFiber)try{wl=Cu.inject(T8),ar=Cu}catch{}}return en.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P8,en.createPortal=function(o,s){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!N0(s))throw Error(n(200));return j8(o,s,null,l)},en.createRoot=function(o,s){if(!N0(o))throw Error(n(299));var l=!1,h="",v=Xy;return s!=null&&(s.unstable_strictMode===!0&&(l=!0),s.identifierPrefix!==void 0&&(h=s.identifierPrefix),s.onRecoverableError!==void 0&&(v=s.onRecoverableError)),s=T0(o,1,!1,null,null,l,!1,h,v),o[Sr]=s.current,_a(o.nodeType===8?o.parentNode:o),new R0(s)},en.findDOMNode=function(o){if(o==null)return null;if(o.nodeType===1)return o;var s=o._reactInternals;if(s===void 0)throw typeof o.render=="function"?Error(n(188)):(o=Object.keys(o).join(","),Error(n(268,o)));return o=S1(s),o=o===null?null:o.stateNode,o},en.flushSync=function(o){return ai(o)},en.hydrate=function(o,s,l){if(!bu(s))throw Error(n(200));return xu(null,o,s,!0,l)},en.hydrateRoot=function(o,s,l){if(!N0(o))throw Error(n(405));var h=l!=null&&l.hydratedSources||null,v=!1,x="",B=Xy;if(l!=null&&(l.unstable_strictMode===!0&&(v=!0),l.identifierPrefix!==void 0&&(x=l.identifierPrefix),l.onRecoverableError!==void 0&&(B=l.onRecoverableError)),s=Jy(s,null,o,1,l??null,v,!1,x,B),o[Sr]=s.current,_a(o),h)for(o=0;o<h.length;o++)l=h[o],v=l._getVersion,v=v(l._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[l,v]:s.mutableSourceEagerHydrationData.push(l,v);return new wu(s)},en.render=function(o,s,l){if(!bu(s))throw Error(n(200));return xu(null,o,s,!1,l)},en.unmountComponentAtNode=function(o){if(!bu(o))throw Error(n(40));return o._reactRootContainer?(ai(function(){xu(null,null,o,!1,function(){o._reactRootContainer=null,o[Sr]=null})}),!0):!1},en.unstable_batchedUpdates=S0,en.unstable_renderSubtreeIntoContainer=function(o,s,l,h){if(!bu(l))throw Error(n(200));if(o==null||o._reactInternals===void 0)throw Error(n(38));return xu(o,s,l,!1,h)},en.version="18.3.1-next-f1338f8080-20240426",en}var lv;function e6(){if(lv)return F0.exports;lv=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),F0.exports=U8(),F0.exports}var uv;function W8(){if(uv)return Au;uv=1;var e=e6();return Au.createRoot=e.createRoot,Au.hydrateRoot=e.hydrateRoot,Au}var $8=W8(),N=Qc();const C=Xb(N),Vs=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{name:"addr",type:"address"}],name:"getEthBalance",outputs:[{name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getCurrentBlockTimestamp",outputs:[{internalType:"uint256",name:"timestamp",type:"uint256"}],stateMutability:"view",type:"function"}],Fh=[{name:"query",type:"function",stateMutability:"view",inputs:[{type:"tuple[]",name:"queries",components:[{type:"address",name:"sender"},{type:"string[]",name:"urls"},{type:"bytes",name:"data"}]}],outputs:[{type:"bool[]",name:"failures"},{type:"bytes[]",name:"responses"}]},{name:"HttpError",type:"error",inputs:[{type:"uint16",name:"status"},{type:"string",name:"message"}]}],t6=[{inputs:[{name:"dns",type:"bytes"}],name:"DNSDecodingFailed",type:"error"},{inputs:[{name:"ens",type:"string"}],name:"DNSEncodingFailed",type:"error"},{inputs:[],name:"EmptyAddress",type:"error"},{inputs:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"HttpError",type:"error"},{inputs:[],name:"InvalidBatchGatewayResponse",type:"error"},{inputs:[{name:"errorData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{name:"name",type:"bytes"},{name:"resolver",type:"address"}],name:"ResolverNotContract",type:"error"},{inputs:[{name:"name",type:"bytes"}],name:"ResolverNotFound",type:"error"},{inputs:[{name:"primary",type:"string"},{name:"primaryAddress",type:"bytes"}],name:"ReverseAddressMismatch",type:"error"},{inputs:[{internalType:"bytes4",name:"selector",type:"bytes4"}],name:"UnsupportedResolverProfile",type:"error"}],n6=[...t6,{name:"resolveWithGateways",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],q8=[...t6,{name:"reverseWithGateways",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"uint256",name:"coinType"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolver"},{type:"address",name:"reverseResolver"}]}],dv=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],fv=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],r6=[{name:"isValidSignature",type:"function",stateMutability:"view",inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],outputs:[{name:"",type:"bytes4"}]}],hv=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}];function er(e,{includeName:t=!1}={}){if(e.type!=="function"&&e.type!=="event"&&e.type!=="error")throw new oE(e.type);return`${e.name}(${wd(e.inputs,{includeName:t})})`}function wd(e,{includeName:t=!1}={}){return e?e.map(n=>H8(n,{includeName:t})).join(t?", ":","):""}function H8(e,{includeName:t}){return e.type.startsWith("tuple")?`(${wd(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")}function xr(e,{strict:t=!0}={}){return!e||typeof e!="string"?!1:t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")}function Je(e){return xr(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}const o6="2.47.12";let Ka={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:n})=>t?`${e??"https://viem.sh"}${t}${n?`#${n}`:""}`:void 0,version:`viem@${o6}`},ne=class zh extends Error{constructor(t,n={}){var u;const r=(()=>{var d;return n.cause instanceof zh?n.cause.details:(d=n.cause)!=null&&d.message?n.cause.message:n.details})(),i=n.cause instanceof zh&&n.cause.docsPath||n.docsPath,a=(u=Ka.getDocsUrl)==null?void 0:u.call(Ka,{...n,docsPath:i}),c=[t||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...a?[`Docs: ${a}`]:[],...r?[`Details: ${r}`]:[],...Ka.version?[`Version: ${Ka.version}`]:[]].join(`
42
+ `);super(c,n.cause?{cause:n.cause}:void 0),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,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=r,this.docsPath=i,this.metaMessages=n.metaMessages,this.name=n.name??this.name,this.shortMessage=t,this.version=o6}walk(t){return i6(this,t)}};function i6(e,t){return t!=null&&t(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause!==void 0?i6(e.cause,t):t?null:e}class V8 extends ne{constructor({docsPath:t}){super(["A constructor was not found on the ABI.","Make sure you are using the correct ABI and that the constructor exists on it."].join(`
43
+ `),{docsPath:t,name:"AbiConstructorNotFoundError"})}}class pv extends ne{constructor({docsPath:t}){super(["Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.","Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."].join(`
44
+ `),{docsPath:t,name:"AbiConstructorParamsNotFoundError"})}}class s6 extends ne{constructor({data:t,params:n,size:r}){super([`Data size of ${r} bytes is too small for given parameters.`].join(`
45
+ `),{metaMessages:[`Params: (${wd(n,{includeName:!0})})`,`Data: ${t} (${r} bytes)`],name:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t,this.params=n,this.size=r}}class Gc extends ne{constructor({cause:t}={}){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError",cause:t})}}class Q8 extends ne{constructor({expectedLength:t,givenLength:n,type:r}){super([`ABI encoding array length mismatch for type ${r}.`,`Expected length: ${t}`,`Given length: ${n}`].join(`
46
+ `),{name:"AbiEncodingArrayLengthMismatchError"})}}class G8 extends ne{constructor({expectedSize:t,value:n}){super(`Size of bytes "${n}" (bytes${Je(n)}) does not match expected size (bytes${t}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class K8 extends ne{constructor({expectedLength:t,givenLength:n}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${t}`,`Given length (values): ${n}`].join(`
47
+ `),{name:"AbiEncodingLengthMismatchError"})}}class Y8 extends ne{constructor(t,{docsPath:n}){super([`Arguments (\`args\`) were provided to "${t}", but "${t}" on the ABI does not contain any parameters (\`inputs\`).`,"Cannot encode error result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the inputs exist on it."].join(`
48
+ `),{docsPath:n,name:"AbiErrorInputsNotFoundError"})}}class mv extends ne{constructor(t,{docsPath:n}={}){super([`Error ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it."].join(`
49
+ `),{docsPath:n,name:"AbiErrorNotFoundError"})}}class a6 extends ne{constructor(t,{docsPath:n,cause:r}){super([`Encoded error signature "${t}" not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://4byte.sourcify.dev/?q=${t}.`].join(`
50
+ `),{docsPath:n,name:"AbiErrorSignatureNotFoundError",cause:r}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=t}}class J8 extends ne{constructor({docsPath:t}){super("Cannot extract event signature from empty topics.",{docsPath:t,name:"AbiEventSignatureEmptyTopicsError"})}}class Z8 extends ne{constructor(t,{docsPath:n}){super([`Encoded event signature "${t}" not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it.",`You can look up the signature here: https://4byte.sourcify.dev/?q=${t}.`].join(`
51
+ `),{docsPath:n,name:"AbiEventSignatureNotFoundError"})}}class gv extends ne{constructor(t,{docsPath:n}={}){super([`Event ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it."].join(`
52
+ `),{docsPath:n,name:"AbiEventNotFoundError"})}}class Qs extends ne{constructor(t,{docsPath:n}={}){super([`Function ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join(`
53
+ `),{docsPath:n,name:"AbiFunctionNotFoundError"})}}class c6 extends ne{constructor(t,{docsPath:n}){super([`Function "${t}" does not contain any \`outputs\` on ABI.`,"Cannot decode function result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the function exists on it."].join(`
54
+ `),{docsPath:n,name:"AbiFunctionOutputsNotFoundError"})}}class X8 extends ne{constructor(t,{docsPath:n}){super([`Encoded function signature "${t}" not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it.",`You can look up the signature here: https://4byte.sourcify.dev/?q=${t}.`].join(`
55
+ `),{docsPath:n,name:"AbiFunctionSignatureNotFoundError"})}}class eE extends ne{constructor(t,n){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${t.type}\` in \`${er(t.abiItem)}\`, and`,`\`${n.type}\` in \`${er(n.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}let tE=class extends ne{constructor({expectedSize:t,givenSize:n}){super(`Expected bytes${t}, got bytes${n}.`,{name:"BytesSizeMismatchError"})}};class Zu extends ne{constructor({abiItem:t,data:n,params:r,size:i}){super([`Data size of ${i} bytes is too small for non-indexed event parameters.`].join(`
56
+ `),{metaMessages:[`Params: (${wd(r,{includeName:!0})})`,`Data: ${n} (${i} bytes)`],name:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t,this.data=n,this.params=r,this.size=i}}class Gp extends ne{constructor({abiItem:t,param:n}){super([`Expected a topic for indexed event parameter${n.name?` "${n.name}"`:""} on event "${er(t,{includeName:!0})}".`].join(`
57
+ `),{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t}}class nE extends ne{constructor(t,{docsPath:n}){super([`Type "${t}" is not a valid encoding type.`,"Please provide a valid ABI type."].join(`
58
+ `),{docsPath:n,name:"InvalidAbiEncodingType"})}}class rE extends ne{constructor(t,{docsPath:n}){super([`Type "${t}" is not a valid decoding type.`,"Please provide a valid ABI type."].join(`
59
+ `),{docsPath:n,name:"InvalidAbiDecodingType"})}}let l6=class extends ne{constructor(t){super([`Value "${t}" is not a valid array.`].join(`
60
+ `),{name:"InvalidArrayError"})}};class oE extends ne{constructor(t){super([`"${t}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join(`
61
+ `),{name:"InvalidDefinitionTypeError"})}}class HN extends ne{constructor(t){super(`Type "${t}" is not supported for packed encoding.`,{name:"UnsupportedPackedAbiType"})}}let Vt=class extends ne{constructor({address:t}){super(`Address "${t}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}},u6=class extends ne{constructor({offset:t,position:n,size:r}){super(`Slice ${n==="start"?"starting":"ending"} at offset "${t}" is out-of-bounds (size: ${r}).`,{name:"SliceOffsetOutOfBoundsError"})}},d6=class extends ne{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${t}) exceeds padding size (${n}).`,{name:"SizeExceedsPaddingSizeError"})}};class yv extends ne{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} is expected to be ${n} ${r} long, but is ${t} ${r} long.`,{name:"InvalidBytesLengthError"})}}function na(e,{dir:t,size:n=32}={}){return typeof e=="string"?Fo(e,{dir:t,size:n}):iE(e,{dir:t,size:n})}function Fo(e,{dir:t,size:n=32}={}){if(n===null)return e;const r=e.replace("0x","");if(r.length>n*2)throw new d6({size:Math.ceil(r.length/2),targetSize:n,type:"hex"});return`0x${r[t==="right"?"padEnd":"padStart"](n*2,"0")}`}function iE(e,{dir:t,size:n=32}={}){if(n===null)return e;if(e.length>n)throw new d6({size:e.length,targetSize:n,type:"bytes"});const r=new Uint8Array(n);for(let i=0;i<n;i++){const a=t==="right";r[a?i:n-i-1]=e[a?i:e.length-i-1]}return r}let Kp=class extends ne{constructor({max:t,min:n,signed:r,size:i,value:a}){super(`Number "${a}" is not in safe ${i?`${i*8}-bit ${r?"signed":"unsigned"} `:""}integer range ${t?`(${n} to ${t})`:`(above ${n})`}`,{name:"IntegerOutOfRangeError"})}},sE=class extends ne{constructor(t){super(`Bytes value "${t}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}};class aE extends ne{constructor(t){super(`Hex value "${t}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}}let cE=class extends ne{constructor({givenSize:t,maxSize:n}){super(`Size cannot exceed ${n} bytes. Given size: ${t} bytes.`,{name:"SizeOverflowError"})}};function vn(e,{dir:t="left"}={}){let n=typeof e=="string"?e.replace("0x",""):e,r=0;for(let i=0;i<n.length-1&&n[t==="left"?i:n.length-i-1].toString()==="0";i++)r++;return n=t==="left"?n.slice(r):n.slice(0,n.length-r),typeof e=="string"?(n.length===1&&t==="right"&&(n=`${n}0`),`0x${n.length%2===1?`0${n}`:n}`):n}function Fn(e,{size:t}){if(Je(e)>t)throw new cE({givenSize:Je(e),maxSize:t})}function $t(e,t={}){const{signed:n}=t;t.size&&Fn(e,{size:t.size});const r=BigInt(e);if(!n)return r;const i=(e.length-2)/2,a=(1n<<BigInt(i)*8n-1n)-1n;return r<=a?r:r-BigInt(`0x${"f".padStart(i*2,"f")}`)-1n}function lE(e,t={}){let n=e;if(t.size&&(Fn(n,{size:t.size}),n=vn(n)),vn(n)==="0x00")return!1;if(vn(n)==="0x01")return!0;throw new aE(n)}function tr(e,t={}){const n=$t(e,t),r=Number(n);if(!Number.isSafeInteger(r))throw new Kp({max:`${Number.MAX_SAFE_INTEGER}`,min:`${Number.MIN_SAFE_INTEGER}`,signed:t.signed,size:t.size,value:`${n}n`});return r}function f6(e,t={}){let n=nr(e);return t.size&&(Fn(n,{size:t.size}),n=vn(n,{dir:"right"})),new TextDecoder().decode(n)}const uE=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function sn(e,t={}){return typeof e=="number"||typeof e=="bigint"?ce(e,t):typeof e=="string"?Gs(e,t):typeof e=="boolean"?h6(e,t):at(e,t)}function h6(e,t={}){const n=`0x${Number(e)}`;return typeof t.size=="number"?(Fn(n,{size:t.size}),na(n,{size:t.size})):n}function at(e,t={}){let n="";for(let i=0;i<e.length;i++)n+=uE[e[i]];const r=`0x${n}`;return typeof t.size=="number"?(Fn(r,{size:t.size}),na(r,{dir:"right",size:t.size})):r}function ce(e,t={}){const{signed:n,size:r}=t,i=BigInt(e);let a;r?n?a=(1n<<BigInt(r)*8n-1n)-1n:a=2n**(BigInt(r)*8n)-1n:typeof e=="number"&&(a=BigInt(Number.MAX_SAFE_INTEGER));const c=typeof a=="bigint"&&n?-a-1n:0;if(a&&i>a||i<c){const d=typeof e=="bigint"?"n":"";throw new Kp({max:a?`${a}${d}`:void 0,min:`${c}${d}`,signed:n,size:r,value:`${e}${d}`})}const u=`0x${(n&&i<0?(1n<<BigInt(r*8))+BigInt(i):i).toString(16)}`;return r?na(u,{size:r}):u}const dE=new TextEncoder;function Gs(e,t={}){const n=dE.encode(e);return at(n,t)}const fE=new TextEncoder;function ra(e,t={}){return typeof e=="number"||typeof e=="bigint"?pE(e,t):typeof e=="boolean"?hE(e,t):xr(e)?nr(e,t):Bi(e,t)}function hE(e,t={}){const n=new Uint8Array(1);return n[0]=Number(e),typeof t.size=="number"?(Fn(n,{size:t.size}),na(n,{size:t.size})):n}const Rr={zero:48,nine:57,A:65,F:70,a:97,f:102};function vv(e){if(e>=Rr.zero&&e<=Rr.nine)return e-Rr.zero;if(e>=Rr.A&&e<=Rr.F)return e-(Rr.A-10);if(e>=Rr.a&&e<=Rr.f)return e-(Rr.a-10)}function nr(e,t={}){let n=e;t.size&&(Fn(n,{size:t.size}),n=na(n,{dir:"right",size:t.size}));let r=n.slice(2);r.length%2&&(r=`0${r}`);const i=r.length/2,a=new Uint8Array(i);for(let c=0,u=0;c<i;c++){const d=vv(r.charCodeAt(u++)),f=vv(r.charCodeAt(u++));if(d===void 0||f===void 0)throw new ne(`Invalid byte sequence ("${r[u-2]}${r[u-1]}" in "${r}").`);a[c]=d*16+f}return a}function pE(e,t){const n=ce(e,t);return nr(n)}function Bi(e,t={}){const n=fE.encode(e);return typeof t.size=="number"?(Fn(n,{size:t.size}),na(n,{dir:"right",size:t.size})):n}const ku=BigInt(2**32-1),wv=BigInt(32);function mE(e,t=!1){return t?{h:Number(e&ku),l:Number(e>>wv&ku)}:{h:Number(e>>wv&ku)|0,l:Number(e&ku)|0}}function p6(e,t=!1){const n=e.length;let r=new Uint32Array(n),i=new Uint32Array(n);for(let a=0;a<n;a++){const{h:c,l:u}=mE(e[a],t);[r[a],i[a]]=[c,u]}return[r,i]}const bv=(e,t,n)=>e>>>n,xv=(e,t,n)=>e<<32-n|t>>>n,vs=(e,t,n)=>e>>>n|t<<32-n,ws=(e,t,n)=>e<<32-n|t>>>n,Su=(e,t,n)=>e<<64-n|t>>>n-32,Iu=(e,t,n)=>e>>>n-32|t<<64-n,gE=(e,t,n)=>e<<n|t>>>32-n,yE=(e,t,n)=>t<<n|e>>>32-n,vE=(e,t,n)=>t<<n-32|e>>>64-n,wE=(e,t,n)=>e<<n-32|t>>>64-n;function Nr(e,t,n,r){const i=(t>>>0)+(r>>>0);return{h:e+n+(i/2**32|0)|0,l:i|0}}const bE=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0),xE=(e,t,n,r)=>t+n+r+(e/2**32|0)|0,CE=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0),EE=(e,t,n,r,i)=>t+n+r+i+(e/2**32|0)|0,AE=(e,t,n,r,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(i>>>0),kE=(e,t,n,r,i,a)=>t+n+r+i+a+(e/2**32|0)|0,bs=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function SE(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function cc(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function Uo(e,...t){if(!SE(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function IE(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");cc(e.outputLen),cc(e.blockLen)}function Ks(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function m6(e,t){Uo(e);const n=t.outputLen;if(e.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}function jE(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function Wo(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function W0(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function fr(e,t){return e<<32-t|e>>>t}const BE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function _E(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function PE(e){for(let t=0;t<e.length;t++)e[t]=_E(e[t]);return e}const Cv=BE?e=>e:PE,g6=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",TE=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function ZN(e){if(Uo(e),g6)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=TE[e[n]];return t}const Mr={_0:48,_9:57,A:65,F:70,a:97,f:102};function Ev(e){if(e>=Mr._0&&e<=Mr._9)return e-Mr._0;if(e>=Mr.A&&e<=Mr.F)return e-(Mr.A-10);if(e>=Mr.a&&e<=Mr.f)return e-(Mr.a-10)}function XN(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(g6)return Uint8Array.fromHex(e);const t=e.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const r=new Uint8Array(n);for(let i=0,a=0;i<n;i++,a+=2){const c=Ev(e.charCodeAt(a)),u=Ev(e.charCodeAt(a+1));if(c===void 0||u===void 0){const d=e[a]+e[a+1];throw new Error('hex string expected, got non-hex character "'+d+'" at index '+a)}r[i]=c*16+u}return r}function OE(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function bd(e){return typeof e=="string"&&(e=OE(e)),Uo(e),e}function RE(...e){let t=0;for(let r=0;r<e.length;r++){const i=e[r];Uo(i),t+=i.length}const n=new Uint8Array(t);for(let r=0,i=0;r<e.length;r++){const a=e[r];n.set(a,i),i+=a.length}return n}class Yp{}function xd(e){const t=r=>e().update(bd(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function NE(e=32){if(bs&&typeof bs.getRandomValues=="function")return bs.getRandomValues(new Uint8Array(e));if(bs&&typeof bs.randomBytes=="function")return Uint8Array.from(bs.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}const ME=BigInt(0),Ya=BigInt(1),DE=BigInt(2),LE=BigInt(7),FE=BigInt(256),zE=BigInt(113),y6=[],v6=[],w6=[];for(let e=0,t=Ya,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],y6.push(2*(5*r+n)),v6.push((e+1)*(e+2)/2%64);let i=ME;for(let a=0;a<7;a++)t=(t<<Ya^(t>>LE)*zE)%FE,t&DE&&(i^=Ya<<(Ya<<BigInt(a))-Ya);w6.push(i)}const b6=p6(w6,!0),UE=b6[0],WE=b6[1],Av=(e,t,n)=>n>32?vE(e,t,n):gE(e,t,n),kv=(e,t,n)=>n>32?wE(e,t,n):yE(e,t,n);function $E(e,t=24){const n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let c=0;c<10;c++)n[c]=e[c]^e[c+10]^e[c+20]^e[c+30]^e[c+40];for(let c=0;c<10;c+=2){const u=(c+8)%10,d=(c+2)%10,f=n[d],p=n[d+1],g=Av(f,p,1)^n[u],m=kv(f,p,1)^n[u+1];for(let y=0;y<50;y+=10)e[c+y]^=g,e[c+y+1]^=m}let i=e[2],a=e[3];for(let c=0;c<24;c++){const u=v6[c],d=Av(i,a,u),f=kv(i,a,u),p=y6[c];i=e[p],a=e[p+1],e[p]=d,e[p+1]=f}for(let c=0;c<50;c+=10){for(let u=0;u<10;u++)n[u]=e[c+u];for(let u=0;u<10;u++)e[c+u]^=~n[(u+2)%10]&n[(u+4)%10]}e[0]^=UE[r],e[1]^=WE[r]}Wo(n)}class Jp extends Yp{constructor(t,n,r,i=!1,a=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=t,this.suffix=n,this.outputLen=r,this.enableXOF=i,this.rounds=a,cc(r),!(0<t&&t<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=jE(this.state)}clone(){return this._cloneInto()}keccak(){Cv(this.state32),$E(this.state32,this.rounds),Cv(this.state32),this.posOut=0,this.pos=0}update(t){Ks(this),t=bd(t),Uo(t);const{blockLen:n,state:r}=this,i=t.length;for(let a=0;a<i;){const c=Math.min(n-this.pos,i-a);for(let u=0;u<c;u++)r[this.pos++]^=t[a++];this.pos===n&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:t,suffix:n,pos:r,blockLen:i}=this;t[r]^=n,(n&128)!==0&&r===i-1&&this.keccak(),t[i-1]^=128,this.keccak()}writeInto(t){Ks(this,!1),Uo(t),this.finish();const n=this.state,{blockLen:r}=this;for(let i=0,a=t.length;i<a;){this.posOut>=r&&this.keccak();const c=Math.min(r-this.posOut,a-i);t.set(n.subarray(this.posOut,this.posOut+c),i),this.posOut+=c,i+=c}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return cc(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(m6(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,Wo(this.state)}_cloneInto(t){const{blockLen:n,suffix:r,outputLen:i,rounds:a,enableXOF:c}=this;return t||(t=new Jp(n,r,i,c,a)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=a,t.suffix=r,t.outputLen=i,t.enableXOF=c,t.destroyed=this.destroyed,t}}const qE=(e,t,n)=>xd(()=>new Jp(t,e,n)),x6=qE(1,136,256/8);function Et(e,t){const n=t||"hex",r=x6(xr(e,{strict:!1})?ra(e):e);return n==="bytes"?r:sn(r)}let Kc=class extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){const n=super.get(t);return super.has(t)&&(super.delete(t),super.set(t,n)),n}set(t,n){if(super.has(t)&&super.delete(t),super.set(t,n),this.maxSize&&this.size>this.maxSize){const r=super.keys().next().value;r!==void 0&&super.delete(r)}return this}};const HE=/^0x[a-fA-F0-9]{40}$/,$0=new Kc(8192);function ct(e,t){const{strict:n=!0}=t??{},r=`${e}.${n}`;if($0.has(r))return $0.get(r);const i=HE.test(e)?e.toLowerCase()===e?!0:n?Cd(e)===e:!0:!1;return $0.set(r,i),i}const q0=new Kc(8192);function Cd(e,t){if(q0.has(`${e}.${t}`))return q0.get(`${e}.${t}`);const n=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),r=Et(Bi(n),"bytes"),i=(t?n.substring(`${t}0x`.length):n).split("");for(let c=0;c<40;c+=2)r[c>>1]>>4>=8&&i[c]&&(i[c]=i[c].toUpperCase()),(r[c>>1]&15)>=8&&i[c+1]&&(i[c+1]=i[c+1].toUpperCase());const a=`0x${i.join("")}`;return q0.set(`${e}.${t}`,a),a}function pt(e,t){if(!ct(e,{strict:!1}))throw new Vt({address:e});return Cd(e,t)}let Sv=class extends ne{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`,{name:"NegativeOffsetError"})}},C6=class extends ne{constructor({length:t,position:n}){super(`Position \`${n}\` is out of bounds (\`0 < position < ${t}\`).`,{name:"PositionOutOfBoundsError"})}},VE=class extends ne{constructor({count:t,limit:n}){super(`Recursive read limit of \`${n}\` exceeded (recursive read count: \`${t}\`).`,{name:"RecursiveReadLimitExceededError"})}};const QE={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new VE({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new C6({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new Sv({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new Sv({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,e&255),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();const n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function Zp(e,{recursiveReadLimit:t=8192}={}){const n=Object.create(QE);return n.bytes=e,n.dataView=new DataView(e.buffer??e,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}function $o(e,t,n,{strict:r}={}){return xr(e,{strict:!1})?GE(e,t,n,{strict:r}):k6(e,t,n,{strict:r})}function E6(e,t){if(typeof t=="number"&&t>0&&t>Je(e)-1)throw new u6({offset:t,position:"start",size:Je(e)})}function A6(e,t,n){if(typeof t=="number"&&typeof n=="number"&&Je(e)!==n-t)throw new u6({offset:n,position:"end",size:Je(e)})}function k6(e,t,n,{strict:r}={}){E6(e,t);const i=e.slice(t,n);return r&&A6(i,t,n),i}function GE(e,t,n,{strict:r}={}){E6(e,t);const i=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return r&&A6(i,t,n),i}function KE(e,t={}){typeof t.size<"u"&&Fn(e,{size:t.size});const n=at(e,t);return $t(n,t)}function YE(e,t={}){let n=e;if(typeof t.size<"u"&&(Fn(n,{size:t.size}),n=vn(n)),n.length>1||n[0]>1)throw new sE(n);return!!n[0]}function Qr(e,t={}){typeof t.size<"u"&&Fn(e,{size:t.size});const n=at(e,t);return tr(n,t)}function JE(e,t={}){let n=e;return typeof t.size<"u"&&(Fn(n,{size:t.size}),n=vn(n,{dir:"right"})),new TextDecoder().decode(n)}function Dn(e){return typeof e[0]=="string"?ir(e):ZE(e)}function ZE(e){let t=0;for(const i of e)t+=i.length;const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}function ir(e){return`0x${e.reduce((t,n)=>t+n.replace("0x",""),"")}`}const oM=/^(.*)\[([0-9]*)\]$/,XE=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,S6=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function zi(e,t){if(e.length!==t.length)throw new K8({expectedLength:e.length,givenLength:t.length});const n=eA({params:e,values:t}),r=em(n);return r.length===0?"0x":r}function eA({params:e,values:t}){const n=[];for(let r=0;r<e.length;r++)n.push(Xp({param:e[r],value:t[r]}));return n}function Xp({param:e,value:t}){const n=tm(e.type);if(n){const[r,i]=n;return nA(t,{length:r,param:{...e,type:i}})}if(e.type==="tuple")return aA(t,{param:e});if(e.type==="address")return tA(t);if(e.type==="bool")return oA(t);if(e.type.startsWith("uint")||e.type.startsWith("int")){const r=e.type.startsWith("int"),[,,i="256"]=S6.exec(e.type)??[];return iA(t,{signed:r,size:Number(i)})}if(e.type.startsWith("bytes"))return rA(t,{param:e});if(e.type==="string")return sA(t);throw new nE(e.type,{docsPath:"/docs/contract/encodeAbiParameters"})}function em(e){let t=0;for(let a=0;a<e.length;a++){const{dynamic:c,encoded:u}=e[a];c?t+=32:t+=Je(u)}const n=[],r=[];let i=0;for(let a=0;a<e.length;a++){const{dynamic:c,encoded:u}=e[a];c?(n.push(ce(t+i,{size:32})),r.push(u),i+=Je(u)):n.push(u)}return Dn([...n,...r])}function tA(e){if(!ct(e))throw new Vt({address:e});return{dynamic:!1,encoded:Fo(e.toLowerCase())}}function nA(e,{length:t,param:n}){const r=t===null;if(!Array.isArray(e))throw new l6(e);if(!r&&e.length!==t)throw new Q8({expectedLength:t,givenLength:e.length,type:`${n.type}[${t}]`});let i=!1;const a=[];for(let c=0;c<e.length;c++){const u=Xp({param:n,value:e[c]});u.dynamic&&(i=!0),a.push(u)}if(r||i){const c=em(a);if(r){const u=ce(a.length,{size:32});return{dynamic:!0,encoded:a.length>0?Dn([u,c]):u}}if(i)return{dynamic:!0,encoded:c}}return{dynamic:!1,encoded:Dn(a.map(({encoded:c})=>c))}}function rA(e,{param:t}){const[,n]=t.type.split("bytes"),r=Je(e);if(!n){let i=e;return r%32!==0&&(i=Fo(i,{dir:"right",size:Math.ceil((e.length-2)/2/32)*32})),{dynamic:!0,encoded:Dn([Fo(ce(r,{size:32})),i])}}if(r!==Number.parseInt(n,10))throw new G8({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:Fo(e,{dir:"right"})}}function oA(e){if(typeof e!="boolean")throw new ne(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:Fo(h6(e))}}function iA(e,{signed:t,size:n=256}){if(typeof n=="number"){const r=2n**(BigInt(n)-(t?1n:0n))-1n,i=t?-r-1n:0n;if(e>r||e<i)throw new Kp({max:r.toString(),min:i.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:ce(e,{size:32,signed:t})}}function sA(e){const t=Gs(e),n=Math.ceil(Je(t)/32),r=[];for(let i=0;i<n;i++)r.push(Fo($o(t,i*32,(i+1)*32),{dir:"right"}));return{dynamic:!0,encoded:Dn([Fo(ce(Je(t),{size:32})),...r])}}function aA(e,{param:t}){let n=!1;const r=[];for(let i=0;i<t.components.length;i++){const a=t.components[i],c=Array.isArray(e)?i:a.name,u=Xp({param:a,value:e[c]});r.push(u),u.dynamic&&(n=!0)}return{dynamic:n,encoded:n?em(r):Dn(r.map(({encoded:i})=>i))}}function tm(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function Yc(e,t){const n=typeof t=="string"?nr(t):t,r=Zp(n);if(Je(n)===0&&e.length>0)throw new Gc;if(Je(t)&&Je(t)<32)throw new s6({data:typeof t=="string"?t:at(t),params:e,size:Je(t)});let i=0;const a=[];for(let c=0;c<e.length;++c){const u=e[c];r.setPosition(i);const[d,f]=Bs(r,u,{staticPosition:0});i+=f,a.push(d)}return a}function Bs(e,t,{staticPosition:n}){const r=tm(t.type);if(r){const[i,a]=r;return lA(e,{...t,type:a},{length:i,staticPosition:n})}if(t.type==="tuple")return hA(e,t,{staticPosition:n});if(t.type==="address")return cA(e);if(t.type==="bool")return uA(e);if(t.type.startsWith("bytes"))return dA(e,t,{staticPosition:n});if(t.type.startsWith("uint")||t.type.startsWith("int"))return fA(e,t);if(t.type==="string")return pA(e,{staticPosition:n});throw new rE(t.type,{docsPath:"/docs/contract/decodeAbiParameters"})}const Iv=32,Uh=32;function cA(e){const t=e.readBytes(32);return[Cd(at(k6(t,-20))),32]}function lA(e,t,{length:n,staticPosition:r}){if(!n){const c=Qr(e.readBytes(Uh)),u=r+c,d=u+Iv;e.setPosition(u);const f=Qr(e.readBytes(Iv)),p=lc(t);let g=0;const m=[];for(let y=0;y<f;++y){e.setPosition(d+(p?y*32:g));const[w,b]=Bs(e,t,{staticPosition:d});g+=b,m.push(w)}return e.setPosition(r+32),[m,32]}if(lc(t)){const c=Qr(e.readBytes(Uh)),u=r+c,d=[];for(let f=0;f<n;++f){e.setPosition(u+f*32);const[p]=Bs(e,t,{staticPosition:u});d.push(p)}return e.setPosition(r+32),[d,32]}let i=0;const a=[];for(let c=0;c<n;++c){const[u,d]=Bs(e,t,{staticPosition:r+i});i+=d,a.push(u)}return[a,i]}function uA(e){return[YE(e.readBytes(32),{size:32}),32]}function dA(e,t,{staticPosition:n}){const[r,i]=t.type.split("bytes");if(!i){const c=Qr(e.readBytes(32));e.setPosition(n+c);const u=Qr(e.readBytes(32));if(u===0)return e.setPosition(n+32),["0x",32];const d=e.readBytes(u);return e.setPosition(n+32),[at(d),32]}return[at(e.readBytes(Number.parseInt(i,10),32)),32]}function fA(e,t){const n=t.type.startsWith("int"),r=Number.parseInt(t.type.split("int")[1]||"256",10),i=e.readBytes(32);return[r>48?KE(i,{signed:n}):Qr(i,{signed:n}),32]}function hA(e,t,{staticPosition:n}){const r=t.components.length===0||t.components.some(({name:c})=>!c),i=r?[]:{};let a=0;if(lc(t)){const c=Qr(e.readBytes(Uh)),u=n+c;for(let d=0;d<t.components.length;++d){const f=t.components[d];e.setPosition(u+a);const[p,g]=Bs(e,f,{staticPosition:u});a+=g,i[r?d:f==null?void 0:f.name]=p}return e.setPosition(n+32),[i,32]}for(let c=0;c<t.components.length;++c){const u=t.components[c],[d,f]=Bs(e,u,{staticPosition:n});i[r?c:u==null?void 0:u.name]=d,a+=f}return[i,a]}function pA(e,{staticPosition:t}){const n=Qr(e.readBytes(32)),r=t+n;e.setPosition(r);const i=Qr(e.readBytes(32));if(i===0)return e.setPosition(t+32),["",32];const a=e.readBytes(i,32),c=JE(vn(a));return e.setPosition(t+32),[c,32]}function lc(e){var r;const{type:t}=e;if(t==="string"||t==="bytes"||t.endsWith("[]"))return!0;if(t==="tuple")return(r=e.components)==null?void 0:r.some(lc);const n=tm(e.type);return!!(n&&lc({...e,type:n[1]}))}const mA=e=>Et(ra(e));function gA(e){return mA(e)}const yA="1.2.3";let cn=class Wh extends Error{constructor(t,n={}){var c;const r=n.cause instanceof Wh?n.cause.details:(c=n.cause)!=null&&c.message?n.cause.message:n.details,i=n.cause instanceof Wh&&n.cause.docsPath||n.docsPath,a=[t||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...i?[`Docs: https://abitype.dev${i}`]:[],...r?[`Details: ${r}`]:[],`Version: abitype@${yA}`].join(`
62
+ `);super(a),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),n.cause&&(this.cause=n.cause),this.details=r,this.docsPath=i,this.metaMessages=n.metaMessages,this.shortMessage=t}};function Zr(e,t){const n=e.exec(t);return n==null?void 0:n.groups}const I6=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,j6=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,B6=/^\(.+?\).*?$/,jv=/^tuple(?<array>(\[(\d*)\])*)$/;function $h(e){let t=e.type;if(jv.test(e.type)&&"components"in e){t="(";const n=e.components.length;for(let i=0;i<n;i++){const a=e.components[i];t+=$h(a),i<n-1&&(t+=", ")}const r=Zr(jv,e.type);return t+=`)${(r==null?void 0:r.array)||""}`,$h({...e,type:t})}return"indexed"in e&&e.indexed&&(t=`${t} indexed`),e.name?`${t} ${e.name}`:t}function ks(e){let t="";const n=e.length;for(let r=0;r<n;r++){const i=e[r];t+=$h(i),r!==n-1&&(t+=", ")}return t}function Xu(e){var t;return e.type==="function"?`function ${e.name}(${ks(e.inputs)})${e.stateMutability&&e.stateMutability!=="nonpayable"?` ${e.stateMutability}`:""}${(t=e.outputs)!=null&&t.length?` returns (${ks(e.outputs)})`:""}`:e.type==="event"?`event ${e.name}(${ks(e.inputs)})`:e.type==="error"?`error ${e.name}(${ks(e.inputs)})`:e.type==="constructor"?`constructor(${ks(e.inputs)})${e.stateMutability==="payable"?" payable":""}`:e.type==="fallback"?`fallback() external${e.stateMutability==="payable"?" payable":""}`:"receive() external payable"}const _6=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function vA(e){return _6.test(e)}function wA(e){return Zr(_6,e)}const P6=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function bA(e){return P6.test(e)}function xA(e){return Zr(P6,e)}const T6=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;function CA(e){return T6.test(e)}function EA(e){return Zr(T6,e)}const O6=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function Ed(e){return O6.test(e)}function AA(e){return Zr(O6,e)}const R6=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function kA(e){return R6.test(e)}function SA(e){return Zr(R6,e)}const N6=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function IA(e){return N6.test(e)}function jA(e){return Zr(N6,e)}const BA=/^receive\(\) external payable$/;function _A(e){return BA.test(e)}const Bv=new Set(["memory","indexed","storage","calldata"]),PA=new Set(["indexed"]),qh=new Set(["calldata","memory","storage"]);class TA extends cn{constructor({signature:t}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(t,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}class OA extends cn{constructor({type:t}){super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class RA extends cn{constructor({type:t}){super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}class NA extends cn{constructor({params:t}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(t,null,2)})`,docsPath:"/api/human#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}class MA extends cn{constructor({param:t}){super("Invalid ABI parameter.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class DA extends cn{constructor({param:t,name:n}){super("Invalid ABI parameter.",{details:t,metaMessages:[`"${n}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class LA extends cn{constructor({param:t,type:n,modifier:r}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${r}" not allowed${n?` in "${n}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class FA extends cn{constructor({param:t,type:n,modifier:r}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${r}" not allowed${n?` in "${n}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${r}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class zA extends cn{constructor({abiParameter:t}){super("Invalid ABI parameter.",{details:JSON.stringify(t,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}class oa extends cn{constructor({signature:t,type:n}){super(`Invalid ${n} signature.`,{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class UA extends cn{constructor({signature:t}){super("Unknown signature.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class WA extends cn{constructor({signature:t}){super("Invalid struct signature.",{details:t,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}class $A extends cn{constructor({type:t}){super("Circular reference detected.",{metaMessages:[`Struct "${t}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}class qA extends cn{constructor({current:t,depth:n}){super("Unbalanced parentheses.",{metaMessages:[`"${t.trim()}" has too many ${n>0?"opening":"closing"} parentheses.`],details:`Depth "${n}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}function HA(e,t,n){let r="";if(n)for(const i of Object.entries(n)){if(!i)continue;let a="";for(const c of i[1])a+=`[${c.type}${c.name?`:${c.name}`:""}]`;r+=`(${i[0]}{${a}})`}return t?`${t}:${e}${r}`:`${e}${r}`}const H0=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]);function Hh(e,t={}){if(CA(e))return VA(e,t);if(bA(e))return QA(e,t);if(vA(e))return GA(e,t);if(kA(e))return KA(e,t);if(IA(e))return YA(e);if(_A(e))return{type:"receive",stateMutability:"payable"};throw new UA({signature:e})}function VA(e,t={}){const n=EA(e);if(!n)throw new oa({signature:e,type:"function"});const r=yn(n.parameters),i=[],a=r.length;for(let u=0;u<a;u++)i.push(Jr(r[u],{modifiers:qh,structs:t,type:"function"}));const c=[];if(n.returns){const u=yn(n.returns),d=u.length;for(let f=0;f<d;f++)c.push(Jr(u[f],{modifiers:qh,structs:t,type:"function"}))}return{name:n.name,type:"function",stateMutability:n.stateMutability??"nonpayable",inputs:i,outputs:c}}function QA(e,t={}){const n=xA(e);if(!n)throw new oa({signature:e,type:"event"});const r=yn(n.parameters),i=[],a=r.length;for(let c=0;c<a;c++)i.push(Jr(r[c],{modifiers:PA,structs:t,type:"event"}));return{name:n.name,type:"event",inputs:i}}function GA(e,t={}){const n=wA(e);if(!n)throw new oa({signature:e,type:"error"});const r=yn(n.parameters),i=[],a=r.length;for(let c=0;c<a;c++)i.push(Jr(r[c],{structs:t,type:"error"}));return{name:n.name,type:"error",inputs:i}}function KA(e,t={}){const n=SA(e);if(!n)throw new oa({signature:e,type:"constructor"});const r=yn(n.parameters),i=[],a=r.length;for(let c=0;c<a;c++)i.push(Jr(r[c],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:n.stateMutability??"nonpayable",inputs:i}}function YA(e){const t=jA(e);if(!t)throw new oa({signature:e,type:"fallback"});return{type:"fallback",stateMutability:t.stateMutability??"nonpayable"}}const JA=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,ZA=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,XA=/^u?int$/;function Jr(e,t){var g,m;const n=HA(e,t==null?void 0:t.type,t==null?void 0:t.structs);if(H0.has(n))return H0.get(n);const r=B6.test(e),i=Zr(r?ZA:JA,e);if(!i)throw new MA({param:e});if(i.name&&t4(i.name))throw new DA({param:e,name:i.name});const a=i.name?{name:i.name}:{},c=i.modifier==="indexed"?{indexed:!0}:{},u=(t==null?void 0:t.structs)??{};let d,f={};if(r){d="tuple";const y=yn(i.type),w=[],b=y.length;for(let E=0;E<b;E++)w.push(Jr(y[E],{structs:u}));f={components:w}}else if(i.type in u)d="tuple",f={components:u[i.type]};else if(XA.test(i.type))d=`${i.type}256`;else if(i.type==="address payable")d="address";else if(d=i.type,(t==null?void 0:t.type)!=="struct"&&!M6(d))throw new RA({type:d});if(i.modifier){if(!((m=(g=t==null?void 0:t.modifiers)==null?void 0:g.has)!=null&&m.call(g,i.modifier)))throw new LA({param:e,type:t==null?void 0:t.type,modifier:i.modifier});if(qh.has(i.modifier)&&!n4(d,!!i.array))throw new FA({param:e,type:t==null?void 0:t.type,modifier:i.modifier})}const p={type:`${d}${i.array??""}`,...a,...c,...f};return H0.set(n,p),p}function yn(e,t=[],n="",r=0){const i=e.trim().length;for(let a=0;a<i;a++){const c=e[a],u=e.slice(a+1);switch(c){case",":return r===0?yn(u,[...t,n.trim()]):yn(u,t,`${n}${c}`,r);case"(":return yn(u,t,`${n}${c}`,r+1);case")":return yn(u,t,`${n}${c}`,r-1);default:return yn(u,t,`${n}${c}`,r)}}if(n==="")return t;if(r!==0)throw new qA({current:n,depth:r});return t.push(n.trim()),t}function M6(e){return e==="address"||e==="bool"||e==="function"||e==="string"||I6.test(e)||j6.test(e)}const e4=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;function t4(e){return e==="address"||e==="bool"||e==="function"||e==="string"||e==="tuple"||I6.test(e)||j6.test(e)||e4.test(e)}function n4(e,t){return t||e==="bytes"||e==="string"||e==="tuple"}function nm(e){const t={},n=e.length;for(let c=0;c<n;c++){const u=e[c];if(!Ed(u))continue;const d=AA(u);if(!d)throw new oa({signature:u,type:"struct"});const f=d.properties.split(";"),p=[],g=f.length;for(let m=0;m<g;m++){const w=f[m].trim();if(!w)continue;const b=Jr(w,{type:"struct"});p.push(b)}if(!p.length)throw new WA({signature:u});t[d.name]=p}const r={},i=Object.entries(t),a=i.length;for(let c=0;c<a;c++){const[u,d]=i[c];r[u]=D6(d,t)}return r}const r4=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;function D6(e=[],t={},n=new Set){const r=[],i=e.length;for(let a=0;a<i;a++){const c=e[a];if(B6.test(c.type))r.push(c);else{const d=Zr(r4,c.type);if(!(d!=null&&d.type))throw new zA({abiParameter:c});const{array:f,type:p}=d;if(p in t){if(n.has(p))throw new $A({type:p});r.push({...c,type:`tuple${f??""}`,components:D6(t[p],t,new Set([...n,p]))})}else if(M6(p))r.push(c);else throw new OA({type:p})}}return r}function Ad(e){const t=nm(e),n=[],r=e.length;for(let i=0;i<r;i++){const a=e[i];Ed(a)||n.push(Hh(a,t))}return n}function _v(e){let t;if(typeof e=="string")t=Hh(e);else{const n=nm(e),r=e.length;for(let i=0;i<r;i++){const a=e[i];if(!Ed(a)){t=Hh(a,n);break}}}if(!t)throw new TA({signature:e});return t}function Pv(e){const t=[];if(typeof e=="string"){const n=yn(e),r=n.length;for(let i=0;i<r;i++)t.push(Jr(n[i],{modifiers:Bv}))}else{const n=nm(e),r=e.length;for(let i=0;i<r;i++){const a=e[i];if(Ed(a))continue;const c=yn(a),u=c.length;for(let d=0;d<u;d++)t.push(Jr(c[d],{modifiers:Bv,structs:n}))}}if(t.length===0)throw new NA({params:e});return t}function o4(e){let t=!0,n="",r=0,i="",a=!1;for(let c=0;c<e.length;c++){const u=e[c];if(["(",")",","].includes(u)&&(t=!0),u==="("&&r++,u===")"&&r--,!!t){if(r===0){if(u===" "&&["event","function",""].includes(i))i="";else if(i+=u,u===")"){a=!0;break}continue}if(u===" "){e[c-1]!==","&&n!==","&&n!==",("&&(n="",t=!1);continue}i+=u,n+=u}}if(!a)throw new ne("Unable to normalize signature.");return i}const i4=e=>{const t=typeof e=="string"?e:Xu(e);return o4(t)};function L6(e){return gA(i4(e))}const kd=L6,Jc=e=>$o(L6(e),0,4);function Ui(e){const{abi:t,args:n=[],name:r}=e,i=xr(r,{strict:!1}),a=t.filter(u=>i?u.type==="function"?Jc(u)===r:u.type==="event"?kd(u)===r:!1:"name"in u&&u.name===r);if(a.length===0)return;if(a.length===1)return a[0];let c;for(const u of a){if(!("inputs"in u))continue;if(!n||n.length===0){if(!u.inputs||u.inputs.length===0)return u;continue}if(!u.inputs||u.inputs.length===0||u.inputs.length!==n.length)continue;if(n.every((f,p)=>{const g="inputs"in u&&u.inputs[p];return g?Vh(f,g):!1})){if(c&&"inputs"in c&&c.inputs){const f=F6(u.inputs,c.inputs,n);if(f)throw new eE({abiItem:u,type:f[0]},{abiItem:c,type:f[1]})}c=u}}return c||a[0]}function Vh(e,t){const n=typeof e,r=t.type;switch(r){case"address":return ct(e,{strict:!1});case"bool":return n==="boolean";case"function":return n==="string";case"string":return n==="string";default:return r==="tuple"&&"components"in t?Object.values(t.components).every((i,a)=>n==="object"&&Vh(Object.values(e)[a],i)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(r)?n==="number"||n==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r)?n==="string"||e instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(r)?Array.isArray(e)&&e.every(i=>Vh(i,{...t,type:r.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function F6(e,t,n){for(const r in e){const i=e[r],a=t[r];if(i.type==="tuple"&&a.type==="tuple"&&"components"in i&&"components"in a)return F6(i.components,a.components,n[r]);const c=[i.type,a.type];if(c.includes("address")&&c.includes("bytes20")?!0:c.includes("address")&&c.includes("string")?ct(n[r],{strict:!1}):c.includes("address")&&c.includes("bytes")?ct(n[r],{strict:!1}):!1)return c}}const V0="/docs/contract/decodeFunctionResult";function Go(e){const{abi:t,args:n,functionName:r,data:i}=e;let a=t[0];if(r){const u=Ui({abi:t,args:n,name:r});if(!u)throw new Qs(r,{docsPath:V0});a=u}if(a.type!=="function")throw new Qs(void 0,{docsPath:V0});if(!a.outputs)throw new c6(a.name,{docsPath:V0});const c=Yc(a.outputs,i);if(c&&c.length>1)return c;if(c&&c.length===1)return c[0]}const Tv="/docs/contract/encodeFunctionData";function s4(e){const{abi:t,args:n,functionName:r}=e;let i=t[0];if(r){const a=Ui({abi:t,args:n,name:r});if(!a)throw new Qs(r,{docsPath:Tv});i=a}if(i.type!=="function")throw new Qs(void 0,{docsPath:Tv});return{abi:[i],functionName:Jc(er(i))}}function xn(e){const{args:t}=e,{abi:n,functionName:r}=(()=>{var u;return e.abi.length===1&&((u=e.functionName)!=null&&u.startsWith("0x"))?e:s4(e)})(),i=n[0],a=r,c="inputs"in i&&i.inputs?zi(i.inputs,t??[]):void 0;return ir([a,c??"0x"])}class Qh extends ne{constructor({blockNumber:t,chain:n,contract:r}){super(`Chain "${n.name}" does not support contract "${r.name}".`,{metaMessages:["This could be due to any of the following:",...t&&r.blockCreated&&r.blockCreated>t?[`- The contract "${r.name}" was not deployed until block ${r.blockCreated} (current block ${t}).`]:[`- The chain does not have the contract "${r.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}class a4 extends ne{constructor({chain:t,currentChainId:n}){super(`The current chain of the wallet (id: ${n}) does not match the target chain for the transaction (id: ${t.id} – ${t.name}).`,{metaMessages:[`Current Chain ID: ${n}`,`Expected Chain ID: ${t.id} – ${t.name}`],name:"ChainMismatchError"})}}class c4 extends ne{constructor(){super(["No chain was provided to the request.","Please provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."].join(`
63
+ `),{name:"ChainNotFoundError"})}}class z6 extends ne{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}class Sd extends ne{constructor({chainId:t}){super(typeof t=="number"?`Chain ID "${t}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}function ia({blockNumber:e,chain:t,contract:n}){var i;const r=(i=t==null?void 0:t.contracts)==null?void 0:i[n];if(!r)throw new Qh({chain:t,contract:{name:n}});if(e&&r.blockCreated&&r.blockCreated>e)throw new Qh({blockNumber:e,chain:t,contract:{name:n,blockCreated:r.blockCreated}});return r.address}function kt(e){return typeof e=="string"?{address:e,type:"json-rpc"}:e}const l4={1:"An `assert` condition failed.",17:"Arithmetic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},U6={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},u4={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};function d4(e){const{abi:t,data:n,cause:r}=e,i=$o(n,0,4);if(i==="0x")throw new Gc({cause:r});const c=[...t||[],U6,u4].find(u=>u.type==="error"&&i===Jc(er(u)));if(!c)throw new a6(i,{docsPath:"/docs/contract/decodeErrorResult",cause:r});return{abiItem:c,args:"inputs"in c&&c.inputs&&c.inputs.length>0?Yc(c.inputs,$o(n,4)):void 0,errorName:c.name}}const At=(e,t,n)=>JSON.stringify(e,(r,i)=>typeof i=="bigint"?i.toString():i,n);function W6({abiItem:e,args:t,includeFunctionName:n=!0,includeName:r=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${n?e.name:""}(${e.inputs.map((i,a)=>`${r&&i.name?`${i.name}: `:""}${typeof t[a]=="object"?At(t[a]):t[a]}`).join(", ")})`}const f4={gwei:9,wei:18},h4={ether:-9,wei:9},p4={ether:-18,gwei:-9};function Id(e,t){let n=e.toString();const r=n.startsWith("-");r&&(n=n.slice(1)),n=n.padStart(t,"0");let[i,a]=[n.slice(0,n.length-t),n.slice(n.length-t)];return a=a.replace(/(0+)$/,""),`${r?"-":""}${i||"0"}${a?`.${a}`:""}`}function rm(e,t="wei"){return Id(e,f4[t])}function an(e,t="wei"){return Id(e,h4[t])}class m4 extends ne{constructor({address:t}){super(`State for account "${t}" is set multiple times.`,{name:"AccountStateConflictError"})}}class g4 extends ne{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function Ov(e){return e.reduce((t,{slot:n,value:r})=>`${t} ${n}: ${r}
64
+ `,"")}function y4(e){return e.reduce((t,{address:n,...r})=>{let i=`${t} ${n}:
65
+ `;return r.nonce&&(i+=` nonce: ${r.nonce}
66
+ `),r.balance&&(i+=` balance: ${r.balance}
67
+ `),r.code&&(i+=` code: ${r.code}
68
+ `),r.state&&(i+=` state:
69
+ `,i+=Ov(r.state)),r.stateDiff&&(i+=` stateDiff:
70
+ `,i+=Ov(r.stateDiff)),i},` State Override:
71
+ `).slice(0,-1)}function Zc(e){const t=Object.entries(e).map(([r,i])=>i===void 0||i===!1?null:[r,i]).filter(Boolean),n=t.reduce((r,[i])=>Math.max(r,i.length),0);return t.map(([r,i])=>` ${`${r}:`.padEnd(n+1)} ${i}`).join(`
72
+ `)}class v4 extends ne{constructor({v:t}){super(`Invalid \`v\` value "${t}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class w4 extends ne{constructor({transaction:t}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",Zc(t),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}class b4 extends ne{constructor({storageKey:t}){super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${Math.floor((t.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}class x4 extends ne{constructor(t,{account:n,docsPath:r,chain:i,data:a,gas:c,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:f,nonce:p,to:g,value:m}){var w;const y=Zc({chain:i&&`${i==null?void 0:i.name} (id: ${i==null?void 0:i.id})`,from:n==null?void 0:n.address,to:g,value:typeof m<"u"&&`${rm(m)} ${((w=i==null?void 0:i.nativeCurrency)==null?void 0:w.symbol)||"ETH"}`,data:a,gas:c,gasPrice:typeof u<"u"&&`${an(u)} gwei`,maxFeePerGas:typeof d<"u"&&`${an(d)} gwei`,maxPriorityFeePerGas:typeof f<"u"&&`${an(f)} gwei`,nonce:p});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Request Arguments:",y].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}class $6 extends ne{constructor({blockHash:t,blockNumber:n,blockTag:r,hash:i,index:a}){let c="Transaction";r&&a!==void 0&&(c=`Transaction at block time "${r}" at index "${a}"`),t&&a!==void 0&&(c=`Transaction at block hash "${t}" at index "${a}"`),n&&a!==void 0&&(c=`Transaction at block number "${n}" at index "${a}"`),i&&(c=`Transaction with hash "${i}"`),super(`${c} could not be found.`,{name:"TransactionNotFoundError"})}}class q6 extends ne{constructor({hash:t}){super(`Transaction receipt with hash "${t}" could not be found. The Transaction may not be processed on a block yet.`,{name:"TransactionReceiptNotFoundError"})}}class C4 extends ne{constructor({receipt:t}){super(`Transaction with hash "${t.transactionHash}" reverted.`,{metaMessages:['The receipt marked the transaction as "reverted". This could mean that the function on the contract you are trying to call threw an error.'," ","You can attempt to extract the revert reason by:","- calling the `simulateContract` or `simulateCalls` Action with the `abi` and `functionName` of the contract","- using the `call` Action with raw `data`"],name:"TransactionReceiptRevertedError"}),Object.defineProperty(this,"receipt",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.receipt=t}}class E4 extends ne{constructor({hash:t}){super(`Timed out while waiting for transaction with hash "${t}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}const A4=e=>e,om=e=>e;class H6 extends ne{constructor(t,{account:n,docsPath:r,chain:i,data:a,gas:c,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:f,nonce:p,to:g,value:m,stateOverride:y}){var E;const w=n?kt(n):void 0;let b=Zc({from:w==null?void 0:w.address,to:g,value:typeof m<"u"&&`${rm(m)} ${((E=i==null?void 0:i.nativeCurrency)==null?void 0:E.symbol)||"ETH"}`,data:a,gas:c,gasPrice:typeof u<"u"&&`${an(u)} gwei`,maxFeePerGas:typeof d<"u"&&`${an(d)} gwei`,maxPriorityFeePerGas:typeof f<"u"&&`${an(f)} gwei`,nonce:p});y&&(b+=`
73
+ ${y4(y)}`),super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Raw Call Arguments:",b].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}class im extends ne{constructor(t,{abi:n,args:r,contractAddress:i,docsPath:a,functionName:c,sender:u}){const d=Ui({abi:n,args:r,name:c}),f=d?W6({abiItem:d,args:r,includeFunctionName:!1,includeName:!1}):void 0,p=d?er(d,{includeName:!0}):void 0,g=Zc({address:i&&A4(i),function:p,args:f&&f!=="()"&&`${[...Array((c==null?void 0:c.length)??0).keys()].map(()=>" ").join("")}${f}`,sender:u});super(t.shortMessage||`An unknown error occurred while executing the contract function "${c}".`,{cause:t,docsPath:a,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],g&&"Contract Call:",g].filter(Boolean),name:"ContractFunctionExecutionError"}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abi=n,this.args=r,this.cause=t,this.contractAddress=i,this.functionName=c,this.sender=u}}class Gh extends ne{constructor({abi:t,data:n,functionName:r,message:i,cause:a}){let c,u,d,f;if(n&&n!=="0x")try{u=d4({abi:t,data:n,cause:a});const{abiItem:g,errorName:m,args:y}=u;if(m==="Error")f=y[0];else if(m==="Panic"){const[w]=y;f=l4[w]}else{const w=g?er(g,{includeName:!0}):void 0,b=g&&y?W6({abiItem:g,args:y,includeFunctionName:!1,includeName:!1}):void 0;d=[w?`Error: ${w}`:"",b&&b!=="()"?` ${[...Array((m==null?void 0:m.length)??0).keys()].map(()=>" ").join("")}${b}`:""]}}catch(g){c=g}else i&&(f=i);let p;c instanceof a6&&(p=c.signature,d=[`Unable to decode signature "${p}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://4byte.sourcify.dev/?q=${p}.`]),super(f&&f!=="execution reverted"||p?[`The contract function "${r}" reverted with the following ${p?"signature":"reason"}:`,f||p].join(`
74
+ `):`The contract function "${r}" reverted.`,{cause:c??a,metaMessages:d,name:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"raw",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=u,this.raw=n,this.reason=f,this.signature=p}}class k4 extends ne{constructor({functionName:t,cause:n}){super(`The contract function "${t}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${t}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."],name:"ContractFunctionZeroDataError",cause:n})}}class S4 extends ne{constructor({factory:t}){super(`Deployment for counterfactual contract call failed${t?` for factory "${t}".`:""}`,{metaMessages:["Please ensure:","- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).","- The `factoryData` is a valid encoded function call for contract deployment function on the factory."],name:"CounterfactualDeploymentFailedError"})}}class jd extends ne{constructor({data:t,message:n}){super(n||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t}}function sm(e){var n,r,i,a,c,u;if(!(e instanceof ne))return!1;const t=e.walk(d=>d instanceof Gh);return t instanceof Gh?((n=t.data)==null?void 0:n.errorName)==="HttpError"||((r=t.data)==null?void 0:r.errorName)==="ResolverError"||((i=t.data)==null?void 0:i.errorName)==="ResolverNotContract"||((a=t.data)==null?void 0:a.errorName)==="ResolverNotFound"||((c=t.data)==null?void 0:c.errorName)==="ReverseAddressMismatch"||((u=t.data)==null?void 0:u.errorName)==="UnsupportedResolverProfile":!1}function I4(e){const{abi:t,data:n}=e,r=$o(n,0,4),i=t.find(a=>a.type==="function"&&r===Jc(er(a)));if(!i)throw new X8(r,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:i.name,args:"inputs"in i&&i.inputs&&i.inputs.length>0?Yc(i.inputs,$o(n,4)):void 0}}const Q0="/docs/contract/encodeErrorResult";function Rv(e){const{abi:t,errorName:n,args:r}=e;let i=t[0];if(n){const d=Ui({abi:t,args:r,name:n});if(!d)throw new mv(n,{docsPath:Q0});i=d}if(i.type!=="error")throw new mv(void 0,{docsPath:Q0});const a=er(i),c=Jc(a);let u="0x";if(r&&r.length>0){if(!i.inputs)throw new Y8(i.name,{docsPath:Q0});u=zi(i.inputs,r)}return ir([c,u])}const G0="/docs/contract/encodeFunctionResult";function j4(e){const{abi:t,functionName:n,result:r}=e;let i=t[0];if(n){const c=Ui({abi:t,name:n});if(!c)throw new Qs(n,{docsPath:G0});i=c}if(i.type!=="function")throw new Qs(void 0,{docsPath:G0});if(!i.outputs)throw new c6(i.name,{docsPath:G0});const a=(()=>{if(i.outputs.length===0)return[];if(i.outputs.length===1)return[r];if(Array.isArray(r))return r;throw new l6(r)})();return zi(i.outputs,a)}const Bd="x-batch-gateway:true";async function B4(e){const{data:t,ccipRequest:n}=e,{args:[r]}=I4({abi:Fh,data:t}),i=[],a=[];return await Promise.all(r.map(async(c,u)=>{try{a[u]=c.urls.includes(Bd)?await B4({data:c.data,ccipRequest:n}):await n(c),i[u]=!1}catch(d){i[u]=!0,a[u]=_4(d)}})),j4({abi:Fh,functionName:"query",result:[i,a]})}function _4(e){return e.name==="HttpRequestError"&&e.status?Rv({abi:Fh,errorName:"HttpError",args:[e.status,e.shortMessage]}):Rv({abi:[U6],errorName:"Error",args:["shortMessage"in e?e.shortMessage:e.message]})}function V6(e){if(e.length!==66||e.indexOf("[")!==0||e.indexOf("]")!==65)return null;const t=`0x${e.slice(1,65)}`;return xr(t)?t:null}function Kh(e){let t=new Uint8Array(32).fill(0);if(!e)return at(t);const n=e.split(".");for(let r=n.length-1;r>=0;r-=1){const i=V6(n[r]),a=i?ra(i):Et(Bi(n[r]),"bytes");t=Et(Dn([t,a]),"bytes")}return at(t)}function P4(e){return`[${e.slice(2)}]`}function T4(e){const t=new Uint8Array(32).fill(0);return e?V6(e)||Et(Bi(e)):at(t)}function am(e){const t=e.replace(/^\.|\.$/gm,"");if(t.length===0)return new Uint8Array(1);const n=new Uint8Array(Bi(t).byteLength+2);let r=0;const i=t.split(".");for(let a=0;a<i.length;a++){let c=Bi(i[a]);c.byteLength>255&&(c=Bi(P4(T4(i[a])))),n[r]=c.length,n.set(c,r+1),r+=c.length+1}return n.byteLength!==r+1?n.slice(0,r+1):n}function Ee(e,t,n){const r=e[t.name];if(typeof r=="function")return r;const i=e[n];return typeof i=="function"?i:a=>t(e,a)}class sc extends ne{constructor({body:t,cause:n,details:r,headers:i,status:a,url:c}){super("HTTP request failed.",{cause:n,details:r,metaMessages:[a&&`Status: ${a}`,`URL: ${om(c)}`,t&&`Request body: ${At(t)}`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=t,this.headers=i,this.status=a,this.url=c}}class cm extends ne{constructor({body:t,error:n,url:r}){super("RPC Request failed.",{cause:n,details:n.message,metaMessages:[`URL: ${om(r)}`,`Request body: ${At(t)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=n.code,this.data=n.data,this.url=r}}class Nv extends ne{constructor({body:t,url:n}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${om(n)}`,`Request body: ${At(t)}`],name:"TimeoutError"}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.url=n}}const O4=-1;class ln extends ne{constructor(t,{code:n,docsPath:r,metaMessages:i,name:a,shortMessage:c}){super(c,{cause:t,docsPath:r,metaMessages:i||(t==null?void 0:t.metaMessages),name:a||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=a||t.name,this.code=t instanceof cm?t.code:n??O4}}class un extends ln{constructor(t,n){super(t,n),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=n.data}}class uc extends ln{constructor(t){super(t,{code:uc.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(uc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class dc extends ln{constructor(t){super(t,{code:dc.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(dc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class fc extends ln{constructor(t,{method:n}={}){super(t,{code:fc.code,name:"MethodNotFoundRpcError",shortMessage:`The method${n?` "${n}"`:""} does not exist / is not available.`})}}Object.defineProperty(fc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class hc extends ln{constructor(t){super(t,{code:hc.code,name:"InvalidParamsRpcError",shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join(`
75
+ `)})}}Object.defineProperty(hc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class Pi extends ln{constructor(t){super(t,{code:Pi.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(Pi,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class qo extends ln{constructor(t){super(t,{code:qo.code,name:"InvalidInputRpcError",shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join(`
76
+ `)})}}Object.defineProperty(qo,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class pc extends ln{constructor(t){super(t,{code:pc.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(pc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class wr extends ln{constructor(t){super(t,{code:wr.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(wr,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class Ys extends ln{constructor(t){super(t,{code:Ys.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(Ys,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class mi extends ln{constructor(t,{method:n}={}){super(t,{code:mi.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${n?` "${n}"`:""} is not supported.`})}}Object.defineProperty(mi,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class Js extends ln{constructor(t){super(t,{code:Js.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(Js,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class mc extends ln{constructor(t){super(t,{code:mc.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(mc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class We extends un{constructor(t){super(t,{code:We.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(We,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class gc extends un{constructor(t){super(t,{code:gc.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(gc,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class yc extends un{constructor(t,{method:n}={}){super(t,{code:yc.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${n?` " ${n}"`:""}.`})}}Object.defineProperty(yc,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class vc extends un{constructor(t){super(t,{code:vc.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(vc,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class wc extends un{constructor(t){super(t,{code:wc.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(wc,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class wn extends un{constructor(t){super(t,{code:wn.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(wn,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class bc extends un{constructor(t){super(t,{code:bc.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}Object.defineProperty(bc,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class xc extends un{constructor(t){super(t,{code:xc.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}Object.defineProperty(xc,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class Cc extends un{constructor(t){super(t,{code:Cc.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty(Cc,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class Ec extends un{constructor(t){super(t,{code:Ec.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty(Ec,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class Ac extends un{constructor(t){super(t,{code:Ac.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(Ac,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class kc extends un{constructor(t){super(t,{code:kc.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}Object.defineProperty(kc,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750});class Sc extends un{constructor(t){super(t,{code:Sc.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}Object.defineProperty(Sc,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class Zs extends un{constructor(t){super(t,{code:Zs.code,name:"WalletConnectSessionSettlementError",shortMessage:"WalletConnect session settlement failed."})}}Object.defineProperty(Zs,"code",{enumerable:!0,configurable:!0,writable:!0,value:7e3});class R4 extends ln{constructor(t){super(t,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}const N4=3;function Ti(e,{abi:t,address:n,args:r,docsPath:i,functionName:a,sender:c}){const u=e instanceof jd?e:e instanceof ne?e.walk(w=>"data"in w)||e.walk():{},{code:d,data:f,details:p,message:g,shortMessage:m}=u,y=e instanceof Gc?new k4({functionName:a,cause:e}):[N4,Pi.code].includes(d)&&(f||p||g||m)||d===qo.code&&p==="execution reverted"&&f?new Gh({abi:t,data:typeof f=="object"?f.data:f,functionName:a,message:u instanceof cm?p:m??g,cause:e}):e;return new im(y,{abi:t,args:r,contractAddress:n,docsPath:i,functionName:a,sender:c})}const M4="modulepreload",D4=function(e){return"/"+e},Mv={},de=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let c=function(f){return Promise.all(f.map(p=>Promise.resolve(p).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),d=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));i=c(n.map(f=>{if(f=D4(f),f in Mv)return;Mv[f]=!0;const p=f.endsWith(".css"),g=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${g}`))return;const m=document.createElement("link");if(m.rel=p?"stylesheet":M4,p||(m.as="script"),m.crossOrigin="",m.href=f,d&&m.setAttribute("nonce",d),document.head.appendChild(m),p)return new Promise((y,w)=>{m.addEventListener("load",y),m.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${f}`)))})}))}function a(c){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=c,window.dispatchEvent(u),!u.defaultPrevented)throw c}return i.then(c=>{for(const u of c||[])u.status==="rejected"&&a(u.reason);return t().catch(a)})};/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const lm=BigInt(0),Yh=BigInt(1);function Xc(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function um(e){if(!Xc(e))throw new Error("Uint8Array expected")}function Ic(e,t){if(typeof t!="boolean")throw new Error(e+" boolean expected, got "+t)}function ju(e){const t=e.toString(16);return t.length&1?"0"+t:t}function Q6(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?lm:BigInt("0x"+e)}const G6=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",L4=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function jc(e){if(um(e),G6)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=L4[e[n]];return t}const Dr={_0:48,_9:57,A:65,F:70,a:97,f:102};function Dv(e){if(e>=Dr._0&&e<=Dr._9)return e-Dr._0;if(e>=Dr.A&&e<=Dr.F)return e-(Dr.A-10);if(e>=Dr.a&&e<=Dr.f)return e-(Dr.a-10)}function ed(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(G6)return Uint8Array.fromHex(e);const t=e.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const r=new Uint8Array(n);for(let i=0,a=0;i<n;i++,a+=2){const c=Dv(e.charCodeAt(a)),u=Dv(e.charCodeAt(a+1));if(c===void 0||u===void 0){const d=e[a]+e[a+1];throw new Error('hex string expected, got non-hex character "'+d+'" at index '+a)}r[i]=c*16+u}return r}function _i(e){return Q6(jc(e))}function K6(e){return um(e),Q6(jc(Uint8Array.from(e).reverse()))}function el(e,t){return ed(e.toString(16).padStart(t*2,"0"))}function Y6(e,t){return el(e,t).reverse()}function On(e,t,n){let r;if(typeof t=="string")try{r=ed(t)}catch(a){throw new Error(e+" must be hex string or Uint8Array, cause: "+a)}else if(Xc(t))r=Uint8Array.from(t);else throw new Error(e+" must be hex string or Uint8Array");const i=r.length;if(typeof n=="number"&&i!==n)throw new Error(e+" of length "+n+" expected, got "+i);return r}function td(...e){let t=0;for(let r=0;r<e.length;r++){const i=e[r];um(i),t+=i.length}const n=new Uint8Array(t);for(let r=0,i=0;r<e.length;r++){const a=e[r];n.set(a,i),i+=a.length}return n}const K0=e=>typeof e=="bigint"&&lm<=e;function dm(e,t,n){return K0(e)&&K0(t)&&K0(n)&&t<=e&&e<n}function _s(e,t,n,r){if(!dm(t,n,r))throw new Error("expected valid "+e+": "+n+" <= n < "+r+", got "+t)}function F4(e){let t;for(t=0;e>lm;e>>=Yh,t+=1);return t}const _d=e=>(Yh<<BigInt(e))-Yh,Y0=e=>new Uint8Array(e),Lv=e=>Uint8Array.from(e);function z4(e,t,n){if(typeof e!="number"||e<2)throw new Error("hashLen must be a number");if(typeof t!="number"||t<2)throw new Error("qByteLen must be a number");if(typeof n!="function")throw new Error("hmacFn must be a function");let r=Y0(e),i=Y0(e),a=0;const c=()=>{r.fill(1),i.fill(0),a=0},u=(...g)=>n(i,r,...g),d=(g=Y0(0))=>{i=u(Lv([0]),g),r=u(),g.length!==0&&(i=u(Lv([1]),g),r=u())},f=()=>{if(a++>=1e3)throw new Error("drbg: tried 1000 values");let g=0;const m=[];for(;g<t;){r=u();const y=r.slice();m.push(y),g+=r.length}return td(...m)};return(g,m)=>{c(),d(g);let y;for(;!(y=m(f()));)d();return c(),y}}const U4={bigint:e=>typeof e=="bigint",function:e=>typeof e=="function",boolean:e=>typeof e=="boolean",string:e=>typeof e=="string",stringOrUint8Array:e=>typeof e=="string"||Xc(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>typeof e=="function"&&Number.isSafeInteger(e.outputLen)};function Pd(e,t,n={}){const r=(i,a,c)=>{const u=U4[a];if(typeof u!="function")throw new Error("invalid validator function");const d=e[i];if(!(c&&d===void 0)&&!u(d,e))throw new Error("param "+String(i)+" is invalid. Expected "+a+", got "+d)};for(const[i,a]of Object.entries(t))r(i,a,!1);for(const[i,a]of Object.entries(n))r(i,a,!0);return e}function Fv(e){const t=new WeakMap;return(n,...r)=>{const i=t.get(n);if(i!==void 0)return i;const a=e(n,...r);return t.set(n,a),a}}const W4="0.1.1";function $4(){return W4}let Ne=class Fr extends Error{static setStaticOptions(t){Fr.prototype.docsOrigin=t.docsOrigin,Fr.prototype.showVersion=t.showVersion,Fr.prototype.version=t.version}constructor(t,n={}){const r=(()=>{var p;if(n.cause instanceof Fr){if(n.cause.details)return n.cause.details;if(n.cause.shortMessage)return n.cause.shortMessage}return n.cause&&"details"in n.cause&&typeof n.cause.details=="string"?n.cause.details:(p=n.cause)!=null&&p.message?n.cause.message:n.details})(),i=n.cause instanceof Fr&&n.cause.docsPath||n.docsPath,a=n.docsOrigin??Fr.prototype.docsOrigin,c=`${a}${i??""}`,u=!!(n.version??Fr.prototype.showVersion),d=n.version??Fr.prototype.version,f=[t||"An error occurred.",...n.metaMessages?["",...n.metaMessages]:[],...r||i||u?["",r?`Details: ${r}`:void 0,i?`See: ${c}`:void 0,u?`Version: ${d}`:void 0]:[]].filter(p=>typeof p=="string").join(`
77
+ `);super(f,n.cause?{cause:n.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsOrigin",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"showVersion",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.cause=n.cause,this.details=r,this.docs=c,this.docsOrigin=a,this.docsPath=i,this.shortMessage=t,this.showVersion=u,this.version=d}walk(t){return J6(this,t)}};Object.defineProperty(Ne,"defaultStaticOptions",{enumerable:!0,configurable:!0,writable:!0,value:{docsOrigin:"https://oxlib.sh",showVersion:!1,version:`ox@${$4()}`}});Ne.setStaticOptions(Ne.defaultStaticOptions);function J6(e,t){return t!=null&&t(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause?J6(e.cause,t):t?null:e}function tl(e,t){if(Is(e)>t)throw new s7({givenSize:Is(e),maxSize:t})}const Lr={zero:48,nine:57,A:65,F:70,a:97,f:102};function zv(e){if(e>=Lr.zero&&e<=Lr.nine)return e-Lr.zero;if(e>=Lr.A&&e<=Lr.F)return e-(Lr.A-10);if(e>=Lr.a&&e<=Lr.f)return e-(Lr.a-10)}function q4(e,t={}){const{dir:n,size:r=32}=t;if(r===0)return e;if(e.length>r)throw new a7({size:e.length,targetSize:r,type:"Bytes"});const i=new Uint8Array(r);for(let a=0;a<r;a++){const c=n==="right";i[c?a:r-a-1]=e[c?a:e.length-a-1]}return i}function Z6(e,t={}){const{dir:n="left"}=t;let r=e,i=0;for(let a=0;a<r.length-1&&r[n==="left"?a:r.length-a-1].toString()==="0";a++)i++;return r=n==="left"?r.slice(i):r.slice(0,r.length-i),r}function Td(e,t){if(bn(e)>t)throw new h7({givenSize:bn(e),maxSize:t})}function H4(e,t){if(typeof t=="number"&&t>0&&t>bn(e)-1)throw new a2({offset:t,position:"start",size:bn(e)})}function V4(e,t,n){if(typeof t=="number"&&typeof n=="number"&&bn(e)!==n-t)throw new a2({offset:n,position:"end",size:bn(e)})}function X6(e,t={}){const{dir:n,size:r=32}=t;if(r===0)return e;const i=e.replace("0x","");if(i.length>r*2)throw new p7({size:Math.ceil(i.length/2),targetSize:r,type:"Hex"});return`0x${i[n==="right"?"padEnd":"padStart"](r*2,"0")}`}const Q4="#__bigint";function e2(e,t,n){return JSON.stringify(e,(r,i)=>typeof i=="bigint"?i.toString()+Q4:i,n)}const G4=new TextDecoder,K4=new TextEncoder;function Y4(e){return e instanceof Uint8Array?e:typeof e=="string"?t2(e):J4(e)}function J4(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function t2(e,t={}){const{size:n}=t;let r=e;n&&(Td(e,n),r=Ri(e,n));let i=r.slice(2);i.length%2&&(i=`0${i}`);const a=i.length/2,c=new Uint8Array(a);for(let u=0,d=0;u<a;u++){const f=zv(i.charCodeAt(d++)),p=zv(i.charCodeAt(d++));if(f===void 0||p===void 0)throw new Ne(`Invalid byte sequence ("${i[d-2]}${i[d-1]}" in "${i}").`);c[u]=f<<4|p}return c}function Z4(e,t={}){const{size:n}=t,r=K4.encode(e);return typeof n=="number"?(tl(r,n),X4(r,n)):r}function X4(e,t){return q4(e,{dir:"right",size:t})}function Is(e){return e.length}function e7(e,t,n,r={}){const{strict:i}=r;return e.slice(t,n)}function t7(e,t={}){const{size:n}=t;typeof n<"u"&&tl(e,n);const r=or(e,t);return o2(r,t)}function n7(e,t={}){const{size:n}=t;let r=e;if(typeof n<"u"&&(tl(r,n),r=n2(r)),r.length>1||r[0]>1)throw new i7(r);return!!r[0]}function Gr(e,t={}){const{size:n}=t;typeof n<"u"&&tl(e,n);const r=or(e,t);return i2(r,t)}function r7(e,t={}){const{size:n}=t;let r=e;return typeof n<"u"&&(tl(r,n),r=o7(r)),G4.decode(r)}function n2(e){return Z6(e,{dir:"left"})}function o7(e){return Z6(e,{dir:"right"})}class i7 extends Ne{constructor(t){super(`Bytes value \`${t}\` is not a valid boolean.`,{metaMessages:["The bytes array must contain a single byte of either a `0` or `1` value."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesBooleanError"})}}let s7=class extends Ne{constructor({givenSize:t,maxSize:n}){super(`Size cannot exceed \`${n}\` bytes. Given size: \`${t}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeOverflowError"})}},a7=class extends Ne{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${t}\`) exceeds padding size (\`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeExceedsPaddingSizeError"})}};const c7=new TextEncoder,l7=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function u7(e,t={}){const{strict:n=!1}=t;if(!e)throw new Uv(e);if(typeof e!="string")throw new Uv(e);if(n&&!/^0x[0-9a-fA-F]*$/.test(e))throw new Wv(e);if(!e.startsWith("0x"))throw new Wv(e)}function rr(...e){return`0x${e.reduce((t,n)=>t+n.replace("0x",""),"")}`}function d7(e){return e instanceof Uint8Array?or(e):Array.isArray(e)?or(new Uint8Array(e)):e}function r2(e,t={}){const n=`0x${Number(e)}`;return typeof t.size=="number"?(Td(n,t.size),Oi(n,t.size)):n}function or(e,t={}){let n="";for(let i=0;i<e.length;i++)n+=l7[e[i]];const r=`0x${n}`;return typeof t.size=="number"?(Td(r,t.size),Ri(r,t.size)):r}function Wt(e,t={}){const{signed:n,size:r}=t,i=BigInt(e);let a;r?n?a=(1n<<BigInt(r)*8n-1n)-1n:a=2n**(BigInt(r)*8n)-1n:typeof e=="number"&&(a=BigInt(Number.MAX_SAFE_INTEGER));const c=typeof a=="bigint"&&n?-a-1n:0;if(a&&i>a||i<c){const f=typeof e=="bigint"?"n":"";throw new s2({max:a?`${a}${f}`:void 0,min:`${c}${f}`,signed:n,size:r,value:`${e}${f}`})}const d=`0x${(n&&i<0?BigInt.asUintN(r*8,BigInt(i)):i).toString(16)}`;return r?Oi(d,r):d}function fm(e,t={}){return or(c7.encode(e),t)}function Oi(e,t){return X6(e,{dir:"left",size:t})}function Ri(e,t){return X6(e,{dir:"right",size:t})}function br(e,t,n,r={}){const{strict:i}=r;H4(e,t);const a=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return i&&V4(a,t,n),a}function bn(e){return Math.ceil((e.length-2)/2)}function o2(e,t={}){const{signed:n}=t;t.size&&Td(e,t.size);const r=BigInt(e);if(!n)return r;const i=(e.length-2)/2,a=(1n<<BigInt(i)*8n)-1n,c=a>>1n;return r<=c?r:r-a-1n}function i2(e,t={}){const{signed:n,size:r}=t;return Number(!n&&!r?e:o2(e,t))}function f7(e,t={}){const{strict:n=!1}=t;try{return u7(e,{strict:n}),!0}catch{return!1}}class s2 extends Ne{constructor({max:t,min:n,signed:r,size:i,value:a}){super(`Number \`${a}\` is not in safe${i?` ${i*8}-bit`:""}${r?" signed":" unsigned"} integer range ${t?`(\`${n}\` to \`${t}\`)`:`(above \`${n}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}}class Uv extends Ne{constructor(t){super(`Value \`${typeof t=="object"?e2(t):t}\` of type \`${typeof t}\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `"0x${string}"`.']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexTypeError"})}}class Wv extends Ne{constructor(t){super(`Value \`${t}\` is an invalid hex value.`,{metaMessages:['Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexValueError"})}}class h7 extends Ne{constructor({givenSize:t,maxSize:n}){super(`Size cannot exceed \`${n}\` bytes. Given size: \`${t}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}}class a2 extends Ne{constructor({offset:t,position:n,size:r}){super(`Slice ${n==="start"?"starting":"ending"} at offset \`${t}\` is out-of-bounds (size: \`${r}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SliceOffsetOutOfBoundsError"})}}class p7 extends Ne{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${t}\`) exceeds padding size (\`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}}function m7(e){return{address:e.address,amount:Wt(e.amount),index:Wt(e.index),validatorIndex:Wt(e.validatorIndex)}}function c2(e){return{...typeof e.baseFeePerGas=="bigint"&&{baseFeePerGas:Wt(e.baseFeePerGas)},...typeof e.blobBaseFee=="bigint"&&{blobBaseFee:Wt(e.blobBaseFee)},...typeof e.feeRecipient=="string"&&{feeRecipient:e.feeRecipient},...typeof e.gasLimit=="bigint"&&{gasLimit:Wt(e.gasLimit)},...typeof e.number=="bigint"&&{number:Wt(e.number)},...typeof e.prevRandao=="bigint"&&{prevRandao:Wt(e.prevRandao)},...typeof e.time=="bigint"&&{time:Wt(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(m7)}}}const g7="0x82ad56cb",l2="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",y7="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",v7="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572",hm="0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033",J0="/docs/contract/encodeDeployData";function pm(e){const{abi:t,args:n,bytecode:r}=e;if(!n||n.length===0)return r;const i=t.find(c=>"type"in c&&c.type==="constructor");if(!i)throw new V8({docsPath:J0});if(!("inputs"in i))throw new pv({docsPath:J0});if(!i.inputs||i.inputs.length===0)throw new pv({docsPath:J0});const a=zi(i.inputs,n);return ir([r,a])}class gi extends ne{constructor({cause:t,message:n}={}){var i;const r=(i=n==null?void 0:n.replace("execution reverted: ",""))==null?void 0:i.replace("execution reverted","");super(`Execution reverted ${r?`with reason: ${r}`:"for an unknown reason"}.`,{cause:t,name:"ExecutionRevertedError"})}}Object.defineProperty(gi,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(gi,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted|gas required exceeds allowance/});class Ni extends ne{constructor({cause:t,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${an(n)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:t,name:"FeeCapTooHighError"})}}Object.defineProperty(Ni,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class Jh extends ne{constructor({cause:t,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${an(n)}`:""} gwei) cannot be lower than the block base fee.`,{cause:t,name:"FeeCapTooLowError"})}}Object.defineProperty(Jh,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class Zh extends ne{constructor({cause:t,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:""}is higher than the next one expected.`,{cause:t,name:"NonceTooHighError"})}}Object.defineProperty(Zh,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class Xh extends ne{constructor({cause:t,nonce:n}={}){super([`Nonce provided for the transaction ${n?`(${n}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join(`
78
+ `),{cause:t,name:"NonceTooLowError"})}}Object.defineProperty(Xh,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class ep extends ne{constructor({cause:t,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:""}exceeds the maximum allowed nonce.`,{cause:t,name:"NonceMaxValueError"})}}Object.defineProperty(ep,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class tp extends ne{constructor({cause:t}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join(`
79
+ `),{cause:t,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty(tp,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class np extends ne{constructor({cause:t,gas:n}={}){super(`The amount of gas ${n?`(${n}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:t,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(np,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class rp extends ne{constructor({cause:t,gas:n}={}){super(`The amount of gas ${n?`(${n}) `:""}provided for the transaction is too low.`,{cause:t,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(rp,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class op extends ne{constructor({cause:t}){super("The transaction type is not supported for this chain.",{cause:t,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(op,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class Bc extends ne{constructor({cause:t,maxPriorityFeePerGas:n,maxFeePerGas:r}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${n?` = ${an(n)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${an(r)} gwei`:""}).`].join(`
80
+ `),{cause:t,name:"TipAboveFeeCapError"})}}Object.defineProperty(Bc,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class nl extends ne{constructor({cause:t}){super(`An error occurred while executing: ${t==null?void 0:t.shortMessage}`,{cause:t,name:"UnknownNodeError"})}}function Od(e,t){const n=(e.details||"").toLowerCase(),r=e instanceof ne?e.walk(i=>(i==null?void 0:i.code)===gi.code):e;return r instanceof ne?new gi({cause:e,message:r.details}):gi.nodeMessage.test(n)?new gi({cause:e,message:e.details}):Ni.nodeMessage.test(n)?new Ni({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas}):Jh.nodeMessage.test(n)?new Jh({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas}):Zh.nodeMessage.test(n)?new Zh({cause:e,nonce:t==null?void 0:t.nonce}):Xh.nodeMessage.test(n)?new Xh({cause:e,nonce:t==null?void 0:t.nonce}):ep.nodeMessage.test(n)?new ep({cause:e,nonce:t==null?void 0:t.nonce}):tp.nodeMessage.test(n)?new tp({cause:e}):np.nodeMessage.test(n)?new np({cause:e,gas:t==null?void 0:t.gas}):rp.nodeMessage.test(n)?new rp({cause:e,gas:t==null?void 0:t.gas}):op.nodeMessage.test(n)?new op({cause:e}):Bc.nodeMessage.test(n)?new Bc({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas,maxPriorityFeePerGas:t==null?void 0:t.maxPriorityFeePerGas}):new nl({cause:e})}function u2(e,{docsPath:t,...n}){const r=(()=>{const i=Od(e,n);return i instanceof nl?e:i})();return new H6(r,{docsPath:t,...n})}function rl(e,{format:t}){if(!t)return{};const n={};function r(a){const c=Object.keys(a);for(const u of c)u in e&&(n[u]=e[u]),a[u]&&typeof a[u]=="object"&&!Array.isArray(a[u])&&r(a[u])}const i=t(e||{});return r(i),n}function mm(e,t){return({exclude:n,format:r})=>({exclude:n,format:(i,a)=>{const c=t(i,a);if(n)for(const u of n)delete c[u];return{...c,...r(i,a)}},type:e})}const w7={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function sa(e,t){const n={};return typeof e.authorizationList<"u"&&(n.authorizationList=b7(e.authorizationList)),typeof e.accessList<"u"&&(n.accessList=e.accessList),typeof e.blobVersionedHashes<"u"&&(n.blobVersionedHashes=e.blobVersionedHashes),typeof e.blobs<"u"&&(typeof e.blobs[0]!="string"?n.blobs=e.blobs.map(r=>at(r)):n.blobs=e.blobs),typeof e.data<"u"&&(n.data=e.data),e.account&&(n.from=e.account.address),typeof e.from<"u"&&(n.from=e.from),typeof e.gas<"u"&&(n.gas=ce(e.gas)),typeof e.gasPrice<"u"&&(n.gasPrice=ce(e.gasPrice)),typeof e.maxFeePerBlobGas<"u"&&(n.maxFeePerBlobGas=ce(e.maxFeePerBlobGas)),typeof e.maxFeePerGas<"u"&&(n.maxFeePerGas=ce(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<"u"&&(n.maxPriorityFeePerGas=ce(e.maxPriorityFeePerGas)),typeof e.nonce<"u"&&(n.nonce=ce(e.nonce)),typeof e.to<"u"&&(n.to=e.to),typeof e.type<"u"&&(n.type=w7[e.type]),typeof e.value<"u"&&(n.value=ce(e.value)),n}function b7(e){return e.map(t=>({address:t.address,r:t.r?ce(BigInt(t.r)):t.r,s:t.s?ce(BigInt(t.s)):t.s,chainId:ce(t.chainId),nonce:ce(t.nonce),...typeof t.yParity<"u"?{yParity:ce(t.yParity)}:{},...typeof t.v<"u"&&typeof t.yParity>"u"?{v:ce(t.v)}:{}}))}function d2(){let e=()=>{},t=()=>{};return{promise:new Promise((r,i)=>{e=r,t=i}),resolve:e,reject:t}}const Z0=new Map;function f2({fn:e,id:t,shouldSplitBatch:n,wait:r=0,sort:i}){const a=async()=>{const p=d();c();const g=p.map(({args:m})=>m);g.length!==0&&e(g).then(m=>{i&&Array.isArray(m)&&m.sort(i);for(let y=0;y<p.length;y++){const{resolve:w}=p[y];w==null||w([m[y],m])}}).catch(m=>{for(let y=0;y<p.length;y++){const{reject:w}=p[y];w==null||w(m)}})},c=()=>Z0.delete(t),u=()=>d().map(({args:p})=>p),d=()=>Z0.get(t)||[],f=p=>Z0.set(t,[...d(),p]);return{flush:c,async schedule(p){const{promise:g,resolve:m,reject:y}=d2();return(n==null?void 0:n([...u(),p]))&&a(),d().length>0?(f({args:p,resolve:m,reject:y}),g):(f({args:p,resolve:m,reject:y}),setTimeout(a,r),g)}}}function $v(e){if(!(!e||e.length===0))return e.reduce((t,{slot:n,value:r})=>{if(n.length!==66)throw new yv({size:n.length,targetSize:66,type:"hex"});if(r.length!==66)throw new yv({size:r.length,targetSize:66,type:"hex"});return t[n]=r,t},{})}function x7(e){const{balance:t,nonce:n,state:r,stateDiff:i,code:a}=e,c={};if(a!==void 0&&(c.code=a),t!==void 0&&(c.balance=ce(t)),n!==void 0&&(c.nonce=ce(n)),r!==void 0&&(c.state=$v(r)),i!==void 0){if(c.state)throw new g4;c.stateDiff=$v(i)}return c}function gm(e){if(!e)return;const t={};for(const{address:n,...r}of e){if(!ct(n,{strict:!1}))throw new Vt({address:n});if(t[n])throw new m4({address:n});t[n]=x7(r)}return t}const Rd=2n**256n-1n;function Wi(e){const{account:t,maxFeePerGas:n,maxPriorityFeePerGas:r,to:i}=e,a=t?kt(t):void 0;if(a&&!ct(a.address))throw new Vt({address:a.address});if(i&&!ct(i))throw new Vt({address:i});if(n&&n>Rd)throw new Ni({maxFeePerGas:n});if(r&&n&&r>n)throw new Bc({maxFeePerGas:n,maxPriorityFeePerGas:r})}async function aa(e,t){var G,se,$,X;const{account:n=e.account,authorizationList:r,batch:i=!!((G=e.batch)!=null&&G.multicall),blockNumber:a,blockTag:c=e.experimental_blockTag??"latest",accessList:u,blobs:d,blockOverrides:f,code:p,data:g,factory:m,factoryData:y,gas:w,gasPrice:b,maxFeePerBlobGas:E,maxFeePerGas:A,maxPriorityFeePerGas:j,nonce:S,to:k,value:I,stateOverride:P,..._}=t,T=n?kt(n):void 0;if(p&&(m||y))throw new ne("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(p&&k)throw new ne("Cannot provide both `code` & `to` as parameters.");const M=p&&g,V=m&&y&&k&&g,Q=M||V,Z=M?h2({code:p,data:g}):V?A7({data:g,factory:m,factoryData:y,to:k}):g;try{Wi(t);const z=(typeof a=="bigint"?ce(a):void 0)||c,J=f?c2(f):void 0,Y=gm(P),L=(X=($=(se=e.chain)==null?void 0:se.formatters)==null?void 0:$.transactionRequest)==null?void 0:X.format,we=(L||sa)({...rl(_,{format:L}),accessList:u,account:T,authorizationList:r,blobs:d,data:Z,gas:w,gasPrice:b,maxFeePerBlobGas:E,maxFeePerGas:A,maxPriorityFeePerGas:j,nonce:S,to:Q?void 0:k,value:I},"call");if(i&&C7({request:we})&&!Y&&!J)try{return await E7(e,{...we,blockNumber:a,blockTag:c})}catch(he){if(!(he instanceof z6)&&!(he instanceof Qh))throw he}const oe=(()=>{const he=[we,z];return Y&&J?[...he,Y,J]:Y?[...he,Y]:J?[...he,{},J]:he})(),le=await e.request({method:"eth_call",params:oe});return le==="0x"?{data:void 0}:{data:le}}catch(te){const z=k7(te),{offchainLookup:J,offchainLookupSignature:Y}=await de(async()=>{const{offchainLookup:L,offchainLookupSignature:ee}=await import("./ccip-DzXGS3YO.js");return{offchainLookup:L,offchainLookupSignature:ee}},[]);if(e.ccipRead!==!1&&(z==null?void 0:z.slice(0,10))===Y&&k)return{data:await J(e,{data:z,to:k})};throw Q&&(z==null?void 0:z.slice(0,10))==="0x101bb98d"?new S4({factory:m}):u2(te,{...t,account:T,chain:e.chain})}}function C7({request:e}){const{data:t,to:n,...r}=e;return!(!t||t.startsWith(g7)||!n||Object.values(r).filter(i=>typeof i<"u").length>0)}async function E7(e,t){var b;const{batchSize:n=1024,deployless:r=!1,wait:i=0}=typeof((b=e.batch)==null?void 0:b.multicall)=="object"?e.batch.multicall:{},{blockNumber:a,blockTag:c=e.experimental_blockTag??"latest",data:u,to:d}=t,f=(()=>{if(r)return null;if(t.multicallAddress)return t.multicallAddress;if(e.chain)return ia({blockNumber:a,chain:e.chain,contract:"multicall3"});throw new z6})(),g=(typeof a=="bigint"?ce(a):void 0)||c,{schedule:m}=f2({id:`${e.uid}.${g}`,wait:i,shouldSplitBatch(E){return E.reduce((j,{data:S})=>j+(S.length-2),0)>n*2},fn:async E=>{const A=E.map(k=>({allowFailure:!0,callData:k.data,target:k.to})),j=xn({abi:Vs,args:[A],functionName:"aggregate3"}),S=await e.request({method:"eth_call",params:[{...f===null?{data:h2({code:hm,data:j})}:{to:f,data:j}},g]});return Go({abi:Vs,args:[A],functionName:"aggregate3",data:S||"0x"})}}),[{returnData:y,success:w}]=await m({data:u,to:d});if(!w)throw new jd({data:y});return y==="0x"?{data:void 0}:{data:y}}function h2(e){const{code:t,data:n}=e;return pm({abi:Ad(["constructor(bytes, bytes)"]),bytecode:l2,args:[t,n]})}function A7(e){const{data:t,factory:n,factoryData:r,to:i}=e;return pm({abi:Ad(["constructor(address, bytes, address, bytes)"]),bytecode:y7,args:[i,t,n,r]})}function k7(e){var n;if(!(e instanceof ne))return;const t=e.walk();return typeof(t==null?void 0:t.data)=="object"?(n=t.data)==null?void 0:n.data:t.data}async function Ln(e,t){const{abi:n,address:r,args:i,functionName:a,...c}=t,u=xn({abi:n,args:i,functionName:a});try{const{data:d}=await Ee(e,aa,"call")({...c,data:u,to:r});return Go({abi:n,args:i,functionName:a,data:d||"0x"})}catch(d){throw Ti(d,{abi:n,address:r,args:i,docsPath:"/docs/contract/readContract",functionName:a})}}async function S7(e,t){const{blockNumber:n,blockTag:r,coinType:i,name:a,gatewayUrls:c,strict:u}=t,{chain:d}=e,f=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!d)throw new Error("client chain not configured. universalResolverAddress is required.");return ia({blockNumber:n,chain:d,contract:"ensUniversalResolver"})})(),p=d==null?void 0:d.ensTlds;if(p&&!p.some(m=>a.endsWith(m)))return null;const g=i!=null?[Kh(a),BigInt(i)]:[Kh(a)];try{const m=xn({abi:fv,functionName:"addr",args:g}),y={address:f,abi:n6,functionName:"resolveWithGateways",args:[sn(am(a)),m,c??[Bd]],blockNumber:n,blockTag:r},b=await Ee(e,Ln,"readContract")(y);if(b[0]==="0x")return null;const E=Go({abi:fv,args:g,functionName:"addr",data:b[0]});return E==="0x"||vn(E)==="0x00"?null:E}catch(m){if(u)throw m;if(sm(m))return null;throw m}}class I7 extends ne{constructor({data:t}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(t)}`],name:"EnsAvatarInvalidMetadataError"})}}class Ja extends ne{constructor({reason:t}){super(`ENS NFT avatar URI is invalid. ${t}`,{name:"EnsAvatarInvalidNftUriError"})}}class ym extends ne{constructor({uri:t}){super(`Unable to resolve ENS avatar URI "${t}". The URI may be malformed, invalid, or does not respond with a valid image.`,{name:"EnsAvatarUriResolutionError"})}}class j7 extends ne{constructor({namespace:t}){super(`ENS NFT avatar namespace "${t}" is not supported. Must be "erc721" or "erc1155".`,{name:"EnsAvatarUnsupportedNamespaceError"})}}const B7=/(?<protocol>https?:\/\/[^/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,_7=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?<target>[\w\-.]+))?(?<subtarget>\/.*)?$/,P7=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,T7=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function O7(e){try{const t=await fetch(e,{method:"HEAD"});if(t.status===200){const n=t.headers.get("content-type");return n==null?void 0:n.startsWith("image/")}return!1}catch(t){return typeof t=="object"&&typeof t.response<"u"||!Object.hasOwn(globalThis,"Image")?!1:new Promise(n=>{const r=new Image;r.onload=()=>{n(!0)},r.onerror=()=>{n(!1)},r.src=e})}}function qv(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function p2({uri:e,gatewayUrls:t}){const n=P7.test(e);if(n)return{uri:e,isOnChain:!0,isEncoded:n};const r=qv(t==null?void 0:t.ipfs,"https://ipfs.io"),i=qv(t==null?void 0:t.arweave,"https://arweave.net"),a=e.match(B7),{protocol:c,subpath:u,target:d,subtarget:f=""}=(a==null?void 0:a.groups)||{},p=c==="ipns:/"||u==="ipns/",g=c==="ipfs:/"||u==="ipfs/"||_7.test(e);if(e.startsWith("http")&&!p&&!g){let y=e;return t!=null&&t.arweave&&(y=e.replace(/https:\/\/arweave.net/g,t==null?void 0:t.arweave)),{uri:y,isOnChain:!1,isEncoded:!1}}if((p||g)&&d)return{uri:`${r}/${p?"ipns":"ipfs"}/${d}${f}`,isOnChain:!1,isEncoded:!1};if(c==="ar:/"&&d)return{uri:`${i}/${d}${f||""}`,isOnChain:!1,isEncoded:!1};let m=e.replace(T7,"");if(m.startsWith("<svg")&&(m=`data:image/svg+xml;base64,${btoa(m)}`),m.startsWith("data:")||m.startsWith("{"))return{uri:m,isOnChain:!0,isEncoded:!1};throw new ym({uri:e})}function m2(e){if(typeof e!="object"||!("image"in e)&&!("image_url"in e)&&!("image_data"in e))throw new I7({data:e});return e.image||e.image_url||e.image_data}async function R7({gatewayUrls:e,uri:t}){try{const n=await fetch(t).then(i=>i.json());return await vm({gatewayUrls:e,uri:m2(n)})}catch{throw new ym({uri:t})}}async function vm({gatewayUrls:e,uri:t}){const{uri:n,isOnChain:r}=p2({uri:t,gatewayUrls:e});if(r||await O7(n))return n;throw new ym({uri:t})}function N7(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));const[n,r,i]=t.split("/"),[a,c]=n.split(":"),[u,d]=r.split(":");if(!a||a.toLowerCase()!=="eip155")throw new Ja({reason:"Only EIP-155 supported"});if(!c)throw new Ja({reason:"Chain ID not found"});if(!d)throw new Ja({reason:"Contract address not found"});if(!i)throw new Ja({reason:"Token ID not found"});if(!u)throw new Ja({reason:"ERC namespace not found"});return{chainID:Number.parseInt(c,10),namespace:u.toLowerCase(),contractAddress:d,tokenID:i}}async function M7(e,{nft:t}){if(t.namespace==="erc721")return Ln(e,{address:t.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(t.tokenID)]});if(t.namespace==="erc1155")return Ln(e,{address:t.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(t.tokenID)]});throw new j7({namespace:t.namespace})}async function D7(e,{gatewayUrls:t,record:n}){return/eip155:/i.test(n)?L7(e,{gatewayUrls:t,record:n}):vm({uri:n,gatewayUrls:t})}async function L7(e,{gatewayUrls:t,record:n}){const r=N7(n),i=await M7(e,{nft:r}),{uri:a,isOnChain:c,isEncoded:u}=p2({uri:i,gatewayUrls:t});if(c&&(a.includes("data:application/json;base64,")||a.startsWith("{"))){const f=u?atob(a.replace("data:application/json;base64,","")):a,p=JSON.parse(f);return vm({uri:m2(p),gatewayUrls:t})}let d=r.tokenID;return r.namespace==="erc1155"&&(d=d.replace("0x","").padStart(64,"0")),R7({gatewayUrls:t,uri:a.replace(/(?:0x)?{id}/,d)})}async function g2(e,t){const{blockNumber:n,blockTag:r,key:i,name:a,gatewayUrls:c,strict:u}=t,{chain:d}=e,f=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!d)throw new Error("client chain not configured. universalResolverAddress is required.");return ia({blockNumber:n,chain:d,contract:"ensUniversalResolver"})})(),p=d==null?void 0:d.ensTlds;if(p&&!p.some(g=>a.endsWith(g)))return null;try{const g={address:f,abi:n6,args:[sn(am(a)),xn({abi:dv,functionName:"text",args:[Kh(a),i]}),c??[Bd]],functionName:"resolveWithGateways",blockNumber:n,blockTag:r},y=await Ee(e,Ln,"readContract")(g);if(y[0]==="0x")return null;const w=Go({abi:dv,functionName:"text",data:y[0]});return w===""?null:w}catch(g){if(u)throw g;if(sm(g))return null;throw g}}async function y2(e,{blockNumber:t,blockTag:n,assetGatewayUrls:r,name:i,gatewayUrls:a,strict:c,universalResolverAddress:u}){const d=await Ee(e,g2,"getEnsText")({blockNumber:t,blockTag:n,key:"avatar",name:i,universalResolverAddress:u,gatewayUrls:a,strict:c});if(!d)return null;try{return await D7(e,{record:d,gatewayUrls:r})}catch{return null}}async function v2(e,t){const{address:n,blockNumber:r,blockTag:i,coinType:a=60n,gatewayUrls:c,strict:u}=t,{chain:d}=e,f=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!d)throw new Error("client chain not configured. universalResolverAddress is required.");return ia({blockNumber:r,chain:d,contract:"ensUniversalResolver"})})();try{const p={address:f,abi:q8,args:[n,a,c??[Bd]],functionName:"reverseWithGateways",blockNumber:r,blockTag:i},g=Ee(e,Ln,"readContract"),[m]=await g(p);return m||null}catch(p){if(u)throw p;if(sm(p))return null;throw p}}async function F7(e,t){const{blockNumber:n,blockTag:r,name:i}=t,{chain:a}=e,c=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!a)throw new Error("client chain not configured. universalResolverAddress is required.");return ia({blockNumber:n,chain:a,contract:"ensUniversalResolver"})})(),u=a==null?void 0:a.ensTlds;if(u&&!u.some(f=>i.endsWith(f)))throw new Error(`${i} is not a valid ENS TLD (${u==null?void 0:u.join(", ")}) for chain "${a.name}" (id: ${a.id}).`);const[d]=await Ee(e,Ln,"readContract")({address:c,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"},{type:"uint256"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[sn(am(i))],blockNumber:n,blockTag:r});return d}async function w2(e,t){var E,A,j;const{account:n=e.account,blockNumber:r,blockTag:i="latest",blobs:a,data:c,gas:u,gasPrice:d,maxFeePerBlobGas:f,maxFeePerGas:p,maxPriorityFeePerGas:g,to:m,value:y,...w}=t,b=n?kt(n):void 0;try{Wi(t);const k=(typeof r=="bigint"?ce(r):void 0)||i,I=(j=(A=(E=e.chain)==null?void 0:E.formatters)==null?void 0:A.transactionRequest)==null?void 0:j.format,_=(I||sa)({...rl(w,{format:I}),account:b,blobs:a,data:c,gas:u,gasPrice:d,maxFeePerBlobGas:f,maxFeePerGas:p,maxPriorityFeePerGas:g,to:m,value:y},"createAccessList"),T=await e.request({method:"eth_createAccessList",params:[_,k]});return{accessList:T.accessList,gasUsed:BigInt(T.gasUsed)}}catch(S){throw u2(S,{...t,account:b,chain:e.chain})}}function Nd(e,{method:t}){var r,i;const n={};return e.transport.type==="fallback"&&((i=(r=e.transport).onResponse)==null||i.call(r,({method:a,response:c,status:u,transport:d})=>{u==="success"&&t===a&&(n[c]=d.request)})),(a=>n[a]||e.request)}async function z7(e){const t=Nd(e,{method:"eth_newBlockFilter"}),n=await e.request({method:"eth_newBlockFilter"});return{id:n,request:t(n),type:"block"}}class U7 extends ne{constructor(t){super(`Filter type "${t}" is not supported.`,{name:"FilterTypeNotSupportedError"})}}const Hv="/docs/contract/encodeEventTopics";function ol(e){var d;const{abi:t,eventName:n,args:r}=e;let i=t[0];if(n){const f=Ui({abi:t,name:n});if(!f)throw new gv(n,{docsPath:Hv});i=f}if(i.type!=="event")throw new gv(void 0,{docsPath:Hv});const a=er(i),c=kd(a);let u=[];if(r&&"inputs"in i){const f=(d=i.inputs)==null?void 0:d.filter(g=>"indexed"in g&&g.indexed),p=Array.isArray(r)?r:Object.values(r).length>0?(f==null?void 0:f.map(g=>r[g.name]))??[]:[];p.length>0&&(u=(f==null?void 0:f.map((g,m)=>Array.isArray(p[m])?p[m].map((y,w)=>Vv({param:g,value:p[m][w]})):typeof p[m]<"u"&&p[m]!==null?Vv({param:g,value:p[m]}):null))??[])}return[c,...u]}function Vv({param:e,value:t}){if(e.type==="string"||e.type==="bytes")return Et(ra(t));if(e.type==="tuple"||e.type.match(/^(.*)\[(\d+)?\]$/))throw new U7(e.type);return zi([e],[t])}async function b2(e,t){const{address:n,abi:r,args:i,eventName:a,fromBlock:c,strict:u,toBlock:d}=t,f=Nd(e,{method:"eth_newFilter"}),p=a?ol({abi:r,args:i,eventName:a}):void 0,g=await e.request({method:"eth_newFilter",params:[{address:n,fromBlock:typeof c=="bigint"?ce(c):c,toBlock:typeof d=="bigint"?ce(d):d,topics:p}]});return{abi:r,args:i,eventName:a,id:g,request:f(g),strict:!!u,type:"event"}}async function x2(e,{address:t,args:n,event:r,events:i,fromBlock:a,strict:c,toBlock:u}={}){const d=i??(r?[r]:void 0),f=Nd(e,{method:"eth_newFilter"});let p=[];d&&(p=[d.flatMap(y=>ol({abi:[y],eventName:y.name,args:n}))],r&&(p=p[0]));const g=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:typeof a=="bigint"?ce(a):a,toBlock:typeof u=="bigint"?ce(u):u,...p.length?{topics:p}:{}}]});return{abi:d,args:n,eventName:r?r.name:void 0,fromBlock:a,id:g,request:f(g),strict:!!c,toBlock:u,type:"event"}}async function C2(e){const t=Nd(e,{method:"eth_newPendingTransactionFilter"}),n=await e.request({method:"eth_newPendingTransactionFilter"});return{id:n,request:t(n),type:"transaction"}}function W7(e){const t=Et(`0x${e.substring(4)}`).substring(26);return Cd(`0x${t}`)}async function $7({hash:e,signature:t}){const n=xr(e)?e:sn(e),{secp256k1:r}=await de(async()=>{const{secp256k1:c}=await Promise.resolve().then(()=>f9);return{secp256k1:c}},void 0);return`0x${(()=>{if(typeof t=="object"&&"r"in t&&"s"in t){const{r:f,s:p,v:g,yParity:m}=t,y=Number(m??g),w=Qv(y);return new r.Signature($t(f),$t(p)).addRecoveryBit(w)}const c=xr(t)?t:sn(t);if(Je(c)!==65)throw new Error("invalid signature length");const u=tr(`0x${c.slice(130)}`),d=Qv(u);return r.Signature.fromCompact(c.substring(2,130)).addRecoveryBit(d)})().recoverPublicKey(n.substring(2)).toHex(!1)}`}function Qv(e){if(e===0||e===1)return e;if(e===27)return 0;if(e===28)return 1;throw new Error("Invalid yParityOrV value")}async function ip({hash:e,signature:t}){return W7(await $7({hash:e,signature:t}))}function Ho(e,t="hex"){const n=E2(e),r=Zp(new Uint8Array(n.length));return n.encode(r),t==="hex"?at(r.bytes):r.bytes}function E2(e){return Array.isArray(e)?q7(e.map(t=>E2(t))):H7(e)}function q7(e){const t=e.reduce((i,a)=>i+a.length,0),n=A2(t);return{length:t<=55?1+t:1+n+t,encode(i){t<=55?i.pushByte(192+t):(i.pushByte(247+n),n===1?i.pushUint8(t):n===2?i.pushUint16(t):n===3?i.pushUint24(t):i.pushUint32(t));for(const{encode:a}of e)a(i)}}}function H7(e){const t=typeof e=="string"?nr(e):e,n=A2(t.length);return{length:t.length===1&&t[0]<128?1:t.length<=55?1+t.length:1+n+t.length,encode(i){t.length===1&&t[0]<128?i.pushBytes(t):t.length<=55?(i.pushByte(128+t.length),i.pushBytes(t)):(i.pushByte(183+n),n===1?i.pushUint8(t.length):n===2?i.pushUint16(t.length):n===3?i.pushUint24(t.length):i.pushUint32(t.length),i.pushBytes(t))}}}function A2(e){if(e<2**8)return 1;if(e<2**16)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new ne("Length is too large.")}function V7(e){const{chainId:t,nonce:n,to:r}=e,i=e.contractAddress??e.address,a=Et(ir(["0x05",Ho([t?ce(t):"0x",i,n?ce(n):"0x"])]));return r==="bytes"?nr(a):a}async function wm(e){const{authorization:t,signature:n}=e;return ip({hash:V7(t),signature:n??t})}class Q7 extends ne{constructor(t,{account:n,docsPath:r,chain:i,data:a,gas:c,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:f,nonce:p,to:g,value:m}){var w;const y=Zc({from:n==null?void 0:n.address,to:g,value:typeof m<"u"&&`${rm(m)} ${((w=i==null?void 0:i.nativeCurrency)==null?void 0:w.symbol)||"ETH"}`,data:a,gas:c,gasPrice:typeof u<"u"&&`${an(u)} gwei`,maxFeePerGas:typeof d<"u"&&`${an(d)} gwei`,maxPriorityFeePerGas:typeof f<"u"&&`${an(f)} gwei`,nonce:p});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Estimate Gas Arguments:",y].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}function G7(e,{docsPath:t,...n}){const r=(()=>{const i=Od(e,n);return i instanceof nl?e:i})();return new Q7(r,{docsPath:t,...n})}class k2 extends ne{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class bm extends ne{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class K7 extends ne{constructor({maxPriorityFeePerGas:t}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${an(t)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}class S2 extends ne{constructor({blockHash:t,blockNumber:n}){let r="Block";t&&(r=`Block at hash "${t}"`),n&&(r=`Block at number "${n}"`),super(`${r} could not be found.`,{name:"BlockNotFoundError"})}}const I2={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function il(e,t){const n={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?tr(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?tr(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?I2[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return e.authorizationList&&(n.authorizationList=J7(e.authorizationList)),n.yParity=(()=>{if(e.yParity)return Number(e.yParity);if(typeof n.v=="bigint"){if(n.v===0n||n.v===27n)return 0;if(n.v===1n||n.v===28n)return 1;if(n.v>=35n)return n.v%2n===0n?1:0}})(),n.type==="legacy"&&(delete n.accessList,delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas,delete n.yParity),n.type==="eip2930"&&(delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas),n.type==="eip1559"&&delete n.maxFeePerBlobGas,n}const Y7=mm("transaction",il);function J7(e){return e.map(t=>({address:t.address,chainId:Number(t.chainId),nonce:Number(t.nonce),r:t.r,s:t.s,yParity:Number(t.yParity)}))}function xm(e,t){const n=(e.transactions??[]).map(r=>typeof r=="string"?r:il(r));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:n,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}const Z7=mm("block",xm);async function Zn(e,{blockHash:t,blockNumber:n,blockTag:r=e.experimental_blockTag??"latest",includeTransactions:i}={}){var f,p,g;const a=i??!1,c=n!==void 0?ce(n):void 0;let u=null;if(t?u=await e.request({method:"eth_getBlockByHash",params:[t,a]},{dedupe:!0}):u=await e.request({method:"eth_getBlockByNumber",params:[c||r,a]},{dedupe:!!c}),!u)throw new S2({blockHash:t,blockNumber:n});return(((g=(p=(f=e.chain)==null?void 0:f.formatters)==null?void 0:p.block)==null?void 0:g.format)||xm)(u,"getBlock")}async function Cm(e){const t=await e.request({method:"eth_gasPrice"});return BigInt(t)}async function X7(e,t){return j2(e,t)}async function j2(e,t){var a,c;const{block:n,chain:r=e.chain,request:i}=t||{};try{const u=((a=r==null?void 0:r.fees)==null?void 0:a.maxPriorityFeePerGas)??((c=r==null?void 0:r.fees)==null?void 0:c.defaultPriorityFee);if(typeof u=="function"){const f=n||await Ee(e,Zn,"getBlock")({}),p=await u({block:f,client:e,request:i});if(p===null)throw new Error;return p}if(typeof u<"u")return u;const d=await e.request({method:"eth_maxPriorityFeePerGas"});return $t(d)}catch{const[u,d]=await Promise.all([n?Promise.resolve(n):Ee(e,Zn,"getBlock")({}),Ee(e,Cm,"getGasPrice")({})]);if(typeof u.baseFeePerGas!="bigint")throw new bm;const f=d-u.baseFeePerGas;return f<0n?0n:f}}async function ek(e,t){return sp(e,t)}async function sp(e,t){var m,y;const{block:n,chain:r=e.chain,request:i,type:a="eip1559"}=t||{},c=await(async()=>{var w,b;return typeof((w=r==null?void 0:r.fees)==null?void 0:w.baseFeeMultiplier)=="function"?r.fees.baseFeeMultiplier({block:n,client:e,request:i}):((b=r==null?void 0:r.fees)==null?void 0:b.baseFeeMultiplier)??1.2})();if(c<1)throw new k2;const d=10**(((m=c.toString().split(".")[1])==null?void 0:m.length)??0),f=w=>w*BigInt(Math.ceil(c*d))/BigInt(d),p=n||await Ee(e,Zn,"getBlock")({});if(typeof((y=r==null?void 0:r.fees)==null?void 0:y.estimateFeesPerGas)=="function"){const w=await r.fees.estimateFeesPerGas({block:n,client:e,multiply:f,request:i,type:a});if(w!==null)return w}if(a==="eip1559"){if(typeof p.baseFeePerGas!="bigint")throw new bm;const w=typeof(i==null?void 0:i.maxPriorityFeePerGas)=="bigint"?i.maxPriorityFeePerGas:await j2(e,{block:p,chain:r,request:i}),b=f(p.baseFeePerGas);return{maxFeePerGas:(i==null?void 0:i.maxFeePerGas)??b+w,maxPriorityFeePerGas:w}}return{gasPrice:(i==null?void 0:i.gasPrice)??f(await Ee(e,Cm,"getGasPrice")({}))}}async function B2(e,{address:t,blockTag:n="latest",blockNumber:r}){const i=await e.request({method:"eth_getTransactionCount",params:[t,typeof r=="bigint"?ce(r):n]},{dedupe:!!r});return tr(i)}function Em(e){const{kzg:t}=e,n=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),r=typeof e.blobs[0]=="string"?e.blobs.map(a=>nr(a)):e.blobs,i=[];for(const a of r)i.push(Uint8Array.from(t.blobToKzgCommitment(a)));return n==="bytes"?i:i.map(a=>at(a))}function Am(e){const{kzg:t}=e,n=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),r=typeof e.blobs[0]=="string"?e.blobs.map(c=>nr(c)):e.blobs,i=typeof e.commitments[0]=="string"?e.commitments.map(c=>nr(c)):e.commitments,a=[];for(let c=0;c<r.length;c++){const u=r[c],d=i[c];a.push(Uint8Array.from(t.computeBlobKzgProof(u,d)))}return n==="bytes"?a:a.map(c=>at(c))}function tk(e,t,n,r){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,n,r);const i=BigInt(32),a=BigInt(4294967295),c=Number(n>>i&a),u=Number(n&a),d=r?4:0,f=r?0:4;e.setUint32(t+d,c,r),e.setUint32(t+f,u,r)}function nk(e,t,n){return e&t^~e&n}function rk(e,t,n){return e&t^e&n^t&n}class _2 extends Yp{constructor(t,n,r,i){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=n,this.padOffset=r,this.isLE=i,this.buffer=new Uint8Array(t),this.view=W0(this.buffer)}update(t){Ks(this),t=bd(t),Uo(t);const{view:n,buffer:r,blockLen:i}=this,a=t.length;for(let c=0;c<a;){const u=Math.min(i-this.pos,a-c);if(u===i){const d=W0(t);for(;i<=a-c;c+=i)this.process(d,c);continue}r.set(t.subarray(c,c+u),this.pos),this.pos+=u,c+=u,this.pos===i&&(this.process(n,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){Ks(this),m6(t,this),this.finished=!0;const{buffer:n,view:r,blockLen:i,isLE:a}=this;let{pos:c}=this;n[c++]=128,Wo(this.buffer.subarray(c)),this.padOffset>i-c&&(this.process(r,0),c=0);for(let g=c;g<i;g++)n[g]=0;tk(r,i-8,BigInt(this.length*8),a),this.process(r,0);const u=W0(t),d=this.outputLen;if(d%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const f=d/4,p=this.get();if(f>p.length)throw new Error("_sha2: outputLen bigger than state");for(let g=0;g<f;g++)u.setUint32(4*g,p[g],a)}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const r=t.slice(0,n);return this.destroy(),r}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:n,buffer:r,length:i,finished:a,destroyed:c,pos:u}=this;return t.destroyed=c,t.finished=a,t.length=i,t.pos=u,i%n&&t.buffer.set(r),t}clone(){return this._cloneInto()}}const Ao=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Tt=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),Ot=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),ok=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),ko=new Uint32Array(64);class ik extends _2{constructor(t=32){super(64,t,8,!1),this.A=Ao[0]|0,this.B=Ao[1]|0,this.C=Ao[2]|0,this.D=Ao[3]|0,this.E=Ao[4]|0,this.F=Ao[5]|0,this.G=Ao[6]|0,this.H=Ao[7]|0}get(){const{A:t,B:n,C:r,D:i,E:a,F:c,G:u,H:d}=this;return[t,n,r,i,a,c,u,d]}set(t,n,r,i,a,c,u,d){this.A=t|0,this.B=n|0,this.C=r|0,this.D=i|0,this.E=a|0,this.F=c|0,this.G=u|0,this.H=d|0}process(t,n){for(let g=0;g<16;g++,n+=4)ko[g]=t.getUint32(n,!1);for(let g=16;g<64;g++){const m=ko[g-15],y=ko[g-2],w=fr(m,7)^fr(m,18)^m>>>3,b=fr(y,17)^fr(y,19)^y>>>10;ko[g]=b+ko[g-7]+w+ko[g-16]|0}let{A:r,B:i,C:a,D:c,E:u,F:d,G:f,H:p}=this;for(let g=0;g<64;g++){const m=fr(u,6)^fr(u,11)^fr(u,25),y=p+m+nk(u,d,f)+ok[g]+ko[g]|0,b=(fr(r,2)^fr(r,13)^fr(r,22))+rk(r,i,a)|0;p=f,f=d,d=u,u=c+y|0,c=a,a=i,i=r,r=y+b|0}r=r+this.A|0,i=i+this.B|0,a=a+this.C|0,c=c+this.D|0,u=u+this.E|0,d=d+this.F|0,f=f+this.G|0,p=p+this.H|0,this.set(r,i,a,c,u,d,f,p)}roundClean(){Wo(ko)}destroy(){this.set(0,0,0,0,0,0,0,0),Wo(this.buffer)}}const P2=p6(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),sk=P2[0],ak=P2[1],So=new Uint32Array(80),Io=new Uint32Array(80);class T2 extends _2{constructor(t=64){super(128,t,16,!1),this.Ah=Ot[0]|0,this.Al=Ot[1]|0,this.Bh=Ot[2]|0,this.Bl=Ot[3]|0,this.Ch=Ot[4]|0,this.Cl=Ot[5]|0,this.Dh=Ot[6]|0,this.Dl=Ot[7]|0,this.Eh=Ot[8]|0,this.El=Ot[9]|0,this.Fh=Ot[10]|0,this.Fl=Ot[11]|0,this.Gh=Ot[12]|0,this.Gl=Ot[13]|0,this.Hh=Ot[14]|0,this.Hl=Ot[15]|0}get(){const{Ah:t,Al:n,Bh:r,Bl:i,Ch:a,Cl:c,Dh:u,Dl:d,Eh:f,El:p,Fh:g,Fl:m,Gh:y,Gl:w,Hh:b,Hl:E}=this;return[t,n,r,i,a,c,u,d,f,p,g,m,y,w,b,E]}set(t,n,r,i,a,c,u,d,f,p,g,m,y,w,b,E){this.Ah=t|0,this.Al=n|0,this.Bh=r|0,this.Bl=i|0,this.Ch=a|0,this.Cl=c|0,this.Dh=u|0,this.Dl=d|0,this.Eh=f|0,this.El=p|0,this.Fh=g|0,this.Fl=m|0,this.Gh=y|0,this.Gl=w|0,this.Hh=b|0,this.Hl=E|0}process(t,n){for(let S=0;S<16;S++,n+=4)So[S]=t.getUint32(n),Io[S]=t.getUint32(n+=4);for(let S=16;S<80;S++){const k=So[S-15]|0,I=Io[S-15]|0,P=vs(k,I,1)^vs(k,I,8)^bv(k,I,7),_=ws(k,I,1)^ws(k,I,8)^xv(k,I,7),T=So[S-2]|0,M=Io[S-2]|0,V=vs(T,M,19)^Su(T,M,61)^bv(T,M,6),Q=ws(T,M,19)^Iu(T,M,61)^xv(T,M,6),Z=CE(_,Q,Io[S-7],Io[S-16]),G=EE(Z,P,V,So[S-7],So[S-16]);So[S]=G|0,Io[S]=Z|0}let{Ah:r,Al:i,Bh:a,Bl:c,Ch:u,Cl:d,Dh:f,Dl:p,Eh:g,El:m,Fh:y,Fl:w,Gh:b,Gl:E,Hh:A,Hl:j}=this;for(let S=0;S<80;S++){const k=vs(g,m,14)^vs(g,m,18)^Su(g,m,41),I=ws(g,m,14)^ws(g,m,18)^Iu(g,m,41),P=g&y^~g&b,_=m&w^~m&E,T=AE(j,I,_,ak[S],Io[S]),M=kE(T,A,k,P,sk[S],So[S]),V=T|0,Q=vs(r,i,28)^Su(r,i,34)^Su(r,i,39),Z=ws(r,i,28)^Iu(r,i,34)^Iu(r,i,39),G=r&a^r&u^a&u,se=i&c^i&d^c&d;A=b|0,j=E|0,b=y|0,E=w|0,y=g|0,w=m|0,{h:g,l:m}=Nr(f|0,p|0,M|0,V|0),f=u|0,p=d|0,u=a|0,d=c|0,a=r|0,c=i|0;const $=bE(V,Z,se);r=xE($,M,Q,G),i=$|0}({h:r,l:i}=Nr(this.Ah|0,this.Al|0,r|0,i|0)),{h:a,l:c}=Nr(this.Bh|0,this.Bl|0,a|0,c|0),{h:u,l:d}=Nr(this.Ch|0,this.Cl|0,u|0,d|0),{h:f,l:p}=Nr(this.Dh|0,this.Dl|0,f|0,p|0),{h:g,l:m}=Nr(this.Eh|0,this.El|0,g|0,m|0),{h:y,l:w}=Nr(this.Fh|0,this.Fl|0,y|0,w|0),{h:b,l:E}=Nr(this.Gh|0,this.Gl|0,b|0,E|0),{h:A,l:j}=Nr(this.Hh|0,this.Hl|0,A|0,j|0),this.set(r,i,a,c,u,d,f,p,g,m,y,w,b,E,A,j)}roundClean(){Wo(So,Io)}destroy(){Wo(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class ck extends T2{constructor(){super(48),this.Ah=Tt[0]|0,this.Al=Tt[1]|0,this.Bh=Tt[2]|0,this.Bl=Tt[3]|0,this.Ch=Tt[4]|0,this.Cl=Tt[5]|0,this.Dh=Tt[6]|0,this.Dl=Tt[7]|0,this.Eh=Tt[8]|0,this.El=Tt[9]|0,this.Fh=Tt[10]|0,this.Fl=Tt[11]|0,this.Gh=Tt[12]|0,this.Gl=Tt[13]|0,this.Hh=Tt[14]|0,this.Hl=Tt[15]|0}}const O2=xd(()=>new ik),aM=xd(()=>new T2),cM=xd(()=>new ck),lk=O2;function uk(e,t){return lk(xr(e,{strict:!1})?ra(e):e)}function dk(e){const{commitment:t,version:n=1}=e,r=e.to??(typeof t=="string"?"hex":"bytes"),i=uk(t);return i.set([n],0),r==="bytes"?i:at(i)}function R2(e){const{commitments:t,version:n}=e,r=e.to??(typeof t[0]=="string"?"hex":"bytes"),i=[];for(const a of t)i.push(dk({commitment:a,to:r,version:n}));return i}const Gv=6,N2=32,km=4096,M2=N2*km,Kv=M2*Gv-1-1*km*Gv,D2=1;class fk extends ne{constructor({maxSize:t,size:n}){super("Blob size is too large.",{metaMessages:[`Max: ${t} bytes`,`Given: ${n} bytes`],name:"BlobSizeTooLargeError"})}}class L2 extends ne{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class hk extends ne{constructor({hash:t,size:n}){super(`Versioned hash "${t}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${n}`],name:"InvalidVersionedHashSizeError"})}}class pk extends ne{constructor({hash:t,version:n}){super(`Versioned hash "${t}" version is invalid.`,{metaMessages:[`Expected: ${D2}`,`Received: ${n}`],name:"InvalidVersionedHashVersionError"})}}function mk(e){const t=e.to??(typeof e.data=="string"?"hex":"bytes"),n=typeof e.data=="string"?nr(e.data):e.data,r=Je(n);if(!r)throw new L2;if(r>Kv)throw new fk({maxSize:Kv,size:r});const i=[];let a=!0,c=0;for(;a;){const u=Zp(new Uint8Array(M2));let d=0;for(;d<km;){const f=n.slice(c,c+(N2-1));if(u.pushByte(0),u.pushBytes(f),f.length<31){u.pushByte(128),a=!1;break}d++,c+=31}i.push(u)}return t==="bytes"?i.map(u=>u.bytes):i.map(u=>at(u.bytes))}function F2(e){const{data:t,kzg:n,to:r}=e,i=e.blobs??mk({data:t,to:r}),a=e.commitments??Em({blobs:i,kzg:n,to:r}),c=e.proofs??Am({blobs:i,commitments:a,kzg:n,to:r}),u=[];for(let d=0;d<i.length;d++)u.push({blob:i[d],commitment:a[d],proof:c[d]});return u}function z2(e){if(e.type)return e.type;if(typeof e.authorizationList<"u")return"eip7702";if(typeof e.blobs<"u"||typeof e.blobVersionedHashes<"u"||typeof e.maxFeePerBlobGas<"u"||typeof e.sidecars<"u")return"eip4844";if(typeof e.maxFeePerGas<"u"||typeof e.maxPriorityFeePerGas<"u")return"eip1559";if(typeof e.gasPrice<"u")return typeof e.accessList<"u"?"eip2930":"legacy";throw new w4({transaction:e})}function U2(e,{docsPath:t,...n}){const r=(()=>{const i=Od(e,n);return i instanceof nl?e:i})();return new x4(r,{docsPath:t,...n})}async function Md(e){const t=await e.request({method:"eth_chainId"},{dedupe:!0});return tr(t)}async function W2(e,t){var T,M,V,Q,Z;const{account:n=e.account,accessList:r,authorizationList:i,chain:a=e.chain,blobVersionedHashes:c,blobs:u,data:d,gas:f,gasPrice:p,maxFeePerBlobGas:g,maxFeePerGas:m,maxPriorityFeePerGas:y,nonce:w,nonceManager:b,to:E,type:A,value:j,...S}=t,k=await(async()=>{if(!n||!b||typeof w<"u")return w;const G=kt(n),se=a?a.id:await Ee(e,Md,"getChainId")({});return await b.consume({address:G.address,chainId:se,client:e})})();Wi(t);const I=(M=(T=a==null?void 0:a.formatters)==null?void 0:T.transactionRequest)==null?void 0:M.format,_=(I||sa)({...rl(S,{format:I}),account:n?kt(n):void 0,accessList:r,authorizationList:i,blobs:u,blobVersionedHashes:c,data:d,gas:f,gasPrice:p,maxFeePerBlobGas:g,maxFeePerGas:m,maxPriorityFeePerGas:y,nonce:k,to:E,type:A,value:j},"fillTransaction");try{const G=await e.request({method:"eth_fillTransaction",params:[_]}),$=(((Q=(V=a==null?void 0:a.formatters)==null?void 0:V.transaction)==null?void 0:Q.format)||il)(G.tx);delete $.blockHash,delete $.blockNumber,delete $.r,delete $.s,delete $.transactionIndex,delete $.v,delete $.yParity,$.data=$.input,$.gas&&($.gas=t.gas??$.gas),$.gasPrice&&($.gasPrice=t.gasPrice??$.gasPrice),$.maxFeePerBlobGas&&($.maxFeePerBlobGas=t.maxFeePerBlobGas??$.maxFeePerBlobGas),$.maxFeePerGas&&($.maxFeePerGas=t.maxFeePerGas??$.maxFeePerGas),$.maxPriorityFeePerGas&&($.maxPriorityFeePerGas=t.maxPriorityFeePerGas??$.maxPriorityFeePerGas),$.nonce&&($.nonce=t.nonce??$.nonce);const X=await(async()=>{var Y,L;if(typeof((Y=a==null?void 0:a.fees)==null?void 0:Y.baseFeeMultiplier)=="function"){const ee=await Ee(e,Zn,"getBlock")({});return a.fees.baseFeeMultiplier({block:ee,client:e,request:t})}return((L=a==null?void 0:a.fees)==null?void 0:L.baseFeeMultiplier)??1.2})();if(X<1)throw new k2;const z=10**(((Z=X.toString().split(".")[1])==null?void 0:Z.length)??0),J=Y=>Y*BigInt(Math.ceil(X*z))/BigInt(z);return $.maxFeePerGas&&!t.maxFeePerGas&&($.maxFeePerGas=J($.maxFeePerGas)),$.gasPrice&&!t.gasPrice&&($.gasPrice=J($.gasPrice)),{raw:G.raw,transaction:{from:_.from,...$}}}catch(G){throw U2(G,{...t,chain:e.chain})}}const $2=["blobVersionedHashes","chainId","fees","gas","nonce","type"],Yv=new Map,X0=new Kc(128);async function Sm(e,t){var k,I,P;let n=t;n.account??(n.account=e.account),n.parameters??(n.parameters=$2);const{account:r,chain:i=e.chain,nonceManager:a,parameters:c}=n,u=(()=>{if(typeof(i==null?void 0:i.prepareTransactionRequest)=="function")return{fn:i.prepareTransactionRequest,runAt:["beforeFillTransaction"]};if(Array.isArray(i==null?void 0:i.prepareTransactionRequest))return{fn:i.prepareTransactionRequest[0],runAt:i.prepareTransactionRequest[1].runAt}})();let d;async function f(){return d||(typeof n.chainId<"u"?n.chainId:i?i.id:(d=await Ee(e,Md,"getChainId")({}),d))}const p=r&&kt(r);let g=n.nonce;if(c.includes("nonce")&&typeof g>"u"&&p&&a){const _=await f();g=await a.consume({address:p.address,chainId:_,client:e})}u!=null&&u.fn&&((k=u.runAt)!=null&&k.includes("beforeFillTransaction"))&&(n=await u.fn({...n,chain:i},{phase:"beforeFillTransaction"}),g??(g=n.nonce));const y=((c.includes("blobVersionedHashes")||c.includes("sidecars"))&&n.kzg&&n.blobs||X0.get(e.uid)===!1||!["fees","gas"].some(T=>c.includes(T))?!1:!!(c.includes("chainId")&&typeof n.chainId!="number"||c.includes("nonce")&&typeof g!="number"||c.includes("fees")&&typeof n.gasPrice!="bigint"&&(typeof n.maxFeePerGas!="bigint"||typeof n.maxPriorityFeePerGas!="bigint")||c.includes("gas")&&typeof n.gas!="bigint"))?await Ee(e,W2,"fillTransaction")({...n,nonce:g}).then(_=>{const{chainId:T,from:M,gas:V,gasPrice:Q,nonce:Z,maxFeePerBlobGas:G,maxFeePerGas:se,maxPriorityFeePerGas:$,type:X,...te}=_.transaction;return X0.set(e.uid,!0),{...n,...M?{from:M}:{},...X&&!n.type?{type:X}:{},...typeof T<"u"?{chainId:T}:{},...typeof V<"u"?{gas:V}:{},...typeof Q<"u"?{gasPrice:Q}:{},...typeof Z<"u"?{nonce:Z}:{},...typeof G<"u"&&n.type!=="legacy"&&n.type!=="eip2930"?{maxFeePerBlobGas:G}:{},...typeof se<"u"&&n.type!=="legacy"&&n.type!=="eip2930"?{maxFeePerGas:se}:{},...typeof $<"u"&&n.type!=="legacy"&&n.type!=="eip2930"?{maxPriorityFeePerGas:$}:{},..."nonceKey"in te&&typeof te.nonceKey<"u"?{nonceKey:te.nonceKey}:{},..."keyAuthorization"in te&&typeof te.keyAuthorization<"u"&&te.keyAuthorization!==null&&!("keyAuthorization"in n)?{keyAuthorization:te.keyAuthorization}:{},..."feePayerSignature"in te&&typeof te.feePayerSignature<"u"&&te.feePayerSignature!==null?{feePayerSignature:te.feePayerSignature}:{}}}).catch(_=>{var Q,Z;const T=_;if(T.name!=="TransactionExecutionError")return n;if((Q=T.walk)==null?void 0:Q.call(T,G=>G.name==="ExecutionRevertedError"))throw _;return((Z=T.walk)==null?void 0:Z.call(T,G=>{var $;const se=G;return se.name==="MethodNotFoundRpcError"||se.name==="MethodNotSupportedRpcError"||(($=se.message)==null?void 0:$.includes("eth_fillTransaction is not available"))}))&&X0.set(e.uid,!1),n}):n;g??(g=y.nonce),n={...y,...p?{from:p==null?void 0:p.address}:{},...g?{nonce:g}:{}};const{blobs:w,gas:b,kzg:E,type:A}=n;u!=null&&u.fn&&((I=u.runAt)!=null&&I.includes("beforeFillParameters"))&&(n=await u.fn({...n,chain:i},{phase:"beforeFillParameters"}));let j;async function S(){return j||(j=await Ee(e,Zn,"getBlock")({blockTag:"latest"}),j)}if(c.includes("nonce")&&typeof g>"u"&&p&&!a&&(n.nonce=await Ee(e,B2,"getTransactionCount")({address:p.address,blockTag:"pending"})),(c.includes("blobVersionedHashes")||c.includes("sidecars"))&&w&&E){const _=Em({blobs:w,kzg:E});if(c.includes("blobVersionedHashes")){const T=R2({commitments:_,to:"hex"});n.blobVersionedHashes=T}if(c.includes("sidecars")){const T=Am({blobs:w,commitments:_,kzg:E}),M=F2({blobs:w,commitments:_,proofs:T,to:"hex"});n.sidecars=M}}if(c.includes("chainId")&&(n.chainId=await f()),(c.includes("fees")||c.includes("type"))&&typeof A>"u")try{n.type=z2(n)}catch{let _=Yv.get(e.uid);if(typeof _>"u"){const T=await S();_=typeof(T==null?void 0:T.baseFeePerGas)=="bigint",Yv.set(e.uid,_)}n.type=_?"eip1559":"legacy"}if(c.includes("fees"))if(n.type!=="legacy"&&n.type!=="eip2930"){if(typeof n.maxFeePerGas>"u"||typeof n.maxPriorityFeePerGas>"u"){const _=await S(),{maxFeePerGas:T,maxPriorityFeePerGas:M}=await sp(e,{block:_,chain:i,request:n});if(typeof n.maxPriorityFeePerGas>"u"&&n.maxFeePerGas&&n.maxFeePerGas<M)throw new K7({maxPriorityFeePerGas:M});n.maxPriorityFeePerGas=M,n.maxFeePerGas=T}}else{if(typeof n.maxFeePerGas<"u"||typeof n.maxPriorityFeePerGas<"u")throw new bm;if(typeof n.gasPrice>"u"){const _=await S(),{gasPrice:T}=await sp(e,{block:_,chain:i,request:n,type:"legacy"});n.gasPrice=T}}return c.includes("gas")&&typeof b>"u"&&(n.gas=await Ee(e,Im,"estimateGas")({...n,account:p,prepare:(p==null?void 0:p.type)==="local"?[]:["blobVersionedHashes"]})),u!=null&&u.fn&&((P=u.runAt)!=null&&P.includes("afterFillParameters"))&&(n=await u.fn({...n,chain:i},{phase:"afterFillParameters"})),Wi(n),delete n.parameters,n}async function Im(e,t){var c,u,d;const{account:n=e.account,prepare:r=!0}=t,i=n?kt(n):void 0,a=(()=>{if(Array.isArray(r))return r;if((i==null?void 0:i.type)!=="local")return["blobVersionedHashes"]})();try{const f=await(async()=>{if(t.to)return t.to;if(t.authorizationList&&t.authorizationList.length>0)return await wm({authorization:t.authorizationList[0]}).catch(()=>{throw new ne("`to` is required. Could not infer from `authorizationList`")})})(),{accessList:p,authorizationList:g,blobs:m,blobVersionedHashes:y,blockNumber:w,blockTag:b,data:E,gas:A,gasPrice:j,maxFeePerBlobGas:S,maxFeePerGas:k,maxPriorityFeePerGas:I,nonce:P,value:_,stateOverride:T,...M}=r?await Sm(e,{...t,parameters:a,to:f}):t;if(A&&t.gas!==A)return A;const Q=(typeof w=="bigint"?ce(w):void 0)||b,Z=gm(T);Wi(t);const G=(d=(u=(c=e.chain)==null?void 0:c.formatters)==null?void 0:u.transactionRequest)==null?void 0:d.format,$=(G||sa)({...rl(M,{format:G}),account:i,accessList:p,authorizationList:g,blobs:m,blobVersionedHashes:y,data:E,gasPrice:j,maxFeePerBlobGas:S,maxFeePerGas:k,maxPriorityFeePerGas:I,nonce:P,to:f,value:_},"estimateGas");return BigInt(await e.request({method:"eth_estimateGas",params:Z?[$,Q??e.experimental_blockTag??"latest",Z]:Q?[$,Q]:[$]}))}catch(f){throw G7(f,{...t,account:i,chain:e.chain})}}async function gk(e,t){var f;const{abi:n,address:r,args:i,functionName:a,dataSuffix:c=typeof e.dataSuffix=="string"?e.dataSuffix:(f=e.dataSuffix)==null?void 0:f.value,...u}=t,d=xn({abi:n,args:i,functionName:a});try{return await Ee(e,Im,"estimateGas")({data:`${d}${c?c.replace("0x",""):""}`,to:r,...u})}catch(p){const g=u.account?kt(u.account):void 0;throw Ti(p,{abi:n,address:r,args:i,docsPath:"/docs/contract/estimateContractGas",functionName:a,sender:g==null?void 0:g.address})}}async function q2(e,{address:t,blockNumber:n,blockTag:r=e.experimental_blockTag??"latest"}){var c,u,d;if((c=e.batch)!=null&&c.multicall&&((d=(u=e.chain)==null?void 0:u.contracts)!=null&&d.multicall3)){const f=e.chain.contracts.multicall3.address,p=xn({abi:Vs,functionName:"getEthBalance",args:[t]}),{data:g}=await Ee(e,aa,"call")({to:f,data:p,blockNumber:n,blockTag:r});return Go({abi:Vs,functionName:"getEthBalance",args:[t],data:g||"0x"})}const i=typeof n=="bigint"?ce(n):void 0,a=await e.request({method:"eth_getBalance",params:[t,i||r]});return BigInt(a)}async function yk(e){const t=await e.request({method:"eth_blobBaseFee"});return BigInt(t)}const vk=new Map,wk=new Map;function bk(e){const t=(i,a)=>({clear:()=>a.delete(i),get:()=>a.get(i),set:c=>a.set(i,c)}),n=t(e,vk),r=t(e,wk);return{clear:()=>{n.clear(),r.clear()},promise:n,response:r}}async function xk(e,{cacheKey:t,cacheTime:n=Number.POSITIVE_INFINITY}){const r=bk(t),i=r.response.get();if(i&&n>0&&Date.now()-i.created.getTime()<n)return i.data;let a=r.promise.get();a||(a=e(),r.promise.set(a));try{const c=await a;return r.response.set({created:new Date,data:c}),c}finally{r.promise.clear()}}const Ck=e=>`blockNumber.${e}`;async function sl(e,{cacheTime:t=e.cacheTime}={}){const n=await xk(()=>e.request({method:"eth_blockNumber"}),{cacheKey:Ck(e.uid),cacheTime:t});return BigInt(n)}async function Ek(e,{blockHash:t,blockNumber:n,blockTag:r="latest"}={}){const i=n!==void 0?ce(n):void 0;let a;return t?a=await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]},{dedupe:!0}):a=await e.request({method:"eth_getBlockTransactionCountByNumber",params:[i||r]},{dedupe:!!i}),tr(a)}async function nd(e,{address:t,blockNumber:n,blockTag:r="latest"}){const i=n!==void 0?ce(n):void 0,a=await e.request({method:"eth_getCode",params:[t,i||r]},{dedupe:!!i});if(a!=="0x")return a}function _c(e,t){if(!ct(e,{strict:!1}))throw new Vt({address:e});if(!ct(t,{strict:!1}))throw new Vt({address:t});return e.toLowerCase()===t.toLowerCase()}function Cr(e,{args:t,eventName:n}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,blockTimestamp:e.blockTimestamp?BigInt(e.blockTimestamp):e.blockTimestamp===null?null:void 0,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...n?{args:t,eventName:n}:{}}}const Jv="/docs/contract/decodeEventLog";function rd(e){const{abi:t,data:n,strict:r,topics:i}=e,a=r??!0,[c,...u]=i;if(!c)throw new J8({docsPath:Jv});const d=t.find(A=>A.type==="event"&&c===kd(er(A)));if(!(d&&"name"in d)||d.type!=="event")throw new Z8(c,{docsPath:Jv});const{name:f,inputs:p}=d,g=p==null?void 0:p.some(A=>!("name"in A&&A.name)),m=g?[]:{},y=p.map((A,j)=>[A,j]).filter(([A])=>"indexed"in A&&A.indexed),w=[];for(let A=0;A<y.length;A++){const[j,S]=y[A],k=u[A];if(!k){if(a)throw new Gp({abiItem:d,param:j});w.push([j,S]);continue}m[g?S:j.name||S]=Ak({param:j,value:k})}const b=p.filter(A=>!("indexed"in A&&A.indexed)),E=a?b:[...w.map(([A])=>A),...b];if(E.length>0){if(n&&n!=="0x")try{const A=Yc(E,n);if(A){let j=0;if(!a)for(const[S,k]of w)m[g?k:S.name||k]=A[j++];if(g)for(let S=0;S<p.length;S++)m[S]===void 0&&j<A.length&&(m[S]=A[j++]);else for(let S=0;S<b.length;S++)m[b[S].name]=A[j++]}}catch(A){if(a)throw A instanceof s6||A instanceof C6?new Zu({abiItem:d,data:n,params:E,size:Je(n)}):A}else if(a)throw new Zu({abiItem:d,data:"0x",params:E,size:0})}return{eventName:f,args:Object.values(m).length>0?m:void 0}}function Ak({param:e,value:t}){return e.type==="string"||e.type==="bytes"||e.type==="tuple"||e.type.match(/^(.*)\[(\d+)?\]$/)?t:(Yc([e],t)||[])[0]}function jm(e){const{abi:t,args:n,logs:r,strict:i=!0}=e,a=(()=>{if(e.eventName)return Array.isArray(e.eventName)?e.eventName:[e.eventName]})(),c=t.filter(u=>u.type==="event").map(u=>({abi:u,selector:kd(u)}));return r.map(u=>{var m;const d=typeof u.blockNumber=="string"?Cr(u):u,f=c.filter(y=>d.topics[0]===y.selector);if(f.length===0)return null;let p,g;for(const y of f)try{p=rd({...d,abi:[y.abi],strict:!0}),g=y;break}catch{}if(!p&&!i){g=f[0];try{p=rd({data:d.data,topics:d.topics,abi:[g.abi],strict:!1})}catch{const y=(m=g.abi.inputs)==null?void 0:m.some(w=>!("name"in w&&w.name));return{...d,args:y?[]:{},eventName:g.abi.name}}}return!p||!g||a&&!a.includes(p.eventName)||!kk({args:p.args,inputs:g.abi.inputs,matchArgs:n})?null:{...p,...d}}).filter(Boolean)}function kk(e){const{args:t,inputs:n,matchArgs:r}=e;if(!r)return!0;if(!t)return!1;function i(a,c,u){try{return a.type==="address"?_c(c,u):a.type==="string"||a.type==="bytes"?Et(ra(c))===u:c===u}catch{return!1}}return Array.isArray(t)&&Array.isArray(r)?r.every((a,c)=>{if(a==null)return!0;const u=n[c];return u?(Array.isArray(a)?a:[a]).some(f=>i(u,f,t[c])):!1}):typeof t=="object"&&!Array.isArray(t)&&typeof r=="object"&&!Array.isArray(r)?Object.entries(r).every(([a,c])=>{if(c==null)return!0;const u=n.find(f=>f.name===a);return u?(Array.isArray(c)?c:[c]).some(f=>i(u,f,t[a])):!1}):!1}async function Bm(e,{address:t,blockHash:n,fromBlock:r,toBlock:i,event:a,events:c,args:u,strict:d}={}){const f=d??!1,p=c??(a?[a]:void 0);let g=[];p&&(g=[p.flatMap(b=>ol({abi:[b],eventName:b.name,args:c?void 0:u}))],a&&(g=g[0]));let m;n?m=await e.request({method:"eth_getLogs",params:[{address:t,topics:g,blockHash:n}]}):m=await e.request({method:"eth_getLogs",params:[{address:t,topics:g,fromBlock:typeof r=="bigint"?ce(r):r,toBlock:typeof i=="bigint"?ce(i):i}]});const y=m.map(w=>Cr(w));return p?jm({abi:p,args:u,logs:y,strict:f}):y}async function H2(e,t){const{abi:n,address:r,args:i,blockHash:a,eventName:c,fromBlock:u,toBlock:d,strict:f}=t,p=c?Ui({abi:n,name:c}):void 0,g=p?void 0:n.filter(m=>m.type==="event");return Ee(e,Bm,"getLogs")({address:r,args:i,blockHash:a,event:p,events:g,fromBlock:u,toBlock:d,strict:f})}async function Sk(e,{address:t,blockNumber:n,blockTag:r="latest"}){const i=await nd(e,{address:t,...n!==void 0?{blockNumber:n}:{blockTag:r}});if(i&&Je(i)===23&&i.startsWith("0xef0100"))return pt($o(i,3,23))}class Ik extends ne{constructor({address:t}){super(`No EIP-712 domain found on contract "${t}".`,{metaMessages:["Ensure that:",`- The contract is deployed at the address "${t}".`,"- `eip712Domain()` function exists on the contract.","- `eip712Domain()` function matches signature to ERC-5267 specification."],name:"Eip712DomainNotFoundError"})}}async function jk(e,t){const{address:n,factory:r,factoryData:i}=t;try{const[a,c,u,d,f,p,g]=await Ee(e,Ln,"readContract")({abi:Bk,address:n,functionName:"eip712Domain",factory:r,factoryData:i});return{domain:{name:c,version:u,chainId:Number(d),verifyingContract:f,salt:p},extensions:g,fields:a}}catch(a){const c=a;throw c.name==="ContractFunctionExecutionError"&&c.cause.name==="ContractFunctionZeroDataError"?new Ik({address:n}):c}}const Bk=[{inputs:[],name:"eip712Domain",outputs:[{name:"fields",type:"bytes1"},{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"},{name:"salt",type:"bytes32"},{name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"}];function _k(e){var t;return{baseFeePerGas:e.baseFeePerGas.map(n=>BigInt(n)),gasUsedRatio:e.gasUsedRatio,oldestBlock:BigInt(e.oldestBlock),reward:(t=e.reward)==null?void 0:t.map(n=>n.map(r=>BigInt(r)))}}async function Pk(e,{blockCount:t,blockNumber:n,blockTag:r="latest",rewardPercentiles:i}){const a=typeof n=="bigint"?ce(n):void 0,c=await e.request({method:"eth_feeHistory",params:[ce(t),a||r,i]},{dedupe:!!a});return _k(c)}async function Dd(e,{filter:t}){const n="strict"in t&&t.strict,r=await t.request({method:"eth_getFilterChanges",params:[t.id]});if(typeof r[0]=="string")return r;const i=r.map(a=>Cr(a));return!("abi"in t)||!t.abi?i:jm({abi:t.abi,logs:i,strict:n})}async function Tk(e,{filter:t}){const n=t.strict??!1,i=(await t.request({method:"eth_getFilterLogs",params:[t.id]})).map(a=>Cr(a));return t.abi?jm({abi:t.abi,logs:i,strict:n}):i}function Ok(e){const{authorizationList:t}=e;if(t)for(const n of t){const{chainId:r}=n,i=n.address;if(!ct(i))throw new Vt({address:i});if(r<0)throw new Sd({chainId:r})}_m(e)}function Rk(e){const{blobVersionedHashes:t}=e;if(t){if(t.length===0)throw new L2;for(const n of t){const r=Je(n),i=tr($o(n,0,1));if(r!==32)throw new hk({hash:n,size:r});if(i!==D2)throw new pk({hash:n,version:i})}}_m(e)}function _m(e){const{chainId:t,maxPriorityFeePerGas:n,maxFeePerGas:r,to:i}=e;if(t<=0)throw new Sd({chainId:t});if(i&&!ct(i))throw new Vt({address:i});if(r&&r>Rd)throw new Ni({maxFeePerGas:r});if(n&&r&&n>r)throw new Bc({maxFeePerGas:r,maxPriorityFeePerGas:n})}function Nk(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:i,to:a}=e;if(t<=0)throw new Sd({chainId:t});if(a&&!ct(a))throw new Vt({address:a});if(n||i)throw new ne("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(r&&r>Rd)throw new Ni({maxFeePerGas:r})}function Mk(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:i,to:a}=e;if(a&&!ct(a))throw new Vt({address:a});if(typeof t<"u"&&t<=0)throw new Sd({chainId:t});if(n||i)throw new ne("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(r&&r>Rd)throw new Ni({maxFeePerGas:r})}function Ld(e){if(!e||e.length===0)return[];const t=[];for(let n=0;n<e.length;n++){const{address:r,storageKeys:i}=e[n];for(let a=0;a<i.length;a++)if(i[a].length-2!==64)throw new b4({storageKey:i[a]});if(!ct(r,{strict:!1}))throw new Vt({address:r});t.push([r,i])}return t}function Dk(e,t){const n=z2(e);return n==="eip1559"?zk(e,t):n==="eip2930"?Uk(e,t):n==="eip4844"?Fk(e,t):n==="eip7702"?Lk(e,t):Wk(e,t)}function Lk(e,t){const{authorizationList:n,chainId:r,gas:i,nonce:a,to:c,value:u,maxFeePerGas:d,maxPriorityFeePerGas:f,accessList:p,data:g}=e;Ok(e);const m=Ld(p),y=$k(n);return ir(["0x04",Ho([ce(r),a?ce(a):"0x",f?ce(f):"0x",d?ce(d):"0x",i?ce(i):"0x",c??"0x",u?ce(u):"0x",g??"0x",m,y,...al(e,t)])])}function Fk(e,t){const{chainId:n,gas:r,nonce:i,to:a,value:c,maxFeePerBlobGas:u,maxFeePerGas:d,maxPriorityFeePerGas:f,accessList:p,data:g}=e;Rk(e);let m=e.blobVersionedHashes,y=e.sidecars;if(e.blobs&&(typeof m>"u"||typeof y>"u")){const S=typeof e.blobs[0]=="string"?e.blobs:e.blobs.map(P=>at(P)),k=e.kzg,I=Em({blobs:S,kzg:k});if(typeof m>"u"&&(m=R2({commitments:I})),typeof y>"u"){const P=Am({blobs:S,commitments:I,kzg:k});y=F2({blobs:S,commitments:I,proofs:P})}}const w=Ld(p),b=[ce(n),i?ce(i):"0x",f?ce(f):"0x",d?ce(d):"0x",r?ce(r):"0x",a??"0x",c?ce(c):"0x",g??"0x",w,u?ce(u):"0x",m??[],...al(e,t)],E=[],A=[],j=[];if(y)for(let S=0;S<y.length;S++){const{blob:k,commitment:I,proof:P}=y[S];E.push(k),A.push(I),j.push(P)}return ir(["0x03",Ho(y?[b,E,A,j]:b)])}function zk(e,t){const{chainId:n,gas:r,nonce:i,to:a,value:c,maxFeePerGas:u,maxPriorityFeePerGas:d,accessList:f,data:p}=e;_m(e);const g=Ld(f),m=[ce(n),i?ce(i):"0x",d?ce(d):"0x",u?ce(u):"0x",r?ce(r):"0x",a??"0x",c?ce(c):"0x",p??"0x",g,...al(e,t)];return ir(["0x02",Ho(m)])}function Uk(e,t){const{chainId:n,gas:r,data:i,nonce:a,to:c,value:u,accessList:d,gasPrice:f}=e;Nk(e);const p=Ld(d),g=[ce(n),a?ce(a):"0x",f?ce(f):"0x",r?ce(r):"0x",c??"0x",u?ce(u):"0x",i??"0x",p,...al(e,t)];return ir(["0x01",Ho(g)])}function Wk(e,t){const{chainId:n=0,gas:r,data:i,nonce:a,to:c,value:u,gasPrice:d}=e;Mk(e);let f=[a?ce(a):"0x",d?ce(d):"0x",r?ce(r):"0x",c??"0x",u?ce(u):"0x",i??"0x"];if(t){const p=(()=>{if(t.v>=35n)return(t.v-35n)/2n>0?t.v:27n+(t.v===35n?0n:1n);if(n>0)return BigInt(n*2)+BigInt(35n+t.v-27n);const y=27n+(t.v===27n?0n:1n);if(t.v!==y)throw new v4({v:t.v});return y})(),g=vn(t.r),m=vn(t.s);f=[...f,ce(p),g==="0x00"?"0x":g,m==="0x00"?"0x":m]}else n>0&&(f=[...f,ce(n),"0x","0x"]);return Ho(f)}function al(e,t){const n=t??e,{v:r,yParity:i}=n;if(typeof n.r>"u")return[];if(typeof n.s>"u")return[];if(typeof r>"u"&&typeof i>"u")return[];const a=vn(n.r),c=vn(n.s);return[typeof i=="number"?i?ce(1):"0x":r===0n?"0x":r===1n?ce(1):r===27n?"0x":ce(1),a==="0x00"?"0x":a,c==="0x00"?"0x":c]}function $k(e){if(!e||e.length===0)return[];const t=[];for(const n of e){const{chainId:r,nonce:i,...a}=n,c=n.address;t.push([r?sn(r):"0x",c,i?sn(i):"0x",...al({},a)])}return t}async function qk({address:e,authorization:t,signature:n}){return _c(pt(e),await wm({authorization:t,signature:n}))}const Bu=new Kc(8192);function Hk(e,{enabled:t=!0,id:n}){if(!t||!n)return e();if(Bu.get(n))return Bu.get(n);const r=e().finally(()=>Bu.delete(n));return Bu.set(n,r),r}async function od(e){return new Promise(t=>setTimeout(t,e))}function Xs(e,{delay:t=100,retryCount:n=2,shouldRetry:r=()=>!0}={}){return new Promise((i,a)=>{const c=async({count:u=0}={})=>{const d=async({error:f})=>{const p=typeof t=="function"?t({count:u,error:f}):t;p&&await od(p),c({count:u+1})};try{const f=await e();i(f)}catch(f){if(u<n&&await r({count:u,error:f}))return d({error:f});a(f)}};c()})}function Vk(e,t={}){return async(n,r={})=>{var g;const{dedupe:i=!1,methods:a,retryDelay:c=150,retryCount:u=3,uid:d}={...t,...r},{method:f}=n;if((g=a==null?void 0:a.exclude)!=null&&g.includes(f))throw new mi(new Error("method not supported"),{method:f});if(a!=null&&a.include&&!a.include.includes(f))throw new mi(new Error("method not supported"),{method:f});const p=i?Gs(`${d}.${At(n)}`):void 0;return Hk(()=>Xs(async()=>{try{return await e(n)}catch(m){const y=m;switch(y.code){case uc.code:throw new uc(y);case dc.code:throw new dc(y);case fc.code:throw new fc(y,{method:n.method});case hc.code:throw new hc(y);case Pi.code:throw new Pi(y);case qo.code:throw new qo(y);case pc.code:throw new pc(y);case wr.code:throw new wr(y);case Ys.code:throw new Ys(y);case mi.code:throw new mi(y,{method:n.method});case Js.code:throw new Js(y);case mc.code:throw new mc(y);case We.code:throw new We(y);case gc.code:throw new gc(y);case yc.code:throw new yc(y);case vc.code:throw new vc(y);case wc.code:throw new wc(y);case wn.code:throw new wn(y);case bc.code:throw new bc(y);case xc.code:throw new xc(y);case Cc.code:throw new Cc(y);case Ec.code:throw new Ec(y);case Ac.code:throw new Ac(y);case kc.code:throw new kc(y);case Sc.code:throw new Sc(y);case 5e3:throw new We(y);case Zs.code:throw new Zs(y);default:throw m instanceof ne?m:new R4(y)}}},{delay:({count:m,error:y})=>{var w;if(y&&y instanceof sc){const b=(w=y==null?void 0:y.headers)==null?void 0:w.get("Retry-After");if(b!=null&&b.match(/\d/))return Number.parseInt(b,10)*1e3}return~~(1<<m)*c},retryCount:u,shouldRetry:({error:m})=>Qk(m)}),{enabled:i,id:p})}}function Qk(e){return"code"in e&&typeof e.code=="number"?e.code===-1||e.code===Js.code||e.code===Pi.code||e.code===429:e instanceof sc&&e.status?e.status===403||e.status===408||e.status===413||e.status===429||e.status===500||e.status===502||e.status===503||e.status===504:!0}function Gk({chain:e,currentChainId:t}){if(!e)throw new c4;if(t!==e.id)throw new a4({chain:e,currentChainId:t})}function Pm(e){const t={formatters:void 0,fees:void 0,serializers:void 0,...e};function n(r){return i=>{const a=typeof i=="function"?i(r):i,c={...r,...a};return Object.assign(c,{extend:n(c)})}}return Object.assign(t,{extend:n(t)})}const Kk={"0x0":"reverted","0x1":"success"};function Tm(e,t){const n={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(r=>Cr(r)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?tr(e.transactionIndex):null,status:e.status?Kk[e.status]:null,type:e.type?I2[e.type]||e.type:null};return e.blobGasPrice&&(n.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(n.blobGasUsed=BigInt(e.blobGasUsed)),n}const Yk=mm("transactionReceipt",Tm);function Fd(e,{errorInstance:t=new Error("timed out"),timeout:n,signal:r}){return new Promise((i,a)=>{(async()=>{let c;try{const u=new AbortController;n>0&&(c=setTimeout(()=>{r?u.abort():a(t)},n)),i(await e({signal:(u==null?void 0:u.signal)||null}))}catch(u){(u==null?void 0:u.name)==="AbortError"&&a(t),a(u)}finally{clearTimeout(c)}})()})}function Jk(){return{current:0,take(){return this.current++},reset(){this.current=0}}}const Zv=Jk();function Zk(e,t={}){const{url:n,headers:r}=Xk(e);return{async request(i){var w,b,E;const{body:a,fetchFn:c=t.fetchFn??fetch,onRequest:u=t.onRequest,onResponse:d=t.onResponse,timeout:f=t.timeout??1e4}=i,p={...t.fetchOptions??{},...i.fetchOptions??{}},{headers:g,method:m,signal:y}=p;try{const A=await Fd(async({signal:S})=>{const k={...p,body:Array.isArray(a)?At(a.map(T=>({jsonrpc:"2.0",id:T.id??Zv.take(),...T}))):At({jsonrpc:"2.0",id:a.id??Zv.take(),...a}),headers:{...r,"Content-Type":"application/json",...g},method:m||"POST",signal:y||(f>0?S:null)},I=new Request(n,k),P=await(u==null?void 0:u(I,k))??{...k,url:n};return await c(P.url??n,P)},{errorInstance:new Nv({body:a,url:n}),timeout:f,signal:!0});d&&await d(A);let j;if((w=A.headers.get("Content-Type"))!=null&&w.startsWith("application/json"))j=await A.json();else{j=await A.text();try{j=JSON.parse(j||"{}")}catch(S){if(A.ok)throw S;j={error:j}}}if(!A.ok){if(typeof((b=j.error)==null?void 0:b.code)=="number"&&typeof((E=j.error)==null?void 0:E.message)=="string")return j;throw new sc({body:a,details:At(j.error)||A.statusText,headers:A.headers,status:A.status,url:n})}return j}catch(A){throw A instanceof sc||A instanceof Nv?A:new sc({body:a,cause:A,url:n})}}}}function Xk(e){try{const t=new URL(e),n=(()=>{if(t.username){const r=`${decodeURIComponent(t.username)}:${decodeURIComponent(t.password)}`;return t.username="",t.password="",{url:t.toString(),headers:{Authorization:`Basic ${btoa(r)}`}}}})();return{url:t.toString(),...n}}catch{return{url:e}}}const eS=`Ethereum Signed Message:
81
+ `;function tS(e){const t=typeof e=="string"?Gs(e):typeof e.raw=="string"?e.raw:at(e.raw),n=Gs(`${eS}${Je(t)}`);return Dn([n,t])}function V2(e,t){return Et(tS(e),t)}class nS extends ne{constructor({domain:t}){super(`Invalid domain "${At(t)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}}class rS extends ne{constructor({primaryType:t,types:n}){super(`Invalid primary type \`${t}\` must be one of \`${JSON.stringify(Object.keys(n))}\`.`,{docsPath:"/api/glossary/Errors#typeddatainvalidprimarytypeerror",metaMessages:["Check that the primary type is a key in `types`."]})}}class oS extends ne{constructor({type:t}){super(`Struct type "${t}" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}}function iS(e){const{domain:t,message:n,primaryType:r,types:i}=e,a=(c,u)=>{for(const d of c){const{name:f,type:p}=d,g=u[f],m=p.match(S6);if(m&&(typeof g=="number"||typeof g=="bigint")){const[b,E,A]=m;ce(g,{signed:E==="int",size:Number.parseInt(A,10)/8})}if(p==="address"&&typeof g=="string"&&!ct(g))throw new Vt({address:g});const y=p.match(XE);if(y){const[b,E]=y;if(E&&Je(g)!==Number.parseInt(E,10))throw new tE({expectedSize:Number.parseInt(E,10),givenSize:Je(g)})}const w=i[p];w&&(aS(p),a(w,g))}};if(i.EIP712Domain&&t){if(typeof t!="object")throw new nS({domain:t});a(i.EIP712Domain,t)}if(r!=="EIP712Domain")if(i[r])a(i[r],n);else throw new rS({primaryType:r,types:i})}function sS({domain:e}){return[typeof(e==null?void 0:e.name)=="string"&&{name:"name",type:"string"},(e==null?void 0:e.version)&&{name:"version",type:"string"},(typeof(e==null?void 0:e.chainId)=="number"||typeof(e==null?void 0:e.chainId)=="bigint")&&{name:"chainId",type:"uint256"},(e==null?void 0:e.verifyingContract)&&{name:"verifyingContract",type:"address"},(e==null?void 0:e.salt)&&{name:"salt",type:"bytes32"}].filter(Boolean)}function aS(e){if(e==="address"||e==="bool"||e==="string"||e.startsWith("bytes")||e.startsWith("uint")||e.startsWith("int"))throw new oS({type:e})}function cS(e){const{domain:t={},message:n,primaryType:r}=e,i={EIP712Domain:sS({domain:t}),...e.types};iS({domain:t,message:n,primaryType:r,types:i});const a=["0x1901"];return t&&a.push(lS({domain:t,types:i})),r!=="EIP712Domain"&&a.push(Q2({data:n,primaryType:r,types:i})),Et(Dn(a))}function lS({domain:e,types:t}){return Q2({data:e,primaryType:"EIP712Domain",types:t})}function Q2({data:e,primaryType:t,types:n}){const r=G2({data:e,primaryType:t,types:n});return Et(r)}function G2({data:e,primaryType:t,types:n}){const r=[{type:"bytes32"}],i=[uS({primaryType:t,types:n})];for(const a of n[t]){const[c,u]=Y2({types:n,name:a.name,type:a.type,value:e[a.name]});r.push(c),i.push(u)}return zi(r,i)}function uS({primaryType:e,types:t}){const n=sn(dS({primaryType:e,types:t}));return Et(n)}function dS({primaryType:e,types:t}){let n="";const r=K2({primaryType:e,types:t});r.delete(e);const i=[e,...Array.from(r).sort()];for(const a of i)n+=`${a}(${t[a].map(({name:c,type:u})=>`${u} ${c}`).join(",")})`;return n}function K2({primaryType:e,types:t},n=new Set){const r=e.match(/^\w*/u),i=r==null?void 0:r[0];if(n.has(i)||t[i]===void 0)return n;n.add(i);for(const a of t[i])K2({primaryType:a.type,types:t},n);return n}function Y2({types:e,name:t,type:n,value:r}){if(e[n]!==void 0)return[{type:"bytes32"},Et(G2({data:r,primaryType:n,types:e}))];if(n==="bytes")return[{type:"bytes32"},Et(r)];if(n==="string")return[{type:"bytes32"},Et(sn(r))];if(n.lastIndexOf("]")===n.length-1){const i=n.slice(0,n.lastIndexOf("[")),a=r.map(c=>Y2({name:t,type:i,types:e,value:c}));return[{type:"bytes32"},Et(zi(a.map(([c])=>c),a.map(([,c])=>c)))]}return[{type:n},r]}class fS extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){const n=super.get(t);return super.has(t)&&n!==void 0&&(this.delete(t),super.set(t,n)),n}set(t,n){if(super.set(t,n),this.maxSize&&this.size>this.maxSize){const r=this.keys().next().value;r&&this.delete(r)}return this}}const hS={checksum:new fS(8192)},eh=hS.checksum;class J2 extends Yp{constructor(t,n){super(),this.finished=!1,this.destroyed=!1,IE(t);const r=bd(n);if(this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const i=this.blockLen,a=new Uint8Array(i);a.set(r.length>i?t.create().update(r).digest():r);for(let c=0;c<a.length;c++)a[c]^=54;this.iHash.update(a),this.oHash=t.create();for(let c=0;c<a.length;c++)a[c]^=106;this.oHash.update(a),Wo(a)}update(t){return Ks(this),this.iHash.update(t),this}digestInto(t){Ks(this),Uo(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:n,iHash:r,finished:i,destroyed:a,blockLen:c,outputLen:u}=this;return t=t,t.finished=i,t.destroyed=a,t.blockLen=c,t.outputLen=u,t.oHash=n._cloneInto(t.oHash),t.iHash=r._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const Z2=(e,t,n)=>new J2(e,t).update(n).digest();Z2.create=(e,t)=>new J2(e,t);function X2(e,t={}){const{as:n=typeof e=="string"?"Hex":"Bytes"}=t,r=x6(Y4(e));return n==="Bytes"?r:or(r)}const pS=/^0x[a-fA-F0-9]{40}$/;function zd(e,t={}){const{strict:n=!0}=t;if(!pS.test(e))throw new Xv({address:e,cause:new mS});if(n){if(e.toLowerCase()===e)return;if(e5(e)!==e)throw new Xv({address:e,cause:new gS})}}function e5(e){if(eh.has(e))return eh.get(e);zd(e,{strict:!1});const t=e.substring(2).toLowerCase(),n=X2(Z4(t),{as:"Bytes"}),r=t.split("");for(let a=0;a<40;a+=2)n[a>>1]>>4>=8&&r[a]&&(r[a]=r[a].toUpperCase()),(n[a>>1]&15)>=8&&r[a+1]&&(r[a+1]=r[a+1].toUpperCase());const i=`0x${r.join("")}`;return eh.set(e,i),i}function ap(e,t={}){const{strict:n=!0}=t??{};try{return zd(e,{strict:n}),!0}catch{return!1}}class Xv extends Ne{constructor({address:t,cause:n}){super(`Address "${t}" is invalid.`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}}class mS extends Ne{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}}class gS extends Ne{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}}const yS=/^(.*)\[([0-9]*)\]$/,vS=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,t5=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,ew=2n**256n-1n;function Ps(e,t,n){const{checksumAddress:r,staticPosition:i}=n,a=Nm(t.type);if(a){const[c,u]=a;return bS(e,{...t,type:u},{checksumAddress:r,length:c,staticPosition:i})}if(t.type==="tuple")return AS(e,t,{checksumAddress:r,staticPosition:i});if(t.type==="address")return wS(e,{checksum:r});if(t.type==="bool")return xS(e);if(t.type.startsWith("bytes"))return CS(e,t,{staticPosition:i});if(t.type.startsWith("uint")||t.type.startsWith("int"))return ES(e,t);if(t.type==="string")return kS(e,{staticPosition:i});throw new Dm(t.type)}const tw=32,cp=32;function wS(e,t={}){const{checksum:n=!1}=t,r=e.readBytes(32);return[(a=>n?e5(a):a)(or(e7(r,-20))),32]}function bS(e,t,n){const{checksumAddress:r,length:i,staticPosition:a}=n;if(!i){const d=Gr(e.readBytes(cp)),f=a+d,p=f+tw;e.setPosition(f);const g=Gr(e.readBytes(tw)),m=Pc(t);let y=0;const w=[];for(let b=0;b<g;++b){e.setPosition(p+(m?b*32:y));const[E,A]=Ps(e,t,{checksumAddress:r,staticPosition:p});y+=A,w.push(E)}return e.setPosition(a+32),[w,32]}if(Pc(t)){const d=Gr(e.readBytes(cp)),f=a+d,p=[];for(let g=0;g<i;++g){e.setPosition(f+g*32);const[m]=Ps(e,t,{checksumAddress:r,staticPosition:f});p.push(m)}return e.setPosition(a+32),[p,32]}let c=0;const u=[];for(let d=0;d<i;++d){const[f,p]=Ps(e,t,{checksumAddress:r,staticPosition:a+c});c+=p,u.push(f)}return[u,c]}function xS(e){return[n7(e.readBytes(32),{size:32}),32]}function CS(e,t,{staticPosition:n}){const[r,i]=t.type.split("bytes");if(!i){const c=Gr(e.readBytes(32));e.setPosition(n+c);const u=Gr(e.readBytes(32));if(u===0)return e.setPosition(n+32),["0x",32];const d=e.readBytes(u);return e.setPosition(n+32),[or(d),32]}return[or(e.readBytes(Number.parseInt(i,10),32)),32]}function ES(e,t){const n=t.type.startsWith("int"),r=Number.parseInt(t.type.split("int")[1]||"256",10),i=e.readBytes(32);return[r>48?t7(i,{signed:n}):Gr(i,{signed:n}),32]}function AS(e,t,n){const{checksumAddress:r,staticPosition:i}=n,a=t.components.length===0||t.components.some(({name:d})=>!d),c=a?[]:{};let u=0;if(Pc(t)){const d=Gr(e.readBytes(cp)),f=i+d;for(let p=0;p<t.components.length;++p){const g=t.components[p];e.setPosition(f+u);const[m,y]=Ps(e,g,{checksumAddress:r,staticPosition:f});u+=y,c[a?p:g==null?void 0:g.name]=m}return e.setPosition(i+32),[c,32]}for(let d=0;d<t.components.length;++d){const f=t.components[d],[p,g]=Ps(e,f,{checksumAddress:r,staticPosition:i});c[a?d:f==null?void 0:f.name]=p,u+=g}return[c,u]}function kS(e,{staticPosition:t}){const n=Gr(e.readBytes(32)),r=t+n;e.setPosition(r);const i=Gr(e.readBytes(32));if(i===0)return e.setPosition(t+32),["",32];const a=e.readBytes(i,32),c=r7(n2(a));return e.setPosition(t+32),[c,32]}function SS({checksumAddress:e,parameters:t,values:n}){const r=[];for(let i=0;i<t.length;i++)r.push(Om({checksumAddress:e,parameter:t[i],value:n[i]}));return r}function Om({checksumAddress:e=!1,parameter:t,value:n}){const r=t,i=Nm(r.type);if(i){const[a,c]=i;return jS(n,{checksumAddress:e,length:a,parameter:{...r,type:c}})}if(r.type==="tuple")return OS(n,{checksumAddress:e,parameter:r});if(r.type==="address")return IS(n,{checksum:e});if(r.type==="bool")return _S(n);if(r.type.startsWith("uint")||r.type.startsWith("int")){const a=r.type.startsWith("int"),[,,c="256"]=t5.exec(r.type)??[];return PS(n,{signed:a,size:Number(c)})}if(r.type.startsWith("bytes"))return BS(n,{type:r.type});if(r.type==="string")return TS(n);throw new Dm(r.type)}function Rm(e){let t=0;for(let a=0;a<e.length;a++){const{dynamic:c,encoded:u}=e[a];c?t+=32:t+=bn(u)}const n=[],r=[];let i=0;for(let a=0;a<e.length;a++){const{dynamic:c,encoded:u}=e[a];c?(n.push(Wt(t+i,{size:32})),r.push(u),i+=bn(u)):n.push(u)}return rr(...n,...r)}function IS(e,t){const{checksum:n=!1}=t;return zd(e,{strict:n}),{dynamic:!1,encoded:Oi(e.toLowerCase())}}function jS(e,t){const{checksumAddress:n,length:r,parameter:i}=t,a=r===null;if(!Array.isArray(e))throw new WS(e);if(!a&&e.length!==r)throw new US({expectedLength:r,givenLength:e.length,type:`${i.type}[${r}]`});let c=!1;const u=[];for(let d=0;d<e.length;d++){const f=Om({checksumAddress:n,parameter:i,value:e[d]});f.dynamic&&(c=!0),u.push(f)}if(a||c){const d=Rm(u);if(a){const f=Wt(u.length,{size:32});return{dynamic:!0,encoded:u.length>0?rr(f,d):f}}if(c)return{dynamic:!0,encoded:d}}return{dynamic:!1,encoded:rr(...u.map(({encoded:d})=>d))}}function BS(e,{type:t}){const[,n]=t.split("bytes"),r=bn(e);if(!n){let i=e;return r%32!==0&&(i=Ri(i,Math.ceil((e.length-2)/2/32)*32)),{dynamic:!0,encoded:rr(Oi(Wt(r,{size:32})),i)}}if(r!==Number.parseInt(n,10))throw new r5({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:Ri(e)}}function _S(e){if(typeof e!="boolean")throw new Ne(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:Oi(r2(e))}}function PS(e,{signed:t,size:n}){if(typeof n=="number"){const r=2n**(BigInt(n)-(t?1n:0n))-1n,i=t?-r-1n:0n;if(e>r||e<i)throw new s2({max:r.toString(),min:i.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:Wt(e,{size:32,signed:t})}}function TS(e){const t=fm(e),n=Math.ceil(bn(t)/32),r=[];for(let i=0;i<n;i++)r.push(Ri(br(t,i*32,(i+1)*32)));return{dynamic:!0,encoded:rr(Ri(Wt(bn(t),{size:32})),...r)}}function OS(e,t){const{checksumAddress:n,parameter:r}=t;let i=!1;const a=[];for(let c=0;c<r.components.length;c++){const u=r.components[c],d=Array.isArray(e)?c:u.name,f=Om({checksumAddress:n,parameter:u,value:e[d]});a.push(f),f.dynamic&&(i=!0)}return{dynamic:i,encoded:i?Rm(a):rr(...a.map(({encoded:c})=>c))}}function Nm(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function Pc(e){var r;const{type:t}=e;if(t==="string"||t==="bytes"||t.endsWith("[]"))return!0;if(t==="tuple")return(r=e.components)==null?void 0:r.some(Pc);const n=Nm(e.type);return!!(n&&Pc({...e,type:n[1]}))}const RS={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new DS({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new MS({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new nw({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new nw({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,e&255),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();const n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function NS(e,{recursiveReadLimit:t=8192}={}){const n=Object.create(RS);return n.bytes=e,n.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}class nw extends Ne{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.NegativeOffsetError"})}}class MS extends Ne{constructor({length:t,position:n}){super(`Position \`${n}\` is out of bounds (\`0 < position < ${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.PositionOutOfBoundsError"})}}class DS extends Ne{constructor({count:t,limit:n}){super(`Recursive read limit of \`${n}\` exceeded (recursive read count: \`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.RecursiveReadLimitExceededError"})}}function LS(e,t,n={}){const{as:r="Array",checksumAddress:i=!1}=n,a=typeof t=="string"?t2(t):t,c=NS(a);if(Is(a)===0&&e.length>0)throw new zS;if(Is(a)&&Is(a)<32)throw new FS({data:typeof t=="string"?t:or(t),parameters:e,size:Is(a)});let u=0;const d=r==="Array"?[]:{};for(let f=0;f<e.length;++f){const p=e[f];c.setPosition(u);const[g,m]=Ps(c,p,{checksumAddress:i,staticPosition:0});u+=m,r==="Array"?d.push(g):d[p.name??f]=g}return d}function Mm(e,t,n){const{checksumAddress:r=!1}={};if(e.length!==t.length)throw new o5({expectedLength:e.length,givenLength:t.length});const i=SS({checksumAddress:r,parameters:e,values:t}),a=Rm(i);return a.length===0?"0x":a}function lp(e,t){if(e.length!==t.length)throw new o5({expectedLength:e.length,givenLength:t.length});const n=[];for(let r=0;r<e.length;r++){const i=e[r],a=t[r];n.push(lp.encode(i,a))}return rr(...n)}(function(e){function t(n,r,i=!1){if(n==="address"){const d=r;return zd(d),Oi(d.toLowerCase(),i?32:0)}if(n==="string")return fm(r);if(n==="bytes")return r;if(n==="bool")return Oi(r2(r),i?32:1);const a=n.match(t5);if(a){const[d,f,p="256"]=a,g=Number.parseInt(p,10)/8;return Wt(r,{size:i?32:g,signed:f==="int"})}const c=n.match(vS);if(c){const[d,f]=c;if(Number.parseInt(f,10)!==(r.length-2)/2)throw new r5({expectedSize:Number.parseInt(f,10),value:r});return Ri(r,i?32:0)}const u=n.match(yS);if(u&&Array.isArray(r)){const[d,f]=u,p=[];for(let g=0;g<r.length;g++)p.push(t(f,r[g],!0));return p.length===0?"0x":rr(...p)}throw new Dm(n)}e.encode=t})(lp||(lp={}));function n5(e){return Array.isArray(e)&&typeof e[0]=="string"||typeof e=="string"?Pv(e):e}class FS extends Ne{constructor({data:t,parameters:n,size:r}){super(`Data size of ${r} bytes is too small for given parameters.`,{metaMessages:[`Params: (${ks(n)})`,`Data: ${t} (${r} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.DataSizeTooSmallError"})}}class zS extends Ne{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ZeroDataError"})}}class US extends Ne{constructor({expectedLength:t,givenLength:n,type:r}){super(`Array length mismatch for type \`${r}\`. Expected: \`${t}\`. Given: \`${n}\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ArrayLengthMismatchError"})}}class r5 extends Ne{constructor({expectedSize:t,value:n}){super(`Size of bytes "${n}" (bytes${bn(n)}) does not match expected size (bytes${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}}class o5 extends Ne{constructor({expectedLength:t,givenLength:n}){super(["ABI encoding parameters/values length mismatch.",`Expected length (parameters): ${t}`,`Given length (values): ${n}`].join(`
82
+ `)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}}class WS extends Ne{constructor(t){super(`Value \`${t}\` is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidArrayError"})}}class Dm extends Ne{constructor(t){super(`Type \`${t}\` is not a valid ABI Type.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const on=BigInt(0),qt=BigInt(1),yi=BigInt(2),$S=BigInt(3),i5=BigInt(4),s5=BigInt(5),a5=BigInt(8);function rn(e,t){const n=e%t;return n>=on?n:t+n}function Tn(e,t,n){let r=e;for(;t-- >on;)r*=r,r%=n;return r}function up(e,t){if(e===on)throw new Error("invert: expected non-zero number");if(t<=on)throw new Error("invert: expected positive modulus, got "+t);let n=rn(e,t),r=t,i=on,a=qt;for(;n!==on;){const u=r/n,d=r%n,f=i-a*u;r=n,n=d,i=a,a=f}if(r!==qt)throw new Error("invert: does not exist");return rn(i,t)}function c5(e,t){const n=(e.ORDER+qt)/i5,r=e.pow(t,n);if(!e.eql(e.sqr(r),t))throw new Error("Cannot find square root");return r}function qS(e,t){const n=(e.ORDER-s5)/a5,r=e.mul(t,yi),i=e.pow(r,n),a=e.mul(t,i),c=e.mul(e.mul(a,yi),i),u=e.mul(a,e.sub(c,e.ONE));if(!e.eql(e.sqr(u),t))throw new Error("Cannot find square root");return u}function HS(e){if(e<BigInt(3))throw new Error("sqrt is not defined for small field");let t=e-qt,n=0;for(;t%yi===on;)t/=yi,n++;let r=yi;const i=Lm(e);for(;rw(i,r)===1;)if(r++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(n===1)return c5;let a=i.pow(r,t);const c=(t+qt)/yi;return function(d,f){if(d.is0(f))return f;if(rw(d,f)!==1)throw new Error("Cannot find square root");let p=n,g=d.mul(d.ONE,a),m=d.pow(f,t),y=d.pow(f,c);for(;!d.eql(m,d.ONE);){if(d.is0(m))return d.ZERO;let w=1,b=d.sqr(m);for(;!d.eql(b,d.ONE);)if(w++,b=d.sqr(b),w===p)throw new Error("Cannot find square root");const E=qt<<BigInt(p-w-1),A=d.pow(g,E);p=w,g=d.sqr(A),m=d.mul(m,g),y=d.mul(y,A)}return y}}function VS(e){return e%i5===$S?c5:e%a5===s5?qS:HS(e)}const QS=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function GS(e){const t={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},n=QS.reduce((r,i)=>(r[i]="function",r),t);return Pd(e,n)}function KS(e,t,n){if(n<on)throw new Error("invalid exponent, negatives unsupported");if(n===on)return e.ONE;if(n===qt)return t;let r=e.ONE,i=t;for(;n>on;)n&qt&&(r=e.mul(r,i)),i=e.sqr(i),n>>=qt;return r}function l5(e,t,n=!1){const r=new Array(t.length).fill(n?e.ZERO:void 0),i=t.reduce((c,u,d)=>e.is0(u)?c:(r[d]=c,e.mul(c,u)),e.ONE),a=e.inv(i);return t.reduceRight((c,u,d)=>e.is0(u)?c:(r[d]=e.mul(c,r[d]),e.mul(c,u)),a),r}function rw(e,t){const n=(e.ORDER-qt)/yi,r=e.pow(t,n),i=e.eql(r,e.ONE),a=e.eql(r,e.ZERO),c=e.eql(r,e.neg(e.ONE));if(!i&&!a&&!c)throw new Error("invalid Legendre symbol result");return i?1:a?0:-1}function u5(e,t){t!==void 0&&cc(t);const n=t!==void 0?t:e.toString(2).length,r=Math.ceil(n/8);return{nBitLength:n,nByteLength:r}}function Lm(e,t,n=!1,r={}){if(e<=on)throw new Error("invalid field: expected ORDER > 0, got "+e);const{nBitLength:i,nByteLength:a}=u5(e,t);if(a>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let c;const u=Object.freeze({ORDER:e,isLE:n,BITS:i,BYTES:a,MASK:_d(i),ZERO:on,ONE:qt,create:d=>rn(d,e),isValid:d=>{if(typeof d!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof d);return on<=d&&d<e},is0:d=>d===on,isOdd:d=>(d&qt)===qt,neg:d=>rn(-d,e),eql:(d,f)=>d===f,sqr:d=>rn(d*d,e),add:(d,f)=>rn(d+f,e),sub:(d,f)=>rn(d-f,e),mul:(d,f)=>rn(d*f,e),pow:(d,f)=>KS(u,d,f),div:(d,f)=>rn(d*up(f,e),e),sqrN:d=>d*d,addN:(d,f)=>d+f,subN:(d,f)=>d-f,mulN:(d,f)=>d*f,inv:d=>up(d,e),sqrt:r.sqrt||(d=>(c||(c=VS(e)),c(u,d))),toBytes:d=>n?Y6(d,a):el(d,a),fromBytes:d=>{if(d.length!==a)throw new Error("Field.fromBytes: expected "+a+" bytes, got "+d.length);return n?K6(d):_i(d)},invertBatch:d=>l5(u,d),cmov:(d,f,p)=>p?f:d});return Object.freeze(u)}function d5(e){if(typeof e!="bigint")throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function f5(e){const t=d5(e);return t+Math.ceil(t/2)}function YS(e,t,n=!1){const r=e.length,i=d5(t),a=f5(t);if(r<16||r<a||r>1024)throw new Error("expected "+a+"-1024 bytes of input, got "+r);const c=n?K6(e):_i(e),u=rn(c,t-qt)+qt;return n?Y6(u,i):el(u,i)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const ow=BigInt(0),dp=BigInt(1);function th(e,t){const n=t.negate();return e?n:t}function h5(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function nh(e,t){h5(e,t);const n=Math.ceil(t/e)+1,r=2**(e-1),i=2**e,a=_d(e),c=BigInt(e);return{windows:n,windowSize:r,mask:a,maxNumber:i,shiftBy:c}}function iw(e,t,n){const{windowSize:r,mask:i,maxNumber:a,shiftBy:c}=n;let u=Number(e&i),d=e>>c;u>r&&(u-=a,d+=dp);const f=t*r,p=f+Math.abs(u)-1,g=u===0,m=u<0,y=t%2!==0;return{nextN:d,offset:p,isZero:g,isNeg:m,isNegF:y,offsetF:f}}function JS(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((n,r)=>{if(!(n instanceof t))throw new Error("invalid point at index "+r)})}function ZS(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((n,r)=>{if(!t.isValid(n))throw new Error("invalid scalar at index "+r)})}const rh=new WeakMap,p5=new WeakMap;function oh(e){return p5.get(e)||1}function XS(e,t){return{constTimeNegate:th,hasPrecomputes(n){return oh(n)!==1},unsafeLadder(n,r,i=e.ZERO){let a=n;for(;r>ow;)r&dp&&(i=i.add(a)),a=a.double(),r>>=dp;return i},precomputeWindow(n,r){const{windows:i,windowSize:a}=nh(r,t),c=[];let u=n,d=u;for(let f=0;f<i;f++){d=u,c.push(d);for(let p=1;p<a;p++)d=d.add(u),c.push(d);u=d.double()}return c},wNAF(n,r,i){let a=e.ZERO,c=e.BASE;const u=nh(n,t);for(let d=0;d<u.windows;d++){const{nextN:f,offset:p,isZero:g,isNeg:m,isNegF:y,offsetF:w}=iw(i,d,u);i=f,g?c=c.add(th(y,r[w])):a=a.add(th(m,r[p]))}return{p:a,f:c}},wNAFUnsafe(n,r,i,a=e.ZERO){const c=nh(n,t);for(let u=0;u<c.windows&&i!==ow;u++){const{nextN:d,offset:f,isZero:p,isNeg:g}=iw(i,u,c);if(i=d,!p){const m=r[f];a=a.add(g?m.negate():m)}}return a},getPrecomputes(n,r,i){let a=rh.get(r);return a||(a=this.precomputeWindow(r,n),n!==1&&rh.set(r,i(a))),a},wNAFCached(n,r,i){const a=oh(n);return this.wNAF(a,this.getPrecomputes(a,n,i),r)},wNAFCachedUnsafe(n,r,i,a){const c=oh(n);return c===1?this.unsafeLadder(n,r,a):this.wNAFUnsafe(c,this.getPrecomputes(c,n,i),r,a)},setWindowSize(n,r){h5(r,t),p5.set(n,r),rh.delete(n)}}}function e9(e,t,n,r){JS(n,e),ZS(r,t);const i=n.length,a=r.length;if(i!==a)throw new Error("arrays of points and scalars must have equal length");const c=e.ZERO,u=F4(BigInt(i));let d=1;u>12?d=u-3:u>4?d=u-2:u>0&&(d=2);const f=_d(d),p=new Array(Number(f)+1).fill(c),g=Math.floor((t.BITS-1)/d)*d;let m=c;for(let y=g;y>=0;y-=d){p.fill(c);for(let b=0;b<a;b++){const E=r[b],A=Number(E>>BigInt(y)&f);p[A]=p[A].add(n[b])}let w=c;for(let b=p.length-1,E=c;b>0;b--)E=E.add(p[b]),w=w.add(E);if(m=m.add(w),y!==0)for(let b=0;b<d;b++)m=m.double()}return m}function m5(e){return GS(e.Fp),Pd(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...u5(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function sw(e){e.lowS!==void 0&&Ic("lowS",e.lowS),e.prehash!==void 0&&Ic("prehash",e.prehash)}function t9(e){const t=m5(e);Pd(t,{a:"field",b:"field"},{allowInfinityPoint:"boolean",allowedPrivateKeyLengths:"array",clearCofactor:"function",fromBytes:"function",isTorsionFree:"function",toBytes:"function",wrapPrivateKey:"boolean"});const{endo:n,Fp:r,a:i}=t;if(n){if(!r.eql(i,r.ZERO))throw new Error("invalid endo: CURVE.a must be 0");if(typeof n!="object"||typeof n.beta!="bigint"||typeof n.splitScalar!="function")throw new Error('invalid endo: expected "beta": bigint and "splitScalar": function')}return Object.freeze({...t})}class n9 extends Error{constructor(t=""){super(t)}}const Ur={Err:n9,_tlv:{encode:(e,t)=>{const{Err:n}=Ur;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(t.length&1)throw new n("tlv.encode: unpadded data");const r=t.length/2,i=ju(r);if(i.length/2&128)throw new n("tlv.encode: long form length too big");const a=r>127?ju(i.length/2|128):"";return ju(e)+a+i+t},decode(e,t){const{Err:n}=Ur;let r=0;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(t.length<2||t[r++]!==e)throw new n("tlv.decode: wrong tlv");const i=t[r++],a=!!(i&128);let c=0;if(!a)c=i;else{const d=i&127;if(!d)throw new n("tlv.decode(long): indefinite length not supported");if(d>4)throw new n("tlv.decode(long): byte length is too big");const f=t.subarray(r,r+d);if(f.length!==d)throw new n("tlv.decode: length bytes not complete");if(f[0]===0)throw new n("tlv.decode(long): zero leftmost byte");for(const p of f)c=c<<8|p;if(r+=d,c<128)throw new n("tlv.decode(long): not minimal encoding")}const u=t.subarray(r,r+c);if(u.length!==c)throw new n("tlv.decode: wrong value length");return{v:u,l:t.subarray(r+c)}}},_int:{encode(e){const{Err:t}=Ur;if(e<Vr)throw new t("integer: negative integers are not allowed");let n=ju(e);if(Number.parseInt(n[0],16)&8&&(n="00"+n),n.length&1)throw new t("unexpected DER parsing assertion: unpadded hex");return n},decode(e){const{Err:t}=Ur;if(e[0]&128)throw new t("invalid signature integer: negative");if(e[0]===0&&!(e[1]&128))throw new t("invalid signature integer: unnecessary leading zero");return _i(e)}},toSig(e){const{Err:t,_int:n,_tlv:r}=Ur,i=On("signature",e),{v:a,l:c}=r.decode(48,i);if(c.length)throw new t("invalid signature: left bytes after parsing");const{v:u,l:d}=r.decode(2,a),{v:f,l:p}=r.decode(2,d);if(p.length)throw new t("invalid signature: left bytes after parsing");return{r:n.decode(u),s:n.decode(f)}},hexFromSig(e){const{_tlv:t,_int:n}=Ur,r=t.encode(2,n.encode(e.r)),i=t.encode(2,n.encode(e.s)),a=r+i;return t.encode(48,a)}};function ih(e,t){return jc(el(e,t))}const Vr=BigInt(0),wt=BigInt(1);BigInt(2);const sh=BigInt(3),r9=BigInt(4);function o9(e){const t=t9(e),{Fp:n}=t,r=Lm(t.n,t.nBitLength),i=t.toBytes||((S,k,I)=>{const P=k.toAffine();return td(Uint8Array.from([4]),n.toBytes(P.x),n.toBytes(P.y))}),a=t.fromBytes||(S=>{const k=S.subarray(1),I=n.fromBytes(k.subarray(0,n.BYTES)),P=n.fromBytes(k.subarray(n.BYTES,2*n.BYTES));return{x:I,y:P}});function c(S){const{a:k,b:I}=t,P=n.sqr(S),_=n.mul(P,S);return n.add(n.add(_,n.mul(S,k)),I)}function u(S,k){const I=n.sqr(k),P=c(S);return n.eql(I,P)}if(!u(t.Gx,t.Gy))throw new Error("bad curve params: generator point");const d=n.mul(n.pow(t.a,sh),r9),f=n.mul(n.sqr(t.b),BigInt(27));if(n.is0(n.add(d,f)))throw new Error("bad curve params: a or b");function p(S){return dm(S,wt,t.n)}function g(S){const{allowedPrivateKeyLengths:k,nByteLength:I,wrapPrivateKey:P,n:_}=t;if(k&&typeof S!="bigint"){if(Xc(S)&&(S=jc(S)),typeof S!="string"||!k.includes(S.length))throw new Error("invalid private key");S=S.padStart(I*2,"0")}let T;try{T=typeof S=="bigint"?S:_i(On("private key",S,I))}catch{throw new Error("invalid private key, expected hex or "+I+" bytes, got "+typeof S)}return P&&(T=rn(T,_)),_s("private key",T,wt,_),T}function m(S){if(!(S instanceof b))throw new Error("ProjectivePoint expected")}const y=Fv((S,k)=>{const{px:I,py:P,pz:_}=S;if(n.eql(_,n.ONE))return{x:I,y:P};const T=S.is0();k==null&&(k=T?n.ONE:n.inv(_));const M=n.mul(I,k),V=n.mul(P,k),Q=n.mul(_,k);if(T)return{x:n.ZERO,y:n.ZERO};if(!n.eql(Q,n.ONE))throw new Error("invZ was invalid");return{x:M,y:V}}),w=Fv(S=>{if(S.is0()){if(t.allowInfinityPoint&&!n.is0(S.py))return;throw new Error("bad point: ZERO")}const{x:k,y:I}=S.toAffine();if(!n.isValid(k)||!n.isValid(I))throw new Error("bad point: x or y not FE");if(!u(k,I))throw new Error("bad point: equation left != right");if(!S.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});class b{constructor(k,I,P){if(k==null||!n.isValid(k))throw new Error("x required");if(I==null||!n.isValid(I)||n.is0(I))throw new Error("y required");if(P==null||!n.isValid(P))throw new Error("z required");this.px=k,this.py=I,this.pz=P,Object.freeze(this)}static fromAffine(k){const{x:I,y:P}=k||{};if(!k||!n.isValid(I)||!n.isValid(P))throw new Error("invalid affine point");if(k instanceof b)throw new Error("projective point not allowed");const _=T=>n.eql(T,n.ZERO);return _(I)&&_(P)?b.ZERO:new b(I,P,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(k){const I=l5(n,k.map(P=>P.pz));return k.map((P,_)=>P.toAffine(I[_])).map(b.fromAffine)}static fromHex(k){const I=b.fromAffine(a(On("pointHex",k)));return I.assertValidity(),I}static fromPrivateKey(k){return b.BASE.multiply(g(k))}static msm(k,I){return e9(b,r,k,I)}_setWindowSize(k){j.setWindowSize(this,k)}assertValidity(){w(this)}hasEvenY(){const{y:k}=this.toAffine();if(n.isOdd)return!n.isOdd(k);throw new Error("Field doesn't support isOdd")}equals(k){m(k);const{px:I,py:P,pz:_}=this,{px:T,py:M,pz:V}=k,Q=n.eql(n.mul(I,V),n.mul(T,_)),Z=n.eql(n.mul(P,V),n.mul(M,_));return Q&&Z}negate(){return new b(this.px,n.neg(this.py),this.pz)}double(){const{a:k,b:I}=t,P=n.mul(I,sh),{px:_,py:T,pz:M}=this;let V=n.ZERO,Q=n.ZERO,Z=n.ZERO,G=n.mul(_,_),se=n.mul(T,T),$=n.mul(M,M),X=n.mul(_,T);return X=n.add(X,X),Z=n.mul(_,M),Z=n.add(Z,Z),V=n.mul(k,Z),Q=n.mul(P,$),Q=n.add(V,Q),V=n.sub(se,Q),Q=n.add(se,Q),Q=n.mul(V,Q),V=n.mul(X,V),Z=n.mul(P,Z),$=n.mul(k,$),X=n.sub(G,$),X=n.mul(k,X),X=n.add(X,Z),Z=n.add(G,G),G=n.add(Z,G),G=n.add(G,$),G=n.mul(G,X),Q=n.add(Q,G),$=n.mul(T,M),$=n.add($,$),G=n.mul($,X),V=n.sub(V,G),Z=n.mul($,se),Z=n.add(Z,Z),Z=n.add(Z,Z),new b(V,Q,Z)}add(k){m(k);const{px:I,py:P,pz:_}=this,{px:T,py:M,pz:V}=k;let Q=n.ZERO,Z=n.ZERO,G=n.ZERO;const se=t.a,$=n.mul(t.b,sh);let X=n.mul(I,T),te=n.mul(P,M),z=n.mul(_,V),J=n.add(I,P),Y=n.add(T,M);J=n.mul(J,Y),Y=n.add(X,te),J=n.sub(J,Y),Y=n.add(I,_);let L=n.add(T,V);return Y=n.mul(Y,L),L=n.add(X,z),Y=n.sub(Y,L),L=n.add(P,_),Q=n.add(M,V),L=n.mul(L,Q),Q=n.add(te,z),L=n.sub(L,Q),G=n.mul(se,Y),Q=n.mul($,z),G=n.add(Q,G),Q=n.sub(te,G),G=n.add(te,G),Z=n.mul(Q,G),te=n.add(X,X),te=n.add(te,X),z=n.mul(se,z),Y=n.mul($,Y),te=n.add(te,z),z=n.sub(X,z),z=n.mul(se,z),Y=n.add(Y,z),X=n.mul(te,Y),Z=n.add(Z,X),X=n.mul(L,Y),Q=n.mul(J,Q),Q=n.sub(Q,X),X=n.mul(J,te),G=n.mul(L,G),G=n.add(G,X),new b(Q,Z,G)}subtract(k){return this.add(k.negate())}is0(){return this.equals(b.ZERO)}wNAF(k){return j.wNAFCached(this,k,b.normalizeZ)}multiplyUnsafe(k){const{endo:I,n:P}=t;_s("scalar",k,Vr,P);const _=b.ZERO;if(k===Vr)return _;if(this.is0()||k===wt)return this;if(!I||j.hasPrecomputes(this))return j.wNAFCachedUnsafe(this,k,b.normalizeZ);let{k1neg:T,k1:M,k2neg:V,k2:Q}=I.splitScalar(k),Z=_,G=_,se=this;for(;M>Vr||Q>Vr;)M&wt&&(Z=Z.add(se)),Q&wt&&(G=G.add(se)),se=se.double(),M>>=wt,Q>>=wt;return T&&(Z=Z.negate()),V&&(G=G.negate()),G=new b(n.mul(G.px,I.beta),G.py,G.pz),Z.add(G)}multiply(k){const{endo:I,n:P}=t;_s("scalar",k,wt,P);let _,T;if(I){const{k1neg:M,k1:V,k2neg:Q,k2:Z}=I.splitScalar(k);let{p:G,f:se}=this.wNAF(V),{p:$,f:X}=this.wNAF(Z);G=j.constTimeNegate(M,G),$=j.constTimeNegate(Q,$),$=new b(n.mul($.px,I.beta),$.py,$.pz),_=G.add($),T=se.add(X)}else{const{p:M,f:V}=this.wNAF(k);_=M,T=V}return b.normalizeZ([_,T])[0]}multiplyAndAddUnsafe(k,I,P){const _=b.BASE,T=(V,Q)=>Q===Vr||Q===wt||!V.equals(_)?V.multiplyUnsafe(Q):V.multiply(Q),M=T(this,I).add(T(k,P));return M.is0()?void 0:M}toAffine(k){return y(this,k)}isTorsionFree(){const{h:k,isTorsionFree:I}=t;if(k===wt)return!0;if(I)return I(b,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:k,clearCofactor:I}=t;return k===wt?this:I?I(b,this):this.multiplyUnsafe(t.h)}toRawBytes(k=!0){return Ic("isCompressed",k),this.assertValidity(),i(b,this,k)}toHex(k=!0){return Ic("isCompressed",k),jc(this.toRawBytes(k))}}b.BASE=new b(t.Gx,t.Gy,n.ONE),b.ZERO=new b(n.ZERO,n.ONE,n.ZERO);const{endo:E,nBitLength:A}=t,j=XS(b,E?Math.ceil(A/2):A);return{CURVE:t,ProjectivePoint:b,normPrivateKeyToScalar:g,weierstrassEquation:c,isWithinCurveOrder:p}}function i9(e){const t=m5(e);return Pd(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}function s9(e){const t=i9(e),{Fp:n,n:r,nByteLength:i,nBitLength:a}=t,c=n.BYTES+1,u=2*n.BYTES+1;function d($){return rn($,r)}function f($){return up($,r)}const{ProjectivePoint:p,normPrivateKeyToScalar:g,weierstrassEquation:m,isWithinCurveOrder:y}=o9({...t,toBytes($,X,te){const z=X.toAffine(),J=n.toBytes(z.x),Y=td;return Ic("isCompressed",te),te?Y(Uint8Array.from([X.hasEvenY()?2:3]),J):Y(Uint8Array.from([4]),J,n.toBytes(z.y))},fromBytes($){const X=$.length,te=$[0],z=$.subarray(1);if(X===c&&(te===2||te===3)){const J=_i(z);if(!dm(J,wt,n.ORDER))throw new Error("Point is not on curve");const Y=m(J);let L;try{L=n.sqrt(Y)}catch(oe){const le=oe instanceof Error?": "+oe.message:"";throw new Error("Point is not on curve"+le)}const ee=(L&wt)===wt;return(te&1)===1!==ee&&(L=n.neg(L)),{x:J,y:L}}else if(X===u&&te===4){const J=n.fromBytes(z.subarray(0,n.BYTES)),Y=n.fromBytes(z.subarray(n.BYTES,2*n.BYTES));return{x:J,y:Y}}else{const J=c,Y=u;throw new Error("invalid Point, expected length of "+J+", or uncompressed "+Y+", got "+X)}}});function w($){const X=r>>wt;return $>X}function b($){return w($)?d(-$):$}const E=($,X,te)=>_i($.slice(X,te));class A{constructor(X,te,z){_s("r",X,wt,r),_s("s",te,wt,r),this.r=X,this.s=te,z!=null&&(this.recovery=z),Object.freeze(this)}static fromCompact(X){const te=i;return X=On("compactSignature",X,te*2),new A(E(X,0,te),E(X,te,2*te))}static fromDER(X){const{r:te,s:z}=Ur.toSig(On("DER",X));return new A(te,z)}assertValidity(){}addRecoveryBit(X){return new A(this.r,this.s,X)}recoverPublicKey(X){const{r:te,s:z,recovery:J}=this,Y=_(On("msgHash",X));if(J==null||![0,1,2,3].includes(J))throw new Error("recovery id invalid");const L=J===2||J===3?te+t.n:te;if(L>=n.ORDER)throw new Error("recovery id 2 or 3 invalid");const ee=(J&1)===0?"02":"03",we=p.fromHex(ee+ih(L,n.BYTES)),oe=f(L),le=d(-Y*oe),he=d(z*oe),Ce=p.BASE.multiplyAndAddUnsafe(we,le,he);if(!Ce)throw new Error("point at infinify");return Ce.assertValidity(),Ce}hasHighS(){return w(this.s)}normalizeS(){return this.hasHighS()?new A(this.r,d(-this.s),this.recovery):this}toDERRawBytes(){return ed(this.toDERHex())}toDERHex(){return Ur.hexFromSig(this)}toCompactRawBytes(){return ed(this.toCompactHex())}toCompactHex(){const X=i;return ih(this.r,X)+ih(this.s,X)}}const j={isValidPrivateKey($){try{return g($),!0}catch{return!1}},normPrivateKeyToScalar:g,randomPrivateKey:()=>{const $=f5(t.n);return YS(t.randomBytes($),t.n)},precompute($=8,X=p.BASE){return X._setWindowSize($),X.multiply(BigInt(3)),X}};function S($,X=!0){return p.fromPrivateKey($).toRawBytes(X)}function k($){if(typeof $=="bigint")return!1;if($ instanceof p)return!0;const te=On("key",$).length,z=n.BYTES,J=z+1,Y=2*z+1;if(!(t.allowedPrivateKeyLengths||i===J))return te===J||te===Y}function I($,X,te=!0){if(k($)===!0)throw new Error("first arg must be private key");if(k(X)===!1)throw new Error("second arg must be public key");return p.fromHex(X).multiply(g($)).toRawBytes(te)}const P=t.bits2int||function($){if($.length>8192)throw new Error("input is too large");const X=_i($),te=$.length*8-a;return te>0?X>>BigInt(te):X},_=t.bits2int_modN||function($){return d(P($))},T=_d(a);function M($){return _s("num < 2^"+a,$,Vr,T),el($,i)}function V($,X,te=Q){if(["recovered","canonical"].some(Oe=>Oe in te))throw new Error("sign() legacy options not supported");const{hash:z,randomBytes:J}=t;let{lowS:Y,prehash:L,extraEntropy:ee}=te;Y==null&&(Y=!0),$=On("msgHash",$),sw(te),L&&($=On("prehashed msgHash",z($)));const we=_($),oe=g(X),le=[M(oe),M(we)];if(ee!=null&&ee!==!1){const Oe=ee===!0?J(n.BYTES):ee;le.push(On("extraEntropy",Oe))}const he=td(...le),Ce=we;function _e(Oe){const Ve=P(Oe);if(!y(Ve))return;const Cn=f(Ve),En=p.BASE.multiply(Ve).toAffine(),Mt=d(En.x);if(Mt===Vr)return;const An=d(Cn*d(Ce+Mt*oe));if(An===Vr)return;let zn=(En.x===Mt?0:2)|Number(En.y&wt),kn=An;return Y&&w(An)&&(kn=b(An),zn^=1),new A(Mt,kn,zn)}return{seed:he,k2sig:_e}}const Q={lowS:t.lowS,prehash:!1},Z={lowS:t.lowS,prehash:!1};function G($,X,te=Q){const{seed:z,k2sig:J}=V($,X,te),Y=t;return z4(Y.hash.outputLen,Y.nByteLength,Y.hmac)(z,J)}p.BASE._setWindowSize(8);function se($,X,te,z=Z){var zn;const J=$;X=On("msgHash",X),te=On("publicKey",te);const{lowS:Y,prehash:L,format:ee}=z;if(sw(z),"strict"in z)throw new Error("options.strict was renamed to lowS");if(ee!==void 0&&ee!=="compact"&&ee!=="der")throw new Error("format must be compact or der");const we=typeof J=="string"||Xc(J),oe=!we&&!ee&&typeof J=="object"&&J!==null&&typeof J.r=="bigint"&&typeof J.s=="bigint";if(!we&&!oe)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let le,he;try{if(oe&&(le=new A(J.r,J.s)),we){try{ee!=="compact"&&(le=A.fromDER(J))}catch(kn){if(!(kn instanceof Ur.Err))throw kn}!le&&ee!=="der"&&(le=A.fromCompact(J))}he=p.fromHex(te)}catch{return!1}if(!le||Y&&le.hasHighS())return!1;L&&(X=t.hash(X));const{r:Ce,s:_e}=le,Oe=_(X),Ve=f(_e),Cn=d(Oe*Ve),En=d(Ce*Ve),Mt=(zn=p.BASE.multiplyAndAddUnsafe(he,Cn,En))==null?void 0:zn.toAffine();return Mt?d(Mt.x)===Ce:!1}return{CURVE:t,getPublicKey:S,getSharedSecret:I,sign:G,verify:se,ProjectivePoint:p,Signature:A,utils:j}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function a9(e){return{hash:e,hmac:(t,...n)=>Z2(e,t,RE(...n)),randomBytes:NE}}function c9(e,t){const n=r=>s9({...e,...a9(r)});return{...n(t),create:n}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const g5=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),aw=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),l9=BigInt(0),u9=BigInt(1),fp=BigInt(2),cw=(e,t)=>(e+t/fp)/t;function d9(e){const t=g5,n=BigInt(3),r=BigInt(6),i=BigInt(11),a=BigInt(22),c=BigInt(23),u=BigInt(44),d=BigInt(88),f=e*e*e%t,p=f*f*e%t,g=Tn(p,n,t)*p%t,m=Tn(g,n,t)*p%t,y=Tn(m,fp,t)*f%t,w=Tn(y,i,t)*y%t,b=Tn(w,a,t)*w%t,E=Tn(b,u,t)*b%t,A=Tn(E,d,t)*E%t,j=Tn(A,u,t)*b%t,S=Tn(j,n,t)*p%t,k=Tn(S,c,t)*w%t,I=Tn(k,r,t)*f%t,P=Tn(I,fp,t);if(!hp.eql(hp.sqr(P),e))throw new Error("Cannot find square root");return P}const hp=Lm(g5,void 0,void 0,{sqrt:d9}),y5=c9({a:l9,b:BigInt(7),Fp:hp,n:aw,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=aw,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-u9*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),a=n,c=BigInt("0x100000000000000000000000000000000"),u=cw(a*e,t),d=cw(-r*e,t);let f=rn(e-u*n-d*i,t),p=rn(-u*r-d*a,t);const g=f>c,m=p>c;if(g&&(f=t-f),m&&(p=t-p),f>c||p>c)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:g,k1:f,k2neg:m,k2:p}}}},O2),f9=Object.freeze(Object.defineProperty({__proto__:null,secp256k1:y5},Symbol.toStringTag,{value:"Module"}));function v5(e,t={}){const{recovered:n}=t;if(typeof e.r>"u")throw new ah({signature:e});if(typeof e.s>"u")throw new ah({signature:e});if(n&&typeof e.yParity>"u")throw new ah({signature:e});if(e.r<0n||e.r>ew)throw new w9({value:e.r});if(e.s<0n||e.s>ew)throw new b9({value:e.s});if(typeof e.yParity=="number"&&e.yParity!==0&&e.yParity!==1)throw new zm({value:e.yParity})}function h9(e){return w5(or(e))}function w5(e){if(e.length!==130&&e.length!==132)throw new v9({signature:e});const t=BigInt(br(e,0,32)),n=BigInt(br(e,32,64)),r=(()=>{const i=+`0x${e.slice(130)}`;if(!Number.isNaN(i))try{return Fm(i)}catch{throw new zm({value:i})}})();return typeof r>"u"?{r:t,s:n}:{r:t,s:n,yParity:r}}function p9(e){if(!(typeof e.r>"u")&&!(typeof e.s>"u"))return m9(e)}function m9(e){const t=typeof e=="string"?w5(e):e instanceof Uint8Array?h9(e):typeof e.r=="string"?y9(e):e.v?g9(e):{r:e.r,s:e.s,...typeof e.yParity<"u"?{yParity:e.yParity}:{}};return v5(t),t}function g9(e){return{r:e.r,s:e.s,yParity:Fm(e.v)}}function y9(e){const t=(()=>{const n=e.v?Number(e.v):void 0;let r=e.yParity?Number(e.yParity):void 0;if(typeof n=="number"&&typeof r!="number"&&(r=Fm(n)),typeof r!="number")throw new zm({value:e.yParity});return r})();return{r:BigInt(e.r),s:BigInt(e.s),yParity:t}}function Fm(e){if(e===0||e===27)return 0;if(e===1||e===28)return 1;if(e>=35)return e%2===0?1:0;throw new x9({value:e})}class v9 extends Ne{constructor({signature:t}){super(`Value \`${t}\` is an invalid signature size.`,{metaMessages:["Expected: 64 bytes or 65 bytes.",`Received ${bn(d7(t))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSerializedSizeError"})}}class ah extends Ne{constructor({signature:t}){super(`Signature \`${e2(t)}\` is missing either an \`r\`, \`s\`, or \`yParity\` property.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.MissingPropertiesError"})}}class w9 extends Ne{constructor({value:t}){super(`Value \`${t}\` is an invalid r value. r must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidRError"})}}class b9 extends Ne{constructor({value:t}){super(`Value \`${t}\` is an invalid s value. s must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSError"})}}class zm extends Ne{constructor({value:t}){super(`Value \`${t}\` is an invalid y-parity value. Y-parity must be 0 or 1.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidYParityError"})}}class x9 extends Ne{constructor({value:t}){super(`Value \`${t}\` is an invalid v value. v must be 27, 28 or >=35.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidVError"})}}function C9(e,t={}){return typeof e.chainId=="string"?E9(e):{...e,...t.signature}}function E9(e){const{address:t,chainId:n,nonce:r}=e,i=p9(e);return{address:t,chainId:Number(n),nonce:BigInt(r),...i}}const A9="0x8010801080108010801080108010801080108010801080108010801080108010",k9=n5("(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data");function b5(e){if(typeof e=="string"){if(br(e,-32)!==A9)throw new j9(e)}else v5(e.authorization)}function S9(e){b5(e);const t=i2(br(e,-64,-32)),n=br(e,-t-64,-64),r=br(e,0,-t-64),[i,a,c]=LS(k9,n);return{authorization:C9({address:i.delegation,chainId:Number(i.chainId),nonce:i.nonce,yParity:i.yParity,r:i.r,s:i.s}),signature:r,...c&&c!=="0x"?{data:c,to:a}:{}}}function I9(e){try{return b5(e),!0}catch{return!1}}let j9=class extends Ne{constructor(t){super(`Value \`${t}\` is an invalid ERC-8010 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc8010.InvalidWrappedSignatureError"})}};class B9 extends ne{constructor({value:t}){super(`Number \`${t}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}function _9(e,t){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(e))throw new B9({value:e});let[n,r="0"]=e.split(".");const i=n.startsWith("-");if(i&&(n=n.slice(1)),r=r.replace(/(0+)$/,""),r.length>t){const[a,c,u]=[r.slice(0,t-1),r.slice(t-1,t),r.slice(t)],d=Math.round(+`${c}.${u}`);d>9?r=`${BigInt(a)+BigInt(1)}0`.padStart(a.length+1,"0"):r=`${a}${d}`,r.length>t&&(r=r.slice(1),n=`${BigInt(n)+1n}`),r=r.slice(0,t)}else r=r.padEnd(t,"0");return BigInt(`${i?"-":""}${n}${r}`)}function P9(e){return e.map(t=>({...t,value:BigInt(t.value)}))}function T9(e){return{...e,balance:e.balance?BigInt(e.balance):void 0,nonce:e.nonce?tr(e.nonce):void 0,storageProof:e.storageProof?P9(e.storageProof):void 0}}async function O9(e,{address:t,blockNumber:n,blockTag:r,storageKeys:i}){const a=r??"latest",c=n!==void 0?ce(n):void 0,u=await e.request({method:"eth_getProof",params:[t,i,c||a]});return T9(u)}async function R9(e,{address:t,blockNumber:n,blockTag:r="latest",slot:i}){const a=n!==void 0?ce(n):void 0;return await e.request({method:"eth_getStorageAt",params:[t,i,a||r]})}async function Ud(e,{blockHash:t,blockNumber:n,blockTag:r,hash:i,index:a,sender:c,nonce:u}){var m,y,w;const d=r||"latest",f=n!==void 0?ce(n):void 0;let p=null;if(i?p=await e.request({method:"eth_getTransactionByHash",params:[i]},{dedupe:!0}):t?p=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,ce(a)]},{dedupe:!0}):typeof a=="number"?p=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[f||d,ce(a)]},{dedupe:!!f}):c&&typeof u=="number"&&(p=await e.request({method:"eth_getTransactionBySenderAndNonce",params:[c,ce(u)]},{dedupe:!0})),!p)throw new $6({blockHash:t,blockNumber:n,blockTag:d,hash:i,index:a});return(((w=(y=(m=e.chain)==null?void 0:m.formatters)==null?void 0:y.transaction)==null?void 0:w.format)||il)(p,"getTransaction")}async function N9(e,{hash:t,transactionReceipt:n}){const[r,i]=await Promise.all([Ee(e,sl,"getBlockNumber")({}),t?Ee(e,Ud,"getTransaction")({hash:t}):void 0]),a=(n==null?void 0:n.blockNumber)||(i==null?void 0:i.blockNumber);return a?r-a+1n:0n}async function $u(e,{hash:t}){var i,a,c;const n=await e.request({method:"eth_getTransactionReceipt",params:[t]},{dedupe:!0});if(!n)throw new q6({hash:t});return(((c=(a=(i=e.chain)==null?void 0:i.formatters)==null?void 0:a.transactionReceipt)==null?void 0:c.format)||Tm)(n,"getTransactionReceipt")}async function x5(e,t){var j;const{account:n,authorizationList:r,allowFailure:i=!0,blockNumber:a,blockOverrides:c,blockTag:u,stateOverride:d}=t,f=t.contracts,{batchSize:p=t.batchSize??1024,deployless:g=t.deployless??!1}=typeof((j=e.batch)==null?void 0:j.multicall)=="object"?e.batch.multicall:{},m=(()=>{if(t.multicallAddress)return t.multicallAddress;if(g)return null;if(e.chain)return ia({blockNumber:a,chain:e.chain,contract:"multicall3"});throw new Error("client chain not configured. multicallAddress is required.")})(),y=[[]];let w=0,b=0;for(let S=0;S<f.length;S++){const{abi:k,address:I,args:P,functionName:_}=f[S];try{const T=xn({abi:k,args:P,functionName:_});b+=(T.length-2)/2,p>0&&b>p&&y[w].length>0&&(w++,b=(T.length-2)/2,y[w]=[]),y[w]=[...y[w],{allowFailure:!0,callData:T,target:I}]}catch(T){const M=Ti(T,{abi:k,address:I,args:P,docsPath:"/docs/contract/multicall",functionName:_,sender:n});if(!i)throw M;y[w]=[...y[w],{allowFailure:!0,callData:"0x",target:I}]}}const E=await Promise.allSettled(y.map(S=>Ee(e,Ln,"readContract")({...m===null?{code:hm}:{address:m},abi:Vs,account:n,args:[S],authorizationList:r,blockNumber:a,blockOverrides:c,blockTag:u,functionName:"aggregate3",stateOverride:d}))),A=[];for(let S=0;S<E.length;S++){const k=E[S];if(k.status==="rejected"){if(!i)throw k.reason;for(let P=0;P<y[S].length;P++)A.push({status:"failure",error:k.reason,result:void 0});continue}const I=k.value;for(let P=0;P<I.length;P++){const{returnData:_,success:T}=I[P],{callData:M}=y[S][P],{abi:V,address:Q,functionName:Z,args:G}=f[A.length];try{if(M==="0x")throw new Gc;if(!T)throw new jd({data:_});const se=Go({abi:V,args:G,data:_,functionName:Z});A.push(i?{result:se,status:"success"}:se)}catch(se){const $=Ti(se,{abi:V,address:Q,args:G,docsPath:"/docs/contract/multicall",functionName:Z});if(!i)throw $;A.push({error:$,result:void 0,status:"failure"})}}}if(A.length!==f.length)throw new ne("multicall results mismatch");return A}async function pp(e,t){const{blockNumber:n,blockTag:r=e.experimental_blockTag??"latest",blocks:i,returnFullTransactions:a,traceTransfers:c,validation:u}=t;try{const d=[];for(const m of i){const y=m.blockOverrides?c2(m.blockOverrides):void 0,w=m.calls.map(E=>{const A=E,j=A.account?kt(A.account):void 0,S=A.abi?xn(A):A.data,k={...A,account:j,data:A.dataSuffix?Dn([S||"0x",A.dataSuffix]):S,from:A.from??(j==null?void 0:j.address)};return Wi(k),sa(k)}),b=m.stateOverrides?gm(m.stateOverrides):void 0;d.push({blockOverrides:y,calls:w,stateOverrides:b})}const p=(typeof n=="bigint"?ce(n):void 0)||r;return(await e.request({method:"eth_simulateV1",params:[{blockStateCalls:d,returnFullTransactions:a,traceTransfers:c,validation:u},p]})).map((m,y)=>({...xm(m),calls:m.calls.map((w,b)=>{var V,Q;const{abi:E,args:A,functionName:j,to:S}=i[y].calls[b],k=((V=w.error)==null?void 0:V.data)??w.returnData,I=BigInt(w.gasUsed),P=(Q=w.logs)==null?void 0:Q.map(Z=>Cr(Z)),_=w.status==="0x1"?"success":"failure",T=E&&_==="success"&&k!=="0x"?Go({abi:E,data:k,functionName:j}):null,M=(()=>{if(_==="success")return;let Z;if(k==="0x"?Z=new Gc:k&&(Z=new jd({data:k})),!!Z)return Ti(Z,{abi:E??[],address:S??"0x",args:A,functionName:j??"<unknown>"})})();return{data:k,gasUsed:I,logs:P,status:_,..._==="success"?{result:T}:{error:M}}})}))}catch(d){const f=d,p=Od(f,{});throw p instanceof nl?f:p}}function mp(e){let t=!0,n="",r=0,i="",a=!1;for(let c=0;c<e.length;c++){const u=e[c];if(["(",")",","].includes(u)&&(t=!0),u==="("&&r++,u===")"&&r--,!!t){if(r===0){if(u===" "&&["event","function","error",""].includes(i))i="";else if(i+=u,u===")"){a=!0;break}continue}if(u===" "){e[c-1]!==","&&n!==","&&n!==",("&&(n="",t=!1);continue}i+=u,n+=u}}if(!a)throw new Ne("Unable to normalize signature.");return i}function gp(e,t){const n=typeof e,r=t.type;switch(r){case"address":return ap(e,{strict:!1});case"bool":return n==="boolean";case"function":return n==="string";case"string":return n==="string";default:return r==="tuple"&&"components"in t?Object.values(t.components).every((i,a)=>gp(Object.values(e)[a],i)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(r)?n==="number"||n==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r)?n==="string"||e instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(r)?Array.isArray(e)&&e.every(i=>gp(i,{...t,type:r.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function C5(e,t,n){for(const r in e){const i=e[r],a=t[r];if(i.type==="tuple"&&a.type==="tuple"&&"components"in i&&"components"in a)return C5(i.components,a.components,n[r]);const c=[i.type,a.type];if(c.includes("address")&&c.includes("bytes20")?!0:c.includes("address")&&c.includes("string")?ap(n[r],{strict:!1}):c.includes("address")&&c.includes("bytes")?ap(n[r],{strict:!1}):!1)return c}}function E5(e,t={}){const{prepare:n=!0}=t,r=Array.isArray(e)||typeof e=="string"?_v(e):e;return{...r,...n?{hash:js(r)}:{}}}function Wd(e,t,n){const{args:r=[],prepare:i=!0}=n??{},a=f7(t,{strict:!1}),c=e.filter(f=>a?f.type==="function"||f.type==="error"?A5(f)===br(t,0,4):f.type==="event"?js(f)===t:!1:"name"in f&&f.name===t);if(c.length===0)throw new id({name:t});if(c.length===1)return{...c[0],...i?{hash:js(c[0])}:{}};let u;for(const f of c){if(!("inputs"in f))continue;if(!r||r.length===0){if(!f.inputs||f.inputs.length===0)return{...f,...i?{hash:js(f)}:{}};continue}if(!f.inputs||f.inputs.length===0||f.inputs.length!==r.length)continue;if(r.every((g,m)=>{const y="inputs"in f&&f.inputs[m];return y?gp(g,y):!1})){if(u&&"inputs"in u&&u.inputs){const g=C5(f.inputs,u.inputs,r);if(g)throw new D9({abiItem:f,type:g[0]},{abiItem:u,type:g[1]})}u=f}}const d=(()=>{if(u)return u;const[f,...p]=c;return{...f,overloads:p}})();if(!d)throw new id({name:t});return{...d,...i?{hash:js(d)}:{}}}function A5(...e){const t=(()=>{if(Array.isArray(e[0])){const[n,r]=e;return Wd(n,r)}return e[0]})();return br(js(t),0,4)}function M9(...e){const t=(()=>{if(Array.isArray(e[0])){const[r,i]=e;return Wd(r,i)}return e[0]})(),n=typeof t=="string"?t:Xu(t);return mp(n)}function js(...e){const t=(()=>{if(Array.isArray(e[0])){const[n,r]=e;return Wd(n,r)}return e[0]})();return typeof t!="string"&&"hash"in t&&t.hash?t.hash:X2(fm(M9(t)))}class D9 extends Ne{constructor(t,n){super("Found ambiguous types in overloaded ABI Items.",{metaMessages:[`\`${t.type}\` in \`${mp(Xu(t.abiItem))}\`, and`,`\`${n.type}\` in \`${mp(Xu(n.abiItem))}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.AmbiguityError"})}}class id extends Ne{constructor({name:t,data:n,type:r="item"}){const i=t?` with name "${t}"`:n?` with data "${n}"`:"";super(`ABI ${r}${i} not found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.NotFoundError"})}}function L9(...e){var a;const[t,n]=(()=>{if(Array.isArray(e[0])){const[c,u]=e;return[z9(c),u]}return e})(),{bytecode:r,args:i}=n;return rr(r,(a=t.inputs)!=null&&a.length&&(i!=null&&i.length)?Mm(t.inputs,i):"0x")}function F9(e){return E5(e)}function z9(e){const t=e.find(n=>n.type==="constructor");if(!t)throw new id({name:"constructor"});return t}function U9(...e){const[t,n=[]]=(()=>{if(Array.isArray(e[0])){const[f,p,g]=e;return[lw(f,p,{args:g}),g]}const[u,d]=e;return[u,d]})(),{overloads:r}=t,i=r?lw([t,...r],t.name,{args:n}):t,a=W9(i),c=n.length>0?Mm(i.inputs,n):void 0;return c?rr(a,c):a}function xs(e,t={}){return E5(e,t)}function lw(e,t,n){const r=Wd(e,t,n);if(r.type!=="function")throw new id({name:t,type:"function"});return r}function W9(e){return A5(e)}const $9="0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",Yn="0x0000000000000000000000000000000000000000",q9="0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033";async function H9(e,t){const{blockNumber:n,blockTag:r,calls:i,stateOverrides:a,traceAssetChanges:c,traceTransfers:u,validation:d}=t,f=t.account?kt(t.account):void 0;if(c&&!f)throw new ne("`account` is required when `traceAssetChanges` is true");const p=f?L9(F9("constructor(bytes, bytes)"),{bytecode:l2,args:[q9,U9(xs("function getBalance(address)"),[f.address])]}):void 0,g=c?await Promise.all(t.calls.map(async z=>{if(!z.data&&!z.abi)return;const{accessList:J}=await w2(e,{account:f.address,...z,data:z.abi?xn(z):z.data});return J.map(({address:Y,storageKeys:L})=>L.length>0?Y:null)})).then(z=>z.flat().filter(Boolean)):[],m=await pp(e,{blockNumber:n,blockTag:r,blocks:[...c?[{calls:[{data:p}],stateOverrides:a},{calls:g.map((z,J)=>({abi:[xs("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[f.address],to:z,from:Yn,nonce:J})),stateOverrides:[{address:Yn,nonce:0}]}]:[],{calls:[...i,{to:Yn}].map(z=>({...z,from:f==null?void 0:f.address})),stateOverrides:a},...c?[{calls:[{data:p}]},{calls:g.map((z,J)=>({abi:[xs("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[f.address],to:z,from:Yn,nonce:J})),stateOverrides:[{address:Yn,nonce:0}]},{calls:g.map((z,J)=>({to:z,abi:[xs("function decimals() returns (uint256)")],functionName:"decimals",from:Yn,nonce:J})),stateOverrides:[{address:Yn,nonce:0}]},{calls:g.map((z,J)=>({to:z,abi:[xs("function tokenURI(uint256) returns (string)")],functionName:"tokenURI",args:[0n],from:Yn,nonce:J})),stateOverrides:[{address:Yn,nonce:0}]},{calls:g.map((z,J)=>({to:z,abi:[xs("function symbol() returns (string)")],functionName:"symbol",from:Yn,nonce:J})),stateOverrides:[{address:Yn,nonce:0}]}]:[]],traceTransfers:u,validation:d}),y=c?m[2]:m[0],[w,b,,E,A,j,S,k]=c?m:[],{calls:I,...P}=y,_=I.slice(0,-1)??[],T=(w==null?void 0:w.calls)??[],M=(b==null?void 0:b.calls)??[],V=[...T,...M].map(z=>z.status==="success"?$t(z.data):null),Q=(E==null?void 0:E.calls)??[],Z=(A==null?void 0:A.calls)??[],G=[...Q,...Z].map(z=>z.status==="success"?$t(z.data):null),se=((j==null?void 0:j.calls)??[]).map(z=>z.status==="success"?z.result:null),$=((k==null?void 0:k.calls)??[]).map(z=>z.status==="success"?z.result:null),X=((S==null?void 0:S.calls)??[]).map(z=>z.status==="success"?z.result:null),te=[];for(const[z,J]of G.entries()){const Y=V[z];if(typeof J!="bigint"||typeof Y!="bigint")continue;const L=se[z-1],ee=$[z-1],we=X[z-1],oe=z===0?{address:$9,decimals:18,symbol:"ETH"}:{address:g[z-1],decimals:we||L?Number(L??1):void 0,symbol:ee??void 0};te.some(le=>le.token.address===oe.address)||te.push({token:oe,value:{pre:Y,post:J,diff:J-Y}})}return{assetChanges:te,block:P,results:_}}async function k5(e,t){var p;const{abi:n,address:r,args:i,functionName:a,dataSuffix:c=typeof e.dataSuffix=="string"?e.dataSuffix:(p=e.dataSuffix)==null?void 0:p.value,...u}=t,d=u.account?kt(u.account):e.account,f=xn({abi:n,args:i,functionName:a});try{const{data:g}=await Ee(e,aa,"call")({batch:!1,data:`${f}${c?c.replace("0x",""):""}`,to:r,...u,account:d}),m=Go({abi:n,args:i,functionName:a,data:g||"0x"}),y=n.filter(w=>"name"in w&&w.name===t.functionName);return{result:m,request:{abi:y,address:r,args:i,dataSuffix:c,functionName:a,...u,account:d}}}catch(g){throw Ti(g,{abi:n,address:r,args:i,docsPath:"/docs/contract/simulateContract",functionName:a,sender:d==null?void 0:d.address})}}async function $d(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}const S5="0x6492649264926492649264926492649264926492649264926492649264926492";function V9(e){if(br(e,-32)!==S5)throw new K9(e)}function Q9(e){const{data:t,signature:n,to:r}=e;return rr(Mm(n5("address, bytes, bytes"),[r,t,n]),S5)}function G9(e){try{return V9(e),!0}catch{return!1}}class K9 extends Ne{constructor(t){super(`Value \`${t}\` is an invalid ERC-6492 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc6492.InvalidWrappedSignatureError"})}}function Y9({r:e,s:t,to:n="hex",v:r,yParity:i}){const a=(()=>{if(i===0||i===1)return i;if(r&&(r===27n||r===28n||r>=35n))return r%2n===0n?1:0;throw new Error("Invalid `v` or `yParity` value")})(),c=`0x${new y5.Signature($t(e),$t(t)).toCompactHex()}${a===0?"1b":"1c"}`;return n==="hex"?c:nr(c)}async function qd(e,t){var f,p,g,m;const{address:n,chain:r=e.chain,hash:i,erc6492VerifierAddress:a=t.universalSignatureVerifierAddress??((p=(f=r==null?void 0:r.contracts)==null?void 0:f.erc6492Verifier)==null?void 0:p.address),multicallAddress:c=t.multicallAddress??((m=(g=r==null?void 0:r.contracts)==null?void 0:g.multicall3)==null?void 0:m.address),mode:u="auto"}=t;if(r!=null&&r.verifyHash)return await r.verifyHash(e,t);const d=(()=>{const y=t.signature;return xr(y)?y:typeof y=="object"&&"r"in y&&"s"in y?Y9(y):at(y)})();try{if(u==="eoa")try{if(_c(pt(n),await ip({hash:i,signature:d})))return!0}catch{}return I9(d)?await J9(e,{...t,multicallAddress:c,signature:d}):await Z9(e,{...t,verifierAddress:a,signature:d})}catch(y){if(u!=="eoa")try{if(_c(pt(n),await ip({hash:i,signature:d})))return!0}catch{}if(y instanceof Mi)return!1;throw y}}async function J9(e,t){var E;const{address:n,blockNumber:r,blockTag:i,hash:a,multicallAddress:c}=t,{authorization:u,data:d,signature:f,to:p}=S9(t.signature);if(await nd(e,{address:n,blockNumber:r,blockTag:i})===ir(["0xef0100",u.address]))return await X9(e,{address:n,blockNumber:r,blockTag:i,hash:a,signature:f});const m={address:u.address,chainId:Number(u.chainId),nonce:Number(u.nonce),r:ce(u.r,{size:32}),s:ce(u.s,{size:32}),yParity:u.yParity};if(!await qk({address:n,authorization:m}))throw new Mi;const w=await Ee(e,Ln,"readContract")({...c?{address:c}:{code:hm},authorizationList:[m],abi:Vs,blockNumber:r,blockTag:"pending",functionName:"aggregate3",args:[[...d?[{allowFailure:!0,target:p??n,callData:d}]:[],{allowFailure:!0,target:n,callData:xn({abi:r6,functionName:"isValidSignature",args:[a,f]})}]]}),b=(E=w[w.length-1])==null?void 0:E.returnData;if(b!=null&&b.startsWith("0x1626ba7e"))return!0;throw new Mi}async function Z9(e,t){const{address:n,factory:r,factoryData:i,hash:a,signature:c,verifierAddress:u,...d}=t,f=await(async()=>!r&&!i||G9(c)?c:Q9({data:i,signature:c,to:r}))(),p=u?{to:u,data:xn({abi:hv,functionName:"isValidSig",args:[n,a,f]}),...d}:{data:pm({abi:hv,args:[n,a,f],bytecode:v7}),...d},{data:g}=await Ee(e,aa,"call")(p).catch(m=>{throw m instanceof H6?new Mi:m});if(lE(g??"0x0"))return!0;throw new Mi}async function X9(e,t){const{address:n,blockNumber:r,blockTag:i,hash:a,signature:c}=t;if((await Ee(e,Ln,"readContract")({address:n,abi:r6,args:[a,c],blockNumber:r,blockTag:i,functionName:"isValidSignature"}).catch(d=>{throw d instanceof im?new Mi:d})).startsWith("0x1626ba7e"))return!0;throw new Mi}class Mi extends Error{}async function eI(e,{address:t,message:n,factory:r,factoryData:i,signature:a,...c}){const u=V2(n);return Ee(e,qd,"verifyHash")({address:t,factory:r,factoryData:i,hash:u,signature:a,...c})}async function tI(e,t){const{address:n,factory:r,factoryData:i,signature:a,message:c,primaryType:u,types:d,domain:f,...p}=t,g=cS({message:c,primaryType:u,types:d,domain:f});return Ee(e,qd,"verifyHash")({address:n,factory:r,factoryData:i,hash:g,signature:a,...p})}const ch=new Map,uw=new Map;let nI=0;function Vo(e,t,n){const r=++nI,i=()=>ch.get(e)||[],a=()=>{const p=i();ch.set(e,p.filter(g=>g.id!==r))},c=()=>{const p=i();if(!p.some(m=>m.id===r))return;const g=uw.get(e);if(p.length===1&&g){const m=g();m instanceof Promise&&m.catch(()=>{})}a()},u=i();if(ch.set(e,[...u,{id:r,fns:t}]),u&&u.length>0)return c;const d={};for(const p in t)d[p]=((...g)=>{var y,w;const m=i();if(m.length!==0)for(const b of m)(w=(y=b.fns)[p])==null||w.call(y,...g)});const f=n(d);return typeof f=="function"&&uw.set(e,f),c}function cl(e,{emitOnBegin:t,initialWaitTime:n,interval:r}){let i=!0;const a=()=>i=!1;return(async()=>{let u;t&&(u=await e({unpoll:a}));const d=await(n==null?void 0:n(u))??r;await od(d);const f=async()=>{i&&(await e({unpoll:a}),await od(r),f())};f()})(),a}function I5(e,{emitOnBegin:t=!1,emitMissed:n=!1,onBlockNumber:r,onError:i,poll:a,pollingInterval:c=e.pollingInterval}){const u=typeof a<"u"?a:!(e.transport.type==="webSocket"||e.transport.type==="ipc"||e.transport.type==="fallback"&&(e.transport.transports[0].config.type==="webSocket"||e.transport.transports[0].config.type==="ipc"));let d;return u?(()=>{const g=At(["watchBlockNumber",e.uid,t,n,c]);return Vo(g,{onBlockNumber:r,onError:i},m=>cl(async()=>{var y;try{const w=await Ee(e,sl,"getBlockNumber")({cacheTime:0});if(d!==void 0){if(w===d)return;if(w-d>1&&n)for(let b=d+1n;b<w;b++)m.onBlockNumber(b,d),d=b}(d===void 0||w>d)&&(m.onBlockNumber(w,d),d=w)}catch(w){(y=m.onError)==null||y.call(m,w)}},{emitOnBegin:t,interval:c}))})():(()=>{const g=At(["watchBlockNumber",e.uid,t,n]);return Vo(g,{onBlockNumber:r,onError:i},m=>{let y=!0,w=()=>y=!1;return(async()=>{try{const b=(()=>{if(e.transport.type==="fallback"){const A=e.transport.transports.find(j=>j.config.type==="webSocket"||j.config.type==="ipc");return A?A.value:e.transport}return e.transport})(),{unsubscribe:E}=await b.subscribe({params:["newHeads"],onData(A){var S;if(!y)return;const j=$t((S=A.result)==null?void 0:S.number);m.onBlockNumber(j,d),d=j},onError(A){var j;(j=m.onError)==null||j.call(m,A)}});w=E,y||w()}catch(b){i==null||i(b)}})(),()=>w()})})()}async function j5(e,t){const{checkReplacement:n=!0,confirmations:r=1,hash:i,onReplaced:a,retryCount:c=6,retryDelay:u=({count:I})=>~~(1<<I)*200,timeout:d=18e4}=t,f=At(["waitForTransactionReceipt",e.uid,i]),p=(()=>{var I;return t.pollingInterval?t.pollingInterval:(I=e.chain)!=null&&I.experimental_preconfirmationTime?e.chain.experimental_preconfirmationTime:e.pollingInterval})();let g,m,y,w=!1,b,E;const{promise:A,resolve:j,reject:S}=d2(),k=d?setTimeout(()=>{E==null||E(),b==null||b(),S(new E4({hash:i}))},d):void 0;return b=Vo(f,{onReplaced:a,resolve:j,reject:S},async I=>{if(y=await Ee(e,$u,"getTransactionReceipt")({hash:i}).catch(()=>{}),y&&r<=1){clearTimeout(k),I.resolve(y),b==null||b();return}E=Ee(e,I5,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:p,async onBlockNumber(P){const _=M=>{clearTimeout(k),E==null||E(),M(),b==null||b()};let T=P;if(!w)try{if(y){if(r>1&&(!y.blockNumber||T-y.blockNumber+1n<r))return;_(()=>I.resolve(y));return}if(n&&!g&&(w=!0,await Xs(async()=>{g=await Ee(e,Ud,"getTransaction")({hash:i}),g.blockNumber&&(T=g.blockNumber)},{delay:u,retryCount:c}),w=!1),y=await Ee(e,$u,"getTransactionReceipt")({hash:i}),r>1&&(!y.blockNumber||T-y.blockNumber+1n<r))return;_(()=>I.resolve(y))}catch(M){if(M instanceof $6||M instanceof q6){if(!g){w=!1;return}try{m=g,w=!0;const V=await Xs(()=>Ee(e,Zn,"getBlock")({blockNumber:T,includeTransactions:!0}),{delay:u,retryCount:c,shouldRetry:({error:G})=>G instanceof S2});w=!1;const Q=V.transactions.find(({from:G,nonce:se})=>G===m.from&&se===m.nonce);if(!Q||(y=await Ee(e,$u,"getTransactionReceipt")({hash:Q.hash}),r>1&&(!y.blockNumber||T-y.blockNumber+1n<r)))return;let Z="replaced";Q.to===m.to&&Q.value===m.value&&Q.input===m.input?Z="repriced":Q.from===Q.to&&Q.value===0n&&(Z="cancelled"),_(()=>{var G;(G=I.onReplaced)==null||G.call(I,{reason:Z,replacedTransaction:m,transaction:Q,transactionReceipt:y}),I.resolve(y)})}catch(V){_(()=>I.reject(V))}}else _(()=>I.reject(M))}}})}),A}function rI(e,{blockTag:t=e.experimental_blockTag??"latest",emitMissed:n=!1,emitOnBegin:r=!1,onBlock:i,onError:a,includeTransactions:c,poll:u,pollingInterval:d=e.pollingInterval}){const f=typeof u<"u"?u:!(e.transport.type==="webSocket"||e.transport.type==="ipc"||e.transport.type==="fallback"&&(e.transport.transports[0].config.type==="webSocket"||e.transport.transports[0].config.type==="ipc")),p=c??!1;let g;return f?(()=>{const w=At(["watchBlocks",e.uid,t,n,r,p,d]);return Vo(w,{onBlock:i,onError:a},b=>cl(async()=>{var E;try{const A=await Ee(e,Zn,"getBlock")({blockTag:t,includeTransactions:p});if(A.number!==null&&(g==null?void 0:g.number)!=null){if(A.number===g.number)return;if(A.number-g.number>1&&n)for(let j=(g==null?void 0:g.number)+1n;j<A.number;j++){const S=await Ee(e,Zn,"getBlock")({blockNumber:j,includeTransactions:p});b.onBlock(S,g),g=S}}((g==null?void 0:g.number)==null||t==="pending"&&(A==null?void 0:A.number)==null||A.number!==null&&A.number>g.number)&&(b.onBlock(A,g),g=A)}catch(A){(E=b.onError)==null||E.call(b,A)}},{emitOnBegin:r,interval:d}))})():(()=>{let w=!0,b=!0,E=()=>w=!1;return(async()=>{try{r&&Ee(e,Zn,"getBlock")({blockTag:t,includeTransactions:p}).then(S=>{w&&b&&(i(S,void 0),b=!1)}).catch(a);const A=(()=>{if(e.transport.type==="fallback"){const S=e.transport.transports.find(k=>k.config.type==="webSocket"||k.config.type==="ipc");return S?S.value:e.transport}return e.transport})(),{unsubscribe:j}=await A.subscribe({params:["newHeads"],async onData(S){var I;if(!w)return;const k=await Ee(e,Zn,"getBlock")({blockNumber:(I=S.result)==null?void 0:I.number,includeTransactions:p}).catch(()=>{});w&&(i(k,g),b=!1,g=k)},onError(S){a==null||a(S)}});E=j,w||E()}catch(A){a==null||a(A)}})(),()=>E()})()}function oI(e,t){const{abi:n,address:r,args:i,batch:a=!0,eventName:c,fromBlock:u,onError:d,onLogs:f,poll:p,pollingInterval:g=e.pollingInterval,strict:m}=t;return(typeof p<"u"?p:typeof u=="bigint"?!0:!(e.transport.type==="webSocket"||e.transport.type==="ipc"||e.transport.type==="fallback"&&(e.transport.transports[0].config.type==="webSocket"||e.transport.transports[0].config.type==="ipc")))?(()=>{const E=m??!1,A=At(["watchContractEvent",r,i,a,e.uid,c,g,E,u]);return Vo(A,{onLogs:f,onError:d},j=>{let S;u!==void 0&&(S=u-1n);let k,I=!1;const P=cl(async()=>{var _;if(!I){try{k=await Ee(e,b2,"createContractEventFilter")({abi:n,address:r,args:i,eventName:c,strict:E,fromBlock:u})}catch{}I=!0;return}try{let T;if(k)T=await Ee(e,Dd,"getFilterChanges")({filter:k});else{const M=await Ee(e,sl,"getBlockNumber")({});S&&S<M?T=await Ee(e,H2,"getContractEvents")({abi:n,address:r,args:i,eventName:c,fromBlock:S+1n,toBlock:M,strict:E}):T=[],S=M}if(T.length===0)return;if(a)j.onLogs(T);else for(const M of T)j.onLogs([M])}catch(T){k&&T instanceof qo&&(I=!1),(_=j.onError)==null||_.call(j,T)}},{emitOnBegin:!0,interval:g});return async()=>{k&&await Ee(e,$d,"uninstallFilter")({filter:k}),P()}})})():(()=>{const E=m??!1,A=At(["watchContractEvent",r,i,a,e.uid,c,g,E]);let j=!0,S=()=>j=!1;return Vo(A,{onLogs:f,onError:d},k=>((async()=>{try{const I=(()=>{if(e.transport.type==="fallback"){const T=e.transport.transports.find(M=>M.config.type==="webSocket"||M.config.type==="ipc");return T?T.value:e.transport}return e.transport})(),P=c?ol({abi:n,eventName:c,args:i}):[],{unsubscribe:_}=await I.subscribe({params:["logs",{address:r,topics:P}],onData(T){var V;if(!j)return;const M=T.result;try{const{eventName:Q,args:Z}=rd({abi:n,data:M.data,topics:M.topics,strict:m}),G=Cr(M,{args:Z,eventName:Q});k.onLogs([G])}catch(Q){let Z,G;if(Q instanceof Zu||Q instanceof Gp){if(m)return;Z=Q.abiItem.name,G=(V=Q.abiItem.inputs)==null?void 0:V.some($=>!("name"in $&&$.name))}const se=Cr(M,{args:G?[]:{},eventName:Z});k.onLogs([se])}},onError(T){var M;(M=k.onError)==null||M.call(k,T)}});S=_,j||S()}catch(I){d==null||d(I)}})(),()=>S()))})()}function iI(e,{address:t,args:n,batch:r=!0,event:i,events:a,fromBlock:c,onError:u,onLogs:d,poll:f,pollingInterval:p=e.pollingInterval,strict:g}){const m=typeof f<"u"?f:typeof c=="bigint"?!0:!(e.transport.type==="webSocket"||e.transport.type==="ipc"||e.transport.type==="fallback"&&(e.transport.transports[0].config.type==="webSocket"||e.transport.transports[0].config.type==="ipc")),y=g??!1;return m?(()=>{const E=At(["watchEvent",t,n,r,e.uid,i,p,c]);return Vo(E,{onLogs:d,onError:u},A=>{let j;c!==void 0&&(j=c-1n);let S,k=!1;const I=cl(async()=>{var P;if(!k){try{S=await Ee(e,x2,"createEventFilter")({address:t,args:n,event:i,events:a,strict:y,fromBlock:c})}catch{}k=!0;return}try{let _;if(S)_=await Ee(e,Dd,"getFilterChanges")({filter:S});else{const T=await Ee(e,sl,"getBlockNumber")({});j&&j!==T?_=await Ee(e,Bm,"getLogs")({address:t,args:n,event:i,events:a,fromBlock:j+1n,toBlock:T}):_=[],j=T}if(_.length===0)return;if(r)A.onLogs(_);else for(const T of _)A.onLogs([T])}catch(_){S&&_ instanceof qo&&(k=!1),(P=A.onError)==null||P.call(A,_)}},{emitOnBegin:!0,interval:p});return async()=>{S&&await Ee(e,$d,"uninstallFilter")({filter:S}),I()}})})():(()=>{let E=!0,A=()=>E=!1;return(async()=>{try{const j=(()=>{if(e.transport.type==="fallback"){const P=e.transport.transports.find(_=>_.config.type==="webSocket"||_.config.type==="ipc");return P?P.value:e.transport}return e.transport})(),S=a??(i?[i]:void 0);let k=[];S&&(k=[S.flatMap(_=>ol({abi:[_],eventName:_.name,args:n}))],i&&(k=k[0]));const{unsubscribe:I}=await j.subscribe({params:["logs",{address:t,topics:k}],onData(P){var T;if(!E)return;const _=P.result;try{const{eventName:M,args:V}=rd({abi:S??[],data:_.data,topics:_.topics,strict:y}),Q=Cr(_,{args:V,eventName:M});d([Q])}catch(M){let V,Q;if(M instanceof Zu||M instanceof Gp){if(g)return;V=M.abiItem.name,Q=(T=M.abiItem.inputs)==null?void 0:T.some(G=>!("name"in G&&G.name))}const Z=Cr(_,{args:Q?[]:{},eventName:V});d([Z])}},onError(P){u==null||u(P)}});A=I,E||A()}catch(j){u==null||u(j)}})(),()=>A()})()}function sI(e,{batch:t=!0,onError:n,onTransactions:r,poll:i,pollingInterval:a=e.pollingInterval}){return(typeof i<"u"?i:e.transport.type!=="webSocket"&&e.transport.type!=="ipc")?(()=>{const f=At(["watchPendingTransactions",e.uid,t,a]);return Vo(f,{onTransactions:r,onError:n},p=>{let g;const m=cl(async()=>{var y;try{if(!g)try{g=await Ee(e,C2,"createPendingTransactionFilter")({});return}catch(b){throw m(),b}const w=await Ee(e,Dd,"getFilterChanges")({filter:g});if(w.length===0)return;if(t)p.onTransactions(w);else for(const b of w)p.onTransactions([b])}catch(w){(y=p.onError)==null||y.call(p,w)}},{emitOnBegin:!0,interval:a});return async()=>{g&&await Ee(e,$d,"uninstallFilter")({filter:g}),m()}})})():(()=>{let f=!0,p=()=>f=!1;return(async()=>{try{const{unsubscribe:g}=await e.transport.subscribe({params:["newPendingTransactions"],onData(m){if(!f)return;const y=m.result;r([y])},onError(m){n==null||n(m)}});p=g,f||p()}catch(g){n==null||n(g)}})(),()=>p()})()}class Um extends ne{constructor({docsPath:t}={}){super(["Could not find an Account to execute with this Action.","Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client."].join(`
83
+ `),{docsPath:t,docsSlug:"account",name:"AccountNotFoundError"})}}class lh extends ne{constructor({docsPath:t,metaMessages:n,type:r}){super(`Account type "${r}" is not supported.`,{docsPath:t,metaMessages:n,name:"AccountTypeNotSupportedError"})}}async function B5(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]},{retryCount:0})}const uh=new Kc(128);async function aI(e,t){var k,I,P,_,T;const{account:n=e.account,assertChainId:r=!0,chain:i=e.chain,accessList:a,authorizationList:c,blobs:u,data:d,dataSuffix:f=typeof e.dataSuffix=="string"?e.dataSuffix:(k=e.dataSuffix)==null?void 0:k.value,gas:p,gasPrice:g,maxFeePerBlobGas:m,maxFeePerGas:y,maxPriorityFeePerGas:w,nonce:b,type:E,value:A,...j}=t;if(typeof n>"u")throw new Um({docsPath:"/docs/actions/wallet/sendTransaction"});const S=n?kt(n):null;try{Wi(t);const M=await(async()=>{if(t.to)return t.to;if(t.to!==null&&c&&c.length>0)return await wm({authorization:c[0]}).catch(()=>{throw new ne("`to` is required. Could not infer from `authorizationList`.")})})();if((S==null?void 0:S.type)==="json-rpc"||S===null){let V;i!==null&&(V=await Ee(e,Md,"getChainId")({}),r&&Gk({currentChainId:V,chain:i}));const Q=(_=(P=(I=e.chain)==null?void 0:I.formatters)==null?void 0:P.transactionRequest)==null?void 0:_.format,G=(Q||sa)({...rl(j,{format:Q}),accessList:a,account:S,authorizationList:c,blobs:u,chainId:V,data:f?Dn([d??"0x",f]):d,gas:p,gasPrice:g,maxFeePerBlobGas:m,maxFeePerGas:y,maxPriorityFeePerGas:w,nonce:b,to:M,type:E,value:A},"sendTransaction"),se=uh.get(e.uid),$=se?"wallet_sendTransaction":"eth_sendTransaction";try{return await e.request({method:$,params:[G]},{retryCount:0})}catch(X){if(se===!1)throw X;const te=X;if(te.name==="InvalidInputRpcError"||te.name==="InvalidParamsRpcError"||te.name==="MethodNotFoundRpcError"||te.name==="MethodNotSupportedRpcError")return await e.request({method:"wallet_sendTransaction",params:[G]},{retryCount:0}).then(z=>(uh.set(e.uid,!0),z)).catch(z=>{const J=z;throw J.name==="MethodNotFoundRpcError"||J.name==="MethodNotSupportedRpcError"?(uh.set(e.uid,!1),te):J});throw te}}if((S==null?void 0:S.type)==="local"){const V=await Ee(e,Sm,"prepareTransactionRequest")({account:S,accessList:a,authorizationList:c,blobs:u,chain:i,data:f?Dn([d??"0x",f]):d,gas:p,gasPrice:g,maxFeePerBlobGas:m,maxFeePerGas:y,maxPriorityFeePerGas:w,nonce:b,nonceManager:S.nonceManager,parameters:[...$2,"sidecars"],type:E,value:A,...j,to:M}),Q=(T=i==null?void 0:i.serializers)==null?void 0:T.transaction,Z=await S.signTransaction(V,{serializer:Q});return await Ee(e,B5,"sendRawTransaction")({serializedTransaction:Z})}throw(S==null?void 0:S.type)==="smart"?new lh({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new lh({docsPath:"/docs/actions/wallet/sendTransaction",type:S==null?void 0:S.type})}catch(M){throw M instanceof lh?M:U2(M,{...t,account:S,chain:t.chain||void 0})}}async function cI(e,{serializedTransaction:t,throwOnReceiptRevert:n,timeout:r}){var u,d,f;const i=await e.request({method:"eth_sendRawTransactionSync",params:r?[t,r]:[t]},{retryCount:0}),c=(((f=(d=(u=e.chain)==null?void 0:u.formatters)==null?void 0:d.transactionReceipt)==null?void 0:f.format)||Tm)(i);if(c.status==="reverted"&&n)throw new C4({receipt:c});return c}async function lI(e,{account:t=e.account,message:n}){if(!t)throw new Um({docsPath:"/docs/actions/wallet/signMessage"});const r=kt(t);if(r.signMessage)return r.signMessage({message:n});const i=typeof n=="string"?Gs(n):n.raw instanceof Uint8Array?sn(n.raw):n.raw;return e.request({method:"personal_sign",params:[i,r.address]},{retryCount:0})}async function sd(e,t){return sd.internal(e,aI,"sendTransaction",t)}(function(e){async function t(n,r,i,a){const{abi:c,account:u=n.account,address:d,args:f,functionName:p,...g}=a;if(typeof u>"u")throw new Um({docsPath:"/docs/contract/writeContract"});const m=u?kt(u):null,y=xn({abi:c,args:f,functionName:p});try{return await Ee(n,r,i)({data:y,to:d,account:m,...g})}catch(w){throw Ti(w,{abi:c,address:d,args:f,docsPath:"/docs/contract/writeContract",functionName:p,sender:m==null?void 0:m.address})}}e.internal=t})(sd||(sd={}));function Xn(e,t,n){const r=e[t.name];if(typeof r=="function")return r;const i=e[n];return typeof i=="function"?i:a=>t(e,a)}const qu="2.22.1",uI=()=>`@wagmi/core@${qu}`;var _5=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},ad,P5;let Xr=class yp extends Error{get docsBaseUrl(){return"https://wagmi.sh/core"}get version(){return uI()}constructor(t,n={}){var a;super(),ad.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 r=n.cause instanceof yp?n.cause.details:(a=n.cause)!=null&&a.message?n.cause.message:n.details,i=n.cause instanceof yp&&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}`:""}`]:[],...r?[`Details: ${r}`]:[],`Version: ${this.version}`].join(`
84
+ `),n.cause&&(this.cause=n.cause),this.details=r,this.docsPath=i,this.metaMessages=n.metaMessages,this.shortMessage=t}walk(t){return _5(this,ad,"m",P5).call(this,this,t)}};ad=new WeakSet,P5=function e(t,n){return n!=null&&n(t)?t:t.cause?_5(this,ad,"m",e).call(this,t.cause,n):t};class Qo extends Xr{constructor(){super("Chain not configured."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotConfiguredError"})}}class dI extends Xr{constructor(){super("Connector already connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAlreadyConnectedError"})}}class fI extends Xr{constructor(){super("Connector not connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorNotConnectedError"})}}class hI extends Xr{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 pI extends Xr{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 mI extends Xr{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"})}}async function gI(e,t){var r;let n;if(typeof t.connector=="function"?n=e._internal.connectors.setup(t.connector):n=t.connector,n.uid===e.state.current)throw new dI;try{e.setState(u=>({...u,status:"connecting"})),n.emitter.emit("message",{type:"connecting"});const{connector:i,...a}=t,c=await n.connect(a);return n.emitter.off("connect",e._internal.events.connect),n.emitter.on("change",e._internal.events.change),n.emitter.on("disconnect",e._internal.events.disconnect),await((r=e.storage)==null?void 0:r.setItem("recentConnectorId",n.id)),e.setState(u=>({...u,connections:new Map(u.connections).set(n.uid,{accounts:a.withCapabilities?c.accounts.map(d=>typeof d=="object"?d.address:d):c.accounts,chainId:c.chainId,connector:n}),current:n.uid,status:"connected"})),{accounts:a.withCapabilities?c.accounts.map(u=>typeof u=="object"?u:{address:u,capabilities:{}}):c.accounts,chainId:c.chainId}}catch(i){throw e.setState(a=>({...a,status:a.current?"connected":"disconnected"})),i}}const vp=256;let _u=vp,Pu;function T5(e=11){if(!Pu||_u+e>vp*2){Pu="",_u=0;for(let t=0;t<vp;t++)Pu+=(256+Math.random()*256|0).toString(16).substring(1)}return Pu.substring(_u,_u+++e)}function O5(e){const{batch:t,chain:n,ccipRead:r,dataSuffix:i,key:a="base",name:c="Base Client",type:u="base"}=e,d=e.experimental_blockTag??(typeof(n==null?void 0:n.experimental_preconfirmationTime)=="number"?"pending":void 0),f=(n==null?void 0:n.blockTime)??12e3,p=Math.min(Math.max(Math.floor(f/2),500),4e3),g=e.pollingInterval??p,m=e.cacheTime??g,y=e.account?kt(e.account):void 0,{config:w,request:b,value:E}=e.transport({account:y,chain:n,pollingInterval:g}),A={...w,...E},j={account:y,batch:t,cacheTime:m,ccipRead:r,chain:n,dataSuffix:i,key:a,name:c,pollingInterval:g,request:b,transport:A,type:u,uid:T5(),...d?{experimental_blockTag:d}:{}};function S(k){return I=>{const P=I(k);for(const T in j)delete P[T];const _={...k,...P};return Object.assign(_,{extend:S(_)})}}return Object.assign(j,{extend:S(j)})}function yI(e){var g,m,y;const{scheme:t,statement:n,...r}=((g=e.match(vI))==null?void 0:g.groups)??{},{chainId:i,expirationTime:a,issuedAt:c,notBefore:u,requestId:d,...f}=((m=e.match(wI))==null?void 0:m.groups)??{},p=(y=e.split("Resources:")[1])==null?void 0:y.split(`
85
+ - `).slice(1);return{...r,...f,...i?{chainId:Number(i)}:{},...a?{expirationTime:new Date(a)}:{},...c?{issuedAt:new Date(c)}:{},...u?{notBefore:new Date(u)}:{},...d?{requestId:d}:{},...p?{resources:p}:{},...t?{scheme:t}:{},...n?{statement:n}:{}}}const vI=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\/\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\n)(?<address>0x[a-fA-F0-9]{40})\n\n(?:(?<statement>.*)\n\n)?/,wI=/(?:URI: (?<uri>.+))\n(?:Version: (?<version>.+))\n(?:Chain ID: (?<chainId>\d+))\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\n(?:Issued At: (?<issuedAt>.+))(?:\nExpiration Time: (?<expirationTime>.+))?(?:\nNot Before: (?<notBefore>.+))?(?:\nRequest ID: (?<requestId>.+))?/;function bI(e){const{address:t,domain:n,message:r,nonce:i,scheme:a,time:c=new Date}=e;if(n&&r.domain!==n||i&&r.nonce!==i||a&&r.scheme!==a||r.expirationTime&&c>=r.expirationTime||r.notBefore&&c<r.notBefore)return!1;try{if(!r.address||!ct(r.address,{strict:!1})||t&&!_c(r.address,t))return!1}catch{return!1}return!0}async function xI(e,t){const{address:n,domain:r,message:i,nonce:a,scheme:c,signature:u,time:d=new Date,...f}=t,p=yI(i);if(!p.address||!bI({address:n,domain:r,message:p,nonce:a,scheme:c,time:d}))return!1;const m=V2(i);return qd(e,{address:p.address,hash:m,signature:u,...f})}function CI(e){return{call:t=>aa(e,t),createAccessList:t=>w2(e,t),createBlockFilter:()=>z7(e),createContractEventFilter:t=>b2(e,t),createEventFilter:t=>x2(e,t),createPendingTransactionFilter:()=>C2(e),estimateContractGas:t=>gk(e,t),estimateGas:t=>Im(e,t),getBalance:t=>q2(e,t),getBlobBaseFee:()=>yk(e),getBlock:t=>Zn(e,t),getBlockNumber:t=>sl(e,t),getBlockTransactionCount:t=>Ek(e,t),getBytecode:t=>nd(e,t),getChainId:()=>Md(e),getCode:t=>nd(e,t),getContractEvents:t=>H2(e,t),getDelegation:t=>Sk(e,t),getEip712Domain:t=>jk(e,t),getEnsAddress:t=>S7(e,t),getEnsAvatar:t=>y2(e,t),getEnsName:t=>v2(e,t),getEnsResolver:t=>F7(e,t),getEnsText:t=>g2(e,t),getFeeHistory:t=>Pk(e,t),estimateFeesPerGas:t=>ek(e,t),getFilterChanges:t=>Dd(e,t),getFilterLogs:t=>Tk(e,t),getGasPrice:()=>Cm(e),getLogs:t=>Bm(e,t),getProof:t=>O9(e,t),estimateMaxPriorityFeePerGas:t=>X7(e,t),fillTransaction:t=>W2(e,t),getStorageAt:t=>R9(e,t),getTransaction:t=>Ud(e,t),getTransactionConfirmations:t=>N9(e,t),getTransactionCount:t=>B2(e,t),getTransactionReceipt:t=>$u(e,t),multicall:t=>x5(e,t),prepareTransactionRequest:t=>Sm(e,t),readContract:t=>Ln(e,t),sendRawTransaction:t=>B5(e,t),sendRawTransactionSync:t=>cI(e,t),simulate:t=>pp(e,t),simulateBlocks:t=>pp(e,t),simulateCalls:t=>H9(e,t),simulateContract:t=>k5(e,t),verifyHash:t=>qd(e,t),verifyMessage:t=>eI(e,t),verifySiweMessage:t=>xI(e,t),verifyTypedData:t=>tI(e,t),uninstallFilter:t=>$d(e,t),waitForTransactionReceipt:t=>j5(e,t),watchBlocks:t=>rI(e,t),watchBlockNumber:t=>I5(e,t),watchContractEvent:t=>oI(e,t),watchEvent:t=>iI(e,t),watchPendingTransactions:t=>sI(e,t)}}function Wm({key:e,methods:t,name:n,request:r,retryCount:i=3,retryDelay:a=150,timeout:c,type:u},d){const f=T5();return{config:{key:e,methods:t,name:n,request:r,retryCount:i,retryDelay:a,timeout:c,type:u},request:Vk(r,{methods:t,retryCount:i,retryDelay:a,uid:f}),value:d}}function EI(e,t={}){const{key:n="custom",methods:r,name:i="Custom Provider",retryDelay:a}=t;return({retryCount:c})=>Wm({key:n,methods:r,name:i,request:e.request.bind(e),retryCount:t.retryCount??c,retryDelay:a,type:"custom"})}function AI(e,t={}){const{key:n="fallback",name:r="Fallback",rank:i=!1,shouldThrow:a=kI,retryCount:c,retryDelay:u}=t;return(({chain:d,pollingInterval:f=4e3,timeout:p,...g})=>{let m=e,y=()=>{};const w=Wm({key:n,name:r,async request({method:b,params:E}){let A;const j=async(S=0)=>{const k=m[S]({...g,chain:d,retryCount:0,timeout:p});try{const I=await k.request({method:b,params:E});return y({method:b,params:E,response:I,transport:k,status:"success"}),I}catch(I){if(y({error:I,method:b,params:E,transport:k,status:"error"}),a(I)||S===m.length-1||(A??(A=m.slice(S+1).some(P=>{const{include:_,exclude:T}=P({chain:d}).config.methods||{};return _?_.includes(b):T?!T.includes(b):!0})),!A))throw I;return j(S+1)}};return j()},retryCount:c,retryDelay:u,type:"fallback"},{onResponse:b=>y=b,transports:m.map(b=>b({chain:d,retryCount:0}))});if(i){const b=typeof i=="object"?i:{};SI({chain:d,interval:b.interval??f,onTransports:E=>m=E,ping:b.ping,sampleCount:b.sampleCount,timeout:b.timeout,transports:m,weights:b.weights})}return w})}function kI(e){return!!("code"in e&&typeof e.code=="number"&&(e.code===Ys.code||e.code===We.code||e.code===Zs.code||gi.nodeMessage.test(e.message)||e.code===5e3))}function SI({chain:e,interval:t=4e3,onTransports:n,ping:r,sampleCount:i=10,timeout:a=1e3,transports:c,weights:u={}}){const{stability:d=.7,latency:f=.3}=u,p=[],g=async()=>{const m=await Promise.all(c.map(async b=>{const E=b({chain:e,retryCount:0,timeout:a}),A=Date.now();let j,S;try{await(r?r({transport:E}):E.request({method:"net_listening"})),S=1}catch{S=0}finally{j=Date.now()}return{latency:j-A,success:S}}));p.push(m),p.length>i&&p.shift();const y=Math.max(...p.map(b=>Math.max(...b.map(({latency:E})=>E)))),w=c.map((b,E)=>{const A=p.map(P=>P[E].latency),S=1-A.reduce((P,_)=>P+_,0)/A.length/y,k=p.map(P=>P[E].success),I=k.reduce((P,_)=>P+_,0)/k.length;return I===0?[0,E]:[f*S+d*I,E]}).sort((b,E)=>E[0]-b[0]);n(w.map(([,b])=>c[b])),await od(t),g()};g()}class II extends ne{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}function Hu(e,t={}){const{batch:n,fetchFn:r,fetchOptions:i,key:a="http",methods:c,name:u="HTTP JSON-RPC",onFetchRequest:d,onFetchResponse:f,retryDelay:p,raw:g}=t;return({chain:m,retryCount:y,timeout:w})=>{const{batchSize:b=1e3,wait:E=0}=typeof n=="object"?n:{},A=t.retryCount??y,j=w??t.timeout??1e4,S=e||(m==null?void 0:m.rpcUrls.default.http[0]);if(!S)throw new II;const k=Zk(S,{fetchFn:r,fetchOptions:i,onRequest:d,onResponse:f,timeout:j});return Wm({key:a,methods:c,name:u,async request({method:I,params:P}){const _={method:I,params:P},{schedule:T}=f2({id:S,wait:E,shouldSplitBatch(Z){return Z.length>b},fn:Z=>k.request({body:Z}),sort:(Z,G)=>Z.id-G.id}),M=async Z=>n?T(Z):[await k.request({body:Z})],[{error:V,result:Q}]=await M(_);if(g)return{error:V,result:Q};if(V)throw new cm({body:_,error:V,url:S});return Q},retryCount:A,retryDelay:p,timeout:j,type:"http"},{fetchOptions:i,url:S})}}async function Hd(e,t={}){const{assertChainId:n=!0}=t;let r;if(t.connector){const{connector:p}=t;if(e.state.status==="reconnecting"&&!p.getAccounts&&!p.getChainId)throw new mI({connector:p});const[g,m]=await Promise.all([p.getAccounts().catch(y=>{if(t.account===null)return[];throw y}),p.getChainId()]);r={accounts:g,chainId:m,connector:p}}else r=e.state.connections.get(e.state.current);if(!r)throw new fI;const i=t.chainId??r.chainId,a=await r.connector.getChainId();if(n&&a!==i)throw new pI({connectionChainId:i,connectorChainId:a});const c=r.connector;if(c.getClient)return c.getClient({chainId:i});const u=kt(t.account??r.accounts[0]);if(u&&(u.address=pt(u.address)),t.account&&!r.accounts.some(p=>p.toLowerCase()===u.address.toLowerCase()))throw new hI({address:u.address,connector:c});const d=e.chains.find(p=>p.id===i),f=await r.connector.getProvider({chainId:i});return O5({account:u,chain:d,name:"Connector Client",transport:p=>EI(f)({...p,retryCount:0})})}async function jI(e,t={}){var i,a;let n;if(t.connector)n=t.connector;else{const{connections:c,current:u}=e.state,d=c.get(u);n=d==null?void 0:d.connector}const r=e.state.connections;n&&(await n.disconnect(),n.emitter.off("change",e._internal.events.change),n.emitter.off("disconnect",e._internal.events.disconnect),n.emitter.on("connect",e._internal.events.connect),r.delete(n.uid)),e.setState(c=>{if(r.size===0)return{...c,connections:new Map,current:null,status:"disconnected"};const u=r.values().next().value;return{...c,connections:new Map(r),current:u.connector.uid}});{const c=e.state.current;if(!c)return;const u=(i=e.state.connections.get(c))==null?void 0:i.connector;if(!u)return;await((a=e.storage)==null?void 0:a.setItem("recentConnectorId",u.id))}}function R5(e){return typeof e=="number"?e:e==="wei"?0:Math.abs(p4[e])}function N5(e){const t=e.state.current,n=e.state.connections.get(t),r=n==null?void 0:n.accounts,i=r==null?void 0:r[0],a=e.chains.find(u=>u.id===(n==null?void 0:n.chainId)),c=e.state.status;switch(c){case"connected":return{address:i,addresses:r,chain:a,chainId:n==null?void 0:n.chainId,connector:n==null?void 0:n.connector,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:c};case"reconnecting":return{address:i,addresses:r,chain:a,chainId:n==null?void 0:n.chainId,connector:n==null?void 0:n.connector,isConnected:!!i,isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:c};case"connecting":return{address:i,addresses:r,chain:a,chainId:n==null?void 0:n.chainId,connector:n==null?void 0:n.connector,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:c};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:c}}}async function BI(e,t){const{allowFailure:n=!0,chainId:r,contracts:i,...a}=t,c=e.getClient({chainId:r});return Xn(c,x5,"multicall")({allowFailure:n,contracts:i,...a})}function M5(e,t){const{chainId:n,...r}=t,i=e.getClient({chainId:n});return Xn(i,Ln,"readContract")(r)}async function _I(e,t){var u;const{allowFailure:n=!0,blockNumber:r,blockTag:i,...a}=t,c=t.contracts;try{const d={};for(const[m,y]of c.entries()){const w=y.chainId??e.state.chainId;d[w]||(d[w]=[]),(u=d[w])==null||u.push({contract:y,index:m})}const f=()=>Object.entries(d).map(([m,y])=>BI(e,{...a,allowFailure:n,blockNumber:r,blockTag:i,chainId:Number.parseInt(m,10),contracts:y.map(({contract:w})=>w)})),p=(await Promise.all(f())).flat(),g=Object.values(d).flatMap(m=>m.map(({index:y})=>y));return p.reduce((m,y,w)=>(m&&(m[g[w]]=y),m),[])}catch(d){if(d instanceof im)throw d;const f=()=>c.map(p=>M5(e,{...p,blockNumber:r,blockTag:i}));return n?(await Promise.allSettled(f())).map(p=>p.status==="fulfilled"?{result:p.value,status:"success"}:{error:p.reason,result:void 0,status:"failure"}):await Promise.all(f())}}async function PI(e,t){const{address:n,blockNumber:r,blockTag:i,chainId:a,token:c,unit:u="ether"}=t;if(c)try{return await dw(e,{balanceAddress:n,chainId:a,symbolType:"string",tokenAddress:c})}catch(m){if(m.name==="ContractFunctionExecutionError"){const y=await dw(e,{balanceAddress:n,chainId:a,symbolType:"bytes32",tokenAddress:c}),w=f6(vn(y.symbol,{dir:"right"}));return{...y,symbol:w}}throw m}const d=e.getClient({chainId:a}),p=await Xn(d,q2,"getBalance")(r?{address:n,blockNumber:r}:{address:n,blockTag:i}),g=e.chains.find(m=>m.id===a)??d.chain;return{decimals:g.nativeCurrency.decimals,formatted:Id(p,R5(u)),symbol:g.nativeCurrency.symbol,value:p}}async function dw(e,t){const{balanceAddress:n,chainId:r,symbolType:i,tokenAddress:a,unit:c}=t,u={abi:[{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:i}]}],address:a},[d,f,p]=await _I(e,{allowFailure:!1,contracts:[{...u,functionName:"balanceOf",args:[n],chainId:r},{...u,functionName:"decimals",chainId:r},{...u,functionName:"symbol",chainId:r}]}),g=Id(d??"0",R5(c??f));return{decimals:f,formatted:g,symbol:p,value:d}}function fw(e){return e.state.chainId}function Di(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let n,r;if(Array.isArray(e)&&Array.isArray(t)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Di(e[r],t[r]))return!1;return!0}if(typeof e.valueOf=="function"&&e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(typeof e.toString=="function"&&e.toString!==Object.prototype.toString)return e.toString()===t.toString();const i=Object.keys(e);if(n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.hasOwn(t,i[r]))return!1;for(r=n;r--!==0;){const a=i[r];if(a&&!Di(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}let dh=[];function hw(e){const t=e.chains;return Di(dh,t)?dh:(dh=t,t)}function TI(e,t={}){try{return e.getClient(t)}catch{return}}let Tu=[];function wp(e){const t=[...e.state.connections.values()];return e.state.status==="reconnecting"||Di(Tu,t)?Tu:(Tu=t,t)}let Ou=[];function pw(e){const t=e.connectors;return Ou.length===t.length&&Ou.every((n,r)=>n===t[r])?Ou:(Ou=t,t)}function OI(e,t){const{chainId:n,...r}=t,i=e.getClient({chainId:n});return Xn(i,y2,"getEnsAvatar")(r)}function RI(e,t){const{chainId:n,...r}=t,i=e.getClient({chainId:n});return Xn(i,v2,"getEnsName")(r)}function bp(e,t={}){const n=TI(e,t);return n==null?void 0:n.extend(CI)}let fh=!1;async function NI(e,t={}){var f,p;if(fh)return[];fh=!0,e.setState(g=>({...g,status:g.current?"reconnecting":"connecting"}));const n=[];if((f=t.connectors)!=null&&f.length)for(const g of t.connectors){let m;typeof g=="function"?m=e._internal.connectors.setup(g):m=g,n.push(m)}else n.push(...e.connectors);let r;try{r=await((p=e.storage)==null?void 0:p.getItem("recentConnectorId"))}catch{}const i={};for(const[,g]of e.state.connections)i[g.connector.id]=1;r&&(i[r]=0);const a=Object.keys(i).length>0?[...n].sort((g,m)=>(i[g.id]??10)-(i[m.id]??10)):n;let c=!1;const u=[],d=[];for(const g of a){const m=await g.getProvider().catch(()=>{});if(!m||d.some(b=>b===m)||!await g.isAuthorized())continue;const w=await g.connect({isReconnecting:!0}).catch(()=>null);w&&(g.emitter.off("connect",e._internal.events.connect),g.emitter.on("change",e._internal.events.change),g.emitter.on("disconnect",e._internal.events.disconnect),e.setState(b=>{const E=new Map(c?b.connections:new Map).set(g.uid,{accounts:w.accounts,chainId:w.chainId,connector:g});return{...b,current:c?b.current:g.uid,connections:E}}),u.push({accounts:w.accounts,chainId:w.chainId,connector:g}),d.push(m),c=!0)}return(e.state.status==="reconnecting"||e.state.status==="connecting")&&(c?e.setState(g=>({...g,status:"connected"})):e.setState(g=>({...g,connections:new Map,current:null,status:"disconnected"}))),fh=!1,u}async function MI(e,t){const{account:n,connector:r,...i}=t;let a;return typeof n=="object"&&n.type==="local"?a=e.getClient():a=await Hd(e,{account:n,connector:r}),Xn(a,lI,"signMessage")({...i,...n?{account:n}:{}})}async function DI(e,t){const{abi:n,chainId:r,connector:i,...a}=t;let c;t.account?c=t.account:c=(await Hd(e,{assertChainId:!1,chainId:r,connector:i})).account;const u=e.getClient({chainId:r}),d=Xn(u,k5,"simulateContract"),{result:f,request:p}=await d({...a,abi:n,account:c});return{chainId:u.chain.id,result:f,request:{...p,chainId:r}}}class gn extends Xr{constructor(){super("Provider not found."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderNotFoundError"})}}class LI extends Xr{constructor({connector:t}){super(`"${t.name}" does not support programmatic chain switching.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainNotSupportedError"})}}async function FI(e,t){var c;const{addEthereumChainParameter:n,chainId:r}=t,i=e.state.connections.get(((c=t.connector)==null?void 0:c.uid)??e.state.current);if(i){const u=i.connector;if(!u.switchChain)throw new LI({connector:u});return await u.switchChain({addEthereumChainParameter:n,chainId:r})}const a=e.chains.find(u=>u.id===r);if(!a)throw new Qo;return e.setState(u=>({...u,chainId:r})),a}async function zI(e,t){const{chainId:n,timeout:r=0,...i}=t,a=e.getClient({chainId:n}),u=await Xn(a,j5,"waitForTransactionReceipt")({...i,timeout:r});if(u.status==="reverted"){const d=Xn(a,Ud,"getTransaction"),{from:f,...p}=await d({hash:u.transactionHash}),m=await Xn(a,aa,"call")({...p,account:f,data:p.input,gasPrice:p.type!=="eip1559"?p.gasPrice:void 0,maxFeePerGas:p.type==="eip1559"?p.maxFeePerGas:void 0,maxPriorityFeePerGas:p.type==="eip1559"?p.maxPriorityFeePerGas:void 0}),y=m!=null&&m.data?f6(`0x${m.data.substring(138)}`):"unknown reason";throw new Error(y)}return{...u,chainId:a.chain.id}}function D5(e,t){const{onChange:n}=t;return e.subscribe(()=>N5(e),n,{equalityFn(r,i){const{connector:a,...c}=r,{connector:u,...d}=i;return Di(c,d)&&(a==null?void 0:a.id)===(u==null?void 0:u.id)&&(a==null?void 0:a.uid)===(u==null?void 0:u.uid)}})}function UI(e,t){const{onChange:n}=t;return e.subscribe(r=>r.chainId,n)}function WI(e,t){const{onChange:n}=t;return e.subscribe(()=>wp(e),n,{equalityFn:Di})}function $I(e,t){const{onChange:n}=t;return e._internal.connectors.subscribe((r,i)=>{n(Object.values(r),i)})}function qI(e,t){const{onChange:n}=t;return e.subscribe(()=>bp(e),n,{equalityFn(r,i){return(r==null?void 0:r.uid)===(i==null?void 0:i.uid)}})}async function HI(e,t){const{account:n,chainId:r,connector:i,...a}=t;let c;return typeof n=="object"&&(n==null?void 0:n.type)==="local"?c=e.getClient({chainId:r}):c=await Hd(e,{account:n??void 0,assertChainId:!1,chainId:r,connector:i}),await Xn(c,sd,"writeContract")({...a,...n?{account:n}:{},chain:r?{id:r}:null})}Vd.type="injected";function Vd(e={}){const{shimDisconnect:t=!0,unstable_shimAsyncInject:n}=e;function r(){const d=e.target;if(typeof d=="function"){const f=d();if(f)return f}return typeof d=="object"?d:typeof d=="string"?{...VI[d]??{id:d,name:`${d[0].toUpperCase()}${d.slice(1)}`,provider:`is${d[0].toUpperCase()}${d.slice(1)}`}}:{id:"injected",name:"Injected",provider(f){return f==null?void 0:f.ethereum}}}let i,a,c,u;return d=>({get icon(){return r().icon},get id(){return r().id},get name(){return r().name},get supportsSimulation(){return!0},type:Vd.type,async setup(){const f=await this.getProvider();f!=null&&f.on&&e.target&&(c||(c=this.onConnect.bind(this),f.on("connect",c)),i||(i=this.onAccountsChanged.bind(this),f.on("accountsChanged",i)))},async connect({chainId:f,isReconnecting:p,withCapabilities:g}={}){var w,b,E,A,j,S;const m=await this.getProvider();if(!m)throw new gn;let y=[];if(p)y=await this.getAccounts().catch(()=>[]);else if(t)try{y=(A=(E=(b=(w=(await m.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]}))[0])==null?void 0:w.caveats)==null?void 0:b[0])==null?void 0:E.value)==null?void 0:A.map(I=>pt(I)),y.length>0&&(y=await this.getAccounts())}catch(k){const I=k;if(I.code===We.code)throw new We(I);if(I.code===wr.code)throw I}try{!(y!=null&&y.length)&&!p&&(y=(await m.request({method:"eth_requestAccounts"})).map(P=>pt(P))),c&&(m.removeListener("connect",c),c=void 0),i||(i=this.onAccountsChanged.bind(this),m.on("accountsChanged",i)),a||(a=this.onChainChanged.bind(this),m.on("chainChanged",a)),u||(u=this.onDisconnect.bind(this),m.on("disconnect",u));let k=await this.getChainId();if(f&&k!==f){const I=await this.switchChain({chainId:f}).catch(P=>{if(P.code===We.code)throw P;return{id:k}});k=(I==null?void 0:I.id)??k}return t&&await((j=d.storage)==null?void 0:j.removeItem(`${this.id}.disconnected`)),e.target||await((S=d.storage)==null?void 0:S.setItem("injected.connected",!0)),{accounts:g?y.map(I=>({address:I,capabilities:{}})):y,chainId:k}}catch(k){const I=k;throw I.code===We.code?new We(I):I.code===wr.code?new wr(I):I}},async disconnect(){var p,g;const f=await this.getProvider();if(!f)throw new gn;a&&(f.removeListener("chainChanged",a),a=void 0),u&&(f.removeListener("disconnect",u),u=void 0),c||(c=this.onConnect.bind(this),f.on("connect",c));try{await Fd(()=>f.request({method:"wallet_revokePermissions",params:[{eth_accounts:{}}]}),{timeout:100})}catch{}t&&await((p=d.storage)==null?void 0:p.setItem(`${this.id}.disconnected`,!0)),e.target||await((g=d.storage)==null?void 0:g.removeItem("injected.connected"))},async getAccounts(){const f=await this.getProvider();if(!f)throw new gn;return(await f.request({method:"eth_accounts"})).map(g=>pt(g))},async getChainId(){const f=await this.getProvider();if(!f)throw new gn;const p=await f.request({method:"eth_chainId"});return Number(p)},async getProvider(){if(typeof window>"u")return;let f;const p=r();return typeof p.provider=="function"?f=p.provider(window):typeof p.provider=="string"?f=Vu(window,p.provider):f=p.provider,f&&!f.removeListener&&("off"in f&&typeof f.off=="function"?f.removeListener=f.off:f.removeListener=()=>{}),f},async isAuthorized(){var f,p;try{if(t&&await((f=d.storage)==null?void 0:f.getItem(`${this.id}.disconnected`))||!e.target&&!await((p=d.storage)==null?void 0:p.getItem("injected.connected")))return!1;if(!await this.getProvider()){if(n!==void 0&&n!==!1){const w=async()=>(typeof window<"u"&&window.removeEventListener("ethereum#initialized",w),!!await this.getProvider()),b=typeof n=="number"?n:1e3;if(await Promise.race([...typeof window<"u"?[new Promise(A=>window.addEventListener("ethereum#initialized",()=>A(w()),{once:!0}))]:[],new Promise(A=>setTimeout(()=>A(w()),b))]))return!0}throw new gn}return!!(await Xs(()=>this.getAccounts())).length}catch{return!1}},async switchChain({addEthereumChainParameter:f,chainId:p}){var w,b,E,A;const g=await this.getProvider();if(!g)throw new gn;const m=d.chains.find(j=>j.id===p);if(!m)throw new wn(new Qo);const y=new Promise(j=>{const S=(k=>{"chainId"in k&&k.chainId===p&&(d.emitter.off("change",S),j())});d.emitter.on("change",S)});try{return await Promise.all([g.request({method:"wallet_switchEthereumChain",params:[{chainId:ce(p)}]}).then(async()=>{await this.getChainId()===p&&d.emitter.emit("change",{chainId:p})}),y]),m}catch(j){const S=j;if(S.code===4902||((b=(w=S==null?void 0:S.data)==null?void 0:w.originalError)==null?void 0:b.code)===4902)try{const{default:k,...I}=m.blockExplorers??{};let P;f!=null&&f.blockExplorerUrls?P=f.blockExplorerUrls:k&&(P=[k.url,...Object.values(I).map(M=>M.url)]);let _;(E=f==null?void 0:f.rpcUrls)!=null&&E.length?_=f.rpcUrls:_=[((A=m.rpcUrls.default)==null?void 0:A.http[0])??""];const T={blockExplorerUrls:P,chainId:ce(p),chainName:(f==null?void 0:f.chainName)??m.name,iconUrls:f==null?void 0:f.iconUrls,nativeCurrency:(f==null?void 0:f.nativeCurrency)??m.nativeCurrency,rpcUrls:_};return await Promise.all([g.request({method:"wallet_addEthereumChain",params:[T]}).then(async()=>{if(await this.getChainId()===p)d.emitter.emit("change",{chainId:p});else throw new We(new Error("User rejected switch after adding network."))}),y]),m}catch(k){throw new We(k)}throw S.code===We.code?new We(S):new wn(S)}},async onAccountsChanged(f){var p;if(f.length===0)this.onDisconnect();else if(d.emitter.listenerCount("connect")){const g=(await this.getChainId()).toString();this.onConnect({chainId:g}),t&&await((p=d.storage)==null?void 0:p.removeItem(`${this.id}.disconnected`))}else d.emitter.emit("change",{accounts:f.map(g=>pt(g))})},onChainChanged(f){const p=Number(f);d.emitter.emit("change",{chainId:p})},async onConnect(f){const p=await this.getAccounts();if(p.length===0)return;const g=Number(f.chainId);d.emitter.emit("connect",{accounts:p,chainId:g});const m=await this.getProvider();m&&(c&&(m.removeListener("connect",c),c=void 0),i||(i=this.onAccountsChanged.bind(this),m.on("accountsChanged",i)),a||(a=this.onChainChanged.bind(this),m.on("chainChanged",a)),u||(u=this.onDisconnect.bind(this),m.on("disconnect",u)))},async onDisconnect(f){const p=await this.getProvider();f&&f.code===1013&&p&&(await this.getAccounts()).length||(d.emitter.emit("disconnect"),p&&(a&&(p.removeListener("chainChanged",a),a=void 0),u&&(p.removeListener("disconnect",u),u=void 0),c||(c=this.onConnect.bind(this),p.on("connect",c))))}})}const VI={coinbaseWallet:{id:"coinbaseWallet",name:"Coinbase Wallet",provider(e){return e!=null&&e.coinbaseWalletExtension?e.coinbaseWalletExtension:Vu(e,"isCoinbaseWallet")}},metaMask:{id:"metaMask",name:"MetaMask",provider(e){return Vu(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 r of n)if(t[r])return!1;return!0})}},phantom:{id:"phantom",name:"Phantom",provider(e){var t,n;return(t=e==null?void 0:e.phantom)!=null&&t.ethereum?(n=e.phantom)==null?void 0:n.ethereum:Vu(e,"isPhantom")}}};function Vu(e,t){function n(i){return typeof t=="function"?t(i):typeof t=="string"?i[t]:!0}const r=e.ethereum;if(r!=null&&r.providers)return r.providers.find(i=>n(i));if(r&&n(r))return r}function QI(e){if(typeof window>"u")return;const t=n=>e(n.detail);return window.addEventListener("eip6963:announceProvider",t),window.dispatchEvent(new CustomEvent("eip6963:requestProvider")),()=>window.removeEventListener("eip6963:announceProvider",t)}function GI(){const e=new Set;let t=[];const n=()=>QI(i=>{t.some(({info:a})=>a.uuid===i.info.uuid)||(t=[...t,i],e.forEach(a=>a(t,{added:[i]})))});let r=n();return{_listeners(){return e},clear(){e.forEach(i=>i([],{removed:[...t]})),t=[]},destroy(){this.clear(),e.clear(),r==null||r()},findProvider({rdns:i}){return t.find(a=>a.info.rdns===i)},getProviders(){return t},reset(){this.clear(),r==null||r(),r=n()},subscribe(i,{emitImmediately:a}={}){return e.add(i),a&&i(t,{added:t}),()=>e.delete(i)}}}const KI=e=>(t,n,r)=>{const i=r.subscribe;return r.subscribe=(c,u,d)=>{let f=c;if(u){const p=(d==null?void 0:d.equalityFn)||Object.is;let g=c(r.getState());f=m=>{const y=c(m);if(!p(g,y)){const w=g;u(g=y,w)}},d!=null&&d.fireImmediately&&u(g,g)}return i(f)},e(t,n,r)},YI=KI;function JI(e,t){let n;try{n=e()}catch{return}return{getItem:i=>{var a;const c=d=>d===null?null:JSON.parse(d,void 0),u=(a=n.getItem(i))!=null?a:null;return u instanceof Promise?u.then(c):c(u)},setItem:(i,a)=>n.setItem(i,JSON.stringify(a,void 0)),removeItem:i=>n.removeItem(i)}}const xp=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return xp(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return xp(r)(n)}}}},ZI=(e,t)=>(n,r,i)=>{let a={storage:JI(()=>localStorage),partialize:b=>b,version:0,merge:(b,E)=>({...E,...b}),...t},c=!1;const u=new Set,d=new Set;let f=a.storage;if(!f)return e((...b)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...b)},r,i);const p=()=>{const b=a.partialize({...r()});return f.setItem(a.name,{state:b,version:a.version})},g=i.setState;i.setState=(b,E)=>{g(b,E),p()};const m=e((...b)=>{n(...b),p()},r,i);i.getInitialState=()=>m;let y;const w=()=>{var b,E;if(!f)return;c=!1,u.forEach(j=>{var S;return j((S=r())!=null?S:m)});const A=((E=a.onRehydrateStorage)==null?void 0:E.call(a,(b=r())!=null?b:m))||void 0;return xp(f.getItem.bind(f))(a.name).then(j=>{if(j)if(typeof j.version=="number"&&j.version!==a.version){if(a.migrate)return[!0,a.migrate(j.state,j.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,j.state];return[!1,void 0]}).then(j=>{var S;const[k,I]=j;if(y=a.merge(I,(S=r())!=null?S:m),n(y,!0),k)return p()}).then(()=>{A==null||A(y,void 0),y=r(),c=!0,d.forEach(j=>j(y))}).catch(j=>{A==null||A(void 0,j)})};return i.persist={setOptions:b=>{a={...a,...b},b.storage&&(f=b.storage)},clearStorage:()=>{f==null||f.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>w(),hasHydrated:()=>c,onHydrate:b=>(u.add(b),()=>{u.delete(b)}),onFinishHydration:b=>(d.add(b),()=>{d.delete(b)})},a.skipHydration||w(),y||m},XI=ZI,mw=e=>{let t;const n=new Set,r=(f,p)=>{const g=typeof f=="function"?f(t):f;if(!Object.is(g,t)){const m=t;t=p??(typeof g!="object"||g===null)?g:Object.assign({},t,g),n.forEach(y=>y(t,m))}},i=()=>t,u={setState:r,getState:i,getInitialState:()=>d,subscribe:f=>(n.add(f),()=>n.delete(f))},d=t=e(r,i,u);return u},hh=e=>e?mw(e):mw;var ph={exports:{}},gw;function ej(){return gw||(gw=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(d,f,p){this.fn=d,this.context=f,this.once=p||!1}function a(d,f,p,g,m){if(typeof p!="function")throw new TypeError("The listener must be a function");var y=new i(p,g||d,m),w=n?n+f:f;return d._events[w]?d._events[w].fn?d._events[w]=[d._events[w],y]:d._events[w].push(y):(d._events[w]=y,d._eventsCount++),d}function c(d,f){--d._eventsCount===0?d._events=new r:delete d._events[f]}function u(){this._events=new r,this._eventsCount=0}u.prototype.eventNames=function(){var f=[],p,g;if(this._eventsCount===0)return f;for(g in p=this._events)t.call(p,g)&&f.push(n?g.slice(1):g);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(p)):f},u.prototype.listeners=function(f){var p=n?n+f:f,g=this._events[p];if(!g)return[];if(g.fn)return[g.fn];for(var m=0,y=g.length,w=new Array(y);m<y;m++)w[m]=g[m].fn;return w},u.prototype.listenerCount=function(f){var p=n?n+f:f,g=this._events[p];return g?g.fn?1:g.length:0},u.prototype.emit=function(f,p,g,m,y,w){var b=n?n+f:f;if(!this._events[b])return!1;var E=this._events[b],A=arguments.length,j,S;if(E.fn){switch(E.once&&this.removeListener(f,E.fn,void 0,!0),A){case 1:return E.fn.call(E.context),!0;case 2:return E.fn.call(E.context,p),!0;case 3:return E.fn.call(E.context,p,g),!0;case 4:return E.fn.call(E.context,p,g,m),!0;case 5:return E.fn.call(E.context,p,g,m,y),!0;case 6:return E.fn.call(E.context,p,g,m,y,w),!0}for(S=1,j=new Array(A-1);S<A;S++)j[S-1]=arguments[S];E.fn.apply(E.context,j)}else{var k=E.length,I;for(S=0;S<k;S++)switch(E[S].once&&this.removeListener(f,E[S].fn,void 0,!0),A){case 1:E[S].fn.call(E[S].context);break;case 2:E[S].fn.call(E[S].context,p);break;case 3:E[S].fn.call(E[S].context,p,g);break;case 4:E[S].fn.call(E[S].context,p,g,m);break;default:if(!j)for(I=1,j=new Array(A-1);I<A;I++)j[I-1]=arguments[I];E[S].fn.apply(E[S].context,j)}}return!0},u.prototype.on=function(f,p,g){return a(this,f,p,g,!1)},u.prototype.once=function(f,p,g){return a(this,f,p,g,!0)},u.prototype.removeListener=function(f,p,g,m){var y=n?n+f:f;if(!this._events[y])return this;if(!p)return c(this,y),this;var w=this._events[y];if(w.fn)w.fn===p&&(!m||w.once)&&(!g||w.context===g)&&c(this,y);else{for(var b=0,E=[],A=w.length;b<A;b++)(w[b].fn!==p||m&&!w[b].once||g&&w[b].context!==g)&&E.push(w[b]);E.length?this._events[y]=E.length===1?E[0]:E:c(this,y)}return this},u.prototype.removeAllListeners=function(f){var p;return f?(p=n?n+f:f,this._events[p]&&c(this,p)):(this._events=new r,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=n,u.EventEmitter=u,e.exports=u})(ph)),ph.exports}var tj=ej();const nj=Xb(tj);class rj{constructor(t){Object.defineProperty(this,"uid",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"_emitter",{enumerable:!0,configurable:!0,writable:!0,value:new nj})}on(t,n){this._emitter.on(t,n)}once(t,n){this._emitter.once(t,n)}off(t,n){this._emitter.off(t,n)}emit(t,...n){const r=n[0];this._emitter.emit(t,{uid:this.uid,...r})}listenerCount(t){return this._emitter.listenerCount(t)}}function oj(e){return new rj(e)}function ij(e,t){return JSON.parse(e,(n,r)=>{let i=r;return(i==null?void 0:i.__type)==="bigint"&&(i=BigInt(i.value)),(i==null?void 0:i.__type)==="Map"&&(i=new Map(i.value)),(t==null?void 0:t(n,i))??i})}function yw(e,t){return e.slice(0,t).join(".")||"."}function vw(e,t){const{length:n}=e;for(let r=0;r<n;++r)if(e[r]===t)return r+1;return 0}function sj(e,t){const n=typeof e=="function",r=typeof t=="function",i=[],a=[];return function(u,d){if(typeof d=="object")if(i.length){const f=vw(i,this);f===0?i[i.length]=this:(i.splice(f),a.splice(f)),a[a.length]=u;const p=vw(i,d);if(p!==0)return r?t.call(this,u,d,yw(a,p)):`[ref=${yw(a,p)}]`}else i[0]=d,a[0]=u;return n?e.call(this,u,d):d}}function aj(e,t,n,r){return JSON.stringify(e,sj((i,a)=>{let c=a;return typeof c=="bigint"&&(c={__type:"bigint",value:a.toString()}),c instanceof Map&&(c={__type:"Map",value:Array.from(a.entries())}),(t==null?void 0:t(i,c))??c},r),n??void 0)}function cj(e){const{deserialize:t=ij,key:n="wagmi",serialize:r=aj,storage:i=L5}=e;function a(c){return c instanceof Promise?c.then(u=>u).catch(()=>null):c}return{...i,key:n,async getItem(c,u){const d=i.getItem(`${n}.${c}`),f=await a(d);return f?t(f)??null:u??null},async setItem(c,u){const d=`${n}.${c}`;u===null?await a(i.removeItem(d)):await a(i.setItem(d,r(u)))},async removeItem(c){await a(i.removeItem(`${n}.${c}`))}}}const L5={getItem:()=>null,setItem:()=>{},removeItem:()=>{}};function lj(){const e=typeof window<"u"&&window.localStorage?window.localStorage:L5;return{getItem(t){return e.getItem(t)},removeItem(t){e.removeItem(t)},setItem(t,n){try{e.setItem(t,n)}catch{}}}}const Cp=256;let Ru=Cp,Nu;function uj(e=11){if(!Nu||Ru+e>Cp*2){Nu="",Ru=0;for(let t=0;t<Cp;t++)Nu+=(256+Math.random()*256|0).toString(16).substring(1)}return Nu.substring(Ru,Ru+++e)}function dj(e){const{multiInjectedProviderDiscovery:t=!0,storage:n=cj({storage:lj()}),syncConnectedChain:r=!0,ssr:i=!1,...a}=e,c=typeof window<"u"&&t?GI():void 0,u=hh(()=>a.chains),d=hh(()=>{const I=[],P=new Set;for(const _ of a.connectors??[]){const T=f(_);if(I.push(T),!i&&T.rdns){const M=typeof T.rdns=="string"?[T.rdns]:T.rdns;for(const V of M)P.add(V)}}if(!i&&c){const _=c.getProviders();for(const T of _)P.has(T.info.rdns)||I.push(f(p(T)))}return I});function f(I){var T;const P=oj(uj()),_={...I({emitter:P,chains:u.getState(),storage:n,transports:a.transports}),emitter:P,uid:P.uid};return P.on("connect",S),(T=_.setup)==null||T.call(_),_}function p(I){const{info:P}=I,_=I.provider;return Vd({target:{...P,id:P.rdns,provider:_}})}const g=new Map;function m(I={}){const P=I.chainId??E.getState().chainId,_=u.getState().find(M=>M.id===P);if(I.chainId&&!_)throw new Qo;{const M=g.get(E.getState().chainId);if(M&&!_)return M;if(!_)throw new Qo}{const M=g.get(P);if(M)return M}let T;if(a.client)T=a.client({chain:_});else{const M=_.id,V=u.getState().map(G=>G.id),Q={},Z=Object.entries(a);for(const[G,se]of Z)if(!(G==="chains"||G==="client"||G==="connectors"||G==="transports"))if(typeof se=="object")if(M in se)Q[G]=se[M];else{if(V.some(X=>X in se))continue;Q[G]=se}else Q[G]=se;T=O5({...Q,chain:_,batch:Q.batch??{multicall:!0},transport:G=>a.transports[M]({...G,connectors:d})})}return g.set(P,T),T}function y(){return{chainId:u.getState()[0].id,connections:new Map,current:null,status:"disconnected"}}let w;const b="0.0.0-canary-";qu.startsWith(b)?w=Number.parseInt(qu.replace(b,""),10):w=Number.parseInt(qu.split(".")[0]??"0",10);const E=hh(YI(n?XI(y,{migrate(I,P){if(P===w)return I;const _=y(),T=A(I,_.chainId);return{..._,chainId:T}},name:"store",partialize(I){return{connections:{__type:"Map",value:Array.from(I.connections.entries()).map(([P,_])=>{const{id:T,name:M,type:V,uid:Q}=_.connector;return[P,{..._,connector:{id:T,name:M,type:V,uid:Q}}]})},chainId:I.chainId,current:I.current}},merge(I,P){typeof I=="object"&&I&&"status"in I&&delete I.status;const _=A(I,P.chainId);return{...P,...I,chainId:_}},skipHydration:i,storage:n,version:w}):y));E.setState(y());function A(I,P){return I&&typeof I=="object"&&"chainId"in I&&typeof I.chainId=="number"&&u.getState().some(_=>_.id===I.chainId)?I.chainId:P}r&&E.subscribe(({connections:I,current:P})=>{var _;return P?(_=I.get(P))==null?void 0:_.chainId:void 0},I=>{if(u.getState().some(_=>_.id===I))return E.setState(_=>({..._,chainId:I??_.chainId}))}),c==null||c.subscribe(I=>{const P=new Set,_=new Set;for(const M of d.getState())if(P.add(M.id),M.rdns){const V=typeof M.rdns=="string"?[M.rdns]:M.rdns;for(const Q of V)_.add(Q)}const T=[];for(const M of I){if(_.has(M.info.rdns))continue;const V=f(p(M));P.has(V.id)||T.push(V)}n&&!E.persist.hasHydrated()||d.setState(M=>[...M,...T],!0)});function j(I){E.setState(P=>{const _=P.connections.get(I.uid);return _?{...P,connections:new Map(P.connections).set(I.uid,{accounts:I.accounts??_.accounts,chainId:I.chainId??_.chainId,connector:_.connector})}:P})}function S(I){E.getState().status==="connecting"||E.getState().status==="reconnecting"||E.setState(P=>{const _=d.getState().find(T=>T.uid===I.uid);return _?(_.emitter.listenerCount("connect")&&_.emitter.off("connect",j),_.emitter.listenerCount("change")||_.emitter.on("change",j),_.emitter.listenerCount("disconnect")||_.emitter.on("disconnect",k),{...P,connections:new Map(P.connections).set(I.uid,{accounts:I.accounts,chainId:I.chainId,connector:_}),current:I.uid,status:"connected"}):P})}function k(I){E.setState(P=>{const _=P.connections.get(I.uid);if(_){const M=_.connector;M.emitter.listenerCount("change")&&_.connector.emitter.off("change",j),M.emitter.listenerCount("disconnect")&&_.connector.emitter.off("disconnect",k),M.emitter.listenerCount("connect")||_.connector.emitter.on("connect",S)}if(P.connections.delete(I.uid),P.connections.size===0)return{...P,connections:new Map,current:null,status:"disconnected"};const T=P.connections.values().next().value;return{...P,connections:new Map(P.connections),current:T.connector.uid}})}return{get chains(){return u.getState()},get connectors(){return d.getState()},storage:n,getClient:m,get state(){return E.getState()},setState(I){let P;typeof I=="function"?P=I(E.getState()):P=I;const _=y();typeof P!="object"&&(P=_),Object.keys(_).some(M=>!(M in P))&&(P=_),E.setState(P,!0)},subscribe(I,P,_){return E.subscribe(I,P,_?{..._,fireImmediately:_.emitImmediately}:void 0)},_internal:{mipd:c,async revalidate(){const I=E.getState(),P=I.connections;let _=I.current;for(const[,T]of P){const M=T.connector;M.isAuthorized&&await M.isAuthorized()||(P.delete(M.uid),_===M.uid&&(_=null))}E.setState(T=>({...T,connections:P,current:_}))},store:E,ssr:!!i,syncConnectedChain:r,transports:a.transports,chains:{setState(I){const P=typeof I=="function"?I(u.getState()):I;if(P.length!==0)return u.setState(P,!0)},subscribe(I){return u.subscribe(I)}},connectors:{providerDetailToConnector:p,setup:f,setState(I){return d.setState(typeof I=="function"?I(d.getState()):I,!0)},subscribe(I){return d.subscribe(I)}},events:{change:j,connect:S,disconnect:k}}}}function fj(e,t){const{initialState:n,reconnectOnMount:r}=t;return n&&!e._internal.store.persist.hasHydrated()&&e.setState({...n,chainId:e.chains.some(i=>i.id===n.chainId)?n.chainId:e.chains[0].id,connections:r?n.connections:new Map,status:r?"reconnecting":"disconnected"}),{async onMount(){e._internal.ssr&&(await e._internal.store.persist.rehydrate(),e._internal.mipd&&e._internal.connectors.setState(i=>{var d;const a=new Set;for(const f of i??[])if(f.rdns){const p=Array.isArray(f.rdns)?f.rdns:[f.rdns];for(const g of p)a.add(g)}const c=[],u=((d=e._internal.mipd)==null?void 0:d.getProviders())??[];for(const f of u){if(a.has(f.info.rdns))continue;const p=e._internal.connectors.providerDetailToConnector(f),g=e._internal.connectors.setup(p);c.push(g)}return[...i,...c]})),r?NI(e):e.storage&&e.setState(i=>({...i,connections:new Map}))}}}function F5(e){var a,c,u;const{chain:t}=e,n=t.rpcUrls.default.http[0];if(!e.transports)return[n];const r=(c=(a=e.transports)==null?void 0:a[t.id])==null?void 0:c.call(a,{chain:t});return(((u=r==null?void 0:r.value)==null?void 0:u.transports)||[r]).map(({value:d})=>(d==null?void 0:d.url)||n)}function hj(e){const{children:t,config:n,initialState:r,reconnectOnMount:i=!0}=e,{onMount:a}=fj(n,{initialState:r,reconnectOnMount:i});n._internal.ssr||a();const c=N.useRef(!0);return N.useEffect(()=>{if(c.current&&n._internal.ssr)return a(),()=>{c.current=!1}},[]),t}const z5=N.createContext(void 0);function pj(e){const{children:t,config:n}=e,r={value:n};return N.createElement(hj,e,N.createElement(z5.Provider,r,t))}const mj="2.19.5",gj=()=>`wagmi@${mj}`;class yj extends Xr{constructor(){super(...arguments),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiError"})}get docsBaseUrl(){return"https://wagmi.sh/react"}get version(){return gj()}}class vj extends yj{constructor(){super("`useConfig` must be used within `WagmiProvider`.",{docsPath:"/api/WagmiProvider"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiProviderNotFoundError"})}}function et(e={}){const t=e.config??N.useContext(z5);if(!t)throw new vj;return t}function wj(e,t){const{onChange:n}=t;return e._internal.chains.subscribe((r,i)=>{n(r,i)})}var mh={exports:{}},gh={},yh={exports:{}},vh={};/**
86
+ * @license React
87
+ * use-sync-external-store-shim.production.js
88
+ *
89
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
90
+ *
91
+ * This source code is licensed under the MIT license found in the
92
+ * LICENSE file in the root directory of this source tree.
93
+ */var ww;function bj(){if(ww)return vh;ww=1;var e=Qc();function t(g,m){return g===m&&(g!==0||1/g===1/m)||g!==g&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,a=e.useLayoutEffect,c=e.useDebugValue;function u(g,m){var y=m(),w=r({inst:{value:y,getSnapshot:m}}),b=w[0].inst,E=w[1];return a(function(){b.value=y,b.getSnapshot=m,d(b)&&E({inst:b})},[g,y,m]),i(function(){return d(b)&&E({inst:b}),g(function(){d(b)&&E({inst:b})})},[g]),c(y),y}function d(g){var m=g.getSnapshot;g=g.value;try{var y=m();return!n(g,y)}catch{return!0}}function f(g,m){return m()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:u;return vh.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,vh}var bw;function xj(){return bw||(bw=1,yh.exports=bj()),yh.exports}/**
94
+ * @license React
95
+ * use-sync-external-store-shim/with-selector.production.js
96
+ *
97
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
98
+ *
99
+ * This source code is licensed under the MIT license found in the
100
+ * LICENSE file in the root directory of this source tree.
101
+ */var xw;function Cj(){if(xw)return gh;xw=1;var e=Qc(),t=xj();function n(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var r=typeof Object.is=="function"?Object.is:n,i=t.useSyncExternalStore,a=e.useRef,c=e.useEffect,u=e.useMemo,d=e.useDebugValue;return gh.useSyncExternalStoreWithSelector=function(f,p,g,m,y){var w=a(null);if(w.current===null){var b={hasValue:!1,value:null};w.current=b}else b=w.current;w=u(function(){function A(P){if(!j){if(j=!0,S=P,P=m(P),y!==void 0&&b.hasValue){var _=b.value;if(y(_,P))return k=_}return k=P}if(_=k,r(S,P))return _;var T=m(P);return y!==void 0&&y(_,T)?(S=P,_):(S=P,k=T)}var j=!1,S,k,I=g===void 0?null:g;return[function(){return A(p())},I===null?void 0:function(){return A(I())}]},[p,g,m,y]);var E=i(f,w[0],w[1]);return c(function(){b.hasValue=!0,b.value=E},[E]),d(E),E},gh}var Cw;function Ej(){return Cw||(Cw=1,mh.exports=Cj()),mh.exports}var U5=Ej();const wh=e=>typeof e=="object"&&!Array.isArray(e);function Aj(e,t,n=t,r=Di){const i=N.useRef([]),a=U5.useSyncExternalStoreWithSelector(e,t,n,c=>c,(c,u)=>{if(wh(c)&&wh(u)&&i.current.length){for(const d of i.current)if(!r(c[d],u[d]))return!1;return!0}return r(c,u)});return N.useMemo(()=>{if(wh(a)){const c={...a};let u={};for(const[d,f]of Object.entries(c))u={...u,[d]:{configurable:!1,enumerable:!0,get:()=>(i.current.includes(d)||i.current.push(d),f)}};return Object.defineProperties(c,u),c}return a},[a])}function St(e={}){const t=et(e);return Aj(n=>D5(t,{onChange:n}),()=>N5(t))}function W5(e={}){const{onConnect:t,onDisconnect:n}=e,r=et(e);N.useEffect(()=>D5(r,{onChange(i,a){if((a.status==="reconnecting"||a.status==="connecting"&&a.address===void 0)&&i.status==="connected"){const{address:c,addresses:u,chain:d,chainId:f,connector:p}=i,g=a.status==="reconnecting"||a.status===void 0;t==null||t({address:c,addresses:u,chain:d,chainId:f,connector:p,isReconnected:g})}else a.status==="connected"&&i.status==="disconnected"&&(n==null||n())}}),[r,t,n])}var ca=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(){}},bi,_o,Rs,Wb,kj=(Wb=class extends ca{constructor(){super();Ae(this,bi);Ae(this,_o);Ae(this,Rs);fe(this,Rs,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){D(this,_o)||this.setEventListener(D(this,Rs))}onUnsubscribe(){var t;this.hasListeners()||((t=D(this,_o))==null||t.call(this),fe(this,_o,void 0))}setEventListener(t){var n;fe(this,Rs,t),(n=D(this,_o))==null||n.call(this),fe(this,_o,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){D(this,bi)!==t&&(fe(this,bi,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof D(this,bi)=="boolean"?D(this,bi):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},bi=new WeakMap,_o=new WeakMap,Rs=new WeakMap,Wb),$m=new kj,Sj={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Po,Qp,$b,Ij=($b=class{constructor(){Ae(this,Po,Sj);Ae(this,Qp,!1)}setTimeoutProvider(e){fe(this,Po,e)}setTimeout(e,t){return D(this,Po).setTimeout(e,t)}clearTimeout(e){D(this,Po).clearTimeout(e)}setInterval(e,t){return D(this,Po).setInterval(e,t)}clearInterval(e){D(this,Po).clearInterval(e)}},Po=new WeakMap,Qp=new WeakMap,$b),vi=new Ij;function jj(e){setTimeout(e,0)}var Bj=typeof window>"u"||"Deno"in globalThis;function Ut(){}function _j(e,t){return typeof e=="function"?e(t):e}function Ep(e){return typeof e=="number"&&e>=0&&e!==1/0}function $5(e,t){return Math.max(e+(t||0)-Date.now(),0)}function zo(e,t){return typeof e=="function"?e(t):e}function Nn(e,t){return typeof e=="function"?e(t):e}function Ew(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:c,stale:u}=e;if(c){if(r){if(t.queryHash!==qm(c,t.options))return!1}else if(!Tc(t.queryKey,c))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||i&&i!==t.state.fetchStatus||a&&!a(t))}function Aw(e,t){const{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(Li(t.options.mutationKey)!==Li(a))return!1}else if(!Tc(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function qm(e,t){return((t==null?void 0:t.queryKeyHashFn)||Li)(e)}function Li(e){return JSON.stringify(e,(t,n)=>Ap(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Tc(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Tc(e[n],t[n])):!1}var Pj=Object.prototype.hasOwnProperty;function Hm(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=kw(e)&&kw(t);if(!r&&!(Ap(e)&&Ap(t)))return t;const a=(r?e:Object.keys(e)).length,c=r?t:Object.keys(t),u=c.length,d=r?new Array(u):{};let f=0;for(let p=0;p<u;p++){const g=r?p:c[p],m=e[g],y=t[g];if(m===y){d[g]=m,(r?p<a:Pj.call(e,g))&&f++;continue}if(m===null||y===null||typeof m!="object"||typeof y!="object"){d[g]=y;continue}const w=Hm(m,y,n+1);d[g]=w,w===m&&f++}return a===u&&f===a?e:d}function cd(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 kw(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ap(e){if(!Sw(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Sw(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Sw(e){return Object.prototype.toString.call(e)==="[object Object]"}function Tj(e){return new Promise(t=>{vi.setTimeout(t,e)})}function kp(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Hm(e,t):t}function Oj(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Rj(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Vm=Symbol();function q5(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Vm?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Qm(e,t){return typeof e=="function"?e(...t):!!e}function Nj(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??(i=t()),r||(r=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)}),e}var Oc=(()=>{let e=()=>Bj;return{isServer(){return e()},setIsServer(t){e=t}}})();function Sp(){let e,t;const n=new Promise((i,a)=>{e=i,t=a});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}var Mj=jj;function Dj(){let e=[],t=0,n=u=>{u()},r=u=>{u()},i=Mj;const a=u=>{t?e.push(u):i(()=>{n(u)})},c=()=>{const u=e;e=[],u.length&&i(()=>{r(()=>{u.forEach(d=>{n(d)})})})};return{batch:u=>{let d;t++;try{d=u()}finally{t--,t||c()}return d},batchCalls:u=>(...d)=>{a(()=>{u(...d)})},schedule:a,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{i=u}}}var ht=Dj(),Ns,To,Ms,qb,Lj=(qb=class extends ca{constructor(){super();Ae(this,Ns,!0);Ae(this,To);Ae(this,Ms);fe(this,Ms,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){D(this,To)||this.setEventListener(D(this,Ms))}onUnsubscribe(){var t;this.hasListeners()||((t=D(this,To))==null||t.call(this),fe(this,To,void 0))}setEventListener(t){var n;fe(this,Ms,t),(n=D(this,To))==null||n.call(this),fe(this,To,t(this.setOnline.bind(this)))}setOnline(t){D(this,Ns)!==t&&(fe(this,Ns,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return D(this,Ns)}},Ns=new WeakMap,To=new WeakMap,Ms=new WeakMap,qb),ld=new Lj;function Fj(e){return Math.min(1e3*2**e,3e4)}function H5(e){return(e??"online")==="online"?ld.isOnline():!0}var Ip=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function V5(e){let t=!1,n=0,r;const i=Sp(),a=()=>i.status!=="pending",c=b=>{var E;if(!a()){const A=new Ip(b);m(A),(E=e.onCancel)==null||E.call(e,A)}},u=()=>{t=!0},d=()=>{t=!1},f=()=>$m.isFocused()&&(e.networkMode==="always"||ld.isOnline())&&e.canRun(),p=()=>H5(e.networkMode)&&e.canRun(),g=b=>{a()||(r==null||r(),i.resolve(b))},m=b=>{a()||(r==null||r(),i.reject(b))},y=()=>new Promise(b=>{var E;r=A=>{(a()||f())&&b(A)},(E=e.onPause)==null||E.call(e)}).then(()=>{var b;r=void 0,a()||(b=e.onContinue)==null||b.call(e)}),w=()=>{if(a())return;let b;const E=n===0?e.initialPromise:void 0;try{b=E??e.fn()}catch(A){b=Promise.reject(A)}Promise.resolve(b).then(g).catch(A=>{var P;if(a())return;const j=e.retry??(Oc.isServer()?0:3),S=e.retryDelay??Fj,k=typeof S=="function"?S(n,A):S,I=j===!0||typeof j=="number"&&n<j||typeof j=="function"&&j(n,A);if(t||!I){m(A);return}n++,(P=e.onFail)==null||P.call(e,n,A),Tj(k).then(()=>f()?void 0:y()).then(()=>{t?m(A):w()})})};return{promise:i,status:()=>i.status,cancel:c,continue:()=>(r==null||r(),i),cancelRetry:u,continueRetry:d,canStart:p,start:()=>(p()?w():y().then(w),i)}}var xi,Hb,Q5=(Hb=class{constructor(){Ae(this,xi)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ep(this.gcTime)&&fe(this,xi,vi.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Oc.isServer()?1/0:300*1e3))}clearGcTimeout(){D(this,xi)!==void 0&&(vi.clearTimeout(D(this,xi)),fe(this,xi,void 0))}},xi=new WeakMap,Hb),Ci,Ds,Rn,Ei,vt,Wc,Ai,mn,G5,zr,Vb,zj=(Vb=class extends Q5{constructor(t){super();Ae(this,mn);Ae(this,Ci);Ae(this,Ds);Ae(this,Rn);Ae(this,Ei);Ae(this,vt);Ae(this,Wc);Ae(this,Ai);fe(this,Ai,!1),fe(this,Wc,t.defaultOptions),this.setOptions(t.options),this.observers=[],fe(this,Ei,t.client),fe(this,Rn,D(this,Ei).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,fe(this,Ci,jw(this.options)),this.state=t.state??D(this,Ci),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=D(this,vt))==null?void 0:t.promise}setOptions(t){if(this.options={...D(this,Wc),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=jw(this.options);n.data!==void 0&&(this.setState(Iw(n.data,n.dataUpdatedAt)),fe(this,Ci,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&D(this,Rn).remove(this)}setData(t,n){const r=kp(this.state.data,t,this.options);return Te(this,mn,zr).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Te(this,mn,zr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=D(this,vt))==null?void 0:r.promise;return(i=D(this,vt))==null||i.cancel(t),n?n.then(Ut).catch(Ut):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return D(this,Ci)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>Nn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Vm||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>zo(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!$5(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=D(this,vt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=D(this,vt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),D(this,Rn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(D(this,vt)&&(D(this,Ai)||Te(this,mn,G5).call(this)?D(this,vt).cancel({revert:!0}):D(this,vt).cancelRetry()),this.scheduleGc()),D(this,Rn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Te(this,mn,zr).call(this,{type:"invalidate"})}async fetch(t,n){var d,f,p,g,m,y,w,b,E,A,j,S;if(this.state.fetchStatus!=="idle"&&((d=D(this,vt))==null?void 0:d.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(D(this,vt))return D(this,vt).continueRetry(),D(this,vt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const k=this.observers.find(I=>I.options.queryFn);k&&this.setOptions(k.options)}const r=new AbortController,i=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>(fe(this,Ai,!0),r.signal)})},a=()=>{const k=q5(this.options,n),P=(()=>{const _={client:D(this,Ei),queryKey:this.queryKey,meta:this.meta};return i(_),_})();return fe(this,Ai,!1),this.options.persister?this.options.persister(k,P,this):k(P)},u=(()=>{const k={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:D(this,Ei),state:this.state,fetchFn:a};return i(k),k})();(f=this.options.behavior)==null||f.onFetch(u,this),fe(this,Ds,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((p=u.fetchOptions)==null?void 0:p.meta))&&Te(this,mn,zr).call(this,{type:"fetch",meta:(g=u.fetchOptions)==null?void 0:g.meta}),fe(this,vt,V5({initialPromise:n==null?void 0:n.initialPromise,fn:u.fetchFn,onCancel:k=>{k instanceof Ip&&k.revert&&this.setState({...D(this,Ds),fetchStatus:"idle"}),r.abort()},onFail:(k,I)=>{Te(this,mn,zr).call(this,{type:"failed",failureCount:k,error:I})},onPause:()=>{Te(this,mn,zr).call(this,{type:"pause"})},onContinue:()=>{Te(this,mn,zr).call(this,{type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0}));try{const k=await D(this,vt).start();if(k===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(k),(y=(m=D(this,Rn).config).onSuccess)==null||y.call(m,k,this),(b=(w=D(this,Rn).config).onSettled)==null||b.call(w,k,this.state.error,this),k}catch(k){if(k instanceof Ip){if(k.silent)return D(this,vt).promise;if(k.revert){if(this.state.data===void 0)throw k;return this.state.data}}throw Te(this,mn,zr).call(this,{type:"error",error:k}),(A=(E=D(this,Rn).config).onError)==null||A.call(E,k,this),(S=(j=D(this,Rn).config).onSettled)==null||S.call(j,this.state.data,k,this),k}finally{this.scheduleGc()}}},Ci=new WeakMap,Ds=new WeakMap,Rn=new WeakMap,Ei=new WeakMap,vt=new WeakMap,Wc=new WeakMap,Ai=new WeakMap,mn=new WeakSet,G5=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},zr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...K5(r.data,this.options),fetchMeta:t.meta??null};case"success":const i={...r,...Iw(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return fe(this,Ds,t.manual?i:void 0),i;case"error":const a=t.error;return{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ht.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),D(this,Rn).notify({query:this,type:"updated",action:t})})},Vb);function K5(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:H5(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Iw(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function jw(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var tn,De,$c,Ft,ki,Ls,Wr,Oo,qc,Fs,zs,Si,Ii,Ro,Us,$e,nc,jp,Bp,_p,Pp,Tp,Op,Rp,Y5,Qb,Uj=(Qb=class extends ca{constructor(t,n){super();Ae(this,$e);Ae(this,tn);Ae(this,De);Ae(this,$c);Ae(this,Ft);Ae(this,ki);Ae(this,Ls);Ae(this,Wr);Ae(this,Oo);Ae(this,qc);Ae(this,Fs);Ae(this,zs);Ae(this,Si);Ae(this,Ii);Ae(this,Ro);Ae(this,Us,new Set);this.options=n,fe(this,tn,t),fe(this,Oo,null),fe(this,Wr,Sp()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(D(this,De).addObserver(this),Bw(D(this,De),this.options)?Te(this,$e,nc).call(this):this.updateResult(),Te(this,$e,Pp).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Np(D(this,De),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Np(D(this,De),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Te(this,$e,Tp).call(this),Te(this,$e,Op).call(this),D(this,De).removeObserver(this)}setOptions(t){const n=this.options,r=D(this,De);if(this.options=D(this,tn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Nn(this.options.enabled,D(this,De))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Te(this,$e,Rp).call(this),D(this,De).setOptions(this.options),n._defaulted&&!cd(this.options,n)&&D(this,tn).getQueryCache().notify({type:"observerOptionsUpdated",query:D(this,De),observer:this});const i=this.hasListeners();i&&_w(D(this,De),r,this.options,n)&&Te(this,$e,nc).call(this),this.updateResult(),i&&(D(this,De)!==r||Nn(this.options.enabled,D(this,De))!==Nn(n.enabled,D(this,De))||zo(this.options.staleTime,D(this,De))!==zo(n.staleTime,D(this,De)))&&Te(this,$e,jp).call(this);const a=Te(this,$e,Bp).call(this);i&&(D(this,De)!==r||Nn(this.options.enabled,D(this,De))!==Nn(n.enabled,D(this,De))||a!==D(this,Ro))&&Te(this,$e,_p).call(this,a)}getOptimisticResult(t){const n=D(this,tn).getQueryCache().build(D(this,tn),t),r=this.createResult(n,t);return $j(this,r)&&(fe(this,Ft,r),fe(this,Ls,this.options),fe(this,ki,D(this,De).state)),r}getCurrentResult(){return D(this,Ft)}trackResult(t,n){return new Proxy(t,{get:(r,i)=>(this.trackProp(i),n==null||n(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&D(this,Wr).status==="pending"&&D(this,Wr).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,i))})}trackProp(t){D(this,Us).add(t)}getCurrentQuery(){return D(this,De)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=D(this,tn).defaultQueryOptions(t),r=D(this,tn).getQueryCache().build(D(this,tn),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Te(this,$e,nc).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),D(this,Ft)))}createResult(t,n){var M;const r=D(this,De),i=this.options,a=D(this,Ft),c=D(this,ki),u=D(this,Ls),f=t!==r?t.state:D(this,$c),{state:p}=t;let g={...p},m=!1,y;if(n._optimisticResults){const V=this.hasListeners(),Q=!V&&Bw(t,n),Z=V&&_w(t,r,n,i);(Q||Z)&&(g={...g,...K5(p.data,t.options)}),n._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:w,errorUpdatedAt:b,status:E}=g;y=g.data;let A=!1;if(n.placeholderData!==void 0&&y===void 0&&E==="pending"){let V;a!=null&&a.isPlaceholderData&&n.placeholderData===(u==null?void 0:u.placeholderData)?(V=a.data,A=!0):V=typeof n.placeholderData=="function"?n.placeholderData((M=D(this,zs))==null?void 0:M.state.data,D(this,zs)):n.placeholderData,V!==void 0&&(E="success",y=kp(a==null?void 0:a.data,V,n),m=!0)}if(n.select&&y!==void 0&&!A)if(a&&y===(c==null?void 0:c.data)&&n.select===D(this,qc))y=D(this,Fs);else try{fe(this,qc,n.select),y=n.select(y),y=kp(a==null?void 0:a.data,y,n),fe(this,Fs,y),fe(this,Oo,null)}catch(V){fe(this,Oo,V)}D(this,Oo)&&(w=D(this,Oo),y=D(this,Fs),b=Date.now(),E="error");const j=g.fetchStatus==="fetching",S=E==="pending",k=E==="error",I=S&&j,P=y!==void 0,T={status:E,fetchStatus:g.fetchStatus,isPending:S,isSuccess:E==="success",isError:k,isInitialLoading:I,isLoading:I,data:y,dataUpdatedAt:g.dataUpdatedAt,error:w,errorUpdatedAt:b,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:g.dataUpdateCount>f.dataUpdateCount||g.errorUpdateCount>f.errorUpdateCount,isFetching:j,isRefetching:j&&!S,isLoadingError:k&&!P,isPaused:g.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:k&&P,isStale:Gm(t,n),refetch:this.refetch,promise:D(this,Wr),isEnabled:Nn(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const V=T.data!==void 0,Q=T.status==="error"&&!V,Z=$=>{Q?$.reject(T.error):V&&$.resolve(T.data)},G=()=>{const $=fe(this,Wr,T.promise=Sp());Z($)},se=D(this,Wr);switch(se.status){case"pending":t.queryHash===r.queryHash&&Z(se);break;case"fulfilled":(Q||T.data!==se.value)&&G();break;case"rejected":(!Q||T.error!==se.reason)&&G();break}}return T}updateResult(){const t=D(this,Ft),n=this.createResult(D(this,De),this.options);if(fe(this,ki,D(this,De).state),fe(this,Ls,this.options),D(this,ki).data!==void 0&&fe(this,zs,D(this,De)),cd(n,t))return;fe(this,Ft,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,a=typeof i=="function"?i():i;if(a==="all"||!a&&!D(this,Us).size)return!0;const c=new Set(a??D(this,Us));return this.options.throwOnError&&c.add("error"),Object.keys(D(this,Ft)).some(u=>{const d=u;return D(this,Ft)[d]!==t[d]&&c.has(d)})};Te(this,$e,Y5).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Te(this,$e,Pp).call(this)}},tn=new WeakMap,De=new WeakMap,$c=new WeakMap,Ft=new WeakMap,ki=new WeakMap,Ls=new WeakMap,Wr=new WeakMap,Oo=new WeakMap,qc=new WeakMap,Fs=new WeakMap,zs=new WeakMap,Si=new WeakMap,Ii=new WeakMap,Ro=new WeakMap,Us=new WeakMap,$e=new WeakSet,nc=function(t){Te(this,$e,Rp).call(this);let n=D(this,De).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Ut)),n},jp=function(){Te(this,$e,Tp).call(this);const t=zo(this.options.staleTime,D(this,De));if(Oc.isServer()||D(this,Ft).isStale||!Ep(t))return;const r=$5(D(this,Ft).dataUpdatedAt,t)+1;fe(this,Si,vi.setTimeout(()=>{D(this,Ft).isStale||this.updateResult()},r))},Bp=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(D(this,De)):this.options.refetchInterval)??!1},_p=function(t){Te(this,$e,Op).call(this),fe(this,Ro,t),!(Oc.isServer()||Nn(this.options.enabled,D(this,De))===!1||!Ep(D(this,Ro))||D(this,Ro)===0)&&fe(this,Ii,vi.setInterval(()=>{(this.options.refetchIntervalInBackground||$m.isFocused())&&Te(this,$e,nc).call(this)},D(this,Ro)))},Pp=function(){Te(this,$e,jp).call(this),Te(this,$e,_p).call(this,Te(this,$e,Bp).call(this))},Tp=function(){D(this,Si)!==void 0&&(vi.clearTimeout(D(this,Si)),fe(this,Si,void 0))},Op=function(){D(this,Ii)!==void 0&&(vi.clearInterval(D(this,Ii)),fe(this,Ii,void 0))},Rp=function(){const t=D(this,tn).getQueryCache().build(D(this,tn),this.options);if(t===D(this,De))return;const n=D(this,De);fe(this,De,t),fe(this,$c,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Y5=function(t){ht.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(D(this,Ft))}),D(this,tn).getQueryCache().notify({query:D(this,De),type:"observerResultsUpdated"})})},Qb);function Wj(e,t){return Nn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Bw(e,t){return Wj(e,t)||e.state.data!==void 0&&Np(e,t,t.refetchOnMount)}function Np(e,t,n){if(Nn(t.enabled,e)!==!1&&zo(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Gm(e,t)}return!1}function _w(e,t,n,r){return(e!==t||Nn(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Gm(e,n)}function Gm(e,t){return Nn(t.enabled,e)!==!1&&e.isStaleByTime(zo(t.staleTime,e))}function $j(e,t){return!cd(e.getCurrentResult(),t)}function Pw(e){return{onFetch:(t,n)=>{var p,g,m,y,w;const r=t.options,i=(m=(g=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:g.fetchMore)==null?void 0:m.direction,a=((y=t.state.data)==null?void 0:y.pages)||[],c=((w=t.state.data)==null?void 0:w.pageParams)||[];let u={pages:[],pageParams:[]},d=0;const f=async()=>{let b=!1;const E=S=>{Nj(S,()=>t.signal,()=>b=!0)},A=q5(t.options,t.fetchOptions),j=async(S,k,I)=>{if(b)return Promise.reject();if(k==null&&S.pages.length)return Promise.resolve(S);const _=(()=>{const Q={client:t.client,queryKey:t.queryKey,pageParam:k,direction:I?"backward":"forward",meta:t.options.meta};return E(Q),Q})(),T=await A(_),{maxPages:M}=t.options,V=I?Rj:Oj;return{pages:V(S.pages,T,M),pageParams:V(S.pageParams,k,M)}};if(i&&a.length){const S=i==="backward",k=S?qj:Tw,I={pages:a,pageParams:c},P=k(r,I);u=await j(I,P,S)}else{const S=e??a.length;do{const k=d===0?c[0]??r.initialPageParam:Tw(r,u);if(d>0&&k==null)break;u=await j(u,k),d++}while(d<S)}return u};t.options.persister?t.fetchFn=()=>{var b,E;return(E=(b=t.options).persister)==null?void 0:E.call(b,f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=f}}}function Tw(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function qj(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Hc,pr,Rt,ji,mr,Bo,Gb,Hj=(Gb=class extends Q5{constructor(t){super();Ae(this,mr);Ae(this,Hc);Ae(this,pr);Ae(this,Rt);Ae(this,ji);fe(this,Hc,t.client),this.mutationId=t.mutationId,fe(this,Rt,t.mutationCache),fe(this,pr,[]),this.state=t.state||J5(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){D(this,pr).includes(t)||(D(this,pr).push(t),this.clearGcTimeout(),D(this,Rt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){fe(this,pr,D(this,pr).filter(n=>n!==t)),this.scheduleGc(),D(this,Rt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){D(this,pr).length||(this.state.status==="pending"?this.scheduleGc():D(this,Rt).remove(this))}continue(){var t;return((t=D(this,ji))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var c,u,d,f,p,g,m,y,w,b,E,A,j,S,k,I,P,_;const n=()=>{Te(this,mr,Bo).call(this,{type:"continue"})},r={client:D(this,Hc),meta:this.options.meta,mutationKey:this.options.mutationKey};fe(this,ji,V5({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(T,M)=>{Te(this,mr,Bo).call(this,{type:"failed",failureCount:T,error:M})},onPause:()=>{Te(this,mr,Bo).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>D(this,Rt).canRun(this)}));const i=this.state.status==="pending",a=!D(this,ji).canStart();try{if(i)n();else{Te(this,mr,Bo).call(this,{type:"pending",variables:t,isPaused:a}),D(this,Rt).config.onMutate&&await D(this,Rt).config.onMutate(t,this,r);const M=await((u=(c=this.options).onMutate)==null?void 0:u.call(c,t,r));M!==this.state.context&&Te(this,mr,Bo).call(this,{type:"pending",context:M,variables:t,isPaused:a})}const T=await D(this,ji).start();return await((f=(d=D(this,Rt).config).onSuccess)==null?void 0:f.call(d,T,t,this.state.context,this,r)),await((g=(p=this.options).onSuccess)==null?void 0:g.call(p,T,t,this.state.context,r)),await((y=(m=D(this,Rt).config).onSettled)==null?void 0:y.call(m,T,null,this.state.variables,this.state.context,this,r)),await((b=(w=this.options).onSettled)==null?void 0:b.call(w,T,null,t,this.state.context,r)),Te(this,mr,Bo).call(this,{type:"success",data:T}),T}catch(T){try{await((A=(E=D(this,Rt).config).onError)==null?void 0:A.call(E,T,t,this.state.context,this,r))}catch(M){Promise.reject(M)}try{await((S=(j=this.options).onError)==null?void 0:S.call(j,T,t,this.state.context,r))}catch(M){Promise.reject(M)}try{await((I=(k=D(this,Rt).config).onSettled)==null?void 0:I.call(k,void 0,T,this.state.variables,this.state.context,this,r))}catch(M){Promise.reject(M)}try{await((_=(P=this.options).onSettled)==null?void 0:_.call(P,void 0,T,t,this.state.context,r))}catch(M){Promise.reject(M)}throw Te(this,mr,Bo).call(this,{type:"error",error:T}),T}finally{D(this,Rt).runNext(this)}}},Hc=new WeakMap,pr=new WeakMap,Rt=new WeakMap,ji=new WeakMap,mr=new WeakSet,Bo=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),ht.batch(()=>{D(this,pr).forEach(r=>{r.onMutationUpdate(t)}),D(this,Rt).notify({mutation:this,type:"updated",action:t})})},Gb);function J5(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var $r,Jn,Vc,Kb,Vj=(Kb=class extends ca{constructor(t={}){super();Ae(this,$r);Ae(this,Jn);Ae(this,Vc);this.config=t,fe(this,$r,new Set),fe(this,Jn,new Map),fe(this,Vc,0)}build(t,n,r){const i=new Hj({client:t,mutationCache:this,mutationId:++Eu(this,Vc)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){D(this,$r).add(t);const n=Mu(t);if(typeof n=="string"){const r=D(this,Jn).get(n);r?r.push(t):D(this,Jn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(D(this,$r).delete(t)){const n=Mu(t);if(typeof n=="string"){const r=D(this,Jn).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&D(this,Jn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Mu(t);if(typeof n=="string"){const r=D(this,Jn).get(n),i=r==null?void 0:r.find(a=>a.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=Mu(t);if(typeof n=="string"){const i=(r=D(this,Jn).get(n))==null?void 0:r.find(a=>a!==t&&a.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ht.batch(()=>{D(this,$r).forEach(t=>{this.notify({type:"removed",mutation:t})}),D(this,$r).clear(),D(this,Jn).clear()})}getAll(){return Array.from(D(this,$r))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Aw(n,r))}findAll(t={}){return this.getAll().filter(n=>Aw(t,n))}notify(t){ht.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return ht.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ut))))}},$r=new WeakMap,Jn=new WeakMap,Vc=new WeakMap,Kb);function Mu(e){var t;return(t=e.options.scope)==null?void 0:t.id}var qr,No,nn,Hr,Yr,Qu,Mp,Yb,Qj=(Yb=class extends ca{constructor(n,r){super();Ae(this,Yr);Ae(this,qr);Ae(this,No);Ae(this,nn);Ae(this,Hr);fe(this,qr,n),this.setOptions(r),this.bindMethods(),Te(this,Yr,Qu).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var i;const r=this.options;this.options=D(this,qr).defaultMutationOptions(n),cd(this.options,r)||D(this,qr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:D(this,nn),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Li(r.mutationKey)!==Li(this.options.mutationKey)?this.reset():((i=D(this,nn))==null?void 0:i.state.status)==="pending"&&D(this,nn).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=D(this,nn))==null||n.removeObserver(this)}onMutationUpdate(n){Te(this,Yr,Qu).call(this),Te(this,Yr,Mp).call(this,n)}getCurrentResult(){return D(this,No)}reset(){var n;(n=D(this,nn))==null||n.removeObserver(this),fe(this,nn,void 0),Te(this,Yr,Qu).call(this),Te(this,Yr,Mp).call(this)}mutate(n,r){var i;return fe(this,Hr,r),(i=D(this,nn))==null||i.removeObserver(this),fe(this,nn,D(this,qr).getMutationCache().build(D(this,qr),this.options)),D(this,nn).addObserver(this),D(this,nn).execute(n)}},qr=new WeakMap,No=new WeakMap,nn=new WeakMap,Hr=new WeakMap,Yr=new WeakSet,Qu=function(){var r;const n=((r=D(this,nn))==null?void 0:r.state)??J5();fe(this,No,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Mp=function(n){ht.batch(()=>{var r,i,a,c,u,d,f,p;if(D(this,Hr)&&this.hasListeners()){const g=D(this,No).variables,m=D(this,No).context,y={client:D(this,qr),meta:this.options.meta,mutationKey:this.options.mutationKey};if((n==null?void 0:n.type)==="success"){try{(i=(r=D(this,Hr)).onSuccess)==null||i.call(r,n.data,g,m,y)}catch(w){Promise.reject(w)}try{(c=(a=D(this,Hr)).onSettled)==null||c.call(a,n.data,null,g,m,y)}catch(w){Promise.reject(w)}}else if((n==null?void 0:n.type)==="error"){try{(d=(u=D(this,Hr)).onError)==null||d.call(u,n.error,g,m,y)}catch(w){Promise.reject(w)}try{(p=(f=D(this,Hr)).onSettled)==null||p.call(f,void 0,n.error,g,m,y)}catch(w){Promise.reject(w)}}}this.listeners.forEach(g=>{g(D(this,No))})})},Yb),gr,Jb,Gj=(Jb=class extends ca{constructor(t={}){super();Ae(this,gr);this.config=t,fe(this,gr,new Map)}build(t,n,r){const i=n.queryKey,a=n.queryHash??qm(i,n);let c=this.get(a);return c||(c=new zj({client:t,queryKey:i,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(c)),c}add(t){D(this,gr).has(t.queryHash)||(D(this,gr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=D(this,gr).get(t.queryHash);n&&(t.destroy(),n===t&&D(this,gr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ht.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return D(this,gr).get(t)}getAll(){return[...D(this,gr).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ew(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Ew(t,r)):n}notify(t){ht.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){ht.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ht.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},gr=new WeakMap,Jb),nt,Mo,Do,Ws,$s,Lo,qs,Hs,Zb,Kj=(Zb=class{constructor(e={}){Ae(this,nt);Ae(this,Mo);Ae(this,Do);Ae(this,Ws);Ae(this,$s);Ae(this,Lo);Ae(this,qs);Ae(this,Hs);fe(this,nt,e.queryCache||new Gj),fe(this,Mo,e.mutationCache||new Vj),fe(this,Do,e.defaultOptions||{}),fe(this,Ws,new Map),fe(this,$s,new Map),fe(this,Lo,0)}mount(){Eu(this,Lo)._++,D(this,Lo)===1&&(fe(this,qs,$m.subscribe(async e=>{e&&(await this.resumePausedMutations(),D(this,nt).onFocus())})),fe(this,Hs,ld.subscribe(async e=>{e&&(await this.resumePausedMutations(),D(this,nt).onOnline())})))}unmount(){var e,t;Eu(this,Lo)._--,D(this,Lo)===0&&((e=D(this,qs))==null||e.call(this),fe(this,qs,void 0),(t=D(this,Hs))==null||t.call(this),fe(this,Hs,void 0))}isFetching(e){return D(this,nt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return D(this,Mo).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=D(this,nt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=D(this,nt).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(zo(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return D(this,nt).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=D(this,nt).get(r.queryHash),a=i==null?void 0:i.state.data,c=_j(t,a);if(c!==void 0)return D(this,nt).build(this,r).setData(c,{...n,manual:!0})}setQueriesData(e,t,n){return ht.batch(()=>D(this,nt).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=D(this,nt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=D(this,nt);ht.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=D(this,nt);return ht.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=ht.batch(()=>D(this,nt).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Ut).catch(Ut)}invalidateQueries(e,t={}){return ht.batch(()=>(D(this,nt).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=ht.batch(()=>D(this,nt).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let a=i.fetch(void 0,n);return n.throwOnError||(a=a.catch(Ut)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(Ut)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=D(this,nt).build(this,t);return n.isStaleByTime(zo(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ut).catch(Ut)}fetchInfiniteQuery(e){return e.behavior=Pw(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ut).catch(Ut)}ensureInfiniteQueryData(e){return e.behavior=Pw(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ld.isOnline()?D(this,Mo).resumePausedMutations():Promise.resolve()}getQueryCache(){return D(this,nt)}getMutationCache(){return D(this,Mo)}getDefaultOptions(){return D(this,Do)}setDefaultOptions(e){fe(this,Do,e)}setQueryDefaults(e,t){D(this,Ws).set(Li(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...D(this,Ws).values()],n={};return t.forEach(r=>{Tc(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){D(this,$s).set(Li(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...D(this,$s).values()],n={};return t.forEach(r=>{Tc(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...D(this,Do).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=qm(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Vm&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...D(this,Do).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){D(this,nt).clear(),D(this,Mo).clear()}},nt=new WeakMap,Mo=new WeakMap,Do=new WeakMap,Ws=new WeakMap,$s=new WeakMap,Lo=new WeakMap,qs=new WeakMap,Hs=new WeakMap,Zb);function Yj(e,t){return Hm(e,t)}function Jj(e){return JSON.stringify(e,(t,n)=>Zj(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):typeof n=="bigint"?n.toString():n)}function Zj(e){if(!Ow(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!Ow(n)||!n.hasOwnProperty("isPrototypeOf"))}function Ow(e){return Object.prototype.toString.call(e)==="[object Object]"}function $i(e){const{_defaulted:t,behavior:n,gcTime:r,initialData:i,initialDataUpdatedAt:a,maxPages:c,meta:u,networkMode:d,queryFn:f,queryHash:p,queryKey:g,queryKeyHashFn:m,retry:y,retryDelay:w,structuralSharing:b,getPreviousPageParam:E,getNextPageParam:A,initialPageParam:j,_optimisticResults:S,enabled:k,notifyOnChangeProps:I,placeholderData:P,refetchInterval:_,refetchIntervalInBackground:T,refetchOnMount:M,refetchOnReconnect:V,refetchOnWindowFocus:Q,retryOnMount:Z,select:G,staleTime:se,suspense:$,throwOnError:X,config:te,connector:z,query:J,...Y}=e;return Y}function Xj(e){return{mutationFn(t){return gI(e,t)},mutationKey:["connect"]}}function eB(e){return{mutationFn(t){return jI(e,t)},mutationKey:["disconnect"]}}function tB(e,t={}){return{async queryFn({queryKey:n}){const{address:r,scopeKey:i,...a}=n[1];if(!r)throw new Error("address is required");return await PI(e,{...a,address:r})??null},queryKey:nB(t)}}function nB(e={}){return["balance",$i(e)]}function rB(e,t={}){return{gcTime:0,async queryFn({queryKey:n}){const{connector:r}=t,{connectorUid:i,scopeKey:a,...c}=n[1];return Hd(e,{...c,connector:r})},queryKey:oB(t)}}function oB(e={}){const{connector:t,...n}=e;return["connectorClient",{...$i(n),connectorUid:t==null?void 0:t.uid}]}function iB(e,t={}){return{async queryFn({queryKey:n}){const{name:r,scopeKey:i,...a}=n[1];if(!r)throw new Error("name is required");return OI(e,{...a,name:r})},queryKey:sB(t)}}function sB(e={}){return["ensAvatar",$i(e)]}function aB(e,t={}){return{async queryFn({queryKey:n}){const{address:r,scopeKey:i,...a}=n[1];if(!r)throw new Error("address is required");return RI(e,{...a,address:r})},queryKey:cB(t)}}function cB(e={}){return["ensName",$i(e)]}function lB(e,t={}){return{async queryFn({queryKey:n}){const r=t.abi;if(!r)throw new Error("abi is required");const{functionName:i,scopeKey:a,...c}=n[1],u=(()=>{const d=n[1];if(d.address)return{address:d.address};if(d.code)return{code:d.code};throw new Error("address or code is required")})();if(!i)throw new Error("functionName is required");return M5(e,{abi:r,functionName:i,args:c.args,...u,...c})},queryKey:uB(t)}}function uB(e={}){const{abi:t,...n}=e;return["readContract",$i(n)]}function dB(e){return{mutationFn(t){return MI(e,t)},mutationKey:["signMessage"]}}function fB(e,t={}){return{async queryFn({queryKey:n}){const{abi:r,connector:i}=t;if(!r)throw new Error("abi is required");const{scopeKey:a,...c}=n[1],{address:u,functionName:d}=c;if(!u)throw new Error("address is required");if(!d)throw new Error("functionName is required");return DI(e,{abi:r,connector:i,...c})},queryKey:hB(t)}}function hB(e={}){const{abi:t,connector:n,...r}=e;return["simulateContract",$i(r)]}function pB(e){return{mutationFn(t){return FI(e,t)},mutationKey:["switchChain"]}}function mB(e,t={}){return{async queryFn({queryKey:n}){const{hash:r,...i}=n[1];if(!r)throw new Error("hash is required");return zI(e,{...i,onReplaced:t.onReplaced,hash:r})},queryKey:gB(t)}}function gB(e={}){const{onReplaced:t,...n}=e;return["waitForTransactionReceipt",$i(n)]}function yB(e){return{mutationFn(t){return HI(e,t)},mutationKey:["writeContract"]}}var Z5=N.createContext(void 0),Km=e=>{const t=N.useContext(Z5);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},vB=({client:e,children:t})=>(N.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),W.jsx(Z5.Provider,{value:e,children:t})),X5=N.createContext(!1),wB=()=>N.useContext(X5);X5.Provider;function bB(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var xB=N.createContext(bB()),CB=()=>N.useContext(xB),EB=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?Qm(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},AB=e=>{N.useEffect(()=>{e.clearReset()},[e])},kB=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||Qm(n,[e.error,r])),SB=e=>{if(e.suspense){const n=i=>i==="static"?i:Math.max(i??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...i)=>n(r(...i)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},IB=(e,t)=>e.isLoading&&e.isFetching&&!t,jB=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Rw=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function BB(e,t,n){var m,y,w,b;const r=wB(),i=CB(),a=Km(),c=a.defaultQueryOptions(e);(y=(m=a.getDefaultOptions().queries)==null?void 0:m._experimental_beforeQuery)==null||y.call(m,c);const u=a.getQueryCache().get(c.queryHash);c._optimisticResults=r?"isRestoring":"optimistic",SB(c),EB(c,i,u),AB(i);const d=!a.getQueryCache().get(c.queryHash),[f]=N.useState(()=>new t(a,c)),p=f.getOptimisticResult(c),g=!r&&e.subscribed!==!1;if(N.useSyncExternalStore(N.useCallback(E=>{const A=g?f.subscribe(ht.batchCalls(E)):Ut;return f.updateResult(),A},[f,g]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),N.useEffect(()=>{f.setOptions(c)},[c,f]),jB(c,p))throw Rw(c,f,i);if(kB({result:p,errorResetBoundary:i,throwOnError:c.throwOnError,query:u,suspense:c.suspense}))throw p.error;if((b=(w=a.getDefaultOptions().queries)==null?void 0:w._experimental_afterQuery)==null||b.call(w,c,p),c.experimental_prefetchInRender&&!Oc.isServer()&&IB(p,r)){const E=d?Rw(c,f,i):u==null?void 0:u.promise;E==null||E.catch(Ut).finally(()=>{f.updateResult()})}return c.notifyOnChangeProps?p:f.trackResult(p)}function e3(e,t){return BB(e,Uj)}function ll(e,t){const n=Km(),[r]=N.useState(()=>new Qj(n,e));N.useEffect(()=>{r.setOptions(e)},[r,e]);const i=N.useSyncExternalStore(N.useCallback(c=>r.subscribe(ht.batchCalls(c)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=N.useCallback((c,u)=>{r.mutate(c,u).catch(Ut)},[r]);if(i.error&&Qm(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}function qi(e){const t=e3({...e,queryKeyHashFn:Jj});return t.queryKey=e.queryKey,t}function Hi(e={}){const t=et(e);return N.useSyncExternalStore(n=>UI(t,{onChange:n}),()=>fw(t),()=>fw(t))}function t3(e={}){const{address:t,query:n={}}=e,r=et(e),i=Hi({config:r}),a=tB(r,{...e,chainId:e.chainId??i}),c=!!(t&&(n.enabled??!0));return qi({...n,...a,enabled:c})}function _B(e={}){const t=et(e);return N.useSyncExternalStore(n=>wj(t,{onChange:n}),()=>hw(t),()=>hw(t))}function PB(e={}){const t=et(e);return N.useSyncExternalStore(n=>$I(t,{onChange:n}),()=>pw(t),()=>pw(t))}function TB(e={}){const{mutation:t}=e,n=et(e),r=Xj(n),{mutate:i,mutateAsync:a,...c}=ll({...t,...r});return N.useEffect(()=>n.subscribe(({status:u})=>u,(u,d)=>{d==="connected"&&u==="disconnected"&&c.reset()}),[n,c.reset]),{...c,connect:i,connectAsync:a,connectors:PB({config:n})}}function OB(e={}){const t=et(e);return N.useSyncExternalStore(n=>WI(t,{onChange:n}),()=>wp(t),()=>wp(t))}function RB(e={}){const{query:t={},...n}=e,r=et(n),i=Km(),{address:a,connector:c,status:u}=St({config:r}),d=Hi({config:r}),f=e.connector??c,{queryKey:p,...g}=rB(r,{...e,chainId:e.chainId??d,connector:f}),m=!!((u==="connected"||u==="reconnecting"&&(f!=null&&f.getProvider))&&(t.enabled??!0)),y=N.useRef(a);return N.useEffect(()=>{const w=y.current;!a&&w?(i.removeQueries({queryKey:p}),y.current=void 0):a!==w&&(i.invalidateQueries({queryKey:p}),y.current=a)},[a,i]),qi({...t,...g,queryKey:p,enabled:m,staleTime:Number.POSITIVE_INFINITY})}function Ym(e={}){const{mutation:t}=e,n=et(e),r=eB(n),{mutate:i,mutateAsync:a,...c}=ll({...t,...r});return{...c,connectors:OB({config:n}).map(u=>u.connector),disconnect:i,disconnectAsync:a}}function NB(e={}){const{name:t,query:n={}}=e,r=et(e),i=Hi({config:r}),a=iB(r,{...e,chainId:e.chainId??i}),c=!!(t&&(n.enabled??!0));return qi({...n,...a,enabled:c})}function MB(e={}){const{address:t,query:n={}}=e,r=et(e),i=Hi({config:r}),a=aB(r,{...e,chainId:e.chainId??i}),c=!!(t&&(n.enabled??!0));return qi({...n,...a,enabled:c})}function DB(e={}){const t=et(e);return U5.useSyncExternalStoreWithSelector(n=>qI(t,{onChange:n}),()=>bp(t,e),()=>bp(t,e),n=>n,(n,r)=>(n==null?void 0:n.uid)===(r==null?void 0:r.uid))}function LB(e={}){const{abi:t,address:n,functionName:r,query:i={}}=e,a=e.code,c=et(e),u=Hi({config:c}),d=lB(c,{...e,chainId:e.chainId??u}),f=!!((n||a)&&t&&r&&(i.enabled??!0));return qi({...i,...d,enabled:f,structuralSharing:i.structuralSharing??Yj})}function FB(e={}){const{mutation:t}=e,n=et(e),r=dB(n),{mutate:i,mutateAsync:a,...c}=ll({...t,...r});return{...c,signMessage:i,signMessageAsync:a}}function zB(e={}){const{abi:t,address:n,connector:r,functionName:i,query:a={}}=e,c=et(e),{data:u}=RB({config:c,connector:r,query:{enabled:e.account===void 0}}),d=Hi({config:c}),f=fB(c,{...e,account:e.account??(u==null?void 0:u.account),chainId:e.chainId??d}),p=!!(t&&n&&i&&(a.enabled??!0));return qi({...a,...f,enabled:p})}function UB(e={}){const{mutation:t}=e,n=et(e),r=pB(n),{mutate:i,mutateAsync:a,...c}=ll({...t,...r});return{...c,chains:_B({config:n}),switchChain:i,switchChainAsync:a}}function Rc(e={}){const{hash:t,query:n={}}=e,r=et(e),i=Hi({config:r}),a=mB(r,{...e,chainId:e.chainId??i}),c=!!(t&&(n.enabled??!0));return qi({...n,...a,enabled:c})}function Nc(e={}){const{mutation:t}=e,n=et(e),r=yB(n),{mutate:i,mutateAsync:a,...c}=ll({...t,...r});return{...c,writeContract:i,writeContractAsync:a}}var Nw='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',WB={rounded:`SFRounded, ui-rounded, "SF Pro Rounded", ${Nw}`,system:Nw},Za={large:{actionButton:"9999px",connectButton:"12px",modal:"24px",modalMobile:"28px"},medium:{actionButton:"10px",connectButton:"8px",modal:"16px",modalMobile:"18px"},none:{actionButton:"0px",connectButton:"0px",modal:"0px",modalMobile:"0px"},small:{actionButton:"4px",connectButton:"4px",modal:"8px",modalMobile:"8px"}},$B={large:{modalOverlay:"blur(20px)"},none:{modalOverlay:"blur(0px)"},small:{modalOverlay:"blur(4px)"}},qB=({borderRadius:e="large",fontStack:t="rounded",overlayBlur:n="none"})=>({blurs:{modalOverlay:$B[n].modalOverlay},fonts:{body:WB[t]},radii:{actionButton:Za[e].actionButton,connectButton:Za[e].connectButton,menuButton:Za[e].connectButton,modal:Za[e].modal,modalMobile:Za[e].modalMobile}}),n3={blue:{accentColor:"#0E76FD",accentColorForeground:"#FFF"},green:{accentColor:"#1DB847",accentColorForeground:"#FFF"},orange:{accentColor:"#FF801F",accentColorForeground:"#FFF"},pink:{accentColor:"#FF5CA0",accentColorForeground:"#FFF"},purple:{accentColor:"#5F5AFA",accentColorForeground:"#FFF"},red:{accentColor:"#FA423C",accentColorForeground:"#FFF"}},Mw=n3.blue,r3=({accentColor:e=Mw.accentColor,accentColorForeground:t=Mw.accentColorForeground,...n}={})=>({...qB(n),colors:{accentColor:e,accentColorForeground:t,actionButtonBorder:"rgba(0, 0, 0, 0.04)",actionButtonBorderMobile:"rgba(0, 0, 0, 0.06)",actionButtonSecondaryBackground:"rgba(0, 0, 0, 0.06)",closeButton:"rgba(60, 66, 66, 0.8)",closeButtonBackground:"rgba(0, 0, 0, 0.06)",connectButtonBackground:"#FFF",connectButtonBackgroundError:"#FF494A",connectButtonInnerBackground:"linear-gradient(0deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.06))",connectButtonText:"#25292E",connectButtonTextError:"#FFF",connectionIndicator:"#30E000",downloadBottomCardBackground:"linear-gradient(126deg, rgba(255, 255, 255, 0) 9.49%, rgba(171, 171, 171, 0.04) 71.04%), #FFFFFF",downloadTopCardBackground:"linear-gradient(126deg, rgba(171, 171, 171, 0.2) 9.49%, rgba(255, 255, 255, 0) 71.04%), #FFFFFF",error:"#FF494A",generalBorder:"rgba(0, 0, 0, 0.06)",generalBorderDim:"rgba(0, 0, 0, 0.03)",menuItemBackground:"rgba(60, 66, 66, 0.1)",modalBackdrop:"rgba(0, 0, 0, 0.3)",modalBackground:"#FFF",modalBorder:"transparent",modalText:"#25292E",modalTextDim:"rgba(60, 66, 66, 0.3)",modalTextSecondary:"rgba(60, 66, 66, 0.6)",profileAction:"#FFF",profileActionHover:"rgba(255, 255, 255, 0.5)",profileForeground:"rgba(60, 66, 66, 0.06)",selectedOptionBorder:"rgba(60, 66, 66, 0.1)",standby:"#FFD641"},shadows:{connectButton:"0px 4px 12px rgba(0, 0, 0, 0.1)",dialog:"0px 8px 32px rgba(0, 0, 0, 0.32)",profileDetailsAction:"0px 2px 6px rgba(37, 41, 46, 0.04)",selectedOption:"0px 2px 6px rgba(0, 0, 0, 0.24)",selectedWallet:"0px 2px 6px rgba(0, 0, 0, 0.12)",walletLogo:"0px 2px 16px rgba(0, 0, 0, 0.16)"}});r3.accentColors=n3;var Dp=`{
102
+ "connect_wallet": {
103
+ "label": "Connect Wallet",
104
+ "wrong_network": {
105
+ "label": "Wrong network"
106
+ }
107
+ },
108
+
109
+ "intro": {
110
+ "title": "What is a Wallet?",
111
+ "description": "A wallet is used to send, receive, store, and display digital assets. It's also a new way to log in, without needing to create new accounts and passwords on every website.",
112
+ "digital_asset": {
113
+ "title": "A Home for your Digital Assets",
114
+ "description": "Wallets are used to send, receive, store, and display digital assets like Ethereum and NFTs."
115
+ },
116
+ "login": {
117
+ "title": "A New Way to Log In",
118
+ "description": "Instead of creating new accounts and passwords on every website, just connect your wallet."
119
+ },
120
+ "get": {
121
+ "label": "Get a Wallet"
122
+ },
123
+ "learn_more": {
124
+ "label": "Learn More"
125
+ }
126
+ },
127
+
128
+ "sign_in": {
129
+ "label": "Verify your account",
130
+ "description": "To finish connecting, you must sign a message in your wallet to verify that you are the owner of this account.",
131
+ "message": {
132
+ "send": "Sign message",
133
+ "preparing": "Preparing message...",
134
+ "cancel": "Cancel",
135
+ "preparing_error": "Error preparing message, please retry!"
136
+ },
137
+ "signature": {
138
+ "waiting": "Waiting for signature...",
139
+ "verifying": "Verifying signature...",
140
+ "signing_error": "Error signing message, please retry!",
141
+ "verifying_error": "Error verifying signature, please retry!",
142
+ "oops_error": "Oops, something went wrong!"
143
+ }
144
+ },
145
+
146
+ "connect": {
147
+ "label": "Connect",
148
+ "title": "Connect a Wallet",
149
+ "new_to_ethereum": {
150
+ "description": "New to Ethereum wallets?",
151
+ "learn_more": {
152
+ "label": "Learn More"
153
+ }
154
+ },
155
+ "learn_more": {
156
+ "label": "Learn more"
157
+ },
158
+ "recent": "Recent",
159
+ "status": {
160
+ "opening": "Opening %{wallet}...",
161
+ "connecting": "Connecting",
162
+ "connect_mobile": "Continue in %{wallet}",
163
+ "not_installed": "%{wallet} is not installed",
164
+ "not_available": "%{wallet} is not available",
165
+ "confirm": "Confirm connection in the extension",
166
+ "confirm_mobile": "Accept connection request in the wallet"
167
+ },
168
+ "secondary_action": {
169
+ "get": {
170
+ "description": "Don't have %{wallet}?",
171
+ "label": "GET"
172
+ },
173
+ "install": {
174
+ "label": "INSTALL"
175
+ },
176
+ "retry": {
177
+ "label": "RETRY"
178
+ }
179
+ },
180
+ "walletconnect": {
181
+ "description": {
182
+ "full": "Need the official WalletConnect modal?",
183
+ "compact": "Need the WalletConnect modal?"
184
+ },
185
+ "open": {
186
+ "label": "OPEN"
187
+ }
188
+ }
189
+ },
190
+
191
+ "connect_scan": {
192
+ "title": "Scan with %{wallet}",
193
+ "fallback_title": "Scan with your phone"
194
+ },
195
+
196
+ "connector_group": {
197
+ "installed": "Installed",
198
+ "recommended": "Recommended",
199
+ "other": "Other",
200
+ "popular": "Popular",
201
+ "more": "More",
202
+ "others": "Others"
203
+ },
204
+
205
+ "get": {
206
+ "title": "Get a Wallet",
207
+ "action": {
208
+ "label": "GET"
209
+ },
210
+ "mobile": {
211
+ "description": "Mobile Wallet"
212
+ },
213
+ "extension": {
214
+ "description": "Browser Extension"
215
+ },
216
+ "mobile_and_extension": {
217
+ "description": "Mobile Wallet and Extension"
218
+ },
219
+ "mobile_and_desktop": {
220
+ "description": "Mobile and Desktop Wallet"
221
+ },
222
+ "looking_for": {
223
+ "title": "Not what you're looking for?",
224
+ "mobile": {
225
+ "description": "Select a wallet on the main screen to get started with a different wallet provider."
226
+ },
227
+ "desktop": {
228
+ "compact_description": "Select a wallet on the main screen to get started with a different wallet provider.",
229
+ "wide_description": "Select a wallet on the left to get started with a different wallet provider."
230
+ }
231
+ }
232
+ },
233
+
234
+ "get_options": {
235
+ "title": "Get started with %{wallet}",
236
+ "short_title": "Get %{wallet}",
237
+ "mobile": {
238
+ "title": "%{wallet} for Mobile",
239
+ "description": "Use the mobile wallet to explore the world of Ethereum.",
240
+ "download": {
241
+ "label": "Get the app"
242
+ }
243
+ },
244
+ "extension": {
245
+ "title": "%{wallet} for %{browser}",
246
+ "description": "Access your wallet right from your favorite web browser.",
247
+ "download": {
248
+ "label": "Add to %{browser}"
249
+ }
250
+ },
251
+ "desktop": {
252
+ "title": "%{wallet} for %{platform}",
253
+ "description": "Access your wallet natively from your powerful desktop.",
254
+ "download": {
255
+ "label": "Add to %{platform}"
256
+ }
257
+ }
258
+ },
259
+
260
+ "get_mobile": {
261
+ "title": "Install %{wallet}",
262
+ "description": "Scan with your phone to download on iOS or Android",
263
+ "continue": {
264
+ "label": "Continue"
265
+ }
266
+ },
267
+
268
+ "get_instructions": {
269
+ "mobile": {
270
+ "connect": {
271
+ "label": "Connect"
272
+ },
273
+ "learn_more": {
274
+ "label": "Learn More"
275
+ }
276
+ },
277
+ "extension": {
278
+ "refresh": {
279
+ "label": "Refresh"
280
+ },
281
+ "learn_more": {
282
+ "label": "Learn More"
283
+ }
284
+ },
285
+ "desktop": {
286
+ "connect": {
287
+ "label": "Connect"
288
+ },
289
+ "learn_more": {
290
+ "label": "Learn More"
291
+ }
292
+ }
293
+ },
294
+
295
+ "chains": {
296
+ "title": "Switch Networks",
297
+ "wrong_network": "Wrong network detected, switch or disconnect to continue.",
298
+ "confirm": "Confirm in Wallet",
299
+ "switching_not_supported": "Your wallet does not support switching networks from %{appName}. Try switching networks from within your wallet instead.",
300
+ "switching_not_supported_fallback": "Your wallet does not support switching networks from this app. Try switching networks from within your wallet instead.",
301
+ "disconnect": "Disconnect",
302
+ "connected": "Connected"
303
+ },
304
+
305
+ "profile": {
306
+ "disconnect": {
307
+ "label": "Disconnect"
308
+ },
309
+ "copy_address": {
310
+ "label": "Copy Address",
311
+ "copied": "Copied!"
312
+ },
313
+ "explorer": {
314
+ "label": "View more on explorer"
315
+ },
316
+ "transactions": {
317
+ "description": "%{appName} transactions will appear here...",
318
+ "description_fallback": "Your transactions will appear here...",
319
+ "recent": {
320
+ "title": "Recent Transactions"
321
+ },
322
+ "clear": {
323
+ "label": "Clear All"
324
+ }
325
+ }
326
+ },
327
+
328
+ "wallet_connectors": {
329
+ "ready": {
330
+ "qr_code": {
331
+ "step1": {
332
+ "description": "Add Ready to your home screen for faster access to your wallet.",
333
+ "title": "Open the Ready app"
334
+ },
335
+ "step2": {
336
+ "description": "Create a wallet and username, or import an existing wallet.",
337
+ "title": "Create or Import a Wallet"
338
+ },
339
+ "step3": {
340
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
341
+ "title": "Tap the Scan QR button"
342
+ }
343
+ }
344
+ },
345
+
346
+ "berasig": {
347
+ "extension": {
348
+ "step1": {
349
+ "title": "Install the BeraSig extension",
350
+ "description": "We recommend pinning BeraSig to your taskbar for easier access to your wallet."
351
+ },
352
+ "step2": {
353
+ "title": "Create a Wallet",
354
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
355
+ },
356
+ "step3": {
357
+ "title": "Refresh your browser",
358
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
359
+ }
360
+ }
361
+ },
362
+
363
+ "best": {
364
+ "qr_code": {
365
+ "step1": {
366
+ "title": "Open the Best Wallet app",
367
+ "description": "Add Best Wallet to your home screen for faster access to your wallet."
368
+ },
369
+ "step2": {
370
+ "title": "Create or Import a Wallet",
371
+ "description": "Create a new wallet or import an existing one."
372
+ },
373
+ "step3": {
374
+ "title": "Tap the QR icon and scan",
375
+ "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."
376
+ }
377
+ }
378
+ },
379
+
380
+ "bifrost": {
381
+ "qr_code": {
382
+ "step1": {
383
+ "description": "We recommend putting Bifrost Wallet on your home screen for quicker access.",
384
+ "title": "Open the Bifrost Wallet app"
385
+ },
386
+ "step2": {
387
+ "description": "Create or import a wallet using your recovery phrase.",
388
+ "title": "Create or Import a Wallet"
389
+ },
390
+ "step3": {
391
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
392
+ "title": "Tap the scan button"
393
+ }
394
+ }
395
+ },
396
+
397
+ "bitget": {
398
+ "qr_code": {
399
+ "step1": {
400
+ "description": "We recommend putting Bitget Wallet on your home screen for quicker access.",
401
+ "title": "Open the Bitget Wallet app"
402
+ },
403
+ "step2": {
404
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
405
+ "title": "Create or Import a Wallet"
406
+ },
407
+ "step3": {
408
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
409
+ "title": "Tap the scan button"
410
+ }
411
+ },
412
+
413
+ "extension": {
414
+ "step1": {
415
+ "description": "We recommend pinning Bitget Wallet to your taskbar for quicker access to your wallet.",
416
+ "title": "Install the Bitget Wallet extension"
417
+ },
418
+ "step2": {
419
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
420
+ "title": "Create or Import a Wallet"
421
+ },
422
+ "step3": {
423
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
424
+ "title": "Refresh your browser"
425
+ }
426
+ }
427
+ },
428
+
429
+ "bitski": {
430
+ "extension": {
431
+ "step1": {
432
+ "description": "We recommend pinning Bitski to your taskbar for quicker access to your wallet.",
433
+ "title": "Install the Bitski extension"
434
+ },
435
+ "step2": {
436
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
437
+ "title": "Create or Import a Wallet"
438
+ },
439
+ "step3": {
440
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
441
+ "title": "Refresh your browser"
442
+ }
443
+ }
444
+ },
445
+
446
+ "bitverse": {
447
+ "qr_code": {
448
+ "step1": {
449
+ "title": "Open the Bitverse Wallet app",
450
+ "description": "Add Bitverse Wallet to your home screen for faster access to your wallet."
451
+ },
452
+ "step2": {
453
+ "title": "Create or Import a Wallet",
454
+ "description": "Create a new wallet or import an existing one."
455
+ },
456
+ "step3": {
457
+ "title": "Tap the QR icon and scan",
458
+ "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."
459
+ }
460
+ }
461
+ },
462
+
463
+ "bloom": {
464
+ "desktop": {
465
+ "step1": {
466
+ "title": "Open the Bloom Wallet app",
467
+ "description": "We recommend putting Bloom Wallet on your home screen for quicker access."
468
+ },
469
+ "step2": {
470
+ "description": "Create or import a wallet using your recovery phrase.",
471
+ "title": "Create or Import a Wallet"
472
+ },
473
+ "step3": {
474
+ "description": "After you have a wallet, click on Connect to connect via Bloom. A connection prompt in the app will appear for you to confirm the connection.",
475
+ "title": "Click on Connect"
476
+ }
477
+ }
478
+ },
479
+
480
+ "bybit": {
481
+ "qr_code": {
482
+ "step1": {
483
+ "description": "We recommend putting Bybit on your home screen for faster access to your wallet.",
484
+ "title": "Open the Bybit app"
485
+ },
486
+ "step2": {
487
+ "description": "You can easily backup your wallet using our backup feature on your phone.",
488
+ "title": "Create or Import a Wallet"
489
+ },
490
+ "step3": {
491
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
492
+ "title": "Tap the scan button"
493
+ }
494
+ },
495
+
496
+ "extension": {
497
+ "step1": {
498
+ "description": "Click at the top right of your browser and pin Bybit Wallet for easy access.",
499
+ "title": "Install the Bybit Wallet extension"
500
+ },
501
+ "step2": {
502
+ "description": "Create a new wallet or import an existing one.",
503
+ "title": "Create or Import a wallet"
504
+ },
505
+ "step3": {
506
+ "description": "Once you set up Bybit Wallet, click below to refresh the browser and load up the extension.",
507
+ "title": "Refresh your browser"
508
+ }
509
+ }
510
+ },
511
+
512
+ "binance": {
513
+ "qr_code": {
514
+ "step1": {
515
+ "description": "We recommend putting Binance on your home screen for faster access to your wallet.",
516
+ "title": "Open the Binance app"
517
+ },
518
+ "step2": {
519
+ "description": "You can easily backup your wallet using our backup feature on your phone.",
520
+ "title": "Create or Import a Wallet"
521
+ },
522
+ "step3": {
523
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
524
+ "title": "Tap the WalletConnect button"
525
+ }
526
+ },
527
+ "extension": {
528
+ "step1": {
529
+ "title": "Install the Binance Wallet extension",
530
+ "description": "We recommend pinning Binance Wallet to your taskbar for quicker access to your wallet."
531
+ },
532
+ "step2": {
533
+ "title": "Create or Import a Wallet",
534
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
535
+ },
536
+ "step3": {
537
+ "title": "Refresh your browser",
538
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
539
+ }
540
+ }
541
+ },
542
+
543
+ "coin98": {
544
+ "qr_code": {
545
+ "step1": {
546
+ "description": "We recommend putting Coin98 Wallet on your home screen for faster access to your wallet.",
547
+ "title": "Open the Coin98 Wallet app"
548
+ },
549
+ "step2": {
550
+ "description": "You can easily backup your wallet using our backup feature on your phone.",
551
+ "title": "Create or Import a Wallet"
552
+ },
553
+ "step3": {
554
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
555
+ "title": "Tap the WalletConnect button"
556
+ }
557
+ },
558
+
559
+ "extension": {
560
+ "step1": {
561
+ "description": "Click at the top right of your browser and pin Coin98 Wallet for easy access.",
562
+ "title": "Install the Coin98 Wallet extension"
563
+ },
564
+ "step2": {
565
+ "description": "Create a new wallet or import an existing one.",
566
+ "title": "Create or Import a wallet"
567
+ },
568
+ "step3": {
569
+ "description": "Once you set up Coin98 Wallet, click below to refresh the browser and load up the extension.",
570
+ "title": "Refresh your browser"
571
+ }
572
+ }
573
+ },
574
+
575
+ "coinbase": {
576
+ "qr_code": {
577
+ "step1": {
578
+ "description": "We recommend putting Coinbase Wallet on your home screen for quicker access.",
579
+ "title": "Open the Coinbase Wallet app"
580
+ },
581
+ "step2": {
582
+ "description": "You can easily backup your wallet using the cloud backup feature.",
583
+ "title": "Create or Import a Wallet"
584
+ },
585
+ "step3": {
586
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
587
+ "title": "Tap the scan button"
588
+ }
589
+ },
590
+
591
+ "extension": {
592
+ "step1": {
593
+ "description": "We recommend pinning Coinbase Wallet to your taskbar for quicker access to your wallet.",
594
+ "title": "Install the Coinbase Wallet extension"
595
+ },
596
+ "step2": {
597
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
598
+ "title": "Create or Import a Wallet"
599
+ },
600
+ "step3": {
601
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
602
+ "title": "Refresh your browser"
603
+ }
604
+ }
605
+ },
606
+
607
+ "compass": {
608
+ "extension": {
609
+ "step1": {
610
+ "description": "We recommend pinning Compass Wallet to your taskbar for quicker access to your wallet.",
611
+ "title": "Install the Compass Wallet extension"
612
+ },
613
+ "step2": {
614
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
615
+ "title": "Create or Import a Wallet"
616
+ },
617
+ "step3": {
618
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
619
+ "title": "Refresh your browser"
620
+ }
621
+ }
622
+ },
623
+
624
+ "core": {
625
+ "qr_code": {
626
+ "step1": {
627
+ "description": "We recommend putting Core on your home screen for faster access to your wallet.",
628
+ "title": "Open the Core app"
629
+ },
630
+ "step2": {
631
+ "description": "You can easily backup your wallet using our backup feature on your phone.",
632
+ "title": "Create or Import a Wallet"
633
+ },
634
+ "step3": {
635
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
636
+ "title": "Tap the WalletConnect button"
637
+ }
638
+ },
639
+
640
+ "extension": {
641
+ "step1": {
642
+ "description": "We recommend pinning Core to your taskbar for quicker access to your wallet.",
643
+ "title": "Install the Core extension"
644
+ },
645
+ "step2": {
646
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
647
+ "title": "Create or Import a Wallet"
648
+ },
649
+ "step3": {
650
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
651
+ "title": "Refresh your browser"
652
+ }
653
+ }
654
+ },
655
+
656
+ "fox": {
657
+ "qr_code": {
658
+ "step1": {
659
+ "description": "We recommend putting FoxWallet on your home screen for quicker access.",
660
+ "title": "Open the FoxWallet app"
661
+ },
662
+ "step2": {
663
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
664
+ "title": "Create or Import a Wallet"
665
+ },
666
+ "step3": {
667
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
668
+ "title": "Tap the scan button"
669
+ }
670
+ }
671
+ },
672
+
673
+ "frontier": {
674
+ "qr_code": {
675
+ "step1": {
676
+ "description": "We recommend putting Frontier Wallet on your home screen for quicker access.",
677
+ "title": "Open the Frontier Wallet app"
678
+ },
679
+ "step2": {
680
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
681
+ "title": "Create or Import a Wallet"
682
+ },
683
+ "step3": {
684
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
685
+ "title": "Tap the scan button"
686
+ }
687
+ },
688
+
689
+ "extension": {
690
+ "step1": {
691
+ "description": "We recommend pinning Frontier Wallet to your taskbar for quicker access to your wallet.",
692
+ "title": "Install the Frontier Wallet extension"
693
+ },
694
+ "step2": {
695
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
696
+ "title": "Create or Import a Wallet"
697
+ },
698
+ "step3": {
699
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
700
+ "title": "Refresh your browser"
701
+ }
702
+ }
703
+ },
704
+
705
+ "im_token": {
706
+ "qr_code": {
707
+ "step1": {
708
+ "title": "Open the imToken app",
709
+ "description": "Put imToken app on your home screen for faster access to your wallet."
710
+ },
711
+ "step2": {
712
+ "title": "Create or Import a Wallet",
713
+ "description": "Create a new wallet or import an existing one."
714
+ },
715
+ "step3": {
716
+ "title": "Tap Scanner Icon in top right corner",
717
+ "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."
718
+ }
719
+ }
720
+ },
721
+
722
+ "iopay": {
723
+ "qr_code": {
724
+ "step1": {
725
+ "description": "We recommend putting ioPay on your home screen for faster access to your wallet.",
726
+ "title": "Open the ioPay app"
727
+ },
728
+ "step2": {
729
+ "description": "You can easily backup your wallet using our backup feature on your phone.",
730
+ "title": "Create or Import a Wallet"
731
+ },
732
+ "step3": {
733
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
734
+ "title": "Tap the WalletConnect button"
735
+ }
736
+ }
737
+ },
738
+
739
+ "kaikas": {
740
+ "extension": {
741
+ "step1": {
742
+ "description": "We recommend pinning Kaikas to your taskbar for quicker access to your wallet.",
743
+ "title": "Install the Kaikas extension"
744
+ },
745
+ "step2": {
746
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
747
+ "title": "Create or Import a Wallet"
748
+ },
749
+ "step3": {
750
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
751
+ "title": "Refresh your browser"
752
+ }
753
+ },
754
+ "qr_code": {
755
+ "step1": {
756
+ "title": "Open the Kaikas app",
757
+ "description": "Put Kaikas app on your home screen for faster access to your wallet."
758
+ },
759
+ "step2": {
760
+ "title": "Create or Import a Wallet",
761
+ "description": "Create a new wallet or import an existing one."
762
+ },
763
+ "step3": {
764
+ "title": "Tap Scanner Icon in top right corner",
765
+ "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."
766
+ }
767
+ }
768
+ },
769
+
770
+ "kaia": {
771
+ "extension": {
772
+ "step1": {
773
+ "description": "We recommend pinning Kaia to your taskbar for quicker access to your wallet.",
774
+ "title": "Install the Kaia extension"
775
+ },
776
+ "step2": {
777
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
778
+ "title": "Create or Import a Wallet"
779
+ },
780
+ "step3": {
781
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
782
+ "title": "Refresh your browser"
783
+ }
784
+ },
785
+ "qr_code": {
786
+ "step1": {
787
+ "title": "Open the Kaia app",
788
+ "description": "Put Kaia app on your home screen for faster access to your wallet."
789
+ },
790
+ "step2": {
791
+ "title": "Create or Import a Wallet",
792
+ "description": "Create a new wallet or import an existing one."
793
+ },
794
+ "step3": {
795
+ "title": "Tap Scanner Icon in top right corner",
796
+ "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."
797
+ }
798
+ }
799
+ },
800
+
801
+ "kraken": {
802
+ "qr_code": {
803
+ "step1": {
804
+ "title": "Open the Kraken Wallet app",
805
+ "description": "Add Kraken Wallet to your home screen for faster access to your wallet."
806
+ },
807
+ "step2": {
808
+ "title": "Create or Import a Wallet",
809
+ "description": "Create a new wallet or import an existing one."
810
+ },
811
+ "step3": {
812
+ "title": "Tap the QR icon and scan",
813
+ "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."
814
+ }
815
+ }
816
+ },
817
+
818
+ "kresus": {
819
+ "qr_code": {
820
+ "step1": {
821
+ "title": "Open the Kresus Wallet app",
822
+ "description": "Add Kresus Wallet to your home screen for faster access to your wallet."
823
+ },
824
+ "step2": {
825
+ "title": "Create or Import a Wallet",
826
+ "description": "Create a new wallet or import an existing one."
827
+ },
828
+ "step3": {
829
+ "title": "Tap the QR icon and scan",
830
+ "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."
831
+ }
832
+ }
833
+ },
834
+
835
+ "magicEden": {
836
+ "extension": {
837
+ "step1": {
838
+ "title": "Install the Magic Eden extension",
839
+ "description": "We recommend pinning Magic Eden to your taskbar for easier access to your wallet."
840
+ },
841
+ "step2": {
842
+ "title": "Create or Import a Wallet",
843
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret recovery phrase with anyone."
844
+ },
845
+ "step3": {
846
+ "title": "Refresh your browser",
847
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
848
+ }
849
+ }
850
+ },
851
+
852
+ "metamask": {
853
+ "qr_code": {
854
+ "step1": {
855
+ "title": "Open the MetaMask app",
856
+ "description": "We recommend putting MetaMask on your home screen for quicker access."
857
+ },
858
+ "step2": {
859
+ "title": "Create or Import a Wallet",
860
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
861
+ },
862
+ "step3": {
863
+ "title": "Tap the scan button",
864
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet."
865
+ }
866
+ },
867
+
868
+ "extension": {
869
+ "step1": {
870
+ "title": "Install the MetaMask extension",
871
+ "description": "We recommend pinning MetaMask to your taskbar for quicker access to your wallet."
872
+ },
873
+ "step2": {
874
+ "title": "Create or Import a Wallet",
875
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
876
+ },
877
+ "step3": {
878
+ "title": "Refresh your browser",
879
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
880
+ }
881
+ }
882
+ },
883
+
884
+ "nestwallet": {
885
+ "extension": {
886
+ "step1": {
887
+ "title": "Install the NestWallet extension",
888
+ "description": "We recommend pinning NestWallet to your taskbar for quicker access to your wallet."
889
+ },
890
+ "step2": {
891
+ "title": "Create or Import a Wallet",
892
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
893
+ },
894
+ "step3": {
895
+ "title": "Refresh your browser",
896
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
897
+ }
898
+ }
899
+ },
900
+
901
+ "okx": {
902
+ "qr_code": {
903
+ "step1": {
904
+ "title": "Open the OKX Wallet app",
905
+ "description": "We recommend putting OKX Wallet on your home screen for quicker access."
906
+ },
907
+ "step2": {
908
+ "title": "Create or Import a Wallet",
909
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
910
+ },
911
+ "step3": {
912
+ "title": "Tap the scan button",
913
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet."
914
+ }
915
+ },
916
+
917
+ "extension": {
918
+ "step1": {
919
+ "title": "Install the OKX Wallet extension",
920
+ "description": "We recommend pinning OKX Wallet to your taskbar for quicker access to your wallet."
921
+ },
922
+ "step2": {
923
+ "title": "Create or Import a Wallet",
924
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
925
+ },
926
+ "step3": {
927
+ "title": "Refresh your browser",
928
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
929
+ }
930
+ }
931
+ },
932
+
933
+ "omni": {
934
+ "qr_code": {
935
+ "step1": {
936
+ "title": "Open the Omni app",
937
+ "description": "Add Omni to your home screen for faster access to your wallet."
938
+ },
939
+ "step2": {
940
+ "title": "Create or Import a Wallet",
941
+ "description": "Create a new wallet or import an existing one."
942
+ },
943
+ "step3": {
944
+ "title": "Tap the QR icon and scan",
945
+ "description": "Tap the QR icon on your home screen, scan the code and confirm the prompt to connect."
946
+ }
947
+ }
948
+ },
949
+
950
+ "1inch": {
951
+ "qr_code": {
952
+ "step1": {
953
+ "description": "Put 1inch Wallet on your home screen for faster access to your wallet.",
954
+ "title": "Open the 1inch Wallet app"
955
+ },
956
+ "step2": {
957
+ "description": "Create a wallet and username, or import an existing wallet.",
958
+ "title": "Create or Import a Wallet"
959
+ },
960
+ "step3": {
961
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
962
+ "title": "Tap the Scan QR button"
963
+ }
964
+ }
965
+ },
966
+
967
+ "token_pocket": {
968
+ "qr_code": {
969
+ "step1": {
970
+ "title": "Open the TokenPocket app",
971
+ "description": "We recommend putting TokenPocket on your home screen for quicker access."
972
+ },
973
+ "step2": {
974
+ "title": "Create or Import a Wallet",
975
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
976
+ },
977
+ "step3": {
978
+ "title": "Tap the scan button",
979
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet."
980
+ }
981
+ },
982
+
983
+ "extension": {
984
+ "step1": {
985
+ "title": "Install the TokenPocket extension",
986
+ "description": "We recommend pinning TokenPocket to your taskbar for quicker access to your wallet."
987
+ },
988
+ "step2": {
989
+ "title": "Create or Import a Wallet",
990
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
991
+ },
992
+ "step3": {
993
+ "title": "Refresh your browser",
994
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
995
+ }
996
+ }
997
+ },
998
+
999
+ "trust": {
1000
+ "qr_code": {
1001
+ "step1": {
1002
+ "title": "Open the Trust Wallet app",
1003
+ "description": "Put Trust Wallet on your home screen for faster access to your wallet."
1004
+ },
1005
+ "step2": {
1006
+ "title": "Create or Import a Wallet",
1007
+ "description": "Create a new wallet or import an existing one."
1008
+ },
1009
+ "step3": {
1010
+ "title": "Tap WalletConnect in Settings",
1011
+ "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."
1012
+ }
1013
+ },
1014
+
1015
+ "extension": {
1016
+ "step1": {
1017
+ "title": "Install the Trust Wallet extension",
1018
+ "description": "Click at the top right of your browser and pin Trust Wallet for easy access."
1019
+ },
1020
+ "step2": {
1021
+ "title": "Create or Import a wallet",
1022
+ "description": "Create a new wallet or import an existing one."
1023
+ },
1024
+ "step3": {
1025
+ "title": "Refresh your browser",
1026
+ "description": "Once you set up Trust Wallet, click below to refresh the browser and load up the extension."
1027
+ }
1028
+ }
1029
+ },
1030
+
1031
+ "uniswap": {
1032
+ "qr_code": {
1033
+ "step1": {
1034
+ "title": "Open the Uniswap app",
1035
+ "description": "Add Uniswap Wallet to your home screen for faster access to your wallet."
1036
+ },
1037
+ "step2": {
1038
+ "title": "Create or Import a Wallet",
1039
+ "description": "Create a new wallet or import an existing one."
1040
+ },
1041
+ "step3": {
1042
+ "title": "Tap the QR icon and scan",
1043
+ "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."
1044
+ }
1045
+ }
1046
+ },
1047
+
1048
+ "zerion": {
1049
+ "qr_code": {
1050
+ "step1": {
1051
+ "title": "Open the Zerion app",
1052
+ "description": "We recommend putting Zerion on your home screen for quicker access."
1053
+ },
1054
+ "step2": {
1055
+ "title": "Create or Import a Wallet",
1056
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
1057
+ },
1058
+ "step3": {
1059
+ "title": "Tap the scan button",
1060
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet."
1061
+ }
1062
+ },
1063
+
1064
+ "extension": {
1065
+ "step1": {
1066
+ "title": "Install the Zerion extension",
1067
+ "description": "We recommend pinning Zerion to your taskbar for quicker access to your wallet."
1068
+ },
1069
+ "step2": {
1070
+ "title": "Create or Import a Wallet",
1071
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
1072
+ },
1073
+ "step3": {
1074
+ "title": "Refresh your browser",
1075
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
1076
+ }
1077
+ }
1078
+ },
1079
+
1080
+ "rainbow": {
1081
+ "qr_code": {
1082
+ "step1": {
1083
+ "title": "Open the Rainbow app",
1084
+ "description": "We recommend putting Rainbow on your home screen for faster access to your wallet."
1085
+ },
1086
+ "step2": {
1087
+ "title": "Create or Import a Wallet",
1088
+ "description": "You can easily backup your wallet using our backup feature on your phone."
1089
+ },
1090
+ "step3": {
1091
+ "title": "Tap the scan button",
1092
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet."
1093
+ }
1094
+ }
1095
+ },
1096
+
1097
+ "enkrypt": {
1098
+ "extension": {
1099
+ "step1": {
1100
+ "description": "We recommend pinning Enkrypt Wallet to your taskbar for quicker access to your wallet.",
1101
+ "title": "Install the Enkrypt Wallet extension"
1102
+ },
1103
+ "step2": {
1104
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
1105
+ "title": "Create or Import a Wallet"
1106
+ },
1107
+ "step3": {
1108
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
1109
+ "title": "Refresh your browser"
1110
+ }
1111
+ }
1112
+ },
1113
+
1114
+ "frame": {
1115
+ "extension": {
1116
+ "step1": {
1117
+ "description": "We recommend pinning Frame to your taskbar for quicker access to your wallet.",
1118
+ "title": "Install Frame & the companion extension"
1119
+ },
1120
+ "step2": {
1121
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
1122
+ "title": "Create or Import a Wallet"
1123
+ },
1124
+ "step3": {
1125
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
1126
+ "title": "Refresh your browser"
1127
+ }
1128
+ }
1129
+ },
1130
+
1131
+ "one_key": {
1132
+ "extension": {
1133
+ "step1": {
1134
+ "title": "Install the OneKey Wallet extension",
1135
+ "description": "We recommend pinning OneKey Wallet to your taskbar for quicker access to your wallet."
1136
+ },
1137
+ "step2": {
1138
+ "title": "Create or Import a Wallet",
1139
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
1140
+ },
1141
+ "step3": {
1142
+ "title": "Refresh your browser",
1143
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
1144
+ }
1145
+ }
1146
+ },
1147
+
1148
+ "paraswap": {
1149
+ "qr_code": {
1150
+ "step1": {
1151
+ "title": "Open the ParaSwap app",
1152
+ "description": "Add ParaSwap Wallet to your home screen for faster access to your wallet."
1153
+ },
1154
+ "step2": {
1155
+ "title": "Create or Import a Wallet",
1156
+ "description": "Create a new wallet or import an existing one."
1157
+ },
1158
+ "step3": {
1159
+ "title": "Tap the QR icon and scan",
1160
+ "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."
1161
+ }
1162
+ }
1163
+ },
1164
+
1165
+ "phantom": {
1166
+ "extension": {
1167
+ "step1": {
1168
+ "title": "Install the Phantom extension",
1169
+ "description": "We recommend pinning Phantom to your taskbar for easier access to your wallet."
1170
+ },
1171
+ "step2": {
1172
+ "title": "Create or Import a Wallet",
1173
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret recovery phrase with anyone."
1174
+ },
1175
+ "step3": {
1176
+ "title": "Refresh your browser",
1177
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
1178
+ }
1179
+ }
1180
+ },
1181
+
1182
+ "rabby": {
1183
+ "extension": {
1184
+ "step1": {
1185
+ "title": "Install the Rabby extension",
1186
+ "description": "We recommend pinning Rabby to your taskbar for quicker access to your wallet."
1187
+ },
1188
+ "step2": {
1189
+ "title": "Create or Import a Wallet",
1190
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
1191
+ },
1192
+ "step3": {
1193
+ "title": "Refresh your browser",
1194
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
1195
+ }
1196
+ }
1197
+ },
1198
+
1199
+ "ronin": {
1200
+ "qr_code": {
1201
+ "step1": {
1202
+ "description": "We recommend putting Ronin Wallet on your home screen for quicker access.",
1203
+ "title": "Open the Ronin Wallet app"
1204
+ },
1205
+ "step2": {
1206
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
1207
+ "title": "Create or Import a Wallet"
1208
+ },
1209
+ "step3": {
1210
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
1211
+ "title": "Tap the scan button"
1212
+ }
1213
+ },
1214
+
1215
+ "extension": {
1216
+ "step1": {
1217
+ "description": "We recommend pinning Ronin Wallet to your taskbar for quicker access to your wallet.",
1218
+ "title": "Install the Ronin Wallet extension"
1219
+ },
1220
+ "step2": {
1221
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
1222
+ "title": "Create or Import a Wallet"
1223
+ },
1224
+ "step3": {
1225
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
1226
+ "title": "Refresh your browser"
1227
+ }
1228
+ }
1229
+ },
1230
+
1231
+ "ramper": {
1232
+ "extension": {
1233
+ "step1": {
1234
+ "title": "Install the Ramper extension",
1235
+ "description": "We recommend pinning Ramper to your taskbar for easier access to your wallet."
1236
+ },
1237
+ "step2": {
1238
+ "title": "Create a Wallet",
1239
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
1240
+ },
1241
+ "step3": {
1242
+ "title": "Refresh your browser",
1243
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
1244
+ }
1245
+ }
1246
+ },
1247
+
1248
+ "safeheron": {
1249
+ "extension": {
1250
+ "step1": {
1251
+ "title": "Install the Core extension",
1252
+ "description": "We recommend pinning Safeheron to your taskbar for quicker access to your wallet."
1253
+ },
1254
+ "step2": {
1255
+ "title": "Create or Import a Wallet",
1256
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
1257
+ },
1258
+ "step3": {
1259
+ "title": "Refresh your browser",
1260
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
1261
+ }
1262
+ }
1263
+ },
1264
+
1265
+ "taho": {
1266
+ "extension": {
1267
+ "step1": {
1268
+ "title": "Install the Taho extension",
1269
+ "description": "We recommend pinning Taho to your taskbar for quicker access to your wallet."
1270
+ },
1271
+ "step2": {
1272
+ "title": "Create or Import a Wallet",
1273
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
1274
+ },
1275
+ "step3": {
1276
+ "title": "Refresh your browser",
1277
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
1278
+ }
1279
+ }
1280
+ },
1281
+
1282
+ "wigwam": {
1283
+ "extension": {
1284
+ "step1": {
1285
+ "title": "Install the Wigwam extension",
1286
+ "description": "We recommend pinning Wigwam to your taskbar for quicker access to your wallet."
1287
+ },
1288
+ "step2": {
1289
+ "title": "Create or Import a Wallet",
1290
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
1291
+ },
1292
+ "step3": {
1293
+ "title": "Refresh your browser",
1294
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
1295
+ }
1296
+ }
1297
+ },
1298
+
1299
+ "talisman": {
1300
+ "extension": {
1301
+ "step1": {
1302
+ "title": "Install the Talisman extension",
1303
+ "description": "We recommend pinning Talisman to your taskbar for quicker access to your wallet."
1304
+ },
1305
+ "step2": {
1306
+ "title": "Create or Import an Ethereum Wallet",
1307
+ "description": "Be sure to back up your wallet using a secure method. Never share your recovery phrase with anyone."
1308
+ },
1309
+ "step3": {
1310
+ "title": "Refresh your browser",
1311
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
1312
+ }
1313
+ }
1314
+ },
1315
+
1316
+ "ctrl": {
1317
+ "extension": {
1318
+ "step1": {
1319
+ "title": "Install the CTRL Wallet extension",
1320
+ "description": "We recommend pinning CTRL Wallet to your taskbar for quicker access to your wallet."
1321
+ },
1322
+ "step2": {
1323
+ "title": "Create or Import a Wallet",
1324
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
1325
+ },
1326
+ "step3": {
1327
+ "title": "Refresh your browser",
1328
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
1329
+ }
1330
+ }
1331
+ },
1332
+
1333
+ "zeal": {
1334
+ "qr_code": {
1335
+ "step1": {
1336
+ "title": "Open the Zeal app",
1337
+ "description": "Add Zeal Wallet to your home screen for faster access to your wallet."
1338
+ },
1339
+ "step2": {
1340
+ "title": "Create or Import a Wallet",
1341
+ "description": "Create a new wallet or import an existing one."
1342
+ },
1343
+ "step3": {
1344
+ "title": "Tap the QR icon and scan",
1345
+ "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."
1346
+ }
1347
+ },
1348
+ "extension": {
1349
+ "step1": {
1350
+ "title": "Install the Zeal extension",
1351
+ "description": "We recommend pinning Zeal to your taskbar for quicker access to your wallet."
1352
+ },
1353
+ "step2": {
1354
+ "title": "Create or Import a Wallet",
1355
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
1356
+ },
1357
+ "step3": {
1358
+ "title": "Refresh your browser",
1359
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
1360
+ }
1361
+ }
1362
+ },
1363
+
1364
+ "safepal": {
1365
+ "extension": {
1366
+ "step1": {
1367
+ "title": "Install the SafePal Wallet extension",
1368
+ "description": "Click at the top right of your browser and pin SafePal Wallet for easy access."
1369
+ },
1370
+ "step2": {
1371
+ "title": "Create or Import a wallet",
1372
+ "description": "Create a new wallet or import an existing one."
1373
+ },
1374
+ "step3": {
1375
+ "title": "Refresh your browser",
1376
+ "description": "Once you set up SafePal Wallet, click below to refresh the browser and load up the extension."
1377
+ }
1378
+ },
1379
+ "qr_code": {
1380
+ "step1": {
1381
+ "title": "Open the SafePal Wallet app",
1382
+ "description": "Put SafePal Wallet on your home screen for faster access to your wallet."
1383
+ },
1384
+ "step2": {
1385
+ "title": "Create or Import a Wallet",
1386
+ "description": "Create a new wallet or import an existing one."
1387
+ },
1388
+ "step3": {
1389
+ "title": "Tap WalletConnect in Settings",
1390
+ "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."
1391
+ }
1392
+ }
1393
+ },
1394
+
1395
+ "desig": {
1396
+ "extension": {
1397
+ "step1": {
1398
+ "title": "Install the Desig extension",
1399
+ "description": "We recommend pinning Desig to your taskbar for easier access to your wallet."
1400
+ },
1401
+ "step2": {
1402
+ "title": "Create a Wallet",
1403
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
1404
+ },
1405
+ "step3": {
1406
+ "title": "Refresh your browser",
1407
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
1408
+ }
1409
+ }
1410
+ },
1411
+
1412
+ "subwallet": {
1413
+ "extension": {
1414
+ "step1": {
1415
+ "title": "Install the SubWallet extension",
1416
+ "description": "We recommend pinning SubWallet to your taskbar for quicker access to your wallet."
1417
+ },
1418
+ "step2": {
1419
+ "title": "Create or Import a Wallet",
1420
+ "description": "Be sure to back up your wallet using a secure method. Never share your recovery phrase with anyone."
1421
+ },
1422
+ "step3": {
1423
+ "title": "Refresh your browser",
1424
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
1425
+ }
1426
+ },
1427
+ "qr_code": {
1428
+ "step1": {
1429
+ "title": "Open the SubWallet app",
1430
+ "description": "We recommend putting SubWallet on your home screen for quicker access."
1431
+ },
1432
+ "step2": {
1433
+ "title": "Create or Import a Wallet",
1434
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
1435
+ },
1436
+ "step3": {
1437
+ "title": "Tap the scan button",
1438
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet."
1439
+ }
1440
+ }
1441
+ },
1442
+
1443
+ "clv": {
1444
+ "extension": {
1445
+ "step1": {
1446
+ "title": "Install the CLV Wallet extension",
1447
+ "description": "We recommend pinning CLV Wallet to your taskbar for quicker access to your wallet."
1448
+ },
1449
+ "step2": {
1450
+ "title": "Create or Import a Wallet",
1451
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
1452
+ },
1453
+ "step3": {
1454
+ "title": "Refresh your browser",
1455
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
1456
+ }
1457
+ },
1458
+ "qr_code": {
1459
+ "step1": {
1460
+ "title": "Open the CLV Wallet app",
1461
+ "description": "We recommend putting CLV Wallet on your home screen for quicker access."
1462
+ },
1463
+ "step2": {
1464
+ "title": "Create or Import a Wallet",
1465
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
1466
+ },
1467
+ "step3": {
1468
+ "title": "Tap the scan button",
1469
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet."
1470
+ }
1471
+ }
1472
+ },
1473
+
1474
+ "okto": {
1475
+ "qr_code": {
1476
+ "step1": {
1477
+ "title": "Open the Okto app",
1478
+ "description": "Add Okto to your home screen for quick access"
1479
+ },
1480
+ "step2": {
1481
+ "title": "Create an MPC Wallet",
1482
+ "description": "Create an account and generate a wallet"
1483
+ },
1484
+ "step3": {
1485
+ "title": "Tap WalletConnect in Settings",
1486
+ "description": "Tap the Scan QR icon at the top right and confirm the prompt to connect."
1487
+ }
1488
+ }
1489
+ },
1490
+
1491
+ "ledger": {
1492
+ "desktop": {
1493
+ "step1": {
1494
+ "title": "Open the Ledger Live app",
1495
+ "description": "We recommend putting Ledger Live on your home screen for quicker access."
1496
+ },
1497
+ "step2": {
1498
+ "title": "Set up your Ledger",
1499
+ "description": "Set up a new Ledger or connect to an existing one."
1500
+ },
1501
+ "step3": {
1502
+ "title": "Connect",
1503
+ "description": "A connection prompt will appear for you to connect your wallet."
1504
+ }
1505
+ },
1506
+ "qr_code": {
1507
+ "step1": {
1508
+ "title": "Open the Ledger Live app",
1509
+ "description": "We recommend putting Ledger Live on your home screen for quicker access."
1510
+ },
1511
+ "step2": {
1512
+ "title": "Set up your Ledger",
1513
+ "description": "You can either sync with the desktop app or connect your Ledger."
1514
+ },
1515
+ "step3": {
1516
+ "title": "Scan the code",
1517
+ "description": "Tap WalletConnect then Switch to Scanner. After you scan, a connection prompt will appear for you to connect your wallet."
1518
+ }
1519
+ }
1520
+ },
1521
+
1522
+ "valora": {
1523
+ "qr_code": {
1524
+ "step1": {
1525
+ "title": "Open the Valora app",
1526
+ "description": "We recommend putting Valora on your home screen for quicker access."
1527
+ },
1528
+ "step2": {
1529
+ "title": "Create or import a wallet",
1530
+ "description": "Create a new wallet or import an existing one."
1531
+ },
1532
+ "step3": {
1533
+ "title": "Tap the scan button",
1534
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet."
1535
+ }
1536
+ }
1537
+ },
1538
+
1539
+ "gate": {
1540
+ "qr_code": {
1541
+ "step1": {
1542
+ "title": "Open the Gate app",
1543
+ "description": "We recommend putting Gate on your home screen for quicker access."
1544
+ },
1545
+ "step2": {
1546
+ "title": "Create or Import a Wallet",
1547
+ "description": "Create a new wallet or import an existing one."
1548
+ },
1549
+ "step3": {
1550
+ "title": "Tap the scan button",
1551
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet."
1552
+ }
1553
+ },
1554
+ "extension": {
1555
+ "step1": {
1556
+ "title": "Install the Gate extension",
1557
+ "description": "We recommend pinning Gate to your taskbar for easier access to your wallet."
1558
+ },
1559
+ "step2": {
1560
+ "title": "Create or Import a Wallet",
1561
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret recovery phrase with anyone."
1562
+ },
1563
+ "step3": {
1564
+ "title": "Refresh your browser",
1565
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
1566
+ }
1567
+ }
1568
+ },
1569
+
1570
+ "gemini": {
1571
+ "qr_code": {
1572
+ "step1": {
1573
+ "title": "Open keys.gemini.com",
1574
+ "description": "Visit keys.gemini.com on your mobile browser - no app download required."
1575
+ },
1576
+ "step2": {
1577
+ "title": "Create Your Wallet Instantly",
1578
+ "description": "Set up your smart wallet in seconds using your device's built-in authentication."
1579
+ },
1580
+ "step3": {
1581
+ "title": "Scan to Connect",
1582
+ "description": "Scan the QR code to instantly connect your wallet - it just works."
1583
+ }
1584
+ },
1585
+ "extension": {
1586
+ "step1": {
1587
+ "title": "Go to keys.gemini.com",
1588
+ "description": "No extensions or downloads needed - your wallet lives securely in the browser."
1589
+ },
1590
+ "step2": {
1591
+ "title": "One-Click Setup",
1592
+ "description": "Create your smart wallet instantly with passkey authentication - easier than any wallet out there."
1593
+ },
1594
+ "step3": {
1595
+ "title": "Connect and Go",
1596
+ "description": "Approve the connection and you're ready - the unopinionated wallet that just works."
1597
+ }
1598
+ }
1599
+ },
1600
+
1601
+ "xportal": {
1602
+ "qr_code": {
1603
+ "step1": {
1604
+ "description": "Put xPortal on your home screen for faster access to your wallet.",
1605
+ "title": "Open the xPortal app"
1606
+ },
1607
+ "step2": {
1608
+ "description": "Create a wallet or import an existing one.",
1609
+ "title": "Create or Import a Wallet"
1610
+ },
1611
+ "step3": {
1612
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
1613
+ "title": "Tap the Scan QR button"
1614
+ }
1615
+ }
1616
+ },
1617
+
1618
+ "mew": {
1619
+ "qr_code": {
1620
+ "step1": {
1621
+ "description": "We recommend putting MEW Wallet on your home screen for quicker access.",
1622
+ "title": "Open the MEW Wallet app"
1623
+ },
1624
+ "step2": {
1625
+ "description": "You can easily backup your wallet using the cloud backup feature.",
1626
+ "title": "Create or Import a Wallet"
1627
+ },
1628
+ "step3": {
1629
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
1630
+ "title": "Tap the scan button"
1631
+ }
1632
+ }
1633
+ },
1634
+
1635
+ "zilpay": {
1636
+ "qr_code": {
1637
+ "step1": {
1638
+ "title": "Open the ZilPay app",
1639
+ "description": "Add ZilPay to your home screen for faster access to your wallet."
1640
+ },
1641
+ "step2": {
1642
+ "title": "Create or Import a Wallet",
1643
+ "description": "Create a new wallet or import an existing one."
1644
+ },
1645
+ "step3": {
1646
+ "title": "Tap the scan button",
1647
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet."
1648
+ }
1649
+ }
1650
+ },
1651
+
1652
+ "nova": {
1653
+ "qr_code": {
1654
+ "step1": {
1655
+ "title": "Open the Nova Wallet app",
1656
+ "description": "Add Nova Wallet to your home screen for faster access to your wallet."
1657
+ },
1658
+ "step2": {
1659
+ "title": "Create or Import a Wallet",
1660
+ "description": "Create a new wallet or import an existing one."
1661
+ },
1662
+ "step3": {
1663
+ "title": "Tap the scan button",
1664
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet."
1665
+ }
1666
+ }
1667
+ }
1668
+ }
1669
+ }
1670
+ `;function HB(e,t){return Object.defineProperty(e,"__recipe__",{value:t,writable:!1}),e}var o3=HB;function i3(e){var{conditions:t}=e;if(!t)throw new Error("Styles have no conditions");function n(r){if(typeof r=="string"||typeof r=="number"||typeof r=="boolean"){if(!t.defaultCondition)throw new Error("No default condition");return{[t.defaultCondition]:r}}if(Array.isArray(r)){if(!("responsiveArray"in t))throw new Error("Responsive arrays are not supported");var i={};for(var a in t.responsiveArray)r[a]!=null&&(i[t.responsiveArray[a]]=r[a]);return i}return r}return o3(n,{importPath:"@vanilla-extract/sprinkles/createUtils",importName:"createNormalizeValueFn",args:[{conditions:e.conditions}]})}function VB(e){var{conditions:t}=e;if(!t)throw new Error("Styles have no conditions");var n=i3(e);function r(i,a){if(typeof i=="string"||typeof i=="number"||typeof i=="boolean"){if(!t.defaultCondition)throw new Error("No default condition");return a(i,t.defaultCondition)}var c=Array.isArray(i)?n(i):i,u={};for(var d in c)c[d]!=null&&(u[d]=a(c[d],d));return u}return o3(r,{importPath:"@vanilla-extract/sprinkles/createUtils",importName:"createMapValueFn",args:[{conditions:e.conditions}]})}function QB(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function GB(e){var t=QB(e,"string");return typeof t=="symbol"?t:String(t)}function KB(e,t,n){return t=GB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function bh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Dw(Object(n),!0).forEach(function(r){KB(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var YB=e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=Object.assign({},...n.map(d=>d.styles)),a=Object.keys(i),c=a.filter(d=>"mappings"in i[d]),u=d=>{var f=[],p={},g=bh({},d),m=!1;for(var y of c){var w=d[y];if(w!=null){var b=i[y];m=!0;for(var E of b.mappings)p[E]=w,g[E]==null&&delete g[E]}}var A=m?bh(bh({},p),g):d,j=function(){var I=A[S],P=i[S];try{if(P.mappings)return 1;if(typeof I=="string"||typeof I=="number")f.push(P.values[I].defaultClass);else if(Array.isArray(I))for(var _=0;_<I.length;_++){var T=I[_];if(T!=null){var M=P.responsiveArray[_];f.push(P.values[T].conditions[M])}}else for(var V in I){var Q=I[V];Q!=null&&f.push(P.values[Q].conditions[V])}}catch(Z){throw Z}};for(var S in A)j();return e(f.join(" "))};return Object.assign(u,{properties:new Set(a)})},JB=e=>e,ZB=function(){return YB(JB)(...arguments)};function s3(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=s3(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function a3(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=s3(e))&&(r&&(r+=" "),r+=t);return r}var XB="AEkVMQnvDV0B0wKWAQYBQgDpATQAoQDcAIUApwBsAOMAcACTAEUAigBRAHkAPgA/ACwANwAoAGIAHgAvACsAJQAXAC8AHAAhACIALwAVACsAEQAiAAsAGwARABgAFwA7ACoAKwAsADQAFgAtABIAHAAhAA4AHQAdABUAFgAZAA0ADgAXABAAGQAUABIEtAYQASIUOjfDBdMAsQCuPwFnAKUBA10jAK5/Ly8vLwE/pwUJ6/0HPwbkMQVXBVgAPSs5APa2EQbIwQuUCkEDyJ4zAsUKLwKOoQKG2D+Ob4kCxcsCg/IBH98JAPKtAUECLY0KP48A4wDiChUAF9S5yAwLPZ0EG3cA/QI5GL0P6wkGKekFBIFnDRsHLQCrAGmR76WcfwBbBpMjBukAGwA7DJMAWxVbqft7uycM2yDPCLspA7EUOwD3LWujAKF9GAAXBCXXFgEdALkZzQT6CSBMNwmXCYgeG1ZZTOODQgATAAwAFQAOa1QAIQAOAEfuFdg98zlYypXmLgoQHV9NWD3sABMADAAVAA5rIFxAlwDD6wAbADkMxQAbFVup+3EB224cHQVbBeIC0J8CxLAKTBykZRRzGm1M9QC7DWcC4QALLTSJF8mRAoF7ARMbAL0NZwLhAAstAUhQJZFMCgMt+wUyCddpF60B10MASSsSdwIxFiEC6ye5N2sAOeEB9SUAxw7LtQEbY4EAsQUABQCK00kFG8MfBxcAqCfRAaErLQObAGcBChk+7Td0BBgXAKoBxwIhANMrEnM681CwBZA6dyc1SAX6JwVZBVivuAVpO11CEjpYQZd7k2ZfofgLEwPFByXxdyMEo0sCU1MCdRurJwGPo6U1WwNFFwSDYQkA0QarPy8jBykCOV0AawFhH3EAgx0ZAJUBSbcAJ2kXAa/FAzctIUNTAW9ZBmUCZQDxSRcDKQEFAElBAKsAXQBzACu1Bgfz7xmNfwAJIQApALMbRwHRAdsHCzGXeIHoAAoAEQA0AD0AODN3edPAEF8QXAFNCUxsOhULAqwPpgvlERUM0SrL09gANKkH6wNTB+sDUwNTB+sH6wNTB+sDUwNTA1MDUxwK8BrTwBBfD0gEbQWOBYsE1giDJkkRgQcoCNJUDXQeHEcDRQD8IyVJHDuTMwslQkwMTQMH/DZCbKd9OANHMatU9ZCiA8syTzlsAR5xEqAAKg9zHDW1Tn56R3GgCktPrrV/SWJOZwK+Oqg/+AohCZNvu3dOBj0QFyehEPMMLwGxATcN6UvUBO0GNwTFH3kZFQ/JlZgIoS3ZDOkm3y6dgFYj8Sp/BelL8DzZC0lRZA9VC2EJ3zpfgUoDHQEJIocK2Q01CGkQ7wrFZw3hEUEHNQPRSZYAoQb9Cw0dMRWxJgxiqAsFOXMG9xryC4smqxMlevgFzxodBkkBJRr7AMsu44WsWi1cGE9bBf8LISPDFKRQHA0hQLN4RBoXBxElpQKNQ2xKg1EyHo8h8jw5DWIuD1F4B/E8ARlLC308mkanRQoRzj6JPUQiRUwoBDF7LCsnhwnLD4EMtXxuAVUJHQmtDG0TLRETN8EINQcVKZcgJxEIHUaRYJYE85sD7xPNAwcFOwk9Bw8DsRwpEyoVJQUJgSDTAu820S6vAotWfAETBccPIR/bEExH3A7lCJcCYQN/JecAKRUdABMilwg/XwBbj9RTAS7HCMNqaCNwA2MU410RbweNDlMHoxwvFbsc3XDEXgeGBCifqwlXAXEJlQFbBN8IBTVXjJwgPWdPi1QYlyBdQTtd+AItDGEVm0S5h3QChw9nEhcBMQFvBzUM/QJzEekRZxCRCOeGADWxM/Q6IQRLIX8gDQojA0tsygsjJvUM9GUBnxJeAwg0OXfqZ6dgsiAX+QcVMsFBXCHtC45PyQyYGr0YPlQqGeAHuwPvGu8n5kFTBfsDnw86STPqBLkLZQiHCTsARQ6fEwfTGGYKbYzMAS2HAbOVA1ONfwJriwYzBwcAYweDBXXhABkCowifAAEAywNTADUCqQeZABUAgT0BOQMjKwEd4QKLA48ILccBkSsB7yUEF78MEQDzM25GAsOtAoBmZp4F2VQCigJFMQFJIQQBSkNNA6tt3QDXAEcGD9tDARGnRscW3z8B22snAMMA9wABMQcBPQHJAe9pALMBWwstCZ6vsQFJ5SUAfwARZwHTAoUA2QAxAHvtAU8ASQVV9QXPAktFAQ0tFCdTXQG3AxsBLwEJAHUGx4mhxQMbBGkHzwIQFxXdAu8qB7EDItsTyULBAr3aUQAyEgo0CrUKtB9f81wvAi1uPUwACh+kPsM/SgVNO087VDtPO1Q7TztUO087VDtPO1QDk7veu94KaF9BYecMog3QRMQ6RRPXYE1gLhPELbMUvRXKJVIZORq4JwEl4FUFDwAtz2YsCCg0cRe4ADspZIM9Y4IeLApHHONTjVT0LRcArUueM6sNqBsRRDwFQ3XpYiYWCgoeAmR9AmI+V0mrVzccAqHzAmiUAmYFAp+AOBcHAmY3AmYiBGoEewN/DwN+jjkCOXMTOX46Hx8CbBkCMjI4BgJtwwJtquuGL2NBJwFjANoA3QBGAQeUDIkA+ge+AAmxAncrAnaeOwJ5Rz8CeLYZWNdFqkbTAnw7AnrEAn0FAnzsBVUFHEf8SHlfIAAnEUlUSlcRE0rIAtD9AtDISyMDiEsDh+JEwZEuAvKdXP8DA6pLykwpIctNSE2rAos7AorUvRcDGT9jAbMCjjMCjlg8k30CjtUCjlh0UbBTMQZS0FSBApP3ApMIAOUAGFUaVatVzAIsFymRgjLdeGJFNzUCl5sC765YHaQAVSEClosClniYAKVZqFoFfUkANwKWsQKWSlxAXM0CmccCmWBcxl0DFQKclzm+OpkCnBICn5cCnrSGABkLLSYLAp3tAp6OALE5YTBh6wKezwKgagGlAp6bGwKeSqFjxGQjIScCJ6sCJnoCoPcCoEgCotkCocACpisCpcoCp/sAeQKn7mh4aK3/RWoYas0CrN8CrKoCrWMCrP4CVxkCVdgCsd3TAx9KbJMCsrkJArLkE2zcbV9tRFsDJckCtlg3O26MAylBArhaArlDEQK5JnNwMnDdAr0VArvWcJIDMg0CvoRx/gMzbQK+FnMec0sCw8cCwwBzfnRHMUF03AM8owM8lgM9uwLFeALGQwLGDIUCyGVNAshAAslLAskqAmSZAt3OeHVdeKp5IUvMAxifZv4CYfAZ75Ugewdejl63DQLPZwLPaCtHT87vD5sAwqkCz28BJeYDTg5+RwEC3CMC24YC0ksDUlgDU1sA/QNViICFO8cS6VxBghiCz4LKg4kC2sMC2dqEDIRFpzgDhqEAKwNkCoZtVfUAUQLfYQLetG9zAuIr7RAB8ywjAfSXAfLOgwLr7wLpbHUC6vUC6uAA9UMBtQLuhQLrmJamlv8C7jsDhdyYdXDccZ0C8v8AZQOOEpmPAvcPA5FqA5KDAveUAvnVAvhimhiap7czmxoDnX8C/vYBFwA1nxifrwMFiQOmZgOm1QDNwQMGZqGEogEFAwxFAQsBGwdpBl21YwEAtwRnuw2HHq8JABNxNQAfAy8SSQOFewFfIx0AjOsAHQDmnwObjQizBhufwQCnBRG76R09PhZ4BWg3PkArQiFCtF9xEV+8AJbFBTIAkEwZm7k7JmAyEbrPDi8YxhiJyfYFVwVYBVcFWAVjBVgFVwVYBVcFWAVXBVgFVwVYRhUI14VnAgICCmRe6SsEyQOxBi+7uwC7BKe7AOdAKRayBUY+aT5wQj9Ctl91N1/oAFgRM6sAjP7Ma8v8pudGej0mIwQrFic2NX5t32rB8RnCLGkBa9duMBcFXwVqycHJuAjPSVsAAAAKfF59i74AMz+BAAMW0QblrSMFAIzDCwMBDQDlZR09JB9KQrFCvEE4I18nYDYnOCMJwT0KRD9DPng+gT5wPnECiUK8SUI7X8tOT2pNCixrVC9qC24fX+AzOhsJZ5sKYiMrPB0mQqtCvCvMAcv8X8kOHy4JCAkifp3fajotShfJq8msCWXBy8wKYEFfD+UQoxEAk40dRUIlG6ltOc44CjM/Qz5wQj8cBwodTEdsWywtWuG8Egp97R0rQj8cXQhKCQ4zVENCNwQ7Q5wsCoEbLUI/G/UIUyIjGDAxAAWPYfBeCnFkyWALYC0jbkNgGTkCGx5gswYCaxBlTmBNEQFk52AVYJVgfWCzYEtgkWgWFwa1DtxVqbxaC0MWqwG7K83BAh8VABwDHgF5AmwvMJVSgAGKCrhHGgDkI3SOCsoNpk3qAZsCh5xPBUBfAPf3BwA0FlcMC6UMJB+6r0eAgQw0ABUTnyuCCHoC0gtLZREbANhOBnUECh5aADEAtritAJQnCxZvqyQ4nxkBWwGGCfwD2e0PBqoGSga5AB3LValaCbthE4kLLT8OuwG7ASICR1ooKCggHh8hLBImBiEMjQBUAm5XkEmVAW4fD3FHAdN1D85RIBmpsE3qBxEFTF8A9/cHAHoGJGwKKwulODAtx69WDQsAX7wLAGNAlQh6AOpN7yIbvwAxALa4rQCUJy07Ds4CkBh7ULtYyHRyjsOlmw/ZFUkb7AEpEFwSBh/lAccJOhCTBQ8rDDYLABEAs+AiAQIApADhAJiCCrJrOS8AFABbG8YubHYqDcEQAjskHNPhHB4LG30CewTBCqrxbAAnLQ6mLs6hHAe7CQAQOg+7GkcczaF3HgE9Kl8cLs4RGQB9q9ocAuugCAHCAULz5B9lAb4Jtwz6CDwKPgAFwAs9AksNuwi8DTwKvAk8DrsFmAEbawouzqEqD4sa4QHDAREWOwCgCzsLuxC7BBiqe9wAO2sMPAACpgm8BRvQ9QUBvgH6bsoGewG7D00RErwBAQDqAQAAdBVbBhbLFPxvF7sYOxjbL7ZtvgNIqLsAB7sALrsC6w5WAAq7BAAeuwJVICp/FTwVuwG+J+QAsloBvSjgo7vIAAFbAAG7AAJbAALjAAg7AA67AgAbu6VbDr/EAPQAaPuoOwMBu5UnSwDn3Rm7CBp7CKEFCv9wAN+7p7sau6OLeXIG+6mbgwASuwYbCwG8AACGAG27BgALu6c7ARo7ugihnMoBuwvtB8CpOwDhewG/AADlABW7AAb7AAm7AGmLABq7GLuOaRX7AA5rAC5LHgAGuwAXuwghAA1KAcIAt68mAcAAALQADpsAHBsBv/7hCqEABcYLFRXbAAebAEK7AQIAabsAC3sAHbsACLsJoQAFygBunxnVAJEIIQAFygABOwAH2wAdmwghAAaaAAl7ABsrAG0bAOa7gAAIWwAUuwkhAAbKAOOLAAk7C6EOxPtfAAc7AG6cQEgARwADOwAJrQM3AAcbABl7Abv/Aab7AAobAAo7AAn7p+sGuwAJGwADCwAQOwAIPAAUOwARawAPiwAN6wANuwAZCwYWGwAVOwBumxm7ALobLgATOwMAaSsKAOFLAAI7AARSABd7BRsABtAAGLsAC/sAX7sAa/sA5IsBuwAXdgG8AAFyC6EABUoAbXYAB/sA5XsAHGseAXsoUgA5RQD+Bw0McgAoKnABpAUIXgG8XiMMCQdvS2xfKokfPBRiLTYDoQq0AdgAFgLRA24BdnJHUhQhA08CFT4BLAYDc0a8e1J6QAApADEB+wBTCtsAe5AsASsAduUNETJGAUoAVwUAAVABB4rMAHg7BCClAFoA1hUAlWg3H4sAzWuxAM/UFgjCdXMbGFYdCdEBiJCrIlNTTUgSPMKJ+QB/HDdAKSvgEZdPAHIBKSwwKUIZDwMwVQT3xe4AS2XcAGoCcQI/EXo6x3guNdUGBQAQGx0KCAwqBB8dKU5TTgi5ugAKEs0AJgABGgCGAIkAjjUA7gC0AOAAnTwAuwCrAKYAoQDyAJ8A0wCcAOsBDAEHAMAAeQBaAMsAzQEHANcA6wCIAKIBNQDjANgA1QMBByoz1NTU1LbA3M3QzkMyFwFNAVcvRwFVAWQBYwFWAUdLQ0VoDQFOFQcIAzI2DAcAIg0kJiksODo6PT09Pj8OQB5RUVFRU1NSUylUVVdWVhxdYWFgYmEjZmhwb3JycnJycnR0dHR0dHR0dHR0dnZ3dnVbAEDsAEUAlgB0AC4AYvIAigBTAFMAMwJz6QCH//LyAGAAj+wAmwBLAF4AYPn5qgCBAIEAZQBSAK0AHgCyAH8CPAI/APgA4wD6APoA5AD7AOUA5QDkAOIAKQJ3AU0BPAE6AVABOgE6AToBNQE0ATQBNAEYAVQPACsIAABNFwoWAxUWDgCKAJIAogBLAGQYAi0AcABpAJEDEgMkKgMeQT5HKQCLAksAwwJTAqAAugKSApICkgKSApICkgKHApICkgKSApICkgKSApECkQKUApwCkwKSApICkAKQApACkAKOApECcQHQApMCmwKSApICkRZ5CwD6BQOnAl0CNhcBUBA1At4RCisTAUo3E02RAXekPAFlWQD/Az1HAQAAkykeGI9qAClgAGkALgCJA5TMi/CuhFoFuisOwhEBndV0KgsEIzFsATNabAGyAN5+gH9+gH6BgoJ+g4aEfoWIhoCHgoiCiX6Kfot+jIqNfo5+j4KQfpF+kn6TfpSDlYiWgpd+2gLabOEC2GwAgmwkbKAAg2xsBEkERgRIBEsESQRPBEwERwRNBE8ETgRKBEwETwCWZmwAowOIbAC0ZgEFbADJUWxsAM9sAgxsAPZabAD2ARkA9gD0APQA9QD0A31ebNSEI2XAAPYA9AD0APUA9BxsbACJWmwA9gCJARkA9gCJAL4A6AAIAPYAiQN9XmzUhCNlwBxsAPdabAEZAPYA9gD0APQA9QD0APcA9AD0APUA9AN9XmzUhCNlwBxsbACJWmwBGQD2AIkA9gCJAu0A9gCJAL4CNwD3AIkDfV5s1IQjZcAcbAJDATZsAkoBOWwCS8FsbAJXbGwDnwLtA58DnwOgA6ADoAOg1IQjZcAGA31ebBxsbACJWmwBGQOfAIkDnwCJAu0DnwCJAL4CNwOfAInUhCNlwAYDfV5sHGwEPmwAiQQ/AIkGjTFtIDFs1m4DKGwDrAJsbABVWv4VMgJsbACJAmwAVAEAul5sAmxebGwAiV5sAmxebD3YAEls1gJsbEbCxxP/x5BApA0KYFA89AsjTx97EHmJQPyocItC2JnNFRCEnFU6SFTDoI0PxeRNRoNRWkpzVnWW8pTagkNmgf+jGupqZ3eu50LAFnc+OzfJwdub1AdpOy76VnijWNR/CMEevikQkFyQuLuPajxWi9chqOoMJ7qpCN4sx3LJG4Myu8kD68wC6+iAwt+pU1JEeY13rpCVkXSZfinVKn4xZpxsI3Lp8bJLrJ9ujkrIalMRBAcv/GSKEtowzcEn5XmJw2BagB8V2UWJoJHZ14SXhM7p0XeGFOuw6mlvyq99WYp5XxrO6ru9nn4RHcOkJ7hx5UqWtman7yVMLzYXQefQRUdIY70RYQE8+aAzCNSGQkXiHfnHYRMi+xczKDdZLk3AV1gzxkkSHLjBwuq8shIJ+/RAbqjqQbugFhe0rqklu432EERkM5k9y1DXzds46oLqKAx6OhPT2WiqEfhaITn7OF9Y694AmKmUvbpWp0xJqDaf3jeNJXnK6NpnGcFOmbclbARC+5+5U52ufw5b0Hh+2LrrNimvZe4eYmApRsZnJE310SqB+1xB6rSJfnV1f2D0awB18Oc0sXAFqIlgHgWiaZGdvP5CJUSsCTCQUC335+iSkwPlLJJ5lwjTSn9Lw22NbK1Tu8w+bUpHtDRDPho7Gun8aw2Jzu9i+N0Ot/kPMbLAb/rUQ82kfpk85qLDkfxLl39QPDngo72GYh/Xigbpcm1pA23D2ywt3D8GgMOao040wDqkHxOEx0OhC+ZmHiIdjK7yRbfJD2ouZbAedhD3p7s8WDmCJfNforgDYPGAXSI08fTjPZ5B37lc5VXGzc1vJmibDwBNVzXuaUzg7N5H4BxqjhJ+kz9HLUJys7bpBDYAPvbut13AwJCWd059tS8YTYgC8HwrkewBfa1LSSpmMr9uR2EekTiAMH+Mx4AGzgbquccwBDlLmRhgXL/YiLPCEb6d2k5qJ6o800qddABkpqt7NG+sc2uvHZwZs57W1AHTFM1KkMShasADAh2FvzbzJOzVDMS3ZlT2BSFKdnkZFB6JyqJbhm6XANis9TrtzJdlPVp+rl8v3nIke6Jou7m2TKu53Vounupgkz2LzrQPhhatLIG7rfF/gUKWp15X3LKt+ZvuCDSqPUigF9yJntimC1HJR7Yj/dUrLAXWrT+1tnwPJJLGKAlQ5VeNDWRKCTt2vz3rJuo4+gIt75/Mkfl/gSZblZ9r/SEeeosZXneli/xNh1WVCvkRt2RnyyjtMkMqhzXh1PVOCbILqv0r7rGYm0CHIyKdhHL90cl9E1I6eEtQTCt6RXj8M0HHrHCHLVRpNM6WIbT5BCMGVnL0o5895qSRbCJz+5I8PGMhAN/Xrj4BgIdlKqlHtBHqTJwmK169toZ2IWxNzrAbIG7zh85Q/LG2A4yBcaBel52zdunokB0lv3A7kXnTI7M6ZnfZ7nwuj5lkGhqSpW+w5CI/FmRlplBEbnZy1ZxS3DL8rf1YWhO5XivWZBSRh1gFsjjyj3qRG1cm/6ors7WsEif6WRxns1MKDZa6KrbfMQ/swIb+2nb0tqxHeii6FcgVeAjE/Xwac1owx04dJKG8R5YQgHNnEfHf0qb8WOnU0eQSjazq+IK7cSuCqYzPEUB/x+QgGZqM3dBoYvNvZVOHDkbgdilWdagqO5bkybXfLpyMPuGq8mvAAEZGbR6RwXGlW9ErOWTfnjfx6dXFJqBj0OBSGFz4lWQasNOmVJeN4SFWSLfOGB/7ehV5YuoNNROHZEG9ElVuMnqbDMMuDleOt/cN/gsWxGw128mwU8/HxkOKqdTZnI7dHka67WCTf/FmBrxpNCaKJ1GxBTCSS7MNfhNj8S4Gtotg6Z3AM9cAeVROnppUMaiV5jjudLnNqoVrKO1/FijLlAc74kxydxKX1RQuMqHR63eecYr5o6MJ+B78VsLlCrpelWh6GOrCOBIoQmIcdpJL1pwE2zzZqBkecGTdK8KMOB6r1eNRURyrz6M899TZaoS/vNOxHf+5gORU+OyYIcIW6diP25GHF6u8TNjuL/GJzCnLLXd01KrsjRa51v4+O/VIAWXESJxfxWjv628J+cWUQpoD+Yytzs3jSMRJ23/XT+vUdtUMLDQq1vnIoeg/GjWh88MT6k9dRqDaQ+vodilFgvjuNw5pJpId9mfwyYeLCGb3BmHXdfQfhfPRQaupe/f8TG4Bk3eDKlYBaEK3kZYNN2Sdxz47m/vYBxvIOKtnqplB1pebzuXmAr/MuzQCknKe653dzaWQQ7MUhWYWvzIZwLe1v0rXxImLaz+AkAu+sYikhouNF3EW6w4crZ6MuUiDbIAx8XhAfegcvW6x9BPb3/sCxGWu9YyatqExB+TSm69qIkI9IwhjrcnzME+jWBx4mNQm5WwLzUjSyY4FZ0aMF5YFlXUD4hL4XfOeYv5rDe2s2D/Cn+28fZ9UCnOQvXFMnQqfc0G+ZqOWWD9l/liqUPaNQzZjxCHpUAD8Rcc90MniQ02ugHWsUupFUvhC9usY7zNPt5F2jO7qgzhafsQSd50jgLrC6Qx6bpHbXR3WNAu1BzGmwbz+ebGmwTjdy006Y6zipP7n/OJlvSmbq+SY+nefAVKK6EBMPbce5n3IdRI8+vbxCpN53rw3TvgNds1SuMiuLGxt89L71mxPDeanGhyHvOjmO56tnVpoHalQnL6TqNuqKsHjHCIKB4pCgj4WyYPvRvYvqi5EMr7lN3MotPR/KH7JUD1lZbU0QzfbrEBJnuQiVAyAC9vwXWp2TRU1/0aapyAH2cbglEHVAdl+1rb1u147uV0td1eNoQZsqHrIMIYVPXtLk2TIU3cJE08PjoYNDpfF/IcJnYQHl6nsplczX3Rgah4NbJJHl//5scUufqsSd//kbIS406ZWoMP//+jhGUswX/5nVNz/jAj9KmXPtAmMiK+khhbn1w/mELzZMT/WxcW//y/jsHaOM/61oAW/CjYhJtY622/TtMYuP7bilBvbiT3vB9n8IcFPnwM78H0KfhYDRdY5PhWJ4jWRQzB+HT5NVZV56LG82hcQms+jOTT/c9Y9sx5rPi1/wB7f/+c5UfUCKk3iwwCuywUc2MGnAwsXf1E5hoI55x1Q/Qby+sWH8NRjavZ8VaDsdi1NUVhH86BJHX1yaFt1w1OYeL5LVmdN+5Q+KuTvXEPDzUCg6xp0HhsUhTWSe7MZMM/6rsTUb0/nbUE3YQlGGt48kT1/6cnf6yHnvHtQx9EosOXN077yyEq/jE3YTiG/5SEJmXFeocJJ1EAd6vKeK6VEdJLOZ1km/EwOnZWCQpzCLKPHxrfh4yJhGq//2dos2E/3+MOcdW5EsgIdmTQUQetzRy5fQHhDBl37XbWzsqO/cASEDjyst1/8NEROqVAxWnddQV+umJ8IrKVgKvGaTc0GsQ4s8h0Osql5QKwlddPDjJhKInyWqYUKmmlIts+FIcXZ6yM6cljbsjUG2ksSOkuIw4sYHffRNgBOLApvD6XrR6Rt0rV2Uf8IpnIUVnb9Twt91QjAaD/dStSWDxg7aYY+VXIgnuowYdOkjywa2hlgrnI6PjaU3e3UjQ5Yk5mdIJGyHnv3/P+1EkMav1yFyF+FeJE/RXnWBw+Nh0aOo6TGlKX7d+dkP9+brvr79SdtXJtcD/aXBGiMNfG6/NQniQHYQlK78FEHDqOh+bDI0o+2Ub0h53EL/vlzjrBczVEZz2bOtvIL+DIzDkk9nCWt7tlqsq3l9JMtJk3r5HG2iJ9b/X11TG6wwMAjHLQ2oasaMEsydh88QPvI+hmqIHhvalpKoKOueJR0eZ9J8G2alNOIOy98jwvbc87Ewk9d+5G/tUijTmlbjFlDKXV05HalKxaRTrucc73On7yzAPS6f2v4ogiaWyWeV73dv/MsQT5HjRrsYV9dLAcI3T+zC2qEVINyNpEhoKV+xVSuWtT4AhBfpnZ7unIM+HX3msI0HiI+P+z2PFgkjGi5PqEbG/wNIWeRUjPtDEgbbubN+I4JaDLrW9borRBDob7ZFx+JdKeFVUKVeWqb/c88Ol7DhM0suLtuEd8tkDSMTD3DFx8UphPINHMHi51hAPttXL4Ektt/lKEUG/R4qZKohHjVpAcPIMiHyWr6xR8/EWnNJvBFET76yCdk5er7ADB/1bgoImhpSiZ/omZjPKPCEeZsOwvPmXL+1vlJNeGO3TzySmGA1X6e58gLrazDM71jywM1XL8zKHN6G3kB31Y8vLtP982N975SZXk2JwDvmv7AY/aDsFFk1v+nE7/hbvuOWhBH4kuemeYozPk2K22Vx/YGiDTLU7YilpOt29u3RZMBh4UJjlTP5ItxTzWv6ebL9b+GSU1Vsm2S8LMfVfJczaBSqE8J1A4YUjpsALL7++bwCPXFhaufdpDFtBlHb9makeYbqdg9ltvK/HwF/rNE6KrtWUkEcxmTB7Iyu5TiVaIgW/YxzQhpArliIMkOoK5L7ShVtF+DYqV01mk7fwop04hQRwg4KFmr5z9nYf05VVqkSe7gfnx5bxxlQ0qEV0jiwzf064qG11iEqjHcUgDWWsDs/LEGlzX31T5KVL+7D4EoKim7HBagiqRo5JI3WfDBgpKIruWz9j/J6Hp5Q/EJbMWB8NeSMuFarNw3AEYPBJtYQO/4oD/ZgPTSQ06di0EeumX5EbrdThO+fvYEVSxLtZ3AJkee0Xn0sDwNtiiZhJjJRDuG1YRKB1vOulfd9JjHeyu+UHTmrtra/pm+8Rixh4WKiLaLOCxIbZNoWRZSyyUGLPjAaAo+SQBpfO2uruWrzFxLlpvrXJNMCWtlJDKGAnlWK5xpU2tcxXbeD+sbdfwYXt/qTwDk6UqXR/aUt099DhSNl4Nk8mXwpw+b0nvjKOG6Mg1PRXjrMUMANvNgEArv8nMJs3vj1aHi8MHz/UfJWWzkcrSpZTNBhduXlGR7i+ip/THDp5R9KRNcDKECgtwgXg4EFN5HHfikP/XvsoCkHTg+NbsD8Gl6eknk4Arwn/BWGJ0hgW0/gUKrzuGZhub7igRP3abetpIm+24xEOlWl3YKpm2qTBFvX8ddDRvm1LcwnCJuEfZx12qPY9TrntMIQsv316zvpyWnyStX8VU4j6tQk+CWlLBUCJR6MdH9Cp7g2qdn2WM9qFbREmejH09dlWEPm8hPF0L7RxwRRdiCs0DP8ewk6ApoELkKU9hckSdbnXm8UHJmaNXjxv/q0fTTpu8rnl9lN0vQCpDRbCtcz12rGRFEA7Cfg7FhZn5QFkNmv1ZURKEsiZce1nS9K7HrwpC7yJV4Xt3eAVbLJfoXHrtwG60Z8gwaSnmxoL3s2ZlRqggZN/MHo1oUS4L+GwObFI596Ld4Mvi8l+cQmF1gJpkpnDio7TuO35npaMHiWzFqPSX3qNgkIPGuX0qGYnPIVsM901Yu8oZnOZOY1TbtIdFUNKNq2dP8SJ4F/VCEzIjF0/Rh+7UrZj80tC6rognVH3mqa8eCs/lcQU1Pjj98kBmAKDbZUTwosv02UunRR3n0X6c+f73mtwB7/WbQ16gO431EtwZbNG1SM4TZPBnsQSESlsfG2JLQXx5xWf4bmQ/xcVCPISAX5897JxHKLD/Xkgu57+ABR2+MMtEbX64+MNlBHpKC7sjlWVEShf5qA+dGc59LFVlZrX/Enq9z/v+wnZ1HErmxmjJjxOA+hAjVUWgtq6ygAi/8ewJDjUMFw3zhQFtbyTLDPFd21Ji5S5QPZo9nMSxdg1+DGFSN0wlWt7XeYPbHqLfliV0J1kOhQNp0VbUPy0MS2Ms66OxtSWvaULaWHnfAA+sieVVgtjDwN3nKonWapkSKRN8BKKJQpCfqo8RQI5udhfu5s5+7vwsppmAJDgz2GNA7d43VdbV2l/SrvEu4RYslmNJmfSOVbssxAhSYy6WxpIQdDB0FVBpZ6IM8yr81QN+XLZ3n/wed/R+s6LslkxKbzzst/GkRbe6rFmtvJCwr1T44ETM+IMgOnjUO0eG6a1n2w7lwM1oFBvzMUWRkNFOvKcx3oSb5XdenZ5dXsute6nkRypBiSdAtA2fxAd8UdLOZW/MB7fZoEuFheQXijdaF8kuaRZoSeWdKOkKsGYEGaXfaDKTu0WMTcLniQs7KRCz9iK3SP+Y2xIjkfVGqFLSQ6vh+A1u6FdfwXsv1VPMfi2cxmdM+/xTgMXEyo2ZGcQ2YmPsghnYdv2+z48JpGZA4tUK1p1q2VdVxyfypXEXcrxKKtmt8UdW7sHWmKMqDuBBM3J/JUQx8eUYN4pJ5oRqvdiPHU1o/WPjiKvnlCqOdyxlxF54L9PrtLD1NejZ9aZDivVr6ZfMFK1/psVygoPIAnphcJWWb9+5IKMKmgRQULsTPZi6Bw4wP32zVEoKcHpP73CkFAqS98nSaGoWDjDJiaACJn4p5o1jq9R4Q4VcibhXF//LHP0bdf63kRVZdRbbhGe7sDQcyWS5tpkfeYHnff25WK+4FpzLlAcbaKmHdIBqOw3fImx1uqQIADH0TyHzFlqTG6nMoY81svP0T6BIyELMS8tMe+E1p6TFP6sVpZa6VNaTumufD5aj9goRa9SAmdJT4HhI2r0egj8UrgFb8L59wGLnYlzkLAiUd3m/WWIIEU61kPoEjd3gIVy/fiBcgqQqHnoXpL0SqLGdGGgn7DQeVMSYWHfjno1FngIKP9cjYaTlcRP6bZunjHP13/lbVm4awti894pTf/ZNNqr4OR+tDVie/m+rC8QpVnRbsCMPukOH87B2jM4AG6pHuXl1x9SiKdhYJVOhfo/+SCaGjUW2CoogL1FFhFGN9o+acoVLl0SXs/3vrSccmZeAF3NewFuOg/P12QYKQF+SH+KYcNnsAhIAELPBUgre/KRUJEA+KPD0MHRjv+3J/j2Z23MuJmkfy7leWcMsti8wXLSHgXFJTaksx1Woi6oljwxFVIJG12SBSZLNJDbXMYPekmiXT4FclKI35BFgqnYpKfcsr+f8HUXQoHJ9UYZ4J5YMiHHyAxg6eidhodgqJ2Htf/xYEx+G0zXchuzlt8hcAl+AT8NCQ4orFc4DerabF1enA7NTLnvtZh3FUwqIOvY7Q4DYmoDHwXTSw5UNNh6r7j0B/ezMYJMDcw4+6gCTZX4YQ+7Xs8de72vsR3cmfpxIX64/6KR1p3VX4F6vfHEzxzarh8aDH4G1DFoBBM6npXFpK+Rh+WrcFclAeAxi0PoaR9CpOxxGLSdvxKVSw8oOOanG/soKImRopN38AdcUhhM2GT/PgQeSQrG12njuJJD5Z7vWfAZmFybYLdSA91kB4aoBhoj1Z//KNIVVujqaLLRwCkbyn4vh0739C9V9iSjybeOIeSOvNs7LW1a7EUtNoKAnOGML4U8KBXpfrw73WjAszJG4Qscq+Xr3kZWR4Omm0xT6qE9y6FNSpstV4onMZSqCEJ+3VX9qjvdx5QVrM0WXxmPZxejdfnihcFAjzv5PjlTl6ickDbHe6+Lch52pjOPqk+m3RZ+bh2JSMGtFBuODbMchrpRVlt16NTQ05Ps0IDtWlUmWfP2vX8M4YDynIuOZ4Ck91+591B98Gw9fw+yQogTR8CSg0zaJu+rlBo/mr3A+1NziF+kdubz+whc857AZt6DwIBIF5+5yiaaf3ByQp1Fm3sOkZDAzwsYSQTM/Kv6idkugF63FDobDdUY3huruU+sCaBuRR+HmOowvmZoBjZHNh77SXFtmY/oOUE7ifN7nBHAo83S/xvcS6H4Ci2u/9Id62Wv6Ui+zMNLAzhfkTkVcW2BwrnYvpur0ZDlzs+ZLsmGTWvd1892t78gx1YjEJusGcxphjLkV0UfAKlekfSBVWHE2ahk4AbbRmHyL7GYdtKfdlINwrcdJuf3Cee1nfUojDQn/YmItESOFhtLzrkEv4k2XpMU9oaJQ3VUC+1INh6BE68pkHameGJm4Gvdb24Q0fXWxd9Tp3A9mzFSe4qXDGGDIV4AAGV1jIDfveknH1TwWpUT6HiQxKP3AAHJNkJeRlj/mXBmS4S1j8FK6YmpK7jyyAiRbsMCCLoJcx01fvgpMvKQRxu9IOwymconQjD56g7ksOrcOeoTbius4JnGesAS1DtgdaophYsw1wGIsMS3P7K6doE3K5czznqPQLSRRF/Ylzb5NtSKsL33SgskFNCF4khn5LWaDxI23ZRi2hzqN8uW8UzZEBYy68+VtGLSymQrXGUlr2nO2BbBIT5Vh1RmGAyDXaW0FPrpx3wv2UYdFk9tSl+906bMxCuXQaKDQP/U19UEcVGK4gmksL8lAorxQSAOwpeYX9xrZsh6yoGaL/X5O3tgQC8OM+/GvxnW9XvAtu/JxAigydfSmZfqZfg1XOcHNOpLlN8j64OZ36l5qawDBJ62YaTvxeNmm5gowCdBosgcpHOgNgwA+sknN8XmsR2IYChcafl9bGNMZ/nB5guWuvEziv6QI2bP2DtyKWG/qUjZMaxy+wASkkVGtuwGtywkTYG6MYrZBo18vYcww48G/+f+eITA/qMwbLlJC0S3+/ai2pPvkOhRRVmGTuSupaxhIk0xoXLtixCxSAn4Z3OnUS3wBqVscLI4P3GP7i/6gxYsswsVmkvDXFLhO/OKcur8flegCSKiqmVpIRvCzgbjEA0mXPn+RExXY/2OE1f/BYuWpRQY8gCDpMOYBx9Gn4tL3hihSIR1ixh2PIIT7cr2gUJbfs76EKYG52Jk0UZF/PQkBxGuFCEWXnG6ue/hTIqjTRq1sotVrKrwIGHDrITyuanUzbIYdgdEeV88K1VD82TYB2B61Ft+tB1KqHPmT9+hWoaV+iF3SuvtJqvnoLaA8wxrD56AUMULEgzO9SvBcBAfqz/dzMYzwMt/YLszDbmGe1bcHHfFMcvGql9bf/tp+Hrj4q18aNnftGjmXTfws39emn7/5IBxog9MrmftAA5Oq4awenm8HimWO72dwVlHcHmutVMdrMHw+p2vzpzT+B0iIZ+IEpplwWhClcXlxhxAsF3CHRnnaUEqq3ByQ+cqhe5SvR4SFxh/LZoQwtj8QZQGT1BzY2EMpYnUcZWQEPlwFZw+7UryK9qV8KgruYsvyMoK16KI2sN4SOblrVwhyiL8+IBZ8cpUhsJQSU7TFHAi+L2F0sn0y+FtDODlnuif2Mba8QddPZYYxjTsIgkMe3M6+7kXxUfZvbCUlyq71J1eNczGk6Vqw6rSx2K3vM+DjLxDRGzWepTO2qTT/W8S7u0QXcyFUahcB4vq8xCYTpy8iswtnyz7Kx6lgTEQJ9RqkgEIN6DOUqB0uRdeYuDa7AP7Zy9z+ZlTsmVR5vtV71m3dmdtNeWghbr5PnPJtjXAzcvZjxyV96VEx/B1TA0IEQSI50ywGuIbmAYdQg/l/rxhQLX+6uOLyFsaUt6mtjpAJkLfehnB6MlOHnNOrWLvCBqVBS07jcM+4RzLEed3f3/0Xwp92U+nataNHyEgnnuYR6PXEjRLETz0xrt3UglfK7Bn4aNlXG7cZco4lMziLv5+Mh2JCww3mz69Z9ZMRR/xv5EKJ38IFxKd9dw5CgPIXja/gzAshMbF14/qBIgNkdUQeP8YE7SrICGtiTnAKTyA9cXa3OauDHxZOdTP7yuYBzD1UcHstIO16FxF1bRUAlSkszI83YufTchU8OPnnozDl9bS0y6CnnjGwgj9M61cXcZsljjhLeT/Vq+30ScN2PcT/dOoxUDqDS38+OpCCzLDdnwHQc3ECQVIkaxmdPaZTSdfp2jjGzSdNLM5yPQsgJDl+ZnhclDQi8ltUnkqWJ323IvTZPN8rn0+EshL1cx9PiaLTzUsryn9Zp2Nt/detUAh4N/2I3dlMQqjHFxSihv0uykzflq5clMy2ZBaxoEb0/QMp03IQQus3vnZd/NOmSsmgqXqKFP3ozyDgY7RQS+npabe/hNG+5sa5FtvL8v0uYuag2NewYkcol3TOTadpuncCnDgOGpmLnTQ1PEPUN2cNsrW8LYfIv+hzfb7vod+ipXHzmbgj5Fzc6RcT/5PD7VQ8nTJBNj1urkVUx9uJvTWmqY08OC80rGDLaWXv243VB16gjt4Xtwp5H2UDR0LiKW24Ed/sOO8jl1yEU/XAb3h7ScKnCFy/V3sICrkY1D0K9fSokHIL0s5/7DLShLAPXRbV7fbv4qj6OwHC9d5PlEOX3LRpQ3P7hcSAKlIKPDM83ypz56U5+rJeo0cyUtC7wltL8wqEiNSgZsDWzACc7RFoZqhlD0+sihIBQlkQTXmvUyIOZhkQX2zqME5VRC7ms1sa3CY+odMn3mMBiTvCMKnnCxg5ZPLq4GUDB4jF8Br2K4x4sxfWjGXQatJ25I1JyrIv2Z4bP1jKw5C+B2/s0v4dGUOsaS6IPIQV3ETQ+F2fSl2BPBXHzyYN8VmwWIrKeMX9pyGWuAOVXwkxJsRBaBVzLhZDP8ONGncknL5DpTxHN32GgFWMwsc0GmL0oRDmRT8u2lvjAKUIi0MmXhIHSlFeh3Qh5pP6ap4YUd6b569ZIaHgya2AyD12cPxY0In/PBjzDctTaKJCU+xc6m9RkNLDEE8guvxtJP8sl8N9bLqw0F/qejaBlcHYqw31zYpsutQp07hsP1vhGdl4hJ1wA7OCsAHnKj9879uSHILEmuZ6vI1lT4tvnWCVKZhhYrWHW9oPKPKpbOC6FTjf/OtUvwmiXr2ykvyLzHGQeyS7BenZpL3N/CaF5T7Gkml7JXN5cj0PKaDpZVImD61FuMgFHPqSHvt4Ej4KBdAfdcoO3AjQPLwwtKsgGM+ty4lNZMBEItJSRLunG5ckrM/BeoXWoPZVvEoIzLgFQYPupMwZCXis4W2SCJ2zsefZqCj+aTfSq1FYdUj2UeJALvVTf7vuuikOE1Hit3UIAGUi/sqgMum9vw218y1FlY/9XnOji9nqhGAcMYICc7BiqLZj5N+cKEuSAuiyWbMg81ZD1lHovy/we2eaCcCv4MzEW3O0mVA/t2xdA0cxTVbXmFhn+tARDpvDz5ftLr15OAAmvo2QiAky+feVO4bGibv2nlBmBzqx0lEDfEm4UnEs11pbnwZlJ/0Y73/wBPYfTNZiJKR73TzdCW1BffiJq9bLjQmaKnU0+gN8sfe25IKSUCooQwxePDrFn3a/zUgWxvPoTYVXfobY/GV2qqTkeVDV9D8657fhY0/wiaJ5NfLxhXbE/naxs34N0hd6vxNfdm1TCnozm/NKSCThchoYgMF7Z2tzXFovRfsNVkf86JjrM60r7UIuV3bsmfrMOqzjXjN6HPBG25zCJ3QLueySbj9oFvX/HxWBqh31PBPxduCVAxMqC9HK+YL3oBZqBruoh6LKvdMqoz0PYXUBrwbiioyE8Tj5ImjJmiOOWLbAZvIZ/l9rIPljx3T5glJ2ewlfuIT5GlodQsAf/IEtmYkML5SRQGxxwW+rlZkD8belJNu09Itwx9xDULTnemVDeojdbgcd2gKGM9aO00Jivtbs7ZyOSE8IPh98GfvatD8Ud5uHcZfAfMiPSlIxd4UqeSDzuNfbKDuFepkyC/s3j9fawmhY1b9NqDi0ZS5eP35l7rL2eK5QlWLlyCmxx8AFaFiTuD2pMUxZV5mBSJuJduOaq2ZrWpu28DE8jl/hisBz7bGWH6qLF0ayWNq1Sejtcs8KQrQqJk5P9QHDYHOIolgNsMDmEaWcTelghbfFCDqWrq6YLwDWy+m68ec5nShgq2fduUBpQUuKKKgnttaUX9PRfMmxqJyU7e0RLr1bev+ge1KK0bZyhHKKDE8gQX9Vf7rNHWOxBtZcxwwGusyMpH77qWZxXsQmbgIGhtiO+gSSRCyu/ek+OFsz1HMiQH0IHV7PjJi3dszYfFp8ue9h4+AfKte4MTiehPvxNcm/T1t9vsFZx8rHN5ie77r2jzZOq/Em4Q+H9sNcZakf9HnzCc1fJixppxP8FQABmVnqa6GbJhwaka7WH7Wdoz1WxOjSNV8N9sgW5S3Ppgkut+TTCkjA+AodUOk1KIR+8G8S3WrSZG4nyqfJ6FEjXl6a/LEoRMHZUqfPRWvwqrtXYy9IUsmUGzkqi76ib4NANCe5DnyOxnFRZ9d8FdBVBjra3iNuZhJuWW5Omi/hBigqDsg0mu2AhfJDXdwyMIJ33HHHPfS2JtjegRejX11m41TbNL+Qp7mR0g9CPKTj9PIjuSycGN/YPozXI4zarXuAeLv5CHKtKcJKRbd6R2oLNiEt0T8+QIVJH7zt9ncKMgd49vV2P1AyScZ9Qzbu3m3LBnuu6dw7aE0b6r4kzVkI/GUS88mA53L/rLtntkFlZXGtIoqNP2mD3eVv08AVVPT3wJn81zpbJV9SuqZ6Pd1ge0Zz2RFHeCdV5CLPftH9V5o9+VzFu4R0QeumqDwUhXn3IyYotdJnxr1l3BqWnQVAeDBEOtPyJQx1q5+mODiClXtYeBLTWtsJ42AMBcf/IFIhpfhYO08hsg0Ik+DpQFNOKReK3o3cudkxWX0soPtI5eSFOA6yNylS+IQjrQtYQ/5s4UcixJfokumBUjpH9ofSjUTwPCapGFndfqqG5IHeMMvfg+88SXm7bNyjk6pGKzL+WxDAdqKtQ72WWVbOk3I+ueGuammmB2pvFZvqIcU/lvW3n9+r2lycnQLE4OX9R1jIgW4cDjJ3v8dAa66mVcfC7ptCr5io6mCaA9qI9T9FFWqo1ZAaMxgxAu8aXqmaOYryMND2sTUfoHvxcYK7hEiJhCLYFDx3PBhE97c2a0ub1/ePJcyJOqr7UaTAPTJ+xvZtjb/40sloY1ltRnTkWILmIP2b7S3AdXCR+YiArMUHwdncpjpyDGfzqGOUoAuaamWzAMacQtb34/M32FEgR5lUEf8fRzFrZUhzQj0fR7/6gdzdnVVvcSneLmtqJ930VCCDORY8CVdQWdo/S3PNkX3pQsPVKWIYGAMrFZoq8bQ/OJBDSXP7KSBdL3QN0Zqd393p6VFc7DnlnFiN00SY5Nux7yadeIM0Upl2rVsu8/VAI";const Lw=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]),Fw=4;function e_(e){let t=0;function n(){return e[t++]<<8|e[t++]}let r=n(),i=1,a=[0,1];for(let I=1;I<r;I++)a.push(i+=n());let c=n(),u=t;t+=c;let d=0,f=0;function p(){return d==0&&(f=f<<8|e[t++],d=8),f>>--d&1}const g=31,m=2**g,y=m>>>1,w=y>>1,b=m-1;let E=0;for(let I=0;I<g;I++)E=E<<1|p();let A=[],j=0,S=m;for(;;){let I=Math.floor(((E-j+1)*i-1)/S),P=0,_=r;for(;_-P>1;){let V=P+_>>>1;I<a[V]?_=V:P=V}if(P==0)break;A.push(P);let T=j+Math.floor(S*a[P]/i),M=j+Math.floor(S*a[P+1]/i)-1;for(;((T^M)&y)==0;)E=E<<1&b|p(),T=T<<1&b,M=M<<1&b|1;for(;T&~M&w;)E=E&y|E<<1&b>>>1|p(),T=T<<1^y,M=(M^y)<<1|y|1;j=T,S=1+M-T}let k=r-4;return A.map(I=>{switch(I-k){case 3:return k+65792+(e[u++]<<16|e[u++]<<8|e[u++]);case 2:return k+256+(e[u++]<<8|e[u++]);case 1:return k+e[u++];default:return I-1}})}function t_(e){let t=0;return()=>e[t++]}function c3(e){return t_(e_(n_(e)))}function n_(e){let t=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((i,a)=>t[i.charCodeAt(0)]=a);let n=e.length,r=new Uint8Array(6*n>>3);for(let i=0,a=0,c=0,u=0;i<n;i++)u=u<<6|t[e.charCodeAt(i)],c+=6,c>=8&&(r[a++]=u>>(c-=8));return r}function r_(e){return e&1?~e>>1:e>>1}function o_(e,t){let n=Array(e);for(let r=0,i=0;r<e;r++)n[r]=i+=r_(t());return n}function Mc(e,t=0){let n=[];for(;;){let r=e(),i=e();if(!i)break;t+=r;for(let a=0;a<i;a++)n.push(t+a);t+=i+1}return n}function l3(e){return Dc(()=>{let t=Mc(e);if(t.length)return t})}function u3(e){let t=[];for(;;){let n=e();if(n==0)break;t.push(i_(n,e))}for(;;){let n=e()-1;if(n<0)break;t.push(s_(n,e))}return t.flat()}function Dc(e){let t=[];for(;;){let n=e(t.length);if(!n)break;t.push(n)}return t}function d3(e,t,n){let r=Array(e).fill().map(()=>[]);for(let i=0;i<t;i++)o_(e,n).forEach((a,c)=>r[c].push(a));return r}function i_(e,t){let n=1+t(),r=t(),i=Dc(t);return d3(i.length,1+e,t).flatMap((c,u)=>{let[d,...f]=c;return Array(i[u]).fill().map((p,g)=>{let m=g*r;return[d+g*n,f.map(y=>y+m)]})})}function s_(e,t){let n=1+t();return d3(n,1+e,t).map(i=>[i[0],i.slice(1)])}function a_(e){let t=[],n=Mc(e);return i(r([]),[]),t;function r(a){let c=e(),u=Dc(()=>{let d=Mc(e).map(f=>n[f]);if(d.length)return r(d)});return{S:c,B:u,Q:a}}function i({S:a,B:c},u,d){if(!(a&4&&d===u[u.length-1])){a&2&&(d=u[u.length-1]),a&1&&t.push(u);for(let f of c)for(let p of f.Q)i(f,[...u,p],d)}}}function c_(e){return e.toString(16).toUpperCase().padStart(2,"0")}function f3(e){return`{${c_(e)}}`}function l_(e){let t=[];for(let n=0,r=e.length;n<r;){let i=e.codePointAt(n);n+=i<65536?1:2,t.push(i)}return t}function ea(e){let n=e.length;if(n<4096)return String.fromCodePoint(...e);let r=[];for(let i=0;i<n;)r.push(String.fromCodePoint(...e.slice(i,i+=4096)));return r.join("")}function u_(e,t){let n=e.length,r=n-t.length;for(let i=0;r==0&&i<n;i++)r=e[i]-t[i];return r}var d_="AEUDWAHSCGYATwDVADIAdgAiADQAFAAtABQAIQAPACcADQASAAsAGQAJABIACQARAAUACwAFAAwABQAQAAMABwAEAAoABQAJAAIACgABAAQAFAALAAIACwABAAIAAQAHAAMAAwAEAAsADAAMAAwACwANAA0AAwAKAAkABAAdAAYAZwDTAecDNACxCmIB8xhZAqfoC190UGcThgBurwf7PT09Pb09AjgJum8OjDllxHYUKXAPxzq6tABAxgK8ysUvWAgMPT09PT09PSs6LT2HcgWXWwFLoSMEEEl5RFVMKvO0XQ8ExDdJMnIgPi89uj00MsvBXxEPAGPCDwBnQKoEbwRwBHEEcgRzBHQEdQR2BHcEeAR6BHsEfAR+BIAEgfndBQoBYgULAWIFDAFiBNcE2ATZBRAFEQUvBdALFAsVDPcNBw13DYcOMA4xDjMB4BllHI0B2grbAMDpHLkQ7QHVAPRNQQFnGRUEg0yEB2uaJEMAJpIBpob5AERSMAKNoAXqaQLRBMCzEiC+AZ4EWRJJFbEu7QDQLARtEbgECxDwAb/RyAk1AV4nD2cEQQKTAzsAGpobPgAahAGPCrysdy0OAKwAfFIcBAQFUmoA/PtZADkBIadVj2UMUgx5Il4ANQC9vLIBDAHUGVsQ8wCzfQIbGVcCHBZHAZ8CBAgXOhG7AqMZ4M7+1M0UAPDNAWsC+mcJDe8AAQA99zkEXLICyQozAo6lAobcP5JvjQLFzwKD9gU/OD8FEQCtEQL6bW+nAKUEvzjDHsuRyUvOFHcacUz5AqIFRSE2kzsBEQCuaQL5DQTlcgO6twSpTiUgCwIFCAUXBHQEqQV6swAVxUlmTmsCwjqsP/wKJQmXb793UgZBEBsnpRD3DDMBtQE7De1L2ATxBjsEyR99GRkPzZWcCKUt3QztJuMuoYBaI/UqgwXtS/Q83QtNUWgPWQtlCeM6Y4FOAyEBDSKLCt0NOQhtEPMKyWsN5RFFBzkD1UmaAKUHAQsRHTUVtSYQYqwLCTl3Bvsa9guPJq8TKXr8BdMaIQZNASka/wDPLueFsFoxXBxPXwYDCyUjxxSoUCANJUC3eEgaGwcVJakCkUNwSodRNh6TIfY8PQ1mLhNRfAf1PAUZTwuBPJ5Gq0UOEdI+jT1IIklMLAQ1fywvJ4sJzw+FDLl8cgFZCSEJsQxxEzERFzfFCDkHGS2XJCcVCCFGlWCaBPefA/MT0QMLBT8JQQcTA7UcLRMuFSkFDYEk1wLzNtUuswKPVoABFwXLDyUf3xBQR+AO6QibAmUDgyXrAC0VIQAXIpsIQ2MAX4/YUwUuywjHamwjdANnFOdhEXMHkQ5XB6ccMxW/HOFwyF4Lhggoo68JWwF1CZkBXwTjCAk1W4ygIEFnU4tYGJsgYUE/XfwCMQxlFZ9EvYd4AosPaxIbATUBcwc5DQECdxHtEWsQlQjrhgQ1tTP4OiUETyGDIBEKJwNPbM4LJyb5DPhpAaMSYgMMND137merYLYkF/0HGTLFQWAh8QuST80MnBrBGEJULhnkB78D8xrzJ+pBVwX/A6MDEzpNM+4EvQtpCIsJPwBJDqMXB9cYagpxjNABMYsBt5kDV5GDAm+PBjcHCwBnC4cFeeUAHQKnCKMABQDPA1cAOQKtB50AGQCFQQE9AycvASHlAo8DkwgxywGVLwHzKQQbwwwVAPc3bkoCw7ECgGpmogXdWAKOAkk1AU0lBAVOR1EDr3HhANsASwYT30cBFatKyxrjQwHfbysAxwD7AAU1BwVBAc0B820AtwFfCzEJorO1AU3pKQCDABVrAdcCiQDdADUAf/EBUwBNBVn5BdMCT0kBETEYK1dhAbsDHwEzAQ0AeQbLjaXJBx8EbQfTAhAbFeEC7y4HtQEDIt8TzULFAr3eVaFgAmSBAmJCW02vWzcgAqH3AmiYAmYJAp+EOBsLAmY7AmYmBG4EfwN/EwN+kjkGOXcXOYI6IyMCbB0CMjY4CgJtxwJtru+KM2dFKwFnAN4A4QBKBQeYDI0A/gvCAA21AncvAnaiPwJ5S0MCeLodXNtFrkbXAnw/AnrIAn0JAnzwBVkFIEgASH1jJAKBbQKAAAKABQJ/rklYSlsVF0rMAtEBAtDMSycDiE8Dh+ZExZEyAvKhXQMDA65LzkwtJQPPTUxNrwKLPwKK2MEbBx1DZwW3Ao43Ao5cQJeBAo7ZAo5ceFG0UzUKUtRUhQKT+wKTDADpABxVHlWvVdAGLBsplYYy4XhmRTs5ApefAu+yWCGoAFklApaPApZ8nACpWaxaCYFNADsClrUClk5cRFzRApnLAplkXMpdBxkCnJs5wjqdApwWAp+bAp64igAdDzEqDwKd8QKekgC1PWE0Ye8CntMCoG4BqQKenx8Cnk6lY8hkJyUrAievAiZ+AqD7AqBMAqLdAqHEAqYvAqXOAqf/AH0Cp/JofGixAANJahxq0QKs4wKsrgKtZwKtAgJXHQJV3AKx4dcDH05slwKyvQ0CsugXbOBtY21IXwMlzQK2XDs/bpADKUUCuF4CuUcVArkqd3A2cOECvRkCu9pwlgMyEQK+iHICAzNxAr4acyJzTwLDywLDBHOCdEs1RXTgAzynAzyaAz2/AsV8AsZHAsYQiQLIaVECyEQCyU8CyS4CZJ0C3dJ4eWF4rnklS9ADGKNnAgJh9BnzlSR7C16SXrsRAs9rAs9sL0tT0vMTnwDGrQLPcwEp6gNOEn5LBQLcJwLbigLSTwNSXANTXwEBA1WMgIk/AMsW7WBFghyC04LOg40C2scC2d6EEIRJpzwDhqUALwNkDoZxWfkAVQLfZQLeuHN3AuIv7RQB8zAnAfSbAfLShwLr8wLpcHkC6vkC6uQA+UcBuQLuiQLrnJaqlwMC7j8DheCYeXDgcaEC8wMAaQOOFpmTAvcTA5FuA5KHAveYAvnZAvhmmhyaq7s3mx4DnYMC/voBGwA5nxyfswMFjQOmagOm2QDRxQMGaqGIogUJAwxJAtQAPwMA4UEXUwER8wNrB5dnBQCTLSu3r73bAYmZFH8RBDkB+ykFIQ6dCZ8Akv0TtRQrxQL3LScApQC3BbmOkRc/xqdtQS4UJo0uAUMBgPwBtSYAdQMOBG0ALAIWDKEAAAoCPQJqA90DfgSRASBFBSF8CgAFAEQAEwA2EgJ3AQAF1QNr7wrFAgD3Cp8nv7G35QGRIUFCAekUfxE0wIkABAAbAFoCRQKEiwAGOlM6lI1tALg6jzrQAI04wTrcAKUA6ADLATqBOjs5/Dn5O3aJOls7nok6bzkYAVYBMwFsBS81XTWeNa01ZjV1NbY1xTWCNZE10jXhNZ41rTXuNf01sjXBNgI2ETXGNdU2FjYnNd417TYuNj02LjUtITY6Nj02PDbJNwgEkDxXNjg23TcgNw82yiA3iTcwCgSwPGc2JDcZN2w6jTchQtRDB0LgQwscDw8JmyhtKFFVBgDpfwDpsAD+mxQ91wLpNSMArQC9BbeOkRdLxptzBL8MDAMMAQgDAAkKCwsLCQoGBAVVBI/DvwDz9b29kaUCb0QtsRTNLt4eGBcSHAMZFhYZEhYEARAEBUEcQRxBHEEcQRxBHEEaQRxBHEFCSTxBPElISUhBNkM2QTYbNklISVmBVIgELgEaJZkC7aMAoQCjBcGOmxdNxrsBvwGJAaQcEZ0ePCklMAAhMvAIMAL54gC7Bm8EescjzQMpARQpKgDUHqSvAj5Gqwr7YrMUACT9AN3rpF27H7fsd/twPt4l+UW1yQYKBt2Cgy7qJpGiLcdE2P1cQSImUbqJ6ICH27H4knQMIRMrFkHu3sx6tC35Y+eLIh4e4CMKJ4DfyV+8mfta499RCAJ0xfeZR8PsoYOApva9pjGn4PhvyZS7/h5JLuhaucfjuU+Z584wwqNO4hWYmaBCcjgQPale1bjoHzMUbut/zTgxHxBnAyrdKpF4IRMASLBtD/jviyLeCgj8twWjAd3HchN/uqaeRYeHJgl7JEY9/cTrvtfybx/r3Y/NtxJ9dp+MTVmiS9bwBH73s8Di56/Ma+mTPMHq4T1yEG1fWcqr0u+hrGnJEvU1JJAm/maQSrKrazIyvSkDFkj8UUlfBq8baniTGPng6YZRL661rDNw4w/1g2figG0IhXnL7wosd/sVNo5dYSmMBTP5c7rYLjRdCwg8quwljOMPf63D8ICAL0r71XRiyFHdgwHbwfgnPOf4Lzjf2v+j+IiDHG2isp5yUnzSDyDRb4i/Vs0qHSHq8PiEQ/JnBP7PxnjN0j6gT4AVAeRx/1o9VnEUlUwvFrzJqHk9jxAw4sYxCnrxaeBdCFFKbnE7z+x54F5W7ZZsU6kx8Qocul6FoAHHy01FGL/nne61mn4+uYXfQ1Uccn+HMLKE+cZzT8BB1E3FRskOgJrRsq25rauLm8+uamXpkS/bTy6y1wDbCrW4eD532kTWrtNUmVVZOIn/C+/JR9KVR5iG9TY8iaT67ubm/whL1xbKZoqtY+a6fNxMJrg211bGYJDUkYMNWA0BMB++9zOm6Eik4roqs9CCEFW0lyAK0PbvlzvoxrZuY/OEhNW/l/63U15Od/RSvmDvXpGLiVmeGi5PDSH2bYz5o2g6wFDQ2FbZgYgTF8rPlvA1ifjZD3NLtFdXdpSIJvgKR7GpjJWG7GZGawPomIH8B5tUmtHH9LpM+/KQKunEPa1GiQkCXv4Cnm9DLORo2joicHdPDZ64obQrPZ5bgqckkj0G6/NEiPYBY4bCkL7W8G5YzsUb6GakFjykSPkT7JGeLeB6uJOGMm+x7N381BCDfbJFx0dtLgV9Q477BfL1fvitX5anV/oYfxeYl+eF5x5bB8+Ep/L2nsmd56aKF4aAD4GbJWsdKyBW22xEmAD3XdbtsMyAFoR5mOla0gEd9U/YVB7zvHGpHbQonay9Sv0bQ8iZ8piaXVrKc5AG1AmqqgaEvzHSP2Wux7aZTWh6quVDVU01JtMIVRdCFwlSbbqqhoFlyzsotQzRexFvZ/MqUSFu3OhRIuNBbufvBpdVgb8XdGJ48/lJPCZ7dsOujTTbKPSEvGXkOnG2Xdi8/nM3EMRqITd5QeU7iOjKqC7URJY6TnLsHij22xAHKnVRD5MDtBYnoGFqZGMDmXCW6Oj+BAWw14hESY/xLF6bLku06AHkiXTHPCFZ0f9YSqqo27eAhhS67OrA2Het4M9JM3jm/yRX6bYxnfmzYl5qQdHxN08FsNuWDrWd4vMUY2QD3hr8vS73SCTkFoXZR3xNzOQt8d/6HfjBmXqvrE6EGkLzK6YK2U2/ksU/iUH+LvVIsJI+ri2AL/klo+ShdDyfs5A83i2prkMs51IKR7ZcqjZJi5X3+bd8GlyWvtddxKEoEqSgEO7A8jIgf2nH0h8FjM7oB6yte3X5mpL0i/E4Rx0CotKnILJj/vJqo4VkPQ93jRtRVfaitQPqldl5xRYPq8387Z0DcnZvOeION0Ht1+P27kFLGQIcLBX4FG3sffccNHh5cPfzp9INoRtqVtdViJfg8RjnXiIz/MNqEN6zvzX3hMzyWC7oSoXIT14ubc0abPX8Rp9GVa5NI/8iv+6ela1oTncbdimRKnrbRffDR/X4nH+bgqAuHWl7hOaeXPWVzIeRl7ga+JzD4Sx3mlj/q6Ra/E2HhDf21eEzTLNGfCZsY+/yxZzQzIAuijG65ii4O/waAJCrEJaWd/DRAKMQ5678Dw5AT7RCKzdadIwd8LsD+DgPBASmWsUlf8R0k1w/2k4lO2Wpb4zMI6EJVJs0xk/wn8/fRUPqrDKhbjHR41SqgFMx5RGMPuduFwlu5lK89tW11sTqiX/5EfGs5nO+y9FKvgXKPOEmgE05EKNL6Sjb3xS40H3BVPhm0ESOZgAjZoymc8be0inDVo4JdJVf+NKd3tN/CaB7GShhH27qf95NoFZVX/6ZkR2lX+CgWrQ2INgkh+bbMz68+uJ3Clsh8HSMPEQtAt+BBE6fXDab7KIlsKxU1lIXW/KWVstpdPanJ0pdXpQinDyUQjtY7ZVcfiecRxRDMAUhHFU2cEaciQ+htiPMPx1kdvtWG9T44w3r037ljHBFJdYR0r55qvMRixtAEFJAqA4T1ES87FAx7UozXasytg8MftZYt0rjYgLe6EJ5aWvy2qscBSBQ7yehoJIA3wIIZ9ukfkyBb6qnue5ko8W50rpV4kXqWjI5nbGRXrNW0tBZHXlY48nSgcUXBHWT4GcgLZJoLlKJnV96kCYpq9eWHh7xJzkCAyrQuQ5AJ0qq/uZ3toJglNterev+Qm0KXxPg/+YbFRJdfhbp1wOnVOEYdVHTya6CtO0afhEaBhx3oHwCb5Kq6RwHDzFMl2vfjL8GwzcCoTj7wZe+UFnYDV2yKpPU9dba29gYBdNqJg/KXozO+CJTlKmlKhnqTf5doeS35DZFV+cYJQVjd+oVY/Gtc/6XPzUxb1gMqf6cEjNNoRC8AObrp+fx0cVtGu4ffC2TgXRC8zPl8moUHCB5HZ25d87mlsiiK0aNwBtcEQjRNBT/QrXbw/8aVXdKMHn9EqYEKEyxSGTpYQOaes1G1Qq8pDgqkZtlO2HRyCXpmeM7TSrRPkAh004BfisVpF6zP44n2Jvxz/gOVocNCyy9V6lkod28QM4pbaMvVJigD/w3BrsjSJrXlqc4ulBYOCceiBN4b/gHajYyupbhEt63a619Ay4wsL6a6w6B+A7TnoyE7BliWHJfzVxxIKM/W3M/J8Bx99Op863Q8eNuIMGRx++VbYfjm+VGYBA3Ap/KEu/wxBNBpJJncwHPG45V8Gh98ZIrGCc20MwijGowZbcS7d1nEgcOW5cddZpHL2XPAIRbColiheZzXTvBxZOY3iMSDSKDrICyJ/iQs1vdplVdH/JrLJsQ2jtTnfCrITIghq3KFX3qAgLWAIp8IffNSdTYptnbGfc8s+qcr3zyzyHp1aJg+jxTF4kD1ry5Wauv5V3xnOGwTFecNzXSLHBW20/pCQjk4uorD0plIhMSTc79+/r4RKPClRYTBYex1Ob5crtfvRQBBv6re/6FhtCqtduag67glqRA77/3ulblh9YRtMdDxkCyJDeNnAuCLPQFmdRRWJtH20Z8DstfJf+5oj5SSB64d0iF5/Ya4KfTWxfivj9Ap2/zbYaTo/1gO3tM6RYsCZharMBFr7Fm61mLSrQnEI4OF1gbVS4k/JE9UotOrnLJZuswoWodCSV8zbybkJSVIP7n8UaE9xCR39rJZmf27HOAPVOGc9pdkQUcRrI0qyVF9Z3j1RHDbxIfwbWzmPVjwIdPJvtmBYwEQIUsIW1S939hcVikK00ozPRI02cqhzVUNzpOxVdrwRPvlh1aIOf0xFEqD3YkGnCnFah/cFN3J2gB7N+bZSGawwkKFu1tpQMrp1W+27YNkyT0TpcFpTqgOqqLabrgcCUPxh97mREOGy4xItzQ9xSl6rq+8BZsHcrQFReS+QeMxJ3P6CnL9EP/eOLDjumLhvrcQrpPiknsofbzBv9gTP0lU+TIVwE6E7CcKfT36q+ZiEOHJ9ayf0dyUJLezAb2M8aNHwd0+OJmsVgTzRWA";const Lc=44032,ud=4352,dd=4449,fd=4519,h3=19,p3=21,ta=28,hd=p3*ta,f_=h3*hd,h_=Lc+f_,p_=ud+h3,m_=dd+p3,g_=fd+ta;function rc(e){return e>>24&255}function m3(e){return e&16777215}let Lp,zw,Fp,Gu;function y_(){let e=c3(d_);Lp=new Map(l3(e).flatMap((t,n)=>t.map(r=>[r,n+1<<24]))),zw=new Set(Mc(e)),Fp=new Map,Gu=new Map;for(let[t,n]of u3(e)){if(!zw.has(t)&&n.length==2){let[r,i]=n,a=Gu.get(r);a||(a=new Map,Gu.set(r,a)),a.set(i,t)}Fp.set(t,n.reverse())}}function g3(e){return e>=Lc&&e<h_}function v_(e,t){if(e>=ud&&e<p_&&t>=dd&&t<m_)return Lc+(e-ud)*hd+(t-dd)*ta;if(g3(e)&&t>fd&&t<g_&&(e-Lc)%ta==0)return e+(t-fd);{let n=Gu.get(e);return n&&(n=n.get(t),n)?n:-1}}function y3(e){Lp||y_();let t=[],n=[],r=!1;function i(a){let c=Lp.get(a);c&&(r=!0,a|=c),t.push(a)}for(let a of e)for(;;){if(a<128)t.push(a);else if(g3(a)){let c=a-Lc,u=c/hd|0,d=c%hd/ta|0,f=c%ta;i(ud+u),i(dd+d),f>0&&i(fd+f)}else{let c=Fp.get(a);c?n.push(...c):i(a)}if(!n.length)break;a=n.pop()}if(r&&t.length>1){let a=rc(t[0]);for(let c=1;c<t.length;c++){let u=rc(t[c]);if(u==0||a<=u){a=u;continue}let d=c-1;for(;;){let f=t[d+1];if(t[d+1]=t[d],t[d]=f,!d||(a=rc(t[--d]),a<=u))break}a=rc(t[c])}}return t}function w_(e){let t=[],n=[],r=-1,i=0;for(let a of e){let c=rc(a),u=m3(a);if(r==-1)c==0?r=u:t.push(u);else if(i>0&&i>=c)c==0?(t.push(r,...n),n.length=0,r=u):n.push(u),i=c;else{let d=v_(r,u);d>=0?r=d:i==0&&c==0?(t.push(r),r=u):(n.push(u),i=c)}}return r>=0&&t.push(r,...n),t}function v3(e){return y3(e).map(m3)}function b_(e){return w_(y3(e))}const Uw=45,w3=".",b3=65039,x3=1,pd=e=>Array.from(e);function Fc(e,t){return e.P.has(t)||e.Q.has(t)}class x_ extends Array{get is_emoji(){return!0}}let zp,C3,wi,Up,E3,Ts,xh,Ss,pi,Ww,Wp;function Jm(){if(zp)return;let e=c3(XB);const t=()=>Mc(e),n=()=>new Set(t()),r=(p,g)=>g.forEach(m=>p.add(m));zp=new Map(u3(e)),C3=n(),wi=t(),Up=new Set(t().map(p=>wi[p])),wi=new Set(wi),E3=n(),n();let i=l3(e),a=e();const c=()=>{let p=new Set;return t().forEach(g=>r(p,i[g])),r(p,t()),p};Ts=Dc(p=>{let g=Dc(e).map(m=>m+96);if(g.length){let m=p>=a;g[0]-=32,g=ea(g),m&&(g=`Restricted[${g}]`);let y=c(),w=c(),b=!e();return{N:g,P:y,Q:w,M:b,R:m}}}),xh=n(),Ss=new Map;let u=t().concat(pd(xh)).sort((p,g)=>p-g);u.forEach((p,g)=>{let m=e(),y=u[g]=m?u[g-m]:{V:[],M:new Map};y.V.push(p),xh.has(p)||Ss.set(p,y)});for(let{V:p,M:g}of new Set(Ss.values())){let m=[];for(let w of p){let b=Ts.filter(A=>Fc(A,w)),E=m.find(({G:A})=>b.some(j=>A.has(j)));E||(E={G:new Set,V:[]},m.push(E)),E.V.push(w),r(E.G,b)}let y=m.flatMap(w=>pd(w.G));for(let{G:w,V:b}of m){let E=new Set(y.filter(A=>!w.has(A)));for(let A of b)g.set(A,E)}}pi=new Set;let d=new Set;const f=p=>pi.has(p)?d.add(p):pi.add(p);for(let p of Ts){for(let g of p.P)f(g);for(let g of p.Q)f(g)}for(let p of pi)!Ss.has(p)&&!d.has(p)&&Ss.set(p,x3);r(pi,v3(pi)),Ww=a_(e).map(p=>x_.from(p)).sort(u_),Wp=new Map;for(let p of Ww){let g=[Wp];for(let m of p){let y=g.map(w=>{let b=w.get(m);return b||(b=new Map,w.set(m,b)),b});m===b3?g.push(...y):g=y}for(let m of g)m.V=p}}function Zm(e){return(A3(e)?"":`${Xm(Qd([e]))} `)+f3(e)}function Xm(e){return`"${e}"‎`}function C_(e){if(e.length>=4&&e[2]==Uw&&e[3]==Uw)throw new Error(`invalid label extension: "${ea(e.slice(0,4))}"`)}function E_(e){for(let n=e.lastIndexOf(95);n>0;)if(e[--n]!==95)throw new Error("underscore allowed only at start")}function A_(e){let t=e[0],n=Lw.get(t);if(n)throw ac(`leading ${n}`);let r=e.length,i=-1;for(let a=1;a<r;a++){t=e[a];let c=Lw.get(t);if(c){if(i==a)throw ac(`${n} + ${c}`);i=a+1,n=c}}if(i==r)throw ac(`trailing ${n}`)}function Qd(e,t=1/0,n=f3){let r=[];k_(e[0])&&r.push("◌"),e.length>t&&(t>>=1,e=[...e.slice(0,t),8230,...e.slice(-t)]);let i=0,a=e.length;for(let c=0;c<a;c++){let u=e[c];A3(u)&&(r.push(ea(e.slice(i,c))),r.push(n(u)),i=c+1)}return r.push(ea(e.slice(i,a))),r.join("")}function k_(e,t){return Jm(),wi.has(e)}function A3(e){return Jm(),E3.has(e)}function S_(e){return __(I_(e,b_,O_))}function I_(e,t,n){if(!e)return[];Jm();let r=0;return e.split(w3).map(i=>{let a=l_(i),c={input:a,offset:r};r+=a.length+1;try{let u=c.tokens=T_(a,t,n),d=u.length,f;if(!d)throw new Error("empty label");let p=c.output=u.flat();if(E_(p),!(c.emoji=d>1||u[0].is_emoji)&&p.every(m=>m<128))C_(p),f="ASCII";else{let m=u.flatMap(y=>y.is_emoji?[]:y);if(!m.length)f="Emoji";else{if(wi.has(p[0]))throw ac("leading combining mark");for(let b=1;b<d;b++){let E=u[b];if(!E.is_emoji&&wi.has(E[0]))throw ac(`emoji + combining mark: "${ea(u[b-1])} + ${Qd([E[0]])}"`)}A_(p);let y=pd(new Set(m)),[w]=B_(y);P_(w,m),j_(w,y),f=w.N}}c.type=f}catch(u){c.error=u}return c})}function j_(e,t){let n,r=[];for(let i of t){let a=Ss.get(i);if(a===x3)return;if(a){let c=a.M.get(i);if(n=n?n.filter(u=>c.has(u)):pd(c),!n.length)return}else r.push(i)}if(n){for(let i of n)if(r.every(a=>Fc(i,a)))throw new Error(`whole-script confusable: ${e.N}/${i.N}`)}}function B_(e){let t=Ts;for(let n of e){let r=t.filter(i=>Fc(i,n));if(!r.length)throw Ts.some(i=>Fc(i,n))?S3(t[0],n):k3(n);if(t=r,r.length==1)break}return t}function __(e){return e.map(({input:t,error:n,output:r})=>{if(n){let i=n.message;throw new Error(e.length==1?i:`Invalid label ${Xm(Qd(t,63))}: ${i}`)}return ea(r)}).join(w3)}function k3(e){return new Error(`disallowed character: ${Zm(e)}`)}function S3(e,t){let n=Zm(t),r=Ts.find(i=>i.P.has(t));return r&&(n=`${r.N} ${n}`),new Error(`illegal mixture: ${e.N} + ${n}`)}function ac(e){return new Error(`illegal placement: ${e}`)}function P_(e,t){for(let n of t)if(!Fc(e,n))throw S3(e,n);if(e.M){let n=v3(t);for(let r=1,i=n.length;r<i;r++)if(Up.has(n[r])){let a=r+1;for(let c;a<i&&Up.has(c=n[a]);a++)for(let u=r;u<a;u++)if(n[u]==c)throw new Error(`duplicate non-spacing marks: ${Zm(c)}`);if(a-r>Fw)throw new Error(`excessive non-spacing marks: ${Xm(Qd(n.slice(r-1,a)))} (${a-r}/${Fw})`);r=a}}}function T_(e,t,n){let r=[],i=[];for(e=e.slice().reverse();e.length;){let a=R_(e);if(a)i.length&&(r.push(t(i)),i=[]),r.push(n(a));else{let c=e.pop();if(pi.has(c))i.push(c);else{let u=zp.get(c);if(u)i.push(...u);else if(!C3.has(c))throw k3(c)}}}return i.length&&r.push(t(i)),r}function O_(e){return e.filter(t=>t!=b3)}function R_(e,t){let n=Wp,r,i=e.length;for(;i&&(n=n.get(e[--i]),!!n);){let{V:a}=n;a&&(r=a,e.length=i)}return r}function N_(e){return S_(e)}function M_(e){return N_(e)}const D_={gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}},L_={block:Z7({format(e){var n;return{transactions:(n=e.transactions)==null?void 0:n.map(r=>{if(typeof r=="string")return r;const i=il(r);return i.typeHex==="0x7e"&&(i.isSystemTx=r.isSystemTx,i.mint=r.mint?$t(r.mint):void 0,i.sourceHash=r.sourceHash,i.type="deposit"),i}),stateRoot:e.stateRoot}}}),transaction:Y7({format(e){const t={};return e.type==="0x7e"&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?$t(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}}),transactionReceipt:Yk({format(e){return{l1GasPrice:e.l1GasPrice?$t(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?$t(e.l1GasUsed):null,l1Fee:e.l1Fee?$t(e.l1Fee):null,l1FeeScalar:e.l1FeeScalar?Number(e.l1FeeScalar):null}}})};function F_(e,t){return W_(e)?U_(e):Dk(e,t)}const z_={transaction:F_};function U_(e){$_(e);const{sourceHash:t,data:n,from:r,gas:i,isSystemTx:a,mint:c,to:u,value:d}=e,f=[t,r,u??"0x",c?sn(c):"0x",d?sn(d):"0x",i?sn(i):"0x",a?"0x1":"0x",n??"0x"];return ir(["0x7e",Ho(f)])}function W_(e){return e.type==="deposit"||typeof e.sourceHash<"u"}function $_(e){const{from:t,to:n}=e;if(t&&!ct(t))throw new Vt({address:t});if(n&&!ct(n))throw new Vt({address:n})}const $w={blockTime:2e3,contracts:D_,formatters:L_,serializers:z_},Xa=1,$p=Pm({...$w,id:8453,name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://basescan.org",apiUrl:"https://api.basescan.org/api"}},contracts:{...$w.contracts,disputeGameFactory:{[Xa]:{address:"0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e"}},l2OutputOracle:{[Xa]:{address:"0x56315b90c40730925ec5485cf004d835058518A0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022},portal:{[Xa]:{address:"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",blockCreated:17482143}},l1StandardBridge:{[Xa]:{address:"0x3154Cf16ccdb4C6d922629664174b904d80F2C35",blockCreated:17482143}}},sourceId:Xa});({...$p});const e1=Pm({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:12e3,rpcUrls:{default:{http:["https://eth.merkle.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:23085558},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}});var q_=e6(),yr=function(){return yr=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},yr.apply(this,arguments)};function I3(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function H_(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Ku="right-scroll-bar-position",Yu="width-before-scroll-bar",V_="with-scroll-bars-hidden",Q_="--removed-body-scroll-bar-size";function Ch(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function G_(e,t){var n=N.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var K_=typeof window<"u"?N.useLayoutEffect:N.useEffect,qw=new WeakMap;function Y_(e,t){var n=G_(null,function(r){return e.forEach(function(i){return Ch(i,r)})});return K_(function(){var r=qw.get(n);if(r){var i=new Set(r),a=new Set(e),c=n.current;i.forEach(function(u){a.has(u)||Ch(u,null)}),a.forEach(function(u){i.has(u)||Ch(u,c)})}qw.set(n,e)},[e]),n}function J_(e){return e}function Z_(e,t){t===void 0&&(t=J_);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var c=t(a,r);return n.push(c),function(){n=n.filter(function(u){return u!==c})}},assignSyncMedium:function(a){for(r=!0;n.length;){var c=n;n=[],c.forEach(a)}n={push:function(u){return a(u)},filter:function(){return n}}},assignMedium:function(a){r=!0;var c=[];if(n.length){var u=n;n=[],u.forEach(a),c=n}var d=function(){var p=c;c=[],p.forEach(a)},f=function(){return Promise.resolve().then(d)};f(),n={push:function(p){c.push(p),f()},filter:function(p){return c=c.filter(p),n}}}};return i}function X_(e){e===void 0&&(e={});var t=Z_(null);return t.options=yr({async:!0,ssr:!1},e),t}var j3=function(e){var t=e.sideCar,n=I3(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return N.createElement(r,yr({},n))};j3.isSideCarExport=!0;function eP(e,t){return e.useMedium(t),j3}var B3=X_(),Eh=function(){},Gd=N.forwardRef(function(e,t){var n=N.useRef(null),r=N.useState({onScrollCapture:Eh,onWheelCapture:Eh,onTouchMoveCapture:Eh}),i=r[0],a=r[1],c=e.forwardProps,u=e.children,d=e.className,f=e.removeScrollBar,p=e.enabled,g=e.shards,m=e.sideCar,y=e.noIsolation,w=e.inert,b=e.allowPinchZoom,E=e.as,A=E===void 0?"div":E,j=e.gapMode,S=I3(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=m,I=Y_([n,t]),P=yr(yr({},S),i);return N.createElement(N.Fragment,null,p&&N.createElement(k,{sideCar:B3,removeScrollBar:f,shards:g,noIsolation:y,inert:w,setCallbacks:a,allowPinchZoom:!!b,lockRef:n,gapMode:j}),c?N.cloneElement(N.Children.only(u),yr(yr({},P),{ref:I})):N.createElement(A,yr({},P,{className:d,ref:I}),u))});Gd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Gd.classNames={fullWidth:Yu,zeroRight:Ku};var tP=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function nP(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=tP();return t&&e.setAttribute("nonce",t),e}function rP(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function oP(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var iP=function(){var e=0,t=null;return{add:function(n){e==0&&(t=nP())&&(rP(t,n),oP(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},sP=function(){var e=iP();return function(t,n){N.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},_3=function(){var e=sP(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},aP={left:0,top:0,right:0,gap:0},Ah=function(e){return parseInt(e||"",10)||0},cP=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[Ah(n),Ah(r),Ah(i)]},lP=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return aP;var t=cP(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},uP=_3(),Os="data-scroll-locked",dP=function(e,t,n,r){var i=e.left,a=e.top,c=e.right,u=e.gap;return n===void 0&&(n="margin"),`
1671
+ .`.concat(V_,` {
1672
+ overflow: hidden `).concat(r,`;
1673
+ padding-right: `).concat(u,"px ").concat(r,`;
1674
+ }
1675
+ body[`).concat(Os,`] {
1676
+ overflow: hidden `).concat(r,`;
1677
+ overscroll-behavior: contain;
1678
+ `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
1679
+ padding-left: `.concat(i,`px;
1680
+ padding-top: `).concat(a,`px;
1681
+ padding-right: `).concat(c,`px;
1682
+ margin-left:0;
1683
+ margin-top:0;
1684
+ margin-right: `).concat(u,"px ").concat(r,`;
1685
+ `),n==="padding"&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),`
1686
+ }
1687
+
1688
+ .`).concat(Ku,` {
1689
+ right: `).concat(u,"px ").concat(r,`;
1690
+ }
1691
+
1692
+ .`).concat(Yu,` {
1693
+ margin-right: `).concat(u,"px ").concat(r,`;
1694
+ }
1695
+
1696
+ .`).concat(Ku," .").concat(Ku,` {
1697
+ right: 0 `).concat(r,`;
1698
+ }
1699
+
1700
+ .`).concat(Yu," .").concat(Yu,` {
1701
+ margin-right: 0 `).concat(r,`;
1702
+ }
1703
+
1704
+ body[`).concat(Os,`] {
1705
+ `).concat(Q_,": ").concat(u,`px;
1706
+ }
1707
+ `)},Hw=function(){var e=parseInt(document.body.getAttribute(Os)||"0",10);return isFinite(e)?e:0},fP=function(){N.useEffect(function(){return document.body.setAttribute(Os,(Hw()+1).toString()),function(){var e=Hw()-1;e<=0?document.body.removeAttribute(Os):document.body.setAttribute(Os,e.toString())}},[])},hP=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;fP();var a=N.useMemo(function(){return lP(i)},[i]);return N.createElement(uP,{styles:dP(a,!t,i,n?"":"!important")})},qp=!1;if(typeof window<"u")try{var Du=Object.defineProperty({},"passive",{get:function(){return qp=!0,!0}});window.addEventListener("test",Du,Du),window.removeEventListener("test",Du,Du)}catch{qp=!1}var Cs=qp?{passive:!1}:!1,pP=function(e){return e.tagName==="TEXTAREA"},P3=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!pP(e)&&n[t]==="visible")},mP=function(e){return P3(e,"overflowY")},gP=function(e){return P3(e,"overflowX")},Vw=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=T3(e,r);if(i){var a=O3(e,r),c=a[1],u=a[2];if(c>u)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},yP=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},vP=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},T3=function(e,t){return e==="v"?mP(t):gP(t)},O3=function(e,t){return e==="v"?yP(t):vP(t)},wP=function(e,t){return e==="h"&&t==="rtl"?-1:1},bP=function(e,t,n,r,i){var a=wP(e,window.getComputedStyle(t).direction),c=a*r,u=n.target,d=t.contains(u),f=!1,p=c>0,g=0,m=0;do{var y=O3(e,u),w=y[0],b=y[1],E=y[2],A=b-E-a*w;(w||A)&&T3(e,u)&&(g+=A,m+=w),u instanceof ShadowRoot?u=u.host:u=u.parentNode}while(!d&&u!==document.body||d&&(t.contains(u)||t===u));return(p&&Math.abs(g)<1||!p&&Math.abs(m)<1)&&(f=!0),f},Lu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Qw=function(e){return[e.deltaX,e.deltaY]},Gw=function(e){return e&&"current"in e?e.current:e},xP=function(e,t){return e[0]===t[0]&&e[1]===t[1]},CP=function(e){return`
1708
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
1709
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
1710
+ `)},EP=0,Es=[];function AP(e){var t=N.useRef([]),n=N.useRef([0,0]),r=N.useRef(),i=N.useState(EP++)[0],a=N.useState(_3)[0],c=N.useRef(e);N.useEffect(function(){c.current=e},[e]),N.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var b=H_([e.lockRef.current],(e.shards||[]).map(Gw),!0).filter(Boolean);return b.forEach(function(E){return E.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),b.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var u=N.useCallback(function(b,E){if("touches"in b&&b.touches.length===2||b.type==="wheel"&&b.ctrlKey)return!c.current.allowPinchZoom;var A=Lu(b),j=n.current,S="deltaX"in b?b.deltaX:j[0]-A[0],k="deltaY"in b?b.deltaY:j[1]-A[1],I,P=b.target,_=Math.abs(S)>Math.abs(k)?"h":"v";if("touches"in b&&_==="h"&&P.type==="range")return!1;var T=Vw(_,P);if(!T)return!0;if(T?I=_:(I=_==="v"?"h":"v",T=Vw(_,P)),!T)return!1;if(!r.current&&"changedTouches"in b&&(S||k)&&(r.current=I),!I)return!0;var M=r.current||I;return bP(M,E,b,M==="h"?S:k)},[]),d=N.useCallback(function(b){var E=b;if(!(!Es.length||Es[Es.length-1]!==a)){var A="deltaY"in E?Qw(E):Lu(E),j=t.current.filter(function(I){return I.name===E.type&&(I.target===E.target||E.target===I.shadowParent)&&xP(I.delta,A)})[0];if(j&&j.should){E.cancelable&&E.preventDefault();return}if(!j){var S=(c.current.shards||[]).map(Gw).filter(Boolean).filter(function(I){return I.contains(E.target)}),k=S.length>0?u(E,S[0]):!c.current.noIsolation;k&&E.cancelable&&E.preventDefault()}}},[]),f=N.useCallback(function(b,E,A,j){var S={name:b,delta:E,target:A,should:j,shadowParent:kP(A)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(k){return k!==S})},1)},[]),p=N.useCallback(function(b){n.current=Lu(b),r.current=void 0},[]),g=N.useCallback(function(b){f(b.type,Qw(b),b.target,u(b,e.lockRef.current))},[]),m=N.useCallback(function(b){f(b.type,Lu(b),b.target,u(b,e.lockRef.current))},[]);N.useEffect(function(){return Es.push(a),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:m}),document.addEventListener("wheel",d,Cs),document.addEventListener("touchmove",d,Cs),document.addEventListener("touchstart",p,Cs),function(){Es=Es.filter(function(b){return b!==a}),document.removeEventListener("wheel",d,Cs),document.removeEventListener("touchmove",d,Cs),document.removeEventListener("touchstart",p,Cs)}},[]);var y=e.removeScrollBar,w=e.inert;return N.createElement(N.Fragment,null,w?N.createElement(a,{styles:CP(i)}):null,y?N.createElement(hP,{gapMode:e.gapMode}):null)}function kP(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const SP=eP(B3,AP);var R3=N.forwardRef(function(e,t){return N.createElement(Gd,yr({},e,{ref:t,sideCar:SP}))});R3.classNames=Gd.classNames;function Kw(e){var t=e.match(/^var\((.*)\)$/);return t?t[1]:e}function IP(e,t){var n=e;for(var r of t){if(!(r in n))throw new Error("Path ".concat(t.join(" -> ")," does not exist in object"));n=n[r]}return n}function N3(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r={};for(var i in e){var a=e[i],c=[...n,i];typeof a=="string"||typeof a=="number"||a==null?r[i]=t(a,c):typeof a=="object"&&!Array.isArray(a)?r[i]=N3(a,t,c):console.warn('Skipping invalid key "'.concat(c.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(a)?"Array":typeof a,'"'))}return r}function Yw(e,t){var n={};if(typeof t=="object"){var r=e;N3(t,(u,d)=>{if(u!=null){var f=IP(r,d);n[Kw(f)]=String(u)}})}else{var i=e;for(var a in i){var c=i[a];c!=null&&(n[Kw(a)]=c)}}return Object.defineProperty(n,"toString",{value:function(){return Object.keys(this).map(d=>"".concat(d,":").concat(this[d])).join(";")},writable:!1}),n}var oc={exports:{}},jP=oc.exports,Jw;function BP(){return Jw||(Jw=1,(function(e,t){(function(n,r){var i="1.0.41",a="",c="?",u="function",d="undefined",f="object",p="string",g="major",m="model",y="name",w="type",b="vendor",E="version",A="architecture",j="console",S="mobile",k="tablet",I="smarttv",P="wearable",_="embedded",T=500,M="Amazon",V="Apple",Q="ASUS",Z="BlackBerry",G="Browser",se="Chrome",$="Edge",X="Firefox",te="Google",z="Honor",J="Huawei",Y="Lenovo",L="LG",ee="Microsoft",we="Motorola",oe="Nvidia",le="OnePlus",he="Opera",Ce="OPPO",_e="Samsung",Oe="Sharp",Ve="Sony",Cn="Xiaomi",En="Zebra",Mt="Facebook",An="Chromium OS",zn="Mac OS",kn=" Browser",ua=function(Pe,Fe){var Be={};for(var qe in Pe)Fe[qe]&&Fe[qe].length%2===0?Be[qe]=Fe[qe].concat(Pe[qe]):Be[qe]=Pe[qe];return Be},Ko=function(Pe){for(var Fe={},Be=0;Be<Pe.length;Be++)Fe[Pe[Be].toUpperCase()]=Pe[Be];return Fe},Qi=function(Pe,Fe){return typeof Pe===p?Un(Fe).indexOf(Un(Pe))!==-1:!1},Un=function(Pe){return Pe.toLowerCase()},eo=function(Pe){return typeof Pe===p?Pe.replace(/[^\d\.]/g,a).split(".")[0]:r},Yo=function(Pe,Fe){if(typeof Pe===p)return Pe=Pe.replace(/^\s\s*/,a),typeof Fe===d?Pe:Pe.substring(0,T)},to=function(Pe,Fe){for(var Be=0,qe,Wn,Qt,Le,Ie,Gt;Be<Fe.length&&!Ie;){var Jo=Fe[Be],kr=Fe[Be+1];for(qe=Wn=0;qe<Jo.length&&!Ie&&Jo[qe];)if(Ie=Jo[qe++].exec(Pe),Ie)for(Qt=0;Qt<kr.length;Qt++)Gt=Ie[++Wn],Le=kr[Qt],typeof Le===f&&Le.length>0?Le.length===2?typeof Le[1]==u?this[Le[0]]=Le[1].call(this,Gt):this[Le[0]]=Le[1]:Le.length===3?typeof Le[1]===u&&!(Le[1].exec&&Le[1].test)?this[Le[0]]=Gt?Le[1].call(this,Gt,Le[2]):r:this[Le[0]]=Gt?Gt.replace(Le[1],Le[2]):r:Le.length===4&&(this[Le[0]]=Gt?Le[3].call(this,Gt.replace(Le[1],Le[2])):r):this[Le]=Gt||r;Be+=2}},no=function(Pe,Fe){for(var Be in Fe)if(typeof Fe[Be]===f&&Fe[Be].length>0){for(var qe=0;qe<Fe[Be].length;qe++)if(Qi(Fe[Be][qe],Pe))return Be===c?r:Be}else if(Qi(Fe[Be],Pe))return Be===c?r:Be;return Fe.hasOwnProperty("*")?Fe["*"]:Pe},ml={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},da={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Gi={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[E,[y,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[E,[y,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[y,E],[/opios[\/ ]+([\w\.]+)/i],[E,[y,he+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[E,[y,he+" GX"]],[/\bopr\/([\w\.]+)/i],[E,[y,he]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[E,[y,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[E,[y,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[y,E],[/quark(?:pc)?\/([-\w\.]+)/i],[E,[y,"Quark"]],[/\bddg\/([\w\.]+)/i],[E,[y,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[E,[y,"UC"+G]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[E,[y,"WeChat"]],[/konqueror\/([\w\.]+)/i],[E,[y,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[E,[y,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[E,[y,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[E,[y,"Smart Lenovo "+G]],[/(avast|avg)\/([\w\.]+)/i],[[y,/(.+)/,"$1 Secure "+G],E],[/\bfocus\/([\w\.]+)/i],[E,[y,X+" Focus"]],[/\bopt\/([\w\.]+)/i],[E,[y,he+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[E,[y,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[E,[y,"Dolphin"]],[/coast\/([\w\.]+)/i],[E,[y,he+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[E,[y,"MIUI"+kn]],[/fxios\/([\w\.-]+)/i],[E,[y,X]],[/\bqihoobrowser\/?([\w\.]*)/i],[E,[y,"360"]],[/\b(qq)\/([\w\.]+)/i],[[y,/(.+)/,"$1Browser"],E],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[y,/(.+)/,"$1"+kn],E],[/samsungbrowser\/([\w\.]+)/i],[E,[y,_e+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[E,[y,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[y,"Sogou Mobile"],E],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[y,E],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[y],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[E,y],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[y,Mt],E],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[y,E],[/\bgsa\/([\w\.]+) .*safari\//i],[E,[y,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[E,[y,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[E,[y,se+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[y,se+" WebView"],E],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[E,[y,"Android "+G]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[y,E],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[E,[y,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[E,y],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[y,[E,no,ml]],[/(webkit|khtml)\/([\w\.]+)/i],[y,E],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[y,"Netscape"],E],[/(wolvic|librewolf)\/([\w\.]+)/i],[y,E],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[E,[y,X+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[y,[E,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[y,[E,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[A,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[A,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[A,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[A,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[A,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[A,/ower/,a,Un]],[/ sun4\w[;\)]/i],[[A,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[A,Un]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[m,[b,_e],[w,k]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[m,[b,_e],[w,S]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[m,[b,V],[w,S]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[m,[b,V],[w,k]],[/(macintosh);/i],[m,[b,V]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[m,[b,Oe],[w,S]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[m,[b,z],[w,k]],[/honor([-\w ]+)[;\)]/i],[m,[b,z],[w,S]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[m,[b,J],[w,k]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[m,[b,J],[w,S]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[m,/_/g," "],[b,Cn],[w,k]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[m,/_/g," "],[b,Cn],[w,S]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[m,[b,Ce],[w,S]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[m,[b,no,{OnePlus:["304","403","203"],"*":Ce}],[w,k]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[m,[b,"Vivo"],[w,S]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[m,[b,"Realme"],[w,S]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[m,[b,we],[w,S]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[m,[b,we],[w,k]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[m,[b,L],[w,k]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[m,[b,L],[w,S]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[m,[b,Y],[w,k]],[/(nokia) (t[12][01])/i],[b,m,[w,k]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[m,/_/g," "],[w,S],[b,"Nokia"]],[/(pixel (c|tablet))\b/i],[m,[b,te],[w,k]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[m,[b,te],[w,S]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[m,[b,Ve],[w,S]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[m,"Xperia Tablet"],[b,Ve],[w,k]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[m,[b,le],[w,S]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[m,[b,M],[w,k]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[m,/(.+)/g,"Fire Phone $1"],[b,M],[w,S]],[/(playbook);[-\w\),; ]+(rim)/i],[m,b,[w,k]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[m,[b,Z],[w,S]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[m,[b,Q],[w,k]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[m,[b,Q],[w,S]],[/(nexus 9)/i],[m,[b,"HTC"],[w,k]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[b,[m,/_/g," "],[w,S]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[m,[b,"TCL"],[w,k]],[/(itel) ((\w+))/i],[[b,Un],m,[w,no,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[m,[b,"Acer"],[w,k]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[m,[b,"Meizu"],[w,S]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[m,[b,"Ulefone"],[w,S]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[m,[b,"Energizer"],[w,S]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[m,[b,"Cat"],[w,S]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[m,[b,"Smartfren"],[w,S]],[/droid.+; (a(?:015|06[35]|142p?))/i],[m,[b,"Nothing"],[w,S]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[m,[b,"Archos"],[w,k]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[m,[b,"Archos"],[w,S]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[b,m,[w,k]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[b,m,[w,S]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[b,m,[w,k]],[/(surface duo)/i],[m,[b,ee],[w,k]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[m,[b,"Fairphone"],[w,S]],[/(u304aa)/i],[m,[b,"AT&T"],[w,S]],[/\bsie-(\w*)/i],[m,[b,"Siemens"],[w,S]],[/\b(rct\w+) b/i],[m,[b,"RCA"],[w,k]],[/\b(venue[\d ]{2,7}) b/i],[m,[b,"Dell"],[w,k]],[/\b(q(?:mv|ta)\w+) b/i],[m,[b,"Verizon"],[w,k]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[m,[b,"Barnes & Noble"],[w,k]],[/\b(tm\d{3}\w+) b/i],[m,[b,"NuVision"],[w,k]],[/\b(k88) b/i],[m,[b,"ZTE"],[w,k]],[/\b(nx\d{3}j) b/i],[m,[b,"ZTE"],[w,S]],[/\b(gen\d{3}) b.+49h/i],[m,[b,"Swiss"],[w,S]],[/\b(zur\d{3}) b/i],[m,[b,"Swiss"],[w,k]],[/\b((zeki)?tb.*\b) b/i],[m,[b,"Zeki"],[w,k]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[b,"Dragon Touch"],m,[w,k]],[/\b(ns-?\w{0,9}) b/i],[m,[b,"Insignia"],[w,k]],[/\b((nxa|next)-?\w{0,9}) b/i],[m,[b,"NextBook"],[w,k]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[b,"Voice"],m,[w,S]],[/\b(lvtel\-)?(v1[12]) b/i],[[b,"LvTel"],m,[w,S]],[/\b(ph-1) /i],[m,[b,"Essential"],[w,S]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[m,[b,"Envizen"],[w,k]],[/\b(trio[-\w\. ]+) b/i],[m,[b,"MachSpeed"],[w,k]],[/\btu_(1491) b/i],[m,[b,"Rotor"],[w,k]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[m,[b,oe],[w,k]],[/(sprint) (\w+)/i],[b,m,[w,S]],[/(kin\.[onetw]{3})/i],[[m,/\./g," "],[b,ee],[w,S]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[m,[b,En],[w,k]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[m,[b,En],[w,S]],[/smart-tv.+(samsung)/i],[b,[w,I]],[/hbbtv.+maple;(\d+)/i],[[m,/^/,"SmartTV"],[b,_e],[w,I]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[b,L],[w,I]],[/(apple) ?tv/i],[b,[m,V+" TV"],[w,I]],[/crkey/i],[[m,se+"cast"],[b,te],[w,I]],[/droid.+aft(\w+)( bui|\))/i],[m,[b,M],[w,I]],[/(shield \w+ tv)/i],[m,[b,oe],[w,I]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[m,[b,Oe],[w,I]],[/(bravia[\w ]+)( bui|\))/i],[m,[b,Ve],[w,I]],[/(mi(tv|box)-?\w+) bui/i],[m,[b,Cn],[w,I]],[/Hbbtv.*(technisat) (.*);/i],[b,m,[w,I]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[b,Yo],[m,Yo],[w,I]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[m,[w,I]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[w,I]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[b,m,[w,j]],[/droid.+; (shield)( bui|\))/i],[m,[b,oe],[w,j]],[/(playstation \w+)/i],[m,[b,Ve],[w,j]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[m,[b,ee],[w,j]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[m,[b,_e],[w,P]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[b,m,[w,P]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[m,[b,Ce],[w,P]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[m,[b,V],[w,P]],[/(opwwe\d{3})/i],[m,[b,le],[w,P]],[/(moto 360)/i],[m,[b,we],[w,P]],[/(smartwatch 3)/i],[m,[b,Ve],[w,P]],[/(g watch r)/i],[m,[b,L],[w,P]],[/droid.+; (wt63?0{2,3})\)/i],[m,[b,En],[w,P]],[/droid.+; (glass) \d/i],[m,[b,te],[w,P]],[/(pico) (4|neo3(?: link|pro)?)/i],[b,m,[w,P]],[/; (quest( \d| pro)?)/i],[m,[b,Mt],[w,P]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[b,[w,_]],[/(aeobc)\b/i],[m,[b,M],[w,_]],[/(homepod).+mac os/i],[m,[b,V],[w,_]],[/windows iot/i],[[w,_]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[m,[w,S]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[m,[w,k]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[w,k]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[w,S]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[m,[b,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[E,[y,$+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[y,E],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[E,[y,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[y,E],[/ladybird\//i],[[y,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[E,y]],os:[[/microsoft (windows) (vista|xp)/i],[y,E],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[y,[E,no,da]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[E,no,da],[y,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[E,/_/g,"."],[y,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[y,zn],[E,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[E,y],[/(ubuntu) ([\w\.]+) like android/i],[[y,/(.+)/,"$1 Touch"],E],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[y,E],[/\(bb(10);/i],[E,[y,Z]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[E,[y,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[E,[y,X+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[E,[y,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[E,[y,"watchOS"]],[/crkey\/([\d\.]+)/i],[E,[y,se+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[y,An],E],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[y,E],[/(sunos) ?([\w\.\d]*)/i],[[y,"Solaris"],E],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[y,E]]},It=function(Pe,Fe){if(typeof Pe===f&&(Fe=Pe,Pe=r),!(this instanceof It))return new It(Pe,Fe).getResult();var Be=typeof n!==d&&n.navigator?n.navigator:r,qe=Pe||(Be&&Be.userAgent?Be.userAgent:a),Wn=Be&&Be.userAgentData?Be.userAgentData:r,Qt=Fe?ua(Gi,Fe):Gi,Le=Be&&Be.userAgent==qe;return this.getBrowser=function(){var Ie={};return Ie[y]=r,Ie[E]=r,to.call(Ie,qe,Qt.browser),Ie[g]=eo(Ie[E]),Le&&Be&&Be.brave&&typeof Be.brave.isBrave==u&&(Ie[y]="Brave"),Ie},this.getCPU=function(){var Ie={};return Ie[A]=r,to.call(Ie,qe,Qt.cpu),Ie},this.getDevice=function(){var Ie={};return Ie[b]=r,Ie[m]=r,Ie[w]=r,to.call(Ie,qe,Qt.device),Le&&!Ie[w]&&Wn&&Wn.mobile&&(Ie[w]=S),Le&&Ie[m]=="Macintosh"&&Be&&typeof Be.standalone!==d&&Be.maxTouchPoints&&Be.maxTouchPoints>2&&(Ie[m]="iPad",Ie[w]=k),Ie},this.getEngine=function(){var Ie={};return Ie[y]=r,Ie[E]=r,to.call(Ie,qe,Qt.engine),Ie},this.getOS=function(){var Ie={};return Ie[y]=r,Ie[E]=r,to.call(Ie,qe,Qt.os),Le&&!Ie[y]&&Wn&&Wn.platform&&Wn.platform!="Unknown"&&(Ie[y]=Wn.platform.replace(/chrome os/i,An).replace(/macos/i,zn)),Ie},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return qe},this.setUA=function(Ie){return qe=typeof Ie===p&&Ie.length>T?Yo(Ie,T):Ie,this},this.setUA(qe),this};It.VERSION=i,It.BROWSER=Ko([y,E,g]),It.CPU=Ko([A]),It.DEVICE=Ko([m,b,w,j,S,I,k,P,_]),It.ENGINE=It.OS=Ko([y,E]),e.exports&&(t=e.exports=It),t.UAParser=It;var Ar=typeof n!==d&&(n.jQuery||n.Zepto);if(Ar&&!Ar.ua){var sr=new It;Ar.ua=sr.getResult(),Ar.ua.get=function(){return sr.getUA()},Ar.ua.set=function(Pe){sr.setUA(Pe);var Fe=sr.getResult();for(var Be in Fe)Ar.ua[Be]=Fe[Be]}}})(typeof window=="object"?window:jP)})(oc,oc.exports)),oc.exports}var _P=BP();/*!
1711
+ Copyright (c) 2023 Paul Miller (paulmillr.com)
1712
+ The library paulmillr-qr is dual-licensed under the Apache 2.0 OR MIT license.
1713
+ You can select a license of your choice.
1714
+ Licensed under the Apache License, Version 2.0 (the "License");
1715
+ you may not use this file except in compliance with the License.
1716
+ You may obtain a copy of the License at
1717
+
1718
+ http://www.apache.org/licenses/LICENSE-2.0
1719
+
1720
+ Unless required by applicable law or agreed to in writing, software
1721
+ distributed under the License is distributed on an "AS IS" BASIS,
1722
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1723
+ See the License for the specific language governing permissions and
1724
+ limitations under the License.
1725
+ */const ec={newline:10,reset:27};function PP(e){if(!Number.isSafeInteger(e))throw new Error(`integer expected: ${e}`)}function TP(e){if(!Number.isSafeInteger(e)||e<1||e>40)throw new Error(`Invalid version=${e}. Expected number [1..40]`)}function di(e,t){return e.toString(2).padStart(t,"0")}function Zw(e,t){const n=e%t;return n>=0?n:t+n}function hr(e,t){return new Array(e).fill(t)}function kh(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24}function Xw(e){let t=0,n=0;for(const a of e)t=Math.max(t,a.length),n+=a.length;const r=new Uint8Array(n);let i=0;for(let a=0;a<t;a++)for(const c of e)a<c.length&&(r[i++]=c[a]);return r}function OP(){let e,t=1/0;return{add(n,r){n>=t||(e=r,t=n)},get:()=>e,score:()=>t}}function eb(e){return{has:t=>e.includes(t),decode:t=>{if(!Array.isArray(t)||t.length&&typeof t[0]!="string")throw new Error("alphabet.decode input should be array of strings");return t.map(n=>{if(typeof n!="string")throw new Error(`alphabet.decode: not string element=${n}`);const r=e.indexOf(n);if(r===-1)throw new Error(`Unknown letter: "${n}". Allowed: ${e}`);return r})},encode:t=>{if(!Array.isArray(t)||t.length&&typeof t[0]!="number")throw new Error("alphabet.encode input should be an array of numbers");return t.map(n=>{if(PP(n),n<0||n>=e.length)throw new Error(`Digit index outside alphabet: ${n} (alphabet: ${e.length})`);return e[n]})}}}function tb(e){if(e.length!==32)throw new Error("expects 32 element matrix");const t=[1431655765,858993459,252645135,16711935,65535];for(let n=0;n<5;n++){const r=t[n]>>>0,i=1<<n,a=i<<1;for(let c=0;c<32;c+=a)for(let u=0;u<i;u++){const d=c+u,f=d+i,p=e[d]>>>0,g=e[f]>>>0,m=(p>>>i^g)&r;e[d]=(p^m<<i)>>>0,e[f]=(g^m)>>>0}}}const tc=e=>1<<(e&31)>>>0,fi=(e,t)=>t===0?0:t===32?4294967295:(1<<t)-1<<e>>>0;class zt{constructor(t,n){Eo(this,"defined");Eo(this,"value");Eo(this,"tailMask");Eo(this,"words");Eo(this,"fullWords");Eo(this,"height");Eo(this,"width");const{height:r,width:i}=zt.size(t);if(this.height=r,this.width=i,this.tailMask=fi(0,i&31||32),this.words=Math.ceil(i/32)|0,this.fullWords=Math.floor(i/32)|0,this.value=new Uint32Array(this.words*r),this.defined=new Uint32Array(this.value.length),n){if(n.length!==r)throw new Error(`Bitmap: data height mismatch: exp=${r} got=${n.length}`);for(let a=0;a<r;a++){const c=n[a];if(!c||c.length!==i)throw new Error(`Bitmap: data width mismatch at y=${a}: exp=${i} got=${c==null?void 0:c.length}`);for(let u=0;u<i;u++)this.set(u,a,c[u])}}}static size(t,n){if(typeof t=="number"&&(t={height:t,width:t}),!Number.isSafeInteger(t.height)&&t.height!==1/0)throw new Error(`Bitmap: invalid height=${t.height} (${typeof t.height})`);if(!Number.isSafeInteger(t.width)&&t.width!==1/0)throw new Error(`Bitmap: invalid width=${t.width} (${typeof t.width})`);return n!==void 0&&(t={width:Math.min(t.width,n.width),height:Math.min(t.height,n.height)}),t}static fromString(t){t=t.replace(/^\n+/g,"").replace(/\n+$/g,"");const n=t.split(String.fromCharCode(ec.newline)),r=n.length;let i;const a=[];for(const c of n){const u=c.split("").map(d=>{if(d==="X")return!0;if(d===" ")return!1;if(d!=="?")throw new Error(`Bitmap.fromString: unknown symbol=${d}`)});if(i!==void 0&&u.length!==i)throw new Error(`Bitmap.fromString different row sizes: width=${i} cur=${u.length}`);i=u.length,a.push(u)}return i===void 0&&(i=0),new zt({height:r,width:i},a)}point(t){return this.get(t.x,t.y)}isInside(t){return 0<=t.x&&t.x<this.width&&0<=t.y&&t.y<this.height}size(t){if(!t)return{height:this.height,width:this.width};const{x:n,y:r}=this.xy(t);return{height:this.height-r,width:this.width-n}}xy(t){if(typeof t=="number"&&(t={x:t,y:t}),!Number.isSafeInteger(t.x))throw new Error(`Bitmap: invalid x=${t.x}`);if(!Number.isSafeInteger(t.y))throw new Error(`Bitmap: invalid y=${t.y}`);return t.x=Zw(t.x,this.width),t.y=Zw(t.y,this.height),t}wordIndex(t,n){return n*this.words+(t>>>5)}bitIndex(t,n){return{word:this.wordIndex(t,n),bit:t&31}}isDefined(t,n){const r=this.wordIndex(t,n),i=tc(t);return(this.defined[r]&i)!==0}get(t,n){const r=this.wordIndex(t,n),i=tc(t);return(this.value[r]&i)!==0}maskWord(t,n,r){const{defined:i,value:a}=this;i[t]|=n,a[t]=a[t]&~n|-r&n}set(t,n,r){r!==void 0&&this.maskWord(this.wordIndex(t,n),tc(t),r)}fillRectConst(t,n,r,i,a){if(r<=0||i<=0||a===void 0)return;const{value:c,defined:u,words:d}=this,f=t>>>5,p=t+r-1>>>5,g=t&31,m=t+r-1&31;for(let y=0;y<i;y++){const w=(n+y)*d;if(f===p){const b=fi(g,m-g+1);this.maskWord(w+f,b,a);continue}this.maskWord(w+f,fi(g,32-g),a);for(let b=f+1;b<p;b++)u[w+b]=4294967295,c[w+b]=a?4294967295:0;this.maskWord(w+p,fi(0,m+1),a)}}rectWords(t,n,r,i,a){for(let c=0;c<i;c++){const u=n+c;for(let d=0;d<r;){const f=t+d,{bit:p,word:g}=this.bitIndex(f,u),m=Math.min(32-p,r-d);a(g,f,d,c,m),d+=m}}}rect(t,n,r){const{x:i,y:a}=this.xy(t),{height:c,width:u}=zt.size(n,this.size({x:i,y:a}));if(typeof r!="function")return this.fillRectConst(i,a,u,c,r),this;const{defined:d,value:f}=this;return this.rectWords(i,a,u,c,(p,g,m,y,w)=>{let b=0,E=f[p];for(let A=0;A<w;A++){const j=tc(g+A),S=r({x:m+A,y},(E&j)!==0);S!==void 0&&(b|=j,E=E&~j|-S&j)}d[p]|=b,f[p]=E}),this}rectRead(t,n,r){const{x:i,y:a}=this.xy(t),{height:c,width:u}=zt.size(n,this.size({x:i,y:a})),{value:d}=this;return this.rectWords(i,a,u,c,(f,p,g,m,y)=>{const w=d[f];for(let b=0;b<y;b++){const E=tc(p+b);r({x:g+b,y:m},(w&E)!==0)}}),this}hLine(t,n,r){return this.rect(t,{width:n,height:1},r)}vLine(t,n,r){return this.rect(t,{width:1,height:n},r)}border(t=2,n){const r=this.height+2*t,i=this.width+2*t,a=new zt({height:r,width:i});return a.rect(0,1/0,n),a.embed({x:t,y:t},this),a}embed(t,n){const{x:r,y:i}=this.xy(t),{height:a,width:c}=zt.size(n.size(),this.size({x:r,y:i}));if(c<=0||a<=0)return this;const{value:u,defined:d}=this,{words:f,value:p}=n;for(let g=0;g<a;g++){const m=g*f;for(let y=0;y<c;){const w=r+y,{word:b,bit:E}=this.bitIndex(w,i+g),{word:A,bit:j}=n.bitIndex(y,g),S=Math.min(32-E,c-y),k=p[A],I=j&&A+1<m+f?p[A+1]:0,P=j?(k>>>j|I<<32-j)>>>0:k,_=fi(E,S),T=(P&fi(0,S))<<E>>>0;d[b]|=_,u[b]=u[b]&~_|T,y+=S}}return this}rectSlice(t,n=this.size()){const{x:r,y:i}=this.xy(t),{height:a,width:c}=zt.size(n,this.size({x:r,y:i})),u=new zt({height:a,width:c});return this.rectRead({x:r,y:i},{height:a,width:c},(d,f)=>{this.isDefined(r+d.x,i+d.y)&&u.set(d.x,d.y,f)}),u}transpose(){const{height:t,width:n,value:r,defined:i,words:a}=this,c=new zt({height:n,width:t}),{words:u,value:d,defined:f,tailMask:p}=c,g=new Uint32Array(32),m=new Uint32Array(32);for(let y=0;y<t;y+=32)for(let w=0;w<a;w++){const b=Math.min(32,t-y);for(let E=0;E<b;E++){const A=this.wordIndex(32*w,y+E);g[E]=r[A],m[E]=i[A]}g.fill(0,b),m.fill(0,b),tb(g),tb(m);for(let E=0;E<32;E++){const A=w*32+E;if(A>=n)break;const j=c.wordIndex(y,A),S=y>>>5===u-1?p:4294967295;d[j]=g[E]&S,f[j]=m[E]&S}}return c}negate(){const t=this.defined.length;for(let n=0;n<t;n++)this.value[n]=~this.value[n],this.defined[n]=4294967295;return this}scale(t){if(!Number.isSafeInteger(t)||t>1024)throw new Error(`invalid scale factor: ${t}`);const{height:n,width:r}=this;return new zt({height:t*n,width:t*r}).rect({x:0,y:0},1/0,({x:a,y:c})=>this.get(a/t|0,c/t|0))}clone(){const t=new zt(this.size());return t.defined.set(this.defined),t.value.set(this.value),t}assertDrawn(){const{height:t,width:n,defined:r,tailMask:i,fullWords:a,words:c}=this;if(!(!t||!n))for(let u=0;u<t;u++){const d=u*c;for(let f=0;f<a;f++)if(r[d+f]!==4294967295)throw new Error("Invalid color type=undefined");if(c!==a&&(r[d+a]&i)!==i)throw new Error("Invalid color type=undefined")}}countPatternInRow(t,n,...r){if(n<=0||n>=32)throw new Error("wrong patternLen");const i=(1<<n)-1,{width:a,value:c,words:u}=this;let d=0;const f=this.wordIndex(0,t);for(let p=0,g=0;p<u;p++){const m=c[f+p],y=p===u-1&&a&31||32;for(let w=0;w<y;w++)if(g=(g<<1|m>>>w&1)&i,!(p*32+w+1<n)){for(const b of r)if(g===b){d++;break}}}return d}getRuns(t,n){const{width:r,value:i,words:a}=this;if(r===0)return;let c=0,u;const d=this.wordIndex(0,t);for(let f=0;f<a;f++){const p=i[d+f],g=f===a-1&&r&31||32;for(let m=0;m<g;m++){const y=(p&1<<m)!==0;if(y===u){c++;continue}u!==void 0&&n(c,u),u=y,c=1}}u!==void 0&&n(c,u)}popcnt(){const{height:t,width:n,words:r,fullWords:i,tailMask:a}=this;if(!t||!n)return 0;let c=0;for(let u=0;u<t;u++){const d=u*r;for(let f=0;f<i;f++)c+=kh(this.value[d+f]);r!==i&&(c+=kh(this.value[d+i]&a))}return c}countBoxes2x2(t){const{width:n,words:r}=this;if(n<2||(t|0)<0||t+1>=this.height)return 0;const i=this.wordIndex(0,t)|0,a=this.wordIndex(0,t+1)|0,u=(n&31)===0?2147483647:fi(0,n-1&31);let d=0;for(let f=0;f<r;f++){const p=this.value[i+f],g=this.value[a+f],m=~(p^g)>>>0,y=f+1<r?this.value[i+f+1]>>>0:0,w=~(p^(p>>>1|(y&1)<<31)>>>0)>>>0,b=f+1<r?this.value[a+f+1]>>>0:0,E=~(g^(g>>>1|(b&1)<<31)>>>0)>>>0;let A=(m&w&E)>>>0;f===r-1&&(A&=u),d+=kh(A)}return d}toString(){const t=String.fromCharCode(ec.newline);let n="";for(let r=0;r<this.height;r++){let i="";for(let a=0;a<this.width;a++){const c=this.get(a,r);i+=this.isDefined(a,r)?c?"X":" ":"?"}n+=i+(r+1===this.height?"":t)}return n}toRaw(){const t=Array.from({length:this.height},()=>new Array(this.width));for(let n=0;n<this.height;n++){const r=t[n];for(let i=0;i<this.width;i++)r[i]=this.get(i,n)}return t}toASCII(){const{height:t,width:n}=this;let r="";for(let i=0;i<t;i+=2){for(let a=0;a<n;a++){const c=this.get(a,i),u=i+1>=t?!0:this.get(a,i+1);!c&&!u?r+="█":!c&&u?r+="▀":c&&!u?r+="▄":c&&u&&(r+=" ")}r+=String.fromCharCode(ec.newline)}return r}toTerm(){const t=String.fromCharCode(ec.reset),n=t+"[0m",r=t+"[1;47m "+n,i=t+"[40m "+n,a=String.fromCharCode(ec.newline);let c="";for(let u=0;u<this.height;u++){for(let d=0;d<this.width;d++){const f=this.get(d,u);c+=f?i:r}c+=a}return c}toSVG(t=!0){let n=`<svg viewBox="0 0 ${this.width} ${this.height}" xmlns="http://www.w3.org/2000/svg">`,r="",i;return this.rectRead(0,1/0,(a,c)=>{if(!c)return;const{x:u,y:d}=a;if(!t){n+=`<rect x="${u}" y="${d}" width="1" height="1" />`;return}let f=`M${u} ${d}`;if(i){const g=`m${u-i.x} ${d-i.y}`;g.length<=f.length&&(f=g)}const p=u<10?`H${u}`:"h-1";r+=`${f}h1v1${p}Z`,i=a}),t&&(n+=`<path d="${r}"/>`),n+="</svg>",n}toGIF(){const t=u=>[u&255,u>>>8&255],n=[...t(this.width),...t(this.height)],r=[];this.rectRead(0,1/0,(u,d)=>r.push(+(d===!0)));const i=126,a=[71,73,70,56,55,97,...n,246,0,0,255,255,255,...hr(381,0),44,0,0,0,0,...n,0,7],c=Math.floor(r.length/i);for(let u=0;u<c;u++)a.push(i+1,128,...r.slice(i*u,i*(u+1)).map(d=>+d));return a.push(r.length%i+1,128,...r.slice(c*i).map(u=>+u)),a.push(1,129,0,59),new Uint8Array(a)}toImage(t=!1){const{height:n,width:r}=this.size(),i=new Uint8Array(n*r*(t?3:4));let a=0;for(let c=0;c<n;c++)for(let u=0;u<r;u++){const d=this.get(u,c)?0:255;i[a++]=d,i[a++]=d,i[a++]=d,t||(i[a++]=255)}return{height:n,width:r,data:i}}}const nb=["low","medium","quartile","high"],rb=["numeric","alphanumeric","byte","kanji","eci"],RP=[26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706],NP={low:[7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],medium:[10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],quartile:[13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],high:[17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]},MP={low:[1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],medium:[1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],quartile:[1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],high:[1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]},Nt={size:{encode:e=>21+4*(e-1),decode:e=>(e-17)/4},sizeType:e=>Math.floor((e+7)/17),alignmentPatterns(e){if(e===1)return[];const t=6,n=Nt.size.encode(e)-t-1,r=n-t,i=Math.ceil(r/28);let a=Math.floor(r/i);a%2?a+=1:r%i*2>=i&&(a+=2);const c=[t];for(let u=1;u<i;u++)c.push(n-(i-u)*a);return c.push(n),c},ECCode:{low:1,medium:0,quartile:3,high:2},formatMask:21522,formatBits(e,t){const n=Nt.ECCode[e]<<3|t;let r=n;for(let i=0;i<10;i++)r=r<<1^(r>>9)*1335;return(n<<10|r)^Nt.formatMask},versionBits(e){let t=e;for(let n=0;n<12;n++)t=t<<1^(t>>11)*7973;return e<<12|t},alphabet:{numeric:eb("0123456789"),alphanumerc:eb("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:")},lengthBits(e,t){return{numeric:[10,12,14],alphanumeric:[9,11,13],byte:[8,16,16],kanji:[8,10,12],eci:[0,0,0]}[t][Nt.sizeType(e)]},modeBits:{numeric:"0001",alphanumeric:"0010",byte:"0100",kanji:"1000",eci:"0111"},capacity(e,t){const n=RP[e-1],r=NP[t][e-1],i=MP[t][e-1],a=Math.floor(n/i)-r,c=i-n%i;return{words:r,numBlocks:i,shortBlocks:c,blockLen:a,capacity:(n-r*i)*8,total:(r+a)*i+i-c}}},t1=[(e,t)=>(e+t)%2==0,(e,t)=>t%2==0,(e,t)=>e%3==0,(e,t)=>(e+t)%3==0,(e,t)=>(Math.floor(t/2)+Math.floor(e/3))%2==0,(e,t)=>e*t%2+e*t%3==0,(e,t)=>(e*t%2+e*t%3)%2==0,(e,t)=>((e+t)%2+e*t%3)%2==0],me={tables:(e=>{const t=hr(256,0),n=hr(256,0);for(let r=0,i=1;r<256;r++)t[r]=i,n[i]=r,i<<=1,i&256&&(i^=e);return{exp:t,log:n}})(285),exp:e=>me.tables.exp[e],log(e){if(e===0)throw new Error(`GF.log: invalid arg=${e}`);return me.tables.log[e]%255},mul(e,t){return e===0||t===0?0:me.tables.exp[(me.tables.log[e]+me.tables.log[t])%255]},add:(e,t)=>e^t,pow:(e,t)=>me.tables.exp[me.tables.log[e]*t%255],inv(e){if(e===0)throw new Error(`GF.inverse: invalid arg=${e}`);return me.tables.exp[255-me.tables.log[e]]},polynomial(e){if(e.length==0)throw new Error("GF.polymomial: invalid length");if(e[0]!==0)return e;let t=0;for(;t<e.length-1&&e[t]==0;t++);return e.slice(t)},monomial(e,t){if(e<0)throw new Error(`GF.monomial: invalid degree=${e}`);if(t==0)return[0];let n=hr(e+1,0);return n[0]=t,me.polynomial(n)},degree:e=>e.length-1,coefficient:(e,t)=>e[me.degree(e)-t],mulPoly(e,t){if(e[0]===0||t[0]===0)return[0];const n=hr(e.length+t.length-1,0);for(let r=0;r<e.length;r++)for(let i=0;i<t.length;i++)n[r+i]=me.add(n[r+i],me.mul(e[r],t[i]));return me.polynomial(n)},mulPolyScalar(e,t){if(t==0)return[0];if(t==1)return e;const n=hr(e.length,0);for(let r=0;r<e.length;r++)n[r]=me.mul(e[r],t);return me.polynomial(n)},mulPolyMonomial(e,t,n){if(t<0)throw new Error("GF.mulPolyMonomial: invalid degree");if(n==0)return[0];const r=hr(e.length+t,0);for(let i=0;i<e.length;i++)r[i]=me.mul(e[i],n);return me.polynomial(r)},addPoly(e,t){if(e[0]===0)return t;if(t[0]===0)return e;let n=e,r=t;n.length>r.length&&([n,r]=[r,n]);let i=hr(r.length,0),a=r.length-n.length,c=r.slice(0,a);for(let u=0;u<c.length;u++)i[u]=c[u];for(let u=a;u<r.length;u++)i[u]=me.add(n[u-a],r[u]);return me.polynomial(i)},remainderPoly(e,t){const n=Array.from(e);for(let r=0;r<e.length-t.length+1;r++){const i=n[r];if(i!==0)for(let a=1;a<t.length;a++)t[a]!==0&&(n[r+a]=me.add(n[r+a],me.mul(t[a],i)))}return n.slice(e.length-t.length+1,n.length)},divisorPoly(e){let t=[1];for(let n=0;n<e;n++)t=me.mulPoly(t,[1,me.pow(2,n)]);return t},evalPoly(e,t){if(t==0)return me.coefficient(e,0);let n=e[0];for(let r=1;r<e.length;r++)n=me.add(me.mul(t,n),e[r]);return n},euclidian(e,t,n){me.degree(e)<me.degree(t)&&([e,t]=[t,e]);let r=e,i=t,a=[0],c=[1];for(;2*me.degree(i)>=n;){let f=r,p=a;if(r=i,a=c,r[0]===0)throw new Error("rLast[0] === 0");i=f;let g=[0];const m=me.inv(r[0]);for(;me.degree(i)>=me.degree(r)&&i[0]!==0;){const y=me.degree(i)-me.degree(r),w=me.mul(i[0],m);g=me.addPoly(g,me.monomial(y,w)),i=me.addPoly(i,me.mulPolyMonomial(r,y,w))}if(g=me.mulPoly(g,a),c=me.addPoly(g,p),me.degree(i)>=me.degree(r))throw new Error(`Division failed r: ${i}, rLast: ${r}`)}const u=me.coefficient(c,0);if(u==0)throw new Error("sigmaTilde(0) was zero");const d=me.inv(u);return[me.mulPolyScalar(c,d),me.mulPolyScalar(i,d)]}};function DP(e){return{encode(t){const n=me.divisorPoly(e),r=Array.from(t);return r.push(...n.slice(0,-1).fill(0)),Uint8Array.from(me.remainderPoly(r,n))},decode(t){const n=t.slice(),r=me.polynomial(Array.from(t));let i=hr(e,0),a=!1;for(let g=0;g<e;g++){const m=me.evalPoly(r,me.exp(g));i[i.length-1-g]=m,m!==0&&(a=!0)}if(!a)return n;i=me.polynomial(i);const c=me.monomial(e,1),[u,d]=me.euclidian(c,i,e),f=hr(me.degree(u),0);let p=0;for(let g=1;g<256&&p<f.length;g++)me.evalPoly(u,g)===0&&(f[p++]=me.inv(g));if(p!==f.length)throw new Error("RS.decode: invalid errors number");for(let g=0;g<f.length;g++){const m=n.length-1-me.log(f[g]);if(m<0)throw new Error("RS.decode: invalid error location");const y=me.inv(f[g]);let w=1;for(let b=0;b<f.length;b++)g!==b&&(w=me.mul(w,me.add(1,me.mul(f[b],y))));n[m]=me.add(n[m],me.mul(me.evalPoly(d,y),me.inv(w)))}return n}}}function LP(e,t){const{words:n,shortBlocks:r,numBlocks:i,blockLen:a,total:c}=Nt.capacity(e,t),u=DP(n);return{encode(d){const f=[],p=[];for(let w=0;w<i;w++){const b=w<r,E=a+(b?0:1);f.push(d.subarray(0,E)),p.push(u.encode(d.subarray(0,E))),d=d.subarray(E)}const g=Xw(f),m=Xw(p),y=new Uint8Array(g.length+m.length);return y.set(g),y.set(m,g.length),y},decode(d){if(d.length!==c)throw new Error(`interleave.decode: len(data)=${d.length}, total=${c}`);const f=[];for(let m=0;m<i;m++){const y=m<r;f.push(new Uint8Array(n+a+(y?0:1)))}let p=0;for(let m=0;m<a;m++)for(let y=0;y<i;y++)f[y][m]=d[p++];for(let m=r;m<i;m++)f[m][a]=d[p++];for(let m=a;m<a+n;m++)for(let y=0;y<i;y++){const w=y<r;f[y][m+(w?0:1)]=d[p++]}const g=[];for(const m of f)g.push(...Array.from(u.decode(m)).slice(0,-n));return Uint8Array.from(g)}}}function FP(e,t,n,r=!1){const i=Nt.size.encode(e);let a=new zt(i+2);const c=new zt(3).rect(0,3,!0).border(1,!1).border(1,!0).border(1,!1);a=a.embed(0,c).embed({x:-c.width,y:0},c).embed({x:0,y:-c.height},c),a=a.rectSlice(1,i);const u=new zt(1).rect(0,1,!0).border(1,!1).border(1,!0),d=Nt.alignmentPatterns(e);for(const f of d)for(const p of d)a.isDefined(p,f)||a.embed({x:p-2,y:f-2},u);a=a.hLine({x:0,y:6},1/0,({x:f})=>a.isDefined(f,6)?void 0:f%2==0).vLine({x:6,y:0},1/0,({y:f})=>a.isDefined(6,f)?void 0:f%2==0);{const f=Nt.formatBits(t,n),p=g=>!r&&(f>>g&1)==1;for(let g=0;g<6;g++)a.set(8,g,p(g));for(let g=6;g<8;g++)a.set(8,g+1,p(g));for(let g=8;g<15;g++)a.set(8,i-15+g,p(g));for(let g=0;g<8;g++)a.set(i-g-1,8,p(g));for(let g=8;g<9;g++)a.set(15-g-1+1,8,p(g));for(let g=9;g<15;g++)a.set(15-g-1,8,p(g));a.set(8,i-8,!r)}if(e>=7){const f=Nt.versionBits(e);for(let p=0;p<18;p+=1){const g=!r&&(f>>p&1)==1,m=Math.floor(p/3),y=p%3+i-8-3;a.set(y,m,g),a.set(m,y,g)}}return a}function zP(e,t,n){const r=e.height,i=t1[t];let a=-1,c=r-1;for(let u=r-1;u>0;u-=2){for(u==6&&(u=5);;c+=a){for(let d=0;d<2;d+=1){const f=u-d;e.isDefined(f,c)||n(f,c,i(f,c))}if(c+a<0||c+a>=r)break}a=-a}}function UP(e){let t="numeric";for(let n of e)if(!Nt.alphabet.numeric.has(n)&&(t="alphanumeric",!Nt.alphabet.alphanumerc.has(n)))return"byte";return t}function WP(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function ob(e,t,n,r,i=WP){let a="",c=n.length;if(r==="numeric"){const m=Nt.alphabet.numeric.decode(n.split("")),y=m.length;for(let w=0;w<y-2;w+=3)a+=di(m[w]*100+m[w+1]*10+m[w+2],10);y%3===1?a+=di(m[y-1],4):y%3===2&&(a+=di(m[y-2]*10+m[y-1],7))}else if(r==="alphanumeric"){const m=Nt.alphabet.alphanumerc.decode(n.split("")),y=m.length;for(let w=0;w<y-1;w+=2)a+=di(m[w]*45+m[w+1],11);y%2==1&&(a+=di(m[y-1],6))}else if(r==="byte"){const m=i(n);c=m.length,a=Array.from(m).map(y=>di(y,8)).join("")}else throw new Error("encode: unsupported type");const{capacity:u}=Nt.capacity(e,t),d=di(c,Nt.lengthBits(e,r));let f=Nt.modeBits[r]+d+a;if(f.length>u)throw new Error("Capacity overflow");f+="0".repeat(Math.min(4,Math.max(0,u-f.length))),f.length%8&&(f+="0".repeat(8-f.length%8));const p="1110110000010001";for(let m=0;f.length!==u;m++)f+=p[m%p.length];const g=Uint8Array.from(f.match(/(.{8})/g).map(m=>+`0b${m}`));return LP(e,t).encode(g)}function ib(e,t,n,r,i=!1){const a=FP(e,t,r,i);let c=0;const u=8*n.length;if(zP(a,r,(d,f,p)=>{let g=!1;c<u&&(g=(n[c>>>3]>>(7-c&7)&1)!==0,c++),a.set(d,f,g!==p)}),c!==u)throw new Error("QR: bytes left after draw");return a}const M3=e=>{const t=e.map(n=>n?"1":"0").join("");return{len:t.length,n:+`0b${t}`}},D3=[!0,!1,!0,!0,!0,!1,!0],L3=[!1,!1,!1,!1],Fu=M3([...D3,...L3]),sb=M3([...L3,...D3]);function $P(e){const{width:t,height:n}=e,r=e.transpose();let i=0;for(let p=0;p<n;p++)e.getRuns(p,g=>{g>=5&&(i+=3+(g-5))});for(let p=0;p<t;p++)r.getRuns(p,g=>{g>=5&&(i+=3+(g-5))});let a=0;for(let p=0;p<n-1;p++)a+=3*e.countBoxes2x2(p);let c=0;for(let p=0;p<n;p++)c+=40*e.countPatternInRow(p,Fu.len,Fu.n,sb.n);for(let p=0;p<t;p++)c+=40*r.countPatternInRow(p,Fu.len,Fu.n,sb.n);let u=0;u=e.popcnt();const d=u/(n*t)*100,f=10*Math.floor(Math.abs(d-50)/5);return i+a+c+f}function qP(e,t,n,r){if(r===void 0){const i=OP();for(let a=0;a<t1.length;a++)i.add($P(ib(e,t,n,a,!0)),a);r=i.get()}if(r===void 0)throw new Error("Cannot find mask");return ib(e,t,n,r)}function HP(e){if(!nb.includes(e))throw new Error(`Invalid error correction mode=${e}. Expected: ${nb}`)}function VP(e){if(!rb.includes(e))throw new Error(`Encoding: invalid mode=${e}. Expected: ${rb}`);if(e==="kanji"||e==="eci")throw new Error(`Encoding: ${e} is not supported (yet?).`)}function QP(e){if(![0,1,2,3,4,5,6,7].includes(e)||!t1[e])throw new Error(`Invalid mask=${e}. Expected number [0..7]`)}function GP(e,t="raw",n={}){const r=n.ecc!==void 0?n.ecc:"medium";HP(r);const i=n.encoding!==void 0?n.encoding:UP(e);VP(i),n.mask!==void 0&&QP(n.mask);let a=n.version,c,u=new Error("Unknown error");if(a!==void 0)TP(a),c=ob(a,r,e,i,n.textEncoder);else for(let p=1;p<=40;p++)try{c=ob(p,r,e,i,n.textEncoder),a=p;break}catch(g){u=g}if(!a||!c)throw u;let d=qP(a,r,c,n.mask);d.assertDrawn();const f=n.border===void 0?2:n.border;if(!Number.isSafeInteger(f))throw new Error(`invalid border type=${typeof f}`);if(d=d.border(f,!1),n.scale!==void 0&&(d=d.scale(n.scale)),t==="raw")return d.toRaw();if(t==="ascii")return d.toASCII();if(t==="svg")return d.toSVG(n.optimize);if(t==="gif")return d.toGIF();if(t==="term")return d.toTerm();throw new Error(`Unknown output: ${t}`)}function KP(e,t={}){const{errorCorrection:n,version:r}=t,i=GP(e,"raw",{border:0,ecc:n,scale:1,version:r});return{edgeLength:i.length,finderLength:7,grid:i,value:e}}function vr(e){const{arena:t,...n}=e;return W.jsxs(vr.Root,{...n,children:[W.jsx(vr.Finder,{}),W.jsx(vr.Cells,{}),t&&W.jsx(vr.Arena,{children:typeof t=="string"?W.jsx("img",{alt:"Arena",src:t,style:{borderRadius:1,height:"100%",objectFit:"cover",width:"100%"}}):t})]})}(function(e){e.Context=N.createContext(null);function t(a){const{children:c,size:u="100%",value:d,version:f,errorCorrection:p,...g}=a,m=N.useMemo(()=>(N.Children.map(c,S=>!N.isValidElement(S)||typeof S.type=="string"?null:"displayName"in S.type&&S.type.displayName==="Arena"?!0:null)??[]).some(Boolean),[c]),y=N.useMemo(()=>{let S=p;return m&&p==="low"&&(S="medium"),KP(d,{errorCorrection:S,version:f})},[d,m,p,f]),w=1,b=y.edgeLength*w,E=y.finderLength*w/2,A=m?Math.floor(b/4):0,j=N.useMemo(()=>({arenaSize:A,cellSize:w,edgeSize:b,qrcode:y,finderSize:E}),[A,b,y,E]);return W.jsx(e.Context.Provider,{value:j,children:W.jsxs("svg",{...g,width:u,height:u,viewBox:`0 0 ${b} ${b}`,xmlns:"http://www.w3.org/2000/svg",children:[W.jsx("title",{children:"QR Code"}),c]})})}e.Root=t,(function(a){a.displayName="Root"})(t=e.Root||(e.Root={}));function n(a){const{className:c,fill:u,innerClassName:d,radius:f=.25}=a,{cellSize:p,edgeSize:g,finderSize:m}=N.useContext(e.Context);function y({position:w}){let b=m-(m-p)-p/2;w==="top-right"&&(b=g-m-(m-p)-p/2);let E=m-(m-p)-p/2;w==="bottom-left"&&(E=g-m-(m-p)-p/2);let A=m-p*1.5;w==="top-right"&&(A=g-m-p*1.5);let j=m-p*1.5;return w==="bottom-left"&&(j=g-m-p*1.5),W.jsxs(W.Fragment,{children:[W.jsx("rect",{className:c,stroke:u??"currentColor",fill:"transparent",x:b,y:E,width:p+(m-p)*2,height:p+(m-p)*2,rx:2*f*(m-p),ry:2*f*(m-p),strokeWidth:p}),W.jsx("rect",{className:d,fill:u??"currentColor",x:A,y:j,width:p*3,height:p*3,rx:2*f*p,ry:2*f*p})]})}return W.jsxs(W.Fragment,{children:[W.jsx(y,{position:"top-left"}),W.jsx(y,{position:"top-right"}),W.jsx(y,{position:"bottom-left"})]})}e.Finder=n,(function(a){a.displayName="Finder"})(n=e.Finder||(e.Finder={}));function r(a){const{className:c,fill:u="currentColor",inset:d=!0,radius:f=1}=a,{arenaSize:p,cellSize:g,qrcode:m}=N.useContext(e.Context),{edgeLength:y,finderLength:w}=m,b=N.useMemo(()=>{let E="";for(let A=0;A<m.grid.length;A++){const j=m.grid[A];if(j)for(let S=0;S<j.length;S++){if(!j[S])continue;const I=y/2-p/2,P=I+p;if(A>=I&&A<=P&&S>=I&&S<=P)continue;const _=A<w&&S<w,T=A<w&&S>=y-w,M=A>=y-w&&S<w;if(_||T||M)continue;const V=d?g*.1:0,Q=(g-V*2)/2,Z=S*g+g/2,G=A*g+g/2,se=Z-Q,$=Z+Q,X=G-Q,te=G+Q,z=f*Q;E+=[`M ${se+z},${X}`,`L ${$-z},${X}`,`A ${z},${z} 0 0,1 ${$},${X+z}`,`L ${$},${te-z}`,`A ${z},${z} 0 0,1 ${$-z},${te}`,`L ${se+z},${te}`,`A ${z},${z} 0 0,1 ${se},${te-z}`,`L ${se},${X+z}`,`A ${z},${z} 0 0,1 ${se+z},${X}`,"z"].join(" ")}}return E},[p,g,y,w,m.grid,d,f]);return W.jsx("path",{className:c,d:b,fill:u})}e.Cells=r,(function(a){a.displayName="Cells"})(r=e.Cells||(e.Cells={}));function i(a){const{children:c}=a,{arenaSize:u,cellSize:d,edgeSize:f}=N.useContext(e.Context),p=Math.ceil(f/2-u/2),g=u+u%2,m=d/2;return W.jsx("foreignObject",{x:p,y:p,width:g,height:g,children:W.jsx("div",{style:{alignItems:"center",display:"flex",fontSize:1,justifyContent:"center",height:"100%",overflow:"hidden",width:"100%",padding:m,boxSizing:"border-box"},children:c})})}e.Arena=i,(function(a){a.displayName="Arena"})(i=e.Arena||(e.Arena={}))})(vr||(vr={}));function YP(e={}){let t,n,r,i;return a=>({id:"baseAccount",name:"Base Account",rdns:"app.base.account",type:"baseAccount",async connect({chainId:c,withCapabilities:u,...d}={}){var f;try{const p=await this.getProvider(),g=c??((f=a.chains[0])==null?void 0:f.id);if(!g)throw new Qo;const m=await p.request({method:"wallet_connect",params:[{capabilities:"capabilities"in d&&d.capabilities?d.capabilities:{},chainIds:[ce(g),...a.chains.filter(b=>b.id!==g).map(b=>ce(b.id))]}]}),y=m.accounts.map(b=>({address:pt(b.address),capabilities:b.capabilities??{}}));let w=Number(m.chainIds[0]);if(n||(n=this.onAccountsChanged.bind(this),p.on("accountsChanged",n)),r||(r=this.onChainChanged.bind(this),p.on("chainChanged",r)),i||(i=this.onDisconnect.bind(this),p.on("disconnect",i)),c&&w!==c){const b=await this.switchChain({chainId:c}).catch(E=>{if(E.code===We.code)throw E;return{id:w}});w=(b==null?void 0:b.id)??w}return{accounts:u?y:y.map(b=>b.address),chainId:w}}catch(p){throw/(user closed modal|accounts received is empty|user denied account|request rejected)/i.test(p.message)?new We(p):p}},async disconnect(){const c=await this.getProvider();n&&(c.removeListener("accountsChanged",n),n=void 0),r&&(c.removeListener("chainChanged",r),r=void 0),i&&(c.removeListener("disconnect",i),i=void 0),c.disconnect()},async getAccounts(){return(await(await this.getProvider()).request({method:"eth_accounts"})).map(u=>pt(u))},async getChainId(){const u=await(await this.getProvider()).request({method:"eth_chainId"});return Number(u)},async getProvider(){if(!t){const c=(()=>{var f;return typeof e.preference=="string"?{options:e.preference}:{...e.preference,options:((f=e.preference)==null?void 0:f.options)??"all"}})(),{createBaseAccountSDK:u}=await de(async()=>{const{createBaseAccountSDK:f}=await import("./index-9qmOgJOU.js");return{createBaseAccountSDK:f}},[]);t=u({...e,appChainIds:a.chains.map(f=>f.id),preference:c}).getProvider()}return t},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:c,chainId:u}){var p,g,m,y;const d=a.chains.find(w=>w.id===u);if(!d)throw new wn(new Qo);const f=await this.getProvider();try{return await f.request({method:"wallet_switchEthereumChain",params:[{chainId:ce(d.id)}]}),d}catch(w){if(w.code===4902)try{let b;c!=null&&c.blockExplorerUrls?b=c.blockExplorerUrls:b=(p=d.blockExplorers)!=null&&p.default.url?[(g=d.blockExplorers)==null?void 0:g.default.url]:[];let E;(m=c==null?void 0:c.rpcUrls)!=null&&m.length?E=c.rpcUrls:E=[((y=d.rpcUrls.default)==null?void 0:y.http[0])??""];const A={blockExplorerUrls:b,chainId:ce(u),chainName:(c==null?void 0:c.chainName)??d.name,iconUrls:c==null?void 0:c.iconUrls,nativeCurrency:(c==null?void 0:c.nativeCurrency)??d.nativeCurrency,rpcUrls:E};return await f.request({method:"wallet_addEthereumChain",params:[A]}),d}catch(b){throw new We(b)}throw new wn(w)}},onAccountsChanged(c){c.length===0?this.onDisconnect():a.emitter.emit("change",{accounts:c.map(u=>pt(u))})},onChainChanged(c){const u=Number(c);a.emitter.emit("change",{chainId:u})},async onDisconnect(c){a.emitter.emit("disconnect");const u=await this.getProvider();n&&(u.removeListener("accountsChanged",n),n=void 0),r&&(u.removeListener("chainChanged",r),r=void 0),i&&(u.removeListener("disconnect",i),i=void 0)}})}n1.type="metaMask";function n1(e={}){let t,n,r,i,a,c,u,d;return f=>({id:"metaMaskSDK",name:"MetaMask",rdns:["io.metamask","io.metamask.mobile"],type:n1.type,async setup(){const p=await this.getProvider();p!=null&&p.on&&(c||(c=this.onConnect.bind(this),p.on("connect",c)),i||(i=this.onAccountsChanged.bind(this),p.on("accountsChanged",i)))},async connect({chainId:p,isReconnecting:g,withCapabilities:m}={}){const y=await this.getProvider();u||(u=this.onDisplayUri,y.on("display_uri",u));let w=[];g&&(w=await this.getAccounts().catch(()=>[]));try{let b,E;w!=null&&w.length||(e.connectAndSign||e.connectWith?(e.connectAndSign?b=await t.connectAndSign({msg:e.connectAndSign}):e.connectWith&&(E=await t.connectWith({method:e.connectWith.method,params:e.connectWith.params})),w=await this.getAccounts()):w=(await t.connect()).map(S=>pt(S)));let A=await this.getChainId();if(p&&A!==p){const j=await this.switchChain({chainId:p}).catch(S=>{if(S.code===We.code)throw S;return{id:A}});A=(j==null?void 0:j.id)??A}return u&&(y.removeListener("display_uri",u),u=void 0),b?y.emit("connectAndSign",{accounts:w,chainId:A,signResponse:b}):E&&y.emit("connectWith",{accounts:w,chainId:A,connectWithResponse:E}),c&&(y.removeListener("connect",c),c=void 0),i||(i=this.onAccountsChanged.bind(this),y.on("accountsChanged",i)),a||(a=this.onChainChanged.bind(this),y.on("chainChanged",a)),d||(d=this.onDisconnect.bind(this),y.on("disconnect",d)),{accounts:m?w.map(j=>({address:j,capabilities:{}})):w,chainId:A}}catch(b){const E=b;throw E.code===We.code?new We(E):E.code===wr.code?new wr(E):E}},async disconnect(){const p=await this.getProvider();a&&(p.removeListener("chainChanged",a),a=void 0),d&&(p.removeListener("disconnect",d),d=void 0),c||(c=this.onConnect.bind(this),p.on("connect",c)),await t.terminate()},async getAccounts(){return(await(await this.getProvider()).request({method:"eth_accounts"})).map(m=>pt(m))},async getChainId(){const p=await this.getProvider(),g=p.getChainId()||await(p==null?void 0:p.request({method:"eth_chainId"}));return Number(g)},async getProvider(){async function p(){var b,E,A,j,S;const g=await(async()=>{const{default:k}=await de(async()=>{const{default:I}=await import("./metamask-sdk-DWKTYpSR.js");return{default:I}},[]);return typeof k!="function"&&typeof k.default=="function"?k.default:k})(),m={};for(const k of f.chains)m[ce(k.id)]=(b=F5({chain:k,transports:f.transports}))==null?void 0:b[0];t=new g({_source:"wagmi",forceDeleteProvider:!1,forceInjectProvider:!1,injectProvider:!1,...e,readonlyRPCMap:m,dappMetadata:{...e.dappMetadata,name:(E=e.dappMetadata)!=null&&E.name?(A=e.dappMetadata)==null?void 0:A.name:"wagmi",url:(j=e.dappMetadata)!=null&&j.url?(S=e.dappMetadata)==null?void 0:S.url:typeof window<"u"?window.location.origin:"https://wagmi.sh"},useDeeplink:e.useDeeplink??!0});const y=await t.init(),w=y!=null&&y.activeProvider?y.activeProvider:t.getProvider();if(!w)throw new gn;return w}return n||(r||(r=p()),n=await r),n},async isAuthorized(){try{return!!(await Xs(()=>Fd(()=>this.getAccounts(),{timeout:200}),{delay:201,retryCount:3})).length}catch{return!1}},async switchChain({addEthereumChainParameter:p,chainId:g}){var E,A;const m=await this.getProvider(),y=f.chains.find(j=>j.id===g);if(!y)throw new wn(new Qo);try{return await m.request({method:"wallet_switchEthereumChain",params:[{chainId:ce(g)}]}),await w(),await b(g),y}catch(j){const S=j;if(S.code===We.code)throw new We(S);if(S.code===4902||((A=(E=S==null?void 0:S.data)==null?void 0:E.originalError)==null?void 0:A.code)===4902)try{return await m.request({method:"wallet_addEthereumChain",params:[{blockExplorerUrls:(()=>{const{default:k,...I}=y.blockExplorers??{};if(p!=null&&p.blockExplorerUrls)return p.blockExplorerUrls;if(k)return[k.url,...Object.values(I).map(P=>P.url)]})(),chainId:ce(g),chainName:(p==null?void 0:p.chainName)??y.name,iconUrls:p==null?void 0:p.iconUrls,nativeCurrency:(p==null?void 0:p.nativeCurrency)??y.nativeCurrency,rpcUrls:(()=>{var k,I;return(k=p==null?void 0:p.rpcUrls)!=null&&k.length?p.rpcUrls:[((I=y.rpcUrls.default)==null?void 0:I.http[0])??""]})()}]}),await w(),await b(g),y}catch(k){const I=k;throw I.code===We.code?new We(I):new wn(I)}throw new wn(S)}async function w(){await Xs(async()=>{const j=tr(await m.request({method:"eth_chainId"}));if(j!==g)throw new Error("User rejected switch after adding network.");return j},{delay:50,retryCount:20})}async function b(j){await new Promise(S=>{const k=(I=>{"chainId"in I&&I.chainId===j&&(f.emitter.off("change",k),S())});f.emitter.on("change",k),f.emitter.emit("change",{chainId:j})})}},async onAccountsChanged(p){if(p.length===0)if(t.isExtensionActive())this.onDisconnect();else return;else if(f.emitter.listenerCount("connect")){const g=(await this.getChainId()).toString();this.onConnect({chainId:g})}else f.emitter.emit("change",{accounts:p.map(g=>pt(g))})},onChainChanged(p){const g=Number(p);f.emitter.emit("change",{chainId:g})},async onConnect(p){const g=await this.getAccounts();if(g.length===0)return;const m=Number(p.chainId);f.emitter.emit("connect",{accounts:g,chainId:m});const y=await this.getProvider();c&&(y.removeListener("connect",c),c=void 0),i||(i=this.onAccountsChanged.bind(this),y.on("accountsChanged",i)),a||(a=this.onChainChanged.bind(this),y.on("chainChanged",a)),d||(d=this.onDisconnect.bind(this),y.on("disconnect",d))},async onDisconnect(p){const g=await this.getProvider();p&&p.code===1013&&g&&(await this.getAccounts()).length||(f.emitter.emit("disconnect"),a&&(g.removeListener("chainChanged",a),a=void 0),d&&(g.removeListener("disconnect",d),d=void 0),c||(c=this.onConnect.bind(this),g.on("connect",c)))},onDisplayUri(p){f.emitter.emit("message",{type:"display_uri",data:p})}})}r1.type="safe";function r1(e={}){const{shimDisconnect:t=!1}=e;let n,r;return i=>({id:"safe",name:"Safe",type:r1.type,async connect({withCapabilities:a}={}){var f;const c=await this.getProvider();if(!c)throw new gn;const u=await this.getAccounts(),d=await this.getChainId();return r||(r=this.onDisconnect.bind(this),c.on("disconnect",r)),t&&await((f=i.storage)==null?void 0:f.removeItem("safe.disconnected")),{accounts:a?u.map(p=>({address:p,capabilities:{}})):u,chainId:d}},async disconnect(){var c;const a=await this.getProvider();if(!a)throw new gn;r&&(a.removeListener("disconnect",r),r=void 0),t&&await((c=i.storage)==null?void 0:c.setItem("safe.disconnected",!0))},async getAccounts(){const a=await this.getProvider();if(!a)throw new gn;return(await a.request({method:"eth_accounts"})).map(pt)},async getProvider(){if(typeof window<"u"&&(window==null?void 0:window.parent)!==window){if(!n){const{default:c}=await de(async()=>{const{default:p}=await import("./index-BF417SGJ.js");return{default:p}},__vite__mapDeps([0,1])),u=new c(e),d=await Fd(()=>u.safe.getInfo(),{timeout:e.unstable_getInfoTimeout??10});if(!d)throw new Error("Could not load Safe information");const f=await(async()=>{const p=await de(()=>import("./index-DuvDGHB2.js").then(g=>g.i),__vite__mapDeps([2,1,3]));return typeof p.SafeAppProvider!="function"&&typeof p.default.SafeAppProvider=="function"?p.default.SafeAppProvider:p.SafeAppProvider})();n=new f(d,u)}return n}},async getChainId(){const a=await this.getProvider();if(!a)throw new gn;return Number(a.chainId)},async isAuthorized(){var a;try{return t&&await((a=i.storage)==null?void 0:a.getItem("safe.disconnected"))?!1:!!(await this.getAccounts()).length}catch{return!1}},onAccountsChanged(){},onChainChanged(){},onDisconnect(){i.emitter.emit("disconnect")}})}o1.type="walletConnect";function o1(e){const t=e.isNewChainsStale??!0;let n,r;const i="eip155";let a,c,u,d,f,p;return g=>({id:"walletConnect",name:"WalletConnect",type:o1.type,async setup(){const m=await this.getProvider().catch(()=>null);m&&(u||(u=this.onConnect.bind(this),m.on("connect",u)),f||(f=this.onSessionDelete.bind(this),m.on("session_delete",f)))},async connect({chainId:m,withCapabilities:y,...w}={}){var b,E;try{const A=await this.getProvider();if(!A)throw new gn;d||(d=this.onDisplayUri,A.on("display_uri",d));let j=m;if(!j){const P=await((b=g.storage)==null?void 0:b.getItem("state"))??{};g.chains.some(T=>T.id===P.chainId)?j=P.chainId:j=(E=g.chains[0])==null?void 0:E.id}if(!j)throw new Error("No chains found on connector.");const S=await this.isChainsStale();if(A.session&&S&&await A.disconnect(),!A.session||S){const P=g.chains.filter(_=>_.id!==j).map(_=>_.id);await A.connect({optionalChains:[j,...P],..."pairingTopic"in w?{pairingTopic:w.pairingTopic}:{}}),this.setRequestedChainsIds(g.chains.map(_=>_.id))}const k=(await A.enable()).map(P=>pt(P));let I=await this.getChainId();if(m&&I!==m){const P=await this.switchChain({chainId:m}).catch(_=>{var T;if(_.code===We.code&&((T=_.cause)==null?void 0:T.message)!=="Missing or invalid. request() method: wallet_addEthereumChain")throw _;return{id:I}});I=(P==null?void 0:P.id)??I}return d&&(A.removeListener("display_uri",d),d=void 0),u&&(A.removeListener("connect",u),u=void 0),a||(a=this.onAccountsChanged.bind(this),A.on("accountsChanged",a)),c||(c=this.onChainChanged.bind(this),A.on("chainChanged",c)),p||(p=this.onDisconnect.bind(this),A.on("disconnect",p)),f||(f=this.onSessionDelete.bind(this),A.on("session_delete",f)),{accounts:y?k.map(P=>({address:P,capabilities:{}})):k,chainId:I}}catch(A){throw/(user rejected|connection request reset)/i.test(A==null?void 0:A.message)?new We(A):A}},async disconnect(){const m=await this.getProvider();try{await(m==null?void 0:m.disconnect())}catch(y){if(!/No matching key/i.test(y.message))throw y}finally{c&&(m==null||m.removeListener("chainChanged",c),c=void 0),p&&(m==null||m.removeListener("disconnect",p),p=void 0),u||(u=this.onConnect.bind(this),m==null||m.on("connect",u)),a&&(m==null||m.removeListener("accountsChanged",a),a=void 0),f&&(m==null||m.removeListener("session_delete",f),f=void 0),this.setRequestedChainsIds([])}},async getAccounts(){return(await this.getProvider()).accounts.map(y=>pt(y))},async getProvider({chainId:m}={}){var w;async function y(){const b=g.chains.map(A=>A.id);if(!b.length)return;const{EthereumProvider:E}=await de(async()=>{const{EthereumProvider:A}=await import("./index.es-CpQtULc3.js").then(j=>j.X);return{EthereumProvider:A}},__vite__mapDeps([4,3]));return await E.init({...e,disableProviderPing:!0,optionalChains:b,projectId:e.projectId,rpcMap:Object.fromEntries(g.chains.map(A=>{const[j]=F5({chain:A,transports:g.transports});return[A.id,j]})),showQrModal:e.showQrModal??!0})}return n||(r||(r=y()),n=await r,n==null||n.events.setMaxListeners(Number.POSITIVE_INFINITY)),m&&await((w=this.switchChain)==null?void 0:w.call(this,{chainId:m})),n},async getChainId(){return(await this.getProvider()).chainId},async isAuthorized(){try{const[m,y]=await Promise.all([this.getAccounts(),this.getProvider()]);return m.length?await this.isChainsStale()&&y.session?(await y.disconnect().catch(()=>{}),!1):!0:!1}catch{return!1}},async switchChain({addEthereumChainParameter:m,chainId:y}){var E,A,j;const w=await this.getProvider();if(!w)throw new gn;const b=g.chains.find(S=>S.id===y);if(!b)throw new wn(new Qo);try{await Promise.all([new Promise(k=>{const I=({chainId:P})=>{P===y&&(g.emitter.off("change",I),k())};g.emitter.on("change",I)}),w.request({method:"wallet_switchEthereumChain",params:[{chainId:ce(y)}]})]);const S=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...S,y]),b}catch(S){const k=S;if(/(user rejected)/i.test(k.message))throw new We(k);try{let I;m!=null&&m.blockExplorerUrls?I=m.blockExplorerUrls:I=(E=b.blockExplorers)!=null&&E.default.url?[(A=b.blockExplorers)==null?void 0:A.default.url]:[];let P;(j=m==null?void 0:m.rpcUrls)!=null&&j.length?P=m.rpcUrls:P=[...b.rpcUrls.default.http];const _={blockExplorerUrls:I,chainId:ce(y),chainName:(m==null?void 0:m.chainName)??b.name,iconUrls:m==null?void 0:m.iconUrls,nativeCurrency:(m==null?void 0:m.nativeCurrency)??b.nativeCurrency,rpcUrls:P};await w.request({method:"wallet_addEthereumChain",params:[_]});const T=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...T,y]),b}catch(I){throw new We(I)}}},onAccountsChanged(m){m.length===0?this.onDisconnect():g.emitter.emit("change",{accounts:m.map(y=>pt(y))})},onChainChanged(m){const y=Number(m);g.emitter.emit("change",{chainId:y})},async onConnect(m){const y=Number(m.chainId),w=await this.getAccounts();g.emitter.emit("connect",{accounts:w,chainId:y})},async onDisconnect(m){this.setRequestedChainsIds([]),g.emitter.emit("disconnect");const y=await this.getProvider();a&&(y.removeListener("accountsChanged",a),a=void 0),c&&(y.removeListener("chainChanged",c),c=void 0),p&&(y.removeListener("disconnect",p),p=void 0),f&&(y.removeListener("session_delete",f),f=void 0),u||(u=this.onConnect.bind(this),y.on("connect",u))},onDisplayUri(m){g.emitter.emit("message",{type:"display_uri",data:m})},onSessionDelete(){this.onDisconnect()},getNamespaceChainsIds(){var y,w,b;return n?((b=(w=(y=n.session)==null?void 0:y.namespaces[i])==null?void 0:w.accounts)==null?void 0:b.map(E=>Number.parseInt(E.split(":")[1]||"",10)))??[]:[]},async getRequestedChainsIds(){var m;return await((m=g.storage)==null?void 0:m.getItem(this.requestedChainsStorageKey))??[]},async isChainsStale(){if(!t)return!1;const m=g.chains.map(b=>b.id),y=this.getNamespaceChainsIds();if(y.length&&!y.some(b=>m.includes(b)))return!1;const w=await this.getRequestedChainsIds();return!m.every(b=>w.includes(b))},async setRequestedChainsIds(m){var y;await((y=g.storage)==null?void 0:y.setItem(this.requestedChainsStorageKey,m))},get requestedChainsStorageKey(){return`${this.id}.requestedChains`}})}var md={},JP=768,As=VB({conditions:{defaultCondition:"smallScreen",conditionNames:["smallScreen","largeScreen"],responsiveArray:void 0}}),F3=i3({conditions:{defaultCondition:"smallScreen",conditionNames:["smallScreen","largeScreen"],responsiveArray:void 0}}),Hp=ZB({conditions:{defaultCondition:"base",conditionNames:["base","hover","active"],responsiveArray:void 0},styles:{background:{values:{accentColor:{conditions:{base:"ju367v9i",hover:"ju367v9j",active:"ju367v9k"},defaultClass:"ju367v9i"},accentColorForeground:{conditions:{base:"ju367v9l",hover:"ju367v9m",active:"ju367v9n"},defaultClass:"ju367v9l"},actionButtonBorder:{conditions:{base:"ju367v9o",hover:"ju367v9p",active:"ju367v9q"},defaultClass:"ju367v9o"},actionButtonBorderMobile:{conditions:{base:"ju367v9r",hover:"ju367v9s",active:"ju367v9t"},defaultClass:"ju367v9r"},actionButtonSecondaryBackground:{conditions:{base:"ju367v9u",hover:"ju367v9v",active:"ju367v9w"},defaultClass:"ju367v9u"},closeButton:{conditions:{base:"ju367v9x",hover:"ju367v9y",active:"ju367v9z"},defaultClass:"ju367v9x"},closeButtonBackground:{conditions:{base:"ju367va0",hover:"ju367va1",active:"ju367va2"},defaultClass:"ju367va0"},connectButtonBackground:{conditions:{base:"ju367va3",hover:"ju367va4",active:"ju367va5"},defaultClass:"ju367va3"},connectButtonBackgroundError:{conditions:{base:"ju367va6",hover:"ju367va7",active:"ju367va8"},defaultClass:"ju367va6"},connectButtonInnerBackground:{conditions:{base:"ju367va9",hover:"ju367vaa",active:"ju367vab"},defaultClass:"ju367va9"},connectButtonText:{conditions:{base:"ju367vac",hover:"ju367vad",active:"ju367vae"},defaultClass:"ju367vac"},connectButtonTextError:{conditions:{base:"ju367vaf",hover:"ju367vag",active:"ju367vah"},defaultClass:"ju367vaf"},connectionIndicator:{conditions:{base:"ju367vai",hover:"ju367vaj",active:"ju367vak"},defaultClass:"ju367vai"},downloadBottomCardBackground:{conditions:{base:"ju367val",hover:"ju367vam",active:"ju367van"},defaultClass:"ju367val"},downloadTopCardBackground:{conditions:{base:"ju367vao",hover:"ju367vap",active:"ju367vaq"},defaultClass:"ju367vao"},error:{conditions:{base:"ju367var",hover:"ju367vas",active:"ju367vat"},defaultClass:"ju367var"},generalBorder:{conditions:{base:"ju367vau",hover:"ju367vav",active:"ju367vaw"},defaultClass:"ju367vau"},generalBorderDim:{conditions:{base:"ju367vax",hover:"ju367vay",active:"ju367vaz"},defaultClass:"ju367vax"},menuItemBackground:{conditions:{base:"ju367vb0",hover:"ju367vb1",active:"ju367vb2"},defaultClass:"ju367vb0"},modalBackdrop:{conditions:{base:"ju367vb3",hover:"ju367vb4",active:"ju367vb5"},defaultClass:"ju367vb3"},modalBackground:{conditions:{base:"ju367vb6",hover:"ju367vb7",active:"ju367vb8"},defaultClass:"ju367vb6"},modalBorder:{conditions:{base:"ju367vb9",hover:"ju367vba",active:"ju367vbb"},defaultClass:"ju367vb9"},modalText:{conditions:{base:"ju367vbc",hover:"ju367vbd",active:"ju367vbe"},defaultClass:"ju367vbc"},modalTextDim:{conditions:{base:"ju367vbf",hover:"ju367vbg",active:"ju367vbh"},defaultClass:"ju367vbf"},modalTextSecondary:{conditions:{base:"ju367vbi",hover:"ju367vbj",active:"ju367vbk"},defaultClass:"ju367vbi"},profileAction:{conditions:{base:"ju367vbl",hover:"ju367vbm",active:"ju367vbn"},defaultClass:"ju367vbl"},profileActionHover:{conditions:{base:"ju367vbo",hover:"ju367vbp",active:"ju367vbq"},defaultClass:"ju367vbo"},profileForeground:{conditions:{base:"ju367vbr",hover:"ju367vbs",active:"ju367vbt"},defaultClass:"ju367vbr"},selectedOptionBorder:{conditions:{base:"ju367vbu",hover:"ju367vbv",active:"ju367vbw"},defaultClass:"ju367vbu"},standby:{conditions:{base:"ju367vbx",hover:"ju367vby",active:"ju367vbz"},defaultClass:"ju367vbx"}}},borderColor:{values:{accentColor:{conditions:{base:"ju367vc0",hover:"ju367vc1",active:"ju367vc2"},defaultClass:"ju367vc0"},accentColorForeground:{conditions:{base:"ju367vc3",hover:"ju367vc4",active:"ju367vc5"},defaultClass:"ju367vc3"},actionButtonBorder:{conditions:{base:"ju367vc6",hover:"ju367vc7",active:"ju367vc8"},defaultClass:"ju367vc6"},actionButtonBorderMobile:{conditions:{base:"ju367vc9",hover:"ju367vca",active:"ju367vcb"},defaultClass:"ju367vc9"},actionButtonSecondaryBackground:{conditions:{base:"ju367vcc",hover:"ju367vcd",active:"ju367vce"},defaultClass:"ju367vcc"},closeButton:{conditions:{base:"ju367vcf",hover:"ju367vcg",active:"ju367vch"},defaultClass:"ju367vcf"},closeButtonBackground:{conditions:{base:"ju367vci",hover:"ju367vcj",active:"ju367vck"},defaultClass:"ju367vci"},connectButtonBackground:{conditions:{base:"ju367vcl",hover:"ju367vcm",active:"ju367vcn"},defaultClass:"ju367vcl"},connectButtonBackgroundError:{conditions:{base:"ju367vco",hover:"ju367vcp",active:"ju367vcq"},defaultClass:"ju367vco"},connectButtonInnerBackground:{conditions:{base:"ju367vcr",hover:"ju367vcs",active:"ju367vct"},defaultClass:"ju367vcr"},connectButtonText:{conditions:{base:"ju367vcu",hover:"ju367vcv",active:"ju367vcw"},defaultClass:"ju367vcu"},connectButtonTextError:{conditions:{base:"ju367vcx",hover:"ju367vcy",active:"ju367vcz"},defaultClass:"ju367vcx"},connectionIndicator:{conditions:{base:"ju367vd0",hover:"ju367vd1",active:"ju367vd2"},defaultClass:"ju367vd0"},downloadBottomCardBackground:{conditions:{base:"ju367vd3",hover:"ju367vd4",active:"ju367vd5"},defaultClass:"ju367vd3"},downloadTopCardBackground:{conditions:{base:"ju367vd6",hover:"ju367vd7",active:"ju367vd8"},defaultClass:"ju367vd6"},error:{conditions:{base:"ju367vd9",hover:"ju367vda",active:"ju367vdb"},defaultClass:"ju367vd9"},generalBorder:{conditions:{base:"ju367vdc",hover:"ju367vdd",active:"ju367vde"},defaultClass:"ju367vdc"},generalBorderDim:{conditions:{base:"ju367vdf",hover:"ju367vdg",active:"ju367vdh"},defaultClass:"ju367vdf"},menuItemBackground:{conditions:{base:"ju367vdi",hover:"ju367vdj",active:"ju367vdk"},defaultClass:"ju367vdi"},modalBackdrop:{conditions:{base:"ju367vdl",hover:"ju367vdm",active:"ju367vdn"},defaultClass:"ju367vdl"},modalBackground:{conditions:{base:"ju367vdo",hover:"ju367vdp",active:"ju367vdq"},defaultClass:"ju367vdo"},modalBorder:{conditions:{base:"ju367vdr",hover:"ju367vds",active:"ju367vdt"},defaultClass:"ju367vdr"},modalText:{conditions:{base:"ju367vdu",hover:"ju367vdv",active:"ju367vdw"},defaultClass:"ju367vdu"},modalTextDim:{conditions:{base:"ju367vdx",hover:"ju367vdy",active:"ju367vdz"},defaultClass:"ju367vdx"},modalTextSecondary:{conditions:{base:"ju367ve0",hover:"ju367ve1",active:"ju367ve2"},defaultClass:"ju367ve0"},profileAction:{conditions:{base:"ju367ve3",hover:"ju367ve4",active:"ju367ve5"},defaultClass:"ju367ve3"},profileActionHover:{conditions:{base:"ju367ve6",hover:"ju367ve7",active:"ju367ve8"},defaultClass:"ju367ve6"},profileForeground:{conditions:{base:"ju367ve9",hover:"ju367vea",active:"ju367veb"},defaultClass:"ju367ve9"},selectedOptionBorder:{conditions:{base:"ju367vec",hover:"ju367ved",active:"ju367vee"},defaultClass:"ju367vec"},standby:{conditions:{base:"ju367vef",hover:"ju367veg",active:"ju367veh"},defaultClass:"ju367vef"}}},boxShadow:{values:{connectButton:{conditions:{base:"ju367vei",hover:"ju367vej",active:"ju367vek"},defaultClass:"ju367vei"},dialog:{conditions:{base:"ju367vel",hover:"ju367vem",active:"ju367ven"},defaultClass:"ju367vel"},profileDetailsAction:{conditions:{base:"ju367veo",hover:"ju367vep",active:"ju367veq"},defaultClass:"ju367veo"},selectedOption:{conditions:{base:"ju367ver",hover:"ju367ves",active:"ju367vet"},defaultClass:"ju367ver"},selectedWallet:{conditions:{base:"ju367veu",hover:"ju367vev",active:"ju367vew"},defaultClass:"ju367veu"},walletLogo:{conditions:{base:"ju367vex",hover:"ju367vey",active:"ju367vez"},defaultClass:"ju367vex"}}},color:{values:{accentColor:{conditions:{base:"ju367vf0",hover:"ju367vf1",active:"ju367vf2"},defaultClass:"ju367vf0"},accentColorForeground:{conditions:{base:"ju367vf3",hover:"ju367vf4",active:"ju367vf5"},defaultClass:"ju367vf3"},actionButtonBorder:{conditions:{base:"ju367vf6",hover:"ju367vf7",active:"ju367vf8"},defaultClass:"ju367vf6"},actionButtonBorderMobile:{conditions:{base:"ju367vf9",hover:"ju367vfa",active:"ju367vfb"},defaultClass:"ju367vf9"},actionButtonSecondaryBackground:{conditions:{base:"ju367vfc",hover:"ju367vfd",active:"ju367vfe"},defaultClass:"ju367vfc"},closeButton:{conditions:{base:"ju367vff",hover:"ju367vfg",active:"ju367vfh"},defaultClass:"ju367vff"},closeButtonBackground:{conditions:{base:"ju367vfi",hover:"ju367vfj",active:"ju367vfk"},defaultClass:"ju367vfi"},connectButtonBackground:{conditions:{base:"ju367vfl",hover:"ju367vfm",active:"ju367vfn"},defaultClass:"ju367vfl"},connectButtonBackgroundError:{conditions:{base:"ju367vfo",hover:"ju367vfp",active:"ju367vfq"},defaultClass:"ju367vfo"},connectButtonInnerBackground:{conditions:{base:"ju367vfr",hover:"ju367vfs",active:"ju367vft"},defaultClass:"ju367vfr"},connectButtonText:{conditions:{base:"ju367vfu",hover:"ju367vfv",active:"ju367vfw"},defaultClass:"ju367vfu"},connectButtonTextError:{conditions:{base:"ju367vfx",hover:"ju367vfy",active:"ju367vfz"},defaultClass:"ju367vfx"},connectionIndicator:{conditions:{base:"ju367vg0",hover:"ju367vg1",active:"ju367vg2"},defaultClass:"ju367vg0"},downloadBottomCardBackground:{conditions:{base:"ju367vg3",hover:"ju367vg4",active:"ju367vg5"},defaultClass:"ju367vg3"},downloadTopCardBackground:{conditions:{base:"ju367vg6",hover:"ju367vg7",active:"ju367vg8"},defaultClass:"ju367vg6"},error:{conditions:{base:"ju367vg9",hover:"ju367vga",active:"ju367vgb"},defaultClass:"ju367vg9"},generalBorder:{conditions:{base:"ju367vgc",hover:"ju367vgd",active:"ju367vge"},defaultClass:"ju367vgc"},generalBorderDim:{conditions:{base:"ju367vgf",hover:"ju367vgg",active:"ju367vgh"},defaultClass:"ju367vgf"},menuItemBackground:{conditions:{base:"ju367vgi",hover:"ju367vgj",active:"ju367vgk"},defaultClass:"ju367vgi"},modalBackdrop:{conditions:{base:"ju367vgl",hover:"ju367vgm",active:"ju367vgn"},defaultClass:"ju367vgl"},modalBackground:{conditions:{base:"ju367vgo",hover:"ju367vgp",active:"ju367vgq"},defaultClass:"ju367vgo"},modalBorder:{conditions:{base:"ju367vgr",hover:"ju367vgs",active:"ju367vgt"},defaultClass:"ju367vgr"},modalText:{conditions:{base:"ju367vgu",hover:"ju367vgv",active:"ju367vgw"},defaultClass:"ju367vgu"},modalTextDim:{conditions:{base:"ju367vgx",hover:"ju367vgy",active:"ju367vgz"},defaultClass:"ju367vgx"},modalTextSecondary:{conditions:{base:"ju367vh0",hover:"ju367vh1",active:"ju367vh2"},defaultClass:"ju367vh0"},profileAction:{conditions:{base:"ju367vh3",hover:"ju367vh4",active:"ju367vh5"},defaultClass:"ju367vh3"},profileActionHover:{conditions:{base:"ju367vh6",hover:"ju367vh7",active:"ju367vh8"},defaultClass:"ju367vh6"},profileForeground:{conditions:{base:"ju367vh9",hover:"ju367vha",active:"ju367vhb"},defaultClass:"ju367vh9"},selectedOptionBorder:{conditions:{base:"ju367vhc",hover:"ju367vhd",active:"ju367vhe"},defaultClass:"ju367vhc"},standby:{conditions:{base:"ju367vhf",hover:"ju367vhg",active:"ju367vhh"},defaultClass:"ju367vhf"}}}}},{conditions:{defaultCondition:"smallScreen",conditionNames:["smallScreen","largeScreen"],responsiveArray:void 0},styles:{alignItems:{values:{"flex-start":{conditions:{smallScreen:"ju367v0",largeScreen:"ju367v1"},defaultClass:"ju367v0"},"flex-end":{conditions:{smallScreen:"ju367v2",largeScreen:"ju367v3"},defaultClass:"ju367v2"},center:{conditions:{smallScreen:"ju367v4",largeScreen:"ju367v5"},defaultClass:"ju367v4"}}},display:{values:{none:{conditions:{smallScreen:"ju367v6",largeScreen:"ju367v7"},defaultClass:"ju367v6"},block:{conditions:{smallScreen:"ju367v8",largeScreen:"ju367v9"},defaultClass:"ju367v8"},flex:{conditions:{smallScreen:"ju367va",largeScreen:"ju367vb"},defaultClass:"ju367va"},inline:{conditions:{smallScreen:"ju367vc",largeScreen:"ju367vd"},defaultClass:"ju367vc"}}}}},{conditions:void 0,styles:{margin:{mappings:["marginTop","marginBottom","marginLeft","marginRight"]},marginX:{mappings:["marginLeft","marginRight"]},marginY:{mappings:["marginTop","marginBottom"]},padding:{mappings:["paddingTop","paddingBottom","paddingLeft","paddingRight"]},paddingX:{mappings:["paddingLeft","paddingRight"]},paddingY:{mappings:["paddingTop","paddingBottom"]},alignSelf:{values:{"flex-start":{defaultClass:"ju367ve"},"flex-end":{defaultClass:"ju367vf"},center:{defaultClass:"ju367vg"}}},backgroundSize:{values:{cover:{defaultClass:"ju367vh"}}},borderRadius:{values:{1:{defaultClass:"ju367vi"},6:{defaultClass:"ju367vj"},10:{defaultClass:"ju367vk"},13:{defaultClass:"ju367vl"},actionButton:{defaultClass:"ju367vm"},connectButton:{defaultClass:"ju367vn"},menuButton:{defaultClass:"ju367vo"},modal:{defaultClass:"ju367vp"},modalMobile:{defaultClass:"ju367vq"},"25%":{defaultClass:"ju367vr"},full:{defaultClass:"ju367vs"}}},borderStyle:{values:{solid:{defaultClass:"ju367vt"}}},borderWidth:{values:{0:{defaultClass:"ju367vu"},1:{defaultClass:"ju367vv"},2:{defaultClass:"ju367vw"},4:{defaultClass:"ju367vx"}}},cursor:{values:{pointer:{defaultClass:"ju367vy"},none:{defaultClass:"ju367vz"}}},pointerEvents:{values:{none:{defaultClass:"ju367v10"},all:{defaultClass:"ju367v11"}}},minHeight:{values:{8:{defaultClass:"ju367v12"},44:{defaultClass:"ju367v13"}}},flexDirection:{values:{row:{defaultClass:"ju367v14"},column:{defaultClass:"ju367v15"}}},fontFamily:{values:{body:{defaultClass:"ju367v16"}}},fontSize:{values:{12:{defaultClass:"ju367v17"},13:{defaultClass:"ju367v18"},14:{defaultClass:"ju367v19"},16:{defaultClass:"ju367v1a"},18:{defaultClass:"ju367v1b"},20:{defaultClass:"ju367v1c"},23:{defaultClass:"ju367v1d"}}},fontWeight:{values:{regular:{defaultClass:"ju367v1e"},medium:{defaultClass:"ju367v1f"},semibold:{defaultClass:"ju367v1g"},bold:{defaultClass:"ju367v1h"},heavy:{defaultClass:"ju367v1i"}}},gap:{values:{0:{defaultClass:"ju367v1j"},1:{defaultClass:"ju367v1k"},2:{defaultClass:"ju367v1l"},3:{defaultClass:"ju367v1m"},4:{defaultClass:"ju367v1n"},5:{defaultClass:"ju367v1o"},6:{defaultClass:"ju367v1p"},8:{defaultClass:"ju367v1q"},10:{defaultClass:"ju367v1r"},12:{defaultClass:"ju367v1s"},14:{defaultClass:"ju367v1t"},16:{defaultClass:"ju367v1u"},18:{defaultClass:"ju367v1v"},20:{defaultClass:"ju367v1w"},24:{defaultClass:"ju367v1x"},28:{defaultClass:"ju367v1y"},32:{defaultClass:"ju367v1z"},36:{defaultClass:"ju367v20"},44:{defaultClass:"ju367v21"},64:{defaultClass:"ju367v22"},"-1":{defaultClass:"ju367v23"}}},height:{values:{1:{defaultClass:"ju367v24"},2:{defaultClass:"ju367v25"},4:{defaultClass:"ju367v26"},8:{defaultClass:"ju367v27"},12:{defaultClass:"ju367v28"},20:{defaultClass:"ju367v29"},24:{defaultClass:"ju367v2a"},28:{defaultClass:"ju367v2b"},30:{defaultClass:"ju367v2c"},32:{defaultClass:"ju367v2d"},34:{defaultClass:"ju367v2e"},36:{defaultClass:"ju367v2f"},40:{defaultClass:"ju367v2g"},44:{defaultClass:"ju367v2h"},48:{defaultClass:"ju367v2i"},54:{defaultClass:"ju367v2j"},60:{defaultClass:"ju367v2k"},200:{defaultClass:"ju367v2l"},full:{defaultClass:"ju367v2m"},max:{defaultClass:"ju367v2n"}}},justifyContent:{values:{"flex-start":{defaultClass:"ju367v2o"},"flex-end":{defaultClass:"ju367v2p"},center:{defaultClass:"ju367v2q"},"space-between":{defaultClass:"ju367v2r"},"space-around":{defaultClass:"ju367v2s"}}},textAlign:{values:{left:{defaultClass:"ju367v2t"},center:{defaultClass:"ju367v2u"},inherit:{defaultClass:"ju367v2v"}}},marginBottom:{values:{0:{defaultClass:"ju367v2w"},1:{defaultClass:"ju367v2x"},2:{defaultClass:"ju367v2y"},3:{defaultClass:"ju367v2z"},4:{defaultClass:"ju367v30"},5:{defaultClass:"ju367v31"},6:{defaultClass:"ju367v32"},8:{defaultClass:"ju367v33"},10:{defaultClass:"ju367v34"},12:{defaultClass:"ju367v35"},14:{defaultClass:"ju367v36"},16:{defaultClass:"ju367v37"},18:{defaultClass:"ju367v38"},20:{defaultClass:"ju367v39"},24:{defaultClass:"ju367v3a"},28:{defaultClass:"ju367v3b"},32:{defaultClass:"ju367v3c"},36:{defaultClass:"ju367v3d"},44:{defaultClass:"ju367v3e"},64:{defaultClass:"ju367v3f"},"-1":{defaultClass:"ju367v3g"}}},marginLeft:{values:{0:{defaultClass:"ju367v3h"},1:{defaultClass:"ju367v3i"},2:{defaultClass:"ju367v3j"},3:{defaultClass:"ju367v3k"},4:{defaultClass:"ju367v3l"},5:{defaultClass:"ju367v3m"},6:{defaultClass:"ju367v3n"},8:{defaultClass:"ju367v3o"},10:{defaultClass:"ju367v3p"},12:{defaultClass:"ju367v3q"},14:{defaultClass:"ju367v3r"},16:{defaultClass:"ju367v3s"},18:{defaultClass:"ju367v3t"},20:{defaultClass:"ju367v3u"},24:{defaultClass:"ju367v3v"},28:{defaultClass:"ju367v3w"},32:{defaultClass:"ju367v3x"},36:{defaultClass:"ju367v3y"},44:{defaultClass:"ju367v3z"},64:{defaultClass:"ju367v40"},"-1":{defaultClass:"ju367v41"}}},marginRight:{values:{0:{defaultClass:"ju367v42"},1:{defaultClass:"ju367v43"},2:{defaultClass:"ju367v44"},3:{defaultClass:"ju367v45"},4:{defaultClass:"ju367v46"},5:{defaultClass:"ju367v47"},6:{defaultClass:"ju367v48"},8:{defaultClass:"ju367v49"},10:{defaultClass:"ju367v4a"},12:{defaultClass:"ju367v4b"},14:{defaultClass:"ju367v4c"},16:{defaultClass:"ju367v4d"},18:{defaultClass:"ju367v4e"},20:{defaultClass:"ju367v4f"},24:{defaultClass:"ju367v4g"},28:{defaultClass:"ju367v4h"},32:{defaultClass:"ju367v4i"},36:{defaultClass:"ju367v4j"},44:{defaultClass:"ju367v4k"},64:{defaultClass:"ju367v4l"},"-1":{defaultClass:"ju367v4m"}}},marginTop:{values:{0:{defaultClass:"ju367v4n"},1:{defaultClass:"ju367v4o"},2:{defaultClass:"ju367v4p"},3:{defaultClass:"ju367v4q"},4:{defaultClass:"ju367v4r"},5:{defaultClass:"ju367v4s"},6:{defaultClass:"ju367v4t"},8:{defaultClass:"ju367v4u"},10:{defaultClass:"ju367v4v"},12:{defaultClass:"ju367v4w"},14:{defaultClass:"ju367v4x"},16:{defaultClass:"ju367v4y"},18:{defaultClass:"ju367v4z"},20:{defaultClass:"ju367v50"},24:{defaultClass:"ju367v51"},28:{defaultClass:"ju367v52"},32:{defaultClass:"ju367v53"},36:{defaultClass:"ju367v54"},44:{defaultClass:"ju367v55"},64:{defaultClass:"ju367v56"},"-1":{defaultClass:"ju367v57"}}},maxWidth:{values:{1:{defaultClass:"ju367v58"},2:{defaultClass:"ju367v59"},4:{defaultClass:"ju367v5a"},8:{defaultClass:"ju367v5b"},12:{defaultClass:"ju367v5c"},20:{defaultClass:"ju367v5d"},24:{defaultClass:"ju367v5e"},28:{defaultClass:"ju367v5f"},30:{defaultClass:"ju367v5g"},32:{defaultClass:"ju367v5h"},34:{defaultClass:"ju367v5i"},36:{defaultClass:"ju367v5j"},40:{defaultClass:"ju367v5k"},44:{defaultClass:"ju367v5l"},48:{defaultClass:"ju367v5m"},54:{defaultClass:"ju367v5n"},60:{defaultClass:"ju367v5o"},200:{defaultClass:"ju367v5p"},full:{defaultClass:"ju367v5q"},max:{defaultClass:"ju367v5r"}}},minWidth:{values:{1:{defaultClass:"ju367v5s"},2:{defaultClass:"ju367v5t"},4:{defaultClass:"ju367v5u"},8:{defaultClass:"ju367v5v"},12:{defaultClass:"ju367v5w"},20:{defaultClass:"ju367v5x"},24:{defaultClass:"ju367v5y"},28:{defaultClass:"ju367v5z"},30:{defaultClass:"ju367v60"},32:{defaultClass:"ju367v61"},34:{defaultClass:"ju367v62"},36:{defaultClass:"ju367v63"},40:{defaultClass:"ju367v64"},44:{defaultClass:"ju367v65"},48:{defaultClass:"ju367v66"},54:{defaultClass:"ju367v67"},60:{defaultClass:"ju367v68"},200:{defaultClass:"ju367v69"},full:{defaultClass:"ju367v6a"},max:{defaultClass:"ju367v6b"}}},overflow:{values:{hidden:{defaultClass:"ju367v6c"}}},paddingBottom:{values:{0:{defaultClass:"ju367v6d"},1:{defaultClass:"ju367v6e"},2:{defaultClass:"ju367v6f"},3:{defaultClass:"ju367v6g"},4:{defaultClass:"ju367v6h"},5:{defaultClass:"ju367v6i"},6:{defaultClass:"ju367v6j"},8:{defaultClass:"ju367v6k"},10:{defaultClass:"ju367v6l"},12:{defaultClass:"ju367v6m"},14:{defaultClass:"ju367v6n"},16:{defaultClass:"ju367v6o"},18:{defaultClass:"ju367v6p"},20:{defaultClass:"ju367v6q"},24:{defaultClass:"ju367v6r"},28:{defaultClass:"ju367v6s"},32:{defaultClass:"ju367v6t"},36:{defaultClass:"ju367v6u"},44:{defaultClass:"ju367v6v"},64:{defaultClass:"ju367v6w"},"-1":{defaultClass:"ju367v6x"}}},paddingLeft:{values:{0:{defaultClass:"ju367v6y"},1:{defaultClass:"ju367v6z"},2:{defaultClass:"ju367v70"},3:{defaultClass:"ju367v71"},4:{defaultClass:"ju367v72"},5:{defaultClass:"ju367v73"},6:{defaultClass:"ju367v74"},8:{defaultClass:"ju367v75"},10:{defaultClass:"ju367v76"},12:{defaultClass:"ju367v77"},14:{defaultClass:"ju367v78"},16:{defaultClass:"ju367v79"},18:{defaultClass:"ju367v7a"},20:{defaultClass:"ju367v7b"},24:{defaultClass:"ju367v7c"},28:{defaultClass:"ju367v7d"},32:{defaultClass:"ju367v7e"},36:{defaultClass:"ju367v7f"},44:{defaultClass:"ju367v7g"},64:{defaultClass:"ju367v7h"},"-1":{defaultClass:"ju367v7i"}}},paddingRight:{values:{0:{defaultClass:"ju367v7j"},1:{defaultClass:"ju367v7k"},2:{defaultClass:"ju367v7l"},3:{defaultClass:"ju367v7m"},4:{defaultClass:"ju367v7n"},5:{defaultClass:"ju367v7o"},6:{defaultClass:"ju367v7p"},8:{defaultClass:"ju367v7q"},10:{defaultClass:"ju367v7r"},12:{defaultClass:"ju367v7s"},14:{defaultClass:"ju367v7t"},16:{defaultClass:"ju367v7u"},18:{defaultClass:"ju367v7v"},20:{defaultClass:"ju367v7w"},24:{defaultClass:"ju367v7x"},28:{defaultClass:"ju367v7y"},32:{defaultClass:"ju367v7z"},36:{defaultClass:"ju367v80"},44:{defaultClass:"ju367v81"},64:{defaultClass:"ju367v82"},"-1":{defaultClass:"ju367v83"}}},paddingTop:{values:{0:{defaultClass:"ju367v84"},1:{defaultClass:"ju367v85"},2:{defaultClass:"ju367v86"},3:{defaultClass:"ju367v87"},4:{defaultClass:"ju367v88"},5:{defaultClass:"ju367v89"},6:{defaultClass:"ju367v8a"},8:{defaultClass:"ju367v8b"},10:{defaultClass:"ju367v8c"},12:{defaultClass:"ju367v8d"},14:{defaultClass:"ju367v8e"},16:{defaultClass:"ju367v8f"},18:{defaultClass:"ju367v8g"},20:{defaultClass:"ju367v8h"},24:{defaultClass:"ju367v8i"},28:{defaultClass:"ju367v8j"},32:{defaultClass:"ju367v8k"},36:{defaultClass:"ju367v8l"},44:{defaultClass:"ju367v8m"},64:{defaultClass:"ju367v8n"},"-1":{defaultClass:"ju367v8o"}}},position:{values:{absolute:{defaultClass:"ju367v8p"},fixed:{defaultClass:"ju367v8q"},relative:{defaultClass:"ju367v8r"}}},WebkitUserSelect:{values:{none:{defaultClass:"ju367v8s"}}},right:{values:{0:{defaultClass:"ju367v8t"}}},transition:{values:{default:{defaultClass:"ju367v8u"},transform:{defaultClass:"ju367v8v"}}},userSelect:{values:{none:{defaultClass:"ju367v8w"}}},width:{values:{1:{defaultClass:"ju367v8x"},2:{defaultClass:"ju367v8y"},4:{defaultClass:"ju367v8z"},8:{defaultClass:"ju367v90"},12:{defaultClass:"ju367v91"},20:{defaultClass:"ju367v92"},24:{defaultClass:"ju367v93"},28:{defaultClass:"ju367v94"},30:{defaultClass:"ju367v95"},32:{defaultClass:"ju367v96"},34:{defaultClass:"ju367v97"},36:{defaultClass:"ju367v98"},40:{defaultClass:"ju367v99"},44:{defaultClass:"ju367v9a"},48:{defaultClass:"ju367v9b"},54:{defaultClass:"ju367v9c"},60:{defaultClass:"ju367v9d"},200:{defaultClass:"ju367v9e"},full:{defaultClass:"ju367v9f"},max:{defaultClass:"ju367v9g"}}},backdropFilter:{values:{modalOverlay:{defaultClass:"ju367v9h"}}}}}),ab={colors:{accentColor:"var(--rk-colors-accentColor)",accentColorForeground:"var(--rk-colors-accentColorForeground)",actionButtonBorder:"var(--rk-colors-actionButtonBorder)",actionButtonBorderMobile:"var(--rk-colors-actionButtonBorderMobile)",actionButtonSecondaryBackground:"var(--rk-colors-actionButtonSecondaryBackground)",closeButton:"var(--rk-colors-closeButton)",closeButtonBackground:"var(--rk-colors-closeButtonBackground)",connectButtonBackground:"var(--rk-colors-connectButtonBackground)",connectButtonBackgroundError:"var(--rk-colors-connectButtonBackgroundError)",connectButtonInnerBackground:"var(--rk-colors-connectButtonInnerBackground)",connectButtonText:"var(--rk-colors-connectButtonText)",connectButtonTextError:"var(--rk-colors-connectButtonTextError)",connectionIndicator:"var(--rk-colors-connectionIndicator)",downloadBottomCardBackground:"var(--rk-colors-downloadBottomCardBackground)",downloadTopCardBackground:"var(--rk-colors-downloadTopCardBackground)",error:"var(--rk-colors-error)",generalBorder:"var(--rk-colors-generalBorder)",generalBorderDim:"var(--rk-colors-generalBorderDim)",menuItemBackground:"var(--rk-colors-menuItemBackground)",modalBackdrop:"var(--rk-colors-modalBackdrop)",modalBackground:"var(--rk-colors-modalBackground)",modalBorder:"var(--rk-colors-modalBorder)",modalText:"var(--rk-colors-modalText)",modalTextDim:"var(--rk-colors-modalTextDim)",modalTextSecondary:"var(--rk-colors-modalTextSecondary)",profileAction:"var(--rk-colors-profileAction)",profileActionHover:"var(--rk-colors-profileActionHover)",profileForeground:"var(--rk-colors-profileForeground)",selectedOptionBorder:"var(--rk-colors-selectedOptionBorder)",standby:"var(--rk-colors-standby)"},fonts:{body:"var(--rk-fonts-body)"},radii:{actionButton:"var(--rk-radii-actionButton)",connectButton:"var(--rk-radii-connectButton)",menuButton:"var(--rk-radii-menuButton)",modal:"var(--rk-radii-modal)",modalMobile:"var(--rk-radii-modalMobile)"},shadows:{connectButton:"var(--rk-shadows-connectButton)",dialog:"var(--rk-shadows-dialog)",profileDetailsAction:"var(--rk-shadows-profileDetailsAction)",selectedOption:"var(--rk-shadows-selectedOption)",selectedWallet:"var(--rk-shadows-selectedWallet)",walletLogo:"var(--rk-shadows-walletLogo)"},blurs:{modalOverlay:"var(--rk-blurs-modalOverlay)"}},ZP={shrink:"_12cbo8i6",shrinkSm:"_12cbo8i7"},XP="_12cbo8i3 ju367v8r",eT={grow:"_12cbo8i4",growLg:"_12cbo8i5"};function st({active:e,hover:t}){return[XP,t&&eT[t],ZP[e]]}var z3=N.createContext(null);function tT(){const{adapter:e}=N.useContext(z3)??{};if(!e)throw new Error("No authentication adapter found");return e}function Kd(){const e=N.useContext(z3);return(e==null?void 0:e.status)??null}function i1(){const e=Kd(),{isConnected:t}=St();return t?e&&(e==="loading"||e==="unauthenticated")?e:"connected":"disconnected"}function U3(){return typeof navigator<"u"&&/android/i.test(navigator.userAgent)}function nT(){return typeof navigator<"u"&&/iPhone|iPod/.test(navigator.userAgent)}function rT(){return typeof navigator<"u"&&(/iPad/.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)}function ul(){return nT()||rT()}function lt(){return U3()||ul()}var oT="iekbcc0",iT={a:"iekbcca",blockquote:"iekbcc2",button:"iekbcc9",input:"iekbcc8 iekbcc5 iekbcc4",mark:"iekbcc6",ol:"iekbcc1",q:"iekbcc2",select:"iekbcc7 iekbcc5 iekbcc4",table:"iekbcc3",textarea:"iekbcc5 iekbcc4",ul:"iekbcc1"},sT=({reset:e,...t})=>{if(!e)return Hp(t);const n=iT[e],r=Hp(t);return a3(oT,n,r)},R=C.forwardRef(({as:e="div",className:t,testId:n,...r},i)=>{const a={},c={};for(const d in r)Hp.properties.has(d)?a[d]=r[d]:c[d]=r[d];const u=sT({reset:typeof e=="string"?e:"div",...a});return C.createElement(e,{className:a3(u,t),...c,"data-testid":n?`rk-${n.replace(/^rk-/,"")}`:void 0,ref:i})});R.displayName="Box";var W3=new Map,Sh=new Map;async function $3(e){const t=Sh.get(e);if(t)return t;const n=async()=>e().then(async i=>(W3.set(e,i),i)),r=n().catch(i=>n().catch(a=>{Sh.delete(e)}));return Sh.set(e,r),r}async function Er(...e){return await Promise.all(e.map(t=>typeof t=="function"?$3(t):t))}function aT(){const[,e]=N.useReducer(t=>t+1,0);return e}function Yd(e){const t=typeof e=="function"?W3.get(e):void 0,n=aT();return N.useEffect(()=>{typeof e=="function"&&!t&&$3(e).then(n)},[e,t,n]),typeof e=="function"?t:e}function bt({alt:e,background:t,borderColor:n,borderRadius:r,useAsImage:i,boxShadow:a,height:c,src:u,width:d,testId:f}){const p=ul(),g=Yd(u),m=g&&/^http/.test(g),[y,w]=N.useReducer(()=>!0,!1);return C.createElement(R,{"aria-label":e,borderRadius:r,boxShadow:a,height:typeof c=="string"?c:void 0,overflow:"hidden",position:"relative",role:"img",style:{background:t,height:typeof c=="number"?c:void 0,width:typeof d=="number"?d:void 0},width:typeof d=="string"?d:void 0,testId:f},C.createElement(R,{...m?{"aria-hidden":!0,as:"img",onLoad:w,src:g}:{"aria-hidden":!0,as:"img",src:g},height:"full",position:"absolute",...p?{WebkitUserSelect:"none"}:{},style:{WebkitTouchCallout:"none",transition:"opacity .15s linear",userSelect:"none",...!i&&m?{opacity:y?1:0}:{}},width:"full"}),n?C.createElement(R,{...typeof n=="object"&&"custom"in n?{style:{borderColor:n.custom}}:{borderColor:n},borderRadius:r,borderStyle:"solid",borderWidth:"1",height:"full",position:"relative",width:"full"}):null)}var cT="_1luule42",lT="_1luule43",uT=e=>N.useMemo(()=>`${e}_${Math.round(Math.random()*1e9)}`,[e]),zc=({height:e=21,width:t=21})=>{const n=uT("spinner");return C.createElement("svg",{className:cT,fill:"none",height:e,viewBox:"0 0 21 21",width:t,xmlns:"http://www.w3.org/2000/svg"},C.createElement("title",null,"Loading"),C.createElement("clipPath",{id:n},C.createElement("path",{d:"M10.5 3C6.35786 3 3 6.35786 3 10.5C3 14.6421 6.35786 18 10.5 18C11.3284 18 12 18.6716 12 19.5C12 20.3284 11.3284 21 10.5 21C4.70101 21 0 16.299 0 10.5C0 4.70101 4.70101 0 10.5 0C16.299 0 21 4.70101 21 10.5C21 11.3284 20.3284 12 19.5 12C18.6716 12 18 11.3284 18 10.5C18 6.35786 14.6421 3 10.5 3Z"})),C.createElement("foreignObject",{clipPath:`url(#${n})`,height:"21",width:"21",x:"0",y:"0"},C.createElement("div",{className:lT})))},Me=["#FC5C54","#FFD95A","#E95D72","#6A87C8","#5FD0F3","#75C06B","#FFDD86","#5FC6D4","#FF949A","#FF8024","#9BA1A4","#EC66FF","#FF8CBC","#FF9A23","#C5DADB","#A8CE63","#71ABFF","#FFE279","#B6B1B6","#FF6780","#A575FF","#4D82FF","#FFB35A"],cb=[{color:Me[0],emoji:"🌶"},{color:Me[1],emoji:"🤑"},{color:Me[2],emoji:"🐙"},{color:Me[3],emoji:"🫐"},{color:Me[4],emoji:"🐳"},{color:Me[0],emoji:"🤶"},{color:Me[5],emoji:"🌲"},{color:Me[6],emoji:"🌞"},{color:Me[7],emoji:"🐒"},{color:Me[8],emoji:"🐵"},{color:Me[9],emoji:"🦊"},{color:Me[10],emoji:"🐼"},{color:Me[11],emoji:"🦄"},{color:Me[12],emoji:"🐷"},{color:Me[13],emoji:"🐧"},{color:Me[8],emoji:"🦩"},{color:Me[14],emoji:"👽"},{color:Me[0],emoji:"🎈"},{color:Me[8],emoji:"🍉"},{color:Me[1],emoji:"🎉"},{color:Me[15],emoji:"🐲"},{color:Me[16],emoji:"🌎"},{color:Me[17],emoji:"🍊"},{color:Me[18],emoji:"🐭"},{color:Me[19],emoji:"🍣"},{color:Me[1],emoji:"🐥"},{color:Me[20],emoji:"👾"},{color:Me[15],emoji:"🥦"},{color:Me[0],emoji:"👹"},{color:Me[17],emoji:"🙀"},{color:Me[4],emoji:"⛱"},{color:Me[21],emoji:"⛵️"},{color:Me[17],emoji:"🥳"},{color:Me[8],emoji:"🤯"},{color:Me[22],emoji:"🤠"}];function dT(e){let t=0;if(e.length===0)return t;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t=(t<<5)-t+r,t|=0}return t}function fT(e){const n=Math.abs(dT((typeof e=="string"?e:"").toLowerCase())%cb.length);return cb[n??0]}var hT=({address:e,ensImage:t,size:n})=>{const[r,i]=N.useState(!1);N.useEffect(()=>{if(t){const u=new Image;u.src=t,u.onload=()=>i(!0)}},[t]);const{color:a,emoji:c}=N.useMemo(()=>fT(e),[e]);return t?r?C.createElement(R,{backgroundSize:"cover",borderRadius:"full",position:"absolute",style:{backgroundImage:`url(${t})`,backgroundPosition:"center",height:n,width:n}}):C.createElement(R,{alignItems:"center",backgroundSize:"cover",borderRadius:"full",color:"modalText",display:"flex",justifyContent:"center",position:"absolute",style:{height:n,width:n}},C.createElement(zc,null)):C.createElement(R,{alignItems:"center",display:"flex",justifyContent:"center",overflow:"hidden",style:{...!t&&{backgroundColor:a},height:n,width:n}},c)},q3=hT,H3=N.createContext(q3);function V3({address:e,imageUrl:t,loading:n,size:r}){const i=N.useContext(H3);return C.createElement(R,{"aria-hidden":!0,borderRadius:"full",overflow:"hidden",position:"relative",style:{height:`${r}px`,width:`${r}px`},userSelect:"none"},C.createElement(R,{alignItems:"center",borderRadius:"full",display:"flex",justifyContent:"center",overflow:"hidden",position:"absolute",style:{fontSize:`${Math.round(r*.55)}px`,height:`${r}px`,transform:n?"scale(0.72)":void 0,transition:".25s ease",transitionDelay:n?void 0:".1s",width:`${r}px`,willChange:"transform"},userSelect:"none"},C.createElement(i,{address:e,ensImage:t,size:r})),n&&C.createElement(R,{color:"accentColor",display:"flex",height:"full",position:"absolute",width:"full"},C.createElement(zc,{height:"100%",width:"100%"})))}var lb=()=>C.createElement("svg",{fill:"none",height:"7",width:"14",xmlns:"http://www.w3.org/2000/svg"},C.createElement("title",null,"Dropdown"),C.createElement("path",{d:"M12.75 1.54001L8.51647 5.0038C7.77974 5.60658 6.72026 5.60658 5.98352 5.0038L1.75 1.54001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5",xmlns:"http://www.w3.org/2000/svg"})),ub={defaultLocale:"en",locale:"en"},pT=class{constructor(e){this.listeners=new Set,this.defaultLocale=ub.defaultLocale,this.enableFallback=!1,this.locale=ub.locale,this.cachedLocales=[],this.translations={};for(const[t,n]of Object.entries(e))this.cachedLocales=[...this.cachedLocales,t],this.translations={...this.translations,...this.flattenTranslation(n,t)}}missingMessage(e){return`[missing: "${this.locale}.${e}" translation]`}flattenTranslation(e,t){const n={},r=(i,a)=>{for(const c of Object.keys(i)){const u=`${a}.${c}`,d=i[c];typeof d=="object"&&d!==null?r(d,u):n[u]=d}};return r(e,t),n}translateWithReplacements(e,t={}){let n=e;for(const r in t){const i=t[r];n=n.replace(`%{${r}}`,i)}return n}t(e,t,n){const r=`${this.locale}.${e}`,i=this.translations[r];if(!i){if(this.enableFallback){const a=`${this.defaultLocale}.${e}`,c=this.translations[a];if(c)return this.translateWithReplacements(c,t)}return n!=null&&n.rawKeyIfTranslationMissing?e:this.missingMessage(e)}return this.translateWithReplacements(i,t)}isLocaleCached(e){return this.cachedLocales.includes(e)}updateLocale(e){this.locale=e,this.notifyListeners()}setTranslations(e,t){this.isLocaleCached(e)||(this.cachedLocales=[...this.cachedLocales,e],this.translations={...this.translations,...this.flattenTranslation(t,e)}),this.locale=e,this.notifyListeners()}notifyListeners(){for(const e of this.listeners)e()}onChange(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}},Mn=new pT({en:JSON.parse(Dp),"en-US":JSON.parse(Dp)});Mn.defaultLocale="en-US";Mn.locale="en-US";Mn.enableFallback=!0;var mT=async e=>{switch(e){case"ar":case"ar-AR":return(await de(async()=>{const{default:t}=await import("./ar_AR-44JUQ6EW-BMX-am0v.js");return{default:t}},[])).default;case"de":case"de-DE":return(await de(async()=>{const{default:t}=await import("./de_DE-PYAO5YD6-BWlqPWgO.js");return{default:t}},[])).default;case"en":case"en-US":return(await de(async()=>{const{default:t}=await Promise.resolve().then(()=>Ub);return{default:t}},void 0)).default;case"es":case"es-419":return(await de(async()=>{const{default:t}=await import("./es_419-HRGOJ6VT-D-qzxUM-.js");return{default:t}},[])).default;case"fr":case"fr-FR":return(await de(async()=>{const{default:t}=await import("./fr_FR-IGGVC6RM-D8LpUM75.js");return{default:t}},[])).default;case"hi":case"hi-IN":return(await de(async()=>{const{default:t}=await import("./hi_IN-XSKAA3MF-C3QUpWyP.js");return{default:t}},[])).default;case"id":case"id-ID":return(await de(async()=>{const{default:t}=await import("./id_ID-KUOB4UAL-K9y-nRWm.js");return{default:t}},[])).default;case"ja":case"ja-JP":return(await de(async()=>{const{default:t}=await import("./ja_JP-4WRQ63RX-Ct5pF4ug.js");return{default:t}},[])).default;case"ko":case"ko-KR":return(await de(async()=>{const{default:t}=await import("./ko_KR-I2K7AIEP-B5gw8Mwb.js");return{default:t}},[])).default;case"ms":case"ms-MY":return(await de(async()=>{const{default:t}=await import("./ms_MY-6VZW6Q3Z-BtFD07hR.js");return{default:t}},[])).default;case"pt":case"pt-BR":return(await de(async()=>{const{default:t}=await import("./pt_BR-N3XOZ4SV-CvVpfsHb.js");return{default:t}},[])).default;case"ru":case"ru-RU":return(await de(async()=>{const{default:t}=await import("./ru_RU-IITAPRET-DOj6Jzj7.js");return{default:t}},[])).default;case"th":case"th-TH":return(await de(async()=>{const{default:t}=await import("./th_TH-3ZQCKCQE-BcHUN2Q4.js");return{default:t}},[])).default;case"tr":case"tr-TR":return(await de(async()=>{const{default:t}=await import("./tr_TR-QUPUGMUF-CwpF6ZFn.js");return{default:t}},[])).default;case"ua":case"uk-UA":return(await de(async()=>{const{default:t}=await import("./uk_UA-SSN6SV5E-IlYYyRC6.js");return{default:t}},[])).default;case"vi":case"vi-VN":return(await de(async()=>{const{default:t}=await import("./vi_VN-7BUVRNYY-CZ9S75qZ.js");return{default:t}},[])).default;case"zh":case"zh-CN":case"zh-Hans":return(await de(async()=>{const{default:t}=await import("./zh_CN-HJBN674C-Baf0GEeT.js");return{default:t}},[])).default;case"zh-HK":return(await de(async()=>{const{default:t}=await import("./zh_HK-JW3WLRKE-VztJKXL5.js");return{default:t}},[])).default;case"zh-Hant":case"zh-TW":return(await de(async()=>{const{default:t}=await import("./zh_TW-VNNRNXY7-aWfg7Qp4.js");return{default:t}},[])).default;default:return(await de(async()=>{const{default:t}=await Promise.resolve().then(()=>Ub);return{default:t}},void 0)).default}};async function db(e){if(Mn.isLocaleCached(e)){Mn.updateLocale(e);return}const n=await mT(e);Mn.setTranslations(e,JSON.parse(n))}var gT=()=>{var e;if(typeof window<"u"&&typeof navigator<"u"){if((e=navigator.languages)!=null&&e.length)return navigator.languages[0];if(navigator.language)return navigator.language}},ut=N.createContext({i18n:Mn}),yT=({children:e,locale:t})=>{const[n,r]=N.useState(0),i=N.useMemo(()=>gT(),[]);N.useEffect(()=>Mn.onChange(()=>{r(u=>u+1)}),[]),N.useEffect(()=>{t&&t!==Mn.locale?db(t):!t&&i&&i!==Mn.locale&&db(i)},[t,i]);const a=N.useMemo(()=>({t:(u,d)=>Mn.t(u,d),i18n:Mn}),[n]);return C.createElement(ut.Provider,{value:a},e)};function Q3(e){return e!=null}var fb={iconBackground:"#7290CC",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./apechain-SX5YFU6N-q5qBv-mp.js");return{default:e}},[])).default},Ih={iconBackground:"#96bedc",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./arbitrum-WURIBY6W-CqVkHBr5.js");return{default:e}},[])).default},hb={iconBackground:"#e84141",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./avalanche-KOMJD3XY-Dsn_JPR4.js");return{default:e}},[])).default},jh={iconBackground:"#0052ff",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./base-OAXLRA4F-CoYTVIiL.js");return{default:e}},[])).default},Bh={iconBackground:"#814625",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./berachain-NJECWIVC-DumxnFvf.js");return{default:e}},[])).default},pb={iconBackground:"#000000",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./blast-V555OVXZ-BbhJh1tj.js");return{default:e}},[])).default},mb={iconBackground:"#ebac0e",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./bsc-N647EYR2-B2nLKXWV.js");return{default:e}},[])).default},gb={iconBackground:"#FCFF52",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./celo-GEP4TUHG-CenIBYLU.js");return{default:e}},[])).default},yb={iconBackground:"#002D74",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./cronos-HJPAQTAE-BEOvlOC4.js");return{default:e}},[])).default},vT={iconBackground:"#A36EFD",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./degen-FQQ4XGHB-CeHTs88l.js");return{default:e}},[])).default},jo={iconBackground:"#484c50",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./ethereum-RGGVA4PY-SWGOlkuk.js");return{default:e}},[])).default},vb={iconBackground:"transparent",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./flow-5FQJFCTK-CUie2reO.js");return{default:e}},[])).default},wT={iconBackground:"#04795c",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./gnosis-37ZC4RBL-B137OtHZ.js");return{default:e}},[])).default},wb={iconBackground:"#000000",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./gravity-J5YQHTYH-Bj6B0uod.js");return{default:e}},[])).default},bT={iconBackground:"#f9f7ec",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./hardhat-TX56IT5N-CV1FY-wE.js");return{default:e}},[])).default},xT={iconBackground:"#000000",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./hyperevm-VKPAA4SA-CHwraEsx.js");return{default:e}},[])).default},bb={iconBackground:"#7132F5",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./ink-FZMYZWHG-62p-5IK5.js");return{default:e}},[])).default},xb={iconBackground:"transparent",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./kaia-65D2U3PU-JmuLQ4gC.js");return{default:e}},[])).default},_h={iconBackground:"#ffffff",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./linea-QRMVQ5DY-DuI3vv0d.js");return{default:e}},[])).default},Ph={iconBackground:"#ffffff",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./manta-SI27YFEJ-CpVOKa06.js");return{default:e}},[])).default},Cb={iconBackground:"#000000",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./mantle-CKIUT334-DR2WgqzU.js");return{default:e}},[])).default},CT={iconBackground:"transparent",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./monad-4KWC6TSS-DVXSkpiz.js");return{default:e}},[])).default},zu={iconBackground:"#ff5a57",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./optimism-HAF2GUT7-ec6Nqxs9.js");return{default:e}},[])).default},Th={iconBackground:"#9f71ec",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./polygon-WW6ZI7PM-DXlmm4L1.js");return{default:e}},[])).default},ET={iconBackground:"#1273EA",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./ronin-EMCPYXZT-N-QBHZdV.js");return{default:e}},[])).default},AT={iconBackground:"#000000",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./sanko-RHQYXGM5-OX010CbN.js");return{default:e}},[])).default},kT={iconBackground:"#000000",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./superposition-HG6MMR2Y-bRkgatRO.js");return{default:e}},[])).default},Eb={iconBackground:"#FFEEDA",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./scroll-5OBGQVOV-DJFECiai.js");return{default:e}},[])).default},Ab={iconBackground:"#F50DB4",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./unichain-C5BWO2ZY-BfguYsnu.js");return{default:e}},[])).default},kb={iconBackground:"#f9f7ec",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./xdc-KJ3TDBYO-DNV6zchh.js");return{default:e}},[])).default},Sb={iconBackground:"#000000",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./zetachain-TLDS5IPW-Udhyw16T.js");return{default:e}},[])).default},Ib={iconBackground:"#f9f7ec",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./zksync-DH7HK5U4-Dt4usFw6.js");return{default:e}},[])).default},Oh={iconBackground:"#000000",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./zora-FYL5H3IO-iB4wygST.js");return{default:e}},[])).default},ST={apechain:{chainId:33139,name:"ApeChain",...fb},apechainCurtis:{chainId:33111,name:"ApeChain Curtis",...fb},arbitrum:{chainId:42161,name:"Arbitrum",...Ih},arbitrumGoerli:{chainId:421613,...Ih},arbitrumSepolia:{chainId:421614,...Ih},avalanche:{chainId:43114,...hb},avalancheFuji:{chainId:43113,...hb},base:{chainId:8453,name:"Base",...jh},baseGoerli:{chainId:84531,...jh},baseSepolia:{chainId:84532,...jh},berachain:{chainId:80094,name:"Berachain",...Bh},berachainArtio:{chainId:80085,name:"Berachain Artio",...Bh},berachainBArtio:{chainId:80084,name:"Berachain bArtio",...Bh},blast:{chainId:81457,name:"Blast",...pb},blastSepolia:{chainId:168587773,...pb},bsc:{chainId:56,name:"BSC",...mb},bscTestnet:{chainId:97,...mb},celo:{chainId:42220,name:"Celo",...gb},celoAlfajores:{chainId:44787,name:"Celo Alfajores",...gb},cronos:{chainId:25,...yb},cronosTestnet:{chainId:338,...yb},degen:{chainId:666666666,name:"Degen",...vT},flow:{chainId:747,...vb},flowTestnet:{chainId:545,...vb},gnosis:{chainId:100,name:"Gnosis",...wT},goerli:{chainId:5,...jo},gravity:{chainId:1625,name:"Gravity",...wb},gravitySepolia:{chainId:13505,name:"Gravity Sepolia",...wb},hardhat:{chainId:31337,...bT},holesky:{chainId:17e3,...jo},hyperevm:{chainId:999,...xT},ink:{chainId:57073,...bb},inkSepolia:{chainId:763373,...bb},kaia:{chainId:8217,name:"Kaia",...xb},kairos:{chainId:1001,name:"Kairos",...xb},kovan:{chainId:42,...jo},linea:{chainId:59144,name:"Linea",..._h},lineaGoerli:{chainId:59140,name:"Linea Goerli",..._h},lineaSepolia:{chainId:59141,name:"Linea Sepolia",..._h},localhost:{chainId:1337,...jo},mainnet:{chainId:1,name:"Ethereum",...jo},manta:{chainId:169,name:"Manta",...Ph},mantaSepolia:{chainId:3441006,...Ph},mantaTestnet:{chainId:3441005,...Ph},mantle:{chainId:5e3,...Cb},mantleTestnet:{chainId:5001,...Cb},monadTestnet:{chainId:10143,name:"Monad Testnet",...CT},optimism:{chainId:10,name:"Optimism",...zu},optimismGoerli:{chainId:420,...zu},optimismKovan:{chainId:69,...zu},optimismSepolia:{chainId:11155420,...zu},polygon:{chainId:137,name:"Polygon",...Th},polygonAmoy:{chainId:80002,...Th},polygonMumbai:{chainId:80001,...Th},rinkeby:{chainId:4,...jo},ronin:{chainId:2020,...ET},ropsten:{chainId:3,...jo},sanko:{chainId:1996,name:"Sanko",...AT},scroll:{chainId:534352,...Eb},scrollSepolia:{chainId:534351,...Eb},sepolia:{chainId:11155111,...jo},superposition:{chainId:55244,name:"Superposition",...kT},unichain:{chainId:130,...Ab},unichainSepolia:{chainId:1301,...Ab},xdc:{chainId:50,name:"XDC",...kb},xdcTestnet:{chainId:51,...kb},zetachain:{chainId:7e3,name:"ZetaChain",...Sb},zetachainAthensTestnet:{chainId:7001,name:"Zeta Athens",...Sb},zkSync:{chainId:324,name:"zkSync",...Ib},zkSyncTestnet:{chainId:280,...Ib},zora:{chainId:7777777,name:"Zora",...Oh},zoraSepolia:{chainId:999999999,...Oh},zoraTestnet:{chainId:999,...Oh}},IT=Object.fromEntries(Object.values(ST).filter(Q3).map(({chainId:e,...t})=>[e,t])),jT=e=>e.map(t=>{const n=IT[t.id]??{};return{...t,name:n.name??t.name,iconUrl:t.iconUrl??n.iconUrl,iconBackground:t.iconBackground??n.iconBackground}}),s1=N.createContext({chains:[]});function BT({children:e,initialChain:t}){const{chains:n}=et();return C.createElement(s1.Provider,{value:N.useMemo(()=>({chains:jT(n),initialChainId:typeof t=="number"?t:t==null?void 0:t.id}),[n,t])},e)}var Vi=()=>N.useContext(s1).chains,_T=()=>N.useContext(s1).initialChainId,PT=()=>{const e=Vi();return N.useMemo(()=>{const t={};for(const n of e)t[n.id]=n;return t},[e])},G3=N.createContext({showBalance:void 0,setShowBalance:()=>{}});function TT({children:e}){const[t,n]=N.useState();return C.createElement(G3.Provider,{value:{showBalance:t,setShowBalance:n}},e)}var K3=()=>N.useContext(G3);function OT(){const[e,t]=N.useState(!1);return N.useEffect(()=>(t(!0),()=>{t(!1)}),[]),N.useCallback(()=>e,[e])}function Y3(){const e=Vi(),t=e1.id;return e.some(r=>r.id===t)}function RT(e){const t=Y3(),n=i=>{try{return M_(i)}catch{}},{data:r}=NB({chainId:e1.id,name:e?n(e):void 0,query:{enabled:t}});return r}async function hi(e,t){if(t={headers:{},method:"get",...t,timeout:t.timeout??1e4},!e)throw new Error("rainbowFetch: Missing url argument");const n=new AbortController,r=setTimeout(()=>n.abort(),t.timeout),{body:i,params:a,headers:c,...u}=t,d=i&&typeof i=="object"?JSON.stringify(t.body):t.body,f=await fetch(`${e}${MT(a)}`,{...u,body:d,headers:{Accept:"application/json","Content-Type":"application/json",...c},signal:n.signal});clearTimeout(r);const p=await NT(f);if(f.ok){const{headers:y,status:w}=f;return{data:p,headers:y,status:w}}throw DT({requestBody:i,response:f,responseBody:typeof p=="string"?{error:p}:p})}function NT(e){const t=e.headers.get("Content-Type");return t!=null&&t.startsWith("application/json")?e.json():e.text()}function MT(e){return e&&Object.keys(e).length?`?${new URLSearchParams(e)}`:""}function DT({requestBody:e,response:t,responseBody:n}){const r=(n==null?void 0:n.error)||(t==null?void 0:t.statusText)||"There was an error with the request.",i=new Error(r);return i.response=t,i.responseBody=n,i.requestBody=e,i}var LT=class{constructor(e={}){const{baseUrl:t="",...n}=e;this.baseUrl=t,this.opts=n}get(e,t){return hi(`${this.baseUrl}${e}`,{...this.opts,...t||{},method:"get"})}delete(e,t){return hi(`${this.baseUrl}${e}`,{...this.opts,...t||{},method:"delete"})}head(e,t){return hi(`${this.baseUrl}${e}`,{...this.opts,...t||{},method:"head"})}options(e,t){return hi(`${this.baseUrl}${e}`,{...this.opts,...t||{},method:"options"})}post(e,t,n){return hi(`${this.baseUrl}${e}`,{...this.opts,...n||{},body:t,method:"post"})}put(e,t,n){return hi(`${this.baseUrl}${e}`,{...this.opts,...n||{},body:t,method:"put"})}patch(e,t,n){return hi(`${this.baseUrl}${e}`,{...this.opts,...n||{},body:t,method:"patch"})}};function FT({baseUrl:e,headers:t,params:n,timeout:r}){return new LT({baseUrl:e,headers:t,params:n,timeout:r})}var zT=!!(typeof process<"u"&&typeof md<"u"&&md.RAINBOW_PROVIDER_API_KEY),UT=FT({baseUrl:"https://enhanced-provider.rainbow.me",headers:{"x-api-key":typeof process<"u"&&typeof md<"u"&&md.RAINBOW_PROVIDER_API_KEY||"LzbasoBiLqltex3VkcQ7LRmL4PtfiiZ1EMJrizrgfonWN6byJReu/l6yrUoo3zLW"}});function WT(e,t,n={}){return[e,t,n]}function Ju(e){return`rk-ens-name-${e}`}function $T(e){try{const t=e?JSON.parse(e):null;return typeof t=="object"?t:null}catch{return null}}function qT(e,t){if(!ct(e))return;const n=new Date,r=new Date(n.getTime()+180*6e4);localStorage.setItem(Ju(e),JSON.stringify({ensName:t,expires:r.getTime()}))}function HT(e){const t=$T(localStorage.getItem(Ju(e)));if(!t)return null;const{ensName:n,expires:r}=t;return typeof n!="string"||Number.isNaN(Number(r))||new Date().getTime()>Number(r)?(localStorage.removeItem(Ju(e)),null):n}async function VT({address:e}){const t=HT(e);if(t)return t;const r=(await UT.get("/v1/resolve-ens",{params:{address:e}})).data.data;return r&&qT(e,r),r}function QT(e){const t=Y3(),{data:n}=MB({chainId:e1.id,address:e,query:{enabled:t}}),{data:r}=e3({queryKey:WT("address",e),queryFn:()=>VT({address:e}),enabled:!t&&!!e&&zT,staleTime:10*(60*1e3),retry:1});return n||r}function J3({address:e,includeBalance:t}){const n=QT(e),r=RT(n),{data:i}=t3({address:t?e:void 0});return{ensName:n,ensAvatar:r,balance:i}}function a1(){const{chain:e}=St();return(e==null?void 0:e.id)??null}var Z3="rk-transactions";function GT(e){try{const t=e?JSON.parse(e):{};return typeof t=="object"?t:{}}catch{return{}}}function jb(){return GT(typeof localStorage<"u"?localStorage.getItem(Z3):null)}var KT=/^0x([A-Fa-f0-9]{64})$/;function YT(e){const t=[];return KT.test(e.hash)||t.push("Invalid transaction hash"),typeof e.description!="string"&&t.push("Transaction must have a description"),typeof e.confirmations<"u"&&(!Number.isInteger(e.confirmations)||e.confirmations<1)&&t.push("Transaction confirmations must be a positiver integer"),t}function JT({provider:e}){let t=jb(),n=e;const r=new Set,i=new Set,a=new Map;function c(j){n=j}function u(j,S){var k;return((k=t[j])==null?void 0:k[S])??[]}function d(j,S,k){const I=YT(k);if(I.length>0)throw new Error(["Unable to add transaction",...I].join(`
1726
+ `));m(j,S,P=>[{...k,status:"pending"},...P.filter(({hash:_})=>_!==k.hash)])}function f(j,S){m(j,S,()=>[])}function p(j,S,k,I){m(j,S,P=>P.map(_=>_.hash===k?{..._,status:I}:_))}async function g(j,S){await Promise.all(u(j,S).filter(k=>k.status==="pending").map(async k=>{const{confirmations:I,hash:P}=k,_=a.get(P);if(_)return await _;const T=n.waitForTransactionReceipt({confirmations:I,hash:P,timeout:3e5}).then(({status:M})=>{a.delete(P),M!==void 0&&(p(j,S,P,M===0||M==="reverted"?"failed":"confirmed"),b(M))}).catch(()=>{p(j,S,P,"failed")});return a.set(P,T),await T}))}function m(j,S,k){t=jb(),t[j]=t[j]??{};let I=0;const P=10,_=k(t[j][S]??[]).filter(({status:T})=>T==="pending"?!0:I++<=P);t[j][S]=_.length>0?_:void 0,y(),w(),g(j,S)}function y(){localStorage.setItem(Z3,JSON.stringify(t))}function w(){for(const j of r)j()}function b(j){for(const S of i)S(j)}function E(j){return r.add(j),()=>{r.delete(j)}}function A(j){return i.add(j),()=>{i.delete(j)}}return{addTransaction:d,clearTransactions:f,getTransactions:u,onTransactionStatus:A,onChange:E,setProvider:c,waitForPendingTransactions:g}}var Bb,X3=C.createContext(null);function ZT({children:e}){const t=DB(),{address:n}=St(),r=a1(),{refetch:i}=t3({address:n,query:{enabled:!1}}),[a]=C.useState(()=>Bb??(Bb=JT({provider:t}))),c=C.useCallback(u=>{u==="success"&&i()},[i]);return C.useEffect(()=>{a.setProvider(t)},[a,t]),C.useEffect(()=>{n&&r&&a.waitForPendingTransactions(n,r)},[a,n,r]),C.useEffect(()=>{if(a&&n&&r)return a.onTransactionStatus(c)},[a,n,r,c]),C.createElement(X3.Provider,{value:a},e)}function ex(){const e=C.useContext(X3);if(!e)throw new Error("Transaction hooks must be used within RainbowKitProvider");return e}function tx(){const e=ex(),{address:t}=St(),n=a1(),[r,i]=N.useState(()=>e&&t&&n?e.getTransactions(t,n):[]);return N.useEffect(()=>{if(e&&t&&n)return i(e.getTransactions(t,n)),e.onChange(()=>{i(e.getTransactions(t,n))})},[e,t,n]),r}var _b=e=>typeof e=="function"?e():e;function XT(e,{extends:t}={}){const n={...Yw(ab,_b(e))};if(!t)return n;const r=Yw(ab,_b(t));return Object.fromEntries(Object.entries(n).filter(([a,c])=>c!==r[a]))}function Pb(e,t={}){return Object.entries(XT(e,t)).map(([n,r])=>`${n}:${r.replace(/[:;{}</>]/g,"")};`).join("")}var nx={appName:void 0,disclaimer:void 0,learnMoreUrl:"https://learn.rainbow.me/understanding-web3?utm_source=rainbowkit&utm_campaign=learnmore"},dl=N.createContext(nx),rx=N.createContext(!1);function eO(e,t){let n;return()=>{n&&clearTimeout(n),n=setTimeout(()=>{n=null,e()},t)}}var ox=()=>{const[e,t]=N.useState({height:void 0,width:void 0});return N.useEffect(()=>{const n=eO(()=>{t({height:window.innerHeight,width:window.innerWidth})},500);return window.addEventListener("resize",n),n(),()=>window.removeEventListener("resize",n)},[]),e},fl=N.createContext({connector:null,setConnector:()=>{}});function tO({children:e}){const[t,n]=N.useState(null);return C.createElement(fl.Provider,{value:N.useMemo(()=>({connector:t,setConnector:n}),[t])},e)}var hl={COMPACT:"compact",WIDE:"wide"},Jd=N.createContext(hl.WIDE);function nO({children:e,modalSize:t}){const{width:n}=ox(),r=n&&n<JP,{connector:i}=N.useContext(fl);return C.createElement(Jd.Provider,{value:r||i?hl.COMPACT:t},e)}var c1=N.createContext(!1),rO="rk-version";function oO({version:e}){localStorage.setItem(rO,e)}function iO(){const e=N.useCallback(()=>{oO({version:"2.2.10"})},[]);N.useEffect(()=>{e()},[e])}function sO(e,t){const n={};for(const r of e){const i=t(r);i&&(n[i]=r)}return n}function l1(){return typeof navigator<"u"&&typeof navigator.userAgent<"u"&&/Version\/([0-9._]+).*Safari/.test(navigator.userAgent)}function aO(){return typeof document<"u"&&getComputedStyle(document.body).getPropertyValue("--arc-palette-focus")!==""}function u1(){var t,n;if(typeof navigator>"u")return"Browser";const e=(t=navigator.userAgent)==null?void 0:t.toLowerCase();return(n=navigator.brave)!=null&&n.isBrave?"Brave":(e==null?void 0:e.indexOf("edg/"))>-1?"Edge":(e==null?void 0:e.indexOf("op"))>-1?"Opera":aO()?"Arc":(e==null?void 0:e.indexOf("chrome"))>-1?"Chrome":(e==null?void 0:e.indexOf("firefox"))>-1?"Firefox":l1()?"Safari":"Browser"}var cO=_P.UAParser(),{os:d1}=cO;function lO(){return d1.name==="Windows"}function uO(){return d1.name==="Mac OS"}function dO(){return["Ubuntu","Mint","Fedora","Debian","Arch","Linux"].includes(d1.name)}function f1(){return lO()?"Windows":uO()?"macOS":dO()?"Linux":"Desktop"}var fO=e=>{var n,r,i,a,c,u,d,f,p,g,m;const t=u1();return{Arc:(n=e==null?void 0:e.downloadUrls)==null?void 0:n.chrome,Brave:(r=e==null?void 0:e.downloadUrls)==null?void 0:r.chrome,Chrome:(i=e==null?void 0:e.downloadUrls)==null?void 0:i.chrome,Edge:((a=e==null?void 0:e.downloadUrls)==null?void 0:a.edge)||((c=e==null?void 0:e.downloadUrls)==null?void 0:c.chrome),Firefox:(u=e==null?void 0:e.downloadUrls)==null?void 0:u.firefox,Opera:((d=e==null?void 0:e.downloadUrls)==null?void 0:d.opera)||((f=e==null?void 0:e.downloadUrls)==null?void 0:f.chrome),Safari:(p=e==null?void 0:e.downloadUrls)==null?void 0:p.safari,Browser:(g=e==null?void 0:e.downloadUrls)==null?void 0:g.browserExtension}[t]??((m=e==null?void 0:e.downloadUrls)==null?void 0:m.browserExtension)},hO=e=>{var n,r,i;return(ul()?(n=e==null?void 0:e.downloadUrls)==null?void 0:n.ios:(r=e==null?void 0:e.downloadUrls)==null?void 0:r.android)??((i=e==null?void 0:e.downloadUrls)==null?void 0:i.mobile)},pO=e=>{var n,r,i,a,c;const t=f1();return{Windows:(n=e==null?void 0:e.downloadUrls)==null?void 0:n.windows,macOS:(r=e==null?void 0:e.downloadUrls)==null?void 0:r.macos,Linux:(i=e==null?void 0:e.downloadUrls)==null?void 0:i.linux,Desktop:(a=e==null?void 0:e.downloadUrls)==null?void 0:a.desktop}[t]??((c=e==null?void 0:e.downloadUrls)==null?void 0:c.desktop)},ix=(e,t)=>e.some(n=>n.id===t),mO=e=>!!e.isRainbowKitConnector,Tb=e=>{var t;return!!(!e.isRainbowKitConnector&&((t=e.icon)!=null&&t.replace(/\n/g,"").startsWith("data:image"))&&e.uid&&e.name)},gO=(e,t)=>e.id==="walletConnect"&&t?{...e,walletConnectModalConnector:t}:e,yO=({wallets:e,recentWallets:t})=>[...t,...e.filter(n=>!ix(t,n.id))],sx="rk-recent";function vO(e){try{const t=e?JSON.parse(e):[];return Array.isArray(t)?t:[]}catch{return[]}}function ax(){return typeof localStorage<"u"?vO(localStorage.getItem(sx)):[]}function wO(e){return[...new Set(e)]}function bO(e){const t=wO([e,...ax()]);localStorage.setItem(sx,JSON.stringify(t))}function Uc(e=!1){var k,I,P;const t=Vi(),n=_T(),{connectAsync:r,connectors:i}=TB(),a=i,{setIsWalletConnectModalOpen:c}=Tx(),u=a.map(_=>({..._,..._.rkDetails||{}}));async function d(_,T){var Q,Z;const M=await _.getChainId(),V=await r({...T,chainId:(T==null?void 0:T.chainId)??n??((Q=t.find(({id:G})=>G===M))==null?void 0:Q.id)??((Z=t[0])==null?void 0:Z.id),connector:_});return V&&bO(_.id),V}async function f(_){try{c(!0),await d(_),c(!1)}catch(T){const M=T.name==="UserRejectedRequestError"||T.message==="Connection request reset. Please try again.";if(c(!1),!M)throw T}}const p=async(_,T)=>{const M=await _.getProvider();return _.id==="coinbase"?M.qrUrl:new Promise(V=>M.once("display_uri",Q=>{V(T(Q))}))},g=u.find(_=>_.id==="walletConnect"&&_.isWalletConnectModalConnector),m=u.filter(Tb).map(_=>({..._,groupIndex:0})),y=u.filter(mO).filter(_=>!_.isWalletConnectModalConnector).filter(_=>e?!m.some(M=>M.id===_.rdns):!0).map(_=>gO(_,g)),w=[...m,...y],b=sO(w,_=>_.id),A=ax().map(_=>b[_]).filter(Boolean).slice(0,3),j=[],S=yO({wallets:w,recentWallets:A});for(const _ of S){if(!_)continue;const T=Tb(_),M=ix(A,_.id);if(T){j.push({..._,iconUrl:_.icon,ready:!0,connect:d.bind(null,_),groupName:"Installed",recent:M});continue}j.push({..._,ready:_.installed??!0,connect:d.bind(null,_),desktopDownloadUrl:pO(_),extensionDownloadUrl:fO(_),groupName:_.groupName,mobileDownloadUrl:hO(_),getQrCodeUri:(k=_.qrCode)!=null&&k.getUri?()=>p(_,_.qrCode.getUri):void 0,getDesktopUri:(I=_.desktop)!=null&&I.getUri?()=>p(_,_.desktop.getUri):void 0,getMobileUri:(P=_.mobile)!=null&&P.getUri?()=>{var V;return p(_,(V=_.mobile)==null?void 0:V.getUri)}:void 0,recent:M,showWalletConnectModal:_.walletConnectModalConnector?()=>f(_.walletConnectModalConnector):void 0})}return j}var cx=async()=>(await de(async()=>{const{default:e}=await import("./assets-Q6ZU7ZJ5-P8HioiAD.js");return{default:e}},[])).default,xO=()=>Er(cx),CO=()=>C.createElement(bt,{background:"#d0d5de",borderRadius:"10",height:"48",src:cx,width:"48"}),lx=async()=>(await de(async()=>{const{default:e}=await import("./login-UP3DZBGS-Db_wM5oQ.js");return{default:e}},[])).default,EO=()=>Er(lx),AO=()=>C.createElement(bt,{background:"#d0d5de",borderRadius:"10",height:"48",src:lx,width:"48"}),be=C.forwardRef(({as:e="div",children:t,className:n,color:r,display:i,font:a="body",id:c,size:u="16",style:d,tabIndex:f,textAlign:p="inherit",weight:g="regular",testId:m},y)=>C.createElement(R,{as:e,className:n,color:r,display:i,fontFamily:a,fontSize:u,fontWeight:g,id:c,ref:y,style:d,tabIndex:f,textAlign:p,testId:m},t));be.displayName="Text";var kO={large:{fontSize:"16",paddingX:"24",paddingY:"10"},medium:{fontSize:"14",height:"28",paddingX:"12",paddingY:"4"},small:{fontSize:"14",paddingX:"10",paddingY:"5"}};function Ht({disabled:e=!1,href:t,label:n,onClick:r,rel:i="noreferrer noopener",size:a="medium",target:c="_blank",testId:u,type:d="primary"}){const f=d==="primary",p=a!=="large",g=lt(),m=e?"actionButtonSecondaryBackground":f?"accentColor":p?"actionButtonSecondaryBackground":null,{fontSize:y,height:w,paddingX:b,paddingY:E}=kO[a],A=!g||!p;return C.createElement(R,{...t?e?{}:{as:"a",href:t,rel:i,target:c}:{as:"button",type:"button"},onClick:e?void 0:r,...A?{borderColor:g&&!p&&!f?"actionButtonBorderMobile":"actionButtonBorder",borderStyle:"solid",borderWidth:"1"}:{},borderRadius:"actionButton",className:!e&&st({active:"shrinkSm",hover:"grow"}),display:"block",paddingX:b,paddingY:E,style:{willChange:"transform"},testId:u,textAlign:"center",transition:"transform",...m?{background:m}:{},...w?{height:w}:{}},C.createElement(be,{color:e?"modalTextSecondary":f?"accentColorForeground":"accentColor",size:y,weight:"bold"},n))}var SO=()=>lt()?C.createElement("svg",{"aria-hidden":!0,fill:"none",height:"11.5",viewBox:"0 0 11.5 11.5",width:"11.5",xmlns:"http://www.w3.org/2000/svg"},C.createElement("title",null,"Close"),C.createElement("path",{d:"M2.13388 0.366117C1.64573 -0.122039 0.854272 -0.122039 0.366117 0.366117C-0.122039 0.854272 -0.122039 1.64573 0.366117 2.13388L3.98223 5.75L0.366117 9.36612C-0.122039 9.85427 -0.122039 10.6457 0.366117 11.1339C0.854272 11.622 1.64573 11.622 2.13388 11.1339L5.75 7.51777L9.36612 11.1339C9.85427 11.622 10.6457 11.622 11.1339 11.1339C11.622 10.6457 11.622 9.85427 11.1339 9.36612L7.51777 5.75L11.1339 2.13388C11.622 1.64573 11.622 0.854272 11.1339 0.366117C10.6457 -0.122039 9.85427 -0.122039 9.36612 0.366117L5.75 3.98223L2.13388 0.366117Z",fill:"currentColor"})):C.createElement("svg",{"aria-hidden":!0,fill:"none",height:"10",viewBox:"0 0 10 10",width:"10",xmlns:"http://www.w3.org/2000/svg"},C.createElement("title",null,"Close"),C.createElement("path",{d:"M1.70711 0.292893C1.31658 -0.0976311 0.683417 -0.0976311 0.292893 0.292893C-0.0976311 0.683417 -0.0976311 1.31658 0.292893 1.70711L3.58579 5L0.292893 8.29289C-0.0976311 8.68342 -0.0976311 9.31658 0.292893 9.70711C0.683417 10.0976 1.31658 10.0976 1.70711 9.70711L5 6.41421L8.29289 9.70711C8.68342 10.0976 9.31658 10.0976 9.70711 9.70711C10.0976 9.31658 10.0976 8.68342 9.70711 8.29289L6.41421 5L9.70711 1.70711C10.0976 1.31658 10.0976 0.683417 9.70711 0.292893C9.31658 -0.0976311 8.68342 -0.0976311 8.29289 0.292893L5 3.58579L1.70711 0.292893Z",fill:"currentColor"})),Fi=({"aria-label":e="Close",onClose:t})=>{const n=lt();return C.createElement(R,{alignItems:"center","aria-label":e,as:"button",background:"closeButtonBackground",borderColor:"actionButtonBorder",borderRadius:"full",borderStyle:"solid",borderWidth:n?"0":"1",className:st({active:"shrinkSm",hover:"growLg"}),color:"closeButton",display:"flex",height:n?"30":"28",justifyContent:"center",onClick:t,style:{willChange:"transform"},transition:"default",type:"button",width:n?"30":"28"},C.createElement(SO,null))},ux=async()=>(await de(async()=>{const{default:e}=await import("./sign-A7IJEUT5-CGsRnPrd.js");return{default:e}},[])).default;function IO({onClose:e,onCloseModal:t}){const{i18n:n}=N.useContext(ut),[{status:r,...i},a]=C.useState({status:"idle"}),c=tT(),u=N.useCallback(async()=>{try{const w=await c.getNonce();a(b=>({...b,nonce:w}))}catch{a(w=>({...w,errorMessage:n.t("sign_in.message.preparing_error"),status:"idle"}))}},[c,n.t]),d=N.useRef(!1);C.useEffect(()=>{d.current||(d.current=!0,u())},[u]);const f=lt(),{address:p,chain:g}=St(),{signMessageAsync:m}=FB(),y=async()=>{try{const w=g==null?void 0:g.id,{nonce:b}=i;if(!p||!w||!b)return;a(j=>({...j,errorMessage:void 0,status:"signing"}));const E=c.createMessage({address:p,chainId:w,nonce:b});let A;try{A=await m({message:E})}catch(j){return j instanceof We?a(S=>({...S,status:"idle"})):a(S=>({...S,errorMessage:n.t("sign_in.signature.signing_error"),status:"idle"}))}a(j=>({...j,status:"verifying"}));try{if(await c.verify({message:E,signature:A})){t();return}throw new Error}catch{return a(j=>({...j,errorMessage:n.t("sign_in.signature.verifying_error"),status:"idle"}))}}catch{a({errorMessage:n.t("sign_in.signature.oops_error"),status:"idle"})}};return C.createElement(R,{position:"relative"},C.createElement(R,{display:"flex",paddingRight:"16",paddingTop:"16",position:"absolute",right:"0"},C.createElement(Fi,{onClose:e})),C.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:f?"32":"24",padding:"24",paddingX:"18",style:{paddingTop:f?"60px":"36px"}},C.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:f?"6":"4",style:{maxWidth:f?320:280}},C.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:f?"32":"16"},C.createElement(bt,{height:40,src:ux,width:40}),C.createElement(be,{color:"modalText",size:f?"20":"18",textAlign:"center",weight:"heavy"},n.t("sign_in.label"))),C.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:f?"16":"12"},C.createElement(be,{color:"modalTextSecondary",size:f?"16":"14",textAlign:"center"},n.t("sign_in.description")),r==="idle"&&i.errorMessage?C.createElement(be,{color:"error",size:f?"16":"14",textAlign:"center",weight:"bold"},i.errorMessage):null)),C.createElement(R,{alignItems:f?void 0:"center",display:"flex",flexDirection:"column",gap:"8",width:"full"},C.createElement(Ht,{disabled:!i.nonce||r==="signing"||r==="verifying",label:i.nonce?r==="signing"?n.t("sign_in.signature.waiting"):r==="verifying"?n.t("sign_in.signature.verifying"):n.t("sign_in.message.send"):n.t("sign_in.message.preparing"),onClick:y,size:f?"large":"medium",testId:"auth-message-button"}),f?C.createElement(Ht,{label:"Cancel",onClick:e,size:"large",type:"secondary"}):C.createElement(R,{as:"button",borderRadius:"full",className:st({active:"shrink",hover:"grow"}),display:"block",onClick:e,paddingX:"10",paddingY:"5",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},C.createElement(be,{color:"closeButton",size:f?"16":"14",weight:"bold"},n.t("sign_in.message.cancel"))))))}function jO(){const e=Vi(),t=Uc(),n=Kd()==="unauthenticated",r=N.useCallback(()=>{Er(...t.map(i=>i.iconUrl),...e.map(i=>i.iconUrl).filter(Q3)),lt()||(xO(),EO()),n&&Er(ux)},[t,e,n]);N.useEffect(()=>{r()},[r])}var dx="WALLETCONNECT_DEEPLINK_CHOICE";function BO({mobileUri:e,name:t}){localStorage.setItem(dx,JSON.stringify({href:e.split("?")[0],name:t}))}function _O(){localStorage.removeItem(dx)}var fx=N.createContext(void 0),Vp="data-rk",hx=e=>({[Vp]:e||""}),PO=e=>{if(e&&!/^[a-zA-Z0-9_]+$/.test(e))throw new Error(`Invalid ID: ${e}`);return e?`[${Vp}="${e}"]`:`[${Vp}]`},TO=()=>{const e=N.useContext(fx);return hx(e)},OO=r3();function RO({appInfo:e,avatar:t,children:n,coolMode:r=!1,id:i,initialChain:a,locale:c,modalSize:u=hl.WIDE,showRecentTransactions:d=!1,theme:f=OO}){if(jO(),iO(),W5({onDisconnect:_O}),typeof f=="function")throw new Error('A theme function was provided to the "theme" prop instead of a theme object. You must execute this function to get the resulting theme object.');const p=PO(i),g={...nx,...e},m=t??q3;return C.createElement(BT,{initialChain:a},C.createElement(tO,null,C.createElement(yT,{locale:c},C.createElement(rx.Provider,{value:r},C.createElement(nO,{modalSize:u},C.createElement(c1.Provider,{value:d},C.createElement(ZT,null,C.createElement(H3.Provider,{value:m},C.createElement(dl.Provider,{value:g},C.createElement(fx.Provider,{value:i},C.createElement(TT,null,C.createElement(GR,null,f?C.createElement("div",{...hx(i)},C.createElement("style",{dangerouslySetInnerHTML:{__html:[`${p}{${Pb("lightMode"in f?f.lightMode:f)}}`,"darkMode"in f?`@media(prefers-color-scheme:dark){${p}{${Pb(f.darkMode,{extends:f.lightMode})}}}`:null].join("")}}),n):n))))))))))))}var NO="_9pm4ki5 ju367va ju367v15 ju367v8r",MO="_9pm4ki3 ju367v9h ju367vb3 ju367va ju367v2q ju367v8q",Ob=(e,t)=>{const n=e.querySelectorAll("button:not(:disabled), a[href]");n.length!==0&&n[t==="end"?n.length-1:0].focus()};function DO(e){const t=N.useRef(null);return N.useEffect(()=>{const n=document.activeElement;return()=>{var r;(r=n.focus)==null||r.call(n)}},[]),N.useEffect(()=>{if(t.current){const n=t.current.querySelector("[data-auto-focus]");n?n.focus():t.current.focus()}},[]),C.createElement(C.Fragment,null,C.createElement("div",{onFocus:N.useCallback(()=>t.current&&Ob(t.current,"end"),[]),tabIndex:0}),C.createElement("div",{ref:t,style:{outline:"none"},tabIndex:-1,...e}),C.createElement("div",{onFocus:N.useCallback(()=>t.current&&Ob(t.current,"start"),[]),tabIndex:0}))}var LO=e=>e.stopPropagation();function gd({children:e,onClose:t,open:n,titleId:r}){N.useEffect(()=>{const f=p=>n&&p.key==="Escape"&&t();return document.addEventListener("keydown",f),()=>document.removeEventListener("keydown",f)},[n,t]);const[i,a]=N.useState(!0);N.useEffect(()=>{a(getComputedStyle(window.document.body).overflow!=="hidden")},[]);const c=N.useCallback(()=>t(),[t]),u=TO(),d=lt();return C.createElement(C.Fragment,null,n?q_.createPortal(C.createElement(R3,{enabled:i},C.createElement(R,{...u},C.createElement(R,{...u,alignItems:d?"flex-end":"center","aria-labelledby":r,"aria-modal":!0,className:MO,onClick:c,position:"fixed",role:"dialog"},C.createElement(DO,{className:NO,onClick:LO,role:"document"},e)))),document.body):null)}var FO="_1ckjpok7",zO="_1ckjpok1 ju367vb6 ju367vdr ju367vp ju367vt ju367vv ju367vel ju367va ju367v15 ju367v6c ju367v8r",UO="_1ckjpok4 _1ckjpok1 ju367vb6 ju367vdr ju367vp ju367vt ju367vv ju367vel ju367va ju367v15 ju367v6c ju367v8r",WO="_1ckjpok6 ju367vq",$O="_1ckjpok3 _1ckjpok1 ju367vb6 ju367vdr ju367vp ju367vt ju367vv ju367vel ju367va ju367v15 ju367v6c ju367v8r",qO="_1ckjpok2 _1ckjpok1 ju367vb6 ju367vdr ju367vp ju367vt ju367vv ju367vel ju367va ju367v15 ju367v6c ju367v8r";function yd({bottomSheetOnMobile:e=!1,children:t,marginTop:n,padding:r="16",paddingBottom:i,wide:a=!1}){const c=lt(),d=N.useContext(Jd)===hl.COMPACT;return C.createElement(R,{marginTop:n},C.createElement(R,{className:[a?c?qO:d?UO:$O:zO,c?WO:null,c&&e?FO:null].join(" ")},C.createElement(R,{padding:r,paddingBottom:i??r},t)))}var Rb=["k","m","b","t"];function Uu(e,t=1){return e.toString().replace(new RegExp(`(.+\\.\\d{${t}})\\d+`),"$1").replace(/(\.[1-9]*)0+$/,"$1").replace(/\.$/,"")}function px(e){if(e<1)return Uu(e,3);if(e<10**2)return Uu(e,2);if(e<10**4)return new Intl.NumberFormat().format(Number.parseFloat(Uu(e,1)));const t=10**1;let n=String(e);for(let r=Rb.length-1;r>=0;r--){const i=10**((r+1)*3);if(i<=e){e=e*t/i/t,n=Uu(e,1)+Rb[r];break}}return n}function mx(e){return e.length<8?e:`${e.substring(0,4)}…${e.substring(e.length-4)}`}function gx(e){if(!e)return"";const t=e.split("."),n=t.pop();return t.join(".").length>24?`${t.join(".").substring(0,24)}...`:`${t.join(".")}.${n}`}var HO=()=>C.createElement("svg",{fill:"none",height:"13",viewBox:"0 0 13 13",width:"13",xmlns:"http://www.w3.org/2000/svg"},C.createElement("title",null,"Copied"),C.createElement("path",{d:"M4.94568 12.2646C5.41052 12.2646 5.77283 12.0869 6.01892 11.7109L12.39 1.96973C12.5677 1.69629 12.6429 1.44336 12.6429 1.2041C12.6429 0.561523 12.1644 0.0966797 11.5082 0.0966797C11.057 0.0966797 10.7767 0.260742 10.5033 0.691406L4.9115 9.50977L2.07458 5.98926C1.82166 5.68848 1.54822 5.55176 1.16541 5.55176C0.502319 5.55176 0.0238037 6.02344 0.0238037 6.66602C0.0238037 6.95312 0.112671 7.20605 0.358765 7.48633L3.88611 11.7588C4.18005 12.1074 4.50818 12.2646 4.94568 12.2646Z",fill:"currentColor"})),VO=()=>C.createElement("svg",{fill:"none",height:"16",viewBox:"0 0 17 16",width:"17",xmlns:"http://www.w3.org/2000/svg"},C.createElement("title",null,"Copy"),C.createElement("path",{d:"M3.04236 12.3027H4.18396V13.3008C4.18396 14.8525 5.03845 15.7002 6.59705 15.7002H13.6244C15.183 15.7002 16.0375 14.8525 16.0375 13.3008V6.24609C16.0375 4.69434 15.183 3.84668 13.6244 3.84668H12.4828V2.8418C12.4828 1.29688 11.6283 0.442383 10.0697 0.442383H3.04236C1.48376 0.442383 0.629272 1.29004 0.629272 2.8418V9.90332C0.629272 11.4551 1.48376 12.3027 3.04236 12.3027ZM3.23376 10.5391C2.68689 10.5391 2.39294 10.2656 2.39294 9.68457V3.06055C2.39294 2.47949 2.68689 2.21289 3.23376 2.21289H9.8783C10.4252 2.21289 10.7191 2.47949 10.7191 3.06055V3.84668H6.59705C5.03845 3.84668 4.18396 4.69434 4.18396 6.24609V10.5391H3.23376ZM6.78845 13.9365C6.24158 13.9365 5.94763 13.6699 5.94763 13.0889V6.45801C5.94763 5.87695 6.24158 5.61035 6.78845 5.61035H13.433C13.9799 5.61035 14.2738 5.87695 14.2738 6.45801V13.0889C14.2738 13.6699 13.9799 13.9365 13.433 13.9365H6.78845Z",fill:"currentColor"})),QO=()=>C.createElement("svg",{fill:"none",height:"16",viewBox:"0 0 18 16",width:"18",xmlns:"http://www.w3.org/2000/svg"},C.createElement("title",null,"Disconnect"),C.createElement("path",{d:"M2.67834 15.5908H9.99963C11.5514 15.5908 12.399 14.7432 12.399 13.1777V10.2656H10.6354V12.9863C10.6354 13.5332 10.3688 13.8271 9.78772 13.8271H2.89026C2.3092 13.8271 2.0426 13.5332 2.0426 12.9863V3.15625C2.0426 2.60254 2.3092 2.30859 2.89026 2.30859H9.78772C10.3688 2.30859 10.6354 2.60254 10.6354 3.15625V5.89746H12.399V2.95801C12.399 1.39941 11.5514 0.544922 9.99963 0.544922H2.67834C1.12659 0.544922 0.278931 1.39941 0.278931 2.95801V13.1777C0.278931 14.7432 1.12659 15.5908 2.67834 15.5908ZM7.43616 8.85059H14.0875L15.0924 8.78906L14.566 9.14453L13.6842 9.96484C13.5406 10.1016 13.4586 10.2861 13.4586 10.4844C13.4586 10.8398 13.7321 11.168 14.1217 11.168C14.3199 11.168 14.4635 11.0928 14.6002 10.9561L16.7809 8.68652C16.986 8.48145 17.0543 8.27637 17.0543 8.06445C17.0543 7.85254 16.986 7.64746 16.7809 7.43555L14.6002 5.17285C14.4635 5.03613 14.3199 4.9541 14.1217 4.9541C13.7321 4.9541 13.4586 5.27539 13.4586 5.6377C13.4586 5.83594 13.5406 6.02734 13.6842 6.15723L14.566 6.98438L15.0924 7.33984L14.0875 7.27148H7.43616C7.01917 7.27148 6.65686 7.62012 6.65686 8.06445C6.65686 8.50195 7.01917 8.85059 7.43616 8.85059Z",fill:"currentColor"}));function GO(){const e=ex(),{address:t}=St(),n=a1();return N.useCallback(()=>{if(!t||!n)throw new Error("No address or chain ID found");e.clearTransactions(t,n)},[e,t,n])}var yx=e=>{var t,n;return(n=(t=e==null?void 0:e.blockExplorers)==null?void 0:t.default)==null?void 0:n.url},vx=()=>C.createElement("svg",{fill:"none",height:"19",viewBox:"0 0 20 19",width:"20",xmlns:"http://www.w3.org/2000/svg"},C.createElement("title",null,"Link"),C.createElement("path",{d:"M10 18.9443C15.0977 18.9443 19.2812 14.752 19.2812 9.6543C19.2812 4.56543 15.0889 0.373047 10 0.373047C4.90234 0.373047 0.71875 4.56543 0.71875 9.6543C0.71875 14.752 4.91113 18.9443 10 18.9443ZM10 16.6328C6.1416 16.6328 3.03906 13.5215 3.03906 9.6543C3.03906 5.7959 6.13281 2.68457 10 2.68457C13.8584 2.68457 16.9697 5.7959 16.9697 9.6543C16.9785 13.5215 13.8672 16.6328 10 16.6328ZM12.7158 12.1416C13.2432 12.1416 13.5684 11.7549 13.5684 11.1836V7.19336C13.5684 6.44629 13.1377 6.05957 12.417 6.05957H8.40918C7.8291 6.05957 7.45117 6.38477 7.45117 6.91211C7.45117 7.43945 7.8291 7.77344 8.40918 7.77344H9.69238L10.7207 7.63281L9.53418 8.67871L6.73047 11.4912C6.53711 11.6758 6.41406 11.9395 6.41406 12.2031C6.41406 12.7832 6.85352 13.1699 7.39844 13.1699C7.68848 13.1699 7.92578 13.0732 8.1543 12.8623L10.9316 10.0762L11.9775 8.89844L11.8545 9.98828V11.1836C11.8545 11.7725 12.1885 12.1416 12.7158 12.1416Z",fill:"currentColor"})),KO=()=>C.createElement("svg",{fill:"none",height:"19",viewBox:"0 0 20 19",width:"20",xmlns:"http://www.w3.org/2000/svg"},C.createElement("title",null,"Cancel"),C.createElement("path",{d:"M10 18.9443C15.0977 18.9443 19.2812 14.752 19.2812 9.6543C19.2812 4.56543 15.0889 0.373047 10 0.373047C4.90234 0.373047 0.71875 4.56543 0.71875 9.6543C0.71875 14.752 4.91113 18.9443 10 18.9443ZM10 16.6328C6.1416 16.6328 3.03906 13.5215 3.03906 9.6543C3.03906 5.7959 6.13281 2.68457 10 2.68457C13.8584 2.68457 16.9697 5.7959 16.9697 9.6543C16.9785 13.5215 13.8672 16.6328 10 16.6328ZM7.29297 13.3018C7.58301 13.3018 7.81152 13.2139 7.99609 13.0205L10 11.0166L12.0127 13.0205C12.1973 13.2051 12.4258 13.3018 12.707 13.3018C13.2432 13.3018 13.6562 12.8887 13.6562 12.3525C13.6562 12.0977 13.5508 11.8691 13.3662 11.6934L11.3535 9.67188L13.375 7.6416C13.5596 7.44824 13.6562 7.22852 13.6562 6.98242C13.6562 6.44629 13.2432 6.0332 12.7158 6.0332C12.4346 6.0332 12.2148 6.12109 12.0215 6.31445L10 8.32715L7.9873 6.32324C7.80273 6.12988 7.58301 6.04199 7.29297 6.04199C6.76562 6.04199 6.35254 6.45508 6.35254 6.99121C6.35254 7.2373 6.44922 7.46582 6.63379 7.6416L8.65527 9.67188L6.63379 11.6934C6.44922 11.8691 6.35254 12.1064 6.35254 12.3525C6.35254 12.8887 6.76562 13.3018 7.29297 13.3018Z",fill:"currentColor"})),YO=()=>C.createElement("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},C.createElement("title",null,"Success"),C.createElement("path",{d:"M10 19.4443C15.0977 19.4443 19.2812 15.252 19.2812 10.1543C19.2812 5.06543 15.0889 0.873047 10 0.873047C4.90234 0.873047 0.71875 5.06543 0.71875 10.1543C0.71875 15.252 4.91113 19.4443 10 19.4443ZM10 17.1328C6.1416 17.1328 3.03906 14.0215 3.03906 10.1543C3.03906 6.2959 6.13281 3.18457 10 3.18457C13.8584 3.18457 16.9697 6.2959 16.9697 10.1543C16.9785 14.0215 13.8672 17.1328 10 17.1328ZM9.07715 14.3379C9.4375 14.3379 9.7627 14.1533 9.97363 13.8369L13.7441 8.00977C13.8848 7.79883 13.9814 7.5791 13.9814 7.36816C13.9814 6.84961 13.5244 6.48926 13.0322 6.48926C12.707 6.48926 12.4258 6.66504 12.2148 7.0166L9.05957 12.0967L7.5918 10.2949C7.37207 10.0225 7.13477 9.9082 6.84473 9.9082C6.33496 9.9082 5.92188 10.3125 5.92188 10.8223C5.92188 11.0684 6.00098 11.2793 6.18555 11.5078L8.1543 13.8545C8.40918 14.1709 8.70801 14.3379 9.07715 14.3379Z",fill:"currentColor"})),JO=e=>{switch(e){case"pending":return zc;case"confirmed":return YO;case"failed":return KO;default:return zc}};function ZO({tx:e}){const t=lt(),n=JO(e.status),r=e.status==="failed"?"error":"accentColor",{chain:i}=St(),a=e.status==="confirmed"?"Confirmed":e.status==="failed"?"Failed":"Pending",c=yx(i);return C.createElement(C.Fragment,null,C.createElement(R,{...c?{as:"a",background:{hover:"profileForeground"},borderRadius:"menuButton",className:st({active:"shrink"}),href:`${c}/tx/${e.hash}`,rel:"noreferrer noopener",target:"_blank",transition:"default"}:{},color:"modalText",display:"flex",flexDirection:"row",justifyContent:"space-between",padding:"8",width:"full"},C.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",gap:t?"16":"14"},C.createElement(R,{color:r},C.createElement(n,null)),C.createElement(R,{display:"flex",flexDirection:"column",gap:t?"3":"1"},C.createElement(R,null,C.createElement(be,{color:"modalText",font:"body",size:t?"16":"14",weight:"bold"},e==null?void 0:e.description)),C.createElement(R,null,C.createElement(be,{color:e.status==="pending"?"modalTextSecondary":r,font:"body",size:"14",weight:t?"medium":"regular"},a)))),c&&C.createElement(R,{alignItems:"center",color:"modalTextDim",display:"flex"},C.createElement(vx,null))))}var XO=3;function eR({address:e}){const t=tx(),n=GO(),{chain:r}=St(),i=yx(r),a=t.slice(0,XO),c=a.length>0,u=lt(),{appName:d}=N.useContext(dl),{i18n:f}=N.useContext(ut);return C.createElement(C.Fragment,null,C.createElement(R,{display:"flex",flexDirection:"column",gap:"10",paddingBottom:"2",paddingTop:"16",paddingX:u?"8":"18"},c&&C.createElement(R,{paddingBottom:u?"4":"0",paddingTop:"8",paddingX:u?"12":"6"},C.createElement(R,{display:"flex",justifyContent:"space-between"},C.createElement(be,{color:"modalTextSecondary",size:u?"16":"14",weight:"semibold"},f.t("profile.transactions.recent.title")),C.createElement(R,{style:{marginBottom:-6,marginLeft:-10,marginRight:-10,marginTop:-6}},C.createElement(R,{as:"button",background:{hover:"profileForeground"},borderRadius:"actionButton",className:st({active:"shrink"}),onClick:n,paddingX:u?"8":"12",paddingY:u?"4":"5",transition:"default",type:"button"},C.createElement(be,{color:"modalTextSecondary",size:u?"16":"14",weight:"semibold"},f.t("profile.transactions.clear.label")))))),C.createElement(R,{display:"flex",flexDirection:"column",gap:"4"},c?a.map(p=>C.createElement(ZO,{key:p.hash,tx:p})):C.createElement(C.Fragment,null,C.createElement(R,{padding:u?"12":"8"},C.createElement(be,{color:"modalTextDim",size:u?"16":"14",weight:u?"medium":"bold"},d?f.t("profile.transactions.description",{appName:d}):f.t("profile.transactions.description_fallback"))),u&&C.createElement(R,{background:"generalBorderDim",height:"1",marginX:"12",marginY:"8"})))),i&&C.createElement(R,{paddingBottom:"18",paddingX:u?"8":"18"},C.createElement(R,{alignItems:"center",as:"a",background:{hover:"profileForeground"},borderRadius:"menuButton",className:st({active:"shrink"}),color:"modalTextDim",display:"flex",flexDirection:"row",href:`${i}/address/${e}`,justifyContent:"space-between",paddingX:"8",paddingY:"12",rel:"noreferrer noopener",style:{willChange:"transform"},target:"_blank",transition:"default",width:"full",...u?{paddingLeft:"12"}:{}},C.createElement(be,{color:"modalText",font:"body",size:u?"16":"14",weight:u?"semibold":"bold"},f.t("profile.explorer.label")),C.createElement(vx,null))))}function Nb({action:e,icon:t,label:n,testId:r,url:i}){const a=lt();return C.createElement(R,{...i?{as:"a",href:i,rel:"noreferrer noopener",target:"_blank"}:{as:"button",type:"button"},background:{base:"profileAction",...a?{}:{hover:"profileActionHover"}},borderRadius:"menuButton",boxShadow:"profileDetailsAction",className:st({active:"shrinkSm",hover:a?void 0:"grow"}),display:"flex",onClick:e,padding:a?"6":"8",style:{willChange:"transform"},testId:r,transition:"default",width:"full"},C.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:"1",justifyContent:"center",paddingTop:"2",width:"full"},C.createElement(R,{color:"modalText",height:"max"},t),C.createElement(R,null,C.createElement(be,{color:"modalText",size:a?"12":"13",weight:"semibold"},n))))}function tR({address:e,ensAvatar:t,ensName:n,balance:r,onClose:i,onDisconnect:a}){const c=N.useContext(c1),[u,d]=N.useState(!1),f=N.useCallback(()=>{e&&(navigator.clipboard.writeText(e),d(!0))},[e]);if(N.useEffect(()=>{if(u){const E=setTimeout(()=>{d(!1)},1500);return()=>clearTimeout(E)}},[u]),!e)return null;const p=n?gx(n):mx(e),g=r==null?void 0:r.formatted,m=g?px(Number.parseFloat(g)):void 0,y="rk_profile_title",w=lt(),{i18n:b}=N.useContext(ut);return C.createElement(C.Fragment,null,C.createElement(R,{display:"flex",flexDirection:"column"},C.createElement(R,{background:"profileForeground",padding:"16"},C.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:w?"16":"12",justifyContent:"center",margin:"8",style:{textAlign:"center"}},C.createElement(R,{style:{position:"absolute",right:16,top:16,willChange:"transform"}},C.createElement(Fi,{onClose:i}))," ",C.createElement(R,{marginTop:w?"24":"0"},C.createElement(V3,{address:e,imageUrl:t,size:w?82:74})),C.createElement(R,{display:"flex",flexDirection:"column",gap:w?"4":"0",textAlign:"center"},C.createElement(R,{textAlign:"center"},C.createElement(be,{as:"h1",color:"modalText",id:y,size:w?"20":"18",weight:"heavy"},p)),!!r&&C.createElement(R,{textAlign:"center"},C.createElement(be,{as:"h1",color:"modalTextSecondary",id:y,size:w?"16":"14",weight:"semibold"},m," ",r.symbol)))),C.createElement(R,{display:"flex",flexDirection:"row",gap:"8",margin:"2",marginTop:"16"},C.createElement(Nb,{action:f,icon:u?C.createElement(HO,null):C.createElement(VO,null),label:u?b.t("profile.copy_address.copied"):b.t("profile.copy_address.label")}),C.createElement(Nb,{action:a,icon:C.createElement(QO,null),label:b.t("profile.disconnect.label"),testId:"disconnect-button"}))),c&&C.createElement(C.Fragment,null,C.createElement(R,{background:"generalBorder",height:"1",marginTop:"-1"}),C.createElement(R,null,C.createElement(eR,{address:e})))))}function nR({onClose:e,open:t}){const{address:n}=St(),{balance:r,ensAvatar:i,ensName:a}=J3({address:n,includeBalance:t}),{disconnect:c}=Ym();return n?C.createElement(C.Fragment,null,n&&C.createElement(gd,{onClose:e,open:t,titleId:"rk_account_modal_title"},C.createElement(yd,{bottomSheetOnMobile:!0,padding:"0"},C.createElement(tR,{address:n,ensAvatar:i,ensName:a,balance:r,onClose:e,onDisconnect:c})))):null}var rR=({size:e})=>C.createElement("svg",{fill:"none",height:e,viewBox:"0 0 28 28",width:e,xmlns:"http://www.w3.org/2000/svg"},C.createElement("title",null,"Disconnect"),C.createElement("path",{d:"M6.742 22.195h8.367c1.774 0 2.743-.968 2.743-2.758V16.11h-2.016v3.11c0 .625-.305.96-.969.96H6.984c-.664 0-.968-.335-.968-.96V7.984c0-.632.304-.968.968-.968h7.883c.664 0 .969.336.969.968v3.133h2.016v-3.36c0-1.78-.97-2.757-2.743-2.757H6.742C4.97 5 4 5.977 4 7.758v11.68c0 1.789.969 2.757 2.742 2.757Zm5.438-7.703h7.601l1.149-.07-.602.406-1.008.938a.816.816 0 0 0-.258.593c0 .407.313.782.758.782.227 0 .39-.086.547-.243l2.492-2.593c.235-.235.313-.47.313-.711 0-.242-.078-.477-.313-.719l-2.492-2.586c-.156-.156-.32-.25-.547-.25-.445 0-.758.367-.758.781 0 .227.094.446.258.594l1.008.945.602.407-1.149-.079H12.18a.904.904 0 0 0 0 1.805Z",fill:"currentColor"})),oR="v9horb0",h1=C.forwardRef(({children:e,currentlySelected:t=!1,onClick:n,testId:r,...i},a)=>{const c=lt();return C.createElement(R,{as:"button",borderRadius:"menuButton",disabled:t,display:"flex",onClick:n,ref:a,testId:r,type:"button"},C.createElement(R,{borderRadius:"menuButton",className:[c?oR:void 0,!t&&st({active:"shrink"})],padding:c?"8":"6",transition:"default",width:"full",...t?{background:"accentColor",borderColor:"selectedOptionBorder",borderStyle:"solid",borderWidth:"1",boxShadow:"selectedOption",color:"accentColorForeground"}:{background:{hover:"menuItemBackground"},color:"modalText",transition:"default"},...i},e))});h1.displayName="MenuButton";var iR=({chainId:e,currentChainId:t,switchChain:n,chainIconSize:r,isLoading:i,src:a,name:c,iconBackground:u,idx:d})=>{const f=lt(),{i18n:p}=N.useContext(ut),g=Vi(),m=t===e;return C.createElement(N.Fragment,null,C.createElement(h1,{currentlySelected:m,onClick:m?void 0:()=>n({chainId:e}),testId:`chain-option-${e}`},C.createElement(R,{fontFamily:"body",fontSize:"16",fontWeight:"bold"},C.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",justifyContent:"space-between"},C.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",height:r},a&&C.createElement(R,{height:"full",marginRight:"8"},C.createElement(bt,{alt:c,background:u,borderRadius:"full",height:r,src:a,width:r,testId:`chain-option-${e}-icon`})),C.createElement("div",null,c??c)),m&&C.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",marginRight:"6"},C.createElement(be,{color:"accentColorForeground",size:"14",weight:"medium"},p.t("chains.connected")),C.createElement(R,{background:"connectionIndicator",borderColor:"selectedOptionBorder",borderRadius:"full",borderStyle:"solid",borderWidth:"1",height:"8",marginLeft:"8",width:"8"})),i&&C.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",marginRight:"6"},C.createElement(be,{color:"modalText",size:"14",weight:"medium"},p.t("chains.confirm")),C.createElement(R,{background:"standby",borderRadius:"full",height:"8",marginLeft:"8",width:"8"}))))),f&&d<g.length-1&&C.createElement(R,{background:"generalBorderDim",height:"1",marginX:"8"}))},sR=iR,aR="_18dqw9x0",cR="_18dqw9x1";function lR({onClose:e,open:t}){const{chainId:n}=St(),{chains:r}=et(),[i,a]=N.useState(null),{switchChain:c}=UB({mutation:{onMutate:({chainId:w})=>{a(w)},onSuccess:()=>{i&&a(null)},onError:()=>{i&&a(null)},onSettled:()=>{e()}}}),{i18n:u}=N.useContext(ut),{disconnect:d}=Ym(),f="rk_chain_modal_title",p=lt(),g=r.some(w=>w.id===n),m=p?"36":"28",y=Vi();return n?C.createElement(gd,{onClose:e,open:t,titleId:f},C.createElement(yd,{bottomSheetOnMobile:!0,paddingBottom:"0"},C.createElement(R,{display:"flex",flexDirection:"column",gap:"14"},C.createElement(R,{display:"flex",flexDirection:"row",justifyContent:"space-between"},p&&C.createElement(R,{width:"30"}),C.createElement(R,{paddingBottom:"0",paddingLeft:"8",paddingTop:"4"},C.createElement(be,{as:"h1",color:"modalText",id:f,size:p?"20":"18",weight:"heavy"},u.t("chains.title"))),C.createElement(Fi,{onClose:e})),!g&&C.createElement(R,{marginX:"8",textAlign:p?"center":"left"},C.createElement(be,{color:"modalTextSecondary",size:"14",weight:"medium"},u.t("chains.wrong_network"))),C.createElement(R,{className:p?cR:aR,display:"flex",flexDirection:"column",gap:"4",padding:"2",paddingBottom:"16"},y.map(({iconBackground:w,iconUrl:b,id:E,name:A},j)=>C.createElement(sR,{key:E,chainId:E,currentChainId:n,switchChain:c,chainIconSize:m,isLoading:i===E,src:b,name:A,iconBackground:w,idx:j})),!g&&C.createElement(C.Fragment,null,C.createElement(R,{background:"generalBorderDim",height:"1",marginX:"8"}),C.createElement(h1,{onClick:()=>d(),testId:"chain-option-disconnect"},C.createElement(R,{color:"error",fontFamily:"body",fontSize:"16",fontWeight:"bold"},C.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",justifyContent:"space-between"},C.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",height:m},C.createElement(R,{alignItems:"center",color:"error",height:m,justifyContent:"center",marginRight:"8"},C.createElement(rR,{size:Number(m)})),C.createElement("div",null,u.t("chains.disconnect"))))))))))):null}function uR(e,t){const n={};for(const r of e){const i=t(r);i&&(n[i]||(n[i]=[]),n[i].push(r))}return n}var p1=({children:e,href:t})=>C.createElement(R,{as:"a",color:"accentColor",href:t,rel:"noreferrer",target:"_blank"},e),m1=({children:e})=>C.createElement(be,{color:"modalTextSecondary",size:"12",weight:"medium"},e);function Mb({compactModeEnabled:e=!1,getWallet:t}){const{disclaimer:n,learnMoreUrl:r}=N.useContext(dl),{i18n:i}=N.useContext(ut);return C.createElement(C.Fragment,null,C.createElement(R,{alignItems:"center",color:"accentColor",display:"flex",flexDirection:"column",height:"full",justifyContent:"space-around"},C.createElement(R,{marginBottom:"10"},!e&&C.createElement(be,{color:"modalText",size:"18",weight:"heavy"},i.t("intro.title"))),C.createElement(R,{display:"flex",flexDirection:"column",gap:"32",justifyContent:"center",marginY:"20",style:{maxWidth:312}},C.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},C.createElement(R,{borderRadius:"6",height:"48",minWidth:"48",width:"48"},C.createElement(CO,null)),C.createElement(R,{display:"flex",flexDirection:"column",gap:"4"},C.createElement(be,{color:"modalText",size:"14",weight:"bold"},i.t("intro.digital_asset.title")),C.createElement(be,{color:"modalTextSecondary",size:"14",weight:"medium"},i.t("intro.digital_asset.description")))),C.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},C.createElement(R,{borderRadius:"6",height:"48",minWidth:"48",width:"48"},C.createElement(AO,null)),C.createElement(R,{display:"flex",flexDirection:"column",gap:"4"},C.createElement(be,{color:"modalText",size:"14",weight:"bold"},i.t("intro.login.title")),C.createElement(be,{color:"modalTextSecondary",size:"14",weight:"medium"},i.t("intro.login.description"))))),C.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",margin:"10"},C.createElement(Ht,{label:i.t("intro.get.label"),onClick:t}),C.createElement(R,{as:"a",className:st({active:"shrink",hover:"grow"}),display:"block",href:r,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},C.createElement(be,{color:"accentColor",size:"14",weight:"bold"},i.t("intro.learn_more.label")))),n&&!e&&C.createElement(R,{marginBottom:"8",marginTop:"12",textAlign:"center"},C.createElement(n,{Link:p1,Text:m1}))))}var wx=()=>C.createElement("svg",{fill:"none",height:"17",viewBox:"0 0 11 17",width:"11",xmlns:"http://www.w3.org/2000/svg"},C.createElement("title",null,"Back"),C.createElement("path",{d:"M0.99707 8.6543C0.99707 9.08496 1.15527 9.44531 1.51562 9.79688L8.16016 16.3096C8.43262 16.5732 8.74902 16.7051 9.13574 16.7051C9.90918 16.7051 10.5508 16.0811 10.5508 15.3076C10.5508 14.9121 10.3838 14.5605 10.0938 14.2705L4.30176 8.64551L10.0938 3.0293C10.3838 2.74805 10.5508 2.3877 10.5508 2.00098C10.5508 1.23633 9.90918 0.603516 9.13574 0.603516C8.74902 0.603516 8.43262 0.735352 8.16016 0.999023L1.51562 7.51172C1.15527 7.85449 1.00586 8.21484 0.99707 8.6543Z",fill:"currentColor"})),dR=()=>C.createElement("svg",{fill:"none",height:"12",viewBox:"0 0 8 12",width:"8",xmlns:"http://www.w3.org/2000/svg"},C.createElement("title",null,"Info"),C.createElement("path",{d:"M3.64258 7.99609C4.19336 7.99609 4.5625 7.73828 4.68555 7.24609C4.69141 7.21094 4.70312 7.16406 4.70898 7.13477C4.80859 6.60742 5.05469 6.35547 6.04492 5.76367C7.14648 5.10156 7.67969 4.3457 7.67969 3.24414C7.67969 1.39844 6.17383 0.255859 3.95898 0.255859C2.32422 0.255859 1.05859 0.894531 0.548828 1.86719C0.396484 2.14844 0.320312 2.44727 0.320312 2.74023C0.314453 3.37305 0.742188 3.79492 1.42188 3.79492C1.91406 3.79492 2.33594 3.54883 2.53516 3.11523C2.78711 2.47656 3.23242 2.21289 3.83594 2.21289C4.55664 2.21289 5.10742 2.65234 5.10742 3.29102C5.10742 3.9707 4.7793 4.29883 3.81836 4.87891C3.02148 5.36523 2.50586 5.92773 2.50586 6.76562V6.90039C2.50586 7.55664 2.96289 7.99609 3.64258 7.99609ZM3.67188 11.4473C4.42773 11.4473 5.04297 10.8672 5.04297 10.1406C5.04297 9.41406 4.42773 8.83984 3.67188 8.83984C2.91602 8.83984 2.30664 9.41406 2.30664 10.1406C2.30664 10.8672 2.91602 11.4473 3.67188 11.4473Z",fill:"currentColor"})),fR=({"aria-label":e="Info",onClick:t})=>{const n=lt();return C.createElement(R,{alignItems:"center","aria-label":e,as:"button",background:"closeButtonBackground",borderColor:"actionButtonBorder",borderRadius:"full",borderStyle:"solid",borderWidth:n?"0":"1",className:st({active:"shrinkSm",hover:"growLg"}),color:"closeButton",display:"flex",height:n?"30":"28",justifyContent:"center",onClick:t,style:{willChange:"transform"},transition:"default",type:"button",width:n?"30":"28"},C.createElement(dR,null))},bx=e=>{const t=N.useRef(null),n=N.useContext(rx),r=Yd(e);return N.useEffect(()=>{if(n&&t.current&&r)return pR(t.current,r)},[n,r]),t},hR=()=>{const e="_rk_coolMode",t=document.getElementById(e);if(t)return t;const n=document.createElement("div");return n.setAttribute("id",e),n.setAttribute("style",["overflow:hidden","position:fixed","height:100%","top:0","left:0","right:0","bottom:0","pointer-events:none","z-index:2147483647"].join(";")),document.body.appendChild(n),n},Db=0;function pR(e,t){Db++;const n=[15,20,25,35,45],r=35;let i=[],a=!1,c=0,u=0;const d=hR();function f(){const k=n[Math.floor(Math.random()*n.length)],I=Math.random()*10,P=Math.random()*25,_=Math.random()*360,T=Math.random()*35*(Math.random()<=.5?-1:1),M=u-k/2,V=c-k/2,Q=Math.random()<=.5?-1:1,Z=document.createElement("div");Z.innerHTML=`<img src="${t}" width="${k}" height="${k}" style="border-radius: 25%">`,Z.setAttribute("style",["position:absolute","will-change:transform",`top:${M}px`,`left:${V}px`,`transform:rotate(${_}deg)`].join(";")),d.appendChild(Z),i.push({direction:Q,element:Z,left:V,size:k,speedHorz:I,speedUp:P,spinSpeed:T,spinVal:_,top:M})}function p(){for(const k of i)k.left=k.left-k.speedHorz*k.direction,k.top=k.top-k.speedUp,k.speedUp=Math.min(k.size,k.speedUp-1),k.spinVal=k.spinVal+k.spinSpeed,k.top>=Math.max(window.innerHeight,document.body.clientHeight)+k.size&&(i=i.filter(I=>I!==k),k.element.remove()),k.element.setAttribute("style",["position:absolute","will-change:transform",`top:${k.top}px`,`left:${k.left}px`,`transform:rotate(${k.spinVal}deg)`].join(";"))}let g;function m(){a&&i.length<r&&f(),p(),g=requestAnimationFrame(m)}m();const y="ontouchstart"in window||navigator.msMaxTouchPoints,w=y?"touchstart":"mousedown",b=y?"touchend":"mouseup",E=y?"touchmove":"mousemove",A=k=>{var I,P;"touches"in k?(c=(I=k.touches)==null?void 0:I[0].clientX,u=(P=k.touches)==null?void 0:P[0].clientY):(c=k.clientX,u=k.clientY)},j=k=>{A(k),a=!0},S=()=>{a=!1};return e.addEventListener(E,A,{passive:!1}),e.addEventListener(w,j),e.addEventListener(b,S),e.addEventListener("mouseleave",S),()=>{e.removeEventListener(E,A),e.removeEventListener(w,j),e.removeEventListener(b,S),e.removeEventListener("mouseleave",S);const k=setInterval(()=>{g&&i.length===0&&(cancelAnimationFrame(g),clearInterval(k),--Db===0&&d.remove())},500)}}var mR="g5kl0l0",xx=({as:e="button",currentlySelected:t=!1,iconBackground:n,iconUrl:r,name:i,onClick:a,ready:c,recent:u,testId:d,isRainbowKitConnector:f,...p})=>{const g=bx(r),[m,y]=C.useState(!1),{i18n:w}=C.useContext(ut);return C.createElement(R,{display:"flex",flexDirection:"column",onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),ref:g},C.createElement(R,{as:e,borderRadius:"menuButton",borderStyle:"solid",borderWidth:"1",className:t?void 0:[mR,st({active:"shrink"})],disabled:t,onClick:a,padding:"5",style:{willChange:"transform"},testId:d,transition:"default",width:"full",...t?{background:"accentColor",borderColor:"selectedOptionBorder",boxShadow:"selectedWallet"}:{background:{hover:"menuItemBackground"}},...p},C.createElement(R,{color:t?"accentColorForeground":"modalText",disabled:!c,fontFamily:"body",fontSize:"16",fontWeight:"bold",transition:"default"},C.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",gap:"12"},C.createElement(bt,{background:n,...!m&&f?{borderColor:"actionButtonBorder"}:{},useAsImage:!f,borderRadius:"6",height:"28",src:r,width:"28"}),C.createElement(R,null,C.createElement(R,{style:{marginTop:u?-2:void 0},maxWidth:"200"},i),u&&C.createElement(be,{color:t?"accentColorForeground":"accentColor",size:"12",style:{lineHeight:1,marginTop:-1},weight:"medium"},w.t("connect.recent")))))))};xx.displayName="ModalSelection";var gR="rk-latest-id";function yR(e){localStorage.setItem(gR,e)}var Rh=(e,t=1)=>{let n=e.replace("#","");n.length===3&&(n=`${n[0]}${n[0]}${n[1]}${n[1]}${n[2]}${n[2]}`);const r=Number.parseInt(n.substring(0,2),16),i=Number.parseInt(n.substring(2,4),16),a=Number.parseInt(n.substring(4,6),16);return t>1&&t<=100&&(t=t/100),`rgba(${r},${i},${a},${t})`},vR=e=>e?[Rh(e,.2),Rh(e,.14),Rh(e,.1)]:null,wR=e=>/^#([0-9a-f]{3}){1,2}$/i.test(e),Cx=async()=>(await de(async()=>{const{default:e}=await import("./connect-UA7M4XW6-IY3X6Bmr.js");return{default:e}},[])).default,bR=()=>Er(Cx),xR=()=>C.createElement(bt,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:Cx,width:"48"}),Ex=async()=>(await de(async()=>{const{default:e}=await import("./create-FASO7PVG-D_rvSpre.js");return{default:e}},[])).default,Ax=()=>Er(Ex),CR=()=>C.createElement(bt,{background:"#e3a5e8",borderColor:"generalBorder",borderRadius:"10",height:"48",src:Ex,width:"48"}),kx=async()=>(await de(async()=>{const{default:e}=await import("./refresh-S4T5V5GX-CwqIaaxK.js");return{default:e}},[])).default,ER=()=>Er(kx),AR=()=>C.createElement(bt,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:kx,width:"48"}),Sx=async()=>(await de(async()=>{const{default:e}=await import("./scan-4UYSQ56Q-CjMz6-XC.js");return{default:e}},[])).default,Ix=()=>Er(Sx),kR=()=>C.createElement(bt,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:Sx,width:"48"}),SR="_1vwt0cg0",IR="_1vwt0cg2 ju367v7a ju367v7v",jR="_1vwt0cg3",BR="_1vwt0cg4";function jx({ecc:e="medium",logoBackground:t,logoSize:n=50,logoUrl:r,size:i=200,uri:a}){const u=i-Number.parseInt("20",10)*2,d=Yd(r);return C.createElement(R,{borderColor:"generalBorder",borderRadius:"menuButton",borderStyle:"solid",borderWidth:"1",className:SR,padding:"20",width:"max"},C.createElement(R,{style:{height:u,userSelect:"none",width:u},userSelect:"none"},C.createElement(vr.Root,{errorCorrection:e,size:u,value:a},C.createElement(vr.Cells,{radius:1}),C.createElement(vr.Finder,{radius:.25}),d&&C.createElement(vr.Arena,null,C.createElement("img",{alt:"Wallet Logo",src:d,style:{objectFit:"cover",height:"88%",width:"88%",borderRadius:"22.5%",backgroundColor:t}})))))}var Bx=async()=>{switch(u1()){case"Arc":return(await de(async()=>{const{default:t}=await import("./Arc-VDBY7LNS-BChRXCXW.js");return{default:t}},[])).default;case"Brave":return(await de(async()=>{const{default:t}=await import("./Brave-BRAKJXDS-mq-Xo37j.js");return{default:t}},[])).default;case"Chrome":return(await de(async()=>{const{default:t}=await import("./Chrome-65Q5P54Y-DR9MQEVr.js");return{default:t}},[])).default;case"Edge":return(await de(async()=>{const{default:t}=await import("./Edge-XSPUTORV-DEoZslQE.js");return{default:t}},[])).default;case"Firefox":return(await de(async()=>{const{default:t}=await import("./Firefox-AAHGJQIP-Bp_Hm04m.js");return{default:t}},[])).default;case"Opera":return(await de(async()=>{const{default:t}=await import("./Opera-KQZLSACL-Cwv5MDFy.js");return{default:t}},[])).default;case"Safari":return(await de(async()=>{const{default:t}=await import("./Safari-ZPL37GXR-C4Ggg6rz.js");return{default:t}},[])).default;default:return(await de(async()=>{const{default:t}=await import("./Browser-76IHF3Y2-BMhRaC5Z.js");return{default:t}},[])).default}},_R=()=>Er(Bx),_x=async()=>{switch(f1()){case"Windows":return(await de(async()=>{const{default:t}=await import("./Windows-PPTHQER6-BlyV2p7Y.js");return{default:t}},[])).default;case"macOS":return(await de(async()=>{const{default:t}=await import("./Macos-MW4AE7LN-Vvm8Drw3.js");return{default:t}},[])).default;case"Linux":return(await de(async()=>{const{default:t}=await import("./Linux-OO4TNCLJ-B0aw93n9.js");return{default:t}},[])).default;default:return(await de(async()=>{const{default:t}=await import("./Linux-OO4TNCLJ-B0aw93n9.js");return{default:t}},[])).default}},PR=()=>Er(_x);function TR({getWalletDownload:e,compactModeEnabled:t}){const r=Uc().filter(a=>a.isRainbowKitConnector).splice(0,5),{i18n:i}=N.useContext(ut);return C.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",marginTop:"18",width:"full"},C.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:"28",height:"full",width:"full"},r==null?void 0:r.filter(a=>{var c;return a.extensionDownloadUrl||a.desktopDownloadUrl||a.qrCode&&((c=a.downloadUrls)==null?void 0:c.qrCode)}).map(a=>{const{downloadUrls:c,iconBackground:u,iconUrl:d,id:f,name:p,qrCode:g}=a,m=(c==null?void 0:c.qrCode)&&g,y=!!a.extensionDownloadUrl,w=(c==null?void 0:c.qrCode)&&y,b=(c==null?void 0:c.qrCode)&&!!a.desktopDownloadUrl;return C.createElement(R,{alignItems:"center",display:"flex",gap:"16",justifyContent:"space-between",key:a.id,width:"full"},C.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},C.createElement(bt,{background:u,borderColor:"actionButtonBorder",borderRadius:"10",height:"48",src:d,width:"48"}),C.createElement(R,{display:"flex",flexDirection:"column",gap:"2"},C.createElement(be,{color:"modalText",size:"14",weight:"bold"},p),C.createElement(be,{color:"modalTextSecondary",size:"14",weight:"medium"},w?i.t("get.mobile_and_extension.description"):b?i.t("get.mobile_and_desktop.description"):m?i.t("get.mobile.description"):y?i.t("get.extension.description"):null))),C.createElement(R,{display:"flex",flexDirection:"column",gap:"4"},C.createElement(Ht,{label:i.t("get.action.label"),onClick:()=>e(f),type:"secondary"})))})),C.createElement(R,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"column",gap:"8",justifyContent:"space-between",marginBottom:"4",paddingY:"8",style:{maxWidth:275,textAlign:"center"}},C.createElement(be,{color:"modalText",size:"14",weight:"bold"},i.t("get.looking_for.title")),C.createElement(be,{color:"modalTextSecondary",size:"14",weight:"medium"},t?i.t("get.looking_for.desktop.compact_description"):i.t("get.looking_for.desktop.wide_description"))))}var Nh="44";function OR({changeWalletStep:e,compactModeEnabled:t,connectionError:n,onClose:r,qrCodeUri:i,reconnect:a,wallet:c}){const{downloadUrls:u,iconBackground:d,iconUrl:f,name:p,qrCode:g,ready:m,showWalletConnectModal:y,getDesktopUri:w}=c,b=!!w,E=l1(),{i18n:A}=N.useContext(ut),j=!!c.extensionDownloadUrl,S=(u==null?void 0:u.qrCode)&&j,k=(u==null?void 0:u.qrCode)&&!!c.desktopDownloadUrl,I=g&&i,P=async()=>{const V=await(w==null?void 0:w());window.open(V,E?"_blank":"_self")},_=y?{description:t?A.t("connect.walletconnect.description.compact"):A.t("connect.walletconnect.description.full"),label:A.t("connect.walletconnect.open.label"),onClick:()=>{r(),y()}}:I?{description:A.t("connect.secondary_action.get.description",{wallet:p}),label:A.t("connect.secondary_action.get.label"),onClick:()=>e(S||k?"DOWNLOAD_OPTIONS":"DOWNLOAD")}:null,{width:T}=ox(),M=T&&T<768;return N.useEffect(()=>{_R(),PR()},[]),C.createElement(R,{display:"flex",flexDirection:"column",height:"full",width:"full"},I?C.createElement(R,{alignItems:"center",display:"flex",height:"full",justifyContent:"center"},C.createElement(jx,{logoBackground:d,logoSize:t?60:72,logoUrl:f,size:t?318:M?Math.max(280,Math.min(T-308,382)):382,uri:i})):C.createElement(R,{alignItems:"center",display:"flex",justifyContent:"center",style:{flexGrow:1}},C.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:"8"},C.createElement(R,{borderRadius:"10",height:Nh,overflow:"hidden"},C.createElement(bt,{useAsImage:!c.isRainbowKitConnector,height:Nh,src:f,width:Nh})),C.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:"4",paddingX:"32",style:{textAlign:"center"}},C.createElement(be,{color:"modalText",size:"18",weight:"bold"},m?A.t("connect.status.opening",{wallet:p}):j?A.t("connect.status.not_installed",{wallet:p}):A.t("connect.status.not_available",{wallet:p})),!m&&j?C.createElement(R,{paddingTop:"20"},C.createElement(Ht,{href:c.extensionDownloadUrl,label:A.t("connect.secondary_action.install.label"),type:"secondary"})):null,m&&!I&&C.createElement(C.Fragment,null,C.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center"},C.createElement(be,{color:"modalTextSecondary",size:"14",textAlign:"center",weight:"medium"},A.t("connect.status.confirm"))),C.createElement(R,{alignItems:"center",color:"modalText",display:"flex",flexDirection:"row",height:"32",marginTop:"8"},n?C.createElement(Ht,{label:A.t("connect.secondary_action.retry.label"),onClick:async()=>{b&&P(),a(c)}}):C.createElement(R,{color:"modalTextSecondary"},C.createElement(zc,null))))))),C.createElement(R,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"row",gap:"8",height:"28",justifyContent:"space-between",marginTop:"12"},m&&_&&C.createElement(C.Fragment,null,C.createElement(be,{color:"modalTextSecondary",size:"14",weight:"medium"},_.description),C.createElement(Ht,{label:_.label,onClick:_.onClick,type:"secondary"}))))}var Mh=({actionLabel:e,description:t,iconAccent:n,iconBackground:r,iconUrl:i,isCompact:a,onAction:c,title:u,url:d,variant:f})=>{const p=f==="browser",g=!p&&n&&vR(n);return C.createElement(R,{alignItems:"center",borderRadius:"13",display:"flex",justifyContent:"center",overflow:"hidden",paddingX:a?"18":"44",position:"relative",style:{flex:1,isolation:"isolate"},width:"full"},C.createElement(R,{borderColor:"actionButtonBorder",borderRadius:"13",borderStyle:"solid",borderWidth:"1",style:{bottom:"0",left:"0",position:"absolute",right:"0",top:"0",zIndex:1}}),p&&C.createElement(R,{background:"downloadTopCardBackground",height:"full",position:"absolute",style:{zIndex:0},width:"full"},C.createElement(R,{display:"flex",flexDirection:"row",justifyContent:"space-between",style:{bottom:"0",filter:"blur(20px)",left:"0",position:"absolute",right:"0",top:"0",transform:"translate3d(0, 0, 0)"}},C.createElement(R,{style:{filter:"blur(100px)",marginLeft:-27,marginTop:-20,opacity:.6,transform:"translate3d(0, 0, 0)"}},C.createElement(bt,{borderRadius:"full",height:"200",src:i,width:"200"})),C.createElement(R,{style:{filter:"blur(100px)",marginRight:0,marginTop:105,opacity:.6,overflow:"auto",transform:"translate3d(0, 0, 0)"}},C.createElement(bt,{borderRadius:"full",height:"200",src:i,width:"200"})))),!p&&g&&C.createElement(R,{background:"downloadBottomCardBackground",style:{bottom:"0",left:"0",position:"absolute",right:"0",top:"0"}},C.createElement(R,{position:"absolute",style:{background:`radial-gradient(50% 50% at 50% 50%, ${g[0]} 0%, ${g[1]} 25%, rgba(0,0,0,0) 100%)`,height:564,left:-215,top:-197,transform:"translate3d(0, 0, 0)",width:564}}),C.createElement(R,{position:"absolute",style:{background:`radial-gradient(50% 50% at 50% 50%, ${g[2]} 0%, rgba(0, 0, 0, 0) 100%)`,height:564,left:-1,top:-76,transform:"translate3d(0, 0, 0)",width:564}})),C.createElement(R,{alignItems:"flex-start",display:"flex",flexDirection:"row",gap:"24",height:"max",justifyContent:"center",style:{zIndex:1}},C.createElement(R,null,C.createElement(bt,{height:"60",src:i,width:"60",...r?{background:r,borderColor:"generalBorder",borderRadius:"10"}:null})),C.createElement(R,{display:"flex",flexDirection:"column",gap:"4",style:{flex:1},width:"full"},C.createElement(be,{color:"modalText",size:"14",weight:"bold"},u),C.createElement(be,{color:"modalTextSecondary",size:"14",weight:"medium"},t),C.createElement(R,{marginTop:"14",width:"max"},C.createElement(Ht,{href:d,label:e,onClick:c,size:"medium"})))))};function RR({changeWalletStep:e,wallet:t}){const n=u1(),r=f1(),a=N.useContext(Jd)==="compact",{desktop:c,desktopDownloadUrl:u,extension:d,extensionDownloadUrl:f,mobileDownloadUrl:p}=t,{i18n:g}=N.useContext(ut);return N.useEffect(()=>{Ax(),Ix(),ER(),bR()},[]),C.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:"24",height:"full",marginBottom:"8",marginTop:"4",width:"full"},C.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:"8",height:"full",justifyContent:"center",width:"full"},f&&C.createElement(Mh,{actionLabel:g.t("get_options.extension.download.label",{browser:n}),description:g.t("get_options.extension.description"),iconUrl:Bx,isCompact:a,onAction:()=>e(d!=null&&d.instructions?"INSTRUCTIONS_EXTENSION":"CONNECT"),title:g.t("get_options.extension.title",{wallet:t.name,browser:n}),url:f,variant:"browser"}),u&&C.createElement(Mh,{actionLabel:g.t("get_options.desktop.download.label",{platform:r}),description:g.t("get_options.desktop.description"),iconUrl:_x,isCompact:a,onAction:()=>e(c!=null&&c.instructions?"INSTRUCTIONS_DESKTOP":"CONNECT"),title:g.t("get_options.desktop.title",{wallet:t.name,platform:r}),url:u,variant:"desktop"}),p&&C.createElement(Mh,{actionLabel:g.t("get_options.mobile.download.label",{wallet:t.name}),description:g.t("get_options.mobile.description"),iconAccent:t.iconAccent,iconBackground:t.iconBackground,iconUrl:t.iconUrl,isCompact:a,onAction:()=>{e("DOWNLOAD")},title:g.t("get_options.mobile.title",{wallet:t.name}),variant:"app"})))}function NR({changeWalletStep:e,wallet:t}){const{downloadUrls:n,qrCode:r}=t,{i18n:i}=N.useContext(ut);return N.useEffect(()=>{Ax(),Ix()},[]),C.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:"24",height:"full",width:"full"},C.createElement(R,{style:{maxWidth:220,textAlign:"center"}},C.createElement(be,{color:"modalTextSecondary",size:"14",weight:"semibold"},i.t("get_mobile.description"))),C.createElement(R,{height:"full"},n!=null&&n.qrCode?C.createElement(jx,{logoSize:0,size:268,uri:n.qrCode}):null),C.createElement(R,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"row",gap:"8",height:"34",justifyContent:"space-between",marginBottom:"12",paddingY:"8"},C.createElement(Ht,{label:i.t("get_mobile.continue.label"),onClick:()=>e(r!=null&&r.instructions?"INSTRUCTIONS_MOBILE":"CONNECT")})))}var Kr={connect:()=>C.createElement(xR,null),create:()=>C.createElement(CR,null),install:e=>C.createElement(bt,{background:e.iconBackground,borderColor:"generalBorder",borderRadius:"10",height:"48",src:e.iconUrl,width:"48"}),refresh:()=>C.createElement(AR,null),scan:()=>C.createElement(kR,null)};function MR({connectWallet:e,wallet:t}){var r,i,a,c;const{i18n:n}=N.useContext(ut);return C.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},C.createElement(R,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},(i=(r=t==null?void 0:t.qrCode)==null?void 0:r.instructions)==null?void 0:i.steps.map((u,d)=>{var f;return C.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:d},C.createElement(R,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},(f=Kr[u.step])==null?void 0:f.call(Kr,t)),C.createElement(R,{display:"flex",flexDirection:"column",gap:"4"},C.createElement(be,{color:"modalText",size:"14",weight:"bold"},n.t(u.title,void 0,{rawKeyIfTranslationMissing:!0})),C.createElement(be,{color:"modalTextSecondary",size:"14",weight:"medium"},n.t(u.description,void 0,{rawKeyIfTranslationMissing:!0}))))})),C.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},C.createElement(Ht,{label:n.t("get_instructions.mobile.connect.label"),onClick:()=>e(t)}),C.createElement(R,{as:"a",className:st({active:"shrink",hover:"grow"}),display:"block",href:(c=(a=t==null?void 0:t.qrCode)==null?void 0:a.instructions)==null?void 0:c.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},C.createElement(be,{color:"accentColor",size:"14",weight:"bold"},n.t("get_instructions.mobile.learn_more.label")))))}function DR({wallet:e}){var n,r,i,a;const{i18n:t}=N.useContext(ut);return C.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},C.createElement(R,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},(r=(n=e==null?void 0:e.extension)==null?void 0:n.instructions)==null?void 0:r.steps.map((c,u)=>{var d;return C.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:u},C.createElement(R,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},(d=Kr[c.step])==null?void 0:d.call(Kr,e)),C.createElement(R,{display:"flex",flexDirection:"column",gap:"4"},C.createElement(be,{color:"modalText",size:"14",weight:"bold"},t.t(c.title,void 0,{rawKeyIfTranslationMissing:!0})),C.createElement(be,{color:"modalTextSecondary",size:"14",weight:"medium"},t.t(c.description,void 0,{rawKeyIfTranslationMissing:!0}))))})),C.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},C.createElement(Ht,{label:t.t("get_instructions.extension.refresh.label"),onClick:window.location.reload.bind(window.location)}),C.createElement(R,{as:"a",className:st({active:"shrink",hover:"grow"}),display:"block",href:(a=(i=e==null?void 0:e.extension)==null?void 0:i.instructions)==null?void 0:a.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},C.createElement(be,{color:"accentColor",size:"14",weight:"bold"},t.t("get_instructions.extension.learn_more.label")))))}function LR({connectWallet:e,wallet:t}){var r,i,a,c;const{i18n:n}=N.useContext(ut);return C.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},C.createElement(R,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},(i=(r=t==null?void 0:t.desktop)==null?void 0:r.instructions)==null?void 0:i.steps.map((u,d)=>{var f;return C.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:d},C.createElement(R,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},(f=Kr[u.step])==null?void 0:f.call(Kr,t)),C.createElement(R,{display:"flex",flexDirection:"column",gap:"4"},C.createElement(be,{color:"modalText",size:"14",weight:"bold"},n.t(u.title,void 0,{rawKeyIfTranslationMissing:!0})),C.createElement(be,{color:"modalTextSecondary",size:"14",weight:"medium"},n.t(u.description,void 0,{rawKeyIfTranslationMissing:!0}))))})),C.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},C.createElement(Ht,{label:n.t("get_instructions.desktop.connect.label"),onClick:()=>e(t)}),C.createElement(R,{as:"a",className:st({active:"shrink",hover:"grow"}),display:"block",href:(c=(a=t==null?void 0:t.desktop)==null?void 0:a.instructions)==null?void 0:c.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},C.createElement(be,{color:"accentColor",size:"14",weight:"bold"},n.t("get_instructions.desktop.learn_more.label")))))}function FR({onClose:e}){const t="rk_connect_title",[n,r]=N.useState(),[i,a]=N.useState(),[c,u]=N.useState(),d=!!(i!=null&&i.qrCode)&&c,[f,p]=N.useState(!1),m=N.useContext(Jd)===hl.COMPACT,{disclaimer:y}=N.useContext(dl),{i18n:w}=N.useContext(ut),b=l1(),E=N.useRef(!1),{connector:A}=N.useContext(fl),S=Uc(!A).filter(oe=>oe.ready||!!oe.extensionDownloadUrl).sort((oe,le)=>oe.groupIndex-le.groupIndex),k=Uc(),I=uR(S,oe=>oe.groupName),P=["Recommended","Other","Popular","More","Others","Installed"];N.useEffect(()=>{A&&!E.current&&(G("CONNECT"),V(A),E.current=!0)},[A]);const _=oe=>{var le,he;p(!1),oe.ready&&((he=(le=oe==null?void 0:oe.connect)==null?void 0:le.call(oe))==null||he.catch(()=>{p(!0)}))},T=async oe=>{const le=S.find(he=>oe.id===he.id);le!=null&&le.getDesktopUri&&setTimeout(async()=>{var Ce;const he=await((Ce=le==null?void 0:le.getDesktopUri)==null?void 0:Ce.call(le));he&&window.open(he,b?"_blank":"_self")},0)},M=async oe=>{var Ce;const le=S.find(_e=>oe.id===_e.id),he=await((Ce=le==null?void 0:le.getQrCodeUri)==null?void 0:Ce.call(le));u(he),setTimeout(()=>{a(le),G("CONNECT")},he?0:50)},V=async oe=>{yR(oe.id),oe.ready&&(M(oe),T(oe)),_(oe),r(oe.id),oe.ready||(a(oe),G(oe!=null&&oe.extensionDownloadUrl?"DOWNLOAD_OPTIONS":"CONNECT"))},Q=oe=>{var Oe;const le=k.find(Ve=>oe===Ve.id),he=(Oe=le==null?void 0:le.downloadUrls)==null?void 0:Oe.qrCode,Ce=!!(le!=null&&le.desktopDownloadUrl),_e=!!(le!=null&&le.extensionDownloadUrl);a(le),G(he&&(_e||Ce)?"DOWNLOAD_OPTIONS":he?"DOWNLOAD":Ce?"INSTRUCTIONS_DESKTOP":"INSTRUCTIONS_EXTENSION")},Z=()=>{r(void 0),a(void 0),u(void 0)},G=(oe,le=!1)=>{le&&oe==="GET"&&se==="GET"?Z():!le&&oe==="GET"?$("GET"):!le&&oe==="CONNECT"&&$("CONNECT"),te(oe)},[se,$]=N.useState("NONE"),[X,te]=N.useState("NONE");let z=null,J=null,Y=null,L;N.useEffect(()=>{p(!1)},[X,i]);const we=!!(!!(i!=null&&i.extensionDownloadUrl)&&(i!=null&&i.mobileDownloadUrl));switch(X){case"NONE":z=C.createElement(Mb,{getWallet:()=>G("GET")});break;case"LEARN_COMPACT":z=C.createElement(Mb,{compactModeEnabled:m,getWallet:()=>G("GET")}),J=w.t("intro.title"),Y="NONE";break;case"GET":z=C.createElement(TR,{getWalletDownload:Q,compactModeEnabled:m}),J=w.t("get.title"),Y=m?"LEARN_COMPACT":"NONE";break;case"CONNECT":z=i&&C.createElement(OR,{changeWalletStep:G,compactModeEnabled:m,connectionError:f,onClose:e,qrCodeUri:c,reconnect:_,wallet:i}),J=d&&(i.name==="WalletConnect"?w.t("connect_scan.fallback_title"):w.t("connect_scan.title",{wallet:i.name})),Y=m?A?null:"NONE":null,L=m?A?()=>{}:Z:()=>{};break;case"DOWNLOAD_OPTIONS":z=i&&C.createElement(RR,{changeWalletStep:G,wallet:i}),J=i&&w.t("get_options.short_title",{wallet:i.name}),Y=A?"CONNECT":m?"NONE":se;break;case"DOWNLOAD":z=i&&C.createElement(NR,{changeWalletStep:G,wallet:i}),J=i&&w.t("get_mobile.title",{wallet:i.name}),Y=we?"DOWNLOAD_OPTIONS":se;break;case"INSTRUCTIONS_MOBILE":z=i&&C.createElement(MR,{connectWallet:V,wallet:i}),J=i&&w.t("get_options.title",{wallet:m&&i.shortName||i.name}),Y="DOWNLOAD";break;case"INSTRUCTIONS_EXTENSION":z=i&&C.createElement(DR,{wallet:i}),J=i&&w.t("get_options.title",{wallet:m&&i.shortName||i.name}),Y="DOWNLOAD_OPTIONS";break;case"INSTRUCTIONS_DESKTOP":z=i&&C.createElement(LR,{connectWallet:V,wallet:i}),J=i&&w.t("get_options.title",{wallet:m&&i.shortName||i.name}),Y="DOWNLOAD_OPTIONS";break}return C.createElement(R,{display:"flex",flexDirection:"row",style:{maxHeight:m?468:504}},(m?X==="NONE":!0)&&C.createElement(R,{className:m?BR:jR,display:"flex",flexDirection:"column",marginTop:"16"},C.createElement(R,{display:"flex",justifyContent:"space-between"},m&&y&&C.createElement(R,{marginLeft:"16",width:"28"},C.createElement(fR,{onClick:()=>G("LEARN_COMPACT")})),m&&!y&&C.createElement(R,{marginLeft:"16",width:"28"}),C.createElement(R,{marginLeft:m?"0":"6",paddingBottom:"8",paddingTop:"2",paddingX:"18"},C.createElement(be,{as:"h1",color:"modalText",id:t,size:"18",weight:"heavy",testId:"connect-header-label"},w.t("connect.title"))),m&&C.createElement(R,{marginRight:"16"},C.createElement(Fi,{onClose:e}))),C.createElement(R,{className:IR,paddingBottom:"18"},Object.entries(I).map(([oe,le],he)=>le.length>0&&C.createElement(N.Fragment,{key:he},oe?C.createElement(R,{marginBottom:"8",marginTop:"16",marginX:"6"},C.createElement(be,{color:oe==="Installed"?"accentColor":"modalTextSecondary",size:"14",weight:"bold"},P.includes(oe)?w.t(`connector_group.${oe.toLowerCase()}`):oe)):null,C.createElement(R,{display:"flex",flexDirection:"column",gap:"4"},le.map(Ce=>C.createElement(xx,{currentlySelected:Ce.id===n,iconBackground:Ce.iconBackground,iconUrl:Ce.iconUrl,key:Ce.id,name:Ce.name,onClick:()=>V(Ce),ready:Ce.ready,recent:Ce.recent,testId:`wallet-option-${Ce.id}`,isRainbowKitConnector:Ce.isRainbowKitConnector})))))),m&&C.createElement(C.Fragment,null,C.createElement(R,{background:"generalBorder",height:"1",marginTop:"-1"}),y?C.createElement(R,{paddingX:"24",paddingY:"16",textAlign:"center"},C.createElement(y,{Link:p1,Text:m1})):C.createElement(R,{alignItems:"center",display:"flex",justifyContent:"space-between",paddingX:"24",paddingY:"16"},C.createElement(R,{paddingY:"4"},C.createElement(be,{color:"modalTextSecondary",size:"14",weight:"medium"},w.t("connect.new_to_ethereum.description"))),C.createElement(R,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",justifyContent:"center"},C.createElement(R,{className:st({active:"shrink",hover:"grow"}),cursor:"pointer",onClick:()=>G("LEARN_COMPACT"),paddingY:"4",style:{willChange:"transform"},transition:"default"},C.createElement(be,{color:"accentColor",size:"14",weight:"bold"},w.t("connect.new_to_ethereum.learn_more.label"))))))),(m?X!=="NONE":!0)&&C.createElement(C.Fragment,null,!m&&C.createElement(R,{background:"generalBorder",minWidth:"1",width:"1"}),C.createElement(R,{display:"flex",flexDirection:"column",margin:"16",style:{flexGrow:1}},C.createElement(R,{alignItems:"center",display:"flex",justifyContent:"space-between",marginBottom:"12"},C.createElement(R,{width:"28"},Y&&C.createElement(R,{as:"button",className:st({active:"shrinkSm",hover:"growLg"}),color:"accentColor",onClick:()=>{Y&&G(Y,!0),L==null||L()},paddingX:"8",paddingY:"4",style:{boxSizing:"content-box",height:17,willChange:"transform"},transition:"default",type:"button"},C.createElement(wx,null))),C.createElement(R,{display:"flex",justifyContent:"center",style:{flexGrow:1}},J&&C.createElement(be,{color:"modalText",size:"18",textAlign:"center",weight:"heavy"},J)),C.createElement(Fi,{onClose:e})),C.createElement(R,{display:"flex",flexDirection:"column",style:{minHeight:m?396:432}},C.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:"6",height:"full",justifyContent:"center",marginX:"8"},z)))))}var zR="_1am14412",UR="_1am14410",WR="_1am14413",$R=({wallet:e})=>C.createElement("svg",{className:WR,viewBox:"0 0 86 86",width:"86",height:"86"},C.createElement("title",null,"Loading"),C.createElement("rect",{x:"3",y:"3",width:80,height:80,rx:20,ry:20,strokeDasharray:`${160/3} ${320/3}`,strokeDashoffset:160,className:zR,style:{stroke:(e==null?void 0:e.iconAccent)||"#0D3887"}}));function Px({onClose:e,wallet:t,connecting:n}){const{connect:r,iconBackground:i,iconUrl:a,id:c,name:u,getMobileUri:d,ready:f,shortName:p,showWalletConnectModal:g}=t,m=bx(a),y=N.useRef(!1),{i18n:w}=N.useContext(ut),b=N.useCallback(async()=>{if(c!=="walletConnect"&&(async()=>{const A=await(d==null?void 0:d());if(A)if(A&&BO({mobileUri:A,name:u}),A.startsWith("http")){const j=document.createElement("a");j.href=A,j.target="_blank",j.rel="noreferrer noopener",j.click()}else window.location.href=A})(),g){g(),e==null||e();return}try{await(r==null?void 0:r())}catch{}},[r,d,g,e,u,c]);return N.useEffect(()=>{n&&!y.current&&(b(),y.current=!0)},[n,b]),C.createElement(R,{as:"button",color:f?"modalText":"modalTextSecondary",disabled:!f,fontFamily:"body",key:c,onClick:b,ref:m,style:{overflow:"visible",textAlign:"center"},testId:`wallet-option-${c}`,type:"button",width:"full"},C.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center"},C.createElement(R,{display:"flex",alignItems:"center",justifyContent:"center",paddingBottom:"8",paddingTop:"10",position:"relative"},n?C.createElement($R,{wallet:t}):null,C.createElement(bt,{background:i,borderRadius:"13",boxShadow:"walletLogo",height:"60",src:a,width:"60"})),n?null:C.createElement(R,{display:"flex",flexDirection:"column",textAlign:"center"},C.createElement(be,{as:"h2",color:t.ready?"modalText":"modalTextSecondary",size:"13",weight:"medium"},C.createElement(R,{as:"span",position:"relative"},p??u,!t.ready&&" (unsupported)")),t.recent&&C.createElement(be,{color:"accentColor",size:"12",weight:"medium"},w.t("connect.recent")))))}function qR({onClose:e}){var y;const t="rk_connect_title",n=Uc().filter(w=>w.isRainbowKitConnector),{disclaimer:r,learnMoreUrl:i}=N.useContext(dl);let a=null,c=null,u=!1,d=null;const[f,p]=N.useState("CONNECT"),{i18n:g}=N.useContext(ut),m=ul();switch(f){case"CONNECT":{a=g.t("connect.title"),u=!0,c=C.createElement(R,null,C.createElement(R,{background:"profileForeground",className:UR,display:"flex",paddingBottom:"20",paddingTop:"6",paddingX:"20",style:{gap:"calc((100% - 40px - 240px + 47px) / 4)"}},n.filter(w=>w.ready).map(w=>C.createElement(R,{key:w.id,width:"60"},C.createElement(Px,{onClose:e,wallet:w})))),C.createElement(R,{background:"generalBorder",height:"1",marginBottom:"32",marginTop:"-1"}),C.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:"32",paddingX:"32",style:{textAlign:"center"}},C.createElement(R,{display:"flex",flexDirection:"column",gap:"8",textAlign:"center"},C.createElement(be,{color:"modalText",size:"16",weight:"bold"},g.t("intro.title")),C.createElement(be,{color:"modalTextSecondary",size:"16"},g.t("intro.description")))),C.createElement(R,{paddingTop:"32",paddingX:"20"},C.createElement(R,{display:"flex",gap:"14",justifyContent:"center"},C.createElement(Ht,{label:g.t("intro.get.label"),onClick:()=>p("GET"),size:"large",type:"secondary"}),C.createElement(Ht,{href:i,label:g.t("intro.learn_more.label"),size:"large",type:"secondary"}))),r&&C.createElement(R,{marginTop:"28",marginX:"32",textAlign:"center"},C.createElement(r,{Link:p1,Text:m1})));break}case"GET":{a=g.t("get.title"),d="CONNECT";const w=(y=n==null?void 0:n.filter(b=>{var E,A,j;return((E=b.downloadUrls)==null?void 0:E.ios)||((A=b.downloadUrls)==null?void 0:A.android)||((j=b.downloadUrls)==null?void 0:j.mobile)}))==null?void 0:y.splice(0,3);c=C.createElement(R,null,C.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",marginBottom:"36",marginTop:"5",paddingTop:"12",width:"full"},w.map((b,E)=>{const{downloadUrls:A,iconBackground:j,iconUrl:S,name:k}=b;return!(A!=null&&A.ios)&&!(A!=null&&A.android)&&!(A!=null&&A.mobile)?null:C.createElement(R,{display:"flex",gap:"16",key:b.id,paddingX:"20",width:"full"},C.createElement(R,{style:{minHeight:48,minWidth:48}},C.createElement(bt,{background:j,borderColor:"generalBorder",borderRadius:"10",height:"48",src:S,width:"48"})),C.createElement(R,{display:"flex",flexDirection:"column",width:"full"},C.createElement(R,{alignItems:"center",display:"flex",height:"48"},C.createElement(R,{width:"full"},C.createElement(be,{color:"modalText",size:"18",weight:"bold"},k)),C.createElement(Ht,{href:(m?A==null?void 0:A.ios:A==null?void 0:A.android)||(A==null?void 0:A.mobile),label:g.t("get.action.label"),size:"small",type:"secondary"})),E<w.length-1&&C.createElement(R,{background:"generalBorderDim",height:"1",marginY:"10",width:"full"})))})),C.createElement(R,{style:{marginBottom:"42px"}}),C.createElement(R,{alignItems:"center",display:"flex",flexDirection:"column",gap:"36",paddingX:"36",style:{textAlign:"center"}},C.createElement(R,{display:"flex",flexDirection:"column",gap:"12",textAlign:"center"},C.createElement(be,{color:"modalText",size:"16",weight:"bold"},g.t("get.looking_for.title")),C.createElement(be,{color:"modalTextSecondary",size:"16"},g.t("get.looking_for.mobile.description")))));break}}return C.createElement(R,{display:"flex",flexDirection:"column",paddingBottom:"36"},C.createElement(R,{background:u?"profileForeground":"modalBackground",display:"flex",flexDirection:"column",paddingBottom:"4",paddingTop:"14"},C.createElement(R,{display:"flex",justifyContent:"center",paddingBottom:"6",paddingX:"20",position:"relative"},d&&C.createElement(R,{display:"flex",position:"absolute",style:{left:0,marginBottom:-20,marginTop:-20}},C.createElement(R,{alignItems:"center",as:"button",className:st({active:"shrinkSm",hover:"growLg"}),color:"accentColor",display:"flex",marginLeft:"4",marginTop:"20",onClick:()=>p(d),padding:"16",style:{height:17,willChange:"transform"},transition:"default",type:"button"},C.createElement(wx,null))),C.createElement(R,{marginTop:"4",textAlign:"center",width:"full"},C.createElement(be,{as:"h1",color:"modalText",id:t,size:"20",weight:"bold"},a)),C.createElement(R,{alignItems:"center",display:"flex",height:"32",paddingRight:"14",position:"absolute",right:"0"},C.createElement(R,{style:{marginBottom:-20,marginTop:-20}},C.createElement(Fi,{onClose:e}))))),C.createElement(R,{display:"flex",flexDirection:"column"},c))}var HR=({onClose:e})=>{const{connector:t}=N.useContext(fl),{i18n:n}=N.useContext(ut),r=(t==null?void 0:t.name)||"";return C.createElement(R,null,C.createElement(R,{display:"flex",paddingBottom:"32",justifyContent:"center",alignItems:"center",background:"profileForeground",flexDirection:"column"},C.createElement(R,{width:"full",display:"flex",justifyContent:"flex-end",marginTop:"18",marginRight:"24"},C.createElement(Fi,{onClose:e})),C.createElement(R,{width:"60"},C.createElement(Px,{onClose:e,wallet:t,connecting:!0})),C.createElement(R,{marginTop:"20"},C.createElement(be,{textAlign:"center",color:"modalText",size:"18",weight:"semibold"},n.t("connect.status.connect_mobile",{wallet:r}))),C.createElement(R,{maxWidth:"full",marginTop:"8"},C.createElement(be,{textAlign:"center",color:"modalText",size:"16",weight:"medium"},n.t("connect.status.confirm_mobile",{wallet:r})))))};function VR({onClose:e}){const{connector:t}=N.useContext(fl);return lt()?t?C.createElement(HR,{onClose:e}):C.createElement(qR,{onClose:e}):C.createElement(FR,{onClose:e})}function QR({onClose:e,open:t}){const n="rk_connect_title",r=i1(),{disconnect:i}=Ym(),{isConnecting:a}=St(),c=C.useCallback(()=>{e(),i()},[e,i]),u=C.useCallback(()=>{a&&i(),e()},[e,i,a]);return r==="disconnected"?C.createElement(gd,{onClose:u,open:t,titleId:n},C.createElement(yd,{bottomSheetOnMobile:!0,padding:"0",wide:!0},C.createElement(VR,{onClose:u}))):r==="unauthenticated"?C.createElement(gd,{onClose:c,open:t,titleId:n},C.createElement(yd,{bottomSheetOnMobile:!0,padding:"0"},C.createElement(IO,{onClose:c,onCloseModal:e}))):null}function Dh(){const[e,t]=N.useState(!1);return{closeModal:N.useCallback(()=>t(!1),[]),isModalOpen:e,openModal:N.useCallback(()=>t(!0),[])}}var la=N.createContext({accountModalOpen:!1,chainModalOpen:!1,connectModalOpen:!1,isWalletConnectModalOpen:!1,setIsWalletConnectModalOpen:()=>{}});function GR({children:e}){const{closeModal:t,isModalOpen:n,openModal:r}=Dh(),{closeModal:i,isModalOpen:a,openModal:c}=Dh(),{closeModal:u,isModalOpen:d,openModal:f}=Dh(),[p,g]=N.useState(!1),m=i1(),{chainId:y}=St(),{chains:w}=et(),b=w.some(j=>j.id===y),E=N.useCallback(({keepConnectModalOpen:j=!1}={})=>{j||t(),i(),u()},[t,i,u]),A=Kd()==="unauthenticated";return W5({onConnect:()=>E({keepConnectModalOpen:A}),onDisconnect:()=>E()}),N.useEffect(()=>{A&&E()},[A,E]),C.createElement(la.Provider,{value:N.useMemo(()=>({accountModalOpen:a,chainModalOpen:d,connectModalOpen:n,isWalletConnectModalOpen:p,openAccountModal:b&&m==="connected"?c:void 0,openChainModal:m==="connected"?f:void 0,openConnectModal:m==="disconnected"||m==="unauthenticated"?r:void 0,setIsWalletConnectModalOpen:g}),[m,a,d,n,c,f,r,b,p])},e,C.createElement(QR,{onClose:t,open:n}),C.createElement(nR,{onClose:i,open:a}),C.createElement(lR,{onClose:u,open:d}))}function KR(){const{accountModalOpen:e,chainModalOpen:t,connectModalOpen:n}=N.useContext(la);return{accountModalOpen:e,chainModalOpen:t,connectModalOpen:n}}function YR(){const{accountModalOpen:e,openAccountModal:t}=N.useContext(la);return{accountModalOpen:e,openAccountModal:t}}function JR(){const{chainModalOpen:e,openChainModal:t}=N.useContext(la);return{chainModalOpen:e,openChainModal:t}}function Tx(){const{isWalletConnectModalOpen:e,setIsWalletConnectModalOpen:t}=N.useContext(la);return{isWalletConnectModalOpen:e,setIsWalletConnectModalOpen:t}}function ZR(){const{connectModalOpen:e,openConnectModal:t}=N.useContext(la),{isWalletConnectModalOpen:n}=Tx();return{connectModalOpen:e||n,openConnectModal:t}}var Lh=()=>{};function g1({children:e}){const t=OT(),{address:n}=St(),{chainId:r}=St(),{chains:i}=et(),a=i.some(Z=>Z.id===r),c=PT(),u=Kd()??void 0,d=r?c[r]:void 0,f=(d==null?void 0:d.name)??void 0,p=(d==null?void 0:d.iconUrl)??void 0,g=(d==null?void 0:d.iconBackground)??void 0,m=Yd(p),y=N.useContext(c1),w=tx().some(({status:Z})=>Z==="pending")&&y,{showBalance:b}=K3(),A=typeof b=="boolean"?b:b?F3(b)[lt()?"smallScreen":"largeScreen"]:!0,{balance:j,ensAvatar:S,ensName:k}=J3({address:n,includeBalance:A}),I=j?`${px(Number.parseFloat(j.formatted))} ${j.symbol}`:void 0,{openConnectModal:P}=ZR(),{openChainModal:_}=JR(),{openAccountModal:T}=YR(),{accountModalOpen:M,chainModalOpen:V,connectModalOpen:Q}=KR();return C.createElement(C.Fragment,null,e({account:n?{address:n,balanceDecimals:j==null?void 0:j.decimals,balanceFormatted:j==null?void 0:j.formatted,balanceSymbol:j==null?void 0:j.symbol,displayBalance:I,displayName:k?gx(k):mx(n),ensAvatar:S??void 0,ensName:k??void 0,hasPendingTransactions:w}:void 0,accountModalOpen:M,authenticationStatus:u,chain:r?{hasIcon:!!p,iconBackground:g,iconUrl:m,id:r,name:f,unsupported:!a}:void 0,chainModalOpen:V,connectModalOpen:Q,mounted:t(),openAccountModal:T??Lh,openChainModal:_??Lh,openConnectModal:P??Lh}))}g1.displayName="ConnectButton.Custom";var ic={accountStatus:"full",chainStatus:{largeScreen:"full",smallScreen:"icon"},label:"Connect Wallet",showBalance:{largeScreen:!0,smallScreen:!1}};function vd({accountStatus:e=ic.accountStatus,chainStatus:t=ic.chainStatus,label:n=ic.label,showBalance:r=ic.showBalance}){const i=Vi(),a=i1(),{setShowBalance:c}=K3(),[u,d]=N.useState(!1),{i18n:f}=N.useContext(ut);return N.useEffect(()=>{c(r),u||d(!0)},[r,c]),u?C.createElement(g1,null,({account:p,chain:g,mounted:m,openAccountModal:y,openChainModal:w,openConnectModal:b})=>{const E=m&&a!=="loading",A=(g==null?void 0:g.unsupported)??!1;return C.createElement(R,{display:"flex",gap:"12",...!E&&{"aria-hidden":!0,style:{opacity:0,pointerEvents:"none",userSelect:"none"}}},E&&p&&a==="connected"?C.createElement(C.Fragment,null,g&&(i.length>1||A)&&C.createElement(R,{alignItems:"center","aria-label":"Chain Selector",as:"button",background:A?"connectButtonBackgroundError":"connectButtonBackground",borderRadius:"connectButton",boxShadow:"connectButton",className:st({active:"shrink",hover:"grow"}),color:A?"connectButtonTextError":"connectButtonText",display:As(t,j=>j==="none"?"none":"flex"),fontFamily:"body",fontWeight:"bold",gap:"6",key:A?"unsupported":"supported",onClick:w,paddingX:"10",paddingY:"8",testId:A?"wrong-network-button":"chain-button",transition:"default",type:"button"},A?C.createElement(R,{alignItems:"center",display:"flex",height:"24",paddingX:"4"},f.t("connect_wallet.wrong_network.label")):C.createElement(R,{alignItems:"center",display:"flex",gap:"6"},g.hasIcon?C.createElement(R,{display:As(t,j=>j==="full"||j==="icon"?"block":"none"),height:"24",width:"24"},C.createElement(bt,{alt:g.name??"Chain icon",background:g.iconBackground,borderRadius:"full",height:"24",src:g.iconUrl,width:"24"})):null,C.createElement(R,{display:As(t,j=>j==="icon"&&!g.iconUrl||j==="full"||j==="name"?"block":"none")},g.name??g.id)),C.createElement(lb,null)),!A&&C.createElement(R,{alignItems:"center",as:"button",background:"connectButtonBackground",borderRadius:"connectButton",boxShadow:"connectButton",className:st({active:"shrink",hover:"grow"}),color:"connectButtonText",display:"flex",fontFamily:"body",fontWeight:"bold",onClick:y,testId:"account-button",transition:"default",type:"button"},p.displayBalance&&C.createElement(R,{display:As(r,j=>j?"block":"none"),padding:"8",paddingLeft:"12"},p.displayBalance),C.createElement(R,{background:F3(r)[lt()?"smallScreen":"largeScreen"]?"connectButtonInnerBackground":"connectButtonBackground",borderColor:"connectButtonBackground",borderRadius:"connectButton",borderStyle:"solid",borderWidth:"2",color:"connectButtonText",fontFamily:"body",fontWeight:"bold",paddingX:"8",paddingY:"6",transition:"default"},C.createElement(R,{alignItems:"center",display:"flex",gap:"6",height:"24"},C.createElement(R,{display:As(e,j=>j==="full"||j==="avatar"?"block":"none")},C.createElement(V3,{address:p.address,imageUrl:p.ensAvatar,loading:p.hasPendingTransactions,size:24})),C.createElement(R,{alignItems:"center",display:"flex",gap:"6"},C.createElement(R,{display:As(e,j=>j==="full"||j==="address"?"block":"none")},p.displayName),C.createElement(lb,null)))))):C.createElement(R,{as:"button",background:"accentColor",borderRadius:"connectButton",boxShadow:"connectButton",className:st({active:"shrink",hover:"grow"}),color:"accentColorForeground",fontFamily:"body",fontWeight:"bold",height:"40",key:"connect",onClick:b,paddingX:"14",testId:"connect-button",transition:"default",type:"button"},m&&n==="Connect Wallet"?f.t("connect_wallet.label"):n))}):C.createElement(C.Fragment,null)}vd.__defaultProps=ic;vd.Custom=g1;var Ox=({appName:e,appDescription:t,appUrl:n,appIcon:r})=>({name:e,description:t??e,url:n??(typeof window<"u"?window.location.origin:""),icons:[...r?[r]:[]]});function XR(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>n!==void 0))}function eN(e,t){const n=[];for(const r of e)n.some(i=>i[t]===r[t])||n.push(r);return n}var tN=(e,{projectId:t,walletConnectParameters:n,appName:r,appDescription:i,appUrl:a,appIcon:c})=>{if(!e.length)throw new Error("No wallet list was provided");for(const{wallets:y,groupName:w}of e)if(!y.length)throw new Error(`No wallets provided for group: ${w}`);let u=-1;const d=[],f=[],p=[],g=Ox({appName:r,appDescription:i,appUrl:a,appIcon:c});for(const[y,{groupName:w,wallets:b}]of e.entries())for(const E of b){u++;const A=E({projectId:t,appName:r,appIcon:c,options:{metadata:g,...n},walletConnectParameters:{metadata:g,...n}});if(A!=null&&A.iconAccent&&!wR(A==null?void 0:A.iconAccent))throw new Error(`Property \`iconAccent\` is not a hex value for wallet: ${A.name}`);const j={...A,groupIndex:y+1,groupName:w,index:u};typeof A.hidden=="function"?p.push(j):f.push(j)}const m=eN([...f,...p],"id");for(const{createConnector:y,groupIndex:w,groupName:b,hidden:E,...A}of m){if(typeof E=="function"&&E())continue;const j=I=>({rkDetails:XR({...A,groupIndex:w,groupName:b,isRainbowKitConnector:!0,...I||{}})});A.id==="walletConnect"&&d.push(y(j({isWalletConnectModalConnector:!0,showQrModal:!0})));const k=y(j());d.push(k)}return d},Lb=new Map,nN=({projectId:e,walletConnectParameters:t,rkDetailsShowQrModal:n,rkDetailsIsWalletConnectModalConnector:r})=>{let i={telemetryEnabled:!1,...t||{},projectId:e,showQrModal:!1};n&&(i={...i,showQrModal:!0}),"customStoragePrefix"in i||(i={...i,customStoragePrefix:r?"clientOne":"clientTwo"});const a=JSON.stringify(i),c=Lb.get(a);if(c)return c;const u=o1(i);return Lb.set(a,u),u};function rN({projectId:e,walletDetails:t,walletConnectParameters:n}){return r=>({...nN({projectId:e,walletConnectParameters:n,rkDetailsShowQrModal:t.rkDetails.showQrModal,rkDetailsIsWalletConnectModalConnector:t.rkDetails.isWalletConnectModalConnector})(r),...t})}function y1({projectId:e,walletConnectParameters:t}){const n="21fef48091f12692cad574a6f7753643";if(!e||e==="")throw new Error("No projectId found. Every dApp must now provide a WalletConnect Cloud projectId to enable WalletConnect v2 https://www.rainbowkit.com/docs/installation#configure");return e==="YOUR_PROJECT_ID"&&(e=n),r=>rN({projectId:e,walletDetails:r,walletConnectParameters:t})}function Rx(e){const t=typeof window<"u"?window:void 0;if(typeof t>"u"||typeof t.ethereum>"u")return;const n=t.ethereum.providers;return n?n.find(r=>r[e]):t.ethereum[e]?t.ethereum:void 0}function Nx(e){const t=(n,r)=>{const[i,...a]=r.split("."),c=n[i];if(c)return a.length===0?c:t(c,a.join("."))};if(typeof window<"u")return t(window,e)}function oN({flag:e,namespace:t}){return!!(t&&typeof Nx(t)<"u"||typeof Rx(e)<"u")}function iN({flag:e,namespace:t}){var i;const n=typeof window<"u"?window:void 0;if(typeof n>"u")return;if(t){const a=Nx(t);if(a)return a}const r=(i=n.ethereum)==null?void 0:i.providers;{const a=Rx(e);if(a)return a}return typeof r<"u"&&r.length>0?r[0]:n.ethereum}function sN(e){return t=>{const n=e?{target:()=>({id:t.rkDetails.id,name:t.rkDetails.name,provider:e})}:{};return r=>({...Vd(n)(r),...t})}}function aN({flag:e,namespace:t,target:n}){const r=n||iN({flag:e,namespace:t});return sN(r)}var Mx=({appName:e,appIcon:t})=>{const{preference:n,...r}=Mx;return{id:"baseAccount",name:"Base Account",shortName:"Base Account",rdns:"app.base.account",iconUrl:async()=>(await de(async()=>{const{default:i}=await import("./baseAccount-44UITRK7-CsjdbWCf.js");return{default:i}},[])).default,iconAccent:"#0000FF",iconBackground:"#0000FF",installed:!0,createConnector:i=>{const a=YP({appName:e,appLogoUrl:t,...r,preference:{telemetry:!1,...n||{}}});return c=>({...a(c),...i})}}};function cN(e){return!(!(e!=null&&e.isMetaMask)||e.isBraveWallet&&!e._events&&!e._state||e.isApexWallet||e.isAvalanche||e.isBackpack||e.isBifrost||e.isBitKeep||e.isBitski||e.isBinance||e.isBlockWallet||e.isCoinbaseWallet||e.isDawn||e.isEnkrypt||e.isExodus||e.isFrame||e.isFrontier||e.isGamestop||e.isHyperPay||e.isImToken||e.isKuCoinWallet||e.isMathWallet||e.isNestWallet||e.isOkxWallet||e.isOKExWallet||e.isOneInchIOSWallet||e.isOneInchAndroidWallet||e.isOpera||e.isPhantom||e.isZilPay||e.isPortal||e.isxPortal||e.isRabby||e.isRainbow||e.isStatus||e.isTalisman||e.isTally||e.isTokenPocket||e.isTokenary||e.isTrust||e.isTrustWallet||e.isCTRL||e.isZeal||e.isCoin98||e.isMEWwallet||e.isSafeheron||e.isSafePal||e.isWigwam||e.isZerion||e.__seif)}var Dx=({projectId:e,walletConnectParameters:t})=>{const{...n}=Dx,r=typeof window<"u"?cN(window.ethereum):!1,i=!r&&!lt(),a=r||lt();return{id:"metaMask",name:"MetaMask",rdns:"io.metamask",iconUrl:async()=>(await de(async()=>{const{default:c}=await import("./metaMaskWallet-SITXT2FV-BlemcphV.js");return{default:c}},[])).default,iconAccent:"#f6851a",iconBackground:"#fff",installed:r||void 0,downloadUrls:{android:"https://play.google.com/store/apps/details?id=io.metamask",ios:"https://apps.apple.com/us/app/metamask/id1438144202",mobile:"https://metamask.io/download",qrCode:"https://metamask.io/download",chrome:"https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn",edge:"https://microsoftedge.microsoft.com/addons/detail/metamask/ejbalbakoplchlghecdalmeeeajnimhm",firefox:"https://addons.mozilla.org/firefox/addon/ether-metamask",opera:"https://addons.opera.com/extensions/details/metamask-10",browserExtension:"https://metamask.io/download"},mobile:{getUri:a?c=>c:void 0},qrCode:i?{getUri:c=>`https://metamask.app.link/wc?uri=${encodeURIComponent(c)}`,instructions:{learnMoreUrl:"https://metamask.io/faqs/",steps:[{description:"wallet_connectors.metamask.qr_code.step1.description",step:"install",title:"wallet_connectors.metamask.qr_code.step1.title"},{description:"wallet_connectors.metamask.qr_code.step2.description",step:"create",title:"wallet_connectors.metamask.qr_code.step2.title"},{description:"wallet_connectors.metamask.qr_code.step3.description",step:"refresh",title:"wallet_connectors.metamask.qr_code.step3.title"}]}}:void 0,extension:{instructions:{learnMoreUrl:"https://metamask.io/faqs/",steps:[{description:"wallet_connectors.metamask.extension.step1.description",step:"install",title:"wallet_connectors.metamask.extension.step1.title"},{description:"wallet_connectors.metamask.extension.step2.description",step:"create",title:"wallet_connectors.metamask.extension.step2.title"},{description:"wallet_connectors.metamask.extension.step3.description",step:"refresh",title:"wallet_connectors.metamask.extension.step3.title"}]}},createConnector:i?y1({projectId:e,walletConnectParameters:t}):(c=>u=>{var f,p,g;const d=n1({dappMetadata:{connector:"rainbowkit",name:(f=t==null?void 0:t.metadata)==null?void 0:f.name,iconUrl:(p=t==null?void 0:t.metadata)==null?void 0:p.icons[0],url:(g=t==null?void 0:t.metadata)==null?void 0:g.url},headless:!0,checkInstallationImmediately:!1,enableAnalytics:!1,...n})(u);return{...d,...c,getChainId:async()=>{var m;try{return await d.getChainId()}catch{return((m=u.chains[0])==null?void 0:m.id)??1}}}})}},lN=({projectId:e,walletConnectParameters:t})=>{const n=oN({flag:"isRainbow"}),r=!n,i=a=>U3()?a:ul()?`rainbow://wc?uri=${encodeURIComponent(a)}&connector=rainbowkit`:`https://rnbwapp.com/wc?uri=${encodeURIComponent(a)}&connector=rainbowkit`;return{id:"rainbow",name:"Rainbow",rdns:"me.rainbow",iconUrl:async()=>(await de(async()=>{const{default:a}=await import("./rainbowWallet-O26YNBMX-DUhYus-9.js");return{default:a}},[])).default,iconBackground:"#0c2f78",installed:r?void 0:n,downloadUrls:{android:"https://play.google.com/store/apps/details?id=me.rainbow&referrer=utm_source%3Drainbowkit&utm_source=rainbowkit",ios:"https://apps.apple.com/app/apple-store/id1457119021?pt=119997837&ct=rainbowkit&mt=8",mobile:"https://rainbow.download?utm_source=rainbowkit",qrCode:"https://rainbow.download?utm_source=rainbowkit&utm_medium=qrcode",browserExtension:"https://rainbow.me/extension?utm_source=rainbowkit"},mobile:{getUri:r?i:void 0},qrCode:r?{getUri:i,instructions:{learnMoreUrl:"https://learn.rainbow.me/connect-to-a-website-or-app?utm_source=rainbowkit&utm_medium=connector&utm_campaign=learnmore",steps:[{description:"wallet_connectors.rainbow.qr_code.step1.description",step:"install",title:"wallet_connectors.rainbow.qr_code.step1.title"},{description:"wallet_connectors.rainbow.qr_code.step2.description",step:"create",title:"wallet_connectors.rainbow.qr_code.step2.title"},{description:"wallet_connectors.rainbow.qr_code.step3.description",step:"scan",title:"wallet_connectors.rainbow.qr_code.step3.title"}]}}:void 0,createConnector:r?y1({projectId:e,walletConnectParameters:t}):aN({flag:"isRainbow"})}},uN=()=>({id:"safe",name:"Safe",iconAccent:"#12ff80",iconBackground:"#fff",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./safeWallet-5MNKTR5Z-D-5imDLD.js");return{default:e}},[])).default,installed:!(typeof window>"u")&&(window==null?void 0:window.parent)!==window,downloadUrls:{},createConnector:e=>t=>({...r1()(t),...e})}),dN=({projectId:e,options:t})=>({id:"walletConnect",name:"WalletConnect",installed:void 0,iconUrl:async()=>(await de(async()=>{const{default:r}=await import("./walletConnectWallet-YHWKVTDY-D3lyiczV.js");return{default:r}},[])).default,iconBackground:"#3b99fc",qrCode:{getUri:r=>r},createConnector:y1({projectId:e,walletConnectParameters:t})}),fN=e=>e.reduce((n,r)=>{const i=r.id;return n[i]=Hu(),n},{}),hN=({appName:e,appDescription:t,appUrl:n,appIcon:r,wallets:i,projectId:a,walletConnectParameters:c,...u})=>{const{transports:d,chains:f,...p}=u,g=Ox({appName:e,appDescription:t,appUrl:n,appIcon:r}),m=tN(i||[{groupName:"Popular",wallets:[uN,lN,Mx,Dx,dN]}],{projectId:a,appName:e,appDescription:t,appUrl:n,appIcon:r,walletConnectParameters:{metadata:g,...c}});return dj({connectors:m,chains:f,transports:d||fN(f),...p})};const pN=hN({appName:"AntSeed Payments",projectId:"9a1851410cb5589bc351a6dabf17140e",chains:[$p],transports:{[$p.id]:AI([Hu("https://base-rpc.publicnode.com"),Hu("https://base.gateway.tenderly.co"),Hu("https://base-public.nodies.app")])}}),mN="";let Wu;function gN(){return Wu!==void 0||(Wu=new URLSearchParams(window.location.search).get("token")),Wu}async function pl(e,t){const n=gN(),r={"Content-Type":"application/json"};n&&(r.Authorization=`Bearer ${n}`);const i=await fetch(`${mN}${e}`,{headers:r,...t});if(!i.ok){const a=await i.json().catch(()=>({}));throw new Error(a.error||`HTTP ${i.status}`)}return i.json()}async function yN(){return pl("/api/balance")}async function vN(){return pl("/api/config")}async function wN(){return pl("/api/channels")}async function bN(){return pl("/api/operator")}async function xN(e){return pl("/api/operator/sign",{method:"POST",body:JSON.stringify({operator:e})})}const CN=[{name:"deposit",type:"function",stateMutability:"nonpayable",inputs:[{name:"buyer",type:"address"},{name:"amount",type:"uint256"}],outputs:[]}],Fb=[{name:"approve",type:"function",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{name:"allowance",type:"function",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{name:"",type:"uint256"}]}];function EN({config:e,buyerAddress:t,onDeposited:n}){const[r,i]=N.useState("crypto");return W.jsx("div",{className:"deposit",children:W.jsxs("div",{className:"card",children:[W.jsx("div",{className:"card-section-title",children:"Deposit USDC"}),W.jsxs("div",{className:"deposit-methods",children:[W.jsxs("button",{className:`deposit-method ${r==="crypto"?"deposit-method--active":""}`,onClick:()=>i("crypto"),children:[W.jsx("span",{className:"deposit-method-icon",children:W.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[W.jsx("path",{d:"M8 1L1 4.5V11.5L8 15L15 11.5V4.5L8 1Z",stroke:"currentColor",strokeWidth:"1.2",strokeLinejoin:"round"}),W.jsx("path",{d:"M1 4.5L8 8M8 8L15 4.5M8 8V15",stroke:"currentColor",strokeWidth:"1.2",strokeLinejoin:"round"})]})}),W.jsx("span",{className:"deposit-method-label",children:"Crypto Wallet"}),W.jsx("span",{className:"deposit-method-desc",children:"MetaMask, Coinbase, etc."})]}),W.jsxs("button",{className:`deposit-method ${r==="card"?"deposit-method--active":""}`,onClick:()=>i("card"),children:[W.jsx("span",{className:"deposit-method-icon",children:W.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[W.jsx("rect",{x:"1",y:"3",width:"14",height:"10",rx:"2",stroke:"currentColor",strokeWidth:"1.2"}),W.jsx("line",{x1:"1",y1:"6.5",x2:"15",y2:"6.5",stroke:"currentColor",strokeWidth:"1.2"}),W.jsx("line",{x1:"4",y1:"9.5",x2:"8",y2:"9.5",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round"})]})}),W.jsx("span",{className:"deposit-method-label",children:"Credit Card"}),W.jsx("span",{className:"deposit-method-desc",children:"Coming soon"})]})]}),r==="crypto"?W.jsx(AN,{config:e,buyerAddress:t,onDeposited:n}):W.jsx(kN,{})]})})}function AN({config:e,buyerAddress:t,onDeposited:n}){const{address:r,isConnected:i,chain:a}=St(),[c,u]=N.useState("10"),[d,f]=N.useState("idle"),[p,g]=N.useState(null),m=e==null?void 0:e.evmChainId,y=i&&a&&m&&a.id!==m,w=t??r,{data:b,refetch:E}=LB({address:e==null?void 0:e.usdcContractAddress,abi:Fb,functionName:"allowance",args:[r,e==null?void 0:e.depositsContractAddress],query:{enabled:i&&!!e&&!!r}}),A=_9(c||"0",6),j=b!==void 0&&b>=A&&A>0n,{writeContract:S,data:k,reset:I}=Nc(),{isSuccess:P}=Rc({hash:k,query:{enabled:d==="approving"&&!!k}}),{data:_}=zB({address:e==null?void 0:e.depositsContractAddress,abi:CN,functionName:"deposit",args:[w,A],query:{enabled:j&&!!e&&!!w,retry:3,retryDelay:2e3}}),{writeContract:T,data:M,reset:V}=Nc(),{isSuccess:Q}=Rc({hash:M,query:{enabled:d==="depositing"&&!!M}});N.useEffect(()=>{d!=="approving"||!P||E()},[d,P,E]),N.useEffect(()=>{d!=="approving"||!(_!=null&&_.request)||(f("depositing"),T(_.request,{onError:se=>{f("idle"),g(se.message.split(`
1727
+ `)[0]??se.message)}}))},[d,_,T]),N.useEffect(()=>{d==="depositing"&&Q&&(f("done"),n())},[Q,d,n]);function Z(){if(!(!r||!c||parseFloat(c)<=0||!e||!w)){if(g(null),I(),V(),_!=null&&_.request){f("depositing");const{gas:se,...$}=_.request;T($,{onError:X=>{f("idle"),g(X.message.split(`
1728
+ `)[0]??X.message)}});return}f("approving"),S({address:e.usdcContractAddress,abi:Fb,functionName:"approve",args:[e.depositsContractAddress,A]},{onError:se=>{f("idle"),g(se.message.split(`
1729
+ `)[0]??se.message)}})}}function G(){f("idle"),g(null),u("10"),I(),V()}return W.jsxs("div",{className:"deposit-form",children:[i?y?W.jsxs("div",{className:"deposit-wrong-chain",children:[W.jsx("div",{className:"deposit-wrong-chain-text",children:"Please switch to the correct network in your wallet."}),W.jsx(vd,{})]}):d==="done"?W.jsxs("div",{className:"deposit-success",children:[W.jsx("div",{className:"deposit-success-icon",children:"✓"}),W.jsx("div",{className:"deposit-success-title",children:"Deposit confirmed!"}),W.jsxs("div",{className:"deposit-success-hash",children:[M==null?void 0:M.slice(0,18),"..."]}),w&&w!==r&&W.jsxs("div",{className:"deposit-success-note",children:["Credits added to ",w.slice(0,6),"...",w.slice(-4)]}),W.jsx("div",{className:"deposit-success-note",children:"Your credits are now available. You can return to AntSeed Desktop to continue."}),W.jsx("button",{className:"btn-outline",onClick:G,style:{marginTop:12},children:"Deposit more"})]}):W.jsxs(W.Fragment,{children:[w&&w!==r&&W.jsxs("div",{className:"deposit-target-info",children:[W.jsx("span",{className:"deposit-target-label",children:"Depositing for"}),W.jsxs("span",{className:"deposit-target-addr",children:[w.slice(0,6),"...",w.slice(-4)]})]}),W.jsxs("div",{className:"deposit-connected",children:[W.jsx("div",{className:"deposit-connected-dot"}),W.jsxs("span",{className:"deposit-connected-addr",children:[r==null?void 0:r.slice(0,6),"...",r==null?void 0:r.slice(-4)]}),W.jsx("span",{className:"deposit-connected-label",children:"Connected"})]}),W.jsxs("div",{className:"input-group",children:[W.jsx("label",{className:"input-label",children:"Amount (USDC)"}),W.jsx("input",{className:"input-field",type:"number",min:"0",step:"0.01",placeholder:"10.00",value:c,onChange:se=>u(se.target.value),disabled:d!=="idle"}),W.jsx("span",{className:"hint",children:"Minimum first deposit: 1 USDC"})]}),W.jsx("button",{className:"btn-primary",onClick:Z,disabled:d!=="idle"||!c||parseFloat(c)<=0||!e,children:d==="approving"?"Approving USDC...":d==="depositing"?"Depositing...":"Deposit USDC"})]}):W.jsx("div",{className:"deposit-connect-wrapper",children:W.jsx(vd,{})}),p&&W.jsx("div",{className:"status-msg status-error",children:p})]})}function kN(){return W.jsx("div",{className:"deposit-form",children:W.jsxs("div",{className:"deposit-card-coming",children:[W.jsx("div",{className:"deposit-card-coming-icon",children:W.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 16 16",fill:"none",children:[W.jsx("rect",{x:"1",y:"3",width:"14",height:"10",rx:"2",stroke:"currentColor",strokeWidth:"1.2"}),W.jsx("line",{x1:"1",y1:"6.5",x2:"15",y2:"6.5",stroke:"currentColor",strokeWidth:"1.2"}),W.jsx("line",{x1:"4",y1:"9.5",x2:"8",y2:"9.5",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round"})]})}),W.jsx("div",{className:"deposit-card-coming-title",children:"Credit card deposits coming soon"}),W.jsx("div",{className:"deposit-card-coming-desc",children:"Direct credit card deposits are being integrated. For now, use the crypto wallet option."})]})})}const SN=["function requestClose(bytes32 channelId) external","function withdraw(bytes32 channelId) external","function channels(bytes32 channelId) external view returns (address buyer, address seller, uint128 deposit, uint128 settled, bytes32 metadataHash, uint256 deadline, uint256 settledAt, uint256 closeRequestedAt, uint8 status)","event Reserved(bytes32 indexed channelId, address indexed buyer, address indexed seller, uint128 maxAmount)","event ChannelClosed(bytes32 indexed channelId, address indexed seller, uint128 finalAmount, uint256 platformFee)","event ChannelWithdrawn(bytes32 indexed channelId, address indexed buyer)","event CloseRequested(bytes32 indexed channelId, address indexed buyer)"],Lx=900;function Fx(e){return`${e.slice(0,6)}...${e.slice(-4)}`}function IN(e){return e.closeRequestedAt===0?"active":Math.floor(Date.now()/1e3)<e.closeRequestedAt+Lx?"closing":"withdrawable"}function jN({status:e}){const n={active:{bg:"var(--accent-dim)",color:"var(--accent-text)",label:"Active"},closing:{bg:"var(--amber-dim)",color:"var(--amber)",label:"Closing..."},withdrawable:{bg:"rgba(59, 130, 246, 0.08)",color:"#3b82f6",label:"Withdrawable"}}[e];return W.jsx("span",{style:{display:"inline-block",padding:"2px 8px",borderRadius:12,fontSize:11,fontWeight:600,background:n.bg,color:n.color},children:n.label})}function BN(e){const t=Math.floor(Date.now()/1e3),n=e+Lx-t;if(n<=0)return"0:00";const r=Math.floor(n/60),i=n%60;return`${r}:${i.toString().padStart(2,"0")}`}const zb=Ad(SN);function _N({session:e,config:t,onRefresh:n}){const r=IN(e),{writeContract:i,data:a}=Nc(),{isSuccess:c}=Rc({hash:a}),{writeContract:u,data:d}=Nc(),{isSuccess:f}=Rc({hash:d}),p=N.useCallback(()=>{i({address:t.channelsContractAddress,abi:zb,functionName:"requestClose",args:[e.channelId]})},[t.channelsContractAddress,e.channelId,i]),g=N.useCallback(()=>{u({address:t.channelsContractAddress,abi:zb,functionName:"withdraw",args:[e.channelId]})},[t.channelsContractAddress,e.channelId,u]);return W.jsxs("div",{style:{background:"var(--card-bg)",border:"1px solid var(--card-border)",borderRadius:12,padding:16,marginBottom:12},children:[W.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:12},children:[W.jsxs("span",{style:{fontSize:13,color:"var(--text-secondary)",fontWeight:500},children:["Seller: ",Fx(e.seller)]}),W.jsx(jN,{status:r})]}),W.jsxs("div",{style:{display:"flex",gap:24,marginBottom:12},children:[W.jsxs("div",{children:[W.jsx("div",{style:{fontSize:10,fontWeight:600,color:"var(--text-muted)",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Reserved"}),W.jsxs("div",{style:{fontSize:16,fontWeight:700,color:"var(--text-primary)"},children:["$",e.deposit]})]}),W.jsxs("div",{children:[W.jsx("div",{style:{fontSize:10,fontWeight:600,color:"var(--text-muted)",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Used"}),W.jsxs("div",{style:{fontSize:16,fontWeight:700,color:"var(--text-primary)"},children:["$",e.settled]})]})]}),r==="active"&&!c&&W.jsx("button",{className:"btn-outline",onClick:p,style:{fontSize:12,padding:"8px 0"},children:"Request Close"}),r==="closing"&&W.jsxs("button",{className:"btn-outline",disabled:!0,style:{fontSize:12,padding:"8px 0"},children:["Waiting... ",BN(e.closeRequestedAt)]}),r==="withdrawable"&&!f&&W.jsx("button",{className:"btn-primary",onClick:g,style:{fontSize:12,padding:"8px 0"},children:"Withdraw"}),c&&W.jsxs("div",{className:"status-msg status-success",style:{fontSize:11},children:["Close requested. Tx: ",a==null?void 0:a.slice(0,18),"... ",W.jsx("button",{className:"btn-link",onClick:n,style:{fontSize:11},children:"Refresh"})]}),f&&W.jsxs("div",{className:"status-msg status-success",style:{fontSize:11},children:["Withdrawn. Tx: ",d==null?void 0:d.slice(0,18),"... ",W.jsx("button",{className:"btn-link",onClick:n,style:{fontSize:11},children:"Refresh"})]})]})}function PN({session:e}){const t=e.status===2?"Settled":e.status===3?"Timed out":"Closed";return W.jsxs("div",{style:{background:"var(--card-bg)",border:"1px solid var(--card-border)",borderRadius:12,padding:12,marginBottom:8,opacity:.75},children:[W.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:8},children:[W.jsxs("span",{style:{fontSize:12,color:"var(--text-secondary)",fontWeight:500},children:["Seller: ",Fx(e.seller)]}),W.jsx("span",{style:{display:"inline-block",padding:"2px 8px",borderRadius:12,fontSize:11,fontWeight:600,background:"rgba(148, 163, 184, 0.12)",color:"var(--text-muted)"},children:t})]}),W.jsxs("div",{style:{display:"flex",gap:24},children:[W.jsxs("div",{children:[W.jsx("div",{style:{fontSize:10,fontWeight:600,color:"var(--text-muted)",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Reserved"}),W.jsxs("div",{style:{fontSize:14,fontWeight:600,color:"var(--text-primary)"},children:["$",e.deposit]})]}),W.jsxs("div",{children:[W.jsx("div",{style:{fontSize:10,fontWeight:600,color:"var(--text-muted)",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Used"}),W.jsxs("div",{style:{fontSize:14,fontWeight:600,color:"var(--text-primary)"},children:["$",e.settled]})]})]})]})}function TN({config:e}){const[t,n]=N.useState([]),[r,i]=N.useState([]),[a,c]=N.useState(!0),[u,d]=N.useState(null),f=N.useCallback(async()=>{c(!0);try{const[p,g]=await Promise.all([wN().catch(()=>({channels:[],history:[]})),bN().catch(()=>null)]);n(p.channels),i(p.history??[]),g&&d(g.operator!=="0x0000000000000000000000000000000000000000")}finally{c(!1)}},[]);return N.useEffect(()=>{f()},[f]),W.jsxs("div",{children:[W.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:16},children:[W.jsx("div",{className:"card-section-title",style:{marginBottom:0},children:"Active Channels"}),W.jsx("button",{className:"btn-outline",onClick:f,style:{width:"auto",padding:"6px 14px",fontSize:12},children:"Refresh"})]}),u===!1&&W.jsx(RN,{config:e,onSet:f}),a?W.jsx("div",{style:{textAlign:"center",padding:32,color:"var(--text-muted)",fontSize:13},children:"Loading channels..."}):t.length===0?W.jsx("div",{style:{textAlign:"center",padding:32,color:"var(--text-muted)",fontSize:13},children:"No active channels"}):e&&t.map(p=>W.jsx(_N,{session:p,config:e,onRefresh:f},p.channelId)),r.length>0&&W.jsxs("div",{style:{marginTop:24},children:[W.jsx("div",{className:"card-section-title",style:{marginBottom:12},children:"History"}),r.map(p=>W.jsx(PN,{session:p},p.channelId))]})]})}const ON=Ad(["function setOperator(address buyer, address operator, uint256 nonce, bytes buyerSig) external"]);function RN({config:e,onSet:t}){const{address:n}=St(),[r,i]=N.useState(!1),[a,c]=N.useState(null),{writeContract:u,data:d,reset:f}=Nc(),{isSuccess:p}=Rc({hash:d});N.useEffect(()=>{p&&r&&(i(!1),t())},[p,r,t]);const g=N.useCallback(async()=>{if(!(!n||!(e!=null&&e.depositsContractAddress))){c(null),i(!0),f();try{const m=await xN(n);if(!m.ok){i(!1),c("Failed to sign wallet authorization");return}u({address:e.depositsContractAddress,abi:ON,functionName:"setOperator",args:[m.buyer,n,BigInt(m.nonce),m.signature]},{onError:y=>{i(!1),c(y.message.split(`
1730
+ `)[0]??y.message)}})}catch(m){i(!1),c(m instanceof Error?m.message:"Failed to set wallet")}}},[n,e,u,f]);return W.jsxs("div",{className:"status-msg",style:{marginTop:0,marginBottom:16,fontSize:12},children:[W.jsx("div",{style:{color:"var(--text-secondary)",marginBottom:8},children:"No wallet set. This is the wallet used to claim ANTS rewards and manage channels. Set your connected wallet to continue."}),W.jsx("button",{className:"btn-outline",style:{fontSize:12,padding:"4px 12px"},onClick:g,disabled:r||!n,children:r?"Setting wallet...":"Set Your Wallet"}),a&&W.jsx("div",{style:{color:"var(--error)",marginTop:6},children:a})]})}function NN({size:e=24}){return W.jsxs("svg",{width:e,height:e,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[W.jsx("path",{d:"M14 9.625C14.9665 9.625 15.75 8.763 15.75 7.7C15.75 6.637 14.9665 5.775 14 5.775C13.0335 5.775 12.25 6.637 12.25 7.7C12.25 8.763 13.0335 9.625 14 9.625Z",fill:"currentColor"}),W.jsx("path",{d:"M14 15.4C15.353 15.4 16.45 14.146 16.45 12.6C16.45 11.054 15.353 9.8 14 9.8C12.647 9.8 11.55 11.054 11.55 12.6C11.55 14.146 12.647 15.4 14 15.4Z",fill:"currentColor"}),W.jsx("path",{d:"M14 23.45C15.74 23.45 17.15 21.57 17.15 19.25C17.15 16.93 15.74 15.05 14 15.05C12.26 15.05 10.85 16.93 10.85 19.25C10.85 21.57 12.26 23.45 14 23.45Z",fill:"currentColor"}),W.jsx("path",{opacity:"0.6",d:"M12.95 5.95L9.8 2.1",stroke:"currentColor",strokeWidth:"0.6",strokeLinecap:"round"}),W.jsx("path",{opacity:"0.6",d:"M15.05 5.95L18.2 2.1",stroke:"currentColor",strokeWidth:"0.6",strokeLinecap:"round"}),W.jsx("circle",{cx:"9.8",cy:"2.1",r:"0.875",fill:"currentColor"}),W.jsx("circle",{cx:"18.2",cy:"2.1",r:"0.875",fill:"currentColor"}),W.jsx("path",{opacity:"0.4",d:"M12.25 11.2L6.125 7.7",stroke:"currentColor",strokeWidth:"0.52",strokeLinecap:"round"}),W.jsx("path",{opacity:"0.4",d:"M15.75 11.2L21.875 7.7",stroke:"currentColor",strokeWidth:"0.52",strokeLinecap:"round"}),W.jsx("circle",{cx:"6.3",cy:"7.7",r:"0.875",fill:"currentColor"}),W.jsx("circle",{cx:"21.7",cy:"7.7",r:"0.875",fill:"currentColor"})]})}function MN({isDark:e,onToggle:t}){return W.jsx("button",{className:"theme-toggle",onClick:t,title:e?"Switch to light":"Switch to dark",children:e?W.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[W.jsx("circle",{cx:"8",cy:"8",r:"3",stroke:"currentColor",strokeWidth:"1.2"}),W.jsx("path",{d:"M8 2V3.5M8 12.5V14M2 8H3.5M12.5 8H14M3.8 3.8L4.8 4.8M11.2 11.2L12.2 12.2M3.8 12.2L4.8 11.2M11.2 4.8L12.2 3.8",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round"})]}):W.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:W.jsx("path",{d:"M13.5 10A5.5 5.5 0 016 2.5 5.5 5.5 0 108 13.5a5.5 5.5 0 005.5-3.5z",stroke:"currentColor",strokeWidth:"1.2",strokeLinejoin:"round"})})})}function DN(){const[e,t]=N.useState(null),[n,r]=N.useState(null),[i,a]=N.useState(()=>new URLSearchParams(window.location.search).get("tab")==="channels"?"channels":"deposit"),[c,u]=N.useState(()=>{const y=localStorage.getItem("antseed-payments-theme");return y?y==="dark":window.matchMedia("(prefers-color-scheme: dark)").matches});N.useEffect(()=>{document.documentElement.setAttribute("data-theme",c?"dark":"light"),localStorage.setItem("antseed-payments-theme",c?"dark":"light")},[c]);const d=N.useCallback(async()=>{try{const y=await yN();t(y)}catch{}},[]),f=N.useCallback(async()=>{await d(),setTimeout(d,3e3)},[d]);N.useEffect(()=>{d(),vN().then(r).catch(()=>{})},[d]);const p=e?parseFloat(e.available):0,g=e?parseFloat(e.reserved):0,m=e?parseFloat(e.creditLimit):0;return(n==null?void 0:n.evmAddress)??(e==null||e.evmAddress),W.jsxs("div",{className:"portal-page",children:[W.jsxs("div",{className:"portal-box",children:[W.jsxs("div",{className:"portal-header",children:[W.jsxs("div",{className:"portal-brand",children:[W.jsx(NN,{size:20}),W.jsx("span",{className:"portal-title",children:"AntSeed"})]}),W.jsxs("div",{className:"portal-header-right",children:[W.jsx(MN,{isDark:c,onToggle:()=>u(y=>!y)}),W.jsxs("div",{className:"portal-network",children:[W.jsx("span",{className:"portal-network-dot"}),"Base"]})]})]}),W.jsxs("div",{className:"balance-bar",children:[W.jsxs("div",{className:"balance-bar-item",children:[W.jsx("span",{className:"balance-bar-label",children:"Available"}),W.jsxs("span",{className:"balance-bar-value balance-bar-value--accent",children:["$",p.toFixed(2)]})]}),W.jsxs("div",{className:"balance-bar-item",children:[W.jsx("span",{className:"balance-bar-label",children:"Reserved"}),W.jsxs("span",{className:"balance-bar-value",children:["$",g.toFixed(2)]})]}),W.jsxs("div",{className:"balance-bar-item",children:[W.jsx("span",{className:"balance-bar-label",children:"Credit Limit"}),W.jsxs("span",{className:"balance-bar-value",children:["$",m.toFixed(2)]})]})]}),W.jsxs("div",{className:"tabs",children:[W.jsx("button",{className:`tab${i==="deposit"?" tab-active":""}`,onClick:()=>a("deposit"),children:"Deposit"}),W.jsx("button",{className:`tab${i==="channels"?" tab-active":""}`,onClick:()=>a("channels"),children:"Channels"})]}),W.jsx("div",{className:"portal-section",children:i==="deposit"?W.jsx(EN,{config:n,buyerAddress:(n==null?void 0:n.evmAddress)??null,onDeposited:f}):W.jsx(TN,{config:n})})]}),W.jsxs("div",{className:"portal-footer",children:[W.jsx("span",{children:"AntSeed Payments"}),W.jsxs("div",{className:"portal-footer-links",children:[W.jsx("a",{href:"https://antseed.com",target:"_blank",rel:"noopener noreferrer",children:"antseed.com"}),W.jsx("a",{href:"https://antseed.com/docs/payments",target:"_blank",rel:"noopener noreferrer",children:"Docs"})]})]})]})}const LN=new Kj,FN=document.getElementById("root");$8.createRoot(FN).render(W.jsx(pj,{config:pN,children:W.jsx(vB,{client:LN,children:W.jsx(RO,{children:W.jsx(DN,{})})})}));const Ub=Object.freeze(Object.defineProperty({__proto__:null,default:Dp},Symbol.toStringTag,{value:"Module"}));export{CI as $,K8 as A,ne as B,ce as C,XE as D,tE as E,oM as F,nr as G,sc as H,Vt as I,Kk as J,$t as K,Kc as L,tr as M,vn as N,GE as O,Um as P,kt as Q,Ee as R,Md as S,B2 as T,HN as U,d2 as V,Vo as W,cl as X,Xs as Y,O5 as Z,de as _,B4 as a,y5 as a0,ZN as a1,SE as a2,XN as a3,Uo as a4,RE as a5,cc as a6,IE as a7,NE as a8,Z2 as a9,f6 as aA,Yc as aB,Pm as aa,$w as ab,nj as ac,Je as ad,Et as ae,nd as af,Ln as ag,Ad as ah,Zc as ai,an as aj,k4 as ak,Gh as al,im as am,ek as an,gm as ao,Cr as ap,Tm as aq,$p as ar,e1 as as,lk as at,O2 as au,cM as av,aM as aw,$o as ax,Bi as ay,I4 as az,Dn as b,aa as c,d4 as d,zi as e,xr as f,om as g,xn as h,_c as i,V2 as j,cS as k,Bd as l,UN as m,Xb as n,Id as o,AI as p,Hu as q,WN as r,At as s,sn as t,ir as u,ct as v,na as w,Gs as x,h6 as y,S6 as z};