@wormhole-foundation/wormhole-connect 2.5.0-beta.13-development → 2.5.0-beta.15-development
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +2 -2
- package/lib/{aptos-BVPA8gYF.js → aptos-BQFmduMd.js} +2 -2
- package/lib/{aptos-Yk9QyTBh.mjs → aptos-CFJxiJmC.mjs} +2 -2
- package/lib/{aptos-CIiuTO2J.mjs → aptos-CeQAnpez.mjs} +5 -5
- package/lib/{aptos-c2KbBxBV.js → aptos-DM8l3csb.js} +1 -1
- package/lib/{base64-BPqtma3e.mjs → base64-CHhsJk6A.mjs} +1 -1
- package/lib/{base64-qNM1fRyt.js → base64-D9lqOebt.js} +1 -1
- package/lib/{ccip-CPVLRLJJ.js → ccip-CgZgkY8Y.js} +1 -1
- package/lib/{ccip-BpeVK7Rl.mjs → ccip-DIBA7ZPU.mjs} +1 -1
- package/lib/{chunk-IMTC3J2M-0BfyFPJr.js → chunk-IMTC3J2M-CMDaOJhu.js} +1 -1
- package/lib/{chunk-IMTC3J2M-DvhfvP9K.mjs → chunk-IMTC3J2M-CZ9g11yQ.mjs} +3 -3
- package/lib/{evm-CpQDS8wo.js → evm-B4FdqIm_.js} +2 -2
- package/lib/{evm-CySh4z_X.mjs → evm-DIChhZyr.mjs} +5 -5
- package/lib/{evm-CsZx_4af.mjs → evm-Dc_rWE9Y.mjs} +6 -6
- package/lib/{evm-Ch6FuPzQ.js → evm-ue5IlD46.js} +3 -3
- package/lib/{index-Y3i2299b.mjs → index-2NJ-Uc1n.mjs} +1 -1
- package/lib/{index-CTShjNeL.mjs → index-B2ab2XtW.mjs} +1 -1
- package/lib/{index-kZzOULzm.js → index-B5ZPnsOX.js} +1 -1
- package/lib/{index-D9cOG77k.js → index-B5xcX9Pc.js} +1 -1
- package/lib/{index-tmft32Jl.mjs → index-BCVTOYpu.mjs} +2 -2
- package/lib/{index-ChB0PxtF.js → index-BDu7oYbW.js} +1 -1
- package/lib/{index-DmC8NhAc.js → index-BFSevX7g.js} +1 -1
- package/lib/{index-DaWhsQ7Y.mjs → index-BGjIKUEk.mjs} +1 -1
- package/lib/{index-uIOnTFy9.js → index-BSsBLI7m.js} +1 -1
- package/lib/{index-DyChKZrY.js → index-BVUd-qAx.js} +1 -1
- package/lib/{index-vp64iOpv.js → index-BZyf12j0.js} +1 -1
- package/lib/{index-C07HWBow.mjs → index-BcZ5yPJ4.mjs} +1 -1
- package/lib/{index-DGkJ3qwd.mjs → index-Bnnn4cdG.mjs} +13 -13
- package/lib/{index-B30laWIo.mjs → index-Bo7Tv5Eo.mjs} +3 -3
- package/lib/{index-CBYLO1Hi.mjs → index-BskY1_ip.mjs} +2 -2
- package/lib/{index-CqmLptlA.mjs → index-Bt1Gnf-O.mjs} +2 -2
- package/lib/{index-RsyQYt06.js → index-Bu697BJP.js} +1 -1
- package/lib/{index-C3HS7tO4.mjs → index-C4e6Tr94.mjs} +1 -1
- package/lib/{index-CJ19MHxd.js → index-C9vy8VuD.js} +1 -1
- package/lib/{index-DQ6o865z.js → index-CJReTDxB.js} +1 -1
- package/lib/{index-BqNdjBH5.js → index-CLwJAWXV.js} +1 -1
- package/lib/{index-ClASHgjc.js → index-CRvTBc48.js} +1 -1
- package/lib/{index-B2M8k2mN.js → index-CXtp5GKq.js} +1 -1
- package/lib/{index-DHmbSwZ3.mjs → index-CZM3CbIN.mjs} +2 -2
- package/lib/{index-DXupFi-y.js → index-CcgIIKqT.js} +1 -1
- package/lib/{index-CjxniqZI.mjs → index-CsLUIX2T.mjs} +2 -2
- package/lib/{index-BnKTj6SV.mjs → index-CuQ35zWu.mjs} +1 -1
- package/lib/{index-BkLX6PzJ.js → index-D5JrYq_0.js} +1 -1
- package/lib/{index-Bedqoe9t.js → index-D5cipXo-.js} +1 -1
- package/lib/{index-BbFiSzuk.mjs → index-D6rdTBQ_.mjs} +1 -1
- package/lib/{index-BP4yso2j.mjs → index-DGDFGoDX.mjs} +2 -2
- package/lib/{index-IrWII0fq.mjs → index-DQJ5IMd3.mjs} +1 -1
- package/lib/{index-DQ8AFS8n.js → index-DTxneAkn.js} +1 -1
- package/lib/{index-Ed6QnBz-.mjs → index-DVI7iWJA.mjs} +1 -1
- package/lib/{index-CZWtHdVf.mjs → index-DXY3TcAw.mjs} +2 -2
- package/lib/{index-o1TnI99x.mjs → index-DcaoqeHs.mjs} +2 -2
- package/lib/{index-D4pCpPV2.mjs → index-Dcz-16pD.mjs} +2 -2
- package/lib/{index-D5VvgHZZ.mjs → index-DekUp2hz.mjs} +4 -4
- package/lib/{index-Buu5BXLA.mjs → index-DkuruFPE.mjs} +1 -1
- package/lib/{index-BjGepByq.js → index-DlgBKu9O.js} +1 -1
- package/lib/{index-Bmist010.js → index-Ghp7efN9.js} +1 -1
- package/lib/{index-BWZuYfMC.js → index-HjrA7REP.js} +1 -1
- package/lib/{index-CRY69UXK.js → index-MlkcvO4G.js} +1 -1
- package/lib/{index-CrthlBzj.mjs → index-PZieeYNW.mjs} +1 -1
- package/lib/{index-DxDcsE8H.js → index-WwuUq9Aw.js} +1 -1
- package/lib/{index-D7FFeuCp.js → index-X1wTeN-B.js} +3 -3
- package/lib/{index-1-1sQdBk.mjs → index-bjRbczrw.mjs} +3 -3
- package/lib/{index-Dq2CQibu.js → index-wTziIUpS.js} +1 -1
- package/lib/{index.es-ComZGqCi.js → index.es-BFV_Hq98.js} +2 -2
- package/lib/{index.es-BDUZQPx-.mjs → index.es-CQrihLMh.mjs} +5 -5
- package/lib/index.js +1 -1
- package/lib/index.mjs +1 -1
- package/lib/{signer-DDNkLWHh.mjs → signer-BGahG9Lx.mjs} +1 -1
- package/lib/{signer-B39OryLd.js → signer-DVlvBrTY.js} +1 -1
- package/lib/{solana-CTMFD8wN.js → solana-25r-MPDz.js} +1 -1
- package/lib/solana-5YorGJTB.mjs +17 -0
- package/lib/{solana-B-7bMXQC.mjs → solana-DZVSRj8-.mjs} +4 -4
- package/lib/solana-Dg31-6OS.js +1 -0
- package/lib/{solanaEmbed.esm-OJaX_G6S.js → solanaEmbed.esm-D6F7GU7N.js} +1 -1
- package/lib/{solanaEmbed.esm-CRy-qWYD.mjs → solanaEmbed.esm-ea6sDZ8N.mjs} +2 -2
- package/lib/{sui-xD9tYMxq.mjs → sui-9tHCVvtM.mjs} +5 -5
- package/lib/{sui-DuISROp3.js → sui-BHAlSArP.js} +1 -1
- package/lib/{sui-rVS-XQDK.mjs → sui-CG9oss4-.mjs} +1 -1
- package/lib/{sui-COgXxdtI.js → sui-ZMZ9Uq_a.js} +1 -1
- package/lib/{tokens-CZV3Ccde.js → tokens-B2mOzW4r.js} +1 -1
- package/lib/{tokens-BP3fRZDM.mjs → tokens-BZf6dpqe.mjs} +2 -2
- package/package.json +1 -1
- package/lib/solana-D2DaJnor.mjs +0 -17
- package/lib/solana-D4aC7zHK.js +0 -1
package/dist/main.js
CHANGED
|
@@ -59,7 +59,7 @@ Error generating stack: `+n.message+`
|
|
|
59
59
|
*
|
|
60
60
|
* This source code is licensed under the MIT license found in the
|
|
61
61
|
* LICENSE file in the root directory of this source tree.
|
|
62
|
-
*/var Yp=G;function Lle(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ble=typeof Object.is=="function"?Object.is:Lle,jle=Yp.useSyncExternalStore,kle=Yp.useRef,_le=Yp.useEffect,Ole=Yp.useMemo,Fle=Yp.useDebugValue;LQ.useSyncExternalStoreWithSelector=function(t,e,n,r,i){var a=kle(null);if(a.current===null){var s={hasValue:!1,value:null};a.current=s}else s=a.current;a=Ole(function(){function l(M){if(!d){if(d=!0,p=M,M=r(M),i!==void 0&&s.hasValue){var C=s.value;if(i(C,M))return m=C}return m=M}if(C=m,Ble(p,M))return C;var T=r(M);return i!==void 0&&i(C,T)?(p=M,C):(p=M,m=T)}var d=!1,p,m,g=n===void 0?null:n;return[function(){return l(e())},g===null?void 0:function(){return l(g())}]},[e,n,r,i]);var c=jle(t,a[0],a[1]);return _le(function(){s.hasValue=!0,s.value=c},[c]),Fle(c),c};NQ.exports=LQ;var zle=NQ.exports;function Rle(t){t()}function Ple(){let t=null,e=null;return{clear(){t=null,e=null},notify(){Rle(()=>{let n=t;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=t;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=e={callback:n,next:null,prev:e};return i.prev?i.prev.next=i:t=i,function(){!r||t===null||(r=!1,i.next?i.next.prev=i.prev:e=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}var j_={notify(){},get:()=>[]};function Ule(t,e){let n,r=j_,i=0,a=!1;function s(T){p();const D=r.subscribe(T);let S=!1;return()=>{S||(S=!0,D(),m())}}function c(){r.notify()}function l(){C.onStateChange&&C.onStateChange()}function d(){return a}function p(){i++,n||(n=t.subscribe(l),r=Ple())}function m(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=j_)}function g(){a||(a=!0,p())}function M(){a&&(a=!1,m())}const C={addNestedSub:s,notifyNestedSubs:c,handleChangeWrapper:l,isSubscribed:d,trySubscribe:g,tryUnsubscribe:M,getListeners:()=>r};return C}var Hle=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Wle=Hle(),Yle=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Gle=Yle(),$le=()=>Wle||Gle?G.useLayoutEffect:G.useEffect,Vle=$le(),Bx=Symbol.for("react-redux-context"),jx=typeof globalThis<"u"?globalThis:{};function Qle(){if(!G.createContext)return{};const t=jx[Bx]??(jx[Bx]=new Map);let e=t.get(G.createContext);return e||(e=G.createContext(null),t.set(G.createContext,e)),e}var Vu=Qle();function qle(t){const{children:e,context:n,serverState:r,store:i}=t,a=G.useMemo(()=>{const l=Ule(i);return{store:i,subscription:l,getServerState:r?()=>r:void 0}},[i,r]),s=G.useMemo(()=>i.getState(),[i]);Vle(()=>{const{subscription:l}=a;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),s!==i.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[a,s]);const c=n||Vu;return G.createElement(c.Provider,{value:a},e)}var Zle=qle;function xN(t=Vu){return function(){return G.useContext(t)}}var BQ=xN();function jQ(t=Vu){const e=t===Vu?BQ:xN(t),n=()=>{const{store:r}=e();return r};return Object.assign(n,{withTypes:()=>n}),n}var Kle=jQ();function Xle(t=Vu){const e=t===Vu?Kle:jQ(t),n=()=>e().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var V0=Xle(),Jle=(t,e)=>t===e;function eue(t=Vu){const e=t===Vu?BQ:xN(t),n=(r,i={})=>{const{equalityFn:a=Jle}=typeof i=="function"?{equalityFn:i}:i,s=e(),{store:c,subscription:l,getServerState:d}=s;G.useRef(!0);const p=G.useCallback({[r.name](g){return r(g)}}[r.name],[r]),m=zle.useSyncExternalStoreWithSelector(l.addNestedSub,c.getState,d||c.getState,p,a);return G.useDebugValue(m),m};return Object.assign(n,{withTypes:()=>n}),n}var ir=eue();function kQ(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=kQ(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function kt(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=kQ(t))&&(r&&(r+=" "),r+=e);return r}function cn(t,e,n=void 0){const r={};return Object.keys(t).forEach(i=>{r[i]=t[i].reduce((a,s)=>{if(s){const c=e(s);c!==""&&a.push(c),n&&n[s]&&a.push(n[s])}return a},[]).join(" ")}),r}function K2(t,e){const n=le({},e);return Object.keys(t).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=le({},t[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=t[r]||{},a=e[r];n[r]={},!a||!Object.keys(a)?n[r]=i:!i||!Object.keys(i)?n[r]=a:(n[r]=le({},a),Object.keys(i).forEach(s=>{n[r][s]=K2(i[s],a[s])}))}else n[r]===void 0&&(n[r]=t[r])}),n}const _Q=G.createContext(void 0);function tue({value:t,children:e}){return L.jsx(_Q.Provider,{value:t,children:e})}function nue(t){const{theme:e,name:n,props:r}=t;if(!e||!e.components||!e.components[n])return r;const i=e.components[n];return i.defaultProps?K2(i.defaultProps,r):!i.styleOverrides&&!i.variants?K2(i,r):r}function rue({props:t,name:e}){const n=G.useContext(_Q);return nue({props:t,name:e,theme:{components:n}})}function ln(t){return rue(t)}function iue(t){return Object.keys(t).length===0}function wN(t=null){const e=G.useContext(Uh);return!e||iue(e)?t:e}const aue=Wp();function J7(t=aue){return wN(t)}function sue({styles:t,themeId:e,defaultTheme:n={}}){const r=J7(n),i=typeof t=="function"?t(e&&r[e]||r):t;return L.jsx(oQ,{styles:i})}const oue=["className","component"];function cue(t={}){const{themeId:e,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=t,a=aN("div",{shouldForwardProp:c=>c!=="theme"&&c!=="sx"&&c!=="as"})(Hh);return G.forwardRef(function(l,d){const p=J7(n),m=X7(l),{className:g,component:M="div"}=m,C=Tt(m,oue);return L.jsx(a,le({as:M,ref:d,className:kt(g,i?i(r):r),theme:e&&p[e]||p},C))})}function sn(t,e,n="Mui"){const r={};return e.forEach(i=>{r[i]=on(t,i,n)}),r}const lue=["ownerState"],uue=["variants"],fue=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function due(t){return Object.keys(t).length===0}function hue(t){return typeof t=="string"&&t.charCodeAt(0)>96}function kx(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const pue=Wp(),bue=t=>t&&t.charAt(0).toLowerCase()+t.slice(1);function Jb({defaultTheme:t,theme:e,themeId:n}){return due(e)?t:e[n]||e}function mue(t){return t?(e,n)=>n[t]:null}function Bm(t,e){let{ownerState:n}=e,r=Tt(e,lue);const i=typeof t=="function"?t(le({ownerState:n},r)):t;if(Array.isArray(i))return i.flatMap(a=>Bm(a,le({ownerState:n},r)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:a=[]}=i;let c=Tt(i,uue);return a.forEach(l=>{let d=!0;typeof l.props=="function"?d=l.props(le({ownerState:n},r,n)):Object.keys(l.props).forEach(p=>{(n==null?void 0:n[p])!==l.props[p]&&r[p]!==l.props[p]&&(d=!1)}),d&&(Array.isArray(c)||(c=[c]),c.push(typeof l.style=="function"?l.style(le({ownerState:n},r,n)):l.style))}),c}return i}function yue(t={}){const{themeId:e,defaultTheme:n=pue,rootShouldForwardProp:r=kx,slotShouldForwardProp:i=kx}=t,a=s=>Hh(le({},s,{theme:Jb(le({},s,{defaultTheme:n,themeId:e}))}));return a.__mui_systemSx=!0,(s,c={})=>{cQ(s,k=>k.filter(O=>!(O!=null&&O.__mui_systemSx)));const{name:l,slot:d,skipVariantsResolver:p,skipSx:m,overridesResolver:g=mue(bue(d))}=c,M=Tt(c,fue),C=p!==void 0?p:d&&d!=="Root"&&d!=="root"||!1,T=m||!1;let D,S=kx;d==="Root"||d==="root"?S=r:d?S=i:hue(s)&&(S=void 0);const I=aN(s,le({shouldForwardProp:S,label:D},M)),N=k=>typeof k=="function"&&k.__emotion_real!==k||Fc(k)?O=>Bm(k,le({},O,{theme:Jb({theme:O.theme,defaultTheme:n,themeId:e})})):k,B=(k,...O)=>{let z=N(k);const _=O?O.map(N):[];l&&g&&_.push(w=>{const o=Jb(le({},w,{defaultTheme:n,themeId:e}));if(!o.components||!o.components[l]||!o.components[l].styleOverrides)return null;const u=o.components[l].styleOverrides,h={};return Object.entries(u).forEach(([b,y])=>{h[b]=Bm(y,le({},w,{theme:o}))}),g(w,h)}),l&&!C&&_.push(w=>{var o;const u=Jb(le({},w,{defaultTheme:n,themeId:e})),h=u==null||(o=u.components)==null||(o=o[l])==null?void 0:o.variants;return Bm({variants:h},le({},w,{theme:u}))}),T||_.push(a);const F=_.length-O.length;if(Array.isArray(k)&&F>0){const w=new Array(F).fill("");z=[...k,...w],z.raw=[...k.raw,...w]}const R=I(z,..._);return s.muiName&&(R.muiName=s.muiName),R};return I.withConfig&&(B.withConfig=I.withConfig),B}}const gue=yue();function OQ(t){const{theme:e,name:n,props:r}=t;return!e||!e.components||!e.components[n]||!e.components[n].defaultProps?r:K2(e.components[n].defaultProps,r)}function vue({props:t,name:e,defaultTheme:n,themeId:r}){let i=J7(n);return r&&(i=i[r]||i),OQ({theme:i,name:e,props:t})}const Wi=typeof window<"u"?G.useLayoutEffect:G.useEffect;function Mue(t,e,n,r,i){const[a,s]=G.useState(()=>i&&n?n(t).matches:r?r(t).matches:e);return Wi(()=>{let c=!0;if(!n)return;const l=n(t),d=()=>{c&&s(l.matches)};return d(),l.addListener(d),()=>{c=!1,l.removeListener(d)}},[t,n]),a}const FQ=G.useSyncExternalStore;function xue(t,e,n,r,i){const a=G.useCallback(()=>e,[e]),s=G.useMemo(()=>{if(i&&n)return()=>n(t).matches;if(r!==null){const{matches:p}=r(t);return()=>p}return a},[a,t,r,i,n]),[c,l]=G.useMemo(()=>{if(n===null)return[a,()=>()=>{}];const p=n(t);return[()=>p.matches,m=>(p.addListener(m),()=>{p.removeListener(m)})]},[a,n,t]);return FQ(l,c,s)}function ev(t,e={}){const n=wN(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:a=r?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:c=!1}=OQ({name:"MuiUseMediaQuery",props:e,theme:n});let l=typeof t=="function"?t(n):t;return l=l.replace(/^@media( ?)/m,""),(FQ!==void 0?xue:Mue)(l,i,a,s,c)}function wue(t,e=0,n=1){return xQ(t,e,n)}function Aue(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let n=t.match(e);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function zQ(t){if(t.type)return t;if(t.charAt(0)==="#")return zQ(Aue(t));const e=t.indexOf("("),n=t.substring(0,e);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(cl(9,t));let r=t.substring(e+1,t.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(cl(10,i))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:i}}function Cue(t){const{type:e,colorSpace:n}=t;let{values:r}=t;return e.indexOf("rgb")!==-1?r=r.map((i,a)=>a<3?parseInt(i,10):i):e.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),e.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${e}(${r})`}function s3(t,e){return t=zQ(t),e=wue(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,Cue(t)}function mS(...t){return t.reduce((e,n)=>n==null?e:function(...i){e.apply(this,i),n.apply(this,i)},()=>{})}function tv(t,e=166){let n;function r(...i){const a=()=>{t.apply(this,i)};clearTimeout(n),n=setTimeout(a,e)}return r.clear=()=>{clearTimeout(n)},r}function Eue(t,e){return()=>null}function O3(t,e){var n,r;return G.isValidElement(t)&&e.indexOf((n=t.type.muiName)!=null?n:(r=t.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function O0(t){return t&&t.ownerDocument||document}function Da(t){return O0(t).defaultView||window}function Sue(t,e){return()=>null}function qy(t,e){typeof t=="function"?t(e):t&&(t.current=e)}let k_=0;function Tue(t){const[e,n]=G.useState(t),r=t||e;return G.useEffect(()=>{e==null&&(k_+=1,n(`mui-${k_}`))},[e]),r}const __=yy.useId;function nv(t){if(__!==void 0){const e=__();return t??e}return Tue(t)}function Iue(t,e,n,r,i){return null}function S4({controlled:t,default:e,name:n,state:r="value"}){const{current:i}=G.useRef(t!==void 0),[a,s]=G.useState(e),c=i?t:a,l=G.useCallback(d=>{i||s(d)},[]);return[c,l]}function Ks(t){const e=G.useRef(t);return Wi(()=>{e.current=t}),G.useRef((...n)=>(0,e.current)(...n)).current}function Rr(...t){return G.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(n=>{qy(n,e)})},t)}const O_={};function Due(t,e){const n=G.useRef(O_);return n.current===O_&&(n.current=t(e)),n}const Nue=[];function Lue(t){G.useEffect(t,Nue)}class Gp{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Gp}start(e,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},e)}}function Gf(){const t=Due(Gp.create).current;return Lue(t.disposeEffect),t}let rv=!0,yS=!1;const Bue=new Gp,jue={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function kue(t){const{type:e,tagName:n}=t;return!!(n==="INPUT"&&jue[e]&&!t.readOnly||n==="TEXTAREA"&&!t.readOnly||t.isContentEditable)}function _ue(t){t.metaKey||t.altKey||t.ctrlKey||(rv=!0)}function _x(){rv=!1}function Oue(){this.visibilityState==="hidden"&&yS&&(rv=!0)}function Fue(t){t.addEventListener("keydown",_ue,!0),t.addEventListener("mousedown",_x,!0),t.addEventListener("pointerdown",_x,!0),t.addEventListener("touchstart",_x,!0),t.addEventListener("visibilitychange",Oue,!0)}function zue(t){const{target:e}=t;try{return e.matches(":focus-visible")}catch{}return rv||kue(e)}function iv(){const t=G.useCallback(i=>{i!=null&&Fue(i.ownerDocument)},[]),e=G.useRef(!1);function n(){return e.current?(yS=!0,Bue.start(100,()=>{yS=!1}),e.current=!1,!0):!1}function r(i){return zue(i)?(e.current=!0,!0):!1}return{isFocusVisibleRef:e,onFocus:r,onBlur:n,ref:t}}function RQ(t){const e=t.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}const PQ=t=>{const e=G.useRef({});return G.useEffect(()=>{e.current=t}),e.current};function Rue(t){return G.Children.toArray(t).filter(e=>G.isValidElement(e))}function X2(t){return typeof t=="string"}function o3(t,e,n){return t===void 0||X2(t)?e:le({},e,{ownerState:le({},e.ownerState,n)})}function UQ(t,e=[]){if(t===void 0)return{};const n={};return Object.keys(t).filter(r=>r.match(/^on[A-Z]/)&&typeof t[r]=="function"&&!e.includes(r)).forEach(r=>{n[r]=t[r]}),n}function F_(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(n=>!(n.match(/^on[A-Z]/)&&typeof t[n]=="function")).forEach(n=>{e[n]=t[n]}),e}function Pue(t){const{getSlotProps:e,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=t;if(!e){const M=kt(n==null?void 0:n.className,a,i==null?void 0:i.className,r==null?void 0:r.className),C=le({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),T=le({},n,i,r);return M.length>0&&(T.className=M),Object.keys(C).length>0&&(T.style=C),{props:T,internalRef:void 0}}const s=UQ(le({},i,r)),c=F_(r),l=F_(i),d=e(s),p=kt(d==null?void 0:d.className,n==null?void 0:n.className,a,i==null?void 0:i.className,r==null?void 0:r.className),m=le({},d==null?void 0:d.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),g=le({},d,n,l,c);return p.length>0&&(g.className=p),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:d.ref}}function Uue(t,e,n){return typeof t=="function"?t(e,n):t}const Hue=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function ll(t){var e;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:a=!1}=t,s=Tt(t,Hue),c=a?{}:Uue(r,i),{props:l,internalRef:d}=Pue(le({},s,{externalSlotProps:c})),p=Rr(d,c==null?void 0:c.ref,(e=t.additionalProps)==null?void 0:e.ref);return o3(n,le({},l,{ref:p}),i)}function Ed(t){if(parseInt(G.version,10)>=19){var e;return(t==null||(e=t.props)==null?void 0:e.ref)||null}return(t==null?void 0:t.ref)||null}const HQ=G.createContext(null);function WQ(){return G.useContext(HQ)}const Wue=typeof Symbol=="function"&&Symbol.for,Yue=Wue?Symbol.for("mui.nested"):"__THEME_NESTED__";function Gue(t,e){return typeof e=="function"?e(t):le({},t,e)}function $ue(t){const{children:e,theme:n}=t,r=WQ(),i=G.useMemo(()=>{const a=r===null?n:Gue(r,n);return a!=null&&(a[Yue]=r!==null),a},[n,r]);return L.jsx(HQ.Provider,{value:i,children:e})}const Vue=["value"],YQ=G.createContext();function Que(t){let{value:e}=t,n=Tt(t,Vue);return L.jsx(YQ.Provider,le({value:e??!0},n))}const av=()=>{const t=G.useContext(YQ);return t??!1},z_={};function R_(t,e,n,r=!1){return G.useMemo(()=>{const i=t&&e[t]||e;if(typeof n=="function"){const a=n(i),s=t?le({},e,{[t]:a}):a;return r?()=>s:s}return t?le({},e,{[t]:n}):le({},e,n)},[t,e,n,r])}function que(t){const{children:e,theme:n,themeId:r}=t,i=wN(z_),a=WQ()||z_,s=R_(r,i,n),c=R_(r,a,n,!0),l=s.direction==="rtl";return L.jsx($ue,{theme:c,children:L.jsx(Uh.Provider,{value:s,children:L.jsx(Que,{value:l,children:L.jsx(tue,{value:s==null?void 0:s.components,children:e})})})})}const Zue=["component","direction","spacing","divider","children","className","useFlexGap"],Kue=Wp(),Xue=gue("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,e)=>e.root});function Jue(t){return vue({props:t,name:"MuiStack",defaultTheme:Kue})}function efe(t,e){const n=G.Children.toArray(t).filter(Boolean);return n.reduce((r,i,a)=>(r.push(i),a<n.length-1&&r.push(G.cloneElement(e,{key:`separator-${a}`})),r),[])}const tfe=t=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[t],nfe=({ownerState:t,theme:e})=>{let n=le({display:"flex",flexDirection:"column"},Po({theme:e},Nx({values:t.direction,breakpoints:e.breakpoints.values}),r=>({flexDirection:r})));if(t.spacing){const r=fN(e),i=Object.keys(e.breakpoints.values).reduce((l,d)=>((typeof t.spacing=="object"&&t.spacing[d]!=null||typeof t.direction=="object"&&t.direction[d]!=null)&&(l[d]=!0),l),{}),a=Nx({values:t.direction,base:i}),s=Nx({values:t.spacing,base:i});typeof a=="object"&&Object.keys(a).forEach((l,d,p)=>{if(!a[l]){const g=d>0?a[p[d-1]]:"column";a[l]=g}}),n=oa(n,Po({theme:e},s,(l,d)=>t.useFlexGap?{gap:Q6(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${tfe(d?a[d]:t.direction)}`]:Q6(r,l)}}))}return n=R1e(e.breakpoints,n),n};function rfe(t={}){const{createStyledComponent:e=Xue,useThemeProps:n=Jue,componentName:r="MuiStack"}=t,i=()=>cn({root:["root"]},l=>on(r,l),{}),a=e(nfe);return G.forwardRef(function(l,d){const p=n(l),m=X7(p),{component:g="div",direction:M="column",spacing:C=0,divider:T,children:D,className:S,useFlexGap:I=!1}=m,N=Tt(m,Zue),B={direction:M,spacing:C,useFlexGap:I},k=i();return L.jsx(a,le({as:g,ownerState:B,ref:d,className:kt(k.root,S)},N,{children:T?efe(D,T):D}))})}function ife(t){return L.jsx(sue,le({},t,{defaultTheme:MN,themeId:Z2}))}const afe=(t,e)=>le({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},e&&!t.vars&&{colorScheme:t.palette.mode}),sfe=t=>le({color:(t.vars||t).palette.text.primary},t.typography.body1,{backgroundColor:(t.vars||t).palette.background.default,"@media print":{backgroundColor:(t.vars||t).palette.common.white}});function ofe(t){return on("MuiScopedCssBaseline",t)}sn("MuiScopedCssBaseline",["root"]);const cfe=["className","component","enableColorScheme"],lfe=t=>{const{classes:e}=t;return cn({root:["root"]},ofe,e)},ufe=bt("div",{name:"MuiScopedCssBaseline",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t,ownerState:e})=>{const n={};return e.enableColorScheme&&t.colorSchemes&&Object.entries(t.colorSchemes).forEach(([r,i])=>{var a;n[`&${t.getColorSchemeSelector(r).replace(/\s*&/,"")}`]={colorScheme:(a=i.palette)==null?void 0:a.mode}}),le({},afe(t,e.enableColorScheme),sfe(t),{"& *, & *::before, & *::after":{boxSizing:"inherit"},"& strong, & b":{fontWeight:t.typography.fontWeightBold}},n)}),ffe=G.forwardRef(function(e,n){const r=ln({props:e,name:"MuiScopedCssBaseline"}),{className:i,component:a="div"}=r,s=Tt(r,cfe),c=le({},r,{component:a}),l=lfe(c);return L.jsx(ufe,le({as:a,className:kt(l.root,i),ref:n,ownerState:c},s))});function dfe(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function hfe(t){return parseFloat(t)}function _r(){const t=J7(MN);return t[Z2]||t}const pfe=["theme"];function bfe(t){let{theme:e}=t,n=Tt(t,pfe);const r=e[Z2];return L.jsx(que,le({},n,{themeId:r?Z2:void 0,theme:r||e}))}const P_=t=>{let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,(e/100).toFixed(2)};function mi(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var mfe=typeof Symbol=="function"&&Symbol.observable||"@@observable",U_=mfe,Ox=()=>Math.random().toString(36).substring(7).split("").join("."),yfe={INIT:`@@redux/INIT${Ox()}`,REPLACE:`@@redux/REPLACE${Ox()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Ox()}`},Zy=yfe;function AN(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function GQ(t,e,n){if(typeof t!="function")throw new Error(mi(2));if(typeof e=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(mi(0));if(typeof e=="function"&&typeof n>"u"&&(n=e,e=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(mi(1));return n(GQ)(t,e)}let r=t,i=e,a=new Map,s=a,c=0,l=!1;function d(){s===a&&(s=new Map,a.forEach((D,S)=>{s.set(S,D)}))}function p(){if(l)throw new Error(mi(3));return i}function m(D){if(typeof D!="function")throw new Error(mi(4));if(l)throw new Error(mi(5));let S=!0;d();const I=c++;return s.set(I,D),function(){if(S){if(l)throw new Error(mi(6));S=!1,d(),s.delete(I),a=null}}}function g(D){if(!AN(D))throw new Error(mi(7));if(typeof D.type>"u")throw new Error(mi(8));if(typeof D.type!="string")throw new Error(mi(17));if(l)throw new Error(mi(9));try{l=!0,i=r(i,D)}finally{l=!1}return(a=s).forEach(I=>{I()}),D}function M(D){if(typeof D!="function")throw new Error(mi(10));r=D,g({type:Zy.REPLACE})}function C(){const D=m;return{subscribe(S){if(typeof S!="object"||S===null)throw new Error(mi(11));function I(){const B=S;B.next&&B.next(p())}return I(),{unsubscribe:D(I)}},[U_](){return this}}}return g({type:Zy.INIT}),{dispatch:g,subscribe:m,getState:p,replaceReducer:M,[U_]:C}}function gfe(t){Object.keys(t).forEach(e=>{const n=t[e];if(typeof n(void 0,{type:Zy.INIT})>"u")throw new Error(mi(12));if(typeof n(void 0,{type:Zy.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(mi(13))})}function vfe(t){const e=Object.keys(t),n={};for(let a=0;a<e.length;a++){const s=e[a];typeof t[s]=="function"&&(n[s]=t[s])}const r=Object.keys(n);let i;try{gfe(n)}catch(a){i=a}return function(s={},c){if(i)throw i;let l=!1;const d={};for(let p=0;p<r.length;p++){const m=r[p],g=n[m],M=s[m],C=g(M,c);if(typeof C>"u")throw c&&c.type,new Error(mi(14));d[m]=C,l=l||C!==M}return l=l||r.length!==Object.keys(s).length,l?d:s}}function Ky(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,n)=>(...r)=>e(n(...r)))}function Mfe(...t){return e=>(n,r)=>{const i=e(n,r);let a=()=>{throw new Error(mi(15))};const s={getState:i.getState,dispatch:(l,...d)=>a(l,...d)},c=t.map(l=>l(s));return a=Ky(...c)(i.dispatch),{...i,dispatch:a}}}function xfe(t){return AN(t)&&"type"in t&&typeof t.type=="string"}var $Q=Symbol.for("immer-nothing"),H_=Symbol.for("immer-draftable"),cs=Symbol.for("immer-state");function jo(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var J2=Object.getPrototypeOf;function q6(t){return!!t&&!!t[cs]}function ul(t){var e;return t?VQ(t)||Array.isArray(t)||!!t[H_]||!!((e=t.constructor)!=null&&e[H_])||ov(t)||cv(t):!1}var wfe=Object.prototype.constructor.toString();function VQ(t){if(!t||typeof t!="object")return!1;const e=J2(t);if(e===null)return!0;const n=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===wfe}function Xy(t,e){sv(t)===0?Reflect.ownKeys(t).forEach(n=>{e(n,t[n],t)}):t.forEach((n,r)=>e(r,n,t))}function sv(t){const e=t[cs];return e?e.type_:Array.isArray(t)?1:ov(t)?2:cv(t)?3:0}function gS(t,e){return sv(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function QQ(t,e,n){const r=sv(t);r===2?t.set(e,n):r===3?t.add(n):t[e]=n}function Afe(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}function ov(t){return t instanceof Map}function cv(t){return t instanceof Set}function wf(t){return t.copy_||t.base_}function vS(t,e){if(ov(t))return new Map(t);if(cv(t))return new Set(t);if(Array.isArray(t))return Array.prototype.slice.call(t);const n=VQ(t);if(e===!0||e==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(t);delete r[cs];let i=Reflect.ownKeys(r);for(let a=0;a<i.length;a++){const s=i[a],c=r[s];c.writable===!1&&(c.writable=!0,c.configurable=!0),(c.get||c.set)&&(r[s]={configurable:!0,writable:!0,enumerable:c.enumerable,value:t[s]})}return Object.create(J2(t),r)}else{const r=J2(t);if(r!==null&&n)return{...t};const i=Object.create(r);return Object.assign(i,t)}}function CN(t,e=!1){return lv(t)||q6(t)||!ul(t)||(sv(t)>1&&(t.set=t.add=t.clear=t.delete=Cfe),Object.freeze(t),e&&Object.entries(t).forEach(([n,r])=>CN(r,!0))),t}function Cfe(){jo(2)}function lv(t){return Object.isFrozen(t)}var Efe={};function Z6(t){const e=Efe[t];return e||jo(0,t),e}var T4;function qQ(){return T4}function Sfe(t,e){return{drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function W_(t,e){e&&(Z6("Patches"),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function MS(t){xS(t),t.drafts_.forEach(Tfe),t.drafts_=null}function xS(t){t===T4&&(T4=t.parent_)}function Y_(t){return T4=Sfe(T4,t)}function Tfe(t){const e=t[cs];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function G_(t,e){e.unfinalizedDrafts_=e.drafts_.length;const n=e.drafts_[0];return t!==void 0&&t!==n?(n[cs].modified_&&(MS(e),jo(4)),ul(t)&&(t=Jy(e,t),e.parent_||eg(e,t)),e.patches_&&Z6("Patches").generateReplacementPatches_(n[cs].base_,t,e.patches_,e.inversePatches_)):t=Jy(e,n,[]),MS(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==$Q?t:void 0}function Jy(t,e,n){if(lv(e))return e;const r=e[cs];if(!r)return Xy(e,(i,a)=>$_(t,r,e,i,a,n)),e;if(r.scope_!==t)return e;if(!r.modified_)return eg(t,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let a=i,s=!1;r.type_===3&&(a=new Set(i),i.clear(),s=!0),Xy(a,(c,l)=>$_(t,r,i,c,l,n,s)),eg(t,i,!1),n&&t.patches_&&Z6("Patches").generatePatches_(r,n,t.patches_,t.inversePatches_)}return r.copy_}function $_(t,e,n,r,i,a,s){if(q6(i)){const c=a&&e&&e.type_!==3&&!gS(e.assigned_,r)?a.concat(r):void 0,l=Jy(t,i,c);if(QQ(n,r,l),q6(l))t.canAutoFreeze_=!1;else return}else s&&n.add(i);if(ul(i)&&!lv(i)){if(!t.immer_.autoFreeze_&&t.unfinalizedDrafts_<1)return;Jy(t,i),(!e||!e.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&eg(t,i)}}function eg(t,e,n=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&CN(e,n)}function Ife(t,e){const n=Array.isArray(t),r={type_:n?1:0,scope_:e?e.scope_:qQ(),modified_:!1,finalized_:!1,assigned_:{},parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,a=EN;n&&(i=[r],a=I4);const{revoke:s,proxy:c}=Proxy.revocable(i,a);return r.draft_=c,r.revoke_=s,c}var EN={get(t,e){if(e===cs)return t;const n=wf(t);if(!gS(n,e))return Dfe(t,n,e);const r=n[e];return t.finalized_||!ul(r)?r:r===Fx(t.base_,e)?(zx(t),t.copy_[e]=AS(r,t)):r},has(t,e){return e in wf(t)},ownKeys(t){return Reflect.ownKeys(wf(t))},set(t,e,n){const r=ZQ(wf(t),e);if(r!=null&&r.set)return r.set.call(t.draft_,n),!0;if(!t.modified_){const i=Fx(wf(t),e),a=i==null?void 0:i[cs];if(a&&a.base_===n)return t.copy_[e]=n,t.assigned_[e]=!1,!0;if(Afe(n,i)&&(n!==void 0||gS(t.base_,e)))return!0;zx(t),wS(t)}return t.copy_[e]===n&&(n!==void 0||e in t.copy_)||Number.isNaN(n)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=n,t.assigned_[e]=!0),!0},deleteProperty(t,e){return Fx(t.base_,e)!==void 0||e in t.base_?(t.assigned_[e]=!1,zx(t),wS(t)):delete t.assigned_[e],t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){const n=wf(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r&&{writable:!0,configurable:t.type_!==1||e!=="length",enumerable:r.enumerable,value:n[e]}},defineProperty(){jo(11)},getPrototypeOf(t){return J2(t.base_)},setPrototypeOf(){jo(12)}},I4={};Xy(EN,(t,e)=>{I4[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}});I4.deleteProperty=function(t,e){return I4.set.call(this,t,e,void 0)};I4.set=function(t,e,n){return EN.set.call(this,t[0],e,n,t[0])};function Fx(t,e){const n=t[cs];return(n?wf(n):t)[e]}function Dfe(t,e,n){var i;const r=ZQ(e,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(t.draft_):void 0}function ZQ(t,e){if(!(e in t))return;let n=J2(t);for(;n;){const r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=J2(n)}}function wS(t){t.modified_||(t.modified_=!0,t.parent_&&wS(t.parent_))}function zx(t){t.copy_||(t.copy_=vS(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Nfe=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,n,r)=>{if(typeof e=="function"&&typeof n!="function"){const a=n;n=e;const s=this;return function(l=a,...d){return s.produce(l,p=>n.call(this,p,...d))}}typeof n!="function"&&jo(6),r!==void 0&&typeof r!="function"&&jo(7);let i;if(ul(e)){const a=Y_(this),s=AS(e,void 0);let c=!0;try{i=n(s),c=!1}finally{c?MS(a):xS(a)}return W_(a,r),G_(i,a)}else if(!e||typeof e!="object"){if(i=n(e),i===void 0&&(i=e),i===$Q&&(i=void 0),this.autoFreeze_&&CN(i,!0),r){const a=[],s=[];Z6("Patches").generateReplacementPatches_(e,i,a,s),r(a,s)}return i}else jo(1,e)},this.produceWithPatches=(e,n)=>{if(typeof e=="function")return(s,...c)=>this.produceWithPatches(s,l=>e(l,...c));let r,i;return[this.produce(e,n,(s,c)=>{r=s,i=c}),r,i]},typeof(t==null?void 0:t.autoFreeze)=="boolean"&&this.setAutoFreeze(t.autoFreeze),typeof(t==null?void 0:t.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(t.useStrictShallowCopy)}createDraft(t){ul(t)||jo(8),q6(t)&&(t=Lfe(t));const e=Y_(this),n=AS(t,void 0);return n[cs].isManual_=!0,xS(e),n}finishDraft(t,e){const n=t&&t[cs];(!n||!n.isManual_)&&jo(9);const{scope_:r}=n;return W_(r,e),G_(void 0,r)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}applyPatches(t,e){let n;for(n=e.length-1;n>=0;n--){const i=e[n];if(i.path.length===0&&i.op==="replace"){t=i.value;break}}n>-1&&(e=e.slice(n+1));const r=Z6("Patches").applyPatches_;return q6(t)?r(t,e):this.produce(t,i=>r(i,e))}};function AS(t,e){const n=ov(t)?Z6("MapSet").proxyMap_(t,e):cv(t)?Z6("MapSet").proxySet_(t,e):Ife(t,e);return(e?e.scope_:qQ()).drafts_.push(n),n}function Lfe(t){return q6(t)||jo(10,t),KQ(t)}function KQ(t){if(!ul(t)||lv(t))return t;const e=t[cs];let n;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,n=vS(t,e.scope_.immer_.useStrictShallowCopy_)}else n=vS(t,!0);return Xy(n,(r,i)=>{QQ(n,r,KQ(i))}),e&&(e.finalized_=!1),n}var ls=new Nfe,XQ=ls.produce;ls.produceWithPatches.bind(ls);ls.setAutoFreeze.bind(ls);ls.setUseStrictShallowCopy.bind(ls);ls.applyPatches.bind(ls);ls.createDraft.bind(ls);ls.finishDraft.bind(ls);function JQ(t){return({dispatch:n,getState:r})=>i=>a=>typeof a=="function"?a(n,r,t):i(a)}var Bfe=JQ(),jfe=JQ,kfe=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ky:Ky.apply(null,arguments)};function V_(t,e){function n(...r){if(e){let i=e(...r);if(!i)throw new Error(Xc(0));return{type:t,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:t,payload:r[0]}}return n.toString=()=>`${t}`,n.type=t,n.match=r=>xfe(r)&&r.type===t,n}var eq=class c3 extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,c3.prototype)}static get[Symbol.species](){return c3}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new c3(...e[0].concat(this)):new c3(...e.concat(this))}};function Q_(t){return ul(t)?XQ(t,()=>{}):t}function q_(t,e,n){return t.has(e)?t.get(e):t.set(e,n(e)).get(e)}function _fe(t){return typeof t=="boolean"}var Ofe=()=>function(e){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=e??{};let s=new eq;return n&&(_fe(n)?s.push(Bfe):s.push(jfe(n.extraArgument))),s},Ffe="RTK_autoBatch",Z_=t=>e=>{setTimeout(e,t)},zfe=(t={type:"raf"})=>e=>(...n)=>{const r=e(...n);let i=!0,a=!1,s=!1;const c=new Set,l=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Z_(10):t.type==="callback"?t.queueNotification:Z_(t.timeout),d=()=>{s=!1,a&&(a=!1,c.forEach(p=>p()))};return Object.assign({},r,{subscribe(p){const m=()=>i&&p(),g=r.subscribe(m);return c.add(p),()=>{g(),c.delete(p)}},dispatch(p){var m;try{return i=!((m=p==null?void 0:p.meta)!=null&&m[Ffe]),a=!i,a&&(s||(s=!0,l(d))),r.dispatch(p)}finally{i=!0}}})},Rfe=t=>function(n){const{autoBatch:r=!0}=n??{};let i=new eq(t);return r&&i.push(zfe(typeof r=="object"?r:void 0)),i};function Pfe(t){const e=Ofe(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:a=void 0,enhancers:s=void 0}=t||{};let c;if(typeof n=="function")c=n;else if(AN(n))c=vfe(n);else throw new Error(Xc(1));let l;typeof r=="function"?l=r(e):l=e();let d=Ky;i&&(d=kfe({trace:!1,...typeof i=="object"&&i}));const p=Mfe(...l),m=Rfe(p);let g=typeof s=="function"?s(m):m();const M=d(...g);return GQ(c,a,M)}function tq(t){const e={},n=[];let r;const i={addCase(a,s){const c=typeof a=="string"?a:a.type;if(!c)throw new Error(Xc(28));if(c in e)throw new Error(Xc(29));return e[c]=s,i},addMatcher(a,s){return n.push({matcher:a,reducer:s}),i},addDefaultCase(a){return r=a,i}};return t(i),[e,n,r]}function Ufe(t){return typeof t=="function"}function Hfe(t,e){let[n,r,i]=tq(e),a;if(Ufe(t))a=()=>Q_(t());else{const c=Q_(t);a=()=>c}function s(c=a(),l){let d=[n[l.type],...r.filter(({matcher:p})=>p(l)).map(({reducer:p})=>p)];return d.filter(p=>!!p).length===0&&(d=[i]),d.reduce((p,m)=>{if(m)if(q6(p)){const M=m(p,l);return M===void 0?p:M}else{if(ul(p))return XQ(p,g=>m(g,l));{const g=m(p,l);if(g===void 0){if(p===null)return p;throw Error("A case reducer on a non-draftable value must not return undefined")}return g}}return p},c)}return s.getInitialState=a,s}var Wfe=Symbol.for("rtk-slice-createasyncthunk");function Yfe(t,e){return`${t}/${e}`}function Gfe({creators:t}={}){var n;const e=(n=t==null?void 0:t.asyncThunk)==null?void 0:n[Wfe];return function(i){const{name:a,reducerPath:s=a}=i;if(!a)throw new Error(Xc(11));const c=(typeof i.reducers=="function"?i.reducers(Vfe()):i.reducers)||{},l=Object.keys(c),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(N,B){const k=typeof N=="string"?N:N.type;if(!k)throw new Error(Xc(12));if(k in d.sliceCaseReducersByType)throw new Error(Xc(13));return d.sliceCaseReducersByType[k]=B,p},addMatcher(N,B){return d.sliceMatchers.push({matcher:N,reducer:B}),p},exposeAction(N,B){return d.actionCreators[N]=B,p},exposeCaseReducer(N,B){return d.sliceCaseReducersByName[N]=B,p}};l.forEach(N=>{const B=c[N],k={reducerName:N,type:Yfe(a,N),createNotation:typeof i.reducers=="function"};qfe(B)?Kfe(k,B,p,e):Qfe(k,B,p)});function m(){const[N={},B=[],k=void 0]=typeof i.extraReducers=="function"?tq(i.extraReducers):[i.extraReducers],O={...N,...d.sliceCaseReducersByType};return Hfe(i.initialState,z=>{for(let _ in O)z.addCase(_,O[_]);for(let _ of d.sliceMatchers)z.addMatcher(_.matcher,_.reducer);for(let _ of B)z.addMatcher(_.matcher,_.reducer);k&&z.addDefaultCase(k)})}const g=N=>N,M=new Map;let C;function T(N,B){return C||(C=m()),C(N,B)}function D(){return C||(C=m()),C.getInitialState()}function S(N,B=!1){function k(z){let _=z[N];return typeof _>"u"&&B&&(_=D()),_}function O(z=g){const _=q_(M,B,()=>new WeakMap);return q_(_,z,()=>{const F={};for(const[R,w]of Object.entries(i.selectors??{}))F[R]=$fe(w,z,D,B);return F})}return{reducerPath:N,getSelectors:O,get selectors(){return O(k)},selectSlice:k}}const I={name:a,reducer:T,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:D,...S(s),injectInto(N,{reducerPath:B,...k}={}){const O=B??s;return N.inject({reducerPath:O,reducer:T},k),{...I,...S(O,!0)}}};return I}}function $fe(t,e,n,r){function i(a,...s){let c=e(a);return typeof c>"u"&&r&&(c=n()),t(c,...s)}return i.unwrapped=t,i}var Gh=Gfe();function Vfe(){function t(e,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...n}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...n){return e(...n)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:n}},asyncThunk:t}}function Qfe({type:t,reducerName:e,createNotation:n},r,i){let a,s;if("reducer"in r){if(n&&!Zfe(r))throw new Error(Xc(17));a=r.reducer,s=r.prepare}else a=r;i.addCase(t,a).exposeCaseReducer(e,a).exposeAction(e,s?V_(t,s):V_(t))}function qfe(t){return t._reducerDefinitionType==="asyncThunk"}function Zfe(t){return t._reducerDefinitionType==="reducerWithPrepare"}function Kfe({type:t,reducerName:e},n,r,i){if(!i)throw new Error(Xc(18));const{payloadCreator:a,fulfilled:s,pending:c,rejected:l,settled:d,options:p}=n,m=i(t,a,p);r.exposeAction(e,m),s&&r.addCase(m.fulfilled,s),c&&r.addCase(m.pending,c),l&&r.addCase(m.rejected,l),d&&r.addMatcher(m.settled,d),r.exposeCaseReducer(e,{fulfilled:s||e9,pending:c||e9,rejected:l||e9,settled:d||e9})}function e9(){}function Xc(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}const K_={txData:void 0,sendTx:"",redeemTx:"",transferComplete:!1,route:void 0,isResumeTx:!1,timestamp:0},nq=Gh({name:"redeem",initialState:K_,reducers:{setTxDetails:(t,{payload:e})=>{t.txData=e},setSendTx:(t,{payload:e})=>{t.sendTx=e},setRoute:(t,{payload:e})=>{t.route=e},clearRedeem:t=>{Object.keys(t).forEach(e=>{t[e]=K_[e]})},setIsResumeTx:(t,{payload:e})=>{t.isResumeTx=e},setTimestamp:(t,{payload:e})=>{t.timestamp=e}}}),{setTxDetails:SN,setSendTx:Xfe,clearRedeem:CS,setRoute:TN,setIsResumeTx:rq,setTimestamp:iq}=nq.actions,Jfe=nq.reducer;var Zt=(t=>(t.ETH="Ethereum",t.TERRA="Terra",t.XPLA="XPLA",t.SOLANA="Solana",t.ALGORAND="Algorand",t.NEAR="Near",t.APTOS="Aptos",t.SUI="Sui",t.OTHER="OTHER",t))(Zt||{});const e6e={Solana:{key:"Solana",id:1,context:Zt.SOLANA},Bsc:{key:"Bsc",id:4,context:Zt.ETH},Avalanche:{key:"Avalanche",id:6,context:Zt.ETH},Fantom:{key:"Fantom",id:10,context:Zt.ETH},Celo:{key:"Celo",id:14,context:Zt.ETH},Moonbeam:{key:"Moonbeam",id:16,context:Zt.ETH},Sui:{key:"Sui",id:21,context:Zt.SUI},Aptos:{key:"Aptos",id:22,context:Zt.APTOS},Klaytn:{key:"Klaytn",id:13,context:Zt.ETH},Scroll:{key:"Scroll",id:34,context:Zt.ETH},Blast:{key:"Blast",id:36,context:Zt.ETH},Xlayer:{key:"Xlayer",id:37,context:Zt.ETH},Sepolia:{key:"Sepolia",id:10002,context:Zt.ETH},ArbitrumSepolia:{key:"ArbitrumSepolia",id:10003,context:Zt.ETH},BaseSepolia:{key:"BaseSepolia",id:10004,context:Zt.ETH},OptimismSepolia:{key:"OptimismSepolia",id:10005,context:Zt.ETH},Mantle:{key:"Mantle",id:35,context:Zt.ETH},Unichain:{key:"Unichain",id:44,context:Zt.ETH},Worldchain:{key:"Worldchain",id:45,context:Zt.ETH},Mezo:{key:"Mezo",id:50,context:Zt.ETH}},t6e={env:"Testnet",rpcs:{Bsc:"https://data-seed-prebsc-1-s3.binance.org:8545",Avalanche:"https://api.avax-test.network/ext/bc/C/rpc",Fantom:"https://rpc.testnet.fantom.network",Celo:"https://alfajores-forno.celo-testnet.org",Solana:"https://api.devnet.solana.com",Moonbeam:"https://rpc.api.moonbase.moonbeam.network",Sui:"https://fullnode.testnet.sui.io",Aptos:"https://fullnode.testnet.aptoslabs.com/v1",Sei:"https://rpc.atlantic-2.seinetwork.io",Wormchain:"",Osmosis:"https://rpc.osmotest5.osmosis.zone",Cosmoshub:"https://rpc.sentry-02.theta-testnet.polypore.xyz",Evmos:"https://evmos-testnet-rpc.polkachu.com",Kujira:"https://kujira-testnet-rpc.polkachu.com",Injective:"https://injective-testnet-rpc.polkachu.com",Klaytn:"https://public-en-kairos.node.kaia.io",Sepolia:"https://ethereum-sepolia-rpc.publicnode.com",ArbitrumSepolia:"https://sepolia-rollup.arbitrum.io/rpc",BaseSepolia:"https://base-sepolia-rpc.publicnode.com",OptimismSepolia:"https://sepolia.optimism.io",Scroll:"https://scroll-sepolia-rpc.publicnode.com",Blast:"https://sepolia.blast.io",Xlayer:"https://testrpc.xlayer.tech",Mantle:"https://rpc.sepolia.mantle.xyz",Worldchain:"https://worldchain-sepolia.g.alchemy.com/public",Unichain:"https://sepolia.unichain.org",Mezo:"https://rpc.test.mezo.org"},chains:e6e},n6e={Ethereum:{key:"Ethereum",id:2,context:Zt.ETH},Solana:{key:"Solana",id:1,context:Zt.SOLANA},Polygon:{key:"Polygon",id:5,context:Zt.ETH},Bsc:{key:"Bsc",id:4,context:Zt.ETH},Avalanche:{key:"Avalanche",id:6,context:Zt.ETH},Fantom:{key:"Fantom",id:10,context:Zt.ETH},Celo:{key:"Celo",id:14,context:Zt.ETH},Moonbeam:{key:"Moonbeam",id:16,context:Zt.ETH},Sui:{key:"Sui",id:21,context:Zt.SUI},Aptos:{key:"Aptos",id:22,context:Zt.APTOS},Arbitrum:{key:"Arbitrum",id:23,context:Zt.ETH},Optimism:{key:"Optimism",id:24,context:Zt.ETH},Base:{key:"Base",id:30,context:Zt.ETH},Klaytn:{key:"Klaytn",id:13,context:Zt.ETH},Scroll:{key:"Scroll",id:34,context:Zt.ETH},Blast:{key:"Blast",id:36,context:Zt.ETH},Mantle:{key:"Mantle",id:35,context:Zt.ETH},Xlayer:{key:"Xlayer",id:37,context:Zt.ETH},Berachain:{key:"Berachain",id:39,context:Zt.ETH},Unichain:{key:"Unichain",id:44,context:Zt.ETH},Worldchain:{key:"Worldchain",id:45,context:Zt.ETH}},r6e={env:"Mainnet",rpcs:{Ethereum:"https://ethereum-rpc.publicnode.com",Solana:"https://solana-rpc.publicnode.com",Polygon:"https://polygon-bor-rpc.publicnode.com",Bsc:"https://bscrpc.com",Avalanche:"https://avalanche-c-chain-rpc.publicnode.com",Fantom:"https://rpcapi.fantom.network",Celo:"https://celo-rpc.publicnode.com",Moonbeam:"https://moonbeam-rpc.publicnode.com",Sui:"https://rpc.mainnet.sui.io",Aptos:"https://fullnode.mainnet.aptoslabs.com/v1",Arbitrum:"https://arbitrum-one-rpc.publicnode.com",Optimism:"https://optimism-rpc.publicnode.com",Base:"https://base.publicnode.com",Sei:"",Wormchain:"https://wormchain-rpc.quickapi.com",Osmosis:"https://osmosis-rpc.polkachu.com",Cosmoshub:"https://cosmos-rpc.polkachu.com",Evmos:"https://evmos-rpc.polkachu.com",Kujira:"https://kujira-rpc.polkachu.com",Injective:"https://injective-rpc.publicnode.com/",Klaytn:"https://public-en.node.kaia.io",Scroll:"https://scroll-rpc.publicnode.com",Blast:"https://blast-rpc.publicnode.com",Xlayer:"https://rpc.xlayer.tech",Mantle:"https://rpc.mantle.xyz",Worldchain:"https://worldchain-mainnet.g.alchemy.com/public",Unichain:"https://mainnet.unichain.org",Berachain:"https://rpc.berachain.com"},chains:n6e},i6e={Ethereum:{key:"Ethereum",id:2,context:Zt.ETH}},a6e={env:"Devnet",rpcs:{Ethereum:"http://localhost:8545",Wormchain:"http://localhost:26659",Osmosis:"http://localhost:33043",Terra2:"http://localhost:26658"},chains:i6e},n4=class n4 extends Error{constructor(){super(n4.MESSAGE)}};se(n4,"MESSAGE","Insufficient funds for gas"),se(n4,"MESSAGE_REGEX",/insufficient funds|Insufficient funds for gas/gm);let ES=n4;const uv={MAINNET:r6e,TESTNET:t6e,DEVNET:a6e},{chains:M0}=uv.MAINNET,s6e={Ethereum:{...M0.Ethereum,displayName:"Ethereum",sdkName:"Ethereum",explorerUrl:"https://etherscan.io/",explorerName:"Etherscan",chainId:1,icon:"Ethereum",symbol:"ETH",wrappedGasToken:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"},Bsc:{...M0.Bsc,displayName:"BSC",sdkName:"Bsc",explorerUrl:"https://bscscan.com/",explorerName:"BscScan",chainId:56,icon:"Bsc",symbol:"BSC",wrappedGasToken:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"},Polygon:{...M0.Polygon,displayName:"Polygon",sdkName:"Polygon",explorerUrl:"https://polygonscan.com/",explorerName:"PolygonScan",chainId:137,icon:"Polygon",symbol:"POL",wrappedGasToken:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270"},Avalanche:{...M0.Avalanche,displayName:"Avalanche",sdkName:"Avalanche",explorerUrl:"https://avascan.info/blockchain/c/",explorerName:"Avascan",chainId:43114,icon:"Avalanche",symbol:"AVAX",wrappedGasToken:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7"},Fantom:{...M0.Fantom,displayName:"Fantom",sdkName:"Fantom",explorerUrl:"https://explorer.fantom.network/",explorerName:"Fantom Explorer",chainId:250,icon:"Fantom",symbol:"FTM",wrappedGasToken:"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83"},Celo:{...M0.Celo,displayName:"Celo",sdkName:"Celo",explorerUrl:"https://explorer.celo.org/mainnet/",explorerName:"Celo Explorer",chainId:42220,icon:"Celo",symbol:"CELO"},Moonbeam:{...M0.Moonbeam,displayName:"Moonbeam",sdkName:"Moonbeam",explorerUrl:"https://moonscan.io/",explorerName:"Moonscan",chainId:1284,icon:"Moonbeam",symbol:"GLMR",wrappedGasToken:"0xAcc15dC74880C9944775448304B263D191c6077F"},Solana:{...M0.Solana,displayName:"Solana",sdkName:"Solana",explorerUrl:"https://explorer.solana.com/",explorerName:"Solana Explorer",chainId:0,icon:"Solana",symbol:"SOL",wrappedGasToken:"So11111111111111111111111111111111111111112"},Sui:{...M0.Sui,displayName:"Sui",sdkName:"Sui",explorerUrl:"https://suiscan.xyz/",explorerName:"Suiscan",chainId:0,icon:"Sui",symbol:"SUI"},Aptos:{...M0.Aptos,displayName:"Aptos",sdkName:"Aptos",explorerUrl:"https://explorer.aptoslabs.com/",explorerName:"Aptos Explorer",chainId:0,icon:"Aptos",symbol:"APT"},Base:{...M0.Base,displayName:"Base",sdkName:"Base",explorerUrl:"https://basescan.org/",explorerName:"BaseScan",chainId:8453,icon:"Base",symbol:"BASE",wrappedGasToken:"0x4200000000000000000000000000000000000006"},Arbitrum:{...M0.Arbitrum,displayName:"Arbitrum",sdkName:"Arbitrum",explorerUrl:"https://arbiscan.io/",explorerName:"Arbitrum Explorer",chainId:42161,icon:"Arbitrum",symbol:"ARB",wrappedGasToken:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1"},Optimism:{...M0.Optimism,displayName:"Optimism",sdkName:"Optimism",explorerUrl:"https://optimistic.etherscan.io/",explorerName:"Optimistic Etherscan",chainId:10,icon:"Optimism",symbol:"OP",wrappedGasToken:"0x4200000000000000000000000000000000000006"},Klaytn:{...M0.Klaytn,displayName:"Kaia",sdkName:"Klaytn",explorerUrl:"https://kaiascope.com/",explorerName:"Kaia Scope",chainId:8217,icon:"Klaytn",symbol:"KLAY",wrappedGasToken:"0xe4f05A66Ec68B54A58B17c22107b02e0232cC817"},Scroll:{...M0.Scroll,displayName:"Scroll",sdkName:"Scroll",explorerUrl:"https://scrollscan.com/",explorerName:"Scrollscan",chainId:534352,icon:"Scroll",symbol:"SCR",wrappedGasToken:"0x5300000000000000000000000000000000000004"},Blast:{...M0.Blast,displayName:"Blast",sdkName:"Blast",explorerUrl:"https://blastscan.io/",explorerName:"Blastscan",chainId:81457,icon:"Blast",symbol:"BLAST",wrappedGasToken:"0x9D020B1697035d9d54f115194c9e04a1e4Eb9aF7"},Xlayer:{...M0.Xlayer,displayName:"X Layer",sdkName:"Xlayer",explorerUrl:"https://www.okx.com/web3/explorer/xlayer/",explorerName:"OKX Explorer",chainId:196,icon:"Xlayer",symbol:"OKX",wrappedGasToken:"0xe538905cf8410324e03A5A23C1c177a474D59b2b"},Mantle:{...M0.Mantle,displayName:"Mantle",sdkName:"Mantle",explorerUrl:"https://explorer.mantle.xyz/",explorerName:"Mantle Explorer",chainId:5e3,icon:"Mantle",symbol:"MNT",wrappedGasToken:"0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8"},Worldchain:{...M0.Worldchain,displayName:"World Chain",sdkName:"Worldchain",explorerUrl:"https://worldscan.org/",explorerName:"World Scan",chainId:480,icon:"Worldchain",symbol:"WORLD"},Unichain:{...M0.Unichain,displayName:"Unichain",sdkName:"Unichain",explorerUrl:"https://uniscan.xyz/",explorerName:"Uniscan",chainId:130,icon:"Unichain",symbol:"UNI",wrappedGasToken:"0x4200000000000000000000000000000000000006"},Berachain:{...M0.Berachain,displayName:"Berachain",sdkName:"Berachain",explorerUrl:"https://berascan.com/",explorerName:"Berascan",chainId:80094,icon:"Berachain",symbol:"BERA",wrappedGasToken:"0x6969696969696969696969696969696969696969"}},bf=t=>{console.error(`Wormhole Connect: ${t}`)},wn=(t,e)=>e?{[t]:e}:{},o6e=(t,e)=>{if(!e)return t;for(const n in e)for(const r in e[n])t[n]||(t[n]={}),t[n][r]={...e[n][r],...t[n][r]};return t},c6e=(t,e,n)=>{if(t)return t.fromChain&&(e[t.fromChain]||(bf(`Invalid chain name "${t.fromChain}" specified for defaultInputs.fromChain`),delete t.fromChain)),t.toChain&&(e[t.toChain]||(bf(`Invalid chain name "${t.toChain}" specified for defaultInputs.toChain`),delete t.fromChain)),t.fromChain&&t.toChain&&t.fromChain===t.toChain&&bf("Source and destination chain cannot be the same, check the defaultInputs configuration"),t.fromChain&&t.toChain&&t.requiredChain&&(e[t.requiredChain]||bf(`Invalid network value "${t.requiredChain}" specified for defaultInputs.requiredChain`),t.toChain!==t.requiredChain&&t.fromChain!==t.requiredChain&&bf("Source chain or destination chain must equal the required network")),t.fromChain&&t.fromToken&&(n.findByAddressOrSymbol(t.fromChain,t.fromToken)||(bf(`Invalid token "${t.fromToken}" specified for defaultInputs.fromToken`),delete t.fromToken)),t.toChain&&t.toToken&&(n.findByAddressOrSymbol(t.toChain,t.toToken)||(bf(`Invalid token "${t.toToken}" specified for defaultInputs.toToken`),delete t.toToken)),t},l6e=t=>t[0].toUpperCase()+t.slice(1),u6e={},{REACT_APP_ETHEREUM_RPC:f6e,REACT_APP_SOLANA_RPC:d6e,REACT_APP_POLYGON_RPC:h6e,REACT_APP_BSC_RPC:p6e,REACT_APP_AVALANCHE_RPC:b6e,REACT_APP_FANTOM_RPC:m6e,REACT_APP_CELO_RPC:y6e,REACT_APP_MOONBEAM_RPC:g6e,REACT_APP_SUI_RPC:v6e,REACT_APP_APTOS_RPC:M6e,REACT_APP_BASE_RPC:x6e,REACT_APP_KLAYTN_RPC:w6e,REACT_APP_ARBITRUM_RPC:A6e,REACT_APP_OPTIMISM_RPC:C6e,REACT_APP_SCROLL_RPC:E6e,REACT_APP_BLAST_RPC:S6e,REACT_APP_XLAYER_RPC:T6e,REACT_APP_MANTLE_RPC:I6e,REACT_APP_WORLDCHAIN_RPC:D6e,REACT_APP_UNICHAIN_RPC:N6e,REACT_APP_BERACHAIN_RPC:L6e}=u6e,B6e={...wn("Ethereum",f6e),...wn("Solana",d6e),...wn("Polygon",h6e),...wn("Bsc",p6e),...wn("Avalanche",b6e),...wn("Fantom",m6e),...wn("Celo",y6e),...wn("Moonbeam",g6e),...wn("Sui",v6e),...wn("Aptos",M6e),...wn("Base",x6e),...wn("Arbitrum",A6e),...wn("Optimism",C6e),...wn("Klaytn",w6e),...wn("Scroll",E6e),...wn("Blast",S6e),...wn("Xlayer",T6e),...wn("Mantle",I6e),...wn("Worldchain",D6e),...wn("Unichain",N6e),...wn("Berachain",L6e)};var Ue=(t=>(t[t.AVAX=1]="AVAX",t[t.BNB=2]="BNB",t[t.BSC=3]="BSC",t[t.CELO=4]="CELO",t[t.ETH=5]="ETH",t[t.FANTOM=6]="FANTOM",t[t.POLYGON=7]="POLYGON",t[t.SOLANA=8]="SOLANA",t[t.USDC=9]="USDC",t[t.GLMR=10]="GLMR",t[t.DAI=11]="DAI",t[t.USDT=12]="USDT",t[t.BUSD=13]="BUSD",t[t.WBTC=14]="WBTC",t[t.SUI=15]="SUI",t[t.APT=16]="APT",t[t.SEI=17]="SEI",t[t.BASE=18]="BASE",t[t.OSMO=19]="OSMO",t[t.TBTC=20]="TBTC",t[t.WSTETH=21]="WSTETH",t[t.ARBITRUM=22]="ARBITRUM",t[t.OPTIMISM=23]="OPTIMISM",t[t.ATOM=24]="ATOM",t[t.EVMOS=25]="EVMOS",t[t.KUJI=26]="KUJI",t[t.PYTH=27]="PYTH",t[t.INJ=28]="INJ",t[t.KLAY=29]="KLAY",t[t.NTT=30]="NTT",t[t.SCROLL=31]="SCROLL",t[t.BLAST=32]="BLAST",t[t.XLAYER=33]="XLAYER",t[t.MANTLE=34]="MANTLE",t[t.WORLDCHAIN=35]="WORLDCHAIN",t[t.BERA=36]="BERA",t[t.BTC=37]="BTC",t))(Ue||{});const j6e=[{symbol:"ETH",decimals:18,icon:Ue.ETH,tokenId:{chain:"Ethereum",address:"native"}},{symbol:"WETH",decimals:18,icon:Ue.ETH,tokenId:{chain:"Ethereum",address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}},{symbol:"USDC",decimals:6,icon:Ue.USDC,tokenId:{chain:"Ethereum",address:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"}},{symbol:"WBTC",decimals:8,icon:Ue.WBTC,tokenId:{chain:"Ethereum",address:"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599"}},{symbol:"USDT",decimals:6,icon:Ue.USDT,tokenId:{chain:"Ethereum",address:"0xdAC17F958D2ee523a2206206994597C13D831ec7"}},{symbol:"DAI",decimals:18,icon:Ue.DAI,tokenId:{chain:"Ethereum",address:"0x6B175474E89094C44Da98b954EedeAC495271d0F"}},{symbol:"BUSD",decimals:18,icon:Ue.BUSD,tokenId:{chain:"Ethereum",address:"0x4Fabb145d64652a948d72533023f6E7A623C7C53"}},{symbol:"POL",decimals:18,icon:Ue.POLYGON,tokenId:{chain:"Polygon",address:"native"}},{symbol:"WPOL",decimals:18,icon:Ue.POLYGON,tokenId:{chain:"Polygon",address:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270"}},{symbol:"WETH",decimals:18,icon:Ue.ETH,tokenId:{chain:"Polygon",address:"0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619"}},{symbol:"USDC",decimals:6,icon:Ue.USDC,tokenId:{chain:"Polygon",address:"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"}},{symbol:"USDT",decimals:6,icon:Ue.USDT,tokenId:{chain:"Polygon",address:"0xc2132D05D31c914a87C6611C10748AEb04B58e8F"}},{symbol:"BNB",decimals:18,icon:Ue.BNB,tokenId:{chain:"Bsc",address:"native"}},{symbol:"WBNB",decimals:18,icon:Ue.BNB,tokenId:{chain:"Bsc",address:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"}},{symbol:"USDC",decimals:18,icon:Ue.USDC,tokenId:{chain:"Bsc",address:"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d"}},{symbol:"AVAX",decimals:18,icon:Ue.AVAX,tokenId:{chain:"Avalanche",address:"native"}},{symbol:"WAVAX",decimals:18,icon:Ue.AVAX,tokenId:{chain:"Avalanche",address:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7"}},{symbol:"USDC",decimals:6,icon:Ue.USDC,tokenId:{chain:"Avalanche",address:"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"}},{symbol:"USDT",decimals:6,icon:Ue.USDT,tokenId:{chain:"Avalanche",address:"0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7"}},{symbol:"WETH",decimals:18,icon:Ue.ETH,tokenId:{chain:"Avalanche",address:"0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB"}},{symbol:"FTM",decimals:18,icon:Ue.FANTOM,tokenId:{chain:"Fantom",address:"native"}},{symbol:"WFTM",name:"Wrapped Fantom",decimals:18,icon:Ue.FANTOM,tokenId:{chain:"Fantom",address:"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83"}},{symbol:"USDC.e",decimals:6,icon:Ue.USDC,tokenId:{chain:"Fantom",address:"0x2F733095B80A04b38b0D10cC884524a3d09b836a"}},{symbol:"CELO",decimals:18,icon:Ue.CELO,tokenId:{chain:"Celo",address:"0x471EcE3750Da237f93B8E339c536989b8978a438"}},{symbol:"USDT",decimals:6,icon:Ue.USDT,tokenId:{chain:"Celo",address:"0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e"}},{symbol:"GLMR",decimals:18,icon:Ue.GLMR,tokenId:{chain:"Moonbeam",address:"native"}},{symbol:"WGLMR",decimals:18,icon:Ue.GLMR,tokenId:{chain:"Moonbeam",address:"0xAcc15dC74880C9944775448304B263D191c6077F"}},{symbol:"SOL",decimals:9,icon:Ue.SOLANA,tokenId:{chain:"Solana",address:"native"}},{symbol:"WSOL",decimals:9,tokenId:{chain:"Solana",address:"So11111111111111111111111111111111111111112"},icon:Ue.SOLANA},{symbol:"USDC",decimals:6,tokenId:{chain:"Solana",address:"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"},icon:Ue.USDC},{symbol:"USDT",decimals:6,icon:Ue.USDT,tokenId:{chain:"Solana",address:"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"}},{symbol:"SUI",decimals:9,tokenId:{chain:"Sui",address:"native"},icon:Ue.SUI},{symbol:"USDC",decimals:6,tokenId:{chain:"Sui",address:"0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC"},icon:Ue.USDC},{symbol:"APT",decimals:8,tokenId:{chain:"Aptos",address:"native"},icon:Ue.APT},{symbol:"USDC",decimals:6,tokenId:{chain:"Aptos",address:"0xbae207659db88bea0cbead6da0ed00aac12edcdda169e591cd41c94180b46f3b"},icon:Ue.USDC},{symbol:"ETH",decimals:18,icon:Ue.ETH,tokenId:{chain:"Arbitrum",address:"native"}},{symbol:"WETH",decimals:18,icon:Ue.ETH,tokenId:{chain:"Arbitrum",address:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1"}},{symbol:"USDC",decimals:6,icon:Ue.USDC,tokenId:{chain:"Arbitrum",address:"0xaf88d065e77c8cC2239327C5EDb3A432268e5831"}},{symbol:"USDT",decimals:6,icon:Ue.USDT,tokenId:{chain:"Arbitrum",address:"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9"}},{symbol:"ETH",decimals:18,icon:Ue.ETH,tokenId:{chain:"Optimism",address:"native"}},{symbol:"WETH",decimals:18,icon:Ue.ETH,tokenId:{chain:"Optimism",address:"0x4200000000000000000000000000000000000006"}},{symbol:"USDC",decimals:6,icon:Ue.USDC,tokenId:{chain:"Optimism",address:"0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85"}},{symbol:"USDT",decimals:6,icon:Ue.USDT,tokenId:{chain:"Optimism",address:"0x94b008aA00579c1307B0EF2c499aD98a8ce58e58"}},{symbol:"WETH",decimals:18,icon:Ue.ETH,tokenId:{chain:"Bsc",address:"0x2170Ed0880ac9A755fd29B2688956BD959F933F8"}},{symbol:"USDT",decimals:18,icon:Ue.USDT,tokenId:{chain:"Bsc",address:"0x55d398326f99059fF775485246999027B3197955"}},{symbol:"ETH",decimals:18,icon:Ue.ETH,tokenId:{chain:"Base",address:"native"}},{symbol:"WETH",decimals:18,icon:Ue.ETH,tokenId:{chain:"Base",address:"0x4200000000000000000000000000000000000006"}},{symbol:"USDC",decimals:6,icon:Ue.USDC,tokenId:{chain:"Base",address:"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}},{symbol:"USDT",decimals:6,icon:Ue.USDT,tokenId:{chain:"Base",address:"0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2"}},{symbol:"wstETH",decimals:18,tokenId:{chain:"Base",address:"0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452"},icon:Ue.WSTETH},{symbol:"wstETH",decimals:18,tokenId:{chain:"Ethereum",address:"0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0"},icon:Ue.WSTETH},{symbol:"wstETH",decimals:18,tokenId:{chain:"Arbitrum",address:"0x5979D7b546E38E414F7E9822514be443A4800529"},icon:Ue.WSTETH},{symbol:"wstETH",decimals:18,tokenId:{chain:"Optimism",address:"0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb"},icon:Ue.WSTETH},{symbol:"wstETH",decimals:18,tokenId:{chain:"Polygon",address:"0x03b54A6e9a984069379fae1a4fC4dBAE93B3bCCD"},icon:Ue.WSTETH},{symbol:"KLAY",decimals:18,icon:Ue.KLAY,tokenId:{chain:"Klaytn",address:"native"}},{symbol:"WKLAY",decimals:18,name:"wKLAY",icon:Ue.KLAY,tokenId:{chain:"Klaytn",address:"0xe4f05A66Ec68B54A58B17c22107b02e0232cC817"}},{symbol:"PYTH",decimals:6,tokenId:{chain:"Solana",address:"HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3"},icon:Ue.PYTH},{symbol:"ETH",decimals:18,icon:Ue.SCROLL,tokenId:{chain:"Scroll",address:"native"}},{symbol:"WETH",decimals:18,icon:Ue.SCROLL,tokenId:{chain:"Scroll",address:"0x5300000000000000000000000000000000000004"}},{symbol:"ETH",decimals:18,icon:Ue.BLAST,tokenId:{chain:"Blast",address:"native"}},{symbol:"WETH",decimals:18,icon:Ue.BLAST,tokenId:{chain:"Blast",address:"0x9D020B1697035d9d54f115194c9e04a1e4Eb9aF7"}},{symbol:"OKB",decimals:18,icon:Ue.XLAYER,tokenId:{chain:"Xlayer",address:"native"}},{symbol:"WOKB",decimals:18,icon:Ue.XLAYER,tokenId:{chain:"Xlayer",address:"0xe538905cf8410324e03A5A23C1c177a474D59b2b"}},{symbol:"MNT",decimals:18,icon:Ue.MANTLE,tokenId:{chain:"Mantle",address:"native"}},{symbol:"WMNT",decimals:18,icon:Ue.MANTLE,tokenId:{chain:"Mantle",address:"0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8"}},{symbol:"tBTC",decimals:18,tokenId:{chain:"Ethereum",address:"0x18084fbA666a33d37592fA2633fD49a74DD93a88"},icon:Ue.TBTC},{symbol:"tBTC",decimals:18,tokenId:{chain:"Polygon",address:"0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"},icon:Ue.TBTC},{symbol:"tBTC",decimals:18,tokenId:{chain:"Optimism",address:"0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"},icon:Ue.TBTC},{symbol:"tBTC",decimals:18,tokenId:{chain:"Arbitrum",address:"0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"},icon:Ue.TBTC},{symbol:"tBTC",decimals:18,tokenId:{chain:"Base",address:"0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"},icon:Ue.TBTC},{symbol:"tBTC",decimals:8,tokenId:{chain:"Solana",address:"6DNSN2BJsaPFdFFc1zP37kkeNe4Usc1Sqkzr9C9vPWcU"},icon:Ue.TBTC},{symbol:"ETH",tokenId:{chain:"Worldchain",address:"native"},decimals:18,icon:Ue.WORLDCHAIN},{symbol:"WETH",tokenId:{chain:"Worldchain",address:"0x4200000000000000000000000000000000000006"},decimals:18,icon:Ue.WORLDCHAIN},{symbol:"ETH",tokenId:{chain:"Unichain",address:"native"},decimals:18,icon:Ue.ETH},{symbol:"WETH",tokenId:{chain:"Unichain",address:"0x4200000000000000000000000000000000000006"},decimals:18,icon:Ue.ETH},{symbol:"USDC",tokenId:{chain:"Unichain",address:"0x078D782b760474a361dDA0AF3839290b0EF57AD6"},decimals:6,icon:Ue.USDC},{symbol:"BERA",tokenId:{chain:"Berachain",address:"native"},decimals:18,icon:Ue.BERA},{symbol:"WBERA",tokenId:{chain:"Berachain",address:"0x6969696969696969696969696969696969696969"},decimals:18,icon:Ue.BERA}],k6e={Ethereum:{"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2":{Bsc:"0x4DB5a66E937A9F4473fA95b1cAF1d1E1D62E29EA",Polygon:"0x11CD37bb86F65419713f30673A480EA33c826872",Avalanche:"0x8b82A291F83ca07Af22120ABa21632088fC92931",Fantom:"0x2A126f043BDEBe5A0A9841c51915E562D9B07289",Celo:"0x66803FB87aBd4aaC3cbB3fAd7C3aa01f6F3FB207",Moonbeam:"0xab3f0245B83feB11d15AAffeFD7AD465a59817eD",Solana:"7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs",Sui:"0xaf8cd5edc19c4512f4259f0bee101a40d41ebed738ade5874359610ef8eeced5::coin::COIN",Aptos:"0xcc8a89c8dce9693d354449f1f73e60e14e347417854f029db5bc8e7454008abb::coin::T",Base:"0x71b35ECb35104773537f849FBC353F81303A5860",Arbitrum:"0xD8369C2EDA18dD6518eABb1F85BD60606dEb39Ec",Optimism:"0xb47bC3ed6D70F04fe759b2529c9bc7377889678f",Blast:"0xC09a79fCF76ab2917c685896E3693e04EEbab69C",Mantle:"0x115Fcc627AcE0457fbeb7Af3b8BcAcE7Ff6211A4",Klaytn:"0x98A8345bB9D3DDa9D808Ca1c9142a28F6b0430E1",Worldchain:"0x6938c3EfFEf84E5C69e3d7cc41eBC6Cff99EF8A7"},"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48":{Bsc:"0xB04906e95AB5D797aDA81508115611fee694c2b3",Polygon:"0x4318CB63A2b8edf2De971E2F17F77097e499459D",Avalanche:"0xB24CA28D4e2742907115fECda335b40dbda07a4C",Fantom:"0x2Ec752329c3EB419136ca5e4432Aa2CDb1eA23e6",Celo:"0x37f750B7cC259A2f741AF45294f6a16572CF5cAd",Moonbeam:"0x931715FEE2d06333043d11F658C8CE934aC61D0c",Solana:"A9mUU4qviSctJVPJdBJWkb28deg915LYJKrzQ19ji3FM",Sui:"0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf::coin::COIN",Aptos:"0x5e156f1207d0ebfa19a9eeff00d62a282278fb8719f4fab3a586a0a2c0fffbea::coin::T",Base:"0xec267C53f53807c2337C257f8AC3Fc3cC07cc0ed",Arbitrum:"0xC96F2715E2a242d50D1b0bC923dbe1740b8eCf18",Optimism:"0x711e53D031ea9B0bb0C24dD506df11b41AEA419e",Klaytn:"0x608792Deb376CCE1c9FA4D0E6B7b44f507CfFa6A",Worldchain:"0x2cbD3491d687A76bb9C53c30B212855520D47b52"},"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599":{Bsc:"0x43359676E1A3F9FbB5de095333f8e9c1B46dFA44",Polygon:"0x5D49c278340655B56609FdF8976eb0612aF3a0C3",Avalanche:"0x1C0e79C5292c59bbC13C9F9f209D204cf4d65aD6",Fantom:"0x87e9E225aD8a0755B9958fd95BE43DD6A91FF3A7",Celo:"0xd71Ffd0940c920786eC4DbB5A12306669b5b81EF",Moonbeam:"0xE57eBd2d67B462E9926e04a8e33f01cD0D64346D",Solana:"3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh",Sui:"0x027792d9fed7f9844eb4839566001bb6f6cb4804f66aa2da6fe1ee242d896881::coin::COIN",Aptos:"0xae478ff7d83ed072dbc5e264250e67ef58f57c99d89b447efd8a0a2e8b2be76e::coin::T",Base:"0xE6396f780b543dF16ee3b784D789c75B68319db0",Arbitrum:"0x397846a8078d4845c7f5c6Ca76aeBbcFDc044fAe",Optimism:"0xB214C19d81c99E75e84706a3aa0A757319023e26",Klaytn:"0x981846bE8d2d697f4dfeF6689a161A25FfbAb8F9",Worldchain:"0x06c9ec7E18A7900E79Ad5BeCc6Cc29E3eebD81EC"},"0xdAC17F958D2ee523a2206206994597C13D831ec7":{Bsc:"0x524bC91Dc82d6b90EF29F76A3ECAaBAffFD490Bc",Polygon:"0x9417669fBF23357D2774e9D421307bd5eA1006d2",Avalanche:"0x9d228444FC4B7E15A2C481b48E10247A03351FD8",Fantom:"0x14BCb86aEed6a74D3452550a25D37f1c30AA0A66",Celo:"0x617f3112bf5397D0467D315cC709EF968D9ba546",Moonbeam:"0xc30E9cA94CF52f3Bf5692aaCF81353a27052c46f",Solana:"Dn4noZ5jgGfkntzcQSUZ8czkreiZ1ForXYoV2H8Dm7S1",Sui:"0xc060006111016b8a020ad5b33834984a437aaa7d3c74c18e09a95d48aceab08c::coin::COIN",Aptos:"0xa2eda21a58856fda86451436513b867c97eecb4ba099da5775520e0f7492e852::coin::T",Base:"0xFf0C62A4979400841eFaA6faADb07Ac7d5C98b27",Arbitrum:"0xE4728F3E48E94C6DA2B53610E677cc241DAFB134",Optimism:"0xf6B4185FCf8aF291c0E3927fbEab7046b4f6A8CA",Blast:"0x37C1dea9C51864cc6640FA9c09f4dac574b8285E",Klaytn:"0x5C13E303a62Fc5DEdf5B52D66873f2E59fEdADC2",Xlayer:"0x5866709f926f26C5870191F40333ac462B917bC0",Worldchain:"0x95dd0680Fd6B6c7546e75C1A4E6A3256072C0593"},"0x6B175474E89094C44Da98b954EedeAC495271d0F":{Bsc:"0x3413a030EF81a3dD5a302F4B4D11d911e12ed337",Polygon:"0x732EB1747ecCFC431fF19bc359ffc83755B1918c",Avalanche:"0xca319f81D147559e19A522A0a0310Dd43A96cA0F",Fantom:"0xEE786D3D73Ea645365c7248E4e40eDba08B1169F",Celo:"0x97926a82930bb7B33178E3c2f4ED1BFDc91A9FBF",Moonbeam:"0x06e605775296e851FF43b4dAa541Bb0984E9D6fD",Solana:"EjmyN6qEC1Tf1JxiG1ae7UTJhUxSwk1TCWNWqxWV4J6o",Aptos:"0x407a220699982ebb514568d007938d2447d33667e4418372ffec1ddb24491b6c::coin::T",Base:"0x617Edadb51BfB43A44Bb91C7402129C23bA52381",Arbitrum:"0x5c4f2FEFB97F7DF09E762d95C83f0Ccf8bCe8234",Optimism:"0x098EA47D630b46df1E08e389e5e4466119c7dd30",Blast:"0x286ebE2BacB0EBeF746DBDA24dED0fc001c6d0F6",Sui:"0xc01c54cd767a60835bf100b0a8f7aae66ac9f4e374f76746af60f02493b6f2cf::coin::COIN",Klaytn:"0xCB2C7998696Ef7a582dFD0aAFadCd008D03E791A",Worldchain:"0x69635e59E89000e08a13C3F7B9f7293160Dc83a2"},"0x4Fabb145d64652a948d72533023f6E7A623C7C53":{Bsc:"0x035de3679E692C471072d1A09bEb9298fBB2BD31",Polygon:"0x95ea750420da26bE1Ab0891e209e921bCd84763f",Celo:"0x1dd42c0785ca90B677adc2ABad01dfc5ECcD0b4d",Moonbeam:"0xa2284e1F98E4d0B7Eb6a6b4f3C57f1b209C755F3",Solana:"33fsBLA8djQm82RpHmE3SuVrPGtZBWNYExsEUeKX1HXX",Aptos:"0x77400d2f56a01bad2d7c8c6fa282f62647ce3c03f43f2a8742e47ea01a91e24a::coin::T",Worldchain:"0x276719Fc6a38E62B717c6FF6E39d1C336ee633AB"},"0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0":{Polygon:"0xe082a7Fc696De18172Ad08D956569Ee80BC37f06",Solana:"ZScHuTtqZukUrtZS43teTKGs2VqkKL8k4QCouR2n6Uo",Arbitrum:"0xf2717122Dfdbe988ae811E7eFB157aAa07Ff9D0F",Optimism:"0x855CFcEEe998c8ca34F9c914F584AbF72dC88B87",Base:"0xEd4e2FD35161c3c0e33cA187fce64C70d44Ce32b",Bsc:"0xad80E1A9B5824234afA9dE1F3bbDb8a994796169",Avalanche:"0x11449fd2F05D93827972b40adE96F6ffBE42E35a",Fantom:"0x2a2Ec6Ad3e47C536F47934F63b95BD647F1C730E",Worldchain:"0xd977e0251db8d38155dC5d212944AB7B7a6777Ad"}},Polygon:{"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270":{Ethereum:"0x7c9f4C87d911613Fe9ca58b579f737911AAD2D43",Bsc:"0xc836d8dC361E44DbE64c4862D55BA041F88Ddd39",Avalanche:"0xf2f13f0B7008ab2FA4A2418F4ccC3684E49D20Eb",Fantom:"0xb88A6064B1F3FF5B9AE4A82fFD52560b0dF9FBD3",Celo:"0x9C234706292b1144133ED509ccc5B3CD193BF712",Moonbeam:"0x82DbDa803bb52434B1f4F41A6F0Acb1242A7dFa3",Solana:"Gz7VkD4MacbEB6yC5XD3HcumEiYx2EtDYYrfikGsvopG",Sui:"0xdbe380b13a6d0f5cdedd58de8f04625263f113b3f9db32b3e1983f49e2841676::coin::COIN",Aptos:"0x6781088e2a1629d38eda521467af4a8ca7bfa7e5516338017940389595c85c0f::coin::T",Base:"0xc863399E5c5C4011B1DC3fB602902C77BA72B709",Arbitrum:"0x3ab0E28C3F56616aD7061b4db38aE337E3809AEA",Optimism:"0x8f02B6a32cebcAe44D2Fd17d87966f5B5dD14c6d",Blast:"0xE00CB9206aCF0413aa9Dc12F01A22BB5Dd7A2866",Mantle:"0x1d15Dc3B3DB5A182eA8E3091F21EB0549d4a72E0",Klaytn:"0x9858e5A4f8202baD619D4BD39382CA67F4CA0E63",Scroll:"0x982D057feCD66c3af27b16EBC67C4db24810bcD8",Xlayer:"0xc97E2b2d7730C34adC389563721d9dF52EDA4A2a",Worldchain:"0xDcB507ECEA06724d8c4F2f03964f7EE4da504E8C"},"0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619":{Bsc:"0x1384284E16e3375522Be54F50909Bc52A69e90e4",Solana:"DQyeU3oFezEGia761GQ4iPcMCnxnH8fuLrmHZUvTYuby",Aptos:"0x2692323828f627a45a75a05eba8281dd46690c538b4f6ccb7a35ffe8199a28b7::coin::T",Sui:"0xa1ed6e76b06ff8f959cc479fbbd423820a3349dad8707b98ff4309c677fa20ad::coin::COIN",Arbitrum:"0xd2b299eD76d1369Ac8762CFEc85245fFD302FC17",Ethereum:"0x32d222E1f6386B3dF7065d639870bE0ef76D3599",Avalanche:"0x061FE51530768889dc20Ac7fCD29b5307b823395",Optimism:"0x2740220fFa4b206280907ce12b7cDC57445f3B92",Fantom:"0x1cAFd8d3301E4E54Fc1462E7117Eb678bF50C765",Base:"0x7A79923734eDA9c7f7ff69ad9ec1e234F67E7CD6",Moonbeam:"0xf1BB9A987B9edC360580b0c9F28069C808c2a7da",Celo:"0x8Ed68859f162970258992168293232e3Bdd987d0",Klaytn:"0x3eb25C7098AC38a852Cd2366161c5e216af50Df3"},"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359":{Aptos:"0xc5fd7820e9f053e6dd8e7dd8ca3ce8e9b10d200ba1692bdeb7a035217180ad4a::coin::T",Base:"0xFe1579BAc60363c8572CB30Bf4DD1Fd85811BBF8",Moonbeam:"0x4415BfBDee669446550d55c749007EF60B520FC8",Sui:"0x5c8c9082401982e8c2519a5c12883a5475295bf5cec4a0a13c26d35dd9a20d73::coin::COIN",Bsc:"0xe6d82Bbe75041E42E51d755e922cE1BA91af9c4d",Celo:"0x42c76808f3179A091Ee007A2955aF2522978ADE7",Fantom:"0xB4DcfD221048a1Dad989D39456BBd87762c26F06",Avalanche:"0xDb2d08f5A9C9ADBBA0DE5a69bbB1E9Ca03411692",Arbitrum:"0x599ADB10E6A012dF34935D47407450f6D7170e3C",Optimism:"0xbB1EaB9Eb8fDf65F0E291D013DA07B4b65a27a01",Solana:"C321jHPwWBzgfSGndosDTp5pBsiXPyMU1irxKLVcedRB",Ethereum:"0xFbcE0f9e92AD1003e893Ba647bC055D845aAa507",Klaytn:"0x59AEaD999e018a00B162D34de7a81AFFAB88bAbB"},"0x03b54A6e9a984069379fae1a4fC4dBAE93B3bCCD":{Base:"0xcB6D47199d60747152d7671D6497ce8D23cc1D75",Arbitrum:"0x23D3901A635fDd98D8d6509bc0720281f80a8E6D",Ethereum:"0x302F636d723c8Ed75C0d1E9D9C714009184C5624",Optimism:"0x4fad81d2268a7D9E1e0fE7dB38af07FFFA0aA56E",Celo:"0xA4c7302659eCF88a90e62e915Bd486E66B616A4C"}},Bsc:{"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c":{Ethereum:"0x418D75f65a02b3D53B2418FB8E1fe493759c7605",Polygon:"0xeCDCB5B88F8e3C15f95c720C51c71c9E2080525d",Avalanche:"0x442F7f22b1EE2c842bEAFf52880d4573E9201158",Fantom:"0xc033551e05907Ddd643AE14b6D4a9CA72BfF509B",Celo:"0xBf2554ce8A4D1351AFeB1aC3E5545AaF7591042d",Moonbeam:"0xE3b841C3f96e647E6dc01b468d6D0AD3562a9eeb",Solana:"9gP2kCy3wA1ctvYWQk75guqXuHfrEomqydHLtcTCqiLa",Sui:"0xb848cce11ef3a8f62eccea6eb5b35a12c4c2b1ee1af7755d02d7bd6218e8226f::coin::COIN",Aptos:"0x6312bc0a484bc4e37013befc9949df2d7c8a78e01c6fe14a34018449d136ba86::coin::T",Base:"0x7fdAa50d7399ac436943028edA6ed9a1BD89509f",Arbitrum:"0x7AF00405916D823eDb1121546EfA6F4972B51b84",Optimism:"0x6A09fE65ACa27C12573F04aAFa290bD75497E1BC",Blast:"0xdcd0Ec817d3ae2E82bCE8Cc9f92fFA7686A52160",Mantle:"0x9a7E85260d6F5d3c3d2a1FdDc3D980DBC78e508d",Klaytn:"0xaC9C1E4787139aF4c751B1C0fadfb513C44Ed833",Scroll:"0x5b0da0a36DC415714B53A4f24b56921332F42E7C",Xlayer:"0x8bC46166E06122603bA10D2bCA63b75091c25cAe",Worldchain:"0x59163d9c70E9b3852a504c5F1458e2daD33516Ff"},"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d":{Ethereum:"0x7cd167B101D2808Cfd2C45d17b2E7EA9F46b74B6",Polygon:"0x4B3a922c773BDCF3BA8f1A4FDAc2029E1D0E9868",Avalanche:"0x6145E8a910aE937913426BF32De2b26039728ACF",Fantom:"0x0FcbDAC44c67A43607D3E95886dB19871ADc985F",Celo:"0x9d9abAE97a9344e3854527b4efbB366a1564bfEb",Moonbeam:"0x7f433E22366E03a3758CE22cCf82887d828078f8",Solana:"FCqfQSujuPxy6V42UvafBhsysWtEq1vhjfMN1PUbgaxA",Sui:"0x909cba62ce96d54de25bec9502de5ca7b4f28901747bbf96b76c2e63ec5f1cba::coin::COIN",Aptos:"0x79a6ed7a0607fdad2d18d67d1a0e552d4b09ebce5951f1e5c851732c02437595::coin::T",Base:"0x68E2b07F92ed506f92935d7359ECA84D5342dbb4",Arbitrum:"0x1a0590F951bc9C3818Ce75ba5Bbe92831b2cf57e",Optimism:"0x1C15057d1F3794C934a6cBC1f7EceE934050F219",Klaytn:"0x01B342d26FEF5749E87CBe412e16163771b0277c"},"0x2170Ed0880ac9A755fd29B2688956BD959F933F8":{Aptos:"0xd9fc4259ec5def95477dba9f0861c2882d1f8bee9a4138b476dd0720a3444547::coin::T",Solana:"FzjTz2cD1DfqYvafrbHWZvf1dK9qjwXGLuaU7xYXQjxP",Sui:"0x5029d5a94429a73b8036cd67192d9c5e09bbc2c0fee942d50075a9edba66744f::coin::COIN",Base:"0xf50509Bb6aF76E20c6E1eD493699c5f70764BcCC",Arbitrum:"0x6478377A399bE8c92bD35254aA7bF287836de32e",Ethereum:"0x5DbBB101CDc29443d12055eCDDdD7ca037Dce721",Fantom:"0xc511E3aec79CABD605021C237c475Ec553B002d4",Celo:"0x09F236D3708894581b1Cf679e582ba9eA5BE16f0",Klaytn:"0x4C07075BB44076106f3389766946b79784Fb5C58",Avalanche:"0xf0e509144CfA602d0A5e8C75d76FF74077f52f2b",Optimism:"0x8088Bc767c392b5769b94c9ec1D07c62874c8d5f",Polygon:"0x2D291e940DbDdaa9E847Ba5cC49451575f086b27",Moonbeam:"0xBefd7902B682938b29B3FD3D4AdECD9A984D5930"}},Avalanche:{"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7":{Ethereum:"0x85f138bfEE4ef8e540890CFb48F620571d67Eda3",Bsc:"0x96412902aa9aFf61E13f085e70D3152C6ef2a817",Polygon:"0x7Bb11E7f8b10E9e571E5d8Eace04735fDFB2358a",Fantom:"0x358CE030DC6116Cc296E8B9F002728e65459C146",Celo:"0xFFdb274b4909fC2efE26C8e4Ddc9fe91963cAA4d",Moonbeam:"0xd4937A95BeC789CC1AE1640714C61c160279B22F",Solana:"KgV1GvrHQmRBY8sHQQeUKwTm2r2h8t4C8qt12Cw1HVE",Sui:"0x1e8b532cca6569cab9f9b9ebc73f8c13885012ade714729aa3b450e0339ac766::coin::COIN",Aptos:"0x5b1bbc25524d41b17a95dac402cf2f584f56400bf5cc06b53c36b331b1ec6e8f::coin::T",Base:"0xc449A60A31E1eebFE83c42E9465fd4Dc318aE9a7",Arbitrum:"0x565609fAF65B92F7be02468acF86f8979423e514",Optimism:"0x8418C1d909842f458c9394886b83F19d62bF1A0D",Blast:"0x7D86F00026c2cD8137D60ae85d53c5E5a15B2481",Mantle:"0x2cAb4233d42043AEBbbb1445af362Ef686f3C133",Klaytn:"0x45830b92443a8f750247da2A76C85c70d0f1EBF3",Scroll:"0xC043c8A3672f397e7b52bF0a04F47d6f1aA952Ed",Xlayer:"0x5208Fb676B2DBab7aFaFB56e8997237F0ceECF71",Worldchain:"0x5Bf2A0622aa1254D963A3074b593A379784C116a"},"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E":{Ethereum:"0x39EbF69137D98FB7659Ef8D4ea21ec26394389d7",Bsc:"0xc88Dc63bf0c8c8198C97Db0945E3eF25Ca89A8e4",Polygon:"0xAEA5CC14DefbC1b845FDE729E563B717Ee6825ae",Fantom:"0xEfE7701cb2B80664385Be226d0300912CA92f66A",Celo:"0x62FFf2D2D1692D52eAf043AeeC727F7918d269D3",Moonbeam:"0xd4918c40cA9f02d42Cb53d06587aF42017Bc345D",Solana:"FHfba3ov5P3RjaiLVgh8FTv4oirxQDoVXuoUUDvHuXax",Sui:"0xe596782fbaebef51ae99ffac8731aed98a80642b9dc193ed659c97fbc2cc0f84::coin::COIN",Aptos:"0x39d84c2af3b0c9895b45d4da098049e382c451ba63bec0ce0396ff7af4bb5dff::coin::T",Arbitrum:"0x93e0FcbEd43CD6fC30DF00CcBD4669718dc74e77",Optimism:"0x355f0a8a7ecAeD971b8Fbd50994558291ff2413a",Base:"0xD83385fE100E20c269a5975D4Bf92525BcE09F87",Blast:"0x3Db095413b5e1e5681c48028e31e8dc2505D8aD3",Klaytn:"0x9C97D4c09679Dfd00A39681f6d3b61A285312B13",Scroll:"0xbEFc3d0457fB88f82364Dd982F7BA195FEE96b74"},"0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB":{Aptos:"0x25ff8e0c07552c392c9e5dd4c9c07cf0382765c1bca560e80b6296a702034219::coin::T",Solana:"F9B9qLwUN3TAWGV9EGsuzFzS2PxWvKAmLhvfeqYNaS7J",Bsc:"0xBDfe278268524de38Da89B3023C1F49deBDFdA8A",Sui:"0xc1ea686a329e35808c61484d95904d50522f1d1616cab4b416d9cfa9b274bc6c::coin::COIN",Base:"0xEfe64b52bc0bDfa109790736F25cefb79724adF0",Arbitrum:"0xdF64fB41b7f45304a786695E0D5daD8d033C01eF",Polygon:"0x2912b3a9586Fc2AB177dC869e878c688DAA7d06E",Ethereum:"0xD85a87Edbe9fB3Baf6a1Bbd1E46f1C04B291331d",Optimism:"0xBe6EA3e70e2bbB0dbD093B657fbbc0DFF0BA67eC",Moonbeam:"0x9C673c6b651D6FDEF57441125A6AC16b08bba939",Celo:"0xDac2C97b5E64d7C79d040cd2906EBe02341F1Ab5",Klaytn:"0x9971F9d9170D787C4e4E01c56E1BDB308291CacF",Fantom:"0x86a09597fc91b116511B990D29CB46ddedC0fCb0"}},Fantom:{"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83":{Ethereum:"0x4cD2690d86284e044cb63E60F1EB218a825a7e92",Bsc:"0xbF8413EE8612E0E4f66Aa63B5ebE27f3C5883d47",Polygon:"0x3726831304D77f585f1Aca9d9841cc3Ef80dAa62",Avalanche:"0xd19abc09B7b36F7558929b97a866f499a26c2f83",Celo:"0xd1A342eE2210238233a347FEd61EE7Faf9f251ce",Moonbeam:"0x609AedD990bf45926bca9E4eE988b4Fb98587D3A",Solana:"DRQBDBEWmwWGK13fRTLhSPzjbvMSUavhV6nW4RUH8W6T",Sui:"0x6081300950a4f1e2081580e919c210436a1bed49080502834950d31ee55a2396::coin::COIN",Aptos:"0xd1aa2ff36a0e93e1b4e4fecdecf8bb95bc5de399061c5e84b515281f48718842::coin::T",Base:"0x936Fa2DE8380Dc5BF34C80F1BaD53a9f3630263B",Arbitrum:"0x7f7dcDb91930033a4Eb269196EBb6fd5f0644E4B",Optimism:"0x0b0ecbe5C3995541876d27633B63296570FB34Af",Blast:"0xf1D0eEeB6B6B35dc7289E1AD5e523F68b82bd09A",Mantle:"0x6BFDc59ECBC5503aE16F71851064597D0a75dA76",Klaytn:"0xF3AebeA789F30C22F3657F70f4CaA0f8b49ed676",Scroll:"0x16f077e2e9bF99Adfb1FEEc8360ee002842C44A2",Xlayer:"0x956b5E88c311b976C76CB415C7E030A5Af87373b"},"0x2F733095B80A04b38b0D10cC884524a3d09b836a":{Bsc:"0x521af8b1c43B503BE91F542d82EEFEabc0C93340",Arbitrum:"0xF68734163731ad6A6108f76A8e09862C1d412B42",Ethereum:"0xfcC349c14013EdeFAAcAE09Ba30F4ef2571b8D2c"}},Celo:{"0x471EcE3750Da237f93B8E339c536989b8978a438":{Ethereum:"0x3294395e62F4eB6aF3f1Fcf89f5602D90Fb3Ef69",Bsc:"0x2A335e327a55b177f5B40132fEC5D7298aa0D7e6",Polygon:"0x922F49a9911effc034eE756196E59BE7b90D43b3",Avalanche:"0x494317B8521c5a5287a06DEE467dd6fe285dA4a8",Fantom:"0xF432490C6c96C9d3bF523a499a1CEaFd8208A373",Moonbeam:"0xc1a792041985F65c17Eb65E66E254DC879CF380b",Solana:"9kvAcwQbqejuJMd59mKuw2bfSsLRaQ7zuvaTVHEeBBec",Sui:"0xa198f3be41cda8c07b3bf3fee02263526e535d682499806979a111e88a5a8d0f::coin::COIN",Aptos:"0xac0c3c35d50f6ef00e3b4db6998732fe9ed6331384925fe8ec95fcd7745a9112::coin::T",Base:"0x74df3823aA29D278cAD0A3632fCB56C896a38eD4",Arbitrum:"0x4E51aC49bC5e2d87e0EF713E9e5AB2D71EF4F336",Optimism:"0x9b88D293b7a791E40d36A39765FFd5A1B9b5c349",Blast:"0x75345Cc6a3333cca03aCE2a28C7de328122Db3b1",Klaytn:"0xB2b5bC9bc872c7107CBC8E8e0E2805Db0ac4FBc2",Worldchain:"0x2250A0E2532A745b585B69dd2CdC75207384917c"}},Moonbeam:{"0xAcc15dC74880C9944775448304B263D191c6077F":{Ethereum:"0x93d3696A9F879b331f40CB5059e37015423A3Bd0",Bsc:"0x1C063db3c621BF901FC6C1D03328b08b2F9bbfba",Polygon:"0xcC48d6CF842083fEc0E01d913fB964b585975F05",Avalanche:"0x375aA6C67BF499fBf01804A9f92C03c0776F372d",Fantom:"0xBF227E92D6754EB4BFE26C40cb299ff2809Da45f",Celo:"0x383A5513AbE4Fe36e0E00d484F710148E348Aa9D",Solana:"7ixSaXGsHAFy34wogPk2YXiUX3BMmQMFdercdaHLnBby",Sui:"0x66f87084e49c38f76502d17f87d17f943f183bb94117561eb573e075fdc5ff75::coin::COIN",Aptos:"0x7ab1283a7b13c4254d4e1f803d7ce6578442c1d7a40d0faee41cd48ba4884c8a::coin::T",Base:"0xfdB7311BeC3b2CcCF8407d0585f81B97b3b5eff1",Arbitrum:"0x944C5b67a03e6Cb93Ae1E4B70081f13b04CDB6Bd",Optimism:"0xbffD46DFDb8d3a02b8D2E0F864a2cD712090a4D3",Blast:"0x43E43580A34c8FdD4694e1F9B5F9b1121a7044a5",Klaytn:"0x52a4558f98dDc7cb40cd9114C005f0B9571258Fc",Scroll:"0x2Aba1Ed24EaFC17F801b1A7dF1c3a06737F8aB72",Xlayer:"0xE2a44Dad57004517738FbD84cdf09Bd1451b4e43",Worldchain:"0xaAe2Bd4EB640f02dD3a53bd994ad19110b4191b0"}},Solana:{So11111111111111111111111111111111111111112:{Ethereum:"0xD31a59c85aE9D8edEFeC411D448f90841571b89c",Bsc:"0xfA54fF1a158B5189Ebba6ae130CEd6bbd3aEA76e",Polygon:"0xd93f7E271cB87c23AaA73edC008A79646d1F9912",Avalanche:"0xFE6B19286885a4F7F55AdAD09C3Cd1f906D2478F",Fantom:"0xd99021C2A33e4Cf243010539c9e9b7c52E0236c1",Celo:"0x4581E64115d46CcdeE65Be2336bEc86c9BA54C01",Moonbeam:"0x99Fec54a5Ad36D50A4Bba3a41CAB983a5BB86A7d",Sui:"0xb7844e289a8410e50fb3ca48d69eb9cf29e27d223ef90353fe1bd8e27ff8f3f8::coin::COIN",Aptos:"0xdd89c0e695df0692205912fb69fc290418bed0dbe6e4573d744a6d5e6bab6c13::coin::T",Base:"0x1C61629598e4a901136a81BC138E5828dc150d67",Arbitrum:"0x2bcC6D6CdBbDC0a4071e48bb3B969b06B3330c07",Optimism:"0xba1Cf949c382A32a09A17B2AdF3587fc7fA664f1",Blast:"0xA5370b8e2413b23eA16F3B78D1d1ba3969678227",Mantle:"0xDA03239f428c76A527e1ceCa0ecA6cC367A2D945",Klaytn:"0xfAA03A2AC2d1B8481Ec3fF44A0152eA818340e6d",Xlayer:"0x3a859D92da2E16Ad32C5C6F3ADAddFBa4dE3A47e",Scroll:"0xCDf95E1F720caade4b1DC83ABfE15400D2a458AD",Worldchain:"0xEfae32D1c15EDBaEA3ebdDe1e2C51003AED04d30"},EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v:{Ethereum:"0x41f7B8b9b897276b7AAE926a9016935280b44E97",Bsc:"0x91Ca579B0D47E5cfD5D0862c21D5659d39C8eCf0",Polygon:"0x576Cf361711cd940CD9C397BB98C4C896cBd38De",Avalanche:"0x0950Fc1AD509358dAeaD5eB8020a3c7d8b43b9DA",Fantom:"0xb8398DA4FB3BC4306B9D9d9d13d9573e7d0E299f",Celo:"0x8B6eef6C449D3Ac723a9C06a9eaE2dCd7d308BA9",Moonbeam:"0x098d6eE48341D6a0a0A72dE5baaF80A10E0F6082",Sui:"0xb231fcda8bbddb31f2ef02e6161444aec64a514e2c89279584ac9806ce9cf037::coin::COIN",Aptos:"0xc91d826e29a3183eb3b6f6aa3a722089fdffb8e9642b94c5fcd4c48d035c0080::coin::T",Arbitrum:"0x3870546cfd600ba87e4180686d29dC993A45d3B7",Optimism:"0x6F974A6dfD5B166731704Be226795901c45Bb815",Base:"0xe8CE40EBBB844142400D21558a2F1c9683d69139",Klaytn:"0xa1a7feeD29EbFa38079D943486c23f401939Ce80",Scroll:"0x883Ccb5aEfD0084f1e4D04b133675acd6D5F123F"},HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3:{Aptos:"0x770211b47954e15bec1a4271bf33bacebc2d2adb43b7dc1ca45efa787615dd4c::coin::T",Bsc:"0xb0188B0bb2cD4a6D2744637fC83C94a284B247Da",Base:"0x4c5d8A75F3762c1561D96f177694f67378705E98",Celo:"0x985aa4814419ba338379A634785216301e51113D",Avalanche:"0x8A0691e602B7a5FCc51a27E4a08376dE50889B42",Polygon:"0xFa4B761A1e07909Ba31331a5dfa12390E3ff5583",Fantom:"0x77ad3B2dA29FBd208F12c3C701E969F4422aAD79",Optimism:"0x99C59ACeBFEF3BBFB7129DC90D1a11DB0E91187f",Ethereum:"0xeFc0CED4B3D536103e76a1c4c74F0385C8F4Bdd3",Arbitrum:"0xE4D5c6aE46ADFAF04313081e8C0052A30b6Dd724",Sui:"0x9c6d76eb273e6b5ba2ec8d708b7fa336a5531f6be59f326b5be8d4d8b12348a4::coin::COIN",Moonbeam:"0x27cc3FDbDD1F415b09a41232D0fD71345DAB8030",Xlayer:"0x057b766b3fB76527cf815c3b5C38Dfa8144335CF",Worldchain:"0x838f3045F3B2dcDFF8cB4e5CaB0c0092A69B790a"}},Sui:{native:{Ethereum:"0x84074EA631dEc7a4edcD5303d164D5dEa4c653D6",Bsc:"0x8314f6Bf1B4dd8604A0fC33C84F9AF2fc07AABC8",Polygon:"0x34bE049fEbfc6C64Ffd82Da08a8931A9a45f2cc8",Avalanche:"0x1703CB0F762D2a435199B64Ea47E5349B7C17480",Fantom:"0xC277423a21F6e32D886BF85Ef6cCB945d5D28347",Celo:"0x1Cb9859B1A16A67ef83A0c7b9A21eeC17d9a97Dc",Moonbeam:"0x484eCCE6775143D3335Ed2C7bCB22151C53B9F49",Solana:"G1vJEgzepqhnVu35BN4jrkv3wVwkujYWFFCxhbEZ1CZr",Aptos:"0xa72a97e872be9ee3d2f14d56fd511eb7e4a53f4055be3a267d8602e7685b41c0::coin::T",Base:"0x36c6FBF7B49bF65f5F82b674af219C05b2a4aDD1",Arbitrum:"0xCF79d86B8a830030aF6D835737d6eac3bE823fD7",Optimism:"0x27A533e438892DA192725b4C9AcA51447F457212",Mantle:"0x9ef1BB6072d7d6B9C935d9c040133036aD532119",Blast:"0x62c95Ffd6d2f893Ea2EF072d1EbBcb242a974b1A",Klaytn:"0xB0B40516293e0204fB376A18aA230A210cbE0305",Xlayer:"0xEa76dBFE6e449420f294e74E057518F750E99A16",Worldchain:"0xf69005c35B5d9AcC22E4DbCf52f892cAE21F83B0"}},Aptos:{native:{Ethereum:"0x8CDf7AF57E4c8B930e1B23c477c22f076530585e",Bsc:"0x2Ba98cf7Edd2c5C794e21bc3Dc6973D3C2585eE3",Polygon:"0xa4ef199d3ad524E9C3C51Ac46B303B103A307Cef",Avalanche:"0x43c588459b3243fA541B98CC4B2E995b3de553A2",Fantom:"0x3Cd9162Ca5256b8E26A0e3Ad14CCfF7C0Da0F174",Celo:"0x89F2b718Ca518db39d377F0ABBa6B42582b549F7",Moonbeam:"0x25331575641d35D9765e1934acC8F0991c58e904",Solana:"6LNeTYMqtNm1pBFN8PfhQaoLyegAH8GD32WmHU9erXKN",Sui:"0x3a5143bb1196e3bcdfab6203d1683ae29edd26294fc8bfeafe4aaa9d2704df37::coin::COIN",Base:"0x1d36126289Be1658297A35CC3EB2BB80A7D7A04b",Arbitrum:"0x4EdeF400eDe5309240814b5FC403F224504604e9",Optimism:"0xC5B3AC2DF8D8D7AC851F763a5b3Ff23B4A696d59",Blast:"0x2a3DdE20159FbDbC86f1da0e7a462711b610c815",Klaytn:"0x68d5254007BE3a6d3d2A37e2C1ad3921D049F46D",Xlayer:"0xEdF2AEaCE382A3c0722f110c4927d34b78bce34F",Worldchain:"0xfC5011f2037f2Dad9c9aC05CbB6749B383C3099c"}},Arbitrum:{"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1":{Ethereum:"0xb945E3F853B5f8033C8513Cf3cE9F8AD9beBB1c9",Bsc:"0xaA1eEdABC48D078350ccBdD620bD088848e299E5",Polygon:"0x6a5c59AB16268d2c872916054C50440B999e417C",Avalanche:"0xDfDA518A1612030536bD77Fd67eAcbe90dDC52Ab",Fantom:"0xE8367853A0823515D37b1538331B4704089becb4",Celo:"0xc6F962fCcb140ece554AfD0E589f971532A57f14",Solana:"CSD6JQMvLi46psjHdpfFdr826mF336pEVMJgjwcoS1m4",Sui:"0x33744e7df340a4d01c23f6b18c13563f767545ea95f976f8045f056358419da3::coin::COIN",Aptos:"0xe977796d7bfb3263609b90dffd264c7bd078ce35dac42b55302858d9fa3452b::coin::T",Base:"0x9D36e0edb8BBaBeec5edE8a218dc2B9a6Fce494F",Optimism:"0x825206E1D29456337769e6f1384101E997C6A732",Moonbeam:"0x18872b45c603eD2EbC508b9C5514a85c2e2791FB",Klaytn:"0x3CF1751E32c4225CB12ba953786C260C2cE89008"},"0xaf88d065e77c8cC2239327C5EDb3A432268e5831":{Ethereum:"0xCFc006a32a98031C2338BF9d5ff8ED2c0Cae4a9e",Bsc:"0x5caa170b465122D15a6D20FD9A804a9613CE7882",Polygon:"0x7800FE8951cdc1cDea748d878fAce63018D97960",Avalanche:"0x4b5fE357Eb11c735078e47526D6e853DBff18541",Celo:"0xA41a62567d9eb960D84b72663FdaeBE0BCdE2683",Solana:"CR4xnGrhsu1fWNPoX4KbTUUtqGMF3mzRLfj4S6YEs1Yo",Sui:"0xc3f8927de33d3deb52c282a836082a413bc73c6ee0bd4d7ec7e3b6b4c28e9abf::coin::COIN",Aptos:"0xca3a2c28bc8c6c762f752dd2a4ebbfd00356ca99977ce6636e3af5897124a87a::coin::T",Optimism:"0xa6252F56cc6eEA21165d56744C795F91c8a3Cf68",Base:"0xb96B82Cd6D45d98Fb6897D16A5E4EE888329C513",Fantom:"0x2228703672906fEe5eD681Ec28e42B4506b8c336",Moonbeam:"0xbd2B6D665439514EEaA8519f4fE87CC8C46e9167",Klaytn:"0x3d5973fF7288f47857dAa5a32C53976A9A968928",Xlayer:"0xd53bD30985B4125fc561774e388d9f679BB84117"},"0x5979D7b546E38E414F7E9822514be443A4800529":{Bsc:"0x159167e842C586a81f02E55bc043AC8EdB033E0b",Aptos:"0xd2ca17516bc4ca57c1c69577e0c9cc0129153286695b46b97f438ecc138c225e::coin::T",Solana:"8wJakbZuv7WApfHmRo2sdkeQfu6hXqfEqjb7BYXDKpKe",Sui:"0xb607aed1c09e676384d14ae638dbcb08523fc691d309e71c856c7fdcb60d4430::coin::COIN",Base:"0xbE3981b37CcE5eCb6925d2ad9D9E28dE7b165793",Optimism:"0xEae5ccc3c36beF59f6794b467e7e228CB3720415",Fantom:"0xf65BF40A3299Df500D440520dF7e6ce1BEa53E73",Ethereum:"0x906310cE867C22c5016248Bd791FA5dd162c9D6d",Polygon:"0xcf0aa97c2fD78Ee0f0C3090B9EB65d2bd6C1D81a"}},Optimism:{"0x4200000000000000000000000000000000000006":{Fantom:"0xe8E8f941377A955bFA72880ec0dc2319dbC827a8",Celo:"0x8d53771b1Ec7461f8e45Bca2609c45bC0bbd0677",Solana:"8M6d63oL7dvMZ1gNbgGe3h8afMSWJEKEhtPTFM2u8h3c",Sui:"0x0aab14ec22908de73d1b0619f5e03842398f8e68262981bd35ef44b42d22b23a::coin::COIN",Aptos:"0x6a7a7f36ef5e2d0e65fcf72669c20d514d68298b0f76c7554517208f73260aaf::coin::T",Arbitrum:"0xB1fC645a86fB5085e12D8BDDb77702F728D2A26F",Avalanche:"0xDf11535274c0FD2Fe41A88bd1bBF802D72296037",Bsc:"0x94AEc09B5e2CE591e39DC6aa58A3A6E85Ed45265",Ethereum:"0x8B5653Ae095529155462eDa8CF664eD96773F557",Polygon:"0x8182De59485Bb646542Db8C7E5958148Dc699319",Base:"0xCb725aC8d9985D3bE306Dd9e1517d3702929176c",Moonbeam:"0xd4870F7F5AD8Ae5139E1a5D8AD4ac55204aE4490",Klaytn:"0x4ab77AF7059435b71dBC3B7c5255983C8628eFdf"},"0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85":{Fantom:"0x385b219f0C4fa2e84EfE5aaf9692a821C57B8248",Celo:"0xEe48963C003e21EaCEdFA8a0A19BB3cbF7E776Fe",Moonbeam:"0x7143e8EA96e158381057a58AfdDF44601c7e532C",Base:"0xc6bfBeb3002aD563D2d1f72614C61C83Bf147Acd",Arbitrum:"0x3A5C2Da9E30741cb59a5e9446A23A86886fC9DC2",Aptos:"0x4f6ecb05a797902d472abc2f5804bde93a53d8b75f14f767824cdb1623a4ee83::coin::T",Bsc:"0xa41ae127D04F7ee73B5058E2C60Fb7c7A2D21F79",Avalanche:"0xBe04f76A0ba2100c3F2d6Aa1FD8484F415469573",Polygon:"0x31F12aCb60C3c32EE884F3894a873347C097D925",Sui:"0x6037801f060f0f54b3817bca05e3c8b9b9ffaa2da8e93fd5b80fa662aa3c9e55::coin::COIN",Solana:"J8kcD4Wnd1ehne1dpL8WNtgZQR6Jpui2cTZcrmg5ybAa",Klaytn:"0x7Ee2AB1443fDB59AECEa3aDD8F81296d68c2D1e3",Ethereum:"0xe77C99b64414e0fd9aeEA48AFFBBD2E97A895020"},"0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb":{Bsc:"0x1f29fAD000255BF49D72803b2A8FaC8e31947eF8",Base:"0xBb0BeaB819dEAf091C193bE4bBEeA9D5b0F5227C",Arbitrum:"0xf99C5EEd186601955a9a1027536D1b46b1f909F8",Polygon:"0x9065e1D25E65F7A1D60bb6197154386B52faA469",Ethereum:"0xB3ceE6DCa1dD528CB7CC258e32D8B50ce9Ee46f5"}},Base:{"0x4200000000000000000000000000000000000006":{Ethereum:"0x1D4241F7370253C0f12EFC536B7e16E462Fb3526",Bsc:"0x9dc152F4941cE1A138326e70c3600385bf0C22dD",Polygon:"0x5BCf8d8c097FbB35C371F921E3FF3e6F6Eb54B41",Avalanche:"0xFA83178c66fE51ee99109b5cC912f8098Ff812eF",Fantom:"0xd3365E7355230c78098b44B172eE27DAB95B041A",Celo:"0x905CADB645684140E285e2D09D39dF5a2082BC87",Moonbeam:"0x6C6f83366A42fcA4D30a2D3f1914284de995Ac3a",Solana:"DWXe1hxpnb8LAH21iyXcjvMbiAGzoYyuCVQtRLvZdLYd",Sui:"0xaecbc804fa7ca7cffc74c9a05eb6ae86fda0c68375b5c1724204a1065bcb239a::coin::COIN",Aptos:"0x5b5f14781164cf77185a7b6acd8e4f3cbb7e7cfb1cd5760d2b8af81075fc153d::coin::T",Arbitrum:"0xBAfbCB010D920e0Dab9DFdcF634De1B777028a85",Optimism:"0x3F369a664fa665e01e8EB9f20bFcE03A0CAb8971",Mantle:"0x4a2176DE2Fb36485704965bd1Cc471854f21303B",Klaytn:"0x7Bf9ad1D104dEAE4B59Ef1be6a273Cb46BA16362"},"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913":{Solana:"EfqRM8ZGWhDTKJ7BHmFvNagKVu3AxQRDQs8WMMaoBCu6",Moonbeam:"0xE6d02a875CcC153c076fe418f33De3A5C420f505",Celo:"0x2e2acb1782Aad0490f8446b6fD4626C467987bD6",Bsc:"0x55CaD531c8E303Cab8B3BE4bB4744Db4f896ac81",Optimism:"0xb931c7BbD87A6e249EaA7355B13927F9c99Bce87",Arbitrum:"0x8619F97D4d08382548F536E5CE1D3e0D9bA40326",Polygon:"0x1eeCaB0F75fE93abbFa0cDFfb4fB13d1dC8706c8",Avalanche:"0xab933e939a9236BD439F7d29b87CE712f42bAC06",Fantom:"0xd9E4C283d8A49Dc3767A6F5a4dFdc1d0cEf21604",Sui:"0x7e3e74afcc1913aa9491c8cee89b02131a6e5519b090f16b54321835c1241cfb::coin::COIN",Aptos:"0xfcc4fcd734d5b8578fb629d238d15264a49eca6165c7444c21feec3b4962eb88::coin::T",Blast:"0x35a926D55A726cdF70Ac498972F22426363F3C77",Mantle:"0x5D628a3285a10fdd93AEa704007957F294e05F91",Ethereum:"0xc38261846c42C1E1D59E04dA675Eb1974E9cE7b1",Klaytn:"0x0a2330c1C46E9A74e8651F7117a1264410eA3C88",Scroll:"0x22C9bde4Ad49C4b6CCFB8D394B5ED42A57853d58"},"0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452":{Arbitrum:"0x09E79693E44c8813A8CA25EeD7A40e5E24cD9c01",Ethereum:"0x187175c7a526f48c905202Bd2Bf8D25A457F479F",Polygon:"0x95d4C8e851D9E8c6B92aa518474E991c373E9Fb2",Optimism:"0x6ee40855c0BaB20585d17D2b9dd8d2Cd1cd41801",Avalanche:"0x5e513CA12DbD8424bDFc5B50711dF4AE999a8C58"}},Klaytn:{"0xe4f05A66Ec68B54A58B17c22107b02e0232cC817":{Aptos:"0x539b652f8230a0e42adaeda4706b5639893d22362eda6ea897493c210cb48219::coin::T",Ethereum:"0x9AEA32B459e96C8eF5010f69130bf95fd129ac05",Celo:"0xe304254de5c2048F9bFb042dDFB54f84d1d77730",Polygon:"0x415ce980fde17F1FF102e1c6e4ce860Acc615D74",Base:"0x41c433c146c47Dc53FC48cDc69e406e365e298E1",Arbitrum:"0xFA95f6c796E54F9C4a99392CAE84410a25794BB3",Moonbeam:"0xf0a9476E4712123A807859f9Fd25fe98213379BD",Fantom:"0x787e2F3509583C0F03A339Be0826463C839CBE5E",Sui:"0xa5ec915864d7f37b25ca9144b2db6ebcf29e73603c2ccf9d0e765adcd9049a98::coin::COIN",Avalanche:"0x126C03982Ad6D7ef7E6aF020bF219e87185a6BC3",Bsc:"0xEA970e7b7D131Ea36c3051C9Ca11e785462fE00c",Optimism:"0xbbeF8233a0d10EEAb84E913FaDB337ab9b62F683",Solana:"2b8fZGLBZjpxFugCdnJbbLLBYxvx23rsrsvLYYueiHb7",Blast:"0x5F6fE613528df9AE4Bf6f667fbCB923263098617",Scroll:"0xA55FB7A046454998b2f6d8D99Df5F0E108b38229",Worldchain:"0xC080f0082029fC6e8A4Bb33a9B0655B8d4f2BAB0"}},Scroll:{"0x5300000000000000000000000000000000000004":{Arbitrum:"0xAe81a542e20270b48Bd5297E3e0f280f79E46C42"}},Mantle:{"0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8":{Optimism:"0xf704F6a3241609Cfb3E44Db1237E68EB6CaC7C04"}}},_6e={chains:s6e,tokens:j6e,wrappedTokens:k6e,rpcs:B6e,guardianSet:{index:4,keys:["0x5893b5a76c3f739645648885bdccc06cd70a3cd3","0xff6cb952589bde862c25ef4392132fb9d4a42157","0x114de8460193bdf3a2fcf81f86a09765f4762fd1","0x107a0086b32d7a0977926a205131d8731d39cbeb","0x8c82b2fd82faed2711d59af0f2499d16e726f6b2","0x11b39756c042441be6d8650b69b54ebe715e2343","0x54ce5b4d348fb74b958e8966e2ec3dbd4958a7cd","0x15e7caf07c4e3dc8e7c469f92c8cd88fb8005a20","0x74a3bf913953d695260d88bc1aa25a4eee363ef0","0x000ac0076727b35fbea2dac28fee5ccb0fea768e","0xaf45ced136b9d9e24903464ae889f5c8a723fc14","0xf93124b7c738843cbb89e864c862c38cddcccf95","0xd2cc37a4dc036a8d232b48f62cdd4731412f4890","0xda798f6896a3331f64b48c12d1d57fd9cbe70811","0x71aa1be1d36cafe3867910f99c09e347899c19c3","0x8192b6e7387ccd768277c17dab1b7a5027c0b3cf","0x178e21ad2e77ae06711549cfbb1f9c7a9d8096e8","0x5e1487f35515d02a92753504a8d75471b9f49edb","0x6fbebc898f403e4773e95feb15e80c9a99c8348d"]}},{chains:D0}=uv.TESTNET,O6e={Bsc:{...D0.Bsc,displayName:"BSC",explorerUrl:"https://testnet.bscscan.com/",explorerName:"BscScan",chainId:97,icon:"Bsc",symbol:"BSC",sdkName:"Bsc",wrappedGasToken:"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd"},Avalanche:{...D0.Avalanche,displayName:"Fuji",explorerUrl:"https://testnet.avascan.info/blockchain/c/",explorerName:"Avascan",chainId:43113,icon:"Avalanche",symbol:"AVAX",sdkName:"Avalanche",wrappedGasToken:"0xd00ae08403B9bbb9124bB305C09058E32C39A48c"},Fantom:{...D0.Fantom,displayName:"Fantom",explorerUrl:"https://testnet.ftmscan.com/",explorerName:"FtmScan",chainId:4002,icon:"Fantom",symbol:"FTM",sdkName:"Fantom",wrappedGasToken:"0xf1277d1Ed8AD466beddF92ef448A132661956621"},Celo:{...D0.Celo,displayName:"Alfajores",explorerUrl:"https://explorer.celo.org/alfajores/",explorerName:"Celo Explorer",chainId:44787,icon:"Celo",symbol:"CELO",sdkName:"Celo"},Moonbeam:{...D0.Moonbeam,displayName:"Moonbase",explorerUrl:"https://moonbase.moonscan.io/",explorerName:"Moonscan",chainId:1287,icon:"Moonbeam",symbol:"GLMR",sdkName:"Moonbeam",wrappedGasToken:"0xD909178CC99d318e4D46e7E66a972955859670E1"},Solana:{...D0.Solana,displayName:"Solana",explorerUrl:"https://explorer.solana.com/",explorerName:"Solana Explorer",chainId:0,icon:"Solana",symbol:"SOL",sdkName:"Solana",wrappedGasToken:"So11111111111111111111111111111111111111112"},Sui:{...D0.Sui,displayName:"Sui",explorerUrl:"https://suiscan.xyz/testnet/",explorerName:"Suiscan",chainId:0,icon:"Sui",symbol:"SUI",sdkName:"Sui"},Aptos:{...D0.Aptos,displayName:"Aptos",explorerUrl:"https://explorer.aptoslabs.com/",explorerName:"Aptos Explorer",chainId:0,icon:"Aptos",symbol:"APT",sdkName:"Aptos"},Klaytn:{...D0.Klaytn,displayName:"Kaia",explorerUrl:"https://kairos.kaiascope.com/",explorerName:"Kaia Scope",chainId:1001,icon:"Klaytn",symbol:"KLAY",sdkName:"Klaytn",wrappedGasToken:"0x0339d5Eb6D195Ba90B13ed1BCeAa97EbD198b106"},Sepolia:{...D0.Sepolia,displayName:"Sepolia",explorerUrl:"https://sepolia.etherscan.io/",explorerName:"Etherscan",chainId:11155111,icon:"Ethereum",symbol:"ETH",sdkName:"Sepolia",wrappedGasToken:"0xeef12A83EE5b7161D3873317c8E0E7B76e0B5D9c"},ArbitrumSepolia:{...D0.ArbitrumSepolia,displayName:"Arbitrum Sepolia",explorerUrl:"https://sepolia.arbiscan.io/",explorerName:"Etherscan",chainId:421614,icon:"Arbitrum",symbol:"ARB",sdkName:"ArbitrumSepolia",wrappedGasToken:"0x980B62Da83eFf3D4576C647993b0c1D7faf17c73"},BaseSepolia:{...D0.BaseSepolia,displayName:"Base Sepolia",explorerUrl:"https://base-sepolia.blockscout.com/",explorerName:"Etherscan",chainId:84532,icon:"Base",symbol:"BASE",sdkName:"BaseSepolia",wrappedGasToken:"0x4200000000000000000000000000000000000006"},OptimismSepolia:{...D0.OptimismSepolia,displayName:"Optimism Sepolia",explorerUrl:"https://sepolia-optimistic.etherscan.io/",explorerName:"Etherscan",chainId:11155420,icon:"Optimism",symbol:"OP",sdkName:"OptimismSepolia",wrappedGasToken:"0x4200000000000000000000000000000000000006"},Scroll:{...D0.Scroll,displayName:"Scroll",explorerUrl:"https://sepolia.scrollscan.dev/",explorerName:"Scrollscan",chainId:534351,icon:"Scroll",symbol:"SCR",sdkName:"Scroll",wrappedGasToken:"0x5300000000000000000000000000000000000004"},Blast:{...D0.Blast,displayName:"Blast",explorerUrl:"https://testnet.blastscan.io/",explorerName:"Blastscan",chainId:168587773,icon:"Blast",symbol:"BLAST",sdkName:"Blast",wrappedGasToken:"0x9D020B1697035d9d54f115194c9e04a1e4Eb9aF7"},Xlayer:{...D0.Xlayer,displayName:"X Layer",explorerUrl:"https://www.okx.com/web3/explorer/xlayer-test/",explorerName:"OKX Explorer",chainId:195,icon:"Xlayer",symbol:"OKX",sdkName:"Xlayer",wrappedGasToken:"0xa2aFfd8301BfB3c5b815829f2F509f053556D21B"},Mantle:{...D0.Mantle,displayName:"Mantle",explorerUrl:"https://explorer.testnet.mantle.xyz/",explorerName:"Mantle Explorer",chainId:5003,icon:"Mantle",symbol:"MNT",sdkName:"Mantle",wrappedGasToken:"0xa4c4cb2A072eE99f77212Fa18c2B7Ca26DA23905"},Worldchain:{...D0.Worldchain,displayName:"World Chain",explorerUrl:"https://worldchain-sepolia.explorer.alchemy.com/",explorerName:"World Scan",chainId:4801,icon:"Worldchain",sdkName:"Worldchain",symbol:"WORLD"},Unichain:{...D0.Unichain,displayName:"Unichain",explorerUrl:"https://unichain-sepolia.blockscout.com/",explorerName:"Unichain Explorer",chainId:1301,icon:"Unichain",symbol:"UNI",sdkName:"Unichain",wrappedGasToken:"0x4200000000000000000000000000000000000006"},Mezo:{...D0.Mezo,displayName:"Mezo",explorerUrl:"https://explorer.test.mezo.org/",explorerName:"Mezo Explorer",chainId:31611,icon:"Mezo",sdkName:"Mezo",symbol:"MEZO"}},F6e={},{REACT_APP_SEPOLIA_RPC:z6e,REACT_APP_BSC_TESTNET_RPC:R6e,REACT_APP_FUJI_RPC:P6e,REACT_APP_FANTOM_TESTNET_RPC:U6e,REACT_APP_ALFAJORES_RPC:H6e,REACT_APP_SOLANA_DEVNET_RPC:W6e,REACT_APP_MOONBASE_RPC:Y6e,REACT_APP_SUI_TESTNET_RPC:G6e,REACT_APP_APTOS_TESTNET_RPC:$6e,REACT_APP_BASE_SEPOLIA_RPC:V6e,REACT_APP_KLAYTN_TESTNET_RPC:Q6e,REACT_APP_ARBITRUM_SEPOLIA_RPC:q6e,REACT_APP_OPTIMISM_SEPOLIA_RPC:Z6e,REACT_APP_SCROLL_TESTNET_RPC:K6e,REACT_APP_BLAST_TESTNET_RPC:X6e,REACT_APP_XLAYER_TESTNET_RPC:J6e,REACT_APP_MANTLE_TESTNET_RPC:ede,REACT_APP_WORLDCHAIN_TESTNET_RPC:tde,REACT_APP_UNICHAIN_TESTNET_RPC:nde,REACT_APP_MEZO_TESTNET_RPC:rde}=F6e,ide={...wn("Sepolia",z6e),...wn("Bsc",R6e),...wn("Avalanche",P6e),...wn("Fantom",U6e),...wn("Celo",H6e),...wn("Solana",W6e),...wn("Moonbeam",Y6e),...wn("Sui",G6e),...wn("Aptos",$6e),...wn("BaseSepolia",V6e),...wn("ArbitrumSepolia",q6e),...wn("OptimismSepolia",Z6e),...wn("Klaytn",Q6e),...wn("Scroll",K6e),...wn("Blast",X6e),...wn("Xlayer",J6e),...wn("Mantle",ede),...wn("Worldchain",tde),...wn("Unichain",nde),...wn("Mezo",rde)},ade=[{symbol:"BNB",icon:Ue.BNB,decimals:18,tokenId:{chain:"Bsc",address:"native"}},{symbol:"WBNB",icon:Ue.BNB,decimals:18,tokenId:{chain:"Bsc",address:"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd"}},{symbol:"AVAX",icon:Ue.AVAX,decimals:18,tokenId:{chain:"Avalanche",address:"native"}},{symbol:"WAVAX",icon:Ue.AVAX,decimals:18,tokenId:{chain:"Avalanche",address:"0xd00ae08403B9bbb9124bB305C09058E32C39A48c"}},{symbol:"USDC",icon:Ue.USDC,decimals:6,tokenId:{chain:"Avalanche",address:"0x5425890298aed601595a70AB815c96711a31Bc65"}},{symbol:"FTM",icon:Ue.FANTOM,decimals:18,tokenId:{chain:"Fantom",address:"native"}},{symbol:"WFTM",icon:Ue.FANTOM,decimals:18,tokenId:{chain:"Fantom",address:"0xf1277d1Ed8AD466beddF92ef448A132661956621"}},{symbol:"CELO",icon:Ue.CELO,decimals:18,tokenId:{chain:"Celo",address:"0xF194afDf50B03e69Bd7D057c1Aa9e10c9954E4C9"}},{symbol:"USDC.e",icon:Ue.USDC,decimals:6,tokenId:{chain:"Celo",address:"0x72CAaa7e9889E0a63e016748179b43911A3ec9e5"}},{symbol:"GLMR",icon:Ue.GLMR,decimals:18,tokenId:{chain:"Moonbeam",address:"native"}},{symbol:"WGLMR",icon:Ue.GLMR,decimals:18,tokenId:{chain:"Moonbeam",address:"0xD909178CC99d318e4D46e7E66a972955859670E1"}},{symbol:"SOL",icon:Ue.SOLANA,decimals:9,tokenId:{chain:"Solana",address:"native"}},{symbol:"WSOL",tokenId:{chain:"Solana",address:"So11111111111111111111111111111111111111112"},icon:Ue.SOLANA,decimals:9},{symbol:"USDC",tokenId:{chain:"Solana",address:"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU"},icon:Ue.USDC,decimals:6},{symbol:"SUI",tokenId:{chain:"Sui",address:"native"},icon:Ue.SUI,decimals:9},{symbol:"USDC",decimals:6,tokenId:{chain:"Sui",address:"0xa1ec7fc00a6f40db9693ad1415d0c193ad3906494428cf252621037bd7117e29::usdc::USDC"},icon:Ue.USDC},{symbol:"APT",tokenId:{chain:"Aptos",address:"native"},icon:Ue.APT,decimals:8},{symbol:"USDC",decimals:6,tokenId:{chain:"Aptos",address:"0x69091fbab5f7d635ee7ac5098cf0c1efbe31d68fec0f2cd565e8d168daf52832"},icon:Ue.USDC},{symbol:"KLAY",icon:Ue.KLAY,decimals:18,tokenId:{chain:"Klaytn",address:"native"}},{symbol:"WKLAY",name:"wKLAY",icon:Ue.KLAY,decimals:18,tokenId:{chain:"Klaytn",address:"0x0339d5Eb6D195Ba90B13ed1BCeAa97EbD198b106"}},{symbol:"ETH",icon:Ue.ETH,decimals:18,tokenId:{chain:"Sepolia",address:"native"}},{symbol:"WETH",icon:Ue.ETH,decimals:18,tokenId:{chain:"Sepolia",address:"0xeef12A83EE5b7161D3873317c8E0E7B76e0B5D9c"}},{symbol:"USDC",icon:Ue.USDC,decimals:6,tokenId:{chain:"Sepolia",address:"0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238"}},{symbol:"ETH",icon:Ue.ETH,decimals:18,tokenId:{chain:"ArbitrumSepolia",address:"native"}},{symbol:"WETH",icon:Ue.ETH,decimals:18,tokenId:{chain:"ArbitrumSepolia",address:"0x980B62Da83eFf3D4576C647993b0c1D7faf17c73"}},{symbol:"ETH",icon:Ue.ETH,decimals:18,tokenId:{chain:"BaseSepolia",address:"native"}},{symbol:"WETH",icon:Ue.ETH,decimals:18,tokenId:{chain:"BaseSepolia",address:"0x4200000000000000000000000000000000000006"}},{symbol:"ETH",icon:Ue.ETH,decimals:18,tokenId:{chain:"OptimismSepolia",address:"native"}},{symbol:"WETH",icon:Ue.ETH,decimals:18,tokenId:{chain:"OptimismSepolia",address:"0x4200000000000000000000000000000000000006"}},{symbol:"ETH",icon:Ue.SCROLL,decimals:18,tokenId:{chain:"Scroll",address:"native"}},{symbol:"WETH",icon:Ue.SCROLL,decimals:18,tokenId:{chain:"Scroll",address:"0x5300000000000000000000000000000000000004"}},{symbol:"ETH",icon:Ue.BLAST,decimals:18,tokenId:{chain:"Blast",address:"native"}},{symbol:"WETH",icon:Ue.BLAST,decimals:18,tokenId:{chain:"Blast",address:"0x9D020B1697035d9d54f115194c9e04a1e4Eb9aF7"}},{symbol:"OKB",icon:Ue.XLAYER,decimals:18,tokenId:{chain:"Xlayer",address:"native"}},{symbol:"WOKB",icon:Ue.XLAYER,decimals:18,tokenId:{chain:"Xlayer",address:"0xa2aFfd8301BfB3c5b815829f2F509f053556D21B"}},{symbol:"MNT",icon:Ue.MANTLE,decimals:18,tokenId:{chain:"Mantle",address:"native"}},{symbol:"WMNT",icon:Ue.MANTLE,decimals:18,tokenId:{chain:"Mantle",address:"0xa4c4cb2A072eE99f77212Fa18c2B7Ca26DA23905"}},{symbol:"ETH",tokenId:{chain:"Worldchain",address:"native"},decimals:18,icon:Ue.WORLDCHAIN},{symbol:"WETH",tokenId:{chain:"Worldchain",address:"0x4200000000000000000000000000000000000006"},decimals:18,icon:Ue.WORLDCHAIN},{symbol:"ETH",tokenId:{chain:"Unichain",address:"native"},decimals:18,icon:Ue.ETH},{symbol:"WETH",tokenId:{chain:"Unichain",address:"0x4200000000000000000000000000000000000006"},decimals:18,icon:Ue.ETH},{symbol:"USDC",tokenId:{chain:"Unichain",address:"0x31d0220469e10c4E71834a79b1f276d740d3768F"},decimals:6,icon:Ue.USDC},{symbol:"BTC",tokenId:{chain:"Mezo",address:"native"},decimals:18,icon:Ue.BTC}],sde={Bsc:{"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd":{Avalanche:"0x10F1053bF2884b28ee0Bd7a2dDBa237Af3511d29",Fantom:"0xfB174b43228950C2055CFc25AE93f2DCe8E2beF0",Celo:"0xa8050be9389466c3c524F10F131f244ACbf21A0D",Moonbeam:"0x6097E80331B0c6aF4F74D7F2363E70Cb2Fd078A5",Solana:"BaGfF51MQ3a61papTRDYaNefBgTQ9ywnVne5fCff4bxT",Sui:"0xddcf8680a8a4b8a527d8c85ec203274991590c2ea898d1c4635b70164d9c584b::coin::COIN",Aptos:"0xa5894f5ddb8647e6143102aa336ff07374f7b32e88c1c703aef5b7c9a370bf80::coin::T",Klaytn:"0xEFa3626825C33C4cd83850920Ad7Ac0a392E1faE",Sepolia:"0x02CdD5eB55934663F0aD8fbA3516dC7DE4E22894"}},Avalanche:{"0xd00ae08403B9bbb9124bB305C09058E32C39A48c":{Bsc:"0x6cE9E2c8b59bbcf65dA375D3d8AB503c8524caf7",Fantom:"0x0f545Be981C37fB15ab7c65404648761e99016e4",Celo:"0x502c8C83008D9Dd812a7C5fB886C063060C73Dbf",Moonbeam:"0x2E8afeCC19842229358f3650cc3F091908dcbaB4",Solana:"3Ftc5hTz9sG4huk79onufGiebJNDMZNL8HYgdMJ9E7JR",Sui:"0xa600741c469fb57ed01497ddf101e798fa79a9c529bd176675c5c4d970811f80::coin::COIN",Aptos:"0xbe8f4301c0b54e870902b9a23eeb95ce74ac190531782aa3262337ceb145401a::coin::T",Blast:"0x74C6aA987658FcBaB9FdC2ee65f52Ddd5B2cEd95",Klaytn:"0x10257392a2B5e3C4D4bEe1607650a1C0C738202a",Scroll:"0x5Bd1ba0040C16b13894A6EbE3d55708c91eF08bb",Xlayer:"0xb13a464ceE7455A9b2941bFAe1bB1eB5A6833867"},"0x5425890298aed601595a70AB815c96711a31Bc65":{Bsc:"0x1cfeCf72bcBE1E429A21A5B11E708C7c397AaC54",Fantom:"0x6BC4E8D8c1d54656D1DeBCa96efc53aFd1408aD2",Celo:"0xDDB349c976cA2C873644F21f594767Eb5390C831",Moonbeam:"0x6533CE14804D113b1F494dC56c5D60A43cb5C3b5",Solana:"GQtMXZxnuacCFTXVeTvyHi6P9F6chbtzhVc8JgD8hv7c",Sui:"0x2aa8c885d04e676c4e87b7d0f94d4f3b243b1b5d93239d1cc41d5528ce1714c1::coin::COIN",Aptos:"0x2ef7697bdb33361ca39d228671203afc0dea3202e792d79d2072b761d87c834::coin::T"}},Fantom:{"0xf1277d1Ed8AD466beddF92ef448A132661956621":{Bsc:"0x9aB305B792DBdb8253bEE909E7006611Cb45175b",Avalanche:"0x094cB577C21Ab1360178beE74B9591fa12216dAD",Celo:"0xE6F8710cA14CFe7F5aAAD3A799C3d1D92dCba938",Moonbeam:"0x566c1cebc6A4AFa1C122E039C4BEBe77043148Ee",Solana:"DMw2tLaq1bVoAEKtkoUtieSk9bfCPUvubYLatTMsSVop",Sui:"0x14e756ff65e0ac810a5f69ca5276ef5b899a6df3c4717de1f85559d8b5ae6ea6::coin::COIN",Aptos:"0x533c6ade00d15d1e014c41e29e34853e87df92c4e01a6a3f41318dbd098048d6::coin::T",Klaytn:"0x097c8878A0d852581Dc4D8820151094Ddd3663Ac",Sepolia:"0x852132647d301B7EED02589B1dc73545E73c8596"}},Celo:{"0xF194afDf50B03e69Bd7D057c1Aa9e10c9954E4C9":{Bsc:"0x1471698cBD9cAB0228F2EEA9303A2b3aA0ABDC2B",Avalanche:"0xC66d9c2b33c347d4A4441975f4688fcD5DD4c441",Fantom:"0xB18E73a69c3Aaea39a610372537Cf8482622d199",Moonbeam:"0x3406a9b09adf0cb36DC04c1523C4b294C6b79513",Solana:"84F2QX9278ToDmA98u4A86xSV9hz1ovazr8zwGaX6qjS",Sui:"0x81868174a6b11e1acc337b3414f9912455435d486609fb8d50b34312865085f2::coin::COIN",Aptos:"0xecbb0f7e7d049499ca83ca1358344f56557886f6f7adc740d6734cce7bfc9a14::coin::T",Klaytn:"0xC951826bbB310a8160BB78c2eEe6C98246292ba7",Sepolia:"0x648f226f3bDcAEdc844622d604F76935DC05bC24"}},Moonbeam:{"0xD909178CC99d318e4D46e7E66a972955859670E1":{Bsc:"0x5C31B36599ED7f06b09c0ffC7A2F928cE496F046",Avalanche:"0xf080782DF38eD5228D2FC2882d13D56c8f1D6f21",Fantom:"0x41E3CFDFC255A4bF3C8D3560Bc8D3D9b5080338e",Celo:"0x132D2172D89cd9CfD480A8887c6bF92360fB460e",Solana:"8987WGkYa5viiZ9DD8sS3PB5XghKmWjkEgmzvwDuoAEc",Sui:"0xeffae382de96981f7ddd2d294429924827e8f325d612487a12d6a0b249171002::coin::COIN",Aptos:"0x338373b6694f71dbeac5ca4a30503bf5f083888d71678aed31255de416be37c0::coin::T",Sepolia:"0x3F7CD70ECd402BBe71f45A95156A2CAC0d6A822E"}},Solana:{So11111111111111111111111111111111111111112:{Bsc:"0x30f19eBba919954FDc020B8A20aEF13ab5e02Af0",Avalanche:"0xb10563644a6AB8948ee6d7f5b0a1fb15AaEa1E03",Fantom:"0xED1a08Fc69A7008d225890A96aaE258c465CC7ad",Celo:"0x05EEF2AE1A7A938D78598F7d9e8b97A9bED0c9eC",Sui:"0xbc03aaab4c11eb84df8bf39fdc714fa5d5b65b16eb7d155e22c74a68c8d4e17f::coin::COIN",Aptos:"0xdd89c0e695df0692205912fb69fc290418bed0dbe6e4573d744a6d5e6bab6c13::coin::T",Klaytn:"0x48D99C16638E6FFD2ED60375cD35ef6c139e5f41",Moonbeam:"0x5babD0d267Adf2081626654E51d1cABF8c477440",Sepolia:"0x824CB8fC742F8D3300d29f16cA8beE94471169f5"},"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU":{Bsc:"0x51a3cc54eA30Da607974C5D07B8502599801AC08"}},Sui:{native:{Bsc:"0x5A73D76e09Af2E428EC64aE10F91B78AC990B298",Avalanche:"0xfc5128F8556a6F059466E67740e6cC31EE5C2C47",Fantom:"0xd882AB49372eC093E8697B5153f54ab5e7738e3b",Celo:"0xa40d9E69ca9867C4bFbeC11Ce79C939991e9bf26",Solana:"BJZ72CjPQojVoH68mzrd4VQ4nr6KuhbAGnhZEZCujKxY",Aptos:"0x7b22d0e02f653d4fd1caddcfa4719a2b329da56eb81d8f27db703f02466c26a5::coin::T",Moonbeam:"0x2ed4B5B1071A3C676664E9085C0e3826542C1b27",Klaytn:"0xbA5F07a20681Add3A396E7606c6DC9B03d71d28A"}},Aptos:{native:{Bsc:"0x4A7Bd5E135f421057F97BbA8BCeeE5c18334f454",Avalanche:"0x996a3f12C1FcD7339Ea8801f629201e4d42EAD04",Fantom:"0xAb2297E8994149BA91737944E40891881aF762a4",Celo:"0xAC0a2fF7DD597de863878a3372142b07B614C125",Moonbeam:"0xCaa2A1d3BbbA0D1466571e83b4E2CbE04252593D",Solana:"7EvFD3JKCJVdtkAYdaSVKJsrPEJCzy2neJha7TREGrCa",Sui:"0x812d6feb8b84e55d47a0bfcae9fb6a4e7e09be5ec86ce0a729e0f67d5f59f477::coin::COIN"}},Klaytn:{"0x0339d5Eb6D195Ba90B13ed1BCeAa97EbD198b106":{Bsc:"0x79D34FDb686B5D139949E4F92D83EEe376489176",Aptos:"0xa8ffe1ffe3057756019345cdf9cf3d1f1a3d9a355147dd9440878c448a057579::coin::T",Celo:"0x8e50fC4b7F8B7018E72475f78C640F973218C8Cf",Avalanche:"0x84f3298Bcc019BD5B995756494095e1Eb72B565C",Solana:"6p7qTfX4tRFtQovxwT77Jn9HFQEV7nxLbux9C31Tgm23",Fantom:"0x72A1C24dA7F08d11a7668E228Ec287Fc6ec16E48",Sepolia:"0x142D0E977768cA4De6f2161D9E5B5C9F00435F9e",Moonbeam:"0x6eFf019D79D4136e57A7FC141967F3D0AD41089a",Sui:"0xd4a59fb612b162df75a9d190c0f72098dcae883e88bd0eb28667c31f8208dc3c::coin::COIN"}},Sepolia:{"0xeef12A83EE5b7161D3873317c8E0E7B76e0B5D9c":{Solana:"6F5YWWrUMNpee8C6BDUc6DmRvYRMDDTgJHwKhbXuifWs",Celo:"0x890ad4a7eD5bD08b7d6638515157dF3bF4BaD1Bc",Bsc:"0x667a61Efa611399970AE927637dD6f9A16f51e40",Moonbeam:"0xa7276055a1d45fB9982575411801e10ac9970Da8",ArbitrumSepolia:"0x97Ee87C7Db6049669a518730a2Ee60d1Fc58844E",Avalanche:"0x12bFE94230daaE3d48067577F45b7b031dD357f3",Fantom:"0x7F96D67186561Aa17cEb699494E94bEE3F3499D4"},"0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238":{Aptos:"0x3f2912a313c5bea312dbf19f9080101d2e762df6546a6fe9f60a4de72c93d015::coin::T",Solana:"23Adx8na44L3M1Nf9RrUpQPb41eufdRXKseg25FfcJtw",Celo:"0xD6A34325e5F6BE27b7006bf06651444196Da579a",Bsc:"0xb8850F591019F0794F813426d4A4A9b5fB8f23C8",BaseSepolia:"0x3F872340B6A75397aa9b0A463000349962a8795D",ArbitrumSepolia:"0x27B8F40Cf0915e729ae5A96970E91045Fe9724dF",Fantom:"0xa686203C86140142230f44A724281E1BEd09c369",Klaytn:"0x25f2a470a2e1E75DDAc40289AB277eDE4DD98aFa",Sui:"0x6529fef82a8a09470c550a3129bbd889030b62306f0c14161224b1a40ef1346f::coin::COIN"}},OptimismSepolia:{"0x4200000000000000000000000000000000000006":{ArbitrumSepolia:"0xa2610700cCA8361DECD27dB2564848C530f20813"}}},ode={chains:O6e,tokens:ade,wrappedTokens:sde,rpcs:ide,guardianSet:{index:0,keys:["0x13947Bd48b18E53fdAeEe77F3473391aC727C638"]}},{chains:t9}=uv.DEVNET,cde={Ethereum:{...t9.Ethereum,sdkName:"Ethereum",displayName:"EVM",explorerUrl:"",explorerName:"",wrappedGasToken:"0xDDb64fE46a91D46ee29420539FC25FD07c5FEa3E",chainId:1,icon:"Ethereum",symbol:"ETH"},Osmosis:{...t9.Osmosis,displayName:"Osmosis",sdkName:"Osmosis",explorerUrl:"",explorerName:"",wrappedGasToken:"",chainId:"osmosis-1002",icon:"Osmosis",symbol:"OSMO"},Wormchain:{...t9.Wormchain,sdkName:"Wormchain",displayName:"Wormchain",explorerUrl:"",explorerName:"",wrappedGasToken:"",chainId:"wormchain-1",icon:"Osmosis",symbol:"OSMO"},Terra2:{...t9.Terra2,sdkName:"Terra2",displayName:"Terra",explorerUrl:"",explorerName:"",wrappedGasToken:"",chainId:"localterra",icon:"Terra2",symbol:"OSMO"}},lde={},{REACT_APP_ETHEREUM_DEVNET_RPC:ude}=lde,fde={...wn("Ethereum",ude)},dde=[{symbol:"ETH",icon:Ue.ETH,decimals:18,tokenId:{chain:"Ethereum",address:"native"}},{symbol:"WETH",icon:Ue.ETH,decimals:18,tokenId:{chain:"Ethereum",address:"0xDDb64fE46a91D46ee29420539FC25FD07c5FEa3E"}},{symbol:"TKN",icon:Ue.ETH,decimals:18,tokenId:{chain:"Ethereum",address:"0x2D8BE6BF0baA74e0A907016679CaE9190e80dD0A"}}],hde={chains:cde,tokens:dde,wrappedTokens:{},rpcs:fde,guardianSet:{index:0,keys:["0x13947Bd48b18E53fdAeEe77F3473391aC727C638"]}},aq="https://wormholescan.io/#/",pde="2.5.0-beta.13-development",bde="554bf7456e47cc87cb9a8e99c01488fea6bd3a3e",X_=["Ethereum","Solana","Arbitrum","Base","Sui","Bsc","Optimism","Unichain","Fantom","Polygon","Avalanche","Celo","Moonbeam","Klaytn","Scroll","Evmos","Mantle","Berachain","Mezo"];function mde(t){var n;const e=typeof window>"u"||(n=window.location)==null?void 0:n.host;return function(r){const i={meta:{version:pde,hash:bde,host:e},...r};if(console.debug("Wormhole Connect event:",i),t)try{t(i)}catch(a){console.error("Error handling event:",a)}}}const tg=t=>[...Array(t).keys()],sq=(t,e)=>t.map(n=>n[e]),$f=t=>tg(t[0].length).map(e=>tg(t.length).map(n=>t[n][e])),yde=(t,e,n)=>{const r=new Set(Array.isArray(e)?e:[e]);return t.filter((i,a)=>r.has(a)!==n)};function $He(t,e=!1){if(t.length===0)throw new Error("Can't calculate median of empty array");const n=e?t:[...t].sort((s,c)=>s>c?1:s<c?-1:0),r=Math.floor(n.length/2);if(n.length%2===1)return n[r];const i=n[r-1],a=n[r];if(typeof i=="bigint"&&typeof a=="bigint")return(i+a)/2n;if(typeof i=="number"&&typeof a=="number")return(i+a)/2;throw new Error("Can't calculate median of array with mixed number and bigint")}function gde(t){return["string","number","symbol","bigint","boolean"].includes(typeof t)}const J_=t=>t.length===2&&!Array.isArray(t[0])&&Array.isArray(t[1]),ng=t=>t.length===0?[]:Array.isArray(t[0])?t.map(([e,n])=>Array.isArray(n)?(J_(n)?ng(n):n).map(r=>[e,r].flat()):[[e,n]]).flat():J_(t)?ng(t[1]).map(e=>[t[0],e]):t,vde=(t,e)=>{const n=ng(t);if(n.length===0)throw new Error("Invalid mapping: empty");const r=e===void 0?[tg(n[0].length-1),[n[0].length-1]]:e.map(g=>typeof g=="number"?[g]:g);let i=[],a=!0;const s=(g,M)=>{const C=Array.from(new Set(g[0]).values()),T=new Map(C.map(S=>[S,[]]));for(const[S,I]of g[0].entries())T.get(I).push(S);if(g.length===1){const S=Object.fromEntries(C.map(I=>[I,T.get(I).map(N=>M[N].length===1?M[N][0]:M[N])]));if(a){for(const I of T.values())if(I.length>1)return a=!1,S;i.push(S)}return S}const D=$f(g.slice(1));return Object.fromEntries(C.map(S=>{const I=T.get(S),N=$f(I.map(k=>D[k])),B=I.map(k=>M[k]);return[S,s(N,B)]}))},c=$f(n),l=g=>{const M=c[g];if(M===void 0)throw new Error(`Invalid shape: column ${g} does not exist`);return M},[d,p]=r.map(g=>g.map(M=>l(M)));if(d.length===0)throw new Error("Invalid shape: empty key set");if(p.length===0)throw new Error("Invalid shape: empty value set");for(const g of d)for(const M of g)if(!gde(M))throw new Error(`Invalid key: ${M} in ${g}`);const m=s(d,$f(p));if(a)for(const g of i)for(const M of Object.keys(g))g[M]=g[M][0];return m};function pn(t,e){const n=r=>{const i=(...a)=>a.reduce((s,c)=>s?s[c.toString()]??void 0:void 0,r);return Object.assign(i,{has:(...a)=>i(...a)!==void 0,get:(...a)=>i(...a),subMap:a=>n(r[a.toString()])})};return n(vde(t,e))}function IN(t){let e=null;return()=>(e||(e=t()),e)}function Mde(t){try{return t(),!1}catch{return!0}}function VHe(t,e,n){return t<e?e:t>n?n:t}var xde=["int","uint","bytes","array","switch"],oq="big",fv=6,K6=t=>typeof t=="number"||typeof t=="bigint",$h=t=>t instanceof Uint8Array,wde=t=>K6(t)||$h(t),D4=t=>xde.includes(t==null?void 0:t.binary),Ade=t=>D4(t)||Array.isArray(t)&&t.every(D4),Cde=t=>typeof(t==null?void 0:t.from)=="number",Ede=t=>typeof(t==null?void 0:t.from)=="bigint",Sde=t=>Cde(t)||Ede(t),Vh=t=>$h(t==null?void 0:t.from),Tde=t=>Sde(t)||Vh(t),cq=(t,e)=>{if(t!==e)throw new Error(`size mismatch: layout size: ${t}, data size: ${e}`);return e},jm=(t,e)=>"size"in t&&t.size!==void 0?cq(t.size,e):e,SS=(t,e)=>{if(t!=e)throw new Error(`value mismatch: (constant) layout value: ${t}, data value: ${e}`)},TS=(t,e,n)=>{const r=(d,p)=>p===void 0?[0,d.length]:Array.isArray(p)?p:[p,d.length],[i,a]=r(t,n==null?void 0:n.customSlice),[s,c]=r(e,n==null?void 0:n.dataSlize),l=a-i;cq(l,c-s);for(let d=0;d<t.length;++d)if(t[d+i]!==e[d+s])throw new Error(`binary data mismatch: layout value: ${t}, offset: ${i}, data value: ${e}, offset: ${s}`)};function lq(t,e){const n=e[t.idTag??"id"];return t.layouts.find(([r])=>(Array.isArray(r)?r[1]:r)==n)}function uq(t){return Tf(t,Os)}var Os=Symbol("staticCalc");function Ide(t,e){const n=[],r=Tf(t,e,n);if(r===null)throw new Error(`coding error: couldn't calculate layout size for layout ${t} with data ${e}`);return[r,n]}function eO(t,e,n){const r=i=>(n!==void 0&&n.push(i),i);switch(t.binary){case"int":case"uint":return t.size;case"bytes":{const i="lengthSize"in t?t.lengthSize|0:0;if("layout"in t){const{custom:s}=t,c=Tf(t.layout,s===void 0?e:typeof s.from=="function"?e!==Os?r(s.from(e)):Os:s.from,n);return c===null?"size"in t?t.size??null:null:i+jm(t,c)}const{custom:a}=t;return $h(a)?i+a.length:Vh(a)?i+a.from.length:a===void 0?e!==Os?i+jm(t,e.length):null:e!==Os?i+jm(t,r(a.from(e)).length):null}case"array":{const i="length"in t?t.length:void 0;if(e===Os){if(i!==void 0){const s=Tf(t.layout,Os,n);return s!==null?i*s:null}return null}let a=0;if(i!==void 0&&i!==e.length)throw new Error(`array length mismatch: layout length: ${i}, data length: ${e.length}`);"lengthSize"in t&&t.lengthSize!==void 0&&(a+=t.lengthSize);for(let s=0;s<e.length;++s){const c=Tf(t.layout,e[s],n);if(c===null)return null;a+=c}return a}case"switch":{if(e!==Os){const[a,s]=lq(t,e),c=Tf(s,e,n);return c!==null?t.idSize+c:null}let i=null;for(const[a,s]of t.layouts){const c=Tf(s,Os,n);if(i===null)i=c;else if(c!==i)return null}return t.idSize+i}}}function Tf(t,e,n){if(D4(t))return eO(t,e,n);let r=0;for(const i of t){let a;if(e===Os)a=Os;else if(!("omit"in i)||!i.omit){if(!(i.name in e))throw new Error(`missing data for layout item: ${i.name}`);a=e[i.name]}const s=eO(i,a,n);if(s===null){if(e!==Os)throw new Error(`coding error: couldn't calculate size for layout item: ${i.name}`);return null}r+=s}return r}var Rx=(t,e)=>{t.bytes.set(e,t.offset),t.offset+=e.length},tO=t=>t.bytesConversions[t.position++];function oo(t,e,n){const[r,i]=Ide(t,e),a={bytes:n??new Uint8Array(r),offset:0};if(km(t,e,a,{bytesConversions:i,position:0}),a.offset!==a.bytes.length)throw new Error(`encoded data is shorter than expected: ${a.bytes.length} > ${a.offset}`);return n?a.offset:a.bytes}var Dde=2**(fv*8);function Vf(t,e,n,r=oq,i=!1){if(!i&&t<0)throw new Error(`Value ${t} is negative but unsigned`);if(typeof t=="number"){if(!Number.isInteger(t))throw new Error(`Value ${t} is not an integer`);if(e>fv){if(t>=Dde)throw new Error(`Value ${t} is too large to be safely converted into an integer`);if(i&&t<-281474976710656)throw new Error(`Value ${t} is too small to be safely converted into an integer`)}}const a=2n**BigInt(e*8-(i?1:0));if(t>=a)throw new Error(`Value ${t} is too large for ${e} bytes`);if(i&&t<-a)throw new Error(`Value ${t} is too small for ${e} bytes`);for(let s=0;s<e;++s)n.bytes[n.offset+s]=Number(BigInt(t)>>BigInt(8*(r==="big"?e-s-1:s))&0xffn);n.offset+=e}function km(t,e,n,r){if(D4(t))nO(t,e,n,r);else for(const i of t)try{nO(i,e[i.name],n,r)}catch(a){throw a.message=`when serializing item '${i.name}': ${a.message}`,a}}function nO(t,e,n,r){switch(t.binary){case"int":case"uint":{const i=(()=>{var a;return K6(t.custom)?("omit"in t&&t.omit||SS(t.custom,e),t.custom):K6((a=t==null?void 0:t.custom)==null?void 0:a.from)?t.custom.from:t.custom!==void 0?t.custom.from(e):e})();Vf(i,t.size,n,t.endianness,t.binary==="int");break}case"bytes":{const i=n.offset;if("lengthSize"in t&&t.lengthSize!==void 0&&(n.offset+=t.lengthSize),"layout"in t){const{custom:a}=t;let s;a===void 0?s=e:typeof a.from!="function"?s=a.from:s=tO(r),km(t.layout,s,n,r)}else{const{custom:a}=t;$h(a)?("omit"in t&&t.omit||TS(a,e),Rx(n,a)):Vh(a)?Rx(n,a.from):Rx(n,a!==void 0?tO(r):e)}if("lengthSize"in t&&t.lengthSize!==void 0){const a=n.offset-i-t.lengthSize,s=n.offset;n.offset=i,Vf(a,t.lengthSize,n,t.lengthEndianness),n.offset=s}else jm(t,n.offset-i);break}case"array":{if("length"in t&&t.length!==e.length)throw new Error(`array length mismatch: layout length: ${t.length}, data length: ${e.length}`);"lengthSize"in t&&t.lengthSize!==void 0&&Vf(e.length,t.lengthSize,n,t.lengthEndianness);for(let i=0;i<e.length;++i)km(t.layout,e[i],n,r);break}case"switch":{const[i,a]=lq(t,e),s=Array.isArray(i)?i[0]:i;Vf(s,t.idSize,n,t.idEndianness),km(a,e,n,r);break}}}function fq(t){const e=t.custom;if(!("cachedSerializedFrom"in e)&&(e.cachedSerializedFrom=oo(t.layout,e.from),"size"in t&&t.size!==void 0&&t.size!==e.cachedSerializedFrom.length))throw new Error("Layout specification error: custom.from does not serialize to specified size");return e.cachedSerializedFrom}function co(t,e,n){const r=n??!0,i={bytes:e,offset:0,end:e.length},a=l3(t,i);if(r&&i.offset!==i.end)throw new Error(`encoded data is longer than expected: ${i.end} > ${i.offset}`);return r?a:[a,i.offset]}function _m(t,e){const n=t.offset+e;if(n>t.end)throw new Error(`chunk is shorter than expected: ${t.end} < ${n}`);t.offset=n}function l3(t,e){if(!Array.isArray(t))return rO(t,e);let n={};for(const r of t)try{(r.omit?{}:n)[r.name]=rO(r,e)}catch(i){throw i.message=`when deserializing item '${r.name}': ${i.message}`,i}return n}function n9(t,e,n=oq,r=!1){let i=0n;for(let a=0;a<e;++a)i|=BigInt(t.bytes[t.offset+a])<<BigInt(8*(n==="big"?e-a-1:a));return r&&t.bytes[t.offset+(n==="big"?0:e-1)]&128&&(i-=1n<<BigInt(8*e)),_m(t,e),e>fv?i:Number(i)}function rO(t,e){switch(t.binary){case"int":case"uint":{const n=n9(e,t.size,t.endianness,t.binary==="int"),{custom:r}=t;return K6(r)?(SS(r,n),r):K6(r==null?void 0:r.from)?(SS(r.from,n),r.to):r!==void 0?r.to(n):n}case"bytes":{const n="lengthSize"in t&&t.lengthSize!==void 0?n9(e,t.lengthSize,t.lengthEndianness):t==null?void 0:t.size;if("layout"in t){const{custom:c}=t,l=e.offset;let d;if(n===void 0)d=l3(t.layout,e);else{const p={...e,end:e.offset+n};if(_m(e,n),d=l3(t.layout,p),p.offset!==p.end)throw new Error(`read less data than expected: ${p.offset-e.offset} < ${n}`)}return c!==void 0?typeof c.from!="function"?(TS(fq(t),e.bytes,{dataSlize:[l,e.offset]}),c.to):c.to(d):d}const{custom:r}=t;{let c,l;if($h(r)?c=r:Vh(r)&&(c=r.from,l=r.to),c!==void 0){const d=n??c.length,p=e.bytes.subarray(e.offset,e.offset+d);return TS(c,p),_m(e,d),l??c}}const i=e.offset,a=n!==void 0?e.offset+n:e.end;_m(e,a-i);const s=e.bytes.subarray(i,a);return r!==void 0?r.to(s):s}case"array":{let n=[];const{layout:r}=t,i=()=>{const s=l3(r,e);n.push(s)};let a=null;if("length"in t&&t.length!==void 0?a=t.length:"lengthSize"in t&&t.lengthSize!==void 0&&(a=n9(e,t.lengthSize,t.lengthEndianness)),a!==null)for(let s=0;s<a;++s)i();else for(;e.offset<e.end;)i();return n}case"switch":{const n=n9(e,t.idSize,t.idEndianness),{layouts:r}=t;if(r.length===0)throw new Error("switch item has no layouts");const i=typeof r[0][0]=="number",a=r.find(([d])=>i?d===n:d[0]===n);if(a===void 0)throw new Error(`unknown id value: ${n}`);const[s,c]=a,l=l3(c,e);return{[t.idTag??"id"]:i?n:s[1],...l}}}}function iO(t,e){return Om(t,e)}function aO(t,e){switch(t.binary){case"bytes":if("layout"in t){const{custom:n}=t;return n===void 0||typeof n.from!="function"?Om(t.layout,n?n.from:e):e}case"int":case"uint":{const{custom:n}=t;return t!=null&&t.omit?void 0:wde(n)?n:Tde(n)?n.to:e}case"array":return Array.isArray(e)?e.map(n=>Om(t.layout,n)):void 0;case"switch":{const n=e[t.idTag??"id"],[r,i]=t.layouts.find(([a])=>(Array.isArray(a)?a[1]:a)==n);return{[t.idTag??"id"]:n,...Om(i,e)}}}}function Om(t,e){if(e=e??{},D4(t))return aO(t,e);const n={};for(const r of t){const i=aO(r,e[r.name]??{});i!==void 0&&(n[r.name]=i)}return n}function Nde(t,e){const[n,r]=Bde(t);if(!n)throw new Error("Cannot uniquely distinguished the given layouts");return i=>{const a=r(i);return a.length===0?null:a[0]}}function IS(t){return t.reduce((e,n)=>e|BigInt(1)<<BigInt(n),BigInt(0))}function r9(t){const e=[];for(let n=0n;t>0n;t>>=1n,++n)t&1n&&e.push(Number(n));return e}function R0(t){let e=0;for(;t>0n;t>>=1n)e+=Number(t&1n);return e}var sO=t=>t>0?2**(8*t)-1:1/0;function oO(t,e,n){var r;switch(t.binary){case"int":case"uint":{const i=K6(t.custom)?t.custom:K6((r=t==null?void 0:t.custom)==null?void 0:r.from)?t.custom.from:null;if(i!==null&&e!==null){const a={bytes:new Uint8Array(t.size),offset:0};Vf(i,t.size,a,t.endianness,t.binary==="int"),n.push([e,a.bytes])}return[t.size,t.size]}case"bytes":{const i="lengthSize"in t?t.lengthSize|0:0;let a,s;if("layout"in t){const{custom:l}=t;if(l!==void 0&&typeof l.from!="function")a=fq(t),s=a.length;else{const d=uq(t.layout);d!==null&&(s=d)}}else{const{custom:l}=t;$h(l)?(a=l,s=l.length):Vh(l)&&(a=l.from,s=l.from.length)}if(i>0&&e!==null){if(s!==void 0){const l={bytes:new Uint8Array(i),offset:0},d=t.lengthEndianness;Vf(s,i,l,d,!1),n.push([e,l.bytes])}e+=i}if(a!==void 0)return e!==null&&n.push([e,a]),[i+a.length,i+a.length];const c="size"in t&&t.size!==void 0?[t.size,t.size]:void 0;if("layout"in t){const l=Fm(t.layout,e,n);return c??[i+l[0],i+l[1]]}return c??[i,sO(i)]}case"array":{if("length"in t){let a=[];const s=Fm(t.layout,0,a);if(e!==null)if(s[0]!==s[1]){if(t.length>0)for(const[c,l]of a)n.push([e+c,l])}else for(let c=0;c<t.length;++c)for(const[l,d]of a)n.push([e+l+c*s[0],d]);return[t.length*s[0],t.length*s[1]]}const i=t.lengthSize|0;return[i,sO(i)]}case"switch":{const i=t.layouts.map(l=>[]),{idSize:a,idEndianness:s}=t,c=t.layouts.map(([l,d],p)=>{const m=Array.isArray(l)?l[0]:l;if(e!==null){const M={bytes:new Uint8Array(a),offset:0};Vf(m,a,M,s),i[p].push([0,M.bytes])}const g=Fm(d,e!==null?a:null,i[p]);return[g[0]+a,g[1]+a]});return e!==null&&i.every(l=>l.length>0)&&(()=>{const l=Math.min(...i.map(p=>p.at(-1)[0]+p.at(-1)[1].length)),d=i.map(p=>0);for(let p=0;p<l;){let m=null,g=0;for(;g<i.length;){let M=d[g];const C=i[g],[T,D]=C[M];if(T+D.length<=p){if(++M,M===C.length)return;d[g]=M,p=C[M][0];break}const S=D[p-T];if(m===null&&(m=S),S!==m){++p;break}++g}g===i.length&&(n.push([e+p,new Uint8Array([m])]),++p)}})(),[Math.min(...c.map(([l])=>l)),Math.max(...c.map(([l,d])=>d))]}}}function Fm(t,e,n){if(!Array.isArray(t))return oO(t,e,n);let r=[0,0];for(const i of t){const a=oO(i,e,n);r[0]+=a[0],r[1]+=a[1],e!==null&&(e=a[0]===a[1]?e+a[0]:null)}return r}function Lde(t){const e=new Map;let n=[];const r=i=>{for(;n.length>0&&n[0][0]<i;){const a=n[0][0]+1,s=n.findIndex(([c])=>a<=c);s===-1?n=[]:n.splice(0,s),e.set(a,IS(n.map(([,c])=>c)))}};for(const[[i,a],s]of t){r(i);const c=n.findIndex(([l])=>l>a);c===-1?n.push([a,s]):n.splice(c,0,[a,s]),e.set(i,IS(n.map(([,l])=>l)))}return r(1/0),e}function Bde(t){if(t.length===0)throw new Error("Cannot discriminate empty set of layouts");const e=0n,n=(1n<<BigInt(t.length))-1n,r=t.map(()=>[]),i=t.map((N,B)=>Fm(N,0,r[B])),a=i.map((N,B)=>[N,B]).sort(([[N]],[[B]])=>N-B),s=(()=>{let N=n;const B=new Map;for(const[[k],O]of a)N^=1n<<BigInt(O),B.set(k,N);return B})(),c=Lde(a),l=t.length-Math.max(...[...c.values()].map(N=>R0(N))),d=N=>{let B=n;for(const[k,O]of s){if(N<k)break;B=O}return B},p=N=>{let B=e;for(const[k,O]of c){if(N<k)break;B=O}return B},m=Array.from({length:Math.max(...r.map(N=>N.length>0?N.at(-1)[0]+N.at(-1)[1].length:0))}).map(()=>[]);for(let N=0;N<r.length;++N)for(const[B,k]of r[N])for(let O=0;O<k.length;++O)m[B+O].push([k[O],N]);let g=[];for(const[N,B]of m.entries()){const k=d(N),O=k^IS(B.map(([,R])=>R)),z=n^k,_=new Map;for(const[R,w]of B)_.has(R)||_.set(R,e),_.set(R,_.get(R)|1n<<BigInt(w));let F=t.length-Math.max(R0(O),R0(z));for(const R of _.values()){const w=B.length-R0(R)+R0(z);F=Math.min(F,w)}if(F!==0){if(F===t.length-1)return[!0,R=>r9(R.length<=N?z:_.get(R[N])??e)];g.push([F,N,z,_,O])}}if(l===t.length-1)return[!0,N=>r9(p(N.length))];g.sort(([N],[B])=>B-N);let M=!0;const C=new Map,T=new Map,D=(N,B)=>{C.set(N,B),T.has(R0(N))||T.set(R0(N),[]),T.get(R0(N)).push(N)},S=(N,B)=>{if(R0(N)<=1||C.has(N))return;let k=0;const O=new Map;for(const _ of r9(N)){const F=i[_][0],R=c.get(F)&N;O.set(F,R),k=Math.max(k,R0(R))}k=R0(N)-k;const z=[];for(const[_,F,R,w,o]of B){const u=new Map;let h=0;for(const[x,E]of w){const v=E&N;R0(v)>0&&(u.set(x,v),h+=R0(v))}const b=R&N;let y=u.size>0?_:0;for(const x of u.values()){const E=h-R0(x)+R0(b);y=Math.min(y,E)}if(y!==0){if(y===R0(N)-1){D(N,[F,b,u]);return}z.push([y,F,b,u,o&N])}}if(k===R0(N)-1){D(N,"size");return}if(z.sort(([_],[F])=>F-_),z.length>0&&z[0][0]>=k){const[,_,F,R,w]=z[0];D(N,[_,F,R]),S(F,z);for(const o of R.values())S(o|w,z.slice(1));return}if(k>0){D(N,"size");for(const _ of O.values())S(_,z);return}D(N,"indistinguishable"),M=!1};S(n,g);const I=N=>{for(let B=R0(N)+1;B<t.length-2;++B)for(const k of T.get(B)??[])if((N&k)==N)return C.get(k);throw new Error("Implementation error in layout discrimination algorithm")};return[M,N=>{let B=n,k=C.get(B);for(;k!=="indistinguishable";){if(k==="size")B&=p(N.length);else{const[O,z,_]=k;if(N.length<=O)B&=z;else{const F=N[O];for(const[R,w]of _)R!==F&&(B^=B&w);B^=B&z}}if(R0(B)<=1)break;k=C.get(B)??I(B)}return r9(B)}]}var X6=(t,e)=>({...t,binary:"bytes",...e===void 0?{}:Ade(e)?{layout:e}:e instanceof Uint8Array||Vh(e)||!Array.isArray(e)?{custom:e}:{layout:e[0],custom:e[1]}});function jde(t,e){const n=Object.fromEntries(t.map(([i,a])=>[a,i])),r=Object.fromEntries(t);return{binary:"uint",size:(e==null?void 0:e.size)??1,endianness:(e==null?void 0:e.endianness)??"big",custom:{to:i=>{const a=n[i];if(a===void 0)throw new Error(`Invalid enum value: ${i}`);return a},from:i=>r[i]}}}function kde(t,e){return{binary:"uint",size:Math.ceil(t.length/8),custom:{to:n=>{const r={};for(let i=0;i<t.length;++i)t[i]&&(r[t[i]]=(BigInt(n)&1n<<BigInt(i))!==0n);return r},from:n=>{let r=0n;for(let i=0;i<t.length;++i)t[i]&&n[t[i]]&&(r|=1n<<BigInt(i));return t.length>fv?r:Number(r)}}}}function _de(t,e){return Number(Number(t).toFixed(e))}function B6(t,e){if(Ode(t,e),t=t.toString(),t.includes("e"))throw new Error("Scientific notation is not supported yet by Amount");const n=t.split(".");if(n.length>2)throw"Too many decimals";let[r,i]=n.length===0?["0",""]:n.length===1?[n[0],""]:n;if(i=i.padEnd(e,"0"),i.length>e){if(BigInt(i.substring(e))!==0n)throw new Error("Amount: invalid input. Decimals too low.");i=i.substring(0,e)}return{amount:BigInt(r+i).toString(),decimals:e}}function ca(t,e){if(t.decimals<=e)return t;const n=BigInt(t.decimals-e);return{amount:(gn(t)/10n**n*10n**n).toString(),decimals:t.decimals}}function _u(t,e){if(t.decimals===e)return t;if(t.amount==="0")return{amount:t.amount,decimals:e};const n=e-t.decimals;if(n>0)return{amount:t.amount+"0".repeat(n),decimals:e};if(BigInt(t.amount.substring(t.amount.length+n))===0n)return{amount:t.amount.substring(0,t.amount.length+n),decimals:e};throw new Error(`scaleAmount(${JSON.stringify(t)}, ${e}) would result in altered amount. Use truncateAmount first if you intended to truncate it.`)}function Sr(t,e){return{amount:t.toString(),decimals:e}}function gn(t){return dq(t),BigInt(t.amount)}function y0(t,e){dq(t);let n=t.amount.substring(0,t.amount.length-t.decimals).padStart(1,"0"),r=t.amount.substring(t.amount.length-t.decimals).padStart(t.decimals,"0");if(e!==void 0){for(;r.length>e&&r[r.length-1]==="0";)r=r.substring(0,r.length-1);r=r.padEnd(e,"0")}else r=r.replace(/0+$/,"");return r.length>0?`${n}.${r}`:n}function Fo(t){return Number(y0(t))}function cO(t,e){return y0(Sr(t,e))}function Ode(t,e){if(typeof t=="number"){if(!isFinite(t))throw new Error("Amount: invalid input. Amount must be finite");if(t<0)throw new Error("Amount: invalid input. Amount cannot be negative")}else if(!/^[0-9\.]*$/.test(t))throw new Error("Amount: invalid input. Must only contain digits.");if(!isFinite(e))throw new Error("Amount: invalid input. Decimals must be finite")}function dq(t){if(!/^[0-9]*$/.test(t.amount))throw new Error("Amount: invalid input. Must only contain digits.");if(t.decimals<0)throw new Error("Amount: invalid input. Decimals must be >= 0");if(!isFinite(t.decimals))throw new Error("Amount: invalid input. Decimals must be a finite number.")}const eh=(t=0,e=0,n=0)=>new Date(Date.now()+(t*60*60+e*60+n)*1e3);/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */function N4(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"}function hq(t,e){return Array.isArray(e)?e.length===0?!0:t?e.every(n=>typeof n=="string"):e.every(n=>Number.isSafeInteger(n)):!1}function pq(t){if(typeof t!="function")throw new Error("function expected");return!0}function th(t,e){if(typeof e!="string")throw new Error(`${t}: string expected`);return!0}function Qh(t){if(!Number.isSafeInteger(t))throw new Error(`invalid integer: ${t}`)}function rg(t){if(!Array.isArray(t))throw new Error("array expected")}function ig(t,e){if(!hq(!0,e))throw new Error(`${t}: array of strings expected`)}function DN(t,e){if(!hq(!1,e))throw new Error(`${t}: array of numbers expected`)}function $p(...t){const e=a=>a,n=(a,s)=>c=>a(s(c)),r=t.map(a=>a.encode).reduceRight(n,e),i=t.map(a=>a.decode).reduce(n,e);return{encode:r,decode:i}}function dv(t){const e=typeof t=="string"?t.split(""):t,n=e.length;ig("alphabet",e);const r=new Map(e.map((i,a)=>[i,a]));return{encode:i=>(rg(i),i.map(a=>{if(!Number.isSafeInteger(a)||a<0||a>=n)throw new Error(`alphabet.encode: digit index outside alphabet "${a}". Allowed: ${t}`);return e[a]})),decode:i=>(rg(i),i.map(a=>{th("alphabet.decode",a);const s=r.get(a);if(s===void 0)throw new Error(`Unknown letter: "${a}". Allowed: ${t}`);return s}))}}function hv(t=""){return th("join",t),{encode:e=>(ig("join.decode",e),e.join(t)),decode:e=>(th("join.decode",e),e.split(t))}}function Fde(t,e="="){return Qh(t),th("padding",e),{encode(n){for(ig("padding.encode",n);n.length*t%8;)n.push(e);return n},decode(n){ig("padding.decode",n);let r=n.length;if(r*t%8)throw new Error("padding: invalid, string should have whole number of bytes");for(;r>0&&n[r-1]===e;r--)if((r-1)*t%8===0)throw new Error("padding: invalid, string has too much padding");return n.slice(0,r)}}}function lO(t,e,n){if(e<2)throw new Error(`convertRadix: invalid from=${e}, base cannot be less than 2`);if(n<2)throw new Error(`convertRadix: invalid to=${n}, base cannot be less than 2`);if(rg(t),!t.length)return[];let r=0;const i=[],a=Array.from(t,c=>{if(Qh(c),c<0||c>=e)throw new Error(`invalid integer: ${c}`);return c}),s=a.length;for(;;){let c=0,l=!0;for(let d=r;d<s;d++){const p=a[d],m=e*c,g=m+p;if(!Number.isSafeInteger(g)||m/e!==c||g-p!==m)throw new Error("convertRadix: carry overflow");const M=g/n;c=g%n;const C=Math.floor(M);if(a[d]=C,!Number.isSafeInteger(C)||C*n+c!==g)throw new Error("convertRadix: carry overflow");if(l)C?l=!1:r=d;else continue}if(i.push(c),l)break}for(let c=0;c<t.length-1&&t[c]===0;c++)i.push(0);return i.reverse()}const bq=(t,e)=>e===0?t:bq(e,t%e),ag=(t,e)=>t+(e-bq(t,e)),zm=(()=>{let t=[];for(let e=0;e<40;e++)t.push(2**e);return t})();function DS(t,e,n,r){if(rg(t),e<=0||e>32)throw new Error(`convertRadix2: wrong from=${e}`);if(n<=0||n>32)throw new Error(`convertRadix2: wrong to=${n}`);if(ag(e,n)>32)throw new Error(`convertRadix2: carry overflow from=${e} to=${n} carryBits=${ag(e,n)}`);let i=0,a=0;const s=zm[e],c=zm[n]-1,l=[];for(const d of t){if(Qh(d),d>=s)throw new Error(`convertRadix2: invalid data word=${d} from=${e}`);if(i=i<<e|d,a+e>32)throw new Error(`convertRadix2: carry overflow pos=${a} from=${e}`);for(a+=e;a>=n;a-=n)l.push((i>>a-n&c)>>>0);const p=zm[a];if(p===void 0)throw new Error("invalid carry");i&=p-1}if(i=i<<n-a&c,!r&&a>=e)throw new Error("Excess padding");if(!r&&i>0)throw new Error(`Non-zero padding: ${i}`);return r&&a>0&&l.push(i>>>0),l}function zde(t){Qh(t);const e=2**8;return{encode:n=>{if(!N4(n))throw new Error("radix.encode input should be Uint8Array");return lO(Array.from(n),e,t)},decode:n=>(DN("radix.decode",n),Uint8Array.from(lO(n,t,e)))}}function NN(t,e=!1){if(Qh(t),t<=0||t>32)throw new Error("radix2: bits should be in (0..32]");if(ag(8,t)>32||ag(t,8)>32)throw new Error("radix2: carry overflow");return{encode:n=>{if(!N4(n))throw new Error("radix2.encode input should be Uint8Array");return DS(Array.from(n),8,t,!e)},decode:n=>(DN("radix2.decode",n),Uint8Array.from(DS(n,t,8,e)))}}function uO(t){return pq(t),function(...e){try{return t.apply(null,e)}catch{}}}function Rde(t,e){return Qh(t),pq(e),{encode(n){if(!N4(n))throw new Error("checksum.encode: input should be Uint8Array");const r=e(n).slice(0,t),i=new Uint8Array(n.length+t);return i.set(n),i.set(r,n.length),i},decode(n){if(!N4(n))throw new Error("checksum.decode: input should be Uint8Array");const r=n.slice(0,-t),i=n.slice(-t),a=e(r).slice(0,t);for(let s=0;s<t;s++)if(a[s]!==i[s])throw new Error("Invalid checksum");return r}}}const fO=$p(NN(4),dv("0123456789ABCDEF"),hv("")),dO=$p(NN(6),dv("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),Fde(6),hv("")),Pde=t=>$p(zde(58),dv(t),hv("")),NS=Pde("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),QHe=t=>$p(Rde(4,e=>t(t(e))),NS),LS=$p(dv("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),hv("")),hO=[996825010,642813549,513874426,1027748829,705979059];function _8(t){const e=t>>25;let n=(t&33554431)<<5;for(let r=0;r<hO.length;r++)(e>>r&1)===1&&(n^=hO[r]);return n}function pO(t,e,n=1){const r=t.length;let i=1;for(let a=0;a<r;a++){const s=t.charCodeAt(a);if(s<33||s>126)throw new Error(`Invalid prefix (${t})`);i=_8(i)^s>>5}i=_8(i);for(let a=0;a<r;a++)i=_8(i)^t.charCodeAt(a)&31;for(let a of e)i=_8(i)^a;for(let a=0;a<6;a++)i=_8(i);return i^=n,LS.encode(DS([i%zm[30]],30,5,!1))}function Ude(t){const e=t==="bech32"?1:734539939,n=NN(5),r=n.decode,i=n.encode,a=uO(r);function s(m,g,M=90){th("bech32.encode prefix",m),N4(g)&&(g=Array.from(g)),DN("bech32.encode",g);const C=m.length;if(C===0)throw new TypeError(`Invalid prefix length ${C}`);const T=C+7+g.length;if(M!==!1&&T>M)throw new TypeError(`Length ${T} exceeds limit ${M}`);const D=m.toLowerCase(),S=pO(D,g,e);return`${D}1${LS.encode(g)}${S}`}function c(m,g=90){th("bech32.decode input",m);const M=m.length;if(M<8||g!==!1&&M>g)throw new TypeError(`invalid string length: ${M} (${m}). Expected (8..${g})`);const C=m.toLowerCase();if(m!==C&&m!==m.toUpperCase())throw new Error("String must be lowercase or uppercase");const T=C.lastIndexOf("1");if(T===0||T===-1)throw new Error('Letter "1" must be present between prefix and data only');const D=C.slice(0,T),S=C.slice(T+1);if(S.length<6)throw new Error("Data must be at least 6 characters long");const I=LS.decode(S).slice(0,-6),N=pO(D,I,e);if(!S.endsWith(N))throw new Error(`Invalid checksum in ${m}: expected "${N}"`);return{prefix:D,words:I}}const l=uO(c);function d(m){const{prefix:g,words:M}=c(m,!1);return{prefix:g,words:M,bytes:r(M)}}function p(m,g){return s(m,i(g))}return{encode:s,decode:c,encodeFromBytes:p,decodeToBytes:d,decodeUnsafe:l,fromWords:r,fromWordsUnsafe:a,toWords:i}}const M5=Ude("bech32"),mq=(t,e)=>e.startsWith(t)?e.slice(t.length):e,Hde=/^(?:0x)?[0-9a-fA-F]+$/,dr={valid:t=>Hde.test(t),decode:t=>fO.decode(mq("0x",t).toUpperCase()),encode:(t,e=!1)=>(t=typeof t=="string"?Tr.encode(t):t,(e?"0x":"")+fO.encode(t).toLowerCase())},Wde=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,Vp={valid:t=>Wde.test(t),decode:dO.decode,encode:t=>dO.encode(typeof t=="string"?Tr.encode(t):t)},yq={decode:NS.decode,encode:t=>NS.encode(typeof t=="string"?Tr.encode(t):t)},L1={decode:t=>(typeof t!="string"&&(t=dr.encode(t,!0)),t===""||t==="0x"?0n:BigInt(t)),encode:(t,e=!1)=>L1.toString(t,e),toString:(t,e=!1)=>{let n=t.toString(16);return n=n.length%2===1?n="0"+n:n,e?"0x"+n:n},toBytes:(t,e)=>{typeof t=="number"&&(t=L1.toBigInt(t));const n=dr.decode(L1.toString(t));if(!e)return n;if(e<n.length)throw new Error(`Can't fit ${t} into ${e} bytes.`);return Tr.zpad(n,e)},toNumber:t=>{if(t>BigInt(Number.MAX_SAFE_INTEGER))throw new Error(`Invalid cast: ${t} exceeds MAX_SAFE_INTEGER`);return Number(t)},toBigInt:t=>{if(t>Number.MAX_SAFE_INTEGER)throw new Error(`Invalid cast: ${t} exceeds MAX_SAFE_INTEGER`);return BigInt(t)}},Tr={encode:t=>new TextEncoder().encode(t),decode:t=>new TextDecoder().decode(t),equals:(t,e)=>t.length===e.length&&t.every((n,r)=>n===e[r]),zpad:(t,e,n=!0)=>n?Tr.concat(new Uint8Array(e-t.length),t):Tr.concat(t,new Uint8Array(e-t.length)),concat:(...t)=>{const e=t.reduce((i,a)=>i+a.length,0),n=new Uint8Array(e);let r=0;return t.forEach(i=>{n.set(i,r),r+=i.length}),n}},LN=[[1,"Solana"],[2,"Ethereum"],[3,"Terra"],[4,"Bsc"],[5,"Polygon"],[6,"Avalanche"],[7,"Oasis"],[8,"Algorand"],[9,"Aurora"],[10,"Fantom"],[11,"Karura"],[12,"Acala"],[13,"Klaytn"],[14,"Celo"],[15,"Near"],[16,"Moonbeam"],[17,"Neon"],[18,"Terra2"],[19,"Injective"],[20,"Osmosis"],[21,"Sui"],[22,"Aptos"],[23,"Arbitrum"],[24,"Optimism"],[25,"Gnosis"],[26,"Pythnet"],[28,"Xpla"],[29,"Btc"],[30,"Base"],[32,"Sei"],[34,"Scroll"],[35,"Mantle"],[36,"Blast"],[37,"Xlayer"],[38,"Linea"],[39,"Berachain"],[40,"Seievm"],[43,"Snaxchain"],[44,"Unichain"],[45,"Worldchain"],[46,"Ink"],[47,"HyperEVM"],[48,"Monad"],[50,"Mezo"],[3104,"Wormchain"],[4e3,"Cosmoshub"],[4001,"Evmos"],[4002,"Kujira"],[4003,"Neutron"],[4004,"Celestia"],[4005,"Stargaze"],[4006,"Seda"],[4007,"Dymension"],[4008,"Provenance"],[4009,"Noble"],[10002,"Sepolia"],[10003,"ArbitrumSepolia"],[10004,"BaseSepolia"],[10005,"OptimismSepolia"],[10006,"Holesky"],[10007,"PolygonSepolia"]],[qHe,gq]=$f(LN),pv=pn(LN,[1,0]),g1=pn(LN),qh=t=>pv.has(t),BS=t=>g1.has(t),Kn=t=>{switch(typeof t){case"string":if(qh(t))return pv(t);break;case"number":if(BS(t))return t;break}throw Error(`Cannot convert to ChainId: ${t}`)},Qu=t=>{switch(typeof t){case"string":if(qh(t))return t;break;case"number":if(BS(t))return g1(t);break;case"bigint":if(BS(Number(t)))return g1.get(Number(t));break}throw Error(`Cannot convert to Chain: ${t}`)},BN=[["Evm",["Acala","Arbitrum","Aurora","Avalanche","Base","Bsc","Celo","Ethereum","Fantom","Gnosis","Karura","Klaytn","Moonbeam","Neon","Oasis","Optimism","Polygon","Sepolia","ArbitrumSepolia","BaseSepolia","OptimismSepolia","Holesky","PolygonSepolia","Mantle","Scroll","Blast","Xlayer","Linea","Berachain","Seievm","Snaxchain","Unichain","Worldchain","Ink","HyperEVM","Monad","Mezo"]],["Solana",["Solana","Pythnet"]],["Cosmwasm",["Cosmoshub","Evmos","Injective","Kujira","Osmosis","Sei","Terra","Terra2","Wormchain","Xpla","Dymension","Neutron","Stargaze","Celestia","Seda","Provenance","Noble"]],["Btc",["Btc"]],["Algorand",["Algorand"]],["Sui",["Sui"]],["Aptos",["Aptos"]],["Near",["Near"]]];sq(BN,0);const vq=pn(BN),Yi=pn(BN,[1,0]),Yde=[["Evm","hex"],["Solana","base58"],["Cosmwasm","bech32"],["Btc","bech32"],["Algorand","algorandAppId"],["Sui","hex"],["Aptos","hex"],["Near","sha256"]],Gde=pn(Yde),Zh={byAddress:(t,e)=>Object.values(t).find(n=>$de(n.address,e)),native:t=>Zh.byAddress(t,"native"),bySymbol:(t,e)=>{const n=Object.values(t).filter(r=>r.symbol===e);return n&&n.length>0?n:void 0},byKey:(t,e)=>{const n=Object.entries(t).find(([r])=>e===r);return n?n[1]:void 0}},$de=(t,e)=>t.toLowerCase()===e.toLowerCase();var bO;(function(t){t[t.Finalized=1]="Finalized",t[t.Immediate=200]="Immediate",t[t.Safe=201]="Safe"})(bO||(bO={}));const Vde=[["Ethereum",32]];pn(Vde);const Qde=[["Solana",32],["Ethereum",72],["Bsc",15],["Optimism",512],["Base",512],["Arbitrum",4096],["Blast",512],["Xlayer",300],["Scroll",300],["Mantle",512],["Worldchain",512],["Polygon",32],["Fantom",1],["Celo",1],["Moonbeam",1],["Karura",1],["Acala",1],["Oasis",1],["Avalanche",0],["Sui",0],["Algorand",0],["Aptos",0],["Klaytn",0],["Sei",0],["Near",0],["Osmosis",0],["Terra",0],["Terra2",0],["Xpla",0],["Injective",0],["Berachain",1],["Seievm",1],["Snaxchain",512],["Unichain",1024],["Ink",512],["HyperEVM",1],["Monad",1],["Mezo",1],["Cosmoshub",0],["Evmos",0],["Kujira",0],["Neutron",0],["Celestia",0],["Stargaze",0],["Dymension",0],["Provenance",0],["Noble",0],["Sepolia",72],["ArbitrumSepolia",4096],["BaseSepolia",512],["OptimismSepolia",512],["PolygonSepolia",32]],Mq=pn(Qde),qde=[["Acala",12e3],["Algorand",3300],["Aptos",4e3],["Arbitrum",260],["ArbitrumSepolia",260],["Aurora",3e3],["Avalanche",2e3],["Base",2e3],["BaseSepolia",2e3],["Blast",2e3],["Bsc",3e3],["Celo",5e3],["Cosmoshub",5e3],["Ethereum",15e3],["Evmos",2e3],["Fantom",2500],["Gnosis",5e3],["Holesky",15e3],["Injective",2500],["Karura",12e3],["Klaytn",1e3],["Kujira",3e3],["Mantle",2e3],["Moonbeam",12e3],["Monad",1e3],["Near",1500],["Neon",3e4],["Oasis",6e3],["Optimism",2e3],["OptimismSepolia",2e3],["Osmosis",6e3],["Polygon",2e3],["PolygonSepolia",2e3],["Scroll",3e3],["Sei",400],["Sepolia",15e3],["Solana",400],["Sui",3e3],["Terra",6e3],["Terra2",6e3],["Unichain",1e3],["Xpla",5e3],["Xlayer",3e3],["Worldchain",2e3],["Ink",1e3],["Wormchain",5e3],["Btc",6e5],["Pythnet",400],["Dymension",5e3],["Celestia",5e3],["Neutron",5e3],["Stargaze",5e3],["Seda",7500],["Berachain",2e3],["Mezo",4e3]],xq=pn(qde);function bv(t){const e=Mq.get(t);if(e===void 0)throw new Error("Cannot find finality for "+t);const n=xq.get(t);if(n===void 0)throw new Error("Cannot find block time for "+t);return e*n}const Zde=[["Evm",18],["Solana",9],["Sui",9],["Aptos",8],["Cosmwasm",6],["Algorand",6],["Btc",8],["Near",12]],jN=pn(Zde),Kde=[["Mainnet",[["Ethereum",{name:"Etherscan",baseUrl:"https://etherscan.io/",endpoints:{tx:"tx/",account:"address/"}}],["Solana",{name:"Solana Explorer",baseUrl:"https://explorer.solana.com/",endpoints:{tx:"tx/",account:"address/"}}],["Polygon",{name:"PolygonScan",baseUrl:"https://polygonscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Bsc",{name:"BscScan",baseUrl:"https://bscscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Avalanche",{name:"Snowtrace",baseUrl:"https://snowtrace.io/",endpoints:{tx:"tx/",account:"address/"}}],["Fantom",{name:"FTMscan",baseUrl:"https://ftmscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Celo",{name:"Celo Explorer",baseUrl:"https://explorer.celo.org/mainnet/",endpoints:{tx:"tx/",account:"address/"}}],["Moonbeam",{name:"Moonscan",baseUrl:"https://moonscan.io/",endpoints:{tx:"tx/",account:"address/"}}],["Sui",{name:"Sui Explorer",baseUrl:"https://explorer.sui.io/",endpoints:{tx:"txblock/",account:"address/"}}],["Aptos",{name:"Aptos Explorer",baseUrl:"https://explorer.aptoslabs.com/",endpoints:{tx:"txn/",account:"account/"}}],["Sei",{name:"Sei Explorer",baseUrl:"https://sei.explorers.guru/",endpoints:{tx:"transaction/",account:"address/"}}],["Karura",{name:"Karura Explorer",baseUrl:"https://blockscout.karura.network/",endpoints:{tx:"tx/",account:"address/"}}],["Acala",{name:"Acala Explorer",baseUrl:"https://blockscout.acala.network/",endpoints:{tx:"tx/",account:"address/"}}]]],["Testnet",[["Ethereum",{name:"Etherscan",baseUrl:"https://goerli.etherscan.io/",endpoints:{tx:"tx/",account:"address/"}}],["Polygon",{name:"PolygonScan",baseUrl:"https://mumbai.polygonscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Bsc",{name:"BscScan",baseUrl:"https://testnet.bscscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Avalanche",{name:"Snowtrace",baseUrl:"https://testnet.snowtrace.io/",endpoints:{tx:"tx/",account:"address/"}}],["Fantom",{name:"FTMscan",baseUrl:"https://testnet.ftmscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Celo",{name:"Celo Explorer",baseUrl:"https://explorer.celo.org/alfajores/",endpoints:{tx:"tx/",account:"address/"}}],["Moonbeam",{name:"Moonscan",baseUrl:"https://moonbase.moonscan.io/",endpoints:{tx:"tx/",account:"address/"}}],["Solana",{name:"Solana Explorer",baseUrl:"https://explorer.solana.com/",endpoints:{tx:"tx/",account:"address/"},networkQuery:{default:"Devnet",Testnet:"?cluster=testnet",Devnet:"?cluster=devnet"}}],["Sui",{name:"Sui Explorer",baseUrl:"https://explorer.sui.io/",endpoints:{tx:"txblock/",account:"address/"},networkQuery:{default:"Testnet",Testnet:"?network=testnet",Devnet:"?network=devnet"}}],["Aptos",{name:"Aptos Explorer",baseUrl:"https://explorer.aptoslabs.com/",endpoints:{tx:"txn/",account:"account/"},networkQuery:{default:"Testnet",Testnet:"?network=testnet",Devnet:"?network=devnet"}}],["Sei",{name:"Sei Explorer",baseUrl:"https://sei.explorers.guru/",endpoints:{tx:"transaction/",account:"address/"}}],["Karura",{name:"Karura Explorer",baseUrl:"https://blockscout.karura-testnet.aca-staging.network/",endpoints:{tx:"tx/",account:"address/"}}],["Acala",{name:"Acala Explorer",baseUrl:"https://blockscout.acala-dev.aca-dev.network/",endpoints:{tx:"tx/",account:"address/"}}]]]],Xde=pn(Kde),Jde=(t,e)=>t==="Devnet"?void 0:Xde.get(t,e),e5e=[["Mainnet",[["Ethereum","https://ethereum-rpc.publicnode.com"],["Solana","https://api.mainnet-beta.solana.com"],["Polygon","https://polygon-bor-rpc.publicnode.com"],["Bsc","https://bsc-rpc.publicnode.com"],["Avalanche","https://avalanche-c-chain-rpc.publicnode.com"],["Fantom","https://rpcapi.fantom.network"],["Celo","https://celo-rpc.publicnode.com"],["Moonbeam","https://moonbeam-rpc.publicnode.com"],["Sui","https://rpc.mainnet.sui.io"],["Aptos","https://fullnode.mainnet.aptoslabs.com/v1"],["Arbitrum","https://arb1.arbitrum.io/rpc"],["Optimism","https://mainnet.optimism.io"],["Base","https://mainnet.base.org"],["Osmosis","https://osmosis-rpc.polkachu.com"],["Cosmoshub","https://cosmos-rpc.publicnode.com:443"],["Evmos","https://evmos-rpc.polkachu.com"],["Injective","https://sentry.tm.injective.network"],["Wormchain","https://wormchain-rpc.quickapi.com"],["Xpla","https://dimension-rpc.xpla.dev"],["Sei","https://sei-rpc.polkachu.com/"],["Algorand","https://mainnet-api.algonode.cloud"],["Terra","https://terra-classic-rpc.publicnode.com"],["Terra2","https://terra-rpc.polkachu.com"],["Karura","https://eth-rpc-karura.aca-api.network"],["Acala","https://eth-rpc-acala.aca-api.network"],["Oasis","https://emerald.oasis.dev"],["Dymension","https://dymension-rpc.polkachu.com/"],["Stargaze","https://stargaze-rpc.polkachu.com/"],["Celestia","https://celestia-rpc.polkachu.com/"],["Neutron","https://neutron-rpc.polkachu.com/"],["Blast","https://rpc.blast.io"],["Provenance","https://rpc.provenance.io/"],["Noble","https://noble-rpc.polkachu.com/"],["Linea","https://rpc.linea.build"],["Scroll","https://scroll-rpc.publicnode.com"],["Xlayer","https://xlayerrpc.okx.com/"],["Gnosis","https://gnosis-rpc.publicnode.com"],["Mantle","https://rpc.mantle.xyz"],["Klaytn","https://public-en.node.kaia.io"],["Snaxchain","https://mainnet.snaxchain.io"],["Berachain","https://rpc.berachain.com"],["Unichain","https://mainnet.unichain.org"],["Worldchain","https://worldchain-mainnet.g.alchemy.com/public"],["Ink","https://rpc-qnd.inkonchain.com"]]],["Testnet",[["Bsc","https://data-seed-prebsc-1-s3.binance.org:8545"],["Avalanche","https://api.avax-test.network/ext/bc/C/rpc"],["Fantom","https://rpc.testnet.fantom.network"],["Celo","https://alfajores-forno.celo-testnet.org"],["Solana","https://api.devnet.solana.com"],["Oasis","https://testnet.emerald.oasis.io"],["Moonbeam","https://rpc.api.moonbase.moonbeam.network"],["Sui","https://fullnode.testnet.sui.io"],["Aptos","https://fullnode.testnet.aptoslabs.com/v1"],["Sei","https://sei-testnet-rpc.polkachu.com"],["Injective","https://testnet.sentry.tm.injective.network"],["Osmosis","https://rpc.testnet.osmosis.zone"],["Cosmoshub","https://rpc.sentry-02.theta-testnet.polypore.xyz"],["Evmos","https://evmos-testnet-rpc.polkachu.com"],["Wormchain","https://gateway.testnet.xlabs.xyz/"],["Xpla","https://cube-rpc.xpla.dev"],["Sepolia","https://ethereum-sepolia.publicnode.com"],["Algorand","https://testnet-api.algonode.cloud"],["Terra","https://bombay.stakesystems.io"],["Terra2","https://terra-testnet-rpc.polkachu.com"],["ArbitrumSepolia","https://sepolia-rollup.arbitrum.io/rpc"],["OptimismSepolia","https://sepolia.optimism.io"],["BaseSepolia","https://sepolia.base.org"],["PolygonSepolia","https://rpc-amoy.polygon.technology/"],["Mantle","https://rpc.testnet.mantle.xyz"],["Karura","https://eth-rpc-karura-testnet.aca-staging.network"],["Acala","https://eth-rpc-acala-testnet.aca-staging.network"],["Blast","https://sepolia.blast.io"],["Berachain","https://bepolia.rpc.berachain.com/"],["Seievm","https://evm-rpc-testnet.sei-apis.com/"],["Linea","https://rpc.sepolia.linea.build"],["Xlayer","https://testrpc.xlayer.tech/"],["Scroll","https://scroll-sepolia-rpc.publicnode.com"],["Gnosis","https://rpc.chiadochain.net"],["Klaytn","https://public-en-kairos.node.kaia.io"],["Snaxchain","https://testnet.snaxchain.io"],["Unichain","https://sepolia.unichain.org"],["Worldchain","https://worldchain-sepolia.g.alchemy.com/public"],["Ink","https://rpc-qnd-sepolia.inkonchain.com"],["HyperEVM","https://api.hyperliquid-testnet.xyz/evm"],["Monad","https://testnet-rpc.monad.xyz"],["Noble","https://noble-testnet-rpc.polkachu.com/"],["Mezo","https://rpc.test.mezo.org"]]],["Devnet",[["Ethereum","http://eth-devnet:8545"],["Bsc","http://eth-devnet2:8545"],["Solana","http://solana-devnet:8899"]]]],t5e=pn(e5e),wq=(t,e)=>t5e.get(t,e)??"",Aq=[["Mainnet",[["Aptos",1n],["Algorand","mainnet-v1.0"],["Near","mainnet"],["Cosmoshub","cosmoshub-4"],["Evmos","evmos_9001-2"],["Injective","injective-1"],["Osmosis","osmosis-1"],["Sei","pacific-1"],["Terra","columbus-5"],["Terra2","phoenix-1"],["Wormchain","wormchain"],["Xpla","dimension_37-1"],["Kujira","kaiyo-1"],["Solana","5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d"],["Sui","35834a8a"],["Acala",787n],["Arbitrum",42161n],["Aurora",1313161554n],["Avalanche",43114n],["Base",8453n],["Bsc",56n],["Celo",42220n],["Ethereum",1n],["Fantom",250n],["Gnosis",100n],["Karura",686n],["Klaytn",8217n],["Moonbeam",1284n],["Neon",245022934n],["Oasis",42262n],["Optimism",10n],["Polygon",137n],["Neutron","neutron-1"],["Stargaze","stargaze-1"],["Celestia","celestia"],["Dymension","dymension_1100-1"],["Provenance","pio-mainnet-1"],["Noble","noble-1"],["Xlayer",196n],["Mantle",5000n],["Scroll",534352n],["Blast",81457n],["Linea",59144n],["Snaxchain",2192n],["Berachain",80094n],["Unichain",130n],["Worldchain",480n],["Ink",57073n]]],["Testnet",[["Aptos",2n],["Algorand","testnet-v1.0"],["Near","testnet"],["Cosmoshub","theta-testnet-001"],["Evmos","evmos_9000-4"],["Injective","injective-888"],["Osmosis","osmo-test-5"],["Sei","atlantic-2"],["Terra","bombay-12"],["Terra2","pisco-1"],["Wormchain","wormchain-testnet-0"],["Xpla","cube_47-5"],["Kujira","harpoon-4"],["Solana","EtWTRABZaYq6iMfeYKouRu166VU2xqa1wcaWoxPkrZBG"],["Sui","4c78adac"],["Acala",597n],["Arbitrum",421613n],["Aurora",1313161555n],["Avalanche",43113n],["Base",84531n],["Bsc",97n],["Celo",44787n],["Ethereum",5n],["Fantom",4002n],["Gnosis",10200n],["Karura",596n],["Klaytn",1001n],["Moonbeam",1287n],["Neon",245022940n],["Oasis",42261n],["Optimism",420n],["Polygon",80001n],["Sepolia",11155111n],["ArbitrumSepolia",421614n],["BaseSepolia",84532n],["OptimismSepolia",11155420n],["PolygonSepolia",80002n],["Holesky",17000n],["Neutron","pion-1"],["Celestia","mocha-4"],["Seda","seda-1-testnet"],["Noble","grand-1"],["Blast",168587773n],["Mantle",5003n],["Scroll",534351n],["Berachain",80069n],["Seievm",1328n],["Snaxchain",13001n],["Unichain",1301n],["Worldchain",4801n],["Ink",763373n],["HyperEVM",998n],["Xlayer",195n],["Linea",59141n],["Monad",10143n],["Mezo",31611n]]],["Devnet",[["Aptos",0n],["Algorand","sandnet-v1.0"],["Bsc",1397n],["Ethereum",1337n],["Injective","injective_devnet_fake"],["Solana","8wF6jKV3cKwyaVkWcoV9KpDqmkjvEYno9hKZrKx8TbZn"]]]],mv=pn(Aq),n5e=pn(Aq,[2,[0,1]]);function Cq(t,e){const r=n5e(e).filter(([i,a])=>Yi(a)===t);if(r.length!==1)throw new Error(`Platform ${t} has multiple chains with native chain id ${e}`);return r[0]}const r5e=[["Mainnet","https://iris-api.circle.com/v1/attestations"],["Testnet","https://iris-api-sandbox.circle.com/v1/attestations"]],mO=pn(r5e),i5e=[["Mainnet",[["Ethereum","0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"],["Avalanche","0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"],["Optimism","0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85"],["Arbitrum","0xaf88d065e77c8cC2239327C5EDb3A432268e5831"],["Solana","EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"],["Base","0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"],["Polygon","0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"],["Sui","0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC"],["Aptos","0xbae207659db88bea0cbead6da0ed00aac12edcdda169e591cd41c94180b46f3b"],["Unichain","0x078D782b760474a361dDA0AF3839290b0EF57AD6"]]],["Testnet",[["Sepolia","0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238"],["Avalanche","0x5425890298aed601595a70AB815c96711a31Bc65"],["OptimismSepolia","0x5fd84259d66Cd46123540766Be93DFE6D43130D7"],["ArbitrumSepolia","0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d"],["Solana","4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU"],["BaseSepolia","0x036CbD53842c5426634e7929541eC2318f3dCF7e"],["Polygon","0x9999f7Fea5938fD3b1E26A12c3f2fb024e194f97"],["Sui","0xa1ec7fc00a6f40db9693ad1415d0c193ad3906494428cf252621037bd7117e29::usdc::USDC"],["Aptos","0x69091fbab5f7d635ee7ac5098cf0c1efbe31d68fec0f2cd565e8d168daf52832"],["Unichain","0x31d0220469e10c4E71834a79b1f276d740d3768F"]]]],la=pn(i5e),kN=[["Mainnet",[["Ethereum",0],["Avalanche",1],["Optimism",2],["Arbitrum",3],["Solana",5],["Base",6],["Polygon",7],["Sui",8],["Aptos",9],["Unichain",10]]],["Testnet",[["Sepolia",0],["Avalanche",1],["OptimismSepolia",2],["ArbitrumSepolia",3],["Solana",5],["BaseSepolia",6],["Polygon",7],["Sui",8],["Aptos",9],["Unichain",10]]]],a5e=pn(kN,[[0,1],2]),jS=pn(kN,[[0,2],1]),[ZHe,KHe]=$f(kN),kS=(t,e)=>a5e.has(t,e),yO=(t,e)=>jS.has(t,e),gO=(t,e)=>la.has(t,e),Px=(t,e)=>{switch(typeof e){case"string":if(kS(t,e))return e;break;case"number":if(yO(t,e))return jS(t,e);break;case"bigint":const n=Number(e);if(yO(t,n))return jS(t,n);break}throw Error(`Cannot convert to Chain: ${e}`)},s5e=[["Mainnet",[["Solana","worm2ZoG2kUd4vFXhvjh93UUH596ayRfgQ2MgjNMTth"],["Ethereum","0x98f3c9e6E3fAce36bAAd05FE09d375Ef1464288B"],["Terra","terra1dq03ugtd40zu9hcgdzrsq6z2z4hwhc9tqk2uy5"],["Bsc","0x98f3c9e6E3fAce36bAAd05FE09d375Ef1464288B"],["Polygon","0x7A4B5a56256163F07b2C80A7cA55aBE66c4ec4d7"],["Avalanche","0x54a8e5f9c4CbA08F9943965859F6c34eAF03E26c"],["Oasis","0xfE8cD454b4A1CA468B57D79c0cc77Ef5B6f64585"],["Algorand","842125965"],["Aurora","0xa321448d90d4e5b0A732867c18eA198e75CAC48E"],["Fantom","0x126783A6Cb203a3E35344528B26ca3a0489a1485"],["Karura","0xa321448d90d4e5b0A732867c18eA198e75CAC48E"],["Acala","0xa321448d90d4e5b0A732867c18eA198e75CAC48E"],["Klaytn","0x0C21603c4f3a6387e241c0091A7EA39E43E90bb7"],["Celo","0xa321448d90d4e5b0A732867c18eA198e75CAC48E"],["Near","contract.wormhole_crypto.near"],["Injective","inj17p9rzwnnfxcjp32un9ug7yhhzgtkhvl9l2q74d"],["Aptos","0x5bc11445584a763c1fa7ed39081f1b920954da14e04b32440cba863d03e19625"],["Sui","0xaeab97f96cf9877fee2883315d459552b2b921edc16d7ceac6eab944dd88919c"],["Moonbeam","0xC8e2b0cD52Cf01b0Ce87d389Daa3d414d4cE29f3"],["Terra2","terra12mrnzvhx3rpej6843uge2yyfppfyd3u9c3uq223q8sl48huz9juqffcnhp"],["Arbitrum","0xa5f208e072434bC67592E4C49C1B991BA79BCA46"],["Optimism","0xEe91C335eab126dF5fDB3797EA9d6aD93aeC9722"],["Gnosis","0xa321448d90d4e5b0A732867c18eA198e75CAC48E"],["Pythnet","H3fxXJ86ADW2PNuDDmZJg6mzTtPxkYCpNuQUTgmJ7AjU"],["Base","0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6"],["Xlayer","0x194B123c5E96B9b2E49763619985790Dc241CAC0"],["Xpla","xpla1jn8qmdda5m6f6fqu9qv46rt7ajhklg40ukpqchkejcvy8x7w26cqxamv3w"],["Sei","sei1gjrrme22cyha4ht2xapn3f08zzw6z3d4uxx6fyy9zd5dyr3yxgzqqncdqn"],["Wormchain","wormhole1ufs3tlq4umljk0qfe8k5ya0x6hpavn897u2cnf9k0en9jr7qarqqaqfk2j"],["Neutron","neutron16rerygcpahqcxx5t8vjla46ym8ccn7xz7rtc6ju5ujcd36cmc7zs9zrunh"],["Blast","0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6"],["Scroll","0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6"],["Mantle","0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6"],["Snaxchain","0xc1BA3CC4bFE724A08FbbFbF64F8db196738665f4"],["Berachain","0xCa1D5a146B03f6303baF59e5AD5615ae0b9d146D"],["Unichain","0xCa1D5a146B03f6303baF59e5AD5615ae0b9d146D"],["Worldchain","0xcbcEe4e081464A15d8Ad5f58BB493954421eB506"],["Ink","0xCa1D5a146B03f6303baF59e5AD5615ae0b9d146D"]]],["Testnet",[["Solana","3u8hJUVTA4jH1wYAyUur7FFZVQ8H635K3tSHHF4ssjQ5"],["Ethereum","0x706abc4E45D419950511e474C7B9Ed348A4a716c"],["Terra","terra1pd65m0q9tl3v8znnz5f5ltsfegyzah7g42cx5v"],["Bsc","0x68605AD7b15c732a30b1BbC62BE8F2A509D74b4D"],["Polygon","0x0CBE91CF822c73C2315FB05100C2F714765d5c20"],["Avalanche","0x7bbcE28e64B3F8b84d876Ab298393c38ad7aac4C"],["Oasis","0xc1C338397ffA53a2Eb12A7038b4eeb34791F8aCb"],["Algorand","86525623"],["Aurora","0xBd07292de7b505a4E803CEe286184f7Acf908F5e"],["Fantom","0x1BB3B4119b7BA9dfad76B0545fb3F531383c3bB7"],["Karura","0x64fb09E405D2043ed7785a29E296C766D56F2056"],["Acala","0x64fb09E405D2043ed7785a29E296C766D56F2056"],["Klaytn","0x1830CC6eE66c84D2F177B94D544967c774E624cA"],["Celo","0x88505117CA88e7dd2eC6EA1E13f0948db2D50D56"],["Near","wormhole.wormhole.testnet"],["Injective","inj1xx3aupmgv3ce537c0yce8zzd3sz567syuyedpg"],["Osmosis","osmo1hggkxr0hpw83f8vuft7ruvmmamsxmwk2hzz6nytdkzyup9krt0dq27sgyx"],["Aptos","0x5bc11445584a763c1fa7ed39081f1b920954da14e04b32440cba863d03e19625"],["Sui","0x31358d198147da50db32eda2562951d53973a0c0ad5ed738e9b17d88b213d790"],["Moonbeam","0xa5B7D85a8f27dd7907dc8FdC21FA5657D5E2F901"],["Neon","0x268557122Ffd64c85750d630b716471118F323c8"],["Terra2","terra19nv3xr5lrmmr7egvrk2kqgw4kcn43xrtd5g0mpgwwvhetusk4k7s66jyv0"],["Arbitrum","0xC7A204bDBFe983FCD8d8E61D02b475D4073fF97e"],["Optimism","0x6b9C8671cdDC8dEab9c719bB87cBd3e782bA6a35"],["Gnosis","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Pythnet","EUrRARh92Cdc54xrDn6qzaqjA77NRrCcfbr8kPwoTL4z"],["Xpla","xpla1upkjn4mthr0047kahvn0llqx4qpqfn75lnph4jpxfn8walmm8mqsanyy35"],["Base","0x23908A62110e21C04F3A4e011d24F901F911744A"],["Sei","sei1nna9mzp274djrgzhzkac2gvm3j27l402s4xzr08chq57pjsupqnqaj0d5s"],["Sepolia","0x4a8bc80Ed5a4067f1CCf107057b8270E0cC11A78"],["Wormchain","wormhole16jzpxp0e8550c9aht6q9svcux30vtyyyyxv5w2l2djjra46580wsazcjwp"],["ArbitrumSepolia","0x6b9C8671cdDC8dEab9c719bB87cBd3e782bA6a35"],["BaseSepolia","0x79A1027a6A159502049F10906D333EC57E95F083"],["OptimismSepolia","0x31377888146f3253211EFEf5c676D41ECe7D58Fe"],["Holesky","0xa10f2eF61dE1f19f586ab8B6F2EbA89bACE63F7a"],["Neutron","neutron1enf63k37nnv9cugggpm06mg70emcnxgj9p64v2s8yx7a2yhhzk2q6xesk4"],["Mantle","0x376428e7f26D5867e69201b275553C45B09EE090"],["PolygonSepolia","0x6b9C8671cdDC8dEab9c719bB87cBd3e782bA6a35"],["Scroll","0x055F47F1250012C6B20c436570a76e52c17Af2D5"],["Blast","0x473e002D7add6fB67a4964F13bFd61280Ca46886"],["Berachain","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Seievm","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Snaxchain","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Unichain","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Worldchain","0xe5E02cD12B6FcA153b0d7fF4bF55730AE7B3C93A"],["Ink","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["HyperEVM","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Xlayer","0xA31aa3FDb7aF7Db93d18DDA4e19F811342EDF780"],["Linea","0x79A1027a6A159502049F10906D333EC57E95F083"],["Monad","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Mezo","0x268557122Ffd64c85750d630b716471118F323c8"]]],["Devnet",[["Solana","Bridge1p5gheXUvJ6jGWGeCsgPKgnE3YgdGKRVCMY9o"],["Ethereum","0xC89Ce4735882C9F0f0FE26686c53074E09B0D550"],["Terra","terra14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9ssrc8au"],["Bsc","0xC89Ce4735882C9F0f0FE26686c53074E09B0D550"],["Algorand","1004"],["Near","wormhole.test.near"],["Aptos","0xde0036a9600559e295d5f6802ef6f3f802f510366e0c23912b0655d972166017"],["Sui","0x5a5160ca3c2037f4b4051344096ef7a48ebf4400b3f385e57ea90e1628a8bde0"],["Terra2","terra14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9ssrc8au"],["Wormchain","wormhole17p9rzwnnfxcjp32un9ug7yhhzgtkhvl9jfksztgw5uh69wac2pgshdnj3k"]]]],Eq=[["Mainnet",[["Solana","wormDTUJ6AWPNvk59vGQbDvGJmqbDTdgWgAqcLBCgUb"],["Ethereum","0x3ee18B2214AFF97000D974cf647E7C347E8fa585"],["Terra","terra10nmmwe8r3g99a9newtqa7a75xfgs2e8z87r2sf"],["Bsc","0xB6F6D86a8f9879A9c87f643768d9efc38c1Da6E7"],["Polygon","0x5a58505a96D1dbf8dF91cB21B54419FC36e93fdE"],["Avalanche","0x0e082F06FF657D94310cB8cE8B0D9a04541d8052"],["Oasis","0x5848C791e09901b40A9Ef749f2a6735b418d7564"],["Algorand","842126029"],["Aurora","0x51b5123a7b0F9b2bA265f9c4C8de7D78D52f510F"],["Fantom","0x7C9Fc5741288cDFdD83CeB07f3ea7e22618D79D2"],["Karura","0xae9d7fe007b3327AA64A32824Aaac52C42a6E624"],["Acala","0xae9d7fe007b3327AA64A32824Aaac52C42a6E624"],["Klaytn","0x5b08ac39EAED75c0439FC750d9FE7E1F9dD0193F"],["Celo","0x796Dff6D74F3E27060B71255Fe517BFb23C93eed"],["Near","contract.portalbridge.near"],["Injective","inj1ghd753shjuwexxywmgs4xz7x2q732vcnxxynfn"],["Aptos","0x576410486a2da45eee6c949c995670112ddf2fbeedab20350d506328eefc9d4f"],["Sui","0xc57508ee0d4595e5a8728974a4a93a787d38f339757230d441e895422c07aba9"],["Moonbeam","0xb1731c586ca89a23809861c6103f0b96b3f57d92"],["Terra2","terra153366q50k7t8nn7gec00hg66crnhkdggpgdtaxltaq6xrutkkz3s992fw9"],["Arbitrum","0x0b2402144Bb366A632D14B83F244D2e0e21bD39c"],["Optimism","0x1D68124e65faFC907325e3EDbF8c4d84499DAa8b"],["Base","0x8d2de8d2f73F1F4cAB472AC9A881C9b123C79627"],["Xlayer","0x5537857664B0f9eFe38C9f320F75fEf23234D904"],["Xpla","xpla137w0wfch2dfmz7jl2ap8pcmswasj8kg06ay4dtjzw7tzkn77ufxqfw7acv"],["Sei","sei1smzlm9t79kur392nu9egl8p8je9j92q4gzguewj56a05kyxxra0qy0nuf3"],["Wormchain","wormhole1466nf3zuxpya8q9emxukd7vftaf6h4psr0a07srl5zw74zh84yjq4lyjmh"],["Blast","0x24850c6f61C438823F01B7A3BF2B89B72174Fa9d"],["Scroll","0x24850c6f61C438823F01B7A3BF2B89B72174Fa9d"],["Mantle","0x24850c6f61C438823F01B7A3BF2B89B72174Fa9d"],["Snaxchain","0x8B94bfE456B48a6025b92E11Be393BAa86e68410"],["Berachain","0x3Ff72741fd67D6AD0668d93B41a09248F4700560"],["Unichain","0x3Ff72741fd67D6AD0668d93B41a09248F4700560"],["Worldchain","0xc309275443519adca74c9136b02A38eF96E3a1f6"],["Ink","0x3Ff72741fd67D6AD0668d93B41a09248F4700560"]]],["Testnet",[["Solana","DZnkkTmCiFWfYTfT41X3Rd1kDgozqzxWaHqsw6W4x2oe"],["Ethereum","0xF890982f9310df57d00f659cf4fd87e65adEd8d7"],["Terra","terra1pseddrv0yfsn76u4zxrjmtf45kdlmalswdv39a"],["Bsc","0x9dcF9D205C9De35334D646BeE44b2D2859712A09"],["Polygon","0x377D55a7928c046E18eEbb61977e714d2a76472a"],["Avalanche","0x61E44E506Ca5659E6c0bba9b678586fA2d729756"],["Oasis","0x88d8004A9BdbfD9D28090A02010C19897a29605c"],["Algorand","86525641"],["Aurora","0xD05eD3ad637b890D68a854d607eEAF11aF456fba"],["Fantom","0x599CEa2204B4FaECd584Ab1F2b6aCA137a0afbE8"],["Karura","0xe157115ef34c93145Fec2FE53706846853B07F42"],["Acala","0xe157115ef34c93145Fec2FE53706846853B07F42"],["Klaytn","0xC7A13BE098720840dEa132D860fDfa030884b09A"],["Celo","0x05ca6037eC51F8b712eD2E6Fa72219FEaE74E153"],["Near","token.wormhole.testnet"],["Injective","inj1q0e70vhrv063eah90mu97sazhywmeegp7myvnh"],["Aptos","0x576410486a2da45eee6c949c995670112ddf2fbeedab20350d506328eefc9d4f"],["Sui","0x6fb10cdb7aa299e9a4308752dadecb049ff55a892de92992a1edbd7912b3d6da"],["Moonbeam","0xbc976D4b9D57E57c3cA52e1Fd136C45FF7955A96"],["Neon","0xEe3dB83916Ccdc3593b734F7F2d16D630F39F1D0"],["Terra2","terra1c02vds4uhgtrmcw7ldlg75zumdqxr8hwf7npseuf2h58jzhpgjxsgmwkvk"],["Arbitrum","0x23908A62110e21C04F3A4e011d24F901F911744A"],["ArbitrumSepolia","0xC7A204bDBFe983FCD8d8E61D02b475D4073fF97e"],["Optimism","0xC7A204bDBFe983FCD8d8E61D02b475D4073fF97e"],["OptimismSepolia","0x99737Ec4B815d816c49A385943baf0380e75c0Ac"],["Xpla","xpla1kek6zgdaxcsu35nqfsyvs2t9vs87dqkkq6hjdgczacysjn67vt8sern93x"],["Base","0xA31aa3FDb7aF7Db93d18DDA4e19F811342EDF780"],["BaseSepolia","0x86F55A04690fd7815A3D802bD587e83eA888B239"],["Sei","sei1jv5xw094mclanxt5emammy875qelf3v62u4tl4lp5nhte3w3s9ts9w9az2"],["Sepolia","0xDB5492265f6038831E89f495670FF909aDe94bd9"],["Wormchain","wormhole1aaf9r6s7nxhysuegqrxv0wpm27ypyv4886medd3mrkrw6t4yfcnst3qpex"],["Holesky","0x76d093BbaE4529a342080546cAFEec4AcbA59EC6"],["Mantle","0x75Bfa155a9D7A3714b0861c8a8aF0C4633c45b5D"],["PolygonSepolia","0xC7A204bDBFe983FCD8d8E61D02b475D4073fF97e"],["Scroll","0x22427d90B7dA3fA4642F7025A854c7254E4e45BF"],["Blast","0x430855B4D43b8AEB9D2B9869B74d58dda79C0dB2"],["Xlayer","0xdA91a06299BBF302091B053c6B9EF86Eff0f930D"],["Berachain","0xa10f2eF61dE1f19f586ab8B6F2EbA89bACE63F7a"],["Seievm","0x23908A62110e21C04F3A4e011d24F901F911744A"],["Snaxchain","0xa10f2eF61dE1f19f586ab8B6F2EbA89bACE63F7a"],["Unichain","0xa10f2eF61dE1f19f586ab8B6F2EbA89bACE63F7a"],["Worldchain","0x430855B4D43b8AEB9D2B9869B74d58dda79C0dB2"],["Ink","0x376428e7f26D5867e69201b275553C45B09EE090"],["HyperEVM","0x4a8bc80Ed5a4067f1CCf107057b8270E0cC11A78"],["Linea","0xC7A204bDBFe983FCD8d8E61D02b475D4073fF97e"],["Monad","0xF323dcDe4d33efe83cf455F78F9F6cc656e6B659"],["Mezo","0xA31aa3FDb7aF7Db93d18DDA4e19F811342EDF780"]]],["Devnet",[["Solana","B6RHG3mfcckmrYN1UhmJzyS1XX3fZKbkeUcpJe9Sy3FE"],["Ethereum","0x0290FB167208Af455bB137780163b7B7a9a10C16"],["Terra","terra1nc5tatafv6eyq7llkr2gv50ff9e22mnf70qgjlv737ktmt4eswrquka9l6"],["Bsc","0x0290FB167208Af455bB137780163b7B7a9a10C16"],["Algorand","1006"],["Near","token.test.near"],["Aptos","0x84a5f374d29fc77e370014dce4fd6a55b58ad608de8074b0be5571701724da31"],["Sui","0xa6a3da85bbe05da5bfd953708d56f1a3a023e7fb58e5a824a3d4de3791e8f690"],["Terra2","terra1nc5tatafv6eyq7llkr2gv50ff9e22mnf70qgjlv737ktmt4eswrquka9l6"],["Wormchain","wormhole1ghd753shjuwexxywmgs4xz7x2q732vcnkm6h2pyv9s6ah3hylvrqtm7t3h"]]]],Sq=[["Mainnet",[["Ethereum","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Bsc","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Polygon","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Avalanche","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Fantom","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Celo","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Sui","0x57f4e0ba41a7045e29d435bc66cc4175f381eb700e6ec16d4fdfe92e5a4dff9f"],["Solana","3vxKRPwUTiEkeUVyoZ9MXFe1V71sRLbLqu1gRYaWmehQ"],["Base","0xaE8dc4a7438801Ec4edC0B035EcCCcF3807F4CC1"],["Moonbeam","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Arbitrum","0xaE8dc4a7438801Ec4edC0B035EcCCcF3807F4CC1"],["Optimism","0xaE8dc4a7438801Ec4edC0B035EcCCcF3807F4CC1"]]],["Testnet",[["Ethereum","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Bsc","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Polygon","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Avalanche","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Fantom","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Celo","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Sui","0xb30040e5120f8cb853b691cb6d45981ae884b1d68521a9dc7c3ae881c0031923"],["Base","0xae8dc4a7438801ec4edc0b035eccccf3807f4cc1"],["Moonbeam","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Solana","3bPRWXqtSfUaCw3S4wdgvypQtsSzcmvDeaqSqPDkncrg"],["Sepolia",""],["ArbitrumSepolia","0xaE8dc4a7438801Ec4edC0B035EcCCcF3807F4CC1"],["OptimismSepolia","0xaE8dc4a7438801Ec4edC0B035EcCCcF3807F4CC1"],["BaseSepolia",""]]]],o5e=[["Mainnet",[["Solana","WnFt12ZrnzZrFZkt2xsNsaNWoQribnuQ5B5FrDbwDhD"],["Ethereum","0x6FFd7EdE62328b3Af38FCD61461Bbfc52F5651fE"],["Bsc","0x5a58505a96D1dbf8dF91cB21B54419FC36e93fdE"],["Polygon","0x90BBd86a6Fe93D3bc3ed6335935447E75fAb7fCf"],["Avalanche","0xf7B6737Ca9c4e08aE573F75A97B73D7a813f5De5"],["Oasis","0x04952D522Ff217f40B5Ef3cbF659EcA7b952a6c1"],["Aurora","0x6dcC0484472523ed9Cdc017F711Bcbf909789284"],["Fantom","0xA9c7119aBDa80d4a4E0C06C8F4d8cF5893234535"],["Karura","0xb91e3638F82A1fACb28690b37e3aAE45d2c33808"],["Acala","0xb91e3638F82A1fACb28690b37e3aAE45d2c33808"],["Klaytn","0x3c3c561757BAa0b78c5C025CdEAa4ee24C1dFfEf"],["Celo","0xA6A377d75ca5c9052c9a77ED1e865Cc25Bd97bf3"],["Aptos","0x1bdffae984043833ed7fe223f7af7a3f8902d04129b14f801823e64827da7130"],["Moonbeam","0x453cfbe096c0f8d763e8c5f24b441097d577bde2"],["Arbitrum","0x3dD14D553cFD986EAC8e3bddF629d82073e188c8"],["Base","0xDA3adC6621B2677BEf9aD26598e6939CF0D92f88"],["Optimism","0xfE8cD454b4A1CA468B57D79c0cc77Ef5B6f64585"]]],["Testnet",[["Solana","2rHhojZ7hpu1zA91nvZmT8TqWWvMcKmmNBCr2mKTtMq4"],["Ethereum","0xD8E4C2DbDd2e2bd8F1336EA691dBFF6952B1a6eB"],["Bsc","0xcD16E5613EF35599dc82B24Cb45B5A93D779f1EE"],["Polygon","0x51a02d0dcb5e52F5b92bdAA38FA013C91c7309A9"],["Avalanche","0xD601BAf2EEE3C028344471684F6b27E789D9075D"],["Oasis","0xC5c25B41AB0b797571620F5204Afa116A44c0ebA"],["Aurora","0x8F399607E9BA2405D87F5f3e1B78D950b44b2e24"],["Fantom","0x63eD9318628D26BdCB15df58B53BB27231D1B227"],["Klaytn","0x94c994fC51c13101062958b567e743f1a04432dE"],["Celo","0xaCD8190F647a31E56A656748bC30F69259f245Db"],["Moonbeam","0x98A0F4B96972b32Fcb3BD03cAeB66A44a6aB9Edb"],["Neon","0x66E5BcFD45D2F3f166c567ADa663f9d2ffb292B4"],["Arbitrum","0xEe3dB83916Ccdc3593b734F7F2d16D630F39F1D0"],["Optimism","0x23908A62110e21C04F3A4e011d24F901F911744A"],["Base","0xF681d1cc5F25a3694E348e7975d7564Aa581db59"],["Sepolia","0x6a0B52ac198e4870e5F3797d5B403838a5bbFD99"],["Aptos","0x1bdffae984043833ed7fe223f7af7a3f8902d04129b14f801823e64827da7130"],["ArbitrumSepolia","0x23908A62110e21C04F3A4e011d24F901F911744A"],["BaseSepolia","0x268557122Ffd64c85750d630b716471118F323c8"],["OptimismSepolia","0x27812285fbe85BA1DF242929B906B31EE3dd1b9f"],["Holesky","0xc8941d483c45eF8FB72E4d1F9dDE089C95fF8171"],["PolygonSepolia","0x23908A62110e21C04F3A4e011d24F901F911744A"],["Mantle","0xD7D732C8Bf5eBF620EA55b5828eae20418eEF083"],["Scroll","0x47B9a1406BEe29a3001BFEB7e45aE45fFFB40c18"]]],["Devnet",[["Solana","NFTWqJR8YnRVqPDvTJrYuLrQDitTG5AScqbeghi4zSA"],["Ethereum","0x26b4afb60d6c903165150c6f0aa14f8016be4aec"],["Terra","terra1plju286nnfj3z54wgcggd4enwaa9fgf5kgrgzl"],["Bsc","0x26b4afb60d6c903165150c6f0aa14f8016be4aec"],["Aptos","0x46da3d4c569388af61f951bdd1153f4c875f90c2991f6b2d0a38e2161a40852c"]]]],c5e=[["Mainnet",[["Ethereum","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Bsc","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Polygon","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Avalanche","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Fantom","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Klaytn","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Celo","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Moonbeam","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Base","0x706f82e9bb5b0813501714ab5974216704980e31"],["Arbitrum","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Optimism","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Blast","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Scroll","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Mantle","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Xlayer","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Berachain","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Ink","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Worldchain","0x1520cc9e779c56dab5866bebfb885c86840c33d3"],["Snaxchain","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Unichain","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"]]],["Testnet",[["Ethereum","0x28D8F1Be96f97C1387e94A53e00eCcFb4E75175a"],["Bsc","0x80aC94316391752A193C1c47E27D382b507c93F3"],["Polygon","0x0591C25ebd0580E0d4F27A82Fc2e24E7489CB5e0"],["Avalanche","0xA3cF45939bD6260bcFe3D66bc73d60f19e49a8BB"],["Fantom","0x7B1bD7a6b4E61c2a123AC6BC2cbfC614437D0470"],["Celo","0x306B68267Deb7c5DfCDa3619E22E9Ca39C374f84"],["Seievm","0x362fca37E45fe1096b42021b543f462D49a5C8df"],["Moonbeam","0x0591C25ebd0580E0d4F27A82Fc2e24E7489CB5e0"],["Arbitrum","0xAd753479354283eEE1b86c9470c84D42f229FF43"],["Optimism","0x01A957A525a5b7A72808bA9D10c389674E459891"],["Base","0xea8029CD7FCAEFFcD1F53686430Db0Fc8ed384E1"],["Sepolia","0x7B1bD7a6b4E61c2a123AC6BC2cbfC614437D0470"],["ArbitrumSepolia","0x7B1bD7a6b4E61c2a123AC6BC2cbfC614437D0470"],["BaseSepolia","0x93BAD53DDfB6132b0aC8E37f6029163E63372cEE"],["OptimismSepolia","0x93BAD53DDfB6132b0aC8E37f6029163E63372cEE"],["Berachain","0x362fca37E45fe1096b42021b543f462D49a5C8df"],["Unichain","0x362fca37E45fe1096b42021b543f462D49a5C8df"],["Ink","0x362fca37E45fe1096b42021b543f462D49a5C8df"],["Monad","0x362fca37E45fe1096b42021b543f462D49a5C8df"]]],["Devnet",[["Ethereum","0xcC680D088586c09c3E0E099a676FA4b6e42467b4"],["Bsc","0xcC680D088586c09c3E0E099a676FA4b6e42467b4"]]]],Tq=[["Mainnet",[["Ethereum",{tokenMessenger:"0xbd3fa81b58ba92a82136038b25adec7066af3155",messageTransmitter:"0x0a992d191deec32afe36203ad87d7d289a738f81",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0xAaDA05BD399372f0b0463744C09113c137636f6a"}],["Avalanche",{tokenMessenger:"0x6b25532e1060ce10cc3b0a99e5683b91bfde6982",messageTransmitter:"0x8186359af5f57fbb40c6b14a588d2a59c0c29880",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x09Fb06A271faFf70A651047395AaEb6265265F13"}],["Optimism",{tokenMessenger:"0x2B4069517957735bE00ceE0fadAE88a26365528f",messageTransmitter:"0x4d41f22c5a0e5c74090899e5a8fb597a8842b3e8",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Arbitrum",{tokenMessenger:"0x19330d10D9Cc8751218eaf51E8885D058642E08A",messageTransmitter:"0xC30362313FBBA5cf9163F0bb16a0e01f01A896ca",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Base",{tokenMessenger:"0x1682Ae6375C4E4A97e4B583BC394c861A46D8962",messageTransmitter:"0xAD09780d193884d503182aD4588450C416D6F9D4",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x03faBB06Fa052557143dC28eFCFc63FC12843f1D"}],["Solana",{tokenMessenger:"CCTPiPYPc6AsJuwueEnWgSgucamXDZwBd53dQ11YiKX3",messageTransmitter:"CCTPmbSD7gX1bxKPAmg77w8oFzNFpaQiQUWD43TKaecd",wormholeRelayer:"",wormhole:""}],["Polygon",{tokenMessenger:"0x9daF8c91AEFAE50b9c0E69629D3F6Ca40cA3B3FE",messageTransmitter:"0xF3be9355363857F3e001be68856A2f96b4C39Ba9",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x0FF28217dCc90372345954563486528aa865cDd6"}],["Sui",{tokenMessenger:"0x2aa6c5d56376c371f88a6cc42e852824994993cb9bab8d3e6450cbe3cb32b94e",messageTransmitter:"0x08d87d37ba49e785dde270a83f8e979605b03dc552b5548f26fdf2f49bf7ed1b",wormholeRelayer:"",wormhole:""}],["Aptos",{tokenMessenger:"0x9e6702a472080ea3caaf6ba9dfaa6effad2290a9ba9adaacd5af5c618e42782d",messageTransmitter:"0x177e17751820e4b4371873ca8c30279be63bdea63b88ed0f2239c2eea10f1772",wormholeRelayer:"",wormhole:""}],["Unichain",{tokenMessenger:"0x4e744b28E787c3aD0e810eD65A24461D4ac5a762",messageTransmitter:"0x353bE9E2E38AB1D19104534e4edC21c643Df86f4",wormholeRelayer:"",wormhole:""}]]],["Testnet",[["Sepolia",{tokenMessenger:"0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",messageTransmitter:"0x7865fAfC2db2093669d92c0F33AeEF291086BEFD",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Avalanche",{tokenMessenger:"0xeb08f243e5d3fcff26a9e38ae5520a669f4019d0",messageTransmitter:"0xa9fb1b3009dcb79e2fe346c16a604b8fa8ae0a79",wormholeRelayer:"0x774a70bbd03327c21460b60f25b677d9e46ab458",wormhole:"0x58f4c17449c90665891c42e14d34aae7a26a472e"}],["OptimismSepolia",{tokenMessenger:"0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",messageTransmitter:"0x7865fAfC2db2093669d92c0F33AeEF291086BEFD",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["ArbitrumSepolia",{tokenMessenger:"0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",messageTransmitter:"0xaCF1ceeF35caAc005e15888dDb8A3515C41B4872",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Solana",{tokenMessenger:"CCTPiPYPc6AsJuwueEnWgSgucamXDZwBd53dQ11YiKX3",messageTransmitter:"CCTPmbSD7gX1bxKPAmg77w8oFzNFpaQiQUWD43TKaecd",wormholeRelayer:"",wormhole:""}],["BaseSepolia",{tokenMessenger:"0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",messageTransmitter:"0x7865fAfC2db2093669d92c0F33AeEF291086BEFD",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Polygon",{tokenMessenger:"0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",messageTransmitter:"0xe09A679F56207EF33F5b9d8fb4499Ec00792eA73",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Sui",{tokenMessenger:"0x31cc14d80c175ae39777c0238f20594c6d4869cfab199f40b69f3319956b8beb",messageTransmitter:"0x4931e06dce648b3931f890035bd196920770e913e43e45990b383f6486fdd0a5",wormholeRelayer:"",wormhole:""}],["Aptos",{tokenMessenger:"0x5f9b937419dda90aa06c1836b7847f65bbbe3f1217567758dc2488be31a477b9",messageTransmitter:"0x081e86cebf457a0c6004f35bd648a2794698f52e0dde09a48619dcd3d4cc23d9",wormholeRelayer:"",wormhole:""}],["Unichain",{tokenMessenger:"0x8ed94B8dAd2Dc5453862ea5e316A8e71AAed9782",messageTransmitter:"0xbc498c326533d675cf571B90A2Ced265ACb7d086",wormholeRelayer:"",wormhole:""}]]]],l5e=[["Mainnet",[["Wormchain","wormhole14ejqjyq8um4p3xfqj74yld5waqljf88fz25yxnma0cngspxe3les00fpjx"]]],["Testnet",[["Wormchain","wormhole1ctnjk7an90lz5wjfvr3cf6x984a8cjnv8dpmztmlpcq4xteaa2xs9pwmzk"]]]],u5e=[["Mainnet",[["Sei","sei189adguawugk3e55zn63z8r9ll29xrjwca636ra7v7gxuzn98sxyqwzt47l"]]],["Testnet",[["Sei","sei1dkdwdvknx0qav5cp5kw68mkn3r99m3svkyjfvkztwh97dv2lm0ksj6xrak"]]]],f5e=[["Mainnet",[["Polygon",["Ethereum","0x86E4Dc95c7FBdBf52e33D563BbDB00823894C287"]],["Optimism",["Ethereum","0xdfe97868233d1aa22e815a266982f2cf17685a27"]],["Arbitrum",["Ethereum","0x1c479675ad559dc151f6ec7ed3fbf8cee79582b6"]]]],["Testnet",[["Polygon",["Ethereum","0x2890ba17efe978480615e330ecb65333b880928e"]],["Optimism",["Ethereum","0xe6dfba0953616bacab0c9a8ecb3a9bba77fc15c0"]],["Arbitrum",["Ethereum","0x45af9ed1d03703e480ce7d328fb684bb67da5049"]]]]],Iq=[["Mainnet",[["Ethereum",{porticoUniswap:"0x48b6101128C0ed1E208b7C910e60542A2ee6f476",uniswapQuoterV2:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",porticoPancakeSwap:"0x4db1683d60e0a933A9A477a19FA32F472bB9d06e",pancakeSwapQuoterV2:"0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997"}],["Polygon",{porticoUniswap:"0x227bABe533fa9a1085f5261210E0B7137E44437B",uniswapQuoterV2:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",porticoPancakeSwap:void 0,pancakeSwapQuoterV2:void 0}],["Bsc",{porticoUniswap:"0x05498574BD0Fa99eeCB01e1241661E7eE58F8a85",uniswapQuoterV2:"0x78D78E420Da98ad378D7799bE8f4AF69033EB077",porticoPancakeSwap:"0xF352DC165783538A26e38A536e76DceF227d90F2",pancakeSwapQuoterV2:"0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997"}],["Avalanche",{porticoUniswap:"0xE565E118e75304dD3cF83dff409c90034b7EA18a",uniswapQuoterV2:"0xbe0F5544EC67e9B3b2D979aaA43f18Fd87E6257F",porticoPancakeSwap:void 0,pancakeSwapQuoterV2:void 0}],["Arbitrum",{porticoUniswap:"0x48fa7528bFD6164DdF09dF0Ed22451cF59c84130",uniswapQuoterV2:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",porticoPancakeSwap:"0xE70946692E2e56ae47BfAe2d93d31bd60952B090",pancakeSwapQuoterV2:"0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997"}],["Optimism",{porticoUniswap:"0x9ae506cDDd27DEe1275fd1fe6627E5dc65257061",uniswapQuoterV2:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",porticoPancakeSwap:void 0,pancakeSwapQuoterV2:void 0}],["Base",{porticoUniswap:"0x610d4DFAC3EC32e0be98D18DDb280DACD76A1889",uniswapQuoterV2:"0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a",porticoPancakeSwap:"0x4568aa1eA0ED54db666c58B4526B3FC9BD9be9bf",pancakeSwapQuoterV2:"0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997"}],["Celo",{porticoUniswap:"0xE565E118e75304dD3cF83dff409c90034b7EA18a",uniswapQuoterV2:"0x82825d0554fA07f7FC52Ab63c961F330fdEFa8E8",porticoPancakeSwap:void 0,pancakeSwapQuoterV2:void 0}]]]],d5e=[["Mainnet",[["Solana","87MEvHZCXE3ML5rrmh5uX1FbShHmRXXS32xJDGbQ7h5t"],["Polygon","0x09959798B95d00a3183d20FaC298E4594E599eab"],["Arbitrum","0x1293a54e160D1cd7075487898d65266081A15458"],["Optimism","0x1293a54e160D1cd7075487898d65266081A15458"],["Base","0x09959798B95d00a3183d20FaC298E4594E599eab"]]]],h5e=pn(s5e),p5e=pn(Eq),b5e=pn(Sq),m5e=pn(o5e),y5e=pn(c5e),vO=pn(l5e),MO=pn(u5e),xO=pn(Iq),Rm=pn(d5e),_S=pn(Tq);pn(f5e);const Dq=pn(Eq,[0,1]),wO=pn(Sq,[0,1]),sg=pn(Tq,[0,1]),AO=pn(Iq,[0,1]),_N=[["Mainnet",[["0x58CC3AE5C097b213cE3c81979e1B9f9570746AA5","JumpCrypto"],["0xfF6CB952589BDE862c25Ef4392132fb9D4A42157","Staked"],["0x114De8460193bdf3A2fCf81f86a09765F4762fD1","Figment"],["0x107A0086b32d7A0977926A205131d8731D39cbEB","ChainodeTech"],["0x8C82B2fd82FaeD2711d59AF0F2499D16e726f6b2","Inotel"],["0x11b39756C042441BE6D8650b69b54EbE715E2343","HashQuark"],["0x54Ce5B4D348fb74B958e8966e2ec3dBd4958a7cd","Chainlayer"],["0x15e7cAF07C4e3DC8e7C469f92C8Cd88FB8005a20","xLabs"],["0x74a3bf913953D695260D88BC1aA25A4eeE363ef0","Forbole"],["0x000aC0076727b35FBea2dAc28fEE5cCB0fEA768e","StakingFund"],["0xAF45Ced136b9D9e24903464AE889F5C8a723FC14","MoonletWallet"],["0xf93124b7c738843CBB89E864c862c38cddCccF95","P2PValidator"],["0xD2CC37A4dc036a8D232b48f62cDD4731412f4890","01Node"],["0xDA798F6896A3331F64b48c12D1D57Fd9cbe70811","MCF"],["0x71AA1BE1D36CaFE3867910F99C09e347899C19C3","Everstake"],["0x8192b6E7387CCd768277c17DAb1b7a5027c0b3Cf","ChorusOne"],["0x178e21ad2E77AE06711549CFBB1f9c7a9d8096e8","Syncnode"],["0x5E1487F35515d02A92753504a8D75471b9f49EdB","Triton"],["0x6FbEBc898F403E4773E95feB15E80C9A99c8348d","StakingFacilities"]]],["Testnet",[["0x13947Bd48b18E53fdAeEe77F3473391aC727C638","Testnet guardian"]]]],[XHe,JHe]=yde($f(ng(_N)),[1,2]);pn(_N,[[0,2],1]);pn(_N,[1,[0,2]]);const ON=5,g5e=[["Mainnet",[["Ethereum","0x18084fbA666a33d37592fA2633fD49a74DD93a88"],["Solana","6DNSN2BJsaPFdFFc1zP37kkeNe4Usc1Sqkzr9C9vPWcU"],["Polygon","0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"],["Arbitrum","0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"],["Optimism","0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"],["Base","0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"]]]],v5e=pn(g5e);function og(t){if(!Number.isSafeInteger(t)||t<0)throw new Error("positive integer expected, got "+t)}function M5e(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"}function Kh(t,...e){if(!M5e(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error("Uint8Array expected of length "+e+", got length="+t.length)}function x5e(t){if(typeof t!="function"||typeof t.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");og(t.outputLen),og(t.blockLen)}function nh(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function Nq(t,e){Kh(t);const n=e.outputLen;if(t.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}const Hd=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function w5e(t){return new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4))}function Ux(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function Ko(t,e){return t<<32-e|t>>>e}function eWe(t,e){return t<<e|t>>>32-e>>>0}const OS=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function Lq(t){return t<<24&4278190080|t<<8&16711680|t>>>8&65280|t>>>24&255}const tWe=OS?t=>t:t=>Lq(t);function CO(t){for(let e=0;e<t.length;e++)t[e]=Lq(t[e])}const A5e=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function nWe(t){Kh(t);let e="";for(let n=0;n<t.length;n++)e+=A5e[t[n]];return e}const lc={_0:48,_9:57,A:65,F:70,a:97,f:102};function EO(t){if(t>=lc._0&&t<=lc._9)return t-lc._0;if(t>=lc.A&&t<=lc.F)return t-(lc.A-10);if(t>=lc.a&&t<=lc.f)return t-(lc.a-10)}function rWe(t){if(typeof t!="string")throw new Error("hex string expected, got "+typeof t);const e=t.length,n=e/2;if(e%2)throw new Error("hex string expected, got unpadded hex of length "+e);const r=new Uint8Array(n);for(let i=0,a=0;i<n;i++,a+=2){const s=EO(t.charCodeAt(a)),c=EO(t.charCodeAt(a+1));if(s===void 0||c===void 0){const l=t[a]+t[a+1];throw new Error('hex string expected, got non-hex character "'+l+'" at index '+a)}r[i]=s*16+c}return r}function C5e(t){if(typeof t!="string")throw new Error("utf8ToBytes expected string, got "+typeof t);return new Uint8Array(new TextEncoder().encode(t))}function Qp(t){return typeof t=="string"&&(t=C5e(t)),Kh(t),t}function E5e(...t){let e=0;for(let r=0;r<t.length;r++){const i=t[r];Kh(i),e+=i.length}const n=new Uint8Array(e);for(let r=0,i=0;r<t.length;r++){const a=t[r];n.set(a,i),i+=a.length}return n}let FN=class{clone(){return this._cloneInto()}};function aWe(t,e){if(e!==void 0&&{}.toString.call(e)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(t,e)}function yv(t){const e=r=>t().update(Qp(r)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function sWe(t){const e=(r,i)=>t(i).update(Qp(r)).digest(),n=t({});return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=r=>t(r),e}function Bq(t=32){if(Hd&&typeof Hd.getRandomValues=="function")return Hd.getRandomValues(new Uint8Array(t));if(Hd&&typeof Hd.randomBytes=="function")return Hd.randomBytes(t);throw new Error("crypto.getRandomValues must be defined")}function S5e(t,e,n,r){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,n,r);const i=BigInt(32),a=BigInt(4294967295),s=Number(n>>i&a),c=Number(n&a),l=r?4:0,d=r?0:4;t.setUint32(e+l,s,r),t.setUint32(e+d,c,r)}function T5e(t,e,n){return t&e^~t&n}function I5e(t,e,n){return t&e^t&n^e&n}class jq extends FN{constructor(e,n,r,i){super(),this.blockLen=e,this.outputLen=n,this.padOffset=r,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=Ux(this.buffer)}update(e){nh(this);const{view:n,buffer:r,blockLen:i}=this;e=Qp(e);const a=e.length;for(let s=0;s<a;){const c=Math.min(i-this.pos,a-s);if(c===i){const l=Ux(e);for(;i<=a-s;s+=i)this.process(l,s);continue}r.set(e.subarray(s,s+c),this.pos),this.pos+=c,s+=c,this.pos===i&&(this.process(n,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){nh(this),Nq(e,this),this.finished=!0;const{buffer:n,view:r,blockLen:i,isLE:a}=this;let{pos:s}=this;n[s++]=128,this.buffer.subarray(s).fill(0),this.padOffset>i-s&&(this.process(r,0),s=0);for(let m=s;m<i;m++)n[m]=0;S5e(r,i-8,BigInt(this.length*8),a),this.process(r,0);const c=Ux(e),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const d=l/4,p=this.get();if(d>p.length)throw new Error("_sha2: outputLen bigger than state");for(let m=0;m<d;m++)c.setUint32(4*m,p[m],a)}digest(){const{buffer:e,outputLen:n}=this;this.digestInto(e);const r=e.slice(0,n);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:n,buffer:r,length:i,finished:a,destroyed:s,pos:c}=this;return e.length=i,e.pos=c,e.finished=a,e.destroyed=s,i%n&&e.buffer.set(r),e}}const D5e=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Dl=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Nl=new Uint32Array(64);let N5e=class extends jq{constructor(){super(64,32,8,!1),this.A=Dl[0]|0,this.B=Dl[1]|0,this.C=Dl[2]|0,this.D=Dl[3]|0,this.E=Dl[4]|0,this.F=Dl[5]|0,this.G=Dl[6]|0,this.H=Dl[7]|0}get(){const{A:e,B:n,C:r,D:i,E:a,F:s,G:c,H:l}=this;return[e,n,r,i,a,s,c,l]}set(e,n,r,i,a,s,c,l){this.A=e|0,this.B=n|0,this.C=r|0,this.D=i|0,this.E=a|0,this.F=s|0,this.G=c|0,this.H=l|0}process(e,n){for(let m=0;m<16;m++,n+=4)Nl[m]=e.getUint32(n,!1);for(let m=16;m<64;m++){const g=Nl[m-15],M=Nl[m-2],C=Ko(g,7)^Ko(g,18)^g>>>3,T=Ko(M,17)^Ko(M,19)^M>>>10;Nl[m]=T+Nl[m-7]+C+Nl[m-16]|0}let{A:r,B:i,C:a,D:s,E:c,F:l,G:d,H:p}=this;for(let m=0;m<64;m++){const g=Ko(c,6)^Ko(c,11)^Ko(c,25),M=p+g+T5e(c,l,d)+D5e[m]+Nl[m]|0,T=(Ko(r,2)^Ko(r,13)^Ko(r,22))+I5e(r,i,a)|0;p=d,d=l,l=c,c=s+M|0,s=a,a=i,i=r,r=M+T|0}r=r+this.A|0,i=i+this.B|0,a=a+this.C|0,s=s+this.D|0,c=c+this.E|0,l=l+this.F|0,d=d+this.G|0,p=p+this.H|0,this.set(r,i,a,s,c,l,d,p)}roundClean(){Nl.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}};const qu=yv(()=>new N5e),i9=BigInt(2**32-1),FS=BigInt(32);function kq(t,e=!1){return e?{h:Number(t&i9),l:Number(t>>FS&i9)}:{h:Number(t>>FS&i9)|0,l:Number(t&i9)|0}}function _q(t,e=!1){let n=new Uint32Array(t.length),r=new Uint32Array(t.length);for(let i=0;i<t.length;i++){const{h:a,l:s}=kq(t[i],e);[n[i],r[i]]=[a,s]}return[n,r]}const L5e=(t,e)=>BigInt(t>>>0)<<FS|BigInt(e>>>0),B5e=(t,e,n)=>t>>>n,j5e=(t,e,n)=>t<<32-n|e>>>n,k5e=(t,e,n)=>t>>>n|e<<32-n,_5e=(t,e,n)=>t<<32-n|e>>>n,O5e=(t,e,n)=>t<<64-n|e>>>n-32,F5e=(t,e,n)=>t>>>n-32|e<<64-n,z5e=(t,e)=>e,R5e=(t,e)=>t,Oq=(t,e,n)=>t<<n|e>>>32-n,Fq=(t,e,n)=>e<<n|t>>>32-n,zq=(t,e,n)=>e<<n-32|t>>>64-n,Rq=(t,e,n)=>t<<n-32|e>>>64-n;function P5e(t,e,n,r){const i=(e>>>0)+(r>>>0);return{h:t+n+(i/2**32|0)|0,l:i|0}}const U5e=(t,e,n)=>(t>>>0)+(e>>>0)+(n>>>0),H5e=(t,e,n,r)=>e+n+r+(t/2**32|0)|0,W5e=(t,e,n,r)=>(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0),Y5e=(t,e,n,r,i)=>e+n+r+i+(t/2**32|0)|0,G5e=(t,e,n,r,i)=>(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0)+(i>>>0),$5e=(t,e,n,r,i,a)=>e+n+r+i+a+(t/2**32|0)|0,Dn={fromBig:kq,split:_q,toBig:L5e,shrSH:B5e,shrSL:j5e,rotrSH:k5e,rotrSL:_5e,rotrBH:O5e,rotrBL:F5e,rotr32H:z5e,rotr32L:R5e,rotlSH:Oq,rotlSL:Fq,rotlBH:zq,rotlBL:Rq,add:P5e,add3L:U5e,add3H:H5e,add4L:W5e,add4H:Y5e,add5H:$5e,add5L:G5e},Pq=[],Uq=[],Hq=[],V5e=BigInt(0),O8=BigInt(1),Q5e=BigInt(2),q5e=BigInt(7),Z5e=BigInt(256),K5e=BigInt(113);for(let t=0,e=O8,n=1,r=0;t<24;t++){[n,r]=[r,(2*n+3*r)%5],Pq.push(2*(5*r+n)),Uq.push((t+1)*(t+2)/2%64);let i=V5e;for(let a=0;a<7;a++)e=(e<<O8^(e>>q5e)*K5e)%Z5e,e&Q5e&&(i^=O8<<(O8<<BigInt(a))-O8);Hq.push(i)}const[X5e,J5e]=_q(Hq,!0),SO=(t,e,n)=>n>32?zq(t,e,n):Oq(t,e,n),TO=(t,e,n)=>n>32?Rq(t,e,n):Fq(t,e,n);function e2e(t,e=24){const n=new Uint32Array(10);for(let r=24-e;r<24;r++){for(let s=0;s<10;s++)n[s]=t[s]^t[s+10]^t[s+20]^t[s+30]^t[s+40];for(let s=0;s<10;s+=2){const c=(s+8)%10,l=(s+2)%10,d=n[l],p=n[l+1],m=SO(d,p,1)^n[c],g=TO(d,p,1)^n[c+1];for(let M=0;M<50;M+=10)t[s+M]^=m,t[s+M+1]^=g}let i=t[2],a=t[3];for(let s=0;s<24;s++){const c=Uq[s],l=SO(i,a,c),d=TO(i,a,c),p=Pq[s];i=t[p],a=t[p+1],t[p]=l,t[p+1]=d}for(let s=0;s<50;s+=10){for(let c=0;c<10;c++)n[c]=t[s+c];for(let c=0;c<10;c++)t[s+c]^=~n[(c+2)%10]&n[(c+4)%10]}t[0]^=X5e[r],t[1]^=J5e[r]}n.fill(0)}let t2e=class Wq extends FN{constructor(e,n,r,i=!1,a=24){if(super(),this.blockLen=e,this.suffix=n,this.outputLen=r,this.enableXOF=i,this.rounds=a,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,og(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=w5e(this.state)}keccak(){OS||CO(this.state32),e2e(this.state32,this.rounds),OS||CO(this.state32),this.posOut=0,this.pos=0}update(e){nh(this);const{blockLen:n,state:r}=this;e=Qp(e);const i=e.length;for(let a=0;a<i;){const s=Math.min(n-this.pos,i-a);for(let c=0;c<s;c++)r[this.pos++]^=e[a++];this.pos===n&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:e,suffix:n,pos:r,blockLen:i}=this;e[r]^=n,n&128&&r===i-1&&this.keccak(),e[i-1]^=128,this.keccak()}writeInto(e){nh(this,!1),Kh(e),this.finish();const n=this.state,{blockLen:r}=this;for(let i=0,a=e.length;i<a;){this.posOut>=r&&this.keccak();const s=Math.min(r-this.posOut,a-i);e.set(n.subarray(this.posOut,this.posOut+s),i),this.posOut+=s,i+=s}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return og(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(Nq(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:n,suffix:r,outputLen:i,rounds:a,enableXOF:s}=this;return e||(e=new Wq(n,r,i,s,a)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=a,e.suffix=r,e.outputLen=i,e.enableXOF=s,e.destroyed=this.destroyed,e}};const Yq=(t,e,n)=>yv(()=>new t2e(e,t,n)),cWe=Yq(6,136,256/8),J6=Yq(1,136,256/8),[n2e,r2e]=Dn.split(["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(t=>BigInt(t))),Ll=new Uint32Array(80),Bl=new Uint32Array(80);let Gq=class extends jq{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:e,Al:n,Bh:r,Bl:i,Ch:a,Cl:s,Dh:c,Dl:l,Eh:d,El:p,Fh:m,Fl:g,Gh:M,Gl:C,Hh:T,Hl:D}=this;return[e,n,r,i,a,s,c,l,d,p,m,g,M,C,T,D]}set(e,n,r,i,a,s,c,l,d,p,m,g,M,C,T,D){this.Ah=e|0,this.Al=n|0,this.Bh=r|0,this.Bl=i|0,this.Ch=a|0,this.Cl=s|0,this.Dh=c|0,this.Dl=l|0,this.Eh=d|0,this.El=p|0,this.Fh=m|0,this.Fl=g|0,this.Gh=M|0,this.Gl=C|0,this.Hh=T|0,this.Hl=D|0}process(e,n){for(let N=0;N<16;N++,n+=4)Ll[N]=e.getUint32(n),Bl[N]=e.getUint32(n+=4);for(let N=16;N<80;N++){const B=Ll[N-15]|0,k=Bl[N-15]|0,O=Dn.rotrSH(B,k,1)^Dn.rotrSH(B,k,8)^Dn.shrSH(B,k,7),z=Dn.rotrSL(B,k,1)^Dn.rotrSL(B,k,8)^Dn.shrSL(B,k,7),_=Ll[N-2]|0,F=Bl[N-2]|0,R=Dn.rotrSH(_,F,19)^Dn.rotrBH(_,F,61)^Dn.shrSH(_,F,6),w=Dn.rotrSL(_,F,19)^Dn.rotrBL(_,F,61)^Dn.shrSL(_,F,6),o=Dn.add4L(z,w,Bl[N-7],Bl[N-16]),u=Dn.add4H(o,O,R,Ll[N-7],Ll[N-16]);Ll[N]=u|0,Bl[N]=o|0}let{Ah:r,Al:i,Bh:a,Bl:s,Ch:c,Cl:l,Dh:d,Dl:p,Eh:m,El:g,Fh:M,Fl:C,Gh:T,Gl:D,Hh:S,Hl:I}=this;for(let N=0;N<80;N++){const B=Dn.rotrSH(m,g,14)^Dn.rotrSH(m,g,18)^Dn.rotrBH(m,g,41),k=Dn.rotrSL(m,g,14)^Dn.rotrSL(m,g,18)^Dn.rotrBL(m,g,41),O=m&M^~m&T,z=g&C^~g&D,_=Dn.add5L(I,k,z,r2e[N],Bl[N]),F=Dn.add5H(_,S,B,O,n2e[N],Ll[N]),R=_|0,w=Dn.rotrSH(r,i,28)^Dn.rotrBH(r,i,34)^Dn.rotrBH(r,i,39),o=Dn.rotrSL(r,i,28)^Dn.rotrBL(r,i,34)^Dn.rotrBL(r,i,39),u=r&a^r&c^a&c,h=i&s^i&l^s&l;S=T|0,I=D|0,T=M|0,D=C|0,M=m|0,C=g|0,{h:m,l:g}=Dn.add(d|0,p|0,F|0,R|0),d=c|0,p=l|0,c=a|0,l=s|0,a=r|0,s=i|0;const b=Dn.add3L(R,o,h);r=Dn.add3H(b,F,w,u),i=b|0}({h:r,l:i}=Dn.add(this.Ah|0,this.Al|0,r|0,i|0)),{h:a,l:s}=Dn.add(this.Bh|0,this.Bl|0,a|0,s|0),{h:c,l}=Dn.add(this.Ch|0,this.Cl|0,c|0,l|0),{h:d,l:p}=Dn.add(this.Dh|0,this.Dl|0,d|0,p|0),{h:m,l:g}=Dn.add(this.Eh|0,this.El|0,m|0,g|0),{h:M,l:C}=Dn.add(this.Fh|0,this.Fl|0,M|0,C|0),{h:T,l:D}=Dn.add(this.Gh|0,this.Gl|0,T|0,D|0),{h:S,l:I}=Dn.add(this.Hh|0,this.Hl|0,S|0,I|0),this.set(r,i,a,s,c,l,d,p,m,g,M,C,T,D,S,I)}roundClean(){Ll.fill(0),Bl.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}};class i2e extends Gq{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}const a2e=yv(()=>new Gq),s2e=yv(()=>new i2e);let $q=class extends FN{constructor(e,n){super(),this.finished=!1,this.destroyed=!1,x5e(e);const r=Qp(n);if(this.iHash=e.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?e.create().update(r).digest():r);for(let s=0;s<a.length;s++)a[s]^=54;this.iHash.update(a),this.oHash=e.create();for(let s=0;s<a.length;s++)a[s]^=106;this.oHash.update(a),a.fill(0)}update(e){return nh(this),this.iHash.update(e),this}digestInto(e){nh(this),Kh(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:n,iHash:r,finished:i,destroyed:a,blockLen:s,outputLen:c}=this;return e=e,e.finished=i,e.destroyed=a,e.blockLen=s,e.outputLen=c,e.oHash=n._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}};const Vq=(t,e,n)=>new $q(t,e).update(n).digest();Vq.create=(t,e)=>new $q(t,e);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const gv=BigInt(0),vv=BigInt(1),o2e=BigInt(2);function ed(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"}function qp(t){if(!ed(t))throw new Error("Uint8Array expected")}function Jc(t,e){if(typeof e!="boolean")throw new Error(t+" boolean expected, got "+e)}const c2e=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function td(t){qp(t);let e="";for(let n=0;n<t.length;n++)e+=c2e[t[n]];return e}function x5(t){const e=t.toString(16);return e.length&1?"0"+e:e}function zN(t){if(typeof t!="string")throw new Error("hex string expected, got "+typeof t);return t===""?gv:BigInt("0x"+t)}const uc={_0:48,_9:57,A:65,F:70,a:97,f:102};function IO(t){if(t>=uc._0&&t<=uc._9)return t-uc._0;if(t>=uc.A&&t<=uc.F)return t-(uc.A-10);if(t>=uc.a&&t<=uc.f)return t-(uc.a-10)}function rh(t){if(typeof t!="string")throw new Error("hex string expected, got "+typeof t);const e=t.length,n=e/2;if(e%2)throw new Error("hex string expected, got unpadded hex of length "+e);const r=new Uint8Array(n);for(let i=0,a=0;i<n;i++,a+=2){const s=IO(t.charCodeAt(a)),c=IO(t.charCodeAt(a+1));if(s===void 0||c===void 0){const l=t[a]+t[a+1];throw new Error('hex string expected, got non-hex character "'+l+'" at index '+a)}r[i]=s*16+c}return r}function j6(t){return zN(td(t))}function G5(t){return qp(t),zN(td(Uint8Array.from(t).reverse()))}function ih(t,e){return rh(t.toString(16).padStart(e*2,"0"))}function L4(t,e){return ih(t,e).reverse()}function l2e(t){return rh(x5(t))}function L0(t,e,n){let r;if(typeof e=="string")try{r=rh(e)}catch(a){throw new Error(t+" must be hex string or Uint8Array, cause: "+a)}else if(ed(e))r=Uint8Array.from(e);else throw new Error(t+" must be hex string or Uint8Array");const i=r.length;if(typeof n=="number"&&i!==n)throw new Error(t+" of length "+n+" expected, got "+i);return r}function nd(...t){let e=0;for(let r=0;r<t.length;r++){const i=t[r];qp(i),e+=i.length}const n=new Uint8Array(e);for(let r=0,i=0;r<t.length;r++){const a=t[r];n.set(a,i),i+=a.length}return n}function u2e(t,e){if(t.length!==e.length)return!1;let n=0;for(let r=0;r<t.length;r++)n|=t[r]^e[r];return n===0}function f2e(t){if(typeof t!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(t))}const Hx=t=>typeof t=="bigint"&&gv<=t;function Mv(t,e,n){return Hx(t)&&Hx(e)&&Hx(n)&&e<=t&&t<n}function Qs(t,e,n,r){if(!Mv(e,n,r))throw new Error("expected valid "+t+": "+n+" <= n < "+r+", got "+e)}function Qq(t){let e;for(e=0;t>gv;t>>=vv,e+=1);return e}function d2e(t,e){return t>>BigInt(e)&vv}function h2e(t,e,n){return t|(n?vv:gv)<<BigInt(e)}const RN=t=>(o2e<<BigInt(t-1))-vv,Wx=t=>new Uint8Array(t),DO=t=>Uint8Array.from(t);function qq(t,e,n){if(typeof t!="number"||t<2)throw new Error("hashLen must be a number");if(typeof e!="number"||e<2)throw new Error("qByteLen must be a number");if(typeof n!="function")throw new Error("hmacFn must be a function");let r=Wx(t),i=Wx(t),a=0;const s=()=>{r.fill(1),i.fill(0),a=0},c=(...m)=>n(i,r,...m),l=(m=Wx())=>{i=c(DO([0]),m),r=c(),m.length!==0&&(i=c(DO([1]),m),r=c())},d=()=>{if(a++>=1e3)throw new Error("drbg: tried 1000 values");let m=0;const g=[];for(;m<e;){r=c();const M=r.slice();g.push(M),m+=r.length}return nd(...g)};return(m,g)=>{s(),l(m);let M;for(;!(M=g(d()));)l();return s(),M}}const p2e={bigint:t=>typeof t=="bigint",function:t=>typeof t=="function",boolean:t=>typeof t=="boolean",string:t=>typeof t=="string",stringOrUint8Array:t=>typeof t=="string"||ed(t),isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,e)=>e.Fp.isValid(t),hash:t=>typeof t=="function"&&Number.isSafeInteger(t.outputLen)};function Xh(t,e,n={}){const r=(i,a,s)=>{const c=p2e[a];if(typeof c!="function")throw new Error("invalid validator function");const l=t[i];if(!(s&&l===void 0)&&!c(l,t))throw new Error("param "+String(i)+" is invalid. Expected "+a+", got "+l)};for(const[i,a]of Object.entries(e))r(i,a,!1);for(const[i,a]of Object.entries(n))r(i,a,!0);return t}const b2e=()=>{throw new Error("not implemented")};function B4(t){const e=new WeakMap;return(n,...r)=>{const i=e.get(n);if(i!==void 0)return i;const a=t(n,...r);return e.set(n,a),a}}const m2e=Object.freeze(Object.defineProperty({__proto__:null,aInRange:Qs,abool:Jc,abytes:qp,bitGet:d2e,bitLen:Qq,bitMask:RN,bitSet:h2e,bytesToHex:td,bytesToNumberBE:j6,bytesToNumberLE:G5,concatBytes:nd,createHmacDrbg:qq,ensureBytes:L0,equalBytes:u2e,hexToBytes:rh,hexToNumber:zN,inRange:Mv,isBytes:ed,memoized:B4,notImplemented:b2e,numberToBytesBE:ih,numberToBytesLE:L4,numberToHexUnpadded:x5,numberToVarBytesBE:l2e,utf8ToBytes:f2e,validateObject:Xh},Symbol.toStringTag,{value:"Module"}));/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const ri=BigInt(0),Kr=BigInt(1),If=BigInt(2),y2e=BigInt(3),zS=BigInt(4),NO=BigInt(5),LO=BigInt(8);function $r(t,e){const n=t%e;return n>=ri?n:e+n}function g2e(t,e,n){if(e<ri)throw new Error("invalid exponent, negatives unsupported");if(n<=ri)throw new Error("invalid modulus");if(n===Kr)return ri;let r=Kr;for(;e>ri;)e&Kr&&(r=r*t%n),t=t*t%n,e>>=Kr;return r}function f0(t,e,n){let r=t;for(;e-- >ri;)r*=r,r%=n;return r}function RS(t,e){if(t===ri)throw new Error("invert: expected non-zero number");if(e<=ri)throw new Error("invert: expected positive modulus, got "+e);let n=$r(t,e),r=e,i=ri,a=Kr;for(;n!==ri;){const c=r/n,l=r%n,d=i-a*c;r=n,n=l,i=a,a=d}if(r!==Kr)throw new Error("invert: does not exist");return $r(i,e)}function v2e(t){const e=(t-Kr)/If;let n,r,i;for(n=t-Kr,r=0;n%If===ri;n/=If,r++);for(i=If;i<t&&g2e(i,e,t)!==t-Kr;i++)if(i>1e3)throw new Error("Cannot find square root: likely non-prime P");if(r===1){const s=(t+Kr)/zS;return function(l,d){const p=l.pow(d,s);if(!l.eql(l.sqr(p),d))throw new Error("Cannot find square root");return p}}const a=(n+Kr)/If;return function(c,l){if(c.pow(l,e)===c.neg(c.ONE))throw new Error("Cannot find square root");let d=r,p=c.pow(c.mul(c.ONE,i),n),m=c.pow(l,a),g=c.pow(l,n);for(;!c.eql(g,c.ONE);){if(c.eql(g,c.ZERO))return c.ZERO;let M=1;for(let T=c.sqr(g);M<d&&!c.eql(T,c.ONE);M++)T=c.sqr(T);const C=c.pow(p,Kr<<BigInt(d-M-1));p=c.sqr(C),m=c.mul(m,C),g=c.mul(g,p),d=M}return m}}function M2e(t){if(t%zS===y2e){const e=(t+Kr)/zS;return function(r,i){const a=r.pow(i,e);if(!r.eql(r.sqr(a),i))throw new Error("Cannot find square root");return a}}if(t%LO===NO){const e=(t-NO)/LO;return function(r,i){const a=r.mul(i,If),s=r.pow(a,e),c=r.mul(i,s),l=r.mul(r.mul(c,If),s),d=r.mul(c,r.sub(l,r.ONE));if(!r.eql(r.sqr(d),i))throw new Error("Cannot find square root");return d}}return v2e(t)}const x2e=(t,e)=>($r(t,e)&Kr)===Kr,w2e=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function A2e(t){const e={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},n=w2e.reduce((r,i)=>(r[i]="function",r),e);return Xh(t,n)}function C2e(t,e,n){if(n<ri)throw new Error("invalid exponent, negatives unsupported");if(n===ri)return t.ONE;if(n===Kr)return e;let r=t.ONE,i=e;for(;n>ri;)n&Kr&&(r=t.mul(r,i)),i=t.sqr(i),n>>=Kr;return r}function E2e(t,e){const n=new Array(e.length),r=e.reduce((a,s,c)=>t.is0(s)?a:(n[c]=a,t.mul(a,s)),t.ONE),i=t.inv(r);return e.reduceRight((a,s,c)=>t.is0(s)?a:(n[c]=t.mul(a,n[c]),t.mul(a,s)),i),n}function Zq(t,e){const n=e!==void 0?e:t.toString(2).length,r=Math.ceil(n/8);return{nBitLength:n,nByteLength:r}}function xv(t,e,n=!1,r={}){if(t<=ri)throw new Error("invalid field: expected ORDER > 0, got "+t);const{nBitLength:i,nByteLength:a}=Zq(t,e);if(a>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let s;const c=Object.freeze({ORDER:t,isLE:n,BITS:i,BYTES:a,MASK:RN(i),ZERO:ri,ONE:Kr,create:l=>$r(l,t),isValid:l=>{if(typeof l!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof l);return ri<=l&&l<t},is0:l=>l===ri,isOdd:l=>(l&Kr)===Kr,neg:l=>$r(-l,t),eql:(l,d)=>l===d,sqr:l=>$r(l*l,t),add:(l,d)=>$r(l+d,t),sub:(l,d)=>$r(l-d,t),mul:(l,d)=>$r(l*d,t),pow:(l,d)=>C2e(c,l,d),div:(l,d)=>$r(l*RS(d,t),t),sqrN:l=>l*l,addN:(l,d)=>l+d,subN:(l,d)=>l-d,mulN:(l,d)=>l*d,inv:l=>RS(l,t),sqrt:r.sqrt||(l=>(s||(s=M2e(t)),s(c,l))),invertBatch:l=>E2e(c,l),cmov:(l,d,p)=>p?d:l,toBytes:l=>n?L4(l,a):ih(l,a),fromBytes:l=>{if(l.length!==a)throw new Error("Field.fromBytes: expected "+a+" bytes, got "+l.length);return n?G5(l):j6(l)}});return Object.freeze(c)}function Kq(t){if(typeof t!="bigint")throw new Error("field order must be bigint");const e=t.toString(2).length;return Math.ceil(e/8)}function Xq(t){const e=Kq(t);return e+Math.ceil(e/2)}function S2e(t,e,n=!1){const r=t.length,i=Kq(e),a=Xq(e);if(r<16||r<a||r>1024)throw new Error("expected "+a+"-1024 bytes of input, got "+r);const s=n?G5(t):j6(t),c=$r(s,e-Kr)+Kr;return n?L4(c,i):ih(c,i)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const BO=BigInt(0),a9=BigInt(1);function Yx(t,e){const n=e.negate();return t?n:e}function Jq(t,e){if(!Number.isSafeInteger(t)||t<=0||t>e)throw new Error("invalid window size, expected [1.."+e+"], got W="+t)}function Gx(t,e){Jq(t,e);const n=Math.ceil(e/t)+1,r=2**(t-1);return{windows:n,windowSize:r}}function T2e(t,e){if(!Array.isArray(t))throw new Error("array expected");t.forEach((n,r)=>{if(!(n instanceof e))throw new Error("invalid point at index "+r)})}function I2e(t,e){if(!Array.isArray(t))throw new Error("array of scalars expected");t.forEach((n,r)=>{if(!e.isValid(n))throw new Error("invalid scalar at index "+r)})}const $x=new WeakMap,eZ=new WeakMap;function Vx(t){return eZ.get(t)||1}function tZ(t,e){return{constTimeNegate:Yx,hasPrecomputes(n){return Vx(n)!==1},unsafeLadder(n,r,i=t.ZERO){let a=n;for(;r>BO;)r&a9&&(i=i.add(a)),a=a.double(),r>>=a9;return i},precomputeWindow(n,r){const{windows:i,windowSize:a}=Gx(r,e),s=[];let c=n,l=c;for(let d=0;d<i;d++){l=c,s.push(l);for(let p=1;p<a;p++)l=l.add(c),s.push(l);c=l.double()}return s},wNAF(n,r,i){const{windows:a,windowSize:s}=Gx(n,e);let c=t.ZERO,l=t.BASE;const d=BigInt(2**n-1),p=2**n,m=BigInt(n);for(let g=0;g<a;g++){const M=g*s;let C=Number(i&d);i>>=m,C>s&&(C-=p,i+=a9);const T=M,D=M+Math.abs(C)-1,S=g%2!==0,I=C<0;C===0?l=l.add(Yx(S,r[T])):c=c.add(Yx(I,r[D]))}return{p:c,f:l}},wNAFUnsafe(n,r,i,a=t.ZERO){const{windows:s,windowSize:c}=Gx(n,e),l=BigInt(2**n-1),d=2**n,p=BigInt(n);for(let m=0;m<s;m++){const g=m*c;if(i===BO)break;let M=Number(i&l);if(i>>=p,M>c&&(M-=d,i+=a9),M===0)continue;let C=r[g+Math.abs(M)-1];M<0&&(C=C.negate()),a=a.add(C)}return a},getPrecomputes(n,r,i){let a=$x.get(r);return a||(a=this.precomputeWindow(r,n),n!==1&&$x.set(r,i(a))),a},wNAFCached(n,r,i){const a=Vx(n);return this.wNAF(a,this.getPrecomputes(a,n,i),r)},wNAFCachedUnsafe(n,r,i,a){const s=Vx(n);return s===1?this.unsafeLadder(n,r,a):this.wNAFUnsafe(s,this.getPrecomputes(s,n,i),r,a)},setWindowSize(n,r){Jq(r,e),eZ.set(n,r),$x.delete(n)}}}function nZ(t,e,n,r){if(T2e(n,t),I2e(r,e),n.length!==r.length)throw new Error("arrays of points and scalars must have equal length");const i=t.ZERO,a=Qq(BigInt(n.length)),s=a>12?a-3:a>4?a-2:a?2:1,c=(1<<s)-1,l=new Array(c+1).fill(i),d=Math.floor((e.BITS-1)/s)*s;let p=i;for(let m=d;m>=0;m-=s){l.fill(i);for(let M=0;M<r.length;M++){const C=r[M],T=Number(C>>BigInt(m)&BigInt(c));l[T]=l[T].add(n[M])}let g=i;for(let M=l.length-1,C=i;M>0;M--)C=C.add(l[M]),g=g.add(C);if(p=p.add(g),m!==0)for(let M=0;M<s;M++)p=p.double()}return p}function PN(t){return A2e(t.Fp),Xh(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...Zq(t.n,t.nBitLength),...t,p:t.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function jO(t){t.lowS!==void 0&&Jc("lowS",t.lowS),t.prehash!==void 0&&Jc("prehash",t.prehash)}function D2e(t){const e=PN(t);Xh(e,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:n,Fp:r,a:i}=e;if(n){if(!r.eql(i,r.ZERO))throw new Error("invalid endomorphism, can only be defined for Koblitz curves that have a=0");if(typeof n!="object"||typeof n.beta!="bigint"||typeof n.splitScalar!="function")throw new Error("invalid endomorphism, expected beta: bigint and splitScalar: function")}return Object.freeze({...e})}const{bytesToNumberBE:N2e,hexToBytes:L2e}=m2e;class B2e extends Error{constructor(e=""){super(e)}}const vc={Err:B2e,_tlv:{encode:(t,e)=>{const{Err:n}=vc;if(t<0||t>256)throw new n("tlv.encode: wrong tag");if(e.length&1)throw new n("tlv.encode: unpadded data");const r=e.length/2,i=x5(r);if(i.length/2&128)throw new n("tlv.encode: long form length too big");const a=r>127?x5(i.length/2|128):"";return x5(t)+a+i+e},decode(t,e){const{Err:n}=vc;let r=0;if(t<0||t>256)throw new n("tlv.encode: wrong tag");if(e.length<2||e[r++]!==t)throw new n("tlv.decode: wrong tlv");const i=e[r++],a=!!(i&128);let s=0;if(!a)s=i;else{const l=i&127;if(!l)throw new n("tlv.decode(long): indefinite length not supported");if(l>4)throw new n("tlv.decode(long): byte length is too big");const d=e.subarray(r,r+l);if(d.length!==l)throw new n("tlv.decode: length bytes not complete");if(d[0]===0)throw new n("tlv.decode(long): zero leftmost byte");for(const p of d)s=s<<8|p;if(r+=l,s<128)throw new n("tlv.decode(long): not minimal encoding")}const c=e.subarray(r,r+s);if(c.length!==s)throw new n("tlv.decode: wrong value length");return{v:c,l:e.subarray(r+s)}}},_int:{encode(t){const{Err:e}=vc;if(t<zc)throw new e("integer: negative integers are not allowed");let n=x5(t);if(Number.parseInt(n[0],16)&8&&(n="00"+n),n.length&1)throw new e("unexpected DER parsing assertion: unpadded hex");return n},decode(t){const{Err:e}=vc;if(t[0]&128)throw new e("invalid signature integer: negative");if(t[0]===0&&!(t[1]&128))throw new e("invalid signature integer: unnecessary leading zero");return N2e(t)}},toSig(t){const{Err:e,_int:n,_tlv:r}=vc,i=typeof t=="string"?L2e(t):t;qp(i);const{v:a,l:s}=r.decode(48,i);if(s.length)throw new e("invalid signature: left bytes after parsing");const{v:c,l}=r.decode(2,a),{v:d,l:p}=r.decode(2,l);if(p.length)throw new e("invalid signature: left bytes after parsing");return{r:n.decode(c),s:n.decode(d)}},hexFromSig(t){const{_tlv:e,_int:n}=vc,r=e.encode(2,n.encode(t.r)),i=e.encode(2,n.encode(t.s)),a=r+i;return e.encode(48,a)}},zc=BigInt(0),Z0=BigInt(1);BigInt(2);const kO=BigInt(3);BigInt(4);function j2e(t){const e=D2e(t),{Fp:n}=e,r=xv(e.n,e.nBitLength),i=e.toBytes||((T,D,S)=>{const I=D.toAffine();return nd(Uint8Array.from([4]),n.toBytes(I.x),n.toBytes(I.y))}),a=e.fromBytes||(T=>{const D=T.subarray(1),S=n.fromBytes(D.subarray(0,n.BYTES)),I=n.fromBytes(D.subarray(n.BYTES,2*n.BYTES));return{x:S,y:I}});function s(T){const{a:D,b:S}=e,I=n.sqr(T),N=n.mul(I,T);return n.add(n.add(N,n.mul(T,D)),S)}if(!n.eql(n.sqr(e.Gy),s(e.Gx)))throw new Error("bad generator point: equation left != right");function c(T){return Mv(T,Z0,e.n)}function l(T){const{allowedPrivateKeyLengths:D,nByteLength:S,wrapPrivateKey:I,n:N}=e;if(D&&typeof T!="bigint"){if(ed(T)&&(T=td(T)),typeof T!="string"||!D.includes(T.length))throw new Error("invalid private key");T=T.padStart(S*2,"0")}let B;try{B=typeof T=="bigint"?T:j6(L0("private key",T,S))}catch{throw new Error("invalid private key, expected hex or "+S+" bytes, got "+typeof T)}return I&&(B=$r(B,N)),Qs("private key",B,Z0,N),B}function d(T){if(!(T instanceof g))throw new Error("ProjectivePoint expected")}const p=B4((T,D)=>{const{px:S,py:I,pz:N}=T;if(n.eql(N,n.ONE))return{x:S,y:I};const B=T.is0();D==null&&(D=B?n.ONE:n.inv(N));const k=n.mul(S,D),O=n.mul(I,D),z=n.mul(N,D);if(B)return{x:n.ZERO,y:n.ZERO};if(!n.eql(z,n.ONE))throw new Error("invZ was invalid");return{x:k,y:O}}),m=B4(T=>{if(T.is0()){if(e.allowInfinityPoint&&!n.is0(T.py))return;throw new Error("bad point: ZERO")}const{x:D,y:S}=T.toAffine();if(!n.isValid(D)||!n.isValid(S))throw new Error("bad point: x or y not FE");const I=n.sqr(S),N=s(D);if(!n.eql(I,N))throw new Error("bad point: equation left != right");if(!T.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});class g{constructor(D,S,I){if(this.px=D,this.py=S,this.pz=I,D==null||!n.isValid(D))throw new Error("x required");if(S==null||!n.isValid(S))throw new Error("y required");if(I==null||!n.isValid(I))throw new Error("z required");Object.freeze(this)}static fromAffine(D){const{x:S,y:I}=D||{};if(!D||!n.isValid(S)||!n.isValid(I))throw new Error("invalid affine point");if(D instanceof g)throw new Error("projective point not allowed");const N=B=>n.eql(B,n.ZERO);return N(S)&&N(I)?g.ZERO:new g(S,I,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(D){const S=n.invertBatch(D.map(I=>I.pz));return D.map((I,N)=>I.toAffine(S[N])).map(g.fromAffine)}static fromHex(D){const S=g.fromAffine(a(L0("pointHex",D)));return S.assertValidity(),S}static fromPrivateKey(D){return g.BASE.multiply(l(D))}static msm(D,S){return nZ(g,r,D,S)}_setWindowSize(D){C.setWindowSize(this,D)}assertValidity(){m(this)}hasEvenY(){const{y:D}=this.toAffine();if(n.isOdd)return!n.isOdd(D);throw new Error("Field doesn't support isOdd")}equals(D){d(D);const{px:S,py:I,pz:N}=this,{px:B,py:k,pz:O}=D,z=n.eql(n.mul(S,O),n.mul(B,N)),_=n.eql(n.mul(I,O),n.mul(k,N));return z&&_}negate(){return new g(this.px,n.neg(this.py),this.pz)}double(){const{a:D,b:S}=e,I=n.mul(S,kO),{px:N,py:B,pz:k}=this;let O=n.ZERO,z=n.ZERO,_=n.ZERO,F=n.mul(N,N),R=n.mul(B,B),w=n.mul(k,k),o=n.mul(N,B);return o=n.add(o,o),_=n.mul(N,k),_=n.add(_,_),O=n.mul(D,_),z=n.mul(I,w),z=n.add(O,z),O=n.sub(R,z),z=n.add(R,z),z=n.mul(O,z),O=n.mul(o,O),_=n.mul(I,_),w=n.mul(D,w),o=n.sub(F,w),o=n.mul(D,o),o=n.add(o,_),_=n.add(F,F),F=n.add(_,F),F=n.add(F,w),F=n.mul(F,o),z=n.add(z,F),w=n.mul(B,k),w=n.add(w,w),F=n.mul(w,o),O=n.sub(O,F),_=n.mul(w,R),_=n.add(_,_),_=n.add(_,_),new g(O,z,_)}add(D){d(D);const{px:S,py:I,pz:N}=this,{px:B,py:k,pz:O}=D;let z=n.ZERO,_=n.ZERO,F=n.ZERO;const R=e.a,w=n.mul(e.b,kO);let o=n.mul(S,B),u=n.mul(I,k),h=n.mul(N,O),b=n.add(S,I),y=n.add(B,k);b=n.mul(b,y),y=n.add(o,u),b=n.sub(b,y),y=n.add(S,N);let x=n.add(B,O);return y=n.mul(y,x),x=n.add(o,h),y=n.sub(y,x),x=n.add(I,N),z=n.add(k,O),x=n.mul(x,z),z=n.add(u,h),x=n.sub(x,z),F=n.mul(R,y),z=n.mul(w,h),F=n.add(z,F),z=n.sub(u,F),F=n.add(u,F),_=n.mul(z,F),u=n.add(o,o),u=n.add(u,o),h=n.mul(R,h),y=n.mul(w,y),u=n.add(u,h),h=n.sub(o,h),h=n.mul(R,h),y=n.add(y,h),o=n.mul(u,y),_=n.add(_,o),o=n.mul(x,y),z=n.mul(b,z),z=n.sub(z,o),o=n.mul(b,u),F=n.mul(x,F),F=n.add(F,o),new g(z,_,F)}subtract(D){return this.add(D.negate())}is0(){return this.equals(g.ZERO)}wNAF(D){return C.wNAFCached(this,D,g.normalizeZ)}multiplyUnsafe(D){const{endo:S,n:I}=e;Qs("scalar",D,zc,I);const N=g.ZERO;if(D===zc)return N;if(this.is0()||D===Z0)return this;if(!S||C.hasPrecomputes(this))return C.wNAFCachedUnsafe(this,D,g.normalizeZ);let{k1neg:B,k1:k,k2neg:O,k2:z}=S.splitScalar(D),_=N,F=N,R=this;for(;k>zc||z>zc;)k&Z0&&(_=_.add(R)),z&Z0&&(F=F.add(R)),R=R.double(),k>>=Z0,z>>=Z0;return B&&(_=_.negate()),O&&(F=F.negate()),F=new g(n.mul(F.px,S.beta),F.py,F.pz),_.add(F)}multiply(D){const{endo:S,n:I}=e;Qs("scalar",D,Z0,I);let N,B;if(S){const{k1neg:k,k1:O,k2neg:z,k2:_}=S.splitScalar(D);let{p:F,f:R}=this.wNAF(O),{p:w,f:o}=this.wNAF(_);F=C.constTimeNegate(k,F),w=C.constTimeNegate(z,w),w=new g(n.mul(w.px,S.beta),w.py,w.pz),N=F.add(w),B=R.add(o)}else{const{p:k,f:O}=this.wNAF(D);N=k,B=O}return g.normalizeZ([N,B])[0]}multiplyAndAddUnsafe(D,S,I){const N=g.BASE,B=(O,z)=>z===zc||z===Z0||!O.equals(N)?O.multiplyUnsafe(z):O.multiply(z),k=B(this,S).add(B(D,I));return k.is0()?void 0:k}toAffine(D){return p(this,D)}isTorsionFree(){const{h:D,isTorsionFree:S}=e;if(D===Z0)return!0;if(S)return S(g,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:D,clearCofactor:S}=e;return D===Z0?this:S?S(g,this):this.multiplyUnsafe(e.h)}toRawBytes(D=!0){return Jc("isCompressed",D),this.assertValidity(),i(g,this,D)}toHex(D=!0){return Jc("isCompressed",D),td(this.toRawBytes(D))}}g.BASE=new g(e.Gx,e.Gy,n.ONE),g.ZERO=new g(n.ZERO,n.ONE,n.ZERO);const M=e.nBitLength,C=tZ(g,e.endo?Math.ceil(M/2):M);return{CURVE:e,ProjectivePoint:g,normPrivateKeyToScalar:l,weierstrassEquation:s,isWithinCurveOrder:c}}function k2e(t){const e=PN(t);return Xh(e,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...e})}function _2e(t){const e=k2e(t),{Fp:n,n:r}=e,i=n.BYTES+1,a=2*n.BYTES+1;function s(h){return $r(h,r)}function c(h){return RS(h,r)}const{ProjectivePoint:l,normPrivateKeyToScalar:d,weierstrassEquation:p,isWithinCurveOrder:m}=j2e({...e,toBytes(h,b,y){const x=b.toAffine(),E=n.toBytes(x.x),v=nd;return Jc("isCompressed",y),y?v(Uint8Array.from([b.hasEvenY()?2:3]),E):v(Uint8Array.from([4]),E,n.toBytes(x.y))},fromBytes(h){const b=h.length,y=h[0],x=h.subarray(1);if(b===i&&(y===2||y===3)){const E=j6(x);if(!Mv(E,Z0,n.ORDER))throw new Error("Point is not on curve");const v=p(E);let f;try{f=n.sqrt(v)}catch(P){const $=P instanceof Error?": "+P.message:"";throw new Error("Point is not on curve"+$)}const A=(f&Z0)===Z0;return(y&1)===1!==A&&(f=n.neg(f)),{x:E,y:f}}else if(b===a&&y===4){const E=n.fromBytes(x.subarray(0,n.BYTES)),v=n.fromBytes(x.subarray(n.BYTES,2*n.BYTES));return{x:E,y:v}}else{const E=i,v=a;throw new Error("invalid Point, expected length of "+E+", or uncompressed "+v+", got "+b)}}}),g=h=>td(ih(h,e.nByteLength));function M(h){const b=r>>Z0;return h>b}function C(h){return M(h)?s(-h):h}const T=(h,b,y)=>j6(h.slice(b,y));class D{constructor(b,y,x){this.r=b,this.s=y,this.recovery=x,this.assertValidity()}static fromCompact(b){const y=e.nByteLength;return b=L0("compactSignature",b,y*2),new D(T(b,0,y),T(b,y,2*y))}static fromDER(b){const{r:y,s:x}=vc.toSig(L0("DER",b));return new D(y,x)}assertValidity(){Qs("r",this.r,Z0,r),Qs("s",this.s,Z0,r)}addRecoveryBit(b){return new D(this.r,this.s,b)}recoverPublicKey(b){const{r:y,s:x,recovery:E}=this,v=O(L0("msgHash",b));if(E==null||![0,1,2,3].includes(E))throw new Error("recovery id invalid");const f=E===2||E===3?y+e.n:y;if(f>=n.ORDER)throw new Error("recovery id 2 or 3 invalid");const A=E&1?"03":"02",j=l.fromHex(A+g(f)),P=c(f),$=s(-v*P),K=s(x*P),Q=l.BASE.multiplyAndAddUnsafe(j,$,K);if(!Q)throw new Error("point at infinify");return Q.assertValidity(),Q}hasHighS(){return M(this.s)}normalizeS(){return this.hasHighS()?new D(this.r,s(-this.s),this.recovery):this}toDERRawBytes(){return rh(this.toDERHex())}toDERHex(){return vc.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return rh(this.toCompactHex())}toCompactHex(){return g(this.r)+g(this.s)}}const S={isValidPrivateKey(h){try{return d(h),!0}catch{return!1}},normPrivateKeyToScalar:d,randomPrivateKey:()=>{const h=Xq(e.n);return S2e(e.randomBytes(h),e.n)},precompute(h=8,b=l.BASE){return b._setWindowSize(h),b.multiply(BigInt(3)),b}};function I(h,b=!0){return l.fromPrivateKey(h).toRawBytes(b)}function N(h){const b=ed(h),y=typeof h=="string",x=(b||y)&&h.length;return b?x===i||x===a:y?x===2*i||x===2*a:h instanceof l}function B(h,b,y=!0){if(N(h))throw new Error("first arg must be private key");if(!N(b))throw new Error("second arg must be public key");return l.fromHex(b).multiply(d(h)).toRawBytes(y)}const k=e.bits2int||function(h){if(h.length>8192)throw new Error("input is too large");const b=j6(h),y=h.length*8-e.nBitLength;return y>0?b>>BigInt(y):b},O=e.bits2int_modN||function(h){return s(k(h))},z=RN(e.nBitLength);function _(h){return Qs("num < 2^"+e.nBitLength,h,zc,z),ih(h,e.nByteLength)}function F(h,b,y=R){if(["recovered","canonical"].some(V=>V in y))throw new Error("sign() legacy options not supported");const{hash:x,randomBytes:E}=e;let{lowS:v,prehash:f,extraEntropy:A}=y;v==null&&(v=!0),h=L0("msgHash",h),jO(y),f&&(h=L0("prehashed msgHash",x(h)));const j=O(h),P=d(b),$=[_(P),_(j)];if(A!=null&&A!==!1){const V=A===!0?E(n.BYTES):A;$.push(L0("extraEntropy",V))}const K=nd(...$),Q=j;function H(V){const J=k(V);if(!m(J))return;const ae=c(J),te=l.BASE.multiply(J).toAffine(),Z=s(te.x);if(Z===zc)return;const ce=s(ae*s(Q+Z*P));if(ce===zc)return;let De=(te.x===Z?0:2)|Number(te.y&Z0),pe=ce;return v&&M(ce)&&(pe=C(ce),De^=1),new D(Z,pe,De)}return{seed:K,k2sig:H}}const R={lowS:e.lowS,prehash:!1},w={lowS:e.lowS,prehash:!1};function o(h,b,y=R){const{seed:x,k2sig:E}=F(h,b,y),v=e;return qq(v.hash.outputLen,v.nByteLength,v.hmac)(x,E)}l.BASE._setWindowSize(8);function u(h,b,y,x=w){var De;const E=h;b=L0("msgHash",b),y=L0("publicKey",y);const{lowS:v,prehash:f,format:A}=x;if(jO(x),"strict"in x)throw new Error("options.strict was renamed to lowS");if(A!==void 0&&A!=="compact"&&A!=="der")throw new Error("format must be compact or der");const j=typeof E=="string"||ed(E),P=!j&&!A&&typeof E=="object"&&E!==null&&typeof E.r=="bigint"&&typeof E.s=="bigint";if(!j&&!P)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let $,K;try{if(P&&($=new D(E.r,E.s)),j){try{A!=="compact"&&($=D.fromDER(E))}catch(pe){if(!(pe instanceof vc.Err))throw pe}!$&&A!=="der"&&($=D.fromCompact(E))}K=l.fromHex(y)}catch{return!1}if(!$||v&&$.hasHighS())return!1;f&&(b=e.hash(b));const{r:Q,s:H}=$,V=O(b),J=c(H),ae=s(V*J),te=s(Q*J),Z=(De=l.BASE.multiplyAndAddUnsafe(K,ae,te))==null?void 0:De.toAffine();return Z?s(Z.x)===Q:!1}return{CURVE:e,getPublicKey:I,getSharedSecret:B,sign:o,verify:u,ProjectivePoint:l,Signature:D,utils:S}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function O2e(t){return{hash:t,hmac:(e,...n)=>Vq(t,e,E5e(...n)),randomBytes:Bq}}function F2e(t,e){const n=r=>_2e({...t,...O2e(r)});return{...n(e),create:n}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const rZ=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),_O=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),z2e=BigInt(1),PS=BigInt(2),OO=(t,e)=>(t+e/PS)/e;function R2e(t){const e=rZ,n=BigInt(3),r=BigInt(6),i=BigInt(11),a=BigInt(22),s=BigInt(23),c=BigInt(44),l=BigInt(88),d=t*t*t%e,p=d*d*t%e,m=f0(p,n,e)*p%e,g=f0(m,n,e)*p%e,M=f0(g,PS,e)*d%e,C=f0(M,i,e)*M%e,T=f0(C,a,e)*C%e,D=f0(T,c,e)*T%e,S=f0(D,l,e)*D%e,I=f0(S,c,e)*T%e,N=f0(I,n,e)*p%e,B=f0(N,s,e)*C%e,k=f0(B,r,e)*d%e,O=f0(k,PS,e);if(!US.eql(US.sqr(O),t))throw new Error("Cannot find square root");return O}const US=xv(rZ,void 0,void 0,{sqrt:R2e}),wu=F2e({a:BigInt(0),b:BigInt(7),Fp:US,n:_O,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:t=>{const e=_O,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-z2e*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),a=n,s=BigInt("0x100000000000000000000000000000000"),c=OO(a*t,e),l=OO(-r*t,e);let d=$r(t-c*n-l*i,e),p=$r(-c*r-l*a,e);const m=d>s,g=p>s;if(m&&(d=e-d),g&&(p=e-p),d>s||p>s)throw new Error("splitScalar: Endomorphism failed, k="+t);return{k1neg:m,k1:d,k2neg:g,k2:p}}}},qu);BigInt(0);wu.ProjectivePoint;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const wo=BigInt(0),ma=BigInt(1),s9=BigInt(2),P2e=BigInt(8),U2e={zip215:!0};function H2e(t){const e=PN(t);return Xh(t,{hash:"function",a:"bigint",d:"bigint",randomBytes:"function"},{adjustScalarBytes:"function",domain:"function",uvRatio:"function",mapToCurve:"function"}),Object.freeze({...e})}function W2e(t){const e=H2e(t),{Fp:n,n:r,prehash:i,hash:a,randomBytes:s,nByteLength:c,h:l}=e,d=s9<<BigInt(c*8)-ma,p=n.create,m=xv(e.n,e.nBitLength),g=e.uvRatio||((y,x)=>{try{return{isValid:!0,value:n.sqrt(y*n.inv(x))}}catch{return{isValid:!1,value:wo}}}),M=e.adjustScalarBytes||(y=>y),C=e.domain||((y,x,E)=>{if(Jc("phflag",E),x.length||E)throw new Error("Contexts/pre-hash are not supported");return y});function T(y,x){Qs("coordinate "+y,x,wo,d)}function D(y){if(!(y instanceof N))throw new Error("ExtendedPoint expected")}const S=B4((y,x)=>{const{ex:E,ey:v,ez:f}=y,A=y.is0();x==null&&(x=A?P2e:n.inv(f));const j=p(E*x),P=p(v*x),$=p(f*x);if(A)return{x:wo,y:ma};if($!==ma)throw new Error("invZ was invalid");return{x:j,y:P}}),I=B4(y=>{const{a:x,d:E}=e;if(y.is0())throw new Error("bad point: ZERO");const{ex:v,ey:f,ez:A,et:j}=y,P=p(v*v),$=p(f*f),K=p(A*A),Q=p(K*K),H=p(P*x),V=p(K*p(H+$)),J=p(Q+p(E*p(P*$)));if(V!==J)throw new Error("bad point: equation left != right (1)");const ae=p(v*f),te=p(A*j);if(ae!==te)throw new Error("bad point: equation left != right (2)");return!0});class N{constructor(x,E,v,f){this.ex=x,this.ey=E,this.ez=v,this.et=f,T("x",x),T("y",E),T("z",v),T("t",f),Object.freeze(this)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(x){if(x instanceof N)throw new Error("extended point not allowed");const{x:E,y:v}=x||{};return T("x",E),T("y",v),new N(E,v,ma,p(E*v))}static normalizeZ(x){const E=n.invertBatch(x.map(v=>v.ez));return x.map((v,f)=>v.toAffine(E[f])).map(N.fromAffine)}static msm(x,E){return nZ(N,m,x,E)}_setWindowSize(x){O.setWindowSize(this,x)}assertValidity(){I(this)}equals(x){D(x);const{ex:E,ey:v,ez:f}=this,{ex:A,ey:j,ez:P}=x,$=p(E*P),K=p(A*f),Q=p(v*P),H=p(j*f);return $===K&&Q===H}is0(){return this.equals(N.ZERO)}negate(){return new N(p(-this.ex),this.ey,this.ez,p(-this.et))}double(){const{a:x}=e,{ex:E,ey:v,ez:f}=this,A=p(E*E),j=p(v*v),P=p(s9*p(f*f)),$=p(x*A),K=E+v,Q=p(p(K*K)-A-j),H=$+j,V=H-P,J=$-j,ae=p(Q*V),te=p(H*J),Z=p(Q*J),ce=p(V*H);return new N(ae,te,ce,Z)}add(x){D(x);const{a:E,d:v}=e,{ex:f,ey:A,ez:j,et:P}=this,{ex:$,ey:K,ez:Q,et:H}=x;if(E===BigInt(-1)){const lt=p((A-f)*(K+$)),Me=p((A+f)*(K-$)),ye=p(Me-lt);if(ye===wo)return this.double();const _e=p(j*s9*H),be=p(P*s9*Q),we=be+_e,yt=Me+lt,q=be-_e,U=p(we*ye),Y=p(yt*q),ie=p(we*q),ue=p(ye*yt);return new N(U,Y,ue,ie)}const V=p(f*$),J=p(A*K),ae=p(P*v*H),te=p(j*Q),Z=p((f+A)*($+K)-V-J),ce=te-ae,De=te+ae,pe=p(J-E*V),Se=p(Z*ce),st=p(De*pe),ve=p(Z*pe),Ne=p(ce*De);return new N(Se,st,Ne,ve)}subtract(x){return this.add(x.negate())}wNAF(x){return O.wNAFCached(this,x,N.normalizeZ)}multiply(x){const E=x;Qs("scalar",E,ma,r);const{p:v,f}=this.wNAF(E);return N.normalizeZ([v,f])[0]}multiplyUnsafe(x,E=N.ZERO){const v=x;return Qs("scalar",v,wo,r),v===wo?k:this.is0()||v===ma?this:O.wNAFCachedUnsafe(this,v,N.normalizeZ,E)}isSmallOrder(){return this.multiplyUnsafe(l).is0()}isTorsionFree(){return O.unsafeLadder(this,r).is0()}toAffine(x){return S(this,x)}clearCofactor(){const{h:x}=e;return x===ma?this:this.multiplyUnsafe(x)}static fromHex(x,E=!1){const{d:v,a:f}=e,A=n.BYTES;x=L0("pointHex",x,A),Jc("zip215",E);const j=x.slice(),P=x[A-1];j[A-1]=P&-129;const $=G5(j),K=E?d:n.ORDER;Qs("pointHex.y",$,wo,K);const Q=p($*$),H=p(Q-ma),V=p(v*Q-f);let{isValid:J,value:ae}=g(H,V);if(!J)throw new Error("Point.fromHex: invalid y coordinate");const te=(ae&ma)===ma,Z=(P&128)!==0;if(!E&&ae===wo&&Z)throw new Error("Point.fromHex: x=0 and x_0=1");return Z!==te&&(ae=p(-ae)),N.fromAffine({x:ae,y:$})}static fromPrivateKey(x){return F(x).point}toRawBytes(){const{x,y:E}=this.toAffine(),v=L4(E,n.BYTES);return v[v.length-1]|=x&ma?128:0,v}toHex(){return td(this.toRawBytes())}}N.BASE=new N(e.Gx,e.Gy,ma,p(e.Gx*e.Gy)),N.ZERO=new N(wo,ma,ma,wo);const{BASE:B,ZERO:k}=N,O=tZ(N,c*8);function z(y){return $r(y,r)}function _(y){return z(G5(y))}function F(y){const x=n.BYTES;y=L0("private key",y,x);const E=L0("hashed private key",a(y),2*x),v=M(E.slice(0,x)),f=E.slice(x,2*x),A=_(v),j=B.multiply(A),P=j.toRawBytes();return{head:v,prefix:f,scalar:A,point:j,pointBytes:P}}function R(y){return F(y).pointBytes}function w(y=new Uint8Array,...x){const E=nd(...x);return _(a(C(E,L0("context",y),!!i)))}function o(y,x,E={}){y=L0("message",y),i&&(y=i(y));const{prefix:v,scalar:f,pointBytes:A}=F(x),j=w(E.context,v,y),P=B.multiply(j).toRawBytes(),$=w(E.context,P,A,y),K=z(j+$*f);Qs("signature.s",K,wo,r);const Q=nd(P,L4(K,n.BYTES));return L0("result",Q,n.BYTES*2)}const u=U2e;function h(y,x,E,v=u){const{context:f,zip215:A}=v,j=n.BYTES;y=L0("signature",y,2*j),x=L0("message",x),E=L0("publicKey",E,j),A!==void 0&&Jc("zip215",A),i&&(x=i(x));const P=G5(y.slice(j,2*j));let $,K,Q;try{$=N.fromHex(E,A),K=N.fromHex(y.slice(0,j),A),Q=B.multiplyUnsafe(P)}catch{return!1}if(!A&&$.isSmallOrder())return!1;const H=w(f,K.toRawBytes(),$.toRawBytes(),x);return K.add($.multiplyUnsafe(H)).subtract(Q).clearCofactor().equals(N.ZERO)}return B._setWindowSize(8),{CURVE:e,getPublicKey:R,sign:o,verify:h,ExtendedPoint:N,utils:{getExtendedPublicKey:F,randomPrivateKey:()=>s(n.BYTES),precompute(y=8,x=N.BASE){return x._setWindowSize(y),x.multiply(BigInt(3)),x}}}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const UN=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),FO=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");BigInt(0);const Y2e=BigInt(1),zO=BigInt(2);BigInt(3);const G2e=BigInt(5),$2e=BigInt(8);function V2e(t){const e=BigInt(10),n=BigInt(20),r=BigInt(40),i=BigInt(80),a=UN,c=t*t%a*t%a,l=f0(c,zO,a)*c%a,d=f0(l,Y2e,a)*t%a,p=f0(d,G2e,a)*d%a,m=f0(p,e,a)*p%a,g=f0(m,n,a)*m%a,M=f0(g,r,a)*g%a,C=f0(M,i,a)*M%a,T=f0(C,i,a)*M%a,D=f0(T,e,a)*p%a;return{pow_p_5_8:f0(D,zO,a)*t%a,b2:c}}function Q2e(t){return t[0]&=248,t[31]&=127,t[31]|=64,t}function q2e(t,e){const n=UN,r=$r(e*e*e,n),i=$r(r*r*e,n),a=V2e(t*i).pow_p_5_8;let s=$r(t*r*a,n);const c=$r(e*s*s,n),l=s,d=$r(s*FO,n),p=c===t,m=c===$r(-t,n),g=c===$r(-t*FO,n);return p&&(s=l),(m||g)&&(s=d),x2e(s,n)&&(s=$r(-s,n)),{isValid:p||m,value:s}}const Z2e=xv(UN,void 0,!0),K2e={a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp:Z2e,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:$2e,Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),hash:a2e,randomBytes:Bq,adjustScalarBytes:Q2e,uvRatio:q2e},Jh=W2e(K2e),X2e=[{name:"appIdPrefix",binary:"bytes",custom:Tr.encode("appID"),omit:!0},{name:"appId",binary:"uint",size:8}],t1=class t1{constructor(e,n="hex"){se(this,"address");this.address=typeof e=="string"?t1.stringToUint8Array(e,n):e}toNative(e){return Gi(e,this)}unwrap(){return this.address}toString(){return dr.encode(this.address,!0)}toUint8Array(){return this.address}toUniversalAddress(){return this}equals(e){return Tr.equals(this.address,e.address)}static isValidAddress(e,n="hex"){return!Mde(()=>t1.stringToUint8Array(e,n))}static instanceof(e){return typeof e=="object"&&"constructor"in e&&e.constructor.type===t1.type}static stringToUint8Array(e,n){const r=(()=>{switch(n){case"hex":if(![40,2*this.byteSize].includes(e.length-(e.startsWith("0x")?2:0)))throw new Error(`string ${e} has invalid length for format ${n}`);return dr.decode(e);case"base58":return yq.decode(e);case"bech32":return M5.decodeToBytes(e).bytes;case"algorandAppId":return s2e(oo(X2e,{appId:BigInt(e)}));case"sha256":return qu(e)}})();if(r.length>t1.byteSize)throw new Error(`string ${e} has invalid length for format ${n}`);return r.length<t1.byteSize?Tr.zpad(r,t1.byteSize):r}};se(t1,"byteSize",32),se(t1,"type","Universal");let jr=t1;function J2e(t){return typeof t=="object"&&"setChain"in t}const HS=new Map;function e8(t,e){HS.has(t)||HS.set(t,e)}function Gi(t,e){const n=Yi.get(t),r=HS.get(n);if(!r)throw new Error(`No native address type registered for platform ${n}, import the platform directly or, if using sdk package, import the addresses conditional export`);try{const i=new r(e);return J2e(i)&&i.setChain(t),i}catch(i){const a=`Error parsing address as a native ${t} address: ${i.message}`;if(jr.instanceof(e))throw a;return new jr(e).toNative(t)}}function rd(t,e){const n=Yi.get(t);return new jr(e,Gde.get(n))}function ehe(t){return"getVersion"in t}const Au={};function wv(t,e,n){e in Au||(Au[e]={});const r=Au[e];if(t in r)throw new Error(`Protocol ${t} for protocol ${e} has already registered`);Au[e][t]=n}function the(t,e){const n=qh(t)?Yi.get(t):t;return e in Au?n in Au[e]:!1}function iZ(t,e){if(e in Au){const n=Au[e];if(n&&t in n){const r=n[t];if(r)return r}}throw new Error(`No protocols registered for ${t}:${e}. This may be because the platform specific protocol implementation is not registered (by installing and importing it) or no implementation exists for this platform`)}const nhe=(t,e,n,r)=>iZ(t,e).fromRpc(n,r),WS=(t,e)=>t?`${t}:${e}`:e,YS=new Map;function rhe(t,e,n){const r=WS(t,e);if(YS.has(r))throw new Error(`Payload type ${r} already registered`);YS.set(r,n)}function Q0(t,e){for(const[n,r]of e)rhe(t,n,r)}const Si={binary:"uint",size:32},ihe={binary:"uint",size:2},Ui=t=>({...ihe,custom:{to:e=>{if(e===0){if(!(t!=null&&t.allowNull))throw new Error("ChainId 0 is not valid for this protocol and action");return null}const n=Qu(e),r=(t==null?void 0:t.allowedChains)??gq;if(!r.includes(n))throw new Error(`Chain ${n} not in allowed chains ${r}`);return n},from:e=>e==null?0:pv(e)}}),j4={binary:"uint",size:4},HN={binary:"uint",size:8},aZ={binary:"uint",size:4},af=t=>({name:"payloadId",binary:"uint",size:1,custom:t,omit:!0}),WN={binary:"uint",size:8};let ahe=class{constructor(e,n,r){se(this,"r");se(this,"s");se(this,"v");this.r=e,this.s=n,this.v=r}encode(){return oo(GS,this)}static decode(e){return co(GS,e)}};var RO;(function(t){function e(a){return wu.getPublicKey(a)}t.toPubkey=e;function n(a,s){if(s.length!=32)throw new Error("hash.length != 32");return wu.sign(s,a)}t.sign=n;function r(a,s,c){const{r:l,s:d}=a;return wu.verify({r:l,s:d},c,s)}t.validate=r;function i(a,s){const{r:c,s:l,v:d}=a,p=new wu.Signature(c,l);return p.recovery=d,p.recoverPublicKey(s).toRawBytes()}t.recover=i})(RO||(RO={}));const she=[{name:"r",binary:"uint",size:32},{name:"s",binary:"uint",size:32},{name:"v",binary:"uint",size:1}],GS={binary:"bytes",layout:she,custom:{to:t=>new ahe(t.r,t.s,t.v),from:t=>({r:t.r,s:t.s,v:t.v})}},hn={binary:"bytes",size:32,custom:{to:t=>new jr(t),from:t=>t.toUint8Array()}},ohe=t=>{const e=t.findIndex(n=>n!==0);return-1<e?t.slice(e):new Uint8Array([])},che={to:Tr.decode,from:Tr.encode},sZ=t=>({binary:"bytes",size:t,custom:{to:e=>Tr.decode(ohe(e)),from:e=>Tr.zpad(Tr.encode(e),t)}});function oZ(t){const e=t.indexOf(":");return e!==-1?[t.slice(0,e),t.slice(e+1)]:[null,t]}const lhe=[{name:"guardianIndex",binary:"uint",size:1},{name:"signature",...GS}],YN=[{name:"version",binary:"uint",size:1,custom:1,omit:!0},{name:"guardianSet",...aZ},{name:"signatures",binary:"array",lengthSize:1,layout:lhe}],GN=[{name:"timestamp",binary:"uint",size:4},{name:"nonce",binary:"uint",size:4},{name:"emitterChain",...Ui()},{name:"emitterAddress",...hn},{name:"sequence",...WN},{name:"consistencyLevel",binary:"uint",size:1}],uhe=[...YN,...GN];function k4(t){const e=YS.get(t);if(!e)throw new Error(`No layout registered for payload type ${t}`);return e}function cZ(t){return{name:"payload",binary:"bytes",...t==="Uint8Array"?{}:{layout:k4(t)}}}function _4(t){const e=[...uhe,cZ(t.payloadLiteral)];return oo(e,t)}function fhe(t,e){if(t==="Uint8Array")return e;const n=k4(t);return oo(n,e)}function $N(t,e){const n=(()=>{if(Array.isArray(t[0]))return t.flatMap(([s,c])=>c.map(l=>WS(s,l)));if(typeof t[1]=="string")return t;const[i,a]=t;return a.map(s=>WS(i,s))})(),r=Nde(n.map(i=>k4(i)));return i=>{typeof i=="string"&&(i=dr.decode(i));const a=r(i);return Array.isArray(a)?a.map(s=>n[s]):a!==null?n[a]:null}}function O4(t,e){typeof e=="string"&&(e=dr.decode(e));const[n,r]=co(YN,e,!1);for(let M=1;M<n.signatures.length;++M)if(n.signatures[M].guardianIndex<=n.signatures[M-1].guardianIndex)throw new Error("Guardian signatures must be in ascending order of guardian set index");const i=r,[a,s]=co(GN,e.subarray(i),!1),c=i+s,[l,d]=typeof t=="string"?[t,PO(t,e.subarray(c))]:PO(t,e.subarray(c)),[p,m]=oZ(l),g=J6(e.slice(i));return{protocolName:p,payloadName:m,payloadLiteral:l,...n,...a,payload:d,hash:g}}function PO(t,e,n=0){return(()=>{if(typeof e=="string"&&(e=dr.decode(e)),t==="Uint8Array")return e.slice(n);if(typeof t=="string")return co(k4(t),e.subarray(n));const r=t(e.slice(n));if(r===null)throw new Error(`Encoded data does not match any of the given payload types - ${e}`);return[r,co(k4(r),e.subarray(n))]})()}function UO(t){return[...GN,cZ(t)]}function lZ(t,e){const[n,r]=oZ(t),i=iO(UO(t),e);return{protocolName:n,payloadName:r,payloadLiteral:t,...iO(YN,e),...i,hash:J6(oo(UO(t),i))}}class uZ{constructor(e,n){se(this,"network");se(this,"config");this.network=e,this.config=n}utils(){return this.constructor}getProtocol(e,n){return nhe(this.utils()._platform,e,n,this.config)}getProtocolInitializer(e){return iZ(this.utils()._platform,e)}async parseWormholeMessages(e,n,r){return(await this.getProtocol("WormholeCore",n)).parseTransaction(r)}}const dhe=[["Ethereum",[["ETH",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETH"}],["WETH",{symbol:"WETH",decimals:18,address:"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x2260fac5e5542a773aa44fbcfedf7c193bc2c599"}],["USDT",{symbol:"USDT",decimals:6,address:"0xdac17f958d2ee523a2206206994597c13d831ec7"}],["DAI",{symbol:"DAI",decimals:18,address:"0x6b175474e89094c44da98b954eedeac495271d0f"}],["BUSD",{symbol:"BUSD",decimals:18,address:"0x4fabb145d64652a948d72533023f6e7a623c7c53"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x7c9f4C87d911613Fe9ca58b579f737911AAD2D43",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x418D75f65a02b3D53B2418FB8E1fe493759c7605",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x7cd167B101D2808Cfd2C45d17b2E7EA9F46b74B6",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x85f138bfEE4ef8e540890CFb48F620571d67Eda3",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x39EbF69137D98FB7659Ef8D4ea21ec26394389d7",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x4cD2690d86284e044cb63E60F1EB218a825a7e92",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x3294395e62F4eB6aF3f1Fcf89f5602D90Fb3Ef69",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x93d3696A9F879b331f40CB5059e37015423A3Bd0",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xD31a59c85aE9D8edEFeC411D448f90841571b89c",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x41f7B8b9b897276b7AAE926a9016935280b44E97",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x84074EA631dEc7a4edcD5303d164D5dEa4c653D6",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x8CDf7AF57E4c8B930e1B23c477c22f076530585e",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xb945E3F853B5f8033C8513Cf3cE9F8AD9beBB1c9",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xCFc006a32a98031C2338BF9d5ff8ED2c0Cae4a9e",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x8B5653Ae095529155462eDa8CF664eD96773F557",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x1D4241F7370253C0f12EFC536B7e16E462Fb3526",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x18084fbA666a33d37592fA2633fD49a74DD93a88"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0xb4c624dBC50804dA086cf2380cD55dEBC0d22E96",original:"Polygon"}],["tBTCoptimism",{symbol:"tBTC",decimals:18,address:"0xB8d1E0642bFD3744CaBd2ca8830cFabE19b2Ca54",original:"Optimism"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x4F3819A6cfF717BFfE801a75c73A984141c76589",original:"Arbitrum"}],["tBTCbase",{symbol:"tBTC",decimals:18,address:"0x733F28B3e315046Db01dAbC292D6F0F7F26C4551",original:"Base"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x9AEA32B459e96C8eF5010f69130bf95fd129ac05",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0xeFc0CED4B3D536103e76a1c4c74F0385C8F4Bdd3",original:"Solana"}]]],["Bsc",[["WETH",{symbol:"WETH",decimals:18,address:"0x4DB5a66E937A9F4473fA95b1cAF1d1E1D62E29EA",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xB04906e95AB5D797aDA81508115611fee694c2b3",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x43359676E1A3F9FbB5de095333f8e9c1B46dFA44",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x524bC91Dc82d6b90EF29F76A3ECAaBAffFD490Bc",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x3413a030EF81a3dD5a302F4B4D11d911e12ed337",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:18,address:"0x035de3679E692C471072d1A09bEb9298fBB2BD31",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xc836d8dC361E44DbE64c4862D55BA041F88Ddd39",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xe6d82Bbe75041E42E51d755e922cE1BA91af9c4d",original:"Polygon"}],["BNB",{symbol:"BNB",decimals:18,address:"native",wrappedKey:"WBNB"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x96412902aa9aFf61E13f085e70D3152C6ef2a817",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xc88Dc63bf0c8c8198C97Db0945E3eF25Ca89A8e4",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xbF8413EE8612E0E4f66Aa63B5ebE27f3C5883d47",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x2A335e327a55b177f5B40132fEC5D7298aa0D7e6",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x1C063db3c621BF901FC6C1D03328b08b2F9bbfba",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xfA54fF1a158B5189Ebba6ae130CEd6bbd3aEA76e",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x91Ca579B0D47E5cfD5D0862c21D5659d39C8eCf0",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x8314f6Bf1B4dd8604A0fC33C84F9AF2fc07AABC8",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x2Ba98cf7Edd2c5C794e21bc3Dc6973D3C2585eE3",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xaA1eEdABC48D078350ccBdD620bD088848e299E5",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x5caa170b465122D15a6D20FD9A804a9613CE7882",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x94AEc09B5e2CE591e39DC6aa58A3A6E85Ed45265",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xa41ae127D04F7ee73B5058E2C60Fb7c7A2D21F79",original:"Optimism"}],["WETHbsc",{symbol:"WETH",decimals:18,address:"0x2170Ed0880ac9A755fd29B2688956BD959F933F8"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x9dc152F4941cE1A138326e70c3600385bf0C22dD",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x55CaD531c8E303Cab8B3BE4bB4744Db4f896ac81",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x94c97dd3Bde5bC1406BCe82E7941A6365968521D",original:"Ethereum"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0xad80E1A9B5824234afA9dE1F3bbDb8a994796169",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xEA970e7b7D131Ea36c3051C9Ca11e785462fE00c",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0xb0188B0bb2cD4a6D2744637fC83C94a284B247Da",original:"Solana"}],["USDTbsc",{symbol:"USDT",decimals:18,address:"0x55d398326f99059fF775485246999027B3197955"}]]],["Polygon",[["WETH",{symbol:"WETH",decimals:18,address:"0x11CD37bb86F65419713f30673A480EA33c826872",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x4318CB63A2b8edf2De971E2F17F77097e499459D",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x5D49c278340655B56609FdF8976eb0612aF3a0C3",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x9417669fBF23357D2774e9D421307bd5eA1006d2",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x732EB1747ecCFC431fF19bc359ffc83755B1918c",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:18,address:"0x95ea750420da26bE1Ab0891e209e921bCd84763f",original:"Ethereum"}],["MATIC",{symbol:"MATIC",decimals:18,address:"native",wrappedKey:"WMATIC"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270"}],["WETHpolygon",{symbol:"WETH",decimals:18,address:"0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x3c499c542cef5e3811e1192ce70d8cc03d5c3359"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xeCDCB5B88F8e3C15f95c720C51c71c9E2080525d",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x4B3a922c773BDCF3BA8f1A4FDAc2029E1D0E9868",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x7Bb11E7f8b10E9e571E5d8Eace04735fDFB2358a",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xAEA5CC14DefbC1b845FDE729E563B717Ee6825ae",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x3726831304D77f585f1Aca9d9841cc3Ef80dAa62",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x922F49a9911effc034eE756196E59BE7b90D43b3",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xcC48d6CF842083fEc0E01d913fB964b585975F05",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xd93f7E271cB87c23AaA73edC008A79646d1F9912",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x576Cf361711cd940CD9C397BB98C4C896cBd38De",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x34bE049fEbfc6C64Ffd82Da08a8931A9a45f2cc8",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xa4ef199d3ad524E9C3C51Ac46B303B103A307Cef",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x6a5c59AB16268d2c872916054C50440B999e417C",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x7800FE8951cdc1cDea748d878fAce63018D97960",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x8182De59485Bb646542Db8C7E5958148Dc699319",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x31F12aCb60C3c32EE884F3894a873347C097D925",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x5BCf8d8c097FbB35C371F921E3FF3e6F6Eb54B41",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x1eeCaB0F75fE93abbFa0cDFfb4fB13d1dC8706c8",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x3362b2B92b331925F09F9E5bCA3E8C43921a435C",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"}],["tBTCoptimism",{symbol:"tBTC",decimals:18,address:"0x68A8797da1c8ED592600d70A5151886A92D2183C",original:"Optimism"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x045D8c62D5326aa51a31518ECF3aF80C17421Aba",original:"Arbitrum"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0xe082a7Fc696De18172Ad08D956569Ee80BC37f06",original:"Ethereum"}],["wstETHpolygon",{symbol:"wstETH",decimals:18,address:"0x03b54A6e9a984069379fae1a4fC4dBAE93B3bCCD"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x415ce980fde17F1FF102e1c6e4ce860Acc615D74",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0xFa4B761A1e07909Ba31331a5dfa12390E3ff5583",original:"Solana"}],["USDTpolygon",{symbol:"USDT",decimals:6,address:"0xc2132D05D31c914a87C6611C10748AEb04B58e8F"}]]],["Avalanche",[["WETH",{symbol:"WETH",decimals:18,address:"0x8b82A291F83ca07Af22120ABa21632088fC92931",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xB24CA28D4e2742907115fECda335b40dbda07a4C",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x1C0e79C5292c59bbC13C9F9f209D204cf4d65aD6",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x9d228444FC4B7E15A2C481b48E10247A03351FD8",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0xca319f81D147559e19A522A0a0310Dd43A96cA0F",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xf2f13f0B7008ab2FA4A2418F4ccC3684E49D20Eb",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xDb2d08f5A9C9ADBBA0DE5a69bbB1E9Ca03411692",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x442F7f22b1EE2c842bEAFf52880d4573E9201158",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x6145E8a910aE937913426BF32De2b26039728ACF",original:"Bsc"}],["AVAX",{symbol:"AVAX",decimals:18,address:"native",wrappedKey:"WAVAX"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"}],["WETHavax",{symbol:"WETH",decimals:18,address:"0x49d5c2bdffac6ce2bfdb6640f4f80f226bc10bab"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xd19abc09B7b36F7558929b97a866f499a26c2f83",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x494317B8521c5a5287a06DEE467dd6fe285dA4a8",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x375aA6C67BF499fBf01804A9f92C03c0776F372d",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xFE6B19286885a4F7F55AdAD09C3Cd1f906D2478F",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x0950Fc1AD509358dAeaD5eB8020a3c7d8b43b9DA",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x1703CB0F762D2a435199B64Ea47E5349B7C17480",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x43c588459b3243fA541B98CC4B2E995b3de553A2",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xDfDA518A1612030536bD77Fd67eAcbe90dDC52Ab",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x4b5fE357Eb11c735078e47526D6e853DBff18541",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xDf11535274c0FD2Fe41A88bd1bBF802D72296037",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xBe04f76A0ba2100c3F2d6Aa1FD8484F415469573",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0xFA83178c66fE51ee99109b5cC912f8098Ff812eF",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xab933e939a9236BD439F7d29b87CE712f42bAC06",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x3F531c038A0D2d9c7D19FC3554cd0439791526c4",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x126C03982Ad6D7ef7E6aF020bF219e87185a6BC3",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x8A0691e602B7a5FCc51a27E4a08376dE50889B42",original:"Solana"}],["USDTavax",{symbol:"USDT",decimals:6,address:"0x9702230a8ea53601f5cd2dc00fdbc13d4df4a8c7"}]]],["Fantom",[["WETH",{symbol:"WETH",decimals:18,address:"0x2A126f043BDEBe5A0A9841c51915E562D9B07289",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x2Ec752329c3EB419136ca5e4432Aa2CDb1eA23e6",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x87e9E225aD8a0755B9958fd95BE43DD6A91FF3A7",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x14BCb86aEed6a74D3452550a25D37f1c30AA0A66",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0xEE786D3D73Ea645365c7248E4e40eDba08B1169F",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xb88A6064B1F3FF5B9AE4A82fFD52560b0dF9FBD3",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xB4DcfD221048a1Dad989D39456BBd87762c26F06",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xc033551e05907Ddd643AE14b6D4a9CA72BfF509B",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x0FcbDAC44c67A43607D3E95886dB19871ADc985F",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x358CE030DC6116Cc296E8B9F002728e65459C146",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xEfE7701cb2B80664385Be226d0300912CA92f66A",original:"Avalanche"}],["FTM",{symbol:"FTM",decimals:18,address:"native",wrappedKey:"WFTM"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83"}],["CELO",{symbol:"CELO",decimals:18,address:"0xF432490C6c96C9d3bF523a499a1CEaFd8208A373",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xBF227E92D6754EB4BFE26C40cb299ff2809Da45f",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xd99021C2A33e4Cf243010539c9e9b7c52E0236c1",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0xb8398DA4FB3BC4306B9D9d9d13d9573e7d0E299f",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xC277423a21F6e32D886BF85Ef6cCB945d5D28347",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x3Cd9162Ca5256b8E26A0e3Ad14CCfF7C0Da0F174",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xE8367853A0823515D37b1538331B4704089becb4",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x2228703672906fEe5eD681Ec28e42B4506b8c336",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xe8E8f941377A955bFA72880ec0dc2319dbC827a8",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x385b219f0C4fa2e84EfE5aaf9692a821C57B8248",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0xd3365E7355230c78098b44B172eE27DAB95B041A",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xd9E4C283d8A49Dc3767A6F5a4dFdc1d0cEf21604",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xeE27799cF29D7F64647B92f47d543B382B49f83E",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x787e2F3509583C0F03A339Be0826463C839CBE5E",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x77ad3B2dA29FBd208F12c3C701E969F4422aAD79",original:"Solana"}]]],["Celo",[["WETH",{symbol:"WETH",decimals:18,address:"0x66803FB87aBd4aaC3cbB3fAd7C3aa01f6F3FB207",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x37f750B7cC259A2f741AF45294f6a16572CF5cAd",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xd71Ffd0940c920786eC4DbB5A12306669b5b81EF",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x617f3112bf5397D0467D315cC709EF968D9ba546",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x97926a82930bb7B33178E3c2f4ED1BFDc91A9FBF",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:18,address:"0x1dd42c0785ca90B677adc2ABad01dfc5ECcD0b4d",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x9C234706292b1144133ED509ccc5B3CD193BF712",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x42c76808f3179A091Ee007A2955aF2522978ADE7",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xBf2554ce8A4D1351AFeB1aC3E5545AaF7591042d",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x9d9abAE97a9344e3854527b4efbB366a1564bfEb",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0xFFdb274b4909fC2efE26C8e4Ddc9fe91963cAA4d",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x62FFf2D2D1692D52eAf043AeeC727F7918d269D3",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xd1A342eE2210238233a347FEd61EE7Faf9f251ce",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x471ece3750da237f93b8e339c536989b8978a438"}],["USDT",{symbol:"USDT",decimals:6,address:"0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x383A5513AbE4Fe36e0E00d484F710148E348Aa9D",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x4581E64115d46CcdeE65Be2336bEc86c9BA54C01",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x8B6eef6C449D3Ac723a9C06a9eaE2dCd7d308BA9",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x1Cb9859B1A16A67ef83A0c7b9A21eeC17d9a97Dc",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x89F2b718Ca518db39d377F0ABBa6B42582b549F7",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xc6F962fCcb140ece554AfD0E589f971532A57f14",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xA41a62567d9eb960D84b72663FdaeBE0BCdE2683",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x8d53771b1Ec7461f8e45Bca2609c45bC0bbd0677",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xEe48963C003e21EaCEdFA8a0A19BB3cbF7E776Fe",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x905CADB645684140E285e2D09D39dF5a2082BC87",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x2e2acb1782Aad0490f8446b6fD4626C467987bD6",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xFaED7314060FCEc652ED91D9eac6c980DCA9D3B8",original:"Ethereum"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x72878E7d3A8746e0c91b9F16F0b8ee4fDE9DDc06",original:"Arbitrum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xe304254de5c2048F9bFb042dDFB54f84d1d77730",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x985aa4814419ba338379A634785216301e51113D",original:"Solana"}]]],["Moonbeam",[["WETH",{symbol:"WETH",decimals:18,address:"0xab3f0245B83feB11d15AAffeFD7AD465a59817eD",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x931715FEE2d06333043d11F658C8CE934aC61D0c",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xE57eBd2d67B462E9926e04a8e33f01cD0D64346D",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xc30E9cA94CF52f3Bf5692aaCF81353a27052c46f",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x06e605775296e851FF43b4dAa541Bb0984E9D6fD",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:18,address:"0xa2284e1F98E4d0B7Eb6a6b4f3C57f1b209C755F3",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x82DbDa803bb52434B1f4F41A6F0Acb1242A7dFa3",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x4415BfBDee669446550d55c749007EF60B520FC8",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xE3b841C3f96e647E6dc01b468d6D0AD3562a9eeb",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x7f433E22366E03a3758CE22cCf82887d828078f8",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0xd4937A95BeC789CC1AE1640714C61c160279B22F",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xd4918c40cA9f02d42Cb53d06587aF42017Bc345D",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x609AedD990bf45926bca9E4eE988b4Fb98587D3A",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0xc1a792041985F65c17Eb65E66E254DC879CF380b",original:"Celo"}],["GLMR",{symbol:"GLMR",decimals:18,address:"native",wrappedKey:"WGLMR"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xAcc15dC74880C9944775448304B263D191c6077F"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x99Fec54a5Ad36D50A4Bba3a41CAB983a5BB86A7d",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x098d6eE48341D6a0a0A72dE5baaF80A10E0F6082",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x484eCCE6775143D3335Ed2C7bCB22151C53B9F49",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x25331575641d35D9765e1934acC8F0991c58e904",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x18872b45c603eD2EbC508b9C5514a85c2e2791FB",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xd4870F7F5AD8Ae5139E1a5D8AD4ac55204aE4490",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x7143e8EA96e158381057a58AfdDF44601c7e532C",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x6C6f83366A42fcA4D30a2D3f1914284de995Ac3a",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xE6d02a875CcC153c076fe418f33De3A5C420f505",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xeCd65E4B89495Ae63b4f11cA872a23680A7c419c",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xf0a9476E4712123A807859f9Fd25fe98213379BD",original:"Klaytn"}]]],["Solana",[["WETH",{symbol:"WETH",decimals:8,address:"7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"A9mUU4qviSctJVPJdBJWkb28deg915LYJKrzQ19ji3FM",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"Dn4noZ5jgGfkntzcQSUZ8czkreiZ1ForXYoV2H8Dm7S1",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"EjmyN6qEC1Tf1JxiG1ae7UTJhUxSwk1TCWNWqxWV4J6o",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:8,address:"33fsBLA8djQm82RpHmE3SuVrPGtZBWNYExsEUeKX1HXX",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"Gz7VkD4MacbEB6yC5XD3HcumEiYx2EtDYYrfikGsvopG",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"9gP2kCy3wA1ctvYWQk75guqXuHfrEomqydHLtcTCqiLa",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"FCqfQSujuPxy6V42UvafBhsysWtEq1vhjfMN1PUbgaxA",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"KgV1GvrHQmRBY8sHQQeUKwTm2r2h8t4C8qt12Cw1HVE",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"FHfba3ov5P3RjaiLVgh8FTv4oirxQDoVXuoUUDvHuXax",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"DRQBDBEWmwWGK13fRTLhSPzjbvMSUavhV6nW4RUH8W6T",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"9kvAcwQbqejuJMd59mKuw2bfSsLRaQ7zuvaTVHEeBBec",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"7ixSaXGsHAFy34wogPk2YXiUX3BMmQMFdercdaHLnBby",original:"Moonbeam"}],["SOL",{symbol:"SOL",decimals:9,address:"native",wrappedKey:"WSOL"}],["WSOL",{symbol:"WSOL",decimals:9,address:"So11111111111111111111111111111111111111112"}],["USDCsol",{symbol:"USDC",decimals:6,address:"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"}],["SUI",{symbol:"SUI",decimals:8,address:"G1vJEgzepqhnVu35BN4jrkv3wVwkujYWFFCxhbEZ1CZr",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"6LNeTYMqtNm1pBFN8PfhQaoLyegAH8GD32WmHU9erXKN",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"CSD6JQMvLi46psjHdpfFdr826mF336pEVMJgjwcoS1m4",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"CR4xnGrhsu1fWNPoX4KbTUUtqGMF3mzRLfj4S6YEs1Yo",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"8M6d63oL7dvMZ1gNbgGe3h8afMSWJEKEhtPTFM2u8h3c",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"DWXe1hxpnb8LAH21iyXcjvMbiAGzoYyuCVQtRLvZdLYd",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"EfqRM8ZGWhDTKJ7BHmFvNagKVu3AxQRDQs8WMMaoBCu6",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"25rXTx9zDZcHyTav5sRqM6YBvTGu9pPH9yv83uAEqbgG",original:"Ethereum"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"6DNSN2BJsaPFdFFc1zP37kkeNe4Usc1Sqkzr9C9vPWcU"}],["wstETH",{symbol:"wstETH",decimals:8,address:"ZScHuTtqZukUrtZS43teTKGs2VqkKL8k4QCouR2n6Uo",original:"Ethereum"}],["PYTH",{symbol:"PYTH",decimals:6,address:"HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3"}]]],["Sui",[["WETH",{symbol:"WETH",decimals:8,address:"0xaf8cd5edc19c4512f4259f0bee101a40d41ebed738ade5874359610ef8eeced5::coin::COIN",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf::coin::COIN",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x27792d9fed7f9844eb4839566001bb6f6cb4804f66aa2da6fe1ee242d896881::coin::COIN",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xc060006111016b8a020ad5b33834984a437aaa7d3c74c18e09a95d48aceab08c::coin::COIN",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"0xdbe380b13a6d0f5cdedd58de8f04625263f113b3f9db32b3e1983f49e2841676::coin::COIN",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x5c8c9082401982e8c2519a5c12883a5475295bf5cec4a0a13c26d35dd9a20d73::coin::COIN",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"0xb848cce11ef3a8f62eccea6eb5b35a12c4c2b1ee1af7755d02d7bd6218e8226f::coin::COIN",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"0x909cba62ce96d54de25bec9502de5ca7b4f28901747bbf96b76c2e63ec5f1cba::coin::COIN",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"0x1e8b532cca6569cab9f9b9ebc73f8c13885012ade714729aa3b450e0339ac766::coin::COIN",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xe596782fbaebef51ae99ffac8731aed98a80642b9dc193ed659c97fbc2cc0f84::coin::COIN",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"0x6081300950a4f1e2081580e919c210436a1bed49080502834950d31ee55a2396::coin::COIN",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"0xa198f3be41cda8c07b3bf3fee02263526e535d682499806979a111e88a5a8d0f::coin::COIN",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"0x66f87084e49c38f76502d17f87d17f943f183bb94117561eb573e075fdc5ff75::coin::COIN",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"0xb7844e289a8410e50fb3ca48d69eb9cf29e27d223ef90353fe1bd8e27ff8f3f8::coin::COIN",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0xb231fcda8bbddb31f2ef02e6161444aec64a514e2c89279584ac9806ce9cf037::coin::COIN",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x2::sui::SUI"}],["APT",{symbol:"APT",decimals:8,address:"0x3a5143bb1196e3bcdfab6203d1683ae29edd26294fc8bfeafe4aaa9d2704df37::coin::COIN",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"0x33744e7df340a4d01c23f6b18c13563f767545ea95f976f8045f056358419da3::coin::COIN",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xc3f8927de33d3deb52c282a836082a413bc73c6ee0bd4d7ec7e3b6b4c28e9abf::coin::COIN",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"0xaab14ec22908de73d1b0619f5e03842398f8e68262981bd35ef44b42d22b23a::coin::COIN",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x6037801f060f0f54b3817bca05e3c8b9b9ffaa2da8e93fd5b80fa662aa3c9e55::coin::COIN",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"0xaecbc804fa7ca7cffc74c9a05eb6ae86fda0c68375b5c1724204a1065bcb239a::coin::COIN",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x7e3e74afcc1913aa9491c8cee89b02131a6e5519b090f16b54321835c1241cfb::coin::COIN",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"0xbc3a676894871284b3ccfb2eec66f428612000e2a6e6d23f592ce8833c27c973::coin::COIN",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:8,address:"0xa5ec915864d7f37b25ca9144b2db6ebcf29e73603c2ccf9d0e765adcd9049a98::coin::COIN",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x9c6d76eb273e6b5ba2ec8d708b7fa336a5531f6be59f326b5be8d4d8b12348a4::coin::COIN",original:"Solana"}]]],["Aptos",[["WETH",{symbol:"WETH",decimals:8,address:"0xcc8a89c8dce9693d354449f1f73e60e14e347417854f029db5bc8e7454008abb::coin::T",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x5e156f1207d0ebfa19a9eeff00d62a282278fb8719f4fab3a586a0a2c0fffbea::coin::T",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xae478ff7d83ed072dbc5e264250e67ef58f57c99d89b447efd8a0a2e8b2be76e::coin::T",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xa2eda21a58856fda86451436513b867c97eecb4ba099da5775520e0f7492e852::coin::T",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"0x407a220699982ebb514568d007938d2447d33667e4418372ffec1ddb24491b6c::coin::T",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:8,address:"0x77400d2f56a01bad2d7c8c6fa282f62647ce3c03f43f2a8742e47ea01a91e24a::coin::T",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"0x6781088e2a1629d38eda521467af4a8ca7bfa7e5516338017940389595c85c0f::coin::T",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xc5fd7820e9f053e6dd8e7dd8ca3ce8e9b10d200ba1692bdeb7a035217180ad4a::coin::T",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"0x6312bc0a484bc4e37013befc9949df2d7c8a78e01c6fe14a34018449d136ba86::coin::T",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"0x79a6ed7a0607fdad2d18d67d1a0e552d4b09ebce5951f1e5c851732c02437595::coin::T",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"0x5b1bbc25524d41b17a95dac402cf2f584f56400bf5cc06b53c36b331b1ec6e8f::coin::T",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x39d84c2af3b0c9895b45d4da098049e382c451ba63bec0ce0396ff7af4bb5dff::coin::T",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"0xd1aa2ff36a0e93e1b4e4fecdecf8bb95bc5de399061c5e84b515281f48718842::coin::T",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"0xac0c3c35d50f6ef00e3b4db6998732fe9ed6331384925fe8ec95fcd7745a9112::coin::T",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"0x7ab1283a7b13c4254d4e1f803d7ce6578442c1d7a40d0faee41cd48ba4884c8a::coin::T",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"0xdd89c0e695df0692205912fb69fc290418bed0dbe6e4573d744a6d5e6bab6c13::coin::T",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0xc91d826e29a3183eb3b6f6aa3a722089fdffb8e9642b94c5fcd4c48d035c0080::coin::T",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"0xa72a97e872be9ee3d2f14d56fd511eb7e4a53f4055be3a267d8602e7685b41c0::coin::T",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x1::aptos_coin::AptosCoin"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"0x0e977796d7bfb3263609b90dffd264c7bd078ce35dac42b55302858d9fa3452b::coin::T",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xca3a2c28bc8c6c762f752dd2a4ebbfd00356ca99977ce6636e3af5897124a87a::coin::T",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"0x6a7a7f36ef5e2d0e65fcf72669c20d514d68298b0f76c7554517208f73260aaf::coin::T",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x4f6ecb05a797902d472abc2f5804bde93a53d8b75f14f767824cdb1623a4ee83::coin::T",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"0x5b5f14781164cf77185a7b6acd8e4f3cbb7e7cfb1cd5760d2b8af81075fc153d::coin::T",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xfcc4fcd734d5b8578fb629d238d15264a49eca6165c7444c21feec3b4962eb88::coin::T",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"0x9d5a0f8215301fa8096df332b1533f6328f18c32fbac2a7089cfbea73b3068a7::coin::T",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:8,address:"0x539b652f8230a0e42adaeda4706b5639893d22362eda6ea897493c210cb48219::coin::T",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x770211b47954e15bec1a4271bf33bacebc2d2adb43b7dc1ca45efa787615dd4c::coin::T",original:"Solana"}]]],["Base",[["WETH",{symbol:"WETH",decimals:18,address:"0x71b35ECb35104773537f849FBC353F81303A5860",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xec267C53f53807c2337C257f8AC3Fc3cC07cc0ed",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xE6396f780b543dF16ee3b784D789c75B68319db0",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xFf0C62A4979400841eFaA6faADb07Ac7d5C98b27",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x617Edadb51BfB43A44Bb91C7402129C23bA52381",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xc863399E5c5C4011B1DC3fB602902C77BA72B709",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xFe1579BAc60363c8572CB30Bf4DD1Fd85811BBF8",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x7fdAa50d7399ac436943028edA6ed9a1BD89509f",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x68E2b07F92ed506f92935d7359ECA84D5342dbb4",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0xc449A60A31E1eebFE83c42E9465fd4Dc318aE9a7",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xD83385fE100E20c269a5975D4Bf92525BcE09F87",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x936Fa2DE8380Dc5BF34C80F1BaD53a9f3630263B",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x74df3823aA29D278cAD0A3632fCB56C896a38eD4",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xfdB7311BeC3b2CcCF8407d0585f81B97b3b5eff1",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x1C61629598e4a901136a81BC138E5828dc150d67",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0xe8CE40EBBB844142400D21558a2F1c9683d69139",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x36c6FBF7B49bF65f5F82b674af219C05b2a4aDD1",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x1d36126289Be1658297A35CC3EB2BB80A7D7A04b",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x9D36e0edb8BBaBeec5edE8a218dc2B9a6Fce494F",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xb96B82Cd6D45d98Fb6897D16A5E4EE888329C513",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xCb725aC8d9985D3bE306Dd9e1517d3702929176c",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xc6bfBeb3002aD563D2d1f72614C61C83Bf147Acd",original:"Optimism"}],["ETHbase",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHbase"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}],["wstETHbase",{symbol:"wstETH",decimals:18,address:"0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x9EE95E6Bd1B3C5740F105d6fb06b8BDeF64Eec70",original:"Ethereum"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x56D0873e0eCA4a56063e1BF945788365666CFBFC",original:"Arbitrum"}],["tBTCbase",{symbol:"tBTC",decimals:18,address:"0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0xEd4e2FD35161c3c0e33cA187fce64C70d44Ce32b",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x41c433c146c47Dc53FC48cDc69e406e365e298E1",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x4c5d8A75F3762c1561D96f177694f67378705E98",original:"Solana"}],["USDTbase",{symbol:"USDT",decimals:6,address:"0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2"}]]],["Arbitrum",[["WETH",{symbol:"WETH",decimals:18,address:"0xD8369C2EDA18dD6518eABb1F85BD60606dEb39Ec",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xC96F2715E2a242d50D1b0bC923dbe1740b8eCf18",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x397846a8078d4845c7f5c6Ca76aeBbcFDc044fAe",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xE4728F3E48E94C6DA2B53610E677cc241DAFB134",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x5c4f2FEFB97F7DF09E762d95C83f0Ccf8bCe8234",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x3ab0E28C3F56616aD7061b4db38aE337E3809AEA",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x599ADB10E6A012dF34935D47407450f6D7170e3C",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x7AF00405916D823eDb1121546EfA6F4972B51b84",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x1a0590F951bc9C3818Ce75ba5Bbe92831b2cf57e",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x565609fAF65B92F7be02468acF86f8979423e514",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x93e0FcbEd43CD6fC30DF00CcBD4669718dc74e77",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x7f7dcDb91930033a4Eb269196EBb6fd5f0644E4B",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x4E51aC49bC5e2d87e0EF713E9e5AB2D71EF4F336",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x944C5b67a03e6Cb93Ae1E4B70081f13b04CDB6Bd",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x2bcC6D6CdBbDC0a4071e48bb3B969b06B3330c07",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x3870546cfd600ba87e4180686d29dC993A45d3B7",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xCF79d86B8a830030aF6D835737d6eac3bE823fD7",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x4EdeF400eDe5309240814b5FC403F224504604e9",original:"Aptos"}],["ETHarbitrum",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHarbitrum"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x82af49447d8a07e3bd95bd0d56f35241523fbab1"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xaf88d065e77c8cC2239327C5EDb3A432268e5831"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xB1fC645a86fB5085e12D8BDDb77702F728D2A26F",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x3A5C2Da9E30741cb59a5e9446A23A86886fC9DC2",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0xBAfbCB010D920e0Dab9DFdcF634De1B777028a85",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x8619F97D4d08382548F536E5CE1D3e0D9bA40326",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x57723abc582DBfE11Ea01f1A1f48aEE20bD65D73",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0x3bab04bDFd2Dc3640c2B9390A2Da05bC1192D482",original:"Polygon"}],["tBTCoptimism",{symbol:"tBTC",decimals:18,address:"0x2519010b6585247BcDC8BcDa5C8730Be754b8c76",original:"Optimism"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0xf2717122Dfdbe988ae811E7eFB157aAa07Ff9D0F",original:"Ethereum"}],["wstETHarbitrum",{symbol:"wstETH",decimals:18,address:"0x5979D7b546E38E414F7E9822514be443A4800529"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xFA95f6c796E54F9C4a99392CAE84410a25794BB3",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0xE4D5c6aE46ADFAF04313081e8C0052A30b6Dd724",original:"Solana"}],["USDTarbitrum",{symbol:"USDT",decimals:6,address:"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9"}]]],["Optimism",[["WETH",{symbol:"WETH",decimals:18,address:"0xb47bC3ed6D70F04fe759b2529c9bc7377889678f",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x711e53D031ea9B0bb0C24dD506df11b41AEA419e",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xB214C19d81c99E75e84706a3aa0A757319023e26",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xf6B4185FCf8aF291c0E3927fbEab7046b4f6A8CA",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x098EA47D630b46df1E08e389e5e4466119c7dd30",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x8f02B6a32cebcAe44D2Fd17d87966f5B5dD14c6d",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xbB1EaB9Eb8fDf65F0E291D013DA07B4b65a27a01",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x6A09fE65ACa27C12573F04aAFa290bD75497E1BC",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x1C15057d1F3794C934a6cBC1f7EceE934050F219",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x8418C1d909842f458c9394886b83F19d62bF1A0D",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x355f0a8a7ecAeD971b8Fbd50994558291ff2413a",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x0b0ecbe5C3995541876d27633B63296570FB34Af",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x9b88D293b7a791E40d36A39765FFd5A1B9b5c349",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xbffD46DFDb8d3a02b8D2E0F864a2cD712090a4D3",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xba1Cf949c382A32a09A17B2AdF3587fc7fA664f1",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x6F974A6dfD5B166731704Be226795901c45Bb815",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x27A533e438892DA192725b4C9AcA51447F457212",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xC5B3AC2DF8D8D7AC851F763a5b3Ff23B4A696d59",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x825206E1D29456337769e6f1384101E997C6A732",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xa6252F56cc6eEA21165d56744C795F91c8a3Cf68",original:"Arbitrum"}],["ETHoptimism",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHoptimism"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x0b2c639c533813f4aa9d7837caf62653d097ff85"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x3F369a664fa665e01e8EB9f20bFcE03A0CAb8971",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xb931c7BbD87A6e249EaA7355B13927F9c99Bce87",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xeC0a755664271b87002dDa33CA2484B24aF68912",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0xE4C32B9eA749fa0342B1C42C01E80028B97c3917",original:"Polygon"}],["tBTCoptimism",{symbol:"tBTC",decimals:18,address:"0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x2390a5131fcba6e47f702172cF4876589E4161c6",original:"Arbitrum"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0x855CFcEEe998c8ca34F9c914F584AbF72dC88B87",original:"Ethereum"}],["wstETHoptimism",{symbol:"wstETH",decimals:18,address:"0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xbbeF8233a0d10EEAb84E913FaDB337ab9b62F683",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x99C59ACeBFEF3BBFB7129DC90D1a11DB0E91187f",original:"Solana"}],["USDToptimism",{symbol:"USDT",decimals:6,address:"0x94b008aA00579c1307B0EF2c499aD98a8ce58e58"}]]],["Wormchain",[["WETH",{symbol:"WETH",decimals:8,address:"wormhole18csycs4vm6varkp00apuqlsm7v4twg8jsljk8wfdd7cghr7g4rtslwqndm",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"wormhole1utjx3594tlvfw4375esgu72wa4sdgf0q7x4ye27husf5kvuzp5rsr72gdq",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"wormhole1nz0r0au8aj6dc00wmm3ufy4g4k86rjzlr8wkf92cktdlps5lgfcqxnx9yk",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"wormhole1w27ekqvvtzfanfxnkw4jx2f8gdfeqwd3drkee3e64xat6phwjg0savgmhw",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"wormhole1chejx4qqtvwxy6684yrsmf6pylancxqhk3vsmtleg5ta3zrffljqfscg87",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:8,address:"wormhole1msyushf6d76u9wupuvm6jdvc0x4trmv5w5kxr0hyt7n9npp233usg7pkhm",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"wormhole1xmpenz0ykxfy8rxr3yc3d4dtqq4dpas4zz3xl6sh873us3vajlpszn4ph7",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"wormhole169nr66h9gcsfljvsnxnqfjakskcjt6ac8f58wqjuagu79m540teqfvaal4",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"wormhole1g3acw7aumaj3r348cqn4kazrehlmn822w9p46sqwztnke27h3lysxj4ddr",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"wormhole1ml922hnp59jtq9a87arekvx60ezehwlg2v3j5pduplwkenfa68ksgmzxwr",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"wormhole1gwm6mrnse9atzf4mer4dnrz64mp6pa75wpsxywu8gymt9fwsk46sfr372u",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"wormhole1e0cwfmla7exa578xddl87paxexw9ymwrzysfjms8c2mstxjkldlqn45jqa",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"wormhole1kqey3a6k26kyensq7elcpx229tlj4d3qlshwhjq5xjm8dcdvu60qtef8k9",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"wormhole1gzuv84xrwwhxhf0f62av279vfyrfrm7x58fcnadlr5m90gnx223ses2st0",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"wormhole1wn625s4jcmvk0szpl85rj5azkfc6suyvf75q6vrddscjdphtve8sca0pvl",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"wormhole17fr8awnysyv3nt5je4strczdupssl8u9jqam890jfv72sh32yyqqhtg3ry",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"wormhole19hlynxzedrlqv99v6qscww7d3crhl86qtd0vprpltg5g9xx6jk9q6ya33y",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"wormhole1f9sxjn0qu8xylcpzlvnhrefnatndqxnrajfrnr5h97hegnmsdqhsh6juc0",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"wormhole18nlwscr7290j463vcptqlgqudycry2rdnw2ysltpc2nqefk3353s808rl9",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"wormhole1ev8rhdflmlq6de5g7ttj585fhuv3jfhnuhfzyh7qrswhzaq2tkqswxz6y3",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"wormhole1snw0qugpjcxwtxzzkqt5guwavq85eumxzeagql2u2m662xrtnjuqyj3pkj",original:"Optimism"}],["USDCbase",{symbol:"USDC",decimals:6,address:"wormhole1edkult6zudk6ld23fesjfrehux35q86engsq5jlycl0e4upkz8mqkgcprf",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"wormhole1nu9wf9dw384attnpu0pwfet5fajn05w2ex4r07mghvk3xcwrt2yq5uutp5",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:8,address:"wormhole1uj24zecnaxz7ftz0sh6dsayfene4w3yptwg0422kves9duel67vsr7hlyz",original:"Polygon"}],["tBTCarbitrum",{symbol:"tBTC",decimals:8,address:"wormhole1q8ynvqvtw49ln73mn70v4me4q03fvvmhkf2lh4ueam5w4362s2asjmvxtd",original:"Arbitrum"}],["wstETH",{symbol:"wstETH",decimals:8,address:"wormhole1gg6f95cymcfrfzhpek7cf5wl53t5kng52cd2m0krgdlu8k58vd8qezy8pt",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:8,address:"wormhole1kyy876kye7k79fuzat532yyqkrzhlr6l7hc7lfa2rk5tygzhy00qrhjgkc",original:"Klaytn"}]]],["Osmosis",[["WETH",{symbol:"WETH",decimals:8,address:"ibc/62F82550D0B96522361C89B0DA1119DE262FBDFB25E5502BC5101B5C0D0DBAAC",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"ibc/6B99DB46AA9FF47162148C1726866919E44A6A5E0274B90912FD17E19A337695",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"ibc/E4CD61E1FA3EB04EF1BF924D676AB9FD55E84A0DCF4E78C11CCA0E14E5B42672",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"ibc/2108F2D81CBE328F371AD0CEF56691B18A86E08C3651504E42487D9EE92DDE9C",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"ibc/898ACF6F5DEBF535103BBD52E3E5B70A311AD097B198A152483F69290B4210C0",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"ibc/03B6D1925A09B3033AA6FA8772202719ABDC51F8CC2A5C26D0A9B19832F2C023",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"ibc/5394BB30B3C9BD1EE84C9531E5094DDE2490964F518CBE8A4C91F748CE559AF5",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"ibc/B28ACEF11D063FA8B1DA73C2F7DA3A1CFCCBC13E96B671698D4860E9367B55BB",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"ibc/22B44C7369EED16089B9840ADE399B80D9483B4E459E67643C96C681D7C463D0",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"ibc/0B3C3D06228578334B66B57FBFBA4033216CEB8119B27ACDEE18D92DA5B28D43",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"ibc/397DFE63D87F6940ECA583DFF5461E48BF0BA6554CBBE70278E307DDFDC8E9D5",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"ibc/83300733052AB5F6E0F0C221E24189B6DF26CC94C73D2F44627627F9DEF4A9C8",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"ibc/0F2941B0168D8DB77DA1B6A2D3A95EC04026D3C97FA3BFE8FD1D5D3F983AA518",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"ibc/1E43D59E565D41FB4E54CA639B838FFD5BCFC20003D330A56CB1396231AA1CBA",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"ibc/F08DE332018E8070CC4C68FE06E04E254F527556A614F5F8F9A68AF38D367E45",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"ibc/B1C287C2701774522570010EEBCD864BCB7AB714711B3AA218699FDD75E832F5",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"ibc/A4D176906C1646949574B48C1928D475F2DF56DE0AC04E1C99B08F90BC21ABDE",original:"Aptos"}],["USDCbase",{symbol:"USDC",decimals:6,address:"ibc/8AC0F990290BBEF3AEBFCBF70F902AD954781BB40D07EB76341272800D48D05F",original:"Base"}],["OSMO",{symbol:"OSMO",decimals:6,address:"uosmo"}],["tBTC",{symbol:"tBTC",decimals:8,address:"ibc/6207D35D2C08F2162575C3C4BFD524226E50639121A273045F1B393AF67DCEB3",original:"Ethereum"}],["wstETH",{symbol:"wstETH",decimals:8,address:"ibc/BF75AE1500CB7EC458E91A11731F1B6AC1F1FE1FA937A88564955ED6A83CA2FB",original:"Ethereum"}]]],["Evmos",[["WETH",{symbol:"WETH",decimals:8,address:"ibc/4442A8E0D487A49E76EA6606F5DADCF8D0DBDD8499112340C964970DB745EDA2",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"ibc/0C19171CDC59451F91D2749CDEA63355532DCD5D8904CCBAC4953290E16AB8FD",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"ibc/46C5DA1CB61C5BAA8730ABA467ADD58DE0333B075CACE28BC87E64AE8C9CA051",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"ibc/C9072A294F5649D64E87A6998DD750576881E454CACCDAF7376EFC0FA243808D",original:"Ethereum"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"ibc/8E08C01546EF346F7E9A3600DDBC88943ADF3B20A67F1F2DD7B83D85613BCCAB",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"ibc/2EA2FE172078576E62DA20F14EEED12B26611D93150FE1D68E1AAE00479AC335",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"ibc/39913E647C3549D663B1ED7F0745E1779515170C5215B98B2C8410B4C073AD30",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"ibc/9EFE5F5D75A87197DD257BA7A96A3BCCEC9DB59D257C742FB5AA9D3DF612D476",original:"Fantom"}],["WSOL",{symbol:"WSOL",decimals:8,address:"ibc/4443218F584A7AB2DFBCF93872D6E5B6967A11C53515DDF45A2CF387C54BD73A",original:"Solana"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"ibc/9E2E7B4A53409267CD686F4EB67969C2602A0F5FF9BDB1082B00E71CC4815DDE",original:"Arbitrum"}],["EVMOS",{symbol:"EVMOS",decimals:18,address:"aevmos"}]]],["Kujira",[["WETH",{symbol:"WETH",decimals:8,address:"ibc/7D9D28CABB49A4BB1A50C3B7E4544BFDBC5DDFAEB84A7787755A34CE7196CE15",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"ibc/C5EADE2C526B9629D230AC02A97644984ACB7C2F9A6C85126D1025CB0DA42588",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"ibc/B2C7F21B604E3974A7DA5DAA9395905F2F3C85392F8A221CFDF62E4A9F4E48E4",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"ibc/3CE8A3DE4AE5AE2B4B8C03B2B227CC284732EDC849E506615FF2AA3D8EB1BAFC",original:"Ethereum"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"ibc/28E7241F6508EB4692C721E91201377323796EF2758CCD83D220A40EAD32601E",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"ibc/F9F41DB8DA49EA6AB9EB4B2C9E0ECDC2502ABDA2FE728B85994BF31240CBC163",original:"Avalanche"}],["CELO",{symbol:"CELO",decimals:8,address:"ibc/4ACD155D71182398277CBD2C630A7C8C5F0F16FFF77965FDE4C845A4CDE2D60C",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"ibc/3D337ECC89A8421DD6F33C4B7DDE9D4A18D728A4A688BA30E41F466EC8DD3869",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"ibc/E5CA126979E2FFB4C70C072F8094D07ECF27773B37623AD2BF7582AD0726F0F3",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"ibc/EBA52E7239CC1BC7F8ECF4F41523B6DD477FF067FD953315704A9A4FD2131B48",original:"Sui"}],["KUJI",{symbol:"KUJI",decimals:6,address:"ukuji"}]]],["Klaytn",[["KLAY",{symbol:"KLAY",decimals:18,address:"native",wrappedKey:"WKLAY"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xe4f05A66Ec68B54A58B17c22107b02e0232cC817"}]]]],HO=pn(dhe,[0,[1,2]]),hhe=[["Ethereum",[["ETH",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETH"}],["WETH",{symbol:"WETH",decimals:18,address:"0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x07865c6e87b9f70255377e024ace6630c1eaa37f"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xC04B0d3107736C32e19F1c62b2aF67BE61d63a05"}],["USDT",{symbol:"USDT",decimals:6,address:"0xC2C527C0CACF457746Bd31B2a698Fe89de2b6d49"}],["DAI",{symbol:"DAI",decimals:18,address:"0x11fE4B6AE13d2a6055C8D9cF65c55bac32B5d844"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x7cd0e8ff09cEB653813bD3d63d0554c1CB4BFdf6",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xB19693FEB013Bab65866dE0a845a9511064230cE",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x4C1b727f6df3B075E682C41a25687A69846aaC04",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xF6699D3f725C4b64Cc6010F2DF77B4B05C76Cd5C",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x0d7A9Cdbb7C21E64825cF81750A5081a32aFb5d4",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0xe092525a787CD56B901279b5864a224c22B95B72",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x0dc83BB61008A5E1194fe50fA9E474713C1AEcD7",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x494701CE895389d917a938f0ea202D4eB9684Eab",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x70F7360C49D227ccBbb98fB7B69B7CDB651195bb",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xd7A89a8DD20Cb4F252c7FB96B6421b37d82cE506",original:"Aptos"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xd962F26D93c4eF609Ba00Ed6101326A1490B9489",original:"Arbitrum"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x76e39239e40857030D6f4D8545EFbd71F904d344",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x5aA392243437dDC8b4d86bfC90DF296908740A41",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x679874fBE6D4E7Cc54A59e315FF1eB266686a937"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x575D93A2278FbF4E8Bd3d51B539a6E237C3F17c5",original:"Arbitrum"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"0x57A52B6F0b393AF7d36116183cA83E584e636eA4",original:"Solana"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0x6320cD32aA674d2898A68ec82e869385Fc5f7E2f"}],["SEI",{symbol:"SEI",decimals:6,address:"0xd68df72136207E9471C915cf1B6Cf43D587D4E0A",original:"Sei"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x327e0c7D5cFa65d4f9E358dC9fA4446C49dBcB6C",original:"Klaytn"}]]],["Polygon",[["WETH",{symbol:"WETH",decimals:18,address:"0xc6735cc74553Cc2caeB9F5e1Ea0A4dAe12ef4632",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x543237045a106D7fd2eE3e2B44b5728e70BDe9c3",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x02E30E84161BE1aBfcBB2b154B11De4C2b5E0a32",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x87374d35C5F1bD78c2b1da383F460e154e7D3E5e",original:"Ethereum"}],["MATIC",{symbol:"MATIC",decimals:18,address:"native",wrappedKey:"WMATIC"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x9999f7fea5938fd3b1e26a12c3f2fb024e194f97"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x0C63D8ADB69204b2946DcB945a6f16d97C255eE2",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x51f3D34651523dD8CC4872ee261A1B0B3f73AceF",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xcc048C353Fdc2f5c378B7BCab9B240Ca2b619f1c",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x84aa9100a36D6c3514605F62342abF3cE77D5b97",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0xAd027790A64331A11bd1b651739450cC9Dc0098F",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x693b9AC2199d989bDA8C9C5b5d7A3680B4f40dAa",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x0284B4994456Fae4cb56E4d33228d51B674EAD1b",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x3dadA6f29f80A0427C4989E17a5a2ada17441841",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x226B436043B537BD158e84fA199E2Aa36bf364f8",original:"Aptos"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xC77d781f38Cf52F8Ea0b4c0F22312bB9A34911b5",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x68C4365d5229A44D9A59058B65500365492b5307",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xf6CC0Cc8D54a4b1A63a0E9745663e0c844Ee4D48",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0xBcD7917282E529BAA6f232DdDc75F3901245A492"}],["SEI",{symbol:"SEI",decimals:6,address:"0xc5C0229B38564E1E8083031405Be8d6E6e3Bc462",original:"Sei"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x7b34f3711705eB2963fB856cda063C979de4749e",original:"Klaytn"}]]],["Bsc",[["WETH",{symbol:"WETH",decimals:18,address:"0x064a85eac6b4Bd7190BCAd3458dBD9459989c37B",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x861B5C16A2EcED022241072A7beA9D530b99EB6f",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xe94AaBAdB6F833f65B8A9AdDD030985B775188c9",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x45082C9Fc6BBCa72288F47Fad21dE0BECC75759E",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x7FCDA925f0994121752ca14C334297BeC3d0eA9E",original:"Polygon"}],["BNB",{symbol:"BNB",decimals:18,address:"native",wrappedKey:"WBNB"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x6cE9E2c8b59bbcf65dA375D3d8AB503c8524caf7",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x1cfeCf72bcBE1E429A21A5B11E708C7c397AaC54",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x9aB305B792DBdb8253bEE909E7006611Cb45175b",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x1471698cBD9cAB0228F2EEA9303A2b3aA0ABDC2B",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x5C31B36599ED7f06b09c0ffC7A2F928cE496F046",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x30f19eBba919954FDc020B8A20aEF13ab5e02Af0",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x51a3cc54eA30Da607974C5D07B8502599801AC08",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x5A73D76e09Af2E428EC64aE10F91B78AC990B298",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x4A7Bd5E135f421057F97BbA8BCeeE5c18334f454",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x60845E2503Fcd945b3A6f0bC077a31CC913E654D",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xe3aA397cb6d93Cce4fAd9Cc9E796CCa5E50FB5ED",original:"Arbitrum"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x63108fC941F3cCE0B484De19746B5Af949EAF6eE",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xE7176110261ef2FfC885dd568C1093f58F0aEee9",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0x79A8FFFCED130314eCC8782C846c4d8d4867A900",original:"Sei"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x79D34FDb686B5D139949E4F92D83EEe376489176",original:"Klaytn"}]]],["Avalanche",[["WETH",{symbol:"WETH",decimals:18,address:"0xbB5A2dC896Ec4E2fa77F40FA630582ed9c6D0172",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x63A30f239DC8d1c17Bf6653a68Fc6C2F83641E6d",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x3989C9c4bdd30400E6Aa90990683EAd6a1638A16",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x78554394273957d7e55afC841aeA27Cce469AEd4",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x10F1053bF2884b28ee0Bd7a2dDBa237Af3511d29",original:"Bsc"}],["AVAX",{symbol:"AVAX",decimals:18,address:"native",wrappedKey:"WAVAX"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0xd00ae08403B9bbb9124bB305C09058E32C39A48c"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x5425890298aed601595a70AB815c96711a31Bc65"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x094cB577C21Ab1360178beE74B9591fa12216dAD",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0xC66d9c2b33c347d4A4441975f4688fcD5DD4c441",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xf080782DF38eD5228D2FC2882d13D56c8f1D6f21",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xb10563644a6AB8948ee6d7f5b0a1fb15AaEa1E03",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xfc5128F8556a6F059466E67740e6cC31EE5C2C47",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x996a3f12C1FcD7339Ea8801f629201e4d42EAD04",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x36Bd1562F874941eE62Ebb2b3A45B4A88A9df90e",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x301587BF484756441de43E522027e3751871237B",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0xc07c754ef7473d315D973F7D9F7858C2eCe0a0a6",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x7E1779F65B644E5f98DdC4D2cB0A0106a7E6d9e1",original:"Ethereum"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x4beDc7471374d7479120E44ea9593eBB85f48AD9",original:"Arbitrum"}],["SEI",{symbol:"SEI",decimals:6,address:"0xfe2eCDD1708aaebf1cF802C6124fAFb18B22dfEE",original:"Sei"}]]],["Fantom",[["WETH",{symbol:"WETH",decimals:18,address:"0x758FEebDDeC06f4bCcEc8F756C8efBD35d5b7124",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xDF7928AF5B33F7de592594958D8d6Ff8472Eb407",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x32eF19C4b3DF65a24972A489e70AdDef5E54262C",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0xE4FE5DF2084f9D81595e4fcba2399020FBE7b233",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x47a4C4c0f96D6CBe5b5C0A46CB0E22d6A17F1430",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xfB174b43228950C2055CFc25AE93f2DCe8E2beF0",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x0f545Be981C37fB15ab7c65404648761e99016e4",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x6BC4E8D8c1d54656D1DeBCa96efc53aFd1408aD2",original:"Avalanche"}],["FTM",{symbol:"FTM",decimals:18,address:"native",wrappedKey:"WFTM"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xf1277d1Ed8AD466beddF92ef448A132661956621"}],["CELO",{symbol:"CELO",decimals:18,address:"0xB18E73a69c3Aaea39a610372537Cf8482622d199",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x41E3CFDFC255A4bF3C8D3560Bc8D3D9b5080338e",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xED1a08Fc69A7008d225890A96aaE258c465CC7ad",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xd882AB49372eC093E8697B5153f54ab5e7738e3b",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xAb2297E8994149BA91737944E40891881aF762a4",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x456e08952f9091B6c268dC0cECad53d141152C59",original:"Arbitrum"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x685B29e17440c42758Ab3F80FD3603EF01bebe9A",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x01950A33DfFa63E6Bc23b5dB440505581A4cc0e7",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x66E080407407620844fE2083c33108BE55E087bc",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0x832e8050D6c64724500DE9B0ffe1CAc6c570a26d",original:"Sei"}]]],["Celo",[["WETH",{symbol:"WETH",decimals:18,address:"0x898471a82737dFFfB61915F9e8381e279076D72b",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xB0524bEF6c61c6150B340b2828a890fD8dEa60C0",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0xeBB3fF6E5d61d3793Fdb60f7942BA78E636019f6",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x7a56409988BBF8758b3ba412b9c7E3FE504C8544",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xa8050be9389466c3c524F10F131f244ACbf21A0D",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x502c8C83008D9Dd812a7C5fB886C063060C73Dbf",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xDDB349c976cA2C873644F21f594767Eb5390C831",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xE6F8710cA14CFe7F5aAAD3A799C3d1D92dCba938",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0xF194afDf50B03e69Bd7D057c1Aa9e10c9954E4C9"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x132D2172D89cd9CfD480A8887c6bF92360fB460e",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x05EEF2AE1A7A938D78598F7d9e8b97A9bED0c9eC",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xa40d9E69ca9867C4bFbeC11Ce79C939991e9bf26",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xAC0a2fF7DD597de863878a3372142b07B614C125",original:"Aptos"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x0C4AbF95Ff3d82d1F02f55e65050eA5bA062606E",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x28E768a51D19dcB753a24B79D1e89c92fee094Ba",original:"Optimism"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x01a050Fc725F4E99aAD43Eb6f8481f38ee6231aD",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0x05Efb4aC79ef48a4830f517834c6f5f039F16832",original:"Sei"}]]],["Moonbeam",[["WETH",{symbol:"WETH",decimals:18,address:"0xd27d8883E31FAA11B2613b14BE83ad8951C8783C",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xE5dE10C4b744bac6b783fAF8d9B9fDFF14Acc3c9",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x7f5Ca1bcFb38fDF4c0E0646FCbf3FA87740ff65D",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0xc31EC0108D8e886be58808B4C2C53f8365f1885D",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xD2888f015BcB76CE3d27b6024cdEFA16836d0dbb",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x6097E80331B0c6aF4F74D7F2363E70Cb2Fd078A5",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x2E8afeCC19842229358f3650cc3F091908dcbaB4",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x6533CE14804D113b1F494dC56c5D60A43cb5C3b5",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x566c1cebc6A4AFa1C122E039C4BEBe77043148Ee",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x3406a9b09adf0cb36DC04c1523C4b294C6b79513",original:"Celo"}],["GLMR",{symbol:"GLMR",decimals:18,address:"native",wrappedKey:"WGLMR"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xD909178CC99d318e4D46e7E66a972955859670E1"}],["SUI",{symbol:"SUI",decimals:9,address:"0x2ed4B5B1071A3C676664E9085C0e3826542C1b27",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xCaa2A1d3BbbA0D1466571e83b4E2CbE04252593D",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x15025b956969DD8F1d0CD69959Ad97128F8f6D69",original:"Arbitrum"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xf98E630a3DD4F21Cab7a37Bb01209cb62959169D",original:"Optimism"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x7480641F5B00b4Fc39d6AaeC4Cd851EdEA7f31CF",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xf82E21cE03471983Afb9c2E3789Aa13a2d7242E8",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0x1EdDe35B7e058194B457B8621285EaFA710f01ea",original:"Sei"}]]],["Solana",[["WETH",{symbol:"WETH",decimals:8,address:"7VPWjBhCXrpYYBiRKZh1ubh9tLZZNkZGp2ReRphEV4Mc",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"2BAqec7Qof3Y7VJatwFsRHUNSQBSkzaEsT1V5bW6dbZY",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"3WK3mEDNPrNuQReBvM28NcsqrExMnPxD9pPJmgrUeKKH",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"ACbmcQxbbhiXWM1GmapUSMmBYKMvnFLfAAXKqdo8xKwo",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"BaGfF51MQ3a61papTRDYaNefBgTQ9ywnVne5fCff4bxT",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"3Ftc5hTz9sG4huk79onufGiebJNDMZNL8HYgdMJ9E7JR",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"GQtMXZxnuacCFTXVeTvyHi6P9F6chbtzhVc8JgD8hv7c",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"DMw2tLaq1bVoAEKtkoUtieSk9bfCPUvubYLatTMsSVop",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"84F2QX9278ToDmA98u4A86xSV9hz1ovazr8zwGaX6qjS",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"8987WGkYa5viiZ9DD8sS3PB5XghKmWjkEgmzvwDuoAEc",original:"Moonbeam"}],["SOL",{symbol:"SOL",decimals:9,address:"native",wrappedKey:"WSOL"}],["WSOL",{symbol:"WSOL",decimals:9,address:"So11111111111111111111111111111111111111112"}],["USDCsol",{symbol:"USDC",decimals:6,address:"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU"}],["SUI",{symbol:"SUI",decimals:8,address:"BJZ72CjPQojVoH68mzrd4VQ4nr6KuhbAGnhZEZCujKxY",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"7EvFD3JKCJVdtkAYdaSVKJsrPEJCzy2neJha7TREGrCa",original:"Aptos"}],["WETHbase",{symbol:"WETH",decimals:8,address:"EKZqcBZ3Y7YTDinpecA7SxRp9B4s1m99VHJ9jpvyTwzW",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"FMYvcyMJJ22whB9m3T5g1oPKwM6jpLnFBXnrY6eXmCrp",original:"Ethereum"}],["tBTCoptimism",{symbol:"tBTC",decimals:8,address:"HsPvRT3J7kuitNvNHogyZeSEagcqAqwwq2FPgrGfgApy",original:"Optimism"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"6DNSN2BJsaPFdFFc1zP37kkeNe4Usc1Sqkzr9C9vPWcU"}],["SEI",{symbol:"SEI",decimals:6,address:"8LFdfuhbfdH8oBzSKDgfPAxvLW24dCM9ttjBrBobURuk",original:"Sei"}]]],["Sui",[["WETH",{symbol:"WETH",decimals:8,address:"0x72831f626b1f0e11be201893d5cb641917730b1ccac778e4a77f8ab2052f0784::coin::COIN",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x9e4396c19ec1c5f2214c79d3af3f31e59869640305560f8f2499c36fa9c8e0f2::coin::COIN",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"0xe6fc78aa2b52b785bdcb67901cd85793a0b593248f315cb755974d23d0fcb837::coin::COIN",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"0xa516bcbf83b29a2944bb53ec9f934ea7d78c3626d3ae411d2fb9dcb977522e67::coin::COIN",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"0xddcf8680a8a4b8a527d8c85ec203274991590c2ea898d1c4635b70164d9c584b::coin::COIN",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"0xa600741c469fb57ed01497ddf101e798fa79a9c529bd176675c5c4d970811f80::coin::COIN",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x2aa8c885d04e676c4e87b7d0f94d4f3b243b1b5d93239d1cc41d5528ce1714c1::coin::COIN",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"0x14e756ff65e0ac810a5f69ca5276ef5b899a6df3c4717de1f85559d8b5ae6ea6::coin::COIN",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"0x81868174a6b11e1acc337b3414f9912455435d486609fb8d50b34312865085f2::coin::COIN",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"0xeffae382de96981f7ddd2d294429924827e8f325d612487a12d6a0b249171002::coin::COIN",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"0xbc03aaab4c11eb84df8bf39fdc714fa5d5b65b16eb7d155e22c74a68c8d4e17f::coin::COIN",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x2::sui::SUI"}],["APT",{symbol:"APT",decimals:8,address:"0x812d6feb8b84e55d47a0bfcae9fb6a4e7e09be5ec86ce0a729e0f67d5f59f477::coin::COIN",original:"Aptos"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xbbc39df58a11072ceeac1f685393ca912d1a1bfd6e772053ec5a544f36124da::coin::COIN",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"0x7b442b988864149dedfb9b6a75a88c7c33b9ddd3d15a87bf25104e1fcdd680ab::coin::COIN",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x4125940814a0ca87465a1a59092a7344633ad03b48ad7cda36d799d8558012c1::coin::COIN",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"0xacf6784120b221a077ab0b84acc0b76930779eb55f157ea2492be4a60b808f6::coin::COIN",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0x22c5cdaabaae4b6d3351f9bba9511b0aebb0662a6c209a360f0776e1e77a8438::coin::COIN",original:"Sei"}]]],["Aptos",[["WETH",{symbol:"WETH",decimals:8,address:"0x381775005cb32cdd3dbf935ae1b978ed40d309c72b009cd4a812aab6d991418a::coin::T",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"0x5f229253e2b2d03fb909f565feca49452582bd633a5816e5ce30aa593cb49d8a::coin::T",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"0xa5894f5ddb8647e6143102aa336ff07374f7b32e88c1c703aef5b7c9a370bf80::coin::T",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"0xbe8f4301c0b54e870902b9a23eeb95ce74ac190531782aa3262337ceb145401a::coin::T",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x02ef7697bdb33361ca39d228671203afc0dea3202e792d79d2072b761d87c834::coin::T",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"0x533c6ade00d15d1e014c41e29e34853e87df92c4e01a6a3f41318dbd098048d6::coin::T",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"0xecbb0f7e7d049499ca83ca1358344f56557886f6f7adc740d6734cce7bfc9a14::coin::T",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"0x338373b6694f71dbeac5ca4a30503bf5f083888d71678aed31255de416be37c0::coin::T",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"0xdd89c0e695df0692205912fb69fc290418bed0dbe6e4573d744a6d5e6bab6c13::coin::T",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"0x7b22d0e02f653d4fd1caddcfa4719a2b329da56eb81d8f27db703f02466c26a5::coin::T",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x1::aptos_coin::AptosCoin"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x3f0fdd44d96dae888d6c576218cf655458316a27c7bdc46537f61e531b10d3df::coin::T",original:"Arbitrum"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xcff1d9820851201436ad225dcc4374a2d15f52a74109283eb9881be799677e92::coin::T",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"0x5b5f14781164cf77185a7b6acd8e4f3cbb7e7cfb1cd5760d2b8af81075fc153d::coin::T",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xcfaabb3cb08ad612905dd6b2593d044ce857dfe5360148333b4635fb57d4d13f::coin::T",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"0x6e2d5d1a6d6d0e0c5db506ce64ead0530847a48b96516abbb08cdebe43fe3036::coin::T",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0xcae0ba0b7a435730ab65f1c8357d213e5cf9d4b377b96761745a8edaf9c9df6d::coin::T",original:"Sei"}]]],["Base",[["WETH",{symbol:"WETH",decimals:18,address:"0x44D627f900da8AdaC7561bD73aA745F132450798",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x5010B0988a035915C91a2a432085824FcB3D8d3f",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x31B2BAEE47Dc5Fc06baEC1BF73C124031b44fB97",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xFFB5d863d5132523d013338845A1Bb01EDd440f4",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x9DeF11E63C23c71dE3716b81dD2Fdad2B24b8b7F",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x410B0EE532EFfB18fa4d90cc095B1CD58aC43d5a",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x4C5208246676486064c501E1DAF2dD21596Bc5f5",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xB4808E58713112AbAbB8167C7187F8988df38bbD",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x72C56041ea5fe8bDE99b2A123fb5964cDE8C7FE9",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xCEc03b5710a464F4354AF35ebD0310238F656DFf",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x6Fb1dE2372e48fe66c84cf37cc2fb54EaEe62988",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xEe0fC8BECD593B41AACBd93936fDAbc2A444370A",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xd934A15FfA3945DD0Ba2cb7b4174024261A14874",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x8eD43aBdc4f836aa60933177B31AC358ea09f27E",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x5c443C05C72F0660502d88642c807020cc9b71A2",original:"Optimism"}],["ETHbase",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHbase"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xf175520c52418dfe19c8098071a252da48cd1c19"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x0219441240d89fAc3fD708d06d8fD3A072C02FB6",original:"Ethereum"}],["tBTCbase",{symbol:"tBTC",decimals:18,address:"0x783349cd20f26CE12e747b1a17bC38D252c9e119"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"0x9dA16Ae62De05bcb4606c4BFbB54046872501Bd0",original:"Solana"}],["SEI",{symbol:"SEI",decimals:6,address:"0x7B5edB2B3d2BeA8057a736B82AC6EF35c70bdadD",original:"Sei"}]]],["Sei",[["WETH",{symbol:"WETH",decimals:8,address:"sei13pzlt9etk44hj22lckncvampq2qu2gxv6r6774f3hma4vc07wqgsmftjx7",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"sei1nj32y0h0vzam33ay42h2majlfk7tdkqcuk84srn0v2a52kmujgfsyfe78f",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"sei1dc94as3vgxn3qkr5h0lnnrep69mtfku6jg4t94gfkunuyzr5g5eqyqvj9p",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"sei10a7see3f9t2j9l8fdweur3aqy4zgvz583a268hhhln3yzps6l5mqnl4ua6",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"sei1mgpq67pj7p2acy5x7r5lz7fulxmuxr3uh5f0szyvqgvru3glufzsxk8tnx",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"sei1uyce5s6cc8hveg0maq2lg7wm6v6fvwqmznypj559nzf9wr9tmw3qnd3ce7",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"sei1cr3j7rxq0dhq04ksftmj8n2w096w9g7ck8fngkvk2lrmy3qwz56q9thu9u",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"sei1yw4wv2zqg9xkn67zvq3azye0t8h0x9kgyg3d53jym24gxt49vdyswk5upj",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"sei140m6xagmw0zesejzhsvk46zprgscr7tu94h36rwsutcsxcs4fmds9sevym",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"sei1at3xuugacwgu3ppx7fxzmtr3q6m3ztjuean9r2mwcnqupw28yezs7unxgz",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"sei1rhpcprr2pffe6ydf078a0qeslhnlywxh2t3wjax4489z0m29cj9swj5khc",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"sei1em74y5sts4h8y5zuhfdn4w5g8zs285qld3kczpk6rh32jpvjyqqsvv0pdt",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"sei1pf5j3dgngm8yj2xkwmvmvt87g4vyc0szpjz92q8ly9erh23ytn4s983htv",original:"Arbitrum"}],["WETHbase",{symbol:"WETH",decimals:8,address:"sei1kdqylzcv86t7slg8m30mlfgna9xsrusghdgnavvurkv0rku7jvqqta7lka",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"sei1lf6ghmrkd7gn5jlj6xw64suycpjy7g4s5q92fc2gef4f8q3znanq95mmgv",original:"Base"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"sei1aj3uu9ejt8fk6rpjfhzluqnzqmv3enlndjmt8llkr7dn2dtz55xst4s3mn",original:"Solana"}],["SEI",{symbol:"SEI",decimals:6,address:"usei"}]]],["Arbitrum",[["WETH",{symbol:"WETH",decimals:18,address:"0x285d75E04D78F53f4Ed29A506a7e8479EEf3035f",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x42A212A2E7eA8feF4ED28F439F16A6ABDd34DA35",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x2B732F5ad6117818Ad3b7aC73C16033F6ECD78E5",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x50FD4064cC536a964E2E0Dc7B3fE2313Ab386bEA",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xB039aC4Fa8Ed99d30C2f7D791294A9d5FAd698eF",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x92b0C4D27a05921Ded4BB117755990F567aEe049",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xb39697B8BA5df91A169690DfEf88B911436619F2",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xa507f7566B8aDE000E886166B95964677ef3b3Ef",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x9592eE6eD1D9E611b7aa6F20CCbD7Ba571Be8bdd",original:"Celo"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xF8cbdc4E54281b801f182039c250Ad6d13818250",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xe64e2139fdf6Ee7e3795FE51955e21bA3d9eB9F7",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xa81C3BEf2d6f10213b860458DC119666C0ba13bf",original:"Aptos"}],["ETHarbitrum",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHarbitrum"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xee01c0cd76354c383b8c7b4e65ea88d00b06f36f"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xfd064A18f3BF249cf1f87FC203E90D8f650f2d63"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xFd903eA23Bf65f26FdAf2eeb589cf007b108882E",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0xbC4CB3CD7186fD457C072298C48d0eDf7213CAEa",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x97B5fE27a82b2B187D9a19C5782d9eB93B82DaC3",original:"Ethereum"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x85727F4725A4B2834e00Db1AA8e1b843a188162F"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"0x227115F659f7c2939D23FedE68583F5291c395A6",original:"Solana"}],["SEI",{symbol:"SEI",decimals:6,address:"0x90eC817A1f7C1Eb18dD2985C534A78dD88747F47",original:"Sei"}]]],["Optimism",[["WETH",{symbol:"WETH",decimals:18,address:"0x33Db338718aC89Cd8DB13B56af05be3a3029BBE5",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x0382F518AcE1a86224c78B7CDfa67B9774055A1b",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x427B5a0b0384D7FD3AF81805A166a2d9C1116D7d",original:"Polygon"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x81BA80f5820273AA965086e710042d737993f12c",original:"Fantom"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x99436d62259532E0407A7aE78A3b48D119B13903",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x06EcAF6638070Ccf3b3dEA421b3becAA57f3e559",original:"Solana"}],["ETHoptimism",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHoptimism"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xe05606174bac4A6364B31bd0eCA4bf4dD368f8C6"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x04b559971c90Dfb12D9795E95883e55f2fcf34Ed",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x5D89a5BcB86F15a2CCAb05e7E3bEE23fDF246a64",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0xE04e0F5f2C6ce45A40482C3AB92CA91D6741D717",original:"Polygon"}],["tBTCoptimism",{symbol:"tBTC",decimals:18,address:"0x1a53759DE2eADf73bd0b05c07a4F1F5B7912dA3d"}],["SEI",{symbol:"SEI",decimals:6,address:"0xE12be3D96fE101246bF2d290184B0eC6D35d02CA",original:"Sei"}]]],["Wormchain",[["WETH",{symbol:"WETH",decimals:8,address:"wormhole1vguuxez2h5ekltfj9gjd62fs5k4rl2zy5hfrncasykzw08rezpfs63pmq2",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"wormhole1rl8su3hadqqq2v86lscpuklsh2mh84cxqvjdew4jt9yd07dzekyqkmcy3p",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"wormhole1v2efcqkp2qtev06t0ksjnx6trxdd0f7fxg2zdrtzr8cr9wdpjkyqkv9ch6",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"wormhole1uuwad4khwek2h05gmkktzmh8l4t0ep54yydlsqg0l4y2uh3tqfyq3an9k6",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"wormhole1vhjnzk9ly03dugffvzfcwgry4dgc8x0sv0nqqtfxj3ajn7rn5ghq6whn2p",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"wormhole1335rlmhujm0gj5e9gh7at9jpqvqckz0mpe4v284ar4lw5mlkryzsnetfsj",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"wormhole1tqwwyth34550lg2437m05mjnjp8w7h5ka7m70jtzpxn4uh2ktsmq8dv649",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"wormhole1qum2tr7hh4y7ruzew68c64myjec0dq2s2njf6waja5t0w879lutqv2exs9",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"wormhole1808lz8dp2c39vhm9gnemt7zzj95nvrmjepxp7v3w4skzrlyzcmnsxkduxf",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"wormhole1e8z2wjelypwxw5sey62jvwjyup88w55q3h6m0x8jtwjf6sx5c7ys4mzydk",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"wormhole10sfpr8ykh9xn93u8xec4ed3990nmvh86e0vaegkauqhlkxspysyqwavrxx",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"wormhole1gryz69gzl6mz2m66a4twg922jtlc47nlx73sxv88lvq86du5zvyqz3mt23",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"wormhole1ced9v4plkf25q8c6k9gz0guq6l4xyjujpjlvxfg8lpaqywkmamashswq7p",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"wormhole1yf4p93xu68j5fseupm4laj4k6f60gy7ynx6r5vvyr9c0hl3uy8vqpqd6h0",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"wormhole1u8rft0gee23fa6a0t4t88ualrza5lj8ses4aur0l66c7efpvjezqchv34j",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"wormhole186k0cp83c3wyvapgh8fxf66ededemzrfujvjfsx0xw3vr0u9g8sq2y30vx",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"wormhole1s3pk90ccfl6ueehnj8s9pdgyjjlspmr3m5rv46arjh5v4g08dd0qrchjrk",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"wormhole12eu6c7f67l8gdl2lt0hz0dgdh24dhune6wjgy5t0es3tpfzhc3yspwnpfy",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"wormhole1u5z7097gm57zvun9wqsx6jxej2gpdjhg9l9xfe58rhpm29rtjmfqfnl4yv",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"wormhole10p89p4zh00dwdg8h52sysrqm0l2j47jj3kmg93pnz2a039ucw7esgl5vl9",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"wormhole1ja4txt6m0jjq0gmjtmv442f8wk0r5f5apaya0z55wwlrpg3p5xaq3qxw7h",original:"Base"}],["tBTCarbitrum",{symbol:"tBTC",decimals:8,address:"wormhole1rm8ztmk20lrd6ex8uqq3yu7a6eyfjwvg53pcuuj22ffe2y8r3yzqr8j4v9",original:"Arbitrum"}],["wstETH",{symbol:"wstETH",decimals:8,address:"wormhole1u2zdjcczjrenwmf57fmrpensk4the84azdm05m3unm387rm8asdsxqwfeu",original:"Ethereum"}]]],["Osmosis",[["WETH",{symbol:"WETH",decimals:8,address:"ibc/A4A8B6AE885DACD75B228031C0D18AD7EE1B914CED30C9F6F4230DDBD4A1CF2B",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"ibc/3BB8C4BD1C90599B2FA5B5839DD0813EF7B94B0BD0904C4C5A61498AE81E0EE9",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"ibc/1941ED1147121BA7DF35559597B6EB3251844DBBBE4557337D957CB95E0978C2",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"ibc/2864B3418775DDB90EE1410EFF822FDA94E9F0FF77FC8771644761C79EDFE7A3",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"ibc/43F15553F8598186394E81E18604B8B4532B2D7E855D9FFE68A2EF6802C18BE4",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"ibc/65A67BA10DE2378B32AC5A822321E370966D3D4E180DEFB4C3C5245B21088DDF",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"ibc/99EAD53D49EC7CC4E2E2EB26C22CF81C16727DF0C4BF7F7ACBF0D22D910DB5DE",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"ibc/EC9FA5074F34F0644A025BB0263FDAE8F364C5E08523F6464465EF1010FF5A3A",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"ibc/145C6B688F70B0C2F6D87546A5974A75CE75B3A2940275B750E65797B2996157",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"ibc/3A4EA3F8096856C0802F86B218DD74213B4C10224AA44BBD54AEAAA2ABF078BA",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"ibc/7DB06BB67428510AFC3967DC90F5632C679D55D8C487A951A0EEC3160AF492A6",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"ibc/B5D53105A7AA2BEC4DA4B3304228F3856219AE7CF84A9023043C481629E3E319",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"ibc/35A0467DE5744662078DE8B36CBBE0CF0EAA022565A3E6630CB375DDEBB96E05",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"ibc/30778BA41ADF2D8A70B90DB53C2E0251731A40276EF6737215BB1A6ED9E90078",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"ibc/7C495BD95757ED662A897C139F1C9F18275A86EE7203A0B073E2DB12B1E19D63",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"ibc/221A4AADF7972F3BB8F48A6CA984FF0AE65B5D973FF1A695B9642AD702F51789",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"ibc/06ED2700071B5A9C582F51A556537DA94E69EF547E7E6CCD8BFA3D95C818A525",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"ibc/80B3FECB24A4CE94537444E5BF937AC4C08A39BF90D59620D278FA185BD2B148",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"ibc/0A98A3947189D7C368170C76C3EF49486DDBE095F34B72A3C7F92AEBE1013A1D",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"ibc/A45069EA82C933945973E66E4222EEE4624498D4483508FE9BEBF9D519F2132F",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"ibc/2E4F8BC7F7AF33752CF7E290CAD4417EE67CD18FFC0D099E6519A440E588E0CE",original:"Base"}],["OSMO",{symbol:"OSMO",decimals:6,address:"uosmo"}],["wstETH",{symbol:"wstETH",decimals:8,address:"ibc/C66B7DB3ED665D2F5FE8ED15E88B5913A37D80601E161C5E53A743DE12C0FB85",original:"Ethereum"}]]],["Cosmoshub",[["WETH",{symbol:"WETH",decimals:8,address:"ibc/77FE9153FA76C3107CB9F6633AC33509A58529E9622327F216BA8107C79C2DE3",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"ibc/D0EC31D1176BB69EA1A7CF7172CA0380B7AF488AFC6D55B101B8363C2141CD4F",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"ibc/755FBC53FFB46FB505B5269F9BEDF47041F2A0EF2FF8D0520315403E5925C80A",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"ibc/5F21E975410DA22AF565B1772DC45AD0BD5F6DA004981EBE291763F3D2C72A96",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"ibc/37FB599287C6963C413E915FDE83EFA69A3CE8147675DD5A7F974B45F39C8A31",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"ibc/5B0D5974A56332468DD4B2D07C96A7386FCF8FE7303FF41234F90E410EF51937",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"ibc/BAEAC83736444C09656FBE666FB625974FCCDEE566EB700EBFD2642C5F6CF13A",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"ibc/F09E98FA8682FF39130F171E9D89A948B0C3A452F2A31F22B6CC54A3AAE1CD4A",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"ibc/919D8F138B7E71BB067C7301AB5C2D48415E8C3A2D9187861245CEC668F88E3C",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"ibc/009206915358A002C852A2A2CBEDB8446D2D02E519C815087A01F8BDB4DF77BA",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"ibc/1EEDF447A6B046B20C00B1497BED5947219AEEBE0D9A85235C85133A554DF7A4",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"ibc/D3EA463A51E31B2B30BED1978575CAC145DBAB354B8A0EA5D4CFB12D737AF790",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"ibc/26D8D6C63C8D37A5127591DDA905E04CC69CBD3A64F9DA3B1DA3FB0B6A7D9FA5",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"ibc/129EC6B8A41BE07F94DD267F552F4AE1D5EAEBB51634A1468556AF06C10C2692",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"ibc/0CCA5EB15BC2FE474E71DBC9698302CDE260B6F6548F91C30002F7CBF228197B",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"ibc/AB4046AF5B6F146C006DE4DECAD929D24F762A701E09EC8B29000EC63A6E649B",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"ibc/6D1B6A7A9EF692A279A6B5994C98C0D598D003D9203BE8309F14B6E57A58506E",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"ibc/A0298483510D803A045AA7F49CCBD0F9D01010FE0B1A346EBDFFF4BA820C3D21",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"ibc/CE3F2FE630DA6A1187F085CDC8D59BA8B20DA48F4866F2D71C5AB7A1D5859933",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"ibc/97035986A4BD0AF555713355A02EA31A4526616B6543E019E0D750007FABE06C",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"ibc/8560BA5F45C95AE716C05978E364F50C98347ACBEC745840C30F91611FA36698",original:"Base"}],["wstETH",{symbol:"wstETH",decimals:8,address:"ibc/5BB02667F9F0C8284FCF7716065C2779039817FBCB91E937F5149FE89FD8F202",original:"Ethereum"}],["ATOM",{symbol:"ATOM",decimals:6,address:"uatom"}]]],["Evmos",[["EVMOS",{symbol:"EVMOS",decimals:18,address:"atevmos"}]]],["Kujira",[["KUJI",{symbol:"KUJI",decimals:6,address:"ukuji"}]]],["Klaytn",[["KLAY",{symbol:"KLAY",decimals:18,address:"native",wrappedKey:"WKLAY"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x0339d5Eb6D195Ba90B13ed1BCeAa97EbD198b106"}]]],["Sepolia",[["ETHsepolia",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHsepolia"}],["WETHsepolia",{symbol:"WETH",decimals:18,address:"0xeef12A83EE5b7161D3873317c8E0E7B76e0B5D9c"}]]],["ArbitrumSepolia",[["ETHarbitrum_sepolia",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHarbitrum_sepolia"}],["WETHarbitrum_sepolia",{symbol:"WETH",decimals:18,address:"0x980B62Da83eFf3D4576C647993b0c1D7faf17c73"}]]],["BaseSepolia",[["ETHbase_sepolia",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHbase_sepolia"}],["WETHbase_sepolia",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}]]],["OptimismSepolia",[["ETHoptimism_sepolia",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHoptimism_sepolia"}],["WETHoptimism_sepolia",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}]]]],WO=pn(hhe,[0,[1,2]]);function Av(t,e){if(t!=="Devnet"){if(t==="Mainnet"){if(!HO.has(e))return;const n=HO.get(e);return Object.fromEntries(n.map(([r,i])=>[r,{...i,chain:e,key:r}]))}if(t==="Testnet"){if(!WO.has(e))return;const n=WO.get(e);return Object.fromEntries(n.map(([r,i])=>[r,{...i,chain:e,key:r}]))}throw new Error("Unsupported network: "+t)}}function phe(t,e){const n=Av(t,e);return n?Zh.native(n):void 0}function bhe(t,e,n){const r=Av(t,e);return r?Zh.byAddress(r,n):void 0}function mhe(t,e,n){const r=Av(t,e);return r?Zh.byKey(r,n):void 0}function yhe(t,e){const n={coreBridge:h5e.get(t,e),tokenBridge:p5e.get(t,e),nftBridge:m5e.get(t,e),relayer:y5e.get(t,e),tokenBridgeRelayer:b5e.get(t,e),tbtc:Rm.get(t,e)};return _S.has(t,e)&&(n.cctp=_S.get(t,e)),vO.has(t,e)&&(n.gateway=vO.get(t,e)),MO.has(t,e)&&(n.translator=MO.get(t,e)),xO.has(t,e)&&(n.portico=xO.get(t,e)),Rm.has(t,e)&&(n.tbtc=Rm.get(t,e)),n}function Fn(t){return typeof t=="string"&&t==="native"}function VN(t){return{chain:t,address:"native"}}function Zp(t){return typeof t=="object"&&t.address!==void 0&&t.chain!==void 0&&qh(t.chain)}function Xi(t,e){return t.chain!==e.chain?!1:Fn(t.address)&&Fn(e.address)?!0:Xr(t)===Xr(e)}function Xr(t){return Zp(t)&&Fn(t.address)?t.address:t.address.toNative(t.chain).toString()}function $S(t){if(Fn(t.address))throw new Error("Invalid address, cannot convert the string literal `native` to a Universal Address");return t.address.toUniversalAddress().toString()}function Pm(t,e,n){let r;if(Zp(n)){if(!Fn(n.address))return[!1,n];r=n.address}else r=n;if(Fn(r)){const a=phe(t,e);if(!a)throw new Error("Invalid destination token");const s=a.wrappedKey,c=mhe(t,e,s);if(!c)throw new Error("Invalid wrapped token key: "+s);return[!0,{chain:e,address:Gi(e,c.address)}]}return[!1,{chain:e,address:r}]}function fZ(t){return t.chain!==void 0&&t.txid!==void 0}function Qx(t){return gq.map(n=>{const r=Yi(n);let i="";try{i=mv.get(t,n)}catch{}const a=Av(t,n),s=a?Object.values(a).find(l=>Fn(l.address)&&l.wrappedKey):void 0,c=s?a[s.wrappedKey]:void 0;return{key:n,platform:r,network:t,chainId:Kn(n),finalityThreshold:Mq.get(n)??0,blockTime:xq.get(n)??0,contracts:yhe(t,n),nativeTokenDecimals:jN(r),nativeChainId:i,tokenMap:a,wrappedNative:c,explorer:Jde(t,n),rpc:wq(t,n)}}).reduce((n,r)=>({...n,[r.key]:r}),{})}class dZ{constructor(e,n,r){se(this,"network");se(this,"chain");se(this,"config");se(this,"platform");se(this,"rpc");se(this,"protocols",new Map);se(this,"supportsWormholeCore",()=>this.supportsProtocol("WormholeCore"));se(this,"getWormholeCore",()=>this.getProtocol("WormholeCore"));se(this,"supportsTokenBridge",()=>this.supportsProtocol("TokenBridge"));se(this,"getTokenBridge",()=>this.getProtocol("TokenBridge"));se(this,"supportsAutomaticTokenBridge",()=>this.supportsProtocol("AutomaticTokenBridge"));se(this,"getAutomaticTokenBridge",()=>this.getProtocol("AutomaticTokenBridge"));se(this,"supportsCircleBridge",()=>this.supportsProtocol("CircleBridge"));se(this,"getCircleBridge",()=>this.getProtocol("CircleBridge"));se(this,"supportsAutomaticCircleBridge",()=>this.supportsProtocol("AutomaticCircleBridge"));se(this,"getAutomaticCircleBridge",()=>this.getProtocol("AutomaticCircleBridge"));se(this,"supportsIbcBridge",()=>this.supportsProtocol("IbcBridge"));se(this,"getIbcBridge",()=>this.getProtocol("IbcBridge"));se(this,"supportsPorticoBridge",()=>this.supportsProtocol("PorticoBridge"));se(this,"getPorticoBridge",()=>this.getProtocol("PorticoBridge"));se(this,"supportsTBTCBridge",()=>this.supportsProtocol("TBTCBridge"));se(this,"getTBTCBridge",()=>this.getProtocol("TBTCBridge"));this.config=n.config[e],this.platform=n,this.chain=this.config.key,this.network=this.config.network,this.rpc=r}getRpc(){return this.rpc=this.rpc?this.rpc:this.platform.getRpc(this.chain),this.rpc}async getDecimals(e){if(Fn(e))return this.config.nativeTokenDecimals;if(this.config.tokenMap){const n=Xr({chain:this.chain,address:e}),r=bhe(this.network,this.chain,n);if(r)return r.decimals}return this.platform.utils().getDecimals(this.chain,await this.getRpc(),e)}async getBalance(e,n){return this.platform.utils().getBalance(this.chain,await this.getRpc(),e,n)}async getLatestBlock(){return this.platform.utils().getLatestBlock(await this.getRpc())}async getLatestFinalizedBlock(){return this.platform.utils().getLatestFinalizedBlock(await this.getRpc())}async parseTransaction(e){return this.platform.parseWormholeMessages(this.chain,await this.getRpc(),e)}async sendWait(e){return this.platform.utils().sendWait(this.chain,await this.getRpc(),e)}getToken(e){if(this.config.tokenMap&&e in this.config.tokenMap)return this.config.tokenMap[e]}async getNativeWrappedTokenId(){if(this.config.wrappedNative){const{address:n}=this.config.wrappedNative;return{chain:this.chain,address:Gi(this.chain,n)}}const e=await this.getTokenBridge();return{chain:this.chain,address:await e.getWrappedNative()}}async getTokenAccount(e,n){return{chain:this.chain,address:e}}supportsProtocol(e){return the(this.chain,e)}async getProtocol(e,n,r){if(!n&&this.protocols.has(e))return this.protocols.get(e);const i=n?{...this.config.contracts,...n}:this.config.contracts,a=r??await this.getRpc(),s=this.platform.getProtocolInitializer(e);let c;if(r){if(n)throw new Error("Custom contracts are currently not supported with custom rpc connection. Add the contracts to the base config.");c=await this.platform.getProtocol(e,a)}else if(ehe(s)){const l=await s.getVersion(a,i);c=new s(this.network,this.chain,a,i,l)}else c=new s(this.network,this.chain,a,i);return n||this.protocols.set(e,c),c}}function ghe(t){return vhe(t)||hZ(t)}function vhe(t){return typeof t=="object"&&"chain"in t&&typeof t.chain=="function"&&"address"in t&&typeof t.address=="function"&&"sign"in t&&typeof t.sign=="function"}function hZ(t){return typeof t=="object"&&"chain"in t&&typeof t.chain=="function"&&"address"in t&&typeof t.address=="function"&&"signAndSend"in t&&typeof t.signAndSend=="function"}class dWe{constructor(e,n,r){se(this,"_chain");se(this,"_address");se(this,"_signer");this._chain=e,this._address=n,this._signer=r}unwrap(){return this._signer}}function k6(t){return t.sequence!==void 0&&t.emitter!==void 0&&t.chain!==void 0}function cg(t){return t.hash!==void 0}const YO=t=>[af(1),{name:"token",binary:"bytes",layout:[{name:"address",...hn},{name:"amount",...Si}]},{name:"sourceDomain",...j4},{name:"targetDomain",...j4},{name:"nonce",...HN},{name:"caller",...hn},{name:"mintRecipient",...hn},X6({name:"payload",lengthSize:2},t)],Mhe=[af(1),{name:"targetRelayerFee",...Si},{name:"toNativeTokenAmount",...Si},{name:"targetRecipient",...hn}],xhe=[["DepositWithPayload",YO()],["TransferWithRelay",YO(Mhe)]];Q0("AutomaticCircleBridge",xhe);const pZ={binary:"uint",size:4,custom:0,omit:!0},whe=[{name:"messageBodyVersion",...pZ},{name:"burnToken",...hn},{name:"mintRecipient",...hn},{name:"amount",...Si},{name:"messageSender",...hn}],VS=[{name:"version",...pZ},{name:"sourceDomain",...j4},{name:"destinationDomain",...j4},{name:"nonce",...HN},{name:"sender",...hn},{name:"recipient",...hn},{name:"destinationCaller",...hn},{name:"payload",binary:"bytes",layout:whe}],Ahe=[["Message",VS]];Q0("CircleBridge",Ahe);var ah;(function(t){t.isCircleAttestation=e=>e.message!==void 0,t.deserialize=e=>{const n=co(VS,e),r=dr.encode(J6(e),!0);return[n,r]},t.serialize=e=>oo(VS,e)})(ah||(ah={}));var GO;(function(t){const e="AutomaticCircleBridge",n=["DepositWithPayload","TransferWithRelay"];t.getTransferDiscriminator=IN(()=>$N([e,n]))})(GO||(GO={}));function Che(t){return t.amount!==void 0&&t.from!==void 0&&t.to!==void 0}const $O={binary:"bytes",size:32,custom:{to:t=>tg(t.byteLength).map(e=>String.fromCharCode(t[e])).join(""),from:t=>new Uint8Array(t.split("").map(e=>e.charCodeAt(0)))}},bZ=[{name:"token",binary:"bytes",layout:[{name:"amount",...Si},{name:"address",...hn},{name:"chain",...Ui()}]},{name:"to",binary:"bytes",layout:[{name:"address",...hn},{name:"chain",...Ui()}]}],mZ=[af(1),...bZ,{name:"fee",...Si}],Cv=t=>[af(3),...bZ,{name:"from",...hn},X6({name:"payload"},t)],Ehe=[["AttestMeta",[af(2),{name:"token",binary:"bytes",layout:[{name:"address",...hn},{name:"chain",...Ui()}]},{name:"decimals",binary:"uint",size:1},{name:"symbol",...$O},{name:"name",...$O}]],["Transfer",mZ],["TransferWithPayload",Cv()]];Q0("TokenBridge",Ehe);const She=kde(["shouldWrapNative","shouldUnwrapNative"]),QS=[{name:"recipientChain",binary:"uint",endianness:"little",size:2},{name:"bridgeNonce",binary:"uint",endianness:"little",size:4},{name:"feeTierStart",binary:"uint",endianness:"little",size:3},{name:"feeTierFinish",binary:"uint",endianness:"little",size:3},{name:"padding",binary:"bytes",size:19},{name:"flags",...She}],qS=[{name:"flagSet",binary:"bytes",layout:QS},{name:"finalTokenAddress",...hn},{name:"recipientAddress",...hn},{name:"cannonAssetAmount",...Si},{name:"minAmountFinish",...Si},{name:"relayerFee",...Si}],The=[["Transfer",Cv(qS)]];Q0("PorticoBridge",The);var VO;(function(t){t.deserializePayload=e=>co(qS,e),t.serializePayload=e=>oo(qS,e),t.deserializeFlagSet=e=>co(QS,e),t.serializeFlagSet=e=>oo(QS,e)})(VO||(VO={}));const yZ={binary:"bytes",layout:[{name:"size",binary:"uint",size:4,custom:3*32,omit:!0},{name:"waste",binary:"uint",size:31,custom:0n,omit:!0},{name:"version",binary:"uint",size:1,custom:0,omit:!0},{name:"gasLimit",...Si},{name:"targetChainRefundPerGasUnused",...Si}]},QO={binary:"bytes",layout:[{name:"chain",...Ui()},{name:"address",...hn}]},Ihe=[{name:"chain",...Ui()},{name:"emitterAddress",...hn},{name:"sequence",...WN}],Dhe=[{name:"size",binary:"uint",size:4,custom:12,omit:!0},{name:"domain",...j4},{name:"nonce",...HN}],gZ={binary:"switch",idSize:1,idTag:"keyType",layouts:[[[1,"VAA"],Ihe],[[2,"CCTP"],Dhe]]},vZ=t=>[af(1),{name:"target",...QO},X6({name:"payload",lengthSize:4},t),{name:"requestedReceiverValue",...Si},{name:"extraReceiverValue",...Si},{name:"executionInfo",...yZ},{name:"refund",...QO},{name:"refundDeliveryProvider",...hn},{name:"sourceDeliveryProvider",...hn},{name:"senderAddress",...hn},{name:"messageKeys",binary:"array",lengthSize:1,layout:gZ}],Nhe=[["DeliveryInstruction",vZ()],["RedeliveryInstruction",[af(2),{name:"deliveryVaaKey",binary:"bytes",layout:gZ},{name:"targetChain",...Ui()},{name:"newRequestedReceiverValue",...Si},{name:"newEncodedExecutionInfo",...yZ},{name:"newSourceDeliveryProvider",...hn},{name:"newSenderAddress",...hn}]]];Q0("Relayer",Nhe);const Lhe=[af(1),{name:"targetRelayerFee",...Si},{name:"toNativeTokenAmount",...Si},{name:"targetRecipient",...hn}],Bhe=[["TransferWithRelay",Cv(Lhe)]];Q0("AutomaticTokenBridge",Bhe);const hWe=t=>new Error(`Token ${t} is not a wrapped asset`);var ZS;(function(t){const e="TokenBridge",n=["Transfer","TransferWithPayload"],r=["AttestMeta"];[...n,...r],t.getTransferDiscriminator=IN(()=>$N([e,n]))})(ZS||(ZS={}));function jhe(t){return t.token!==void 0&&t.amount!==void 0&&t.from!==void 0&&t.to!==void 0}const khe=[["Add",1],["Subtract",2],["Unknown",3]],KS={binary:"bytes",size:20,custom:{to:t=>dr.encode(t,!0),from:t=>dr.decode(t)}},_he=[["UpgradeContract",[!1,[{name:"newContract",...hn}]]],["RegisterChain",[!0,[{name:"foreignChain",...Ui()},{name:"foreignAddress",...hn}]]],["RecoverChainId",[!1,[{name:"evmChainId",binary:"uint",size:32},{name:"newChainId",...Ui({allowedChains:vq("Evm")})}]]],["GuardianSetUpgrade",[!0,[{name:"guardianSet",...aZ},{name:"guardians",binary:"array",lengthSize:1,layout:KS}]]],["SetMessageFee",[!1,[{name:"messageFee",binary:"uint",size:32}]]],["TransferFees",[!0,[{name:"amount",binary:"uint",size:32},{name:"recipient",...hn}]]],["UpdateDefaultProvider",[!1,[{name:"defaultProvider",...hn}]]],["RegisterEmitterAndDomain",[!0,[{name:"emitterChain",...Ui()},{name:"emitterAddress",...hn},{name:"domain",binary:"uint",size:4}]]],["UpdateFinality",[!1,[{name:"finality",binary:"uint",size:1}]]]],qx={binary:"bytes",size:32},qO=[{name:"contractAddr",...hn},{name:"codeId",binary:"uint",size:8}],Ohe=[["StoreCode",[!1,[{name:"wasmHash",...qx}]]],["InstantiateContract",[!1,[{name:"instantiationParamsHash",...qx}]]],["MigrateContract",[!1,[{name:"migrationParamsHash",...qx}]]],["AddWasmInstantiateAllowlist",[!1,qO]],["DeleteWasmInstantiateAllowlist",[!1,qO]]],Fhe=(()=>{const t=i=>({binary:"bytes",size:i,custom:che}),e=[{name:"height",binary:"uint",size:8}],n=uq(e),r=i=>[{name:"name",...t(i)},...e];return{binary:"bytes",custom:{to:i=>co(r(i.length-n),i),from:i=>oo(r(i.name.length),i)}}})(),zhe=[["ScheduleUpgrade",[!1,Fhe]],["CancelUpgrade",[!0,[]]],["SetIbcComposabilityMwContract",[!1,[{name:"contractAddress",...hn}]]]],Rhe=[["ModifyBalance",[!1,[{name:"sequence",...WN},{name:"modifiedChain",...Ui()},{name:"tokenChain",...Ui()},{name:"tokenAddress",...hn},{name:"kind",...jde(khe)},{name:"amount",...Si},{name:"reason",...sZ(32)}]]]],Phe=[["ActionUpdateChannelChain",[!1,[{name:"channelId",...sZ(64)},{name:"channelChain",...Ui({allowedChains:vq("Cosmwasm")})}]]]],Uhe=[["GeneralPurposeEvm",[!1,[{name:"governanceContract",...KS},{name:"targetContract",...KS},{name:"payload",binary:"bytes",lengthSize:2}]]],["GeneralPurposeSolana",[!1,[{name:"governanceContract",...hn},{name:"payload",binary:"bytes"}]]]],MZ=[..._he,...Ohe,...zhe,...Rhe,...Phe,...Uhe];sq(MZ,0);const ZO=Object.fromEntries(MZ),Hhe=[["WormholeCore","Core"],["TokenBridge","TokenBridge"],["NftBridge","NftBridge"],["Relayer","WormholeRelayer"],["CircleBridge","CircleIntegration"],["IbcBridge","IbcTranslator"],["IbcReceiver","IbcReceiver"],["GlobalAccountant","GlobalAccountant"],["GeneralPurposeGovernance","GeneralPurposeGovernance"],["WormchainGovernance","WasmdModule"],["GatewayGovernance","GatewayModule"]],Whe=pn(Hhe),Yhe=t=>({to:t,from:(()=>{const n=new Uint8Array(32),r=Whe(t);for(let i=1;i<=r.length;++i)n[32-i]=r.charCodeAt(r.length-i);return n})()}),Ghe=(t,e)=>({to:t,from:e}),$he=(t,e,n)=>[{name:"protocol",binary:"bytes",custom:Yhe(t)},{name:"action",binary:"uint",size:1,custom:Ghe(e,n)},{name:"chain",...Ui({allowNull:ZO[e][0]})},{name:"actionArgs",binary:"bytes",layout:ZO[e][1]}],pr=(t,e,n)=>[e,$he(t,e,n)],Vhe=[pr("WormholeCore","UpgradeContract",1),pr("WormholeCore","GuardianSetUpgrade",2),pr("WormholeCore","SetMessageFee",3),pr("WormholeCore","TransferFees",4),pr("WormholeCore","RecoverChainId",5)],Qhe=[pr("TokenBridge","RegisterChain",1),pr("TokenBridge","UpgradeContract",2),pr("TokenBridge","RecoverChainId",3)],qhe=[pr("NftBridge","RegisterChain",1),pr("NftBridge","UpgradeContract",2),pr("NftBridge","RecoverChainId",3)],Zhe=[pr("Relayer","RegisterChain",1),pr("Relayer","UpgradeContract",2),pr("Relayer","UpdateDefaultProvider",3)],Khe=[pr("CircleBridge","UpdateFinality",1),pr("CircleBridge","RegisterEmitterAndDomain",2),pr("CircleBridge","UpgradeContract",3)],Xhe=[pr("IbcBridge","ActionUpdateChannelChain",1)],Jhe=[pr("IbcReceiver","ActionUpdateChannelChain",1)],e8e=[pr("GlobalAccountant","ModifyBalance",1)],t8e=[pr("GeneralPurposeGovernance","GeneralPurposeEvm",1),pr("GeneralPurposeGovernance","GeneralPurposeSolana",2)],n8e=[pr("WormchainGovernance","StoreCode",1),pr("WormchainGovernance","InstantiateContract",2),pr("WormchainGovernance","MigrateContract",3),pr("WormchainGovernance","AddWasmInstantiateAllowlist",4),pr("WormchainGovernance","DeleteWasmInstantiateAllowlist",5)],r8e=[pr("GatewayGovernance","ScheduleUpgrade",1),pr("GatewayGovernance","CancelUpgrade",2),pr("GatewayGovernance","SetIbcComposabilityMwContract",3)];Q0("WormholeCore",Vhe);Q0("TokenBridge",Qhe);Q0("NftBridge",qhe);Q0("Relayer",Zhe);Q0("CircleBridge",Khe);Q0("IbcBridge",Xhe);Q0("IbcReceiver",Jhe);Q0("GlobalAccountant",e8e);Q0("GeneralPurposeGovernance",t8e);Q0("WormchainGovernance",n8e);Q0("GatewayGovernance",r8e);var Ds;(function(t){const e="TBTCBridge",n=["GatewayTransfer","Transfer"];[...n],t.getTransferDiscriminator=IN(()=>$N([e,n])),t.getNativeTbtcToken=r=>{const i=v5e.get("Mainnet",r);if(i)return{chain:r,address:Gi(r,i)}}})(Ds||(Ds={}));const i8e=[{name:"recipient",...hn}],a8e=[["GatewayTransfer",Cv(i8e)],["Transfer",mZ]];Q0("TBTCBridge",a8e);function xZ(t,e){return function(){return t.apply(e,arguments)}}const{toString:s8e}=Object.prototype,{getPrototypeOf:QN}=Object,Ev=(t=>e=>{const n=s8e.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Z1=t=>(t=t.toLowerCase(),e=>Ev(e)===t),Sv=t=>e=>typeof e===t,{isArray:t8}=Array,F4=Sv("undefined");function o8e(t){return t!==null&&!F4(t)&&t.constructor!==null&&!F4(t.constructor)&&Xs(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const wZ=Z1("ArrayBuffer");function c8e(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&wZ(t.buffer),e}const l8e=Sv("string"),Xs=Sv("function"),AZ=Sv("number"),Tv=t=>t!==null&&typeof t=="object",u8e=t=>t===!0||t===!1,Um=t=>{if(Ev(t)!=="object")return!1;const e=QN(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},f8e=Z1("Date"),d8e=Z1("File"),h8e=Z1("Blob"),p8e=Z1("FileList"),b8e=t=>Tv(t)&&Xs(t.pipe),m8e=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Xs(t.append)&&((e=Ev(t))==="formdata"||e==="object"&&Xs(t.toString)&&t.toString()==="[object FormData]"))},y8e=Z1("URLSearchParams"),g8e=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Kp(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,i;if(typeof t!="object"&&(t=[t]),t8(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{const a=n?Object.getOwnPropertyNames(t):Object.keys(t),s=a.length;let c;for(r=0;r<s;r++)c=a[r],e.call(null,t[c],c,t)}}function CZ(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,i;for(;r-- >0;)if(i=n[r],e===i.toLowerCase())return i;return null}const EZ=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:je.global,SZ=t=>!F4(t)&&t!==EZ;function XS(){const{caseless:t}=SZ(this)&&this||{},e={},n=(r,i)=>{const a=t&&CZ(e,i)||i;Um(e[a])&&Um(r)?e[a]=XS(e[a],r):Um(r)?e[a]=XS({},r):t8(r)?e[a]=r.slice():e[a]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&Kp(arguments[r],n);return e}const v8e=(t,e,n,{allOwnKeys:r}={})=>(Kp(e,(i,a)=>{n&&Xs(i)?t[a]=xZ(i,n):t[a]=i},{allOwnKeys:r}),t),M8e=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),x8e=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},w8e=(t,e,n,r)=>{let i,a,s;const c={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),a=i.length;a-- >0;)s=i[a],(!r||r(s,t,e))&&!c[s]&&(e[s]=t[s],c[s]=!0);t=n!==!1&&QN(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},A8e=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},C8e=t=>{if(!t)return null;if(t8(t))return t;let e=t.length;if(!AZ(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},E8e=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&QN(Uint8Array)),S8e=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let i;for(;(i=r.next())&&!i.done;){const a=i.value;e.call(t,a[0],a[1])}},T8e=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},I8e=Z1("HTMLFormElement"),D8e=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),KO=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),N8e=Z1("RegExp"),TZ=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};Kp(n,(i,a)=>{e(i,a,t)!==!1&&(r[a]=i)}),Object.defineProperties(t,r)},L8e=t=>{TZ(t,(e,n)=>{if(Xs(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(Xs(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},B8e=(t,e)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return t8(t)?r(t):r(String(t).split(e)),n},j8e=()=>{},k8e=(t,e)=>(t=+t,Number.isFinite(t)?t:e),Zx="abcdefghijklmnopqrstuvwxyz",XO="0123456789",IZ={DIGIT:XO,ALPHA:Zx,ALPHA_DIGIT:Zx+Zx.toUpperCase()+XO},_8e=(t=16,e=IZ.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function O8e(t){return!!(t&&Xs(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const F8e=t=>{const e=new Array(10),n=(r,i)=>{if(Tv(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[i]=r;const a=t8(r)?[]:{};return Kp(r,(s,c)=>{const l=n(s,i+1);!F4(l)&&(a[c]=l)}),e[i]=void 0,a}}return r};return n(t,0)},z8e=Z1("AsyncFunction"),R8e=t=>t&&(Tv(t)||Xs(t))&&Xs(t.then)&&Xs(t.catch),et={isArray:t8,isArrayBuffer:wZ,isBuffer:o8e,isFormData:m8e,isArrayBufferView:c8e,isString:l8e,isNumber:AZ,isBoolean:u8e,isObject:Tv,isPlainObject:Um,isUndefined:F4,isDate:f8e,isFile:d8e,isBlob:h8e,isRegExp:N8e,isFunction:Xs,isStream:b8e,isURLSearchParams:y8e,isTypedArray:E8e,isFileList:p8e,forEach:Kp,merge:XS,extend:v8e,trim:g8e,stripBOM:M8e,inherits:x8e,toFlatObject:w8e,kindOf:Ev,kindOfTest:Z1,endsWith:A8e,toArray:C8e,forEachEntry:S8e,matchAll:T8e,isHTMLForm:I8e,hasOwnProperty:KO,hasOwnProp:KO,reduceDescriptors:TZ,freezeMethods:L8e,toObjectSet:B8e,toCamelCase:D8e,noop:j8e,toFiniteNumber:k8e,findKey:CZ,global:EZ,isContextDefined:SZ,ALPHABET:IZ,generateString:_8e,isSpecCompliantForm:O8e,toJSONObject:F8e,isAsyncFn:z8e,isThenable:R8e};function rr(t,e,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}et.inherits(rr,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:et.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const DZ=rr.prototype,NZ={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{NZ[t]={value:t}});Object.defineProperties(rr,NZ);Object.defineProperty(DZ,"isAxiosError",{value:!0});rr.from=(t,e,n,r,i,a)=>{const s=Object.create(DZ);return et.toFlatObject(t,s,function(l){return l!==Error.prototype},c=>c!=="isAxiosError"),rr.call(s,t.message,e,n,r,i),s.cause=t,s.name=t.name,a&&Object.assign(s,a),s};const P8e=null;function JS(t){return et.isPlainObject(t)||et.isArray(t)}function LZ(t){return et.endsWith(t,"[]")?t.slice(0,-2):t}function JO(t,e,n){return t?t.concat(e).map(function(i,a){return i=LZ(i),!n&&a?"["+i+"]":i}).join(n?".":""):e}function U8e(t){return et.isArray(t)&&!t.some(JS)}const H8e=et.toFlatObject(et,{},null,function(e){return/^is[A-Z]/.test(e)});function Iv(t,e,n){if(!et.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=et.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(T,D){return!et.isUndefined(D[T])});const r=n.metaTokens,i=n.visitor||p,a=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&et.isSpecCompliantForm(e);if(!et.isFunction(i))throw new TypeError("visitor must be a function");function d(C){if(C===null)return"";if(et.isDate(C))return C.toISOString();if(!l&&et.isBlob(C))throw new rr("Blob is not supported. Use a Buffer instead.");return et.isArrayBuffer(C)||et.isTypedArray(C)?l&&typeof Blob=="function"?new Blob([C]):je.Buffer.from(C):C}function p(C,T,D){let S=C;if(C&&!D&&typeof C=="object"){if(et.endsWith(T,"{}"))T=r?T:T.slice(0,-2),C=JSON.stringify(C);else if(et.isArray(C)&&U8e(C)||(et.isFileList(C)||et.endsWith(T,"[]"))&&(S=et.toArray(C)))return T=LZ(T),S.forEach(function(N,B){!(et.isUndefined(N)||N===null)&&e.append(s===!0?JO([T],B,a):s===null?T:T+"[]",d(N))}),!1}return JS(C)?!0:(e.append(JO(D,T,a),d(C)),!1)}const m=[],g=Object.assign(H8e,{defaultVisitor:p,convertValue:d,isVisitable:JS});function M(C,T){if(!et.isUndefined(C)){if(m.indexOf(C)!==-1)throw Error("Circular reference detected in "+T.join("."));m.push(C),et.forEach(C,function(S,I){(!(et.isUndefined(S)||S===null)&&i.call(e,S,et.isString(I)?I.trim():I,T,g))===!0&&M(S,T?T.concat(I):[I])}),m.pop()}}if(!et.isObject(t))throw new TypeError("data must be an object");return M(t),e}function eF(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function qN(t,e){this._pairs=[],t&&Iv(t,this,e)}const BZ=qN.prototype;BZ.append=function(e,n){this._pairs.push([e,n])};BZ.toString=function(e){const n=e?function(r){return e.call(this,r,eF)}:eF;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function W8e(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function jZ(t,e,n){if(!e)return t;const r=n&&n.encode||W8e,i=n&&n.serialize;let a;if(i?a=i(e,n):a=et.isURLSearchParams(e)?e.toString():new qN(e,n).toString(r),a){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+a}return t}class tF{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){et.forEach(this.handlers,function(r){r!==null&&e(r)})}}const kZ={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Y8e=typeof URLSearchParams<"u"?URLSearchParams:qN,G8e=typeof FormData<"u"?FormData:null,$8e=typeof Blob<"u"?Blob:null,V8e=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Q8e=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",C1={classes:{URLSearchParams:Y8e,FormData:G8e,Blob:$8e},isStandardBrowserEnv:V8e,isStandardBrowserWebWorkerEnv:Q8e,protocols:["http","https","file","blob","url","data"]};function q8e(t,e){return Iv(t,new C1.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,a){return C1.isNode&&et.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},e))}function Z8e(t){return et.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function K8e(t){const e={},n=Object.keys(t);let r;const i=n.length;let a;for(r=0;r<i;r++)a=n[r],e[a]=t[a];return e}function _Z(t){function e(n,r,i,a){let s=n[a++];const c=Number.isFinite(+s),l=a>=n.length;return s=!s&&et.isArray(i)?i.length:s,l?(et.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!c):((!i[s]||!et.isObject(i[s]))&&(i[s]=[]),e(n,r,i[s],a)&&et.isArray(i[s])&&(i[s]=K8e(i[s])),!c)}if(et.isFormData(t)&&et.isFunction(t.entries)){const n={};return et.forEachEntry(t,(r,i)=>{e(Z8e(r),i,n,0)}),n}return null}const X8e={"Content-Type":void 0};function J8e(t,e,n){if(et.isString(t))try{return(e||JSON.parse)(t),et.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const n8={transitional:kZ,adapter:["xhr","http"],transformRequest:[function(e,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=et.isObject(e);if(a&&et.isHTMLForm(e)&&(e=new FormData(e)),et.isFormData(e))return i&&i?JSON.stringify(_Z(e)):e;if(et.isArrayBuffer(e)||et.isBuffer(e)||et.isStream(e)||et.isFile(e)||et.isBlob(e))return e;if(et.isArrayBufferView(e))return e.buffer;if(et.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return q8e(e,this.formSerializer).toString();if((c=et.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Iv(c?{"files[]":e}:e,l&&new l,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),J8e(e)):e}],transformResponse:[function(e){const n=this.transitional||n8.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(e&&et.isString(e)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(c){if(s)throw c.name==="SyntaxError"?rr.from(c,rr.ERR_BAD_RESPONSE,this,null,this.response):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:C1.classes.FormData,Blob:C1.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};et.forEach(["delete","get","head"],function(e){n8.headers[e]={}});et.forEach(["post","put","patch"],function(e){n8.headers[e]=et.merge(X8e)});const e3e=et.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),t3e=t=>{const e={};let n,r,i;return t&&t.split(`
|
|
62
|
+
*/var Yp=G;function Lle(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ble=typeof Object.is=="function"?Object.is:Lle,jle=Yp.useSyncExternalStore,kle=Yp.useRef,_le=Yp.useEffect,Ole=Yp.useMemo,Fle=Yp.useDebugValue;LQ.useSyncExternalStoreWithSelector=function(t,e,n,r,i){var a=kle(null);if(a.current===null){var s={hasValue:!1,value:null};a.current=s}else s=a.current;a=Ole(function(){function l(M){if(!d){if(d=!0,p=M,M=r(M),i!==void 0&&s.hasValue){var C=s.value;if(i(C,M))return m=C}return m=M}if(C=m,Ble(p,M))return C;var T=r(M);return i!==void 0&&i(C,T)?(p=M,C):(p=M,m=T)}var d=!1,p,m,g=n===void 0?null:n;return[function(){return l(e())},g===null?void 0:function(){return l(g())}]},[e,n,r,i]);var c=jle(t,a[0],a[1]);return _le(function(){s.hasValue=!0,s.value=c},[c]),Fle(c),c};NQ.exports=LQ;var zle=NQ.exports;function Rle(t){t()}function Ple(){let t=null,e=null;return{clear(){t=null,e=null},notify(){Rle(()=>{let n=t;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=t;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=e={callback:n,next:null,prev:e};return i.prev?i.prev.next=i:t=i,function(){!r||t===null||(r=!1,i.next?i.next.prev=i.prev:e=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}var j_={notify(){},get:()=>[]};function Ule(t,e){let n,r=j_,i=0,a=!1;function s(T){p();const D=r.subscribe(T);let S=!1;return()=>{S||(S=!0,D(),m())}}function c(){r.notify()}function l(){C.onStateChange&&C.onStateChange()}function d(){return a}function p(){i++,n||(n=t.subscribe(l),r=Ple())}function m(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=j_)}function g(){a||(a=!0,p())}function M(){a&&(a=!1,m())}const C={addNestedSub:s,notifyNestedSubs:c,handleChangeWrapper:l,isSubscribed:d,trySubscribe:g,tryUnsubscribe:M,getListeners:()=>r};return C}var Hle=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Wle=Hle(),Yle=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Gle=Yle(),$le=()=>Wle||Gle?G.useLayoutEffect:G.useEffect,Vle=$le(),Bx=Symbol.for("react-redux-context"),jx=typeof globalThis<"u"?globalThis:{};function Qle(){if(!G.createContext)return{};const t=jx[Bx]??(jx[Bx]=new Map);let e=t.get(G.createContext);return e||(e=G.createContext(null),t.set(G.createContext,e)),e}var Vu=Qle();function qle(t){const{children:e,context:n,serverState:r,store:i}=t,a=G.useMemo(()=>{const l=Ule(i);return{store:i,subscription:l,getServerState:r?()=>r:void 0}},[i,r]),s=G.useMemo(()=>i.getState(),[i]);Vle(()=>{const{subscription:l}=a;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),s!==i.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[a,s]);const c=n||Vu;return G.createElement(c.Provider,{value:a},e)}var Zle=qle;function xN(t=Vu){return function(){return G.useContext(t)}}var BQ=xN();function jQ(t=Vu){const e=t===Vu?BQ:xN(t),n=()=>{const{store:r}=e();return r};return Object.assign(n,{withTypes:()=>n}),n}var Kle=jQ();function Xle(t=Vu){const e=t===Vu?Kle:jQ(t),n=()=>e().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var V0=Xle(),Jle=(t,e)=>t===e;function eue(t=Vu){const e=t===Vu?BQ:xN(t),n=(r,i={})=>{const{equalityFn:a=Jle}=typeof i=="function"?{equalityFn:i}:i,s=e(),{store:c,subscription:l,getServerState:d}=s;G.useRef(!0);const p=G.useCallback({[r.name](g){return r(g)}}[r.name],[r]),m=zle.useSyncExternalStoreWithSelector(l.addNestedSub,c.getState,d||c.getState,p,a);return G.useDebugValue(m),m};return Object.assign(n,{withTypes:()=>n}),n}var ir=eue();function kQ(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=kQ(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function kt(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=kQ(t))&&(r&&(r+=" "),r+=e);return r}function cn(t,e,n=void 0){const r={};return Object.keys(t).forEach(i=>{r[i]=t[i].reduce((a,s)=>{if(s){const c=e(s);c!==""&&a.push(c),n&&n[s]&&a.push(n[s])}return a},[]).join(" ")}),r}function K2(t,e){const n=le({},e);return Object.keys(t).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=le({},t[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=t[r]||{},a=e[r];n[r]={},!a||!Object.keys(a)?n[r]=i:!i||!Object.keys(i)?n[r]=a:(n[r]=le({},a),Object.keys(i).forEach(s=>{n[r][s]=K2(i[s],a[s])}))}else n[r]===void 0&&(n[r]=t[r])}),n}const _Q=G.createContext(void 0);function tue({value:t,children:e}){return L.jsx(_Q.Provider,{value:t,children:e})}function nue(t){const{theme:e,name:n,props:r}=t;if(!e||!e.components||!e.components[n])return r;const i=e.components[n];return i.defaultProps?K2(i.defaultProps,r):!i.styleOverrides&&!i.variants?K2(i,r):r}function rue({props:t,name:e}){const n=G.useContext(_Q);return nue({props:t,name:e,theme:{components:n}})}function ln(t){return rue(t)}function iue(t){return Object.keys(t).length===0}function wN(t=null){const e=G.useContext(Uh);return!e||iue(e)?t:e}const aue=Wp();function J7(t=aue){return wN(t)}function sue({styles:t,themeId:e,defaultTheme:n={}}){const r=J7(n),i=typeof t=="function"?t(e&&r[e]||r):t;return L.jsx(oQ,{styles:i})}const oue=["className","component"];function cue(t={}){const{themeId:e,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=t,a=aN("div",{shouldForwardProp:c=>c!=="theme"&&c!=="sx"&&c!=="as"})(Hh);return G.forwardRef(function(l,d){const p=J7(n),m=X7(l),{className:g,component:M="div"}=m,C=Tt(m,oue);return L.jsx(a,le({as:M,ref:d,className:kt(g,i?i(r):r),theme:e&&p[e]||p},C))})}function sn(t,e,n="Mui"){const r={};return e.forEach(i=>{r[i]=on(t,i,n)}),r}const lue=["ownerState"],uue=["variants"],fue=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function due(t){return Object.keys(t).length===0}function hue(t){return typeof t=="string"&&t.charCodeAt(0)>96}function kx(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const pue=Wp(),bue=t=>t&&t.charAt(0).toLowerCase()+t.slice(1);function Jb({defaultTheme:t,theme:e,themeId:n}){return due(e)?t:e[n]||e}function mue(t){return t?(e,n)=>n[t]:null}function Bm(t,e){let{ownerState:n}=e,r=Tt(e,lue);const i=typeof t=="function"?t(le({ownerState:n},r)):t;if(Array.isArray(i))return i.flatMap(a=>Bm(a,le({ownerState:n},r)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:a=[]}=i;let c=Tt(i,uue);return a.forEach(l=>{let d=!0;typeof l.props=="function"?d=l.props(le({ownerState:n},r,n)):Object.keys(l.props).forEach(p=>{(n==null?void 0:n[p])!==l.props[p]&&r[p]!==l.props[p]&&(d=!1)}),d&&(Array.isArray(c)||(c=[c]),c.push(typeof l.style=="function"?l.style(le({ownerState:n},r,n)):l.style))}),c}return i}function yue(t={}){const{themeId:e,defaultTheme:n=pue,rootShouldForwardProp:r=kx,slotShouldForwardProp:i=kx}=t,a=s=>Hh(le({},s,{theme:Jb(le({},s,{defaultTheme:n,themeId:e}))}));return a.__mui_systemSx=!0,(s,c={})=>{cQ(s,k=>k.filter(O=>!(O!=null&&O.__mui_systemSx)));const{name:l,slot:d,skipVariantsResolver:p,skipSx:m,overridesResolver:g=mue(bue(d))}=c,M=Tt(c,fue),C=p!==void 0?p:d&&d!=="Root"&&d!=="root"||!1,T=m||!1;let D,S=kx;d==="Root"||d==="root"?S=r:d?S=i:hue(s)&&(S=void 0);const I=aN(s,le({shouldForwardProp:S,label:D},M)),N=k=>typeof k=="function"&&k.__emotion_real!==k||Fc(k)?O=>Bm(k,le({},O,{theme:Jb({theme:O.theme,defaultTheme:n,themeId:e})})):k,B=(k,...O)=>{let z=N(k);const _=O?O.map(N):[];l&&g&&_.push(w=>{const o=Jb(le({},w,{defaultTheme:n,themeId:e}));if(!o.components||!o.components[l]||!o.components[l].styleOverrides)return null;const u=o.components[l].styleOverrides,h={};return Object.entries(u).forEach(([b,y])=>{h[b]=Bm(y,le({},w,{theme:o}))}),g(w,h)}),l&&!C&&_.push(w=>{var o;const u=Jb(le({},w,{defaultTheme:n,themeId:e})),h=u==null||(o=u.components)==null||(o=o[l])==null?void 0:o.variants;return Bm({variants:h},le({},w,{theme:u}))}),T||_.push(a);const F=_.length-O.length;if(Array.isArray(k)&&F>0){const w=new Array(F).fill("");z=[...k,...w],z.raw=[...k.raw,...w]}const R=I(z,..._);return s.muiName&&(R.muiName=s.muiName),R};return I.withConfig&&(B.withConfig=I.withConfig),B}}const gue=yue();function OQ(t){const{theme:e,name:n,props:r}=t;return!e||!e.components||!e.components[n]||!e.components[n].defaultProps?r:K2(e.components[n].defaultProps,r)}function vue({props:t,name:e,defaultTheme:n,themeId:r}){let i=J7(n);return r&&(i=i[r]||i),OQ({theme:i,name:e,props:t})}const Wi=typeof window<"u"?G.useLayoutEffect:G.useEffect;function Mue(t,e,n,r,i){const[a,s]=G.useState(()=>i&&n?n(t).matches:r?r(t).matches:e);return Wi(()=>{let c=!0;if(!n)return;const l=n(t),d=()=>{c&&s(l.matches)};return d(),l.addListener(d),()=>{c=!1,l.removeListener(d)}},[t,n]),a}const FQ=G.useSyncExternalStore;function xue(t,e,n,r,i){const a=G.useCallback(()=>e,[e]),s=G.useMemo(()=>{if(i&&n)return()=>n(t).matches;if(r!==null){const{matches:p}=r(t);return()=>p}return a},[a,t,r,i,n]),[c,l]=G.useMemo(()=>{if(n===null)return[a,()=>()=>{}];const p=n(t);return[()=>p.matches,m=>(p.addListener(m),()=>{p.removeListener(m)})]},[a,n,t]);return FQ(l,c,s)}function ev(t,e={}){const n=wN(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:a=r?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:c=!1}=OQ({name:"MuiUseMediaQuery",props:e,theme:n});let l=typeof t=="function"?t(n):t;return l=l.replace(/^@media( ?)/m,""),(FQ!==void 0?xue:Mue)(l,i,a,s,c)}function wue(t,e=0,n=1){return xQ(t,e,n)}function Aue(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let n=t.match(e);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function zQ(t){if(t.type)return t;if(t.charAt(0)==="#")return zQ(Aue(t));const e=t.indexOf("("),n=t.substring(0,e);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(cl(9,t));let r=t.substring(e+1,t.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(cl(10,i))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:i}}function Cue(t){const{type:e,colorSpace:n}=t;let{values:r}=t;return e.indexOf("rgb")!==-1?r=r.map((i,a)=>a<3?parseInt(i,10):i):e.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),e.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${e}(${r})`}function s3(t,e){return t=zQ(t),e=wue(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,Cue(t)}function mS(...t){return t.reduce((e,n)=>n==null?e:function(...i){e.apply(this,i),n.apply(this,i)},()=>{})}function tv(t,e=166){let n;function r(...i){const a=()=>{t.apply(this,i)};clearTimeout(n),n=setTimeout(a,e)}return r.clear=()=>{clearTimeout(n)},r}function Eue(t,e){return()=>null}function O3(t,e){var n,r;return G.isValidElement(t)&&e.indexOf((n=t.type.muiName)!=null?n:(r=t.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function O0(t){return t&&t.ownerDocument||document}function Da(t){return O0(t).defaultView||window}function Sue(t,e){return()=>null}function qy(t,e){typeof t=="function"?t(e):t&&(t.current=e)}let k_=0;function Tue(t){const[e,n]=G.useState(t),r=t||e;return G.useEffect(()=>{e==null&&(k_+=1,n(`mui-${k_}`))},[e]),r}const __=yy.useId;function nv(t){if(__!==void 0){const e=__();return t??e}return Tue(t)}function Iue(t,e,n,r,i){return null}function S4({controlled:t,default:e,name:n,state:r="value"}){const{current:i}=G.useRef(t!==void 0),[a,s]=G.useState(e),c=i?t:a,l=G.useCallback(d=>{i||s(d)},[]);return[c,l]}function Ks(t){const e=G.useRef(t);return Wi(()=>{e.current=t}),G.useRef((...n)=>(0,e.current)(...n)).current}function Rr(...t){return G.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(n=>{qy(n,e)})},t)}const O_={};function Due(t,e){const n=G.useRef(O_);return n.current===O_&&(n.current=t(e)),n}const Nue=[];function Lue(t){G.useEffect(t,Nue)}class Gp{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Gp}start(e,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},e)}}function Gf(){const t=Due(Gp.create).current;return Lue(t.disposeEffect),t}let rv=!0,yS=!1;const Bue=new Gp,jue={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function kue(t){const{type:e,tagName:n}=t;return!!(n==="INPUT"&&jue[e]&&!t.readOnly||n==="TEXTAREA"&&!t.readOnly||t.isContentEditable)}function _ue(t){t.metaKey||t.altKey||t.ctrlKey||(rv=!0)}function _x(){rv=!1}function Oue(){this.visibilityState==="hidden"&&yS&&(rv=!0)}function Fue(t){t.addEventListener("keydown",_ue,!0),t.addEventListener("mousedown",_x,!0),t.addEventListener("pointerdown",_x,!0),t.addEventListener("touchstart",_x,!0),t.addEventListener("visibilitychange",Oue,!0)}function zue(t){const{target:e}=t;try{return e.matches(":focus-visible")}catch{}return rv||kue(e)}function iv(){const t=G.useCallback(i=>{i!=null&&Fue(i.ownerDocument)},[]),e=G.useRef(!1);function n(){return e.current?(yS=!0,Bue.start(100,()=>{yS=!1}),e.current=!1,!0):!1}function r(i){return zue(i)?(e.current=!0,!0):!1}return{isFocusVisibleRef:e,onFocus:r,onBlur:n,ref:t}}function RQ(t){const e=t.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}const PQ=t=>{const e=G.useRef({});return G.useEffect(()=>{e.current=t}),e.current};function Rue(t){return G.Children.toArray(t).filter(e=>G.isValidElement(e))}function X2(t){return typeof t=="string"}function o3(t,e,n){return t===void 0||X2(t)?e:le({},e,{ownerState:le({},e.ownerState,n)})}function UQ(t,e=[]){if(t===void 0)return{};const n={};return Object.keys(t).filter(r=>r.match(/^on[A-Z]/)&&typeof t[r]=="function"&&!e.includes(r)).forEach(r=>{n[r]=t[r]}),n}function F_(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(n=>!(n.match(/^on[A-Z]/)&&typeof t[n]=="function")).forEach(n=>{e[n]=t[n]}),e}function Pue(t){const{getSlotProps:e,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=t;if(!e){const M=kt(n==null?void 0:n.className,a,i==null?void 0:i.className,r==null?void 0:r.className),C=le({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),T=le({},n,i,r);return M.length>0&&(T.className=M),Object.keys(C).length>0&&(T.style=C),{props:T,internalRef:void 0}}const s=UQ(le({},i,r)),c=F_(r),l=F_(i),d=e(s),p=kt(d==null?void 0:d.className,n==null?void 0:n.className,a,i==null?void 0:i.className,r==null?void 0:r.className),m=le({},d==null?void 0:d.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),g=le({},d,n,l,c);return p.length>0&&(g.className=p),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:d.ref}}function Uue(t,e,n){return typeof t=="function"?t(e,n):t}const Hue=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function ll(t){var e;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:a=!1}=t,s=Tt(t,Hue),c=a?{}:Uue(r,i),{props:l,internalRef:d}=Pue(le({},s,{externalSlotProps:c})),p=Rr(d,c==null?void 0:c.ref,(e=t.additionalProps)==null?void 0:e.ref);return o3(n,le({},l,{ref:p}),i)}function Ed(t){if(parseInt(G.version,10)>=19){var e;return(t==null||(e=t.props)==null?void 0:e.ref)||null}return(t==null?void 0:t.ref)||null}const HQ=G.createContext(null);function WQ(){return G.useContext(HQ)}const Wue=typeof Symbol=="function"&&Symbol.for,Yue=Wue?Symbol.for("mui.nested"):"__THEME_NESTED__";function Gue(t,e){return typeof e=="function"?e(t):le({},t,e)}function $ue(t){const{children:e,theme:n}=t,r=WQ(),i=G.useMemo(()=>{const a=r===null?n:Gue(r,n);return a!=null&&(a[Yue]=r!==null),a},[n,r]);return L.jsx(HQ.Provider,{value:i,children:e})}const Vue=["value"],YQ=G.createContext();function Que(t){let{value:e}=t,n=Tt(t,Vue);return L.jsx(YQ.Provider,le({value:e??!0},n))}const av=()=>{const t=G.useContext(YQ);return t??!1},z_={};function R_(t,e,n,r=!1){return G.useMemo(()=>{const i=t&&e[t]||e;if(typeof n=="function"){const a=n(i),s=t?le({},e,{[t]:a}):a;return r?()=>s:s}return t?le({},e,{[t]:n}):le({},e,n)},[t,e,n,r])}function que(t){const{children:e,theme:n,themeId:r}=t,i=wN(z_),a=WQ()||z_,s=R_(r,i,n),c=R_(r,a,n,!0),l=s.direction==="rtl";return L.jsx($ue,{theme:c,children:L.jsx(Uh.Provider,{value:s,children:L.jsx(Que,{value:l,children:L.jsx(tue,{value:s==null?void 0:s.components,children:e})})})})}const Zue=["component","direction","spacing","divider","children","className","useFlexGap"],Kue=Wp(),Xue=gue("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,e)=>e.root});function Jue(t){return vue({props:t,name:"MuiStack",defaultTheme:Kue})}function efe(t,e){const n=G.Children.toArray(t).filter(Boolean);return n.reduce((r,i,a)=>(r.push(i),a<n.length-1&&r.push(G.cloneElement(e,{key:`separator-${a}`})),r),[])}const tfe=t=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[t],nfe=({ownerState:t,theme:e})=>{let n=le({display:"flex",flexDirection:"column"},Po({theme:e},Nx({values:t.direction,breakpoints:e.breakpoints.values}),r=>({flexDirection:r})));if(t.spacing){const r=fN(e),i=Object.keys(e.breakpoints.values).reduce((l,d)=>((typeof t.spacing=="object"&&t.spacing[d]!=null||typeof t.direction=="object"&&t.direction[d]!=null)&&(l[d]=!0),l),{}),a=Nx({values:t.direction,base:i}),s=Nx({values:t.spacing,base:i});typeof a=="object"&&Object.keys(a).forEach((l,d,p)=>{if(!a[l]){const g=d>0?a[p[d-1]]:"column";a[l]=g}}),n=oa(n,Po({theme:e},s,(l,d)=>t.useFlexGap?{gap:Q6(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${tfe(d?a[d]:t.direction)}`]:Q6(r,l)}}))}return n=R1e(e.breakpoints,n),n};function rfe(t={}){const{createStyledComponent:e=Xue,useThemeProps:n=Jue,componentName:r="MuiStack"}=t,i=()=>cn({root:["root"]},l=>on(r,l),{}),a=e(nfe);return G.forwardRef(function(l,d){const p=n(l),m=X7(p),{component:g="div",direction:M="column",spacing:C=0,divider:T,children:D,className:S,useFlexGap:I=!1}=m,N=Tt(m,Zue),B={direction:M,spacing:C,useFlexGap:I},k=i();return L.jsx(a,le({as:g,ownerState:B,ref:d,className:kt(k.root,S)},N,{children:T?efe(D,T):D}))})}function ife(t){return L.jsx(sue,le({},t,{defaultTheme:MN,themeId:Z2}))}const afe=(t,e)=>le({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},e&&!t.vars&&{colorScheme:t.palette.mode}),sfe=t=>le({color:(t.vars||t).palette.text.primary},t.typography.body1,{backgroundColor:(t.vars||t).palette.background.default,"@media print":{backgroundColor:(t.vars||t).palette.common.white}});function ofe(t){return on("MuiScopedCssBaseline",t)}sn("MuiScopedCssBaseline",["root"]);const cfe=["className","component","enableColorScheme"],lfe=t=>{const{classes:e}=t;return cn({root:["root"]},ofe,e)},ufe=bt("div",{name:"MuiScopedCssBaseline",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t,ownerState:e})=>{const n={};return e.enableColorScheme&&t.colorSchemes&&Object.entries(t.colorSchemes).forEach(([r,i])=>{var a;n[`&${t.getColorSchemeSelector(r).replace(/\s*&/,"")}`]={colorScheme:(a=i.palette)==null?void 0:a.mode}}),le({},afe(t,e.enableColorScheme),sfe(t),{"& *, & *::before, & *::after":{boxSizing:"inherit"},"& strong, & b":{fontWeight:t.typography.fontWeightBold}},n)}),ffe=G.forwardRef(function(e,n){const r=ln({props:e,name:"MuiScopedCssBaseline"}),{className:i,component:a="div"}=r,s=Tt(r,cfe),c=le({},r,{component:a}),l=lfe(c);return L.jsx(ufe,le({as:a,className:kt(l.root,i),ref:n,ownerState:c},s))});function dfe(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function hfe(t){return parseFloat(t)}function _r(){const t=J7(MN);return t[Z2]||t}const pfe=["theme"];function bfe(t){let{theme:e}=t,n=Tt(t,pfe);const r=e[Z2];return L.jsx(que,le({},n,{themeId:r?Z2:void 0,theme:r||e}))}const P_=t=>{let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,(e/100).toFixed(2)};function mi(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var mfe=typeof Symbol=="function"&&Symbol.observable||"@@observable",U_=mfe,Ox=()=>Math.random().toString(36).substring(7).split("").join("."),yfe={INIT:`@@redux/INIT${Ox()}`,REPLACE:`@@redux/REPLACE${Ox()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Ox()}`},Zy=yfe;function AN(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function GQ(t,e,n){if(typeof t!="function")throw new Error(mi(2));if(typeof e=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(mi(0));if(typeof e=="function"&&typeof n>"u"&&(n=e,e=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(mi(1));return n(GQ)(t,e)}let r=t,i=e,a=new Map,s=a,c=0,l=!1;function d(){s===a&&(s=new Map,a.forEach((D,S)=>{s.set(S,D)}))}function p(){if(l)throw new Error(mi(3));return i}function m(D){if(typeof D!="function")throw new Error(mi(4));if(l)throw new Error(mi(5));let S=!0;d();const I=c++;return s.set(I,D),function(){if(S){if(l)throw new Error(mi(6));S=!1,d(),s.delete(I),a=null}}}function g(D){if(!AN(D))throw new Error(mi(7));if(typeof D.type>"u")throw new Error(mi(8));if(typeof D.type!="string")throw new Error(mi(17));if(l)throw new Error(mi(9));try{l=!0,i=r(i,D)}finally{l=!1}return(a=s).forEach(I=>{I()}),D}function M(D){if(typeof D!="function")throw new Error(mi(10));r=D,g({type:Zy.REPLACE})}function C(){const D=m;return{subscribe(S){if(typeof S!="object"||S===null)throw new Error(mi(11));function I(){const B=S;B.next&&B.next(p())}return I(),{unsubscribe:D(I)}},[U_](){return this}}}return g({type:Zy.INIT}),{dispatch:g,subscribe:m,getState:p,replaceReducer:M,[U_]:C}}function gfe(t){Object.keys(t).forEach(e=>{const n=t[e];if(typeof n(void 0,{type:Zy.INIT})>"u")throw new Error(mi(12));if(typeof n(void 0,{type:Zy.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(mi(13))})}function vfe(t){const e=Object.keys(t),n={};for(let a=0;a<e.length;a++){const s=e[a];typeof t[s]=="function"&&(n[s]=t[s])}const r=Object.keys(n);let i;try{gfe(n)}catch(a){i=a}return function(s={},c){if(i)throw i;let l=!1;const d={};for(let p=0;p<r.length;p++){const m=r[p],g=n[m],M=s[m],C=g(M,c);if(typeof C>"u")throw c&&c.type,new Error(mi(14));d[m]=C,l=l||C!==M}return l=l||r.length!==Object.keys(s).length,l?d:s}}function Ky(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,n)=>(...r)=>e(n(...r)))}function Mfe(...t){return e=>(n,r)=>{const i=e(n,r);let a=()=>{throw new Error(mi(15))};const s={getState:i.getState,dispatch:(l,...d)=>a(l,...d)},c=t.map(l=>l(s));return a=Ky(...c)(i.dispatch),{...i,dispatch:a}}}function xfe(t){return AN(t)&&"type"in t&&typeof t.type=="string"}var $Q=Symbol.for("immer-nothing"),H_=Symbol.for("immer-draftable"),cs=Symbol.for("immer-state");function jo(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var J2=Object.getPrototypeOf;function q6(t){return!!t&&!!t[cs]}function ul(t){var e;return t?VQ(t)||Array.isArray(t)||!!t[H_]||!!((e=t.constructor)!=null&&e[H_])||ov(t)||cv(t):!1}var wfe=Object.prototype.constructor.toString();function VQ(t){if(!t||typeof t!="object")return!1;const e=J2(t);if(e===null)return!0;const n=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===wfe}function Xy(t,e){sv(t)===0?Reflect.ownKeys(t).forEach(n=>{e(n,t[n],t)}):t.forEach((n,r)=>e(r,n,t))}function sv(t){const e=t[cs];return e?e.type_:Array.isArray(t)?1:ov(t)?2:cv(t)?3:0}function gS(t,e){return sv(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function QQ(t,e,n){const r=sv(t);r===2?t.set(e,n):r===3?t.add(n):t[e]=n}function Afe(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}function ov(t){return t instanceof Map}function cv(t){return t instanceof Set}function wf(t){return t.copy_||t.base_}function vS(t,e){if(ov(t))return new Map(t);if(cv(t))return new Set(t);if(Array.isArray(t))return Array.prototype.slice.call(t);const n=VQ(t);if(e===!0||e==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(t);delete r[cs];let i=Reflect.ownKeys(r);for(let a=0;a<i.length;a++){const s=i[a],c=r[s];c.writable===!1&&(c.writable=!0,c.configurable=!0),(c.get||c.set)&&(r[s]={configurable:!0,writable:!0,enumerable:c.enumerable,value:t[s]})}return Object.create(J2(t),r)}else{const r=J2(t);if(r!==null&&n)return{...t};const i=Object.create(r);return Object.assign(i,t)}}function CN(t,e=!1){return lv(t)||q6(t)||!ul(t)||(sv(t)>1&&(t.set=t.add=t.clear=t.delete=Cfe),Object.freeze(t),e&&Object.entries(t).forEach(([n,r])=>CN(r,!0))),t}function Cfe(){jo(2)}function lv(t){return Object.isFrozen(t)}var Efe={};function Z6(t){const e=Efe[t];return e||jo(0,t),e}var T4;function qQ(){return T4}function Sfe(t,e){return{drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function W_(t,e){e&&(Z6("Patches"),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function MS(t){xS(t),t.drafts_.forEach(Tfe),t.drafts_=null}function xS(t){t===T4&&(T4=t.parent_)}function Y_(t){return T4=Sfe(T4,t)}function Tfe(t){const e=t[cs];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function G_(t,e){e.unfinalizedDrafts_=e.drafts_.length;const n=e.drafts_[0];return t!==void 0&&t!==n?(n[cs].modified_&&(MS(e),jo(4)),ul(t)&&(t=Jy(e,t),e.parent_||eg(e,t)),e.patches_&&Z6("Patches").generateReplacementPatches_(n[cs].base_,t,e.patches_,e.inversePatches_)):t=Jy(e,n,[]),MS(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==$Q?t:void 0}function Jy(t,e,n){if(lv(e))return e;const r=e[cs];if(!r)return Xy(e,(i,a)=>$_(t,r,e,i,a,n)),e;if(r.scope_!==t)return e;if(!r.modified_)return eg(t,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let a=i,s=!1;r.type_===3&&(a=new Set(i),i.clear(),s=!0),Xy(a,(c,l)=>$_(t,r,i,c,l,n,s)),eg(t,i,!1),n&&t.patches_&&Z6("Patches").generatePatches_(r,n,t.patches_,t.inversePatches_)}return r.copy_}function $_(t,e,n,r,i,a,s){if(q6(i)){const c=a&&e&&e.type_!==3&&!gS(e.assigned_,r)?a.concat(r):void 0,l=Jy(t,i,c);if(QQ(n,r,l),q6(l))t.canAutoFreeze_=!1;else return}else s&&n.add(i);if(ul(i)&&!lv(i)){if(!t.immer_.autoFreeze_&&t.unfinalizedDrafts_<1)return;Jy(t,i),(!e||!e.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&eg(t,i)}}function eg(t,e,n=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&CN(e,n)}function Ife(t,e){const n=Array.isArray(t),r={type_:n?1:0,scope_:e?e.scope_:qQ(),modified_:!1,finalized_:!1,assigned_:{},parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,a=EN;n&&(i=[r],a=I4);const{revoke:s,proxy:c}=Proxy.revocable(i,a);return r.draft_=c,r.revoke_=s,c}var EN={get(t,e){if(e===cs)return t;const n=wf(t);if(!gS(n,e))return Dfe(t,n,e);const r=n[e];return t.finalized_||!ul(r)?r:r===Fx(t.base_,e)?(zx(t),t.copy_[e]=AS(r,t)):r},has(t,e){return e in wf(t)},ownKeys(t){return Reflect.ownKeys(wf(t))},set(t,e,n){const r=ZQ(wf(t),e);if(r!=null&&r.set)return r.set.call(t.draft_,n),!0;if(!t.modified_){const i=Fx(wf(t),e),a=i==null?void 0:i[cs];if(a&&a.base_===n)return t.copy_[e]=n,t.assigned_[e]=!1,!0;if(Afe(n,i)&&(n!==void 0||gS(t.base_,e)))return!0;zx(t),wS(t)}return t.copy_[e]===n&&(n!==void 0||e in t.copy_)||Number.isNaN(n)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=n,t.assigned_[e]=!0),!0},deleteProperty(t,e){return Fx(t.base_,e)!==void 0||e in t.base_?(t.assigned_[e]=!1,zx(t),wS(t)):delete t.assigned_[e],t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){const n=wf(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r&&{writable:!0,configurable:t.type_!==1||e!=="length",enumerable:r.enumerable,value:n[e]}},defineProperty(){jo(11)},getPrototypeOf(t){return J2(t.base_)},setPrototypeOf(){jo(12)}},I4={};Xy(EN,(t,e)=>{I4[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}});I4.deleteProperty=function(t,e){return I4.set.call(this,t,e,void 0)};I4.set=function(t,e,n){return EN.set.call(this,t[0],e,n,t[0])};function Fx(t,e){const n=t[cs];return(n?wf(n):t)[e]}function Dfe(t,e,n){var i;const r=ZQ(e,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(t.draft_):void 0}function ZQ(t,e){if(!(e in t))return;let n=J2(t);for(;n;){const r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=J2(n)}}function wS(t){t.modified_||(t.modified_=!0,t.parent_&&wS(t.parent_))}function zx(t){t.copy_||(t.copy_=vS(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Nfe=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,n,r)=>{if(typeof e=="function"&&typeof n!="function"){const a=n;n=e;const s=this;return function(l=a,...d){return s.produce(l,p=>n.call(this,p,...d))}}typeof n!="function"&&jo(6),r!==void 0&&typeof r!="function"&&jo(7);let i;if(ul(e)){const a=Y_(this),s=AS(e,void 0);let c=!0;try{i=n(s),c=!1}finally{c?MS(a):xS(a)}return W_(a,r),G_(i,a)}else if(!e||typeof e!="object"){if(i=n(e),i===void 0&&(i=e),i===$Q&&(i=void 0),this.autoFreeze_&&CN(i,!0),r){const a=[],s=[];Z6("Patches").generateReplacementPatches_(e,i,a,s),r(a,s)}return i}else jo(1,e)},this.produceWithPatches=(e,n)=>{if(typeof e=="function")return(s,...c)=>this.produceWithPatches(s,l=>e(l,...c));let r,i;return[this.produce(e,n,(s,c)=>{r=s,i=c}),r,i]},typeof(t==null?void 0:t.autoFreeze)=="boolean"&&this.setAutoFreeze(t.autoFreeze),typeof(t==null?void 0:t.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(t.useStrictShallowCopy)}createDraft(t){ul(t)||jo(8),q6(t)&&(t=Lfe(t));const e=Y_(this),n=AS(t,void 0);return n[cs].isManual_=!0,xS(e),n}finishDraft(t,e){const n=t&&t[cs];(!n||!n.isManual_)&&jo(9);const{scope_:r}=n;return W_(r,e),G_(void 0,r)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}applyPatches(t,e){let n;for(n=e.length-1;n>=0;n--){const i=e[n];if(i.path.length===0&&i.op==="replace"){t=i.value;break}}n>-1&&(e=e.slice(n+1));const r=Z6("Patches").applyPatches_;return q6(t)?r(t,e):this.produce(t,i=>r(i,e))}};function AS(t,e){const n=ov(t)?Z6("MapSet").proxyMap_(t,e):cv(t)?Z6("MapSet").proxySet_(t,e):Ife(t,e);return(e?e.scope_:qQ()).drafts_.push(n),n}function Lfe(t){return q6(t)||jo(10,t),KQ(t)}function KQ(t){if(!ul(t)||lv(t))return t;const e=t[cs];let n;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,n=vS(t,e.scope_.immer_.useStrictShallowCopy_)}else n=vS(t,!0);return Xy(n,(r,i)=>{QQ(n,r,KQ(i))}),e&&(e.finalized_=!1),n}var ls=new Nfe,XQ=ls.produce;ls.produceWithPatches.bind(ls);ls.setAutoFreeze.bind(ls);ls.setUseStrictShallowCopy.bind(ls);ls.applyPatches.bind(ls);ls.createDraft.bind(ls);ls.finishDraft.bind(ls);function JQ(t){return({dispatch:n,getState:r})=>i=>a=>typeof a=="function"?a(n,r,t):i(a)}var Bfe=JQ(),jfe=JQ,kfe=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ky:Ky.apply(null,arguments)};function V_(t,e){function n(...r){if(e){let i=e(...r);if(!i)throw new Error(Xc(0));return{type:t,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:t,payload:r[0]}}return n.toString=()=>`${t}`,n.type=t,n.match=r=>xfe(r)&&r.type===t,n}var eq=class c3 extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,c3.prototype)}static get[Symbol.species](){return c3}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new c3(...e[0].concat(this)):new c3(...e.concat(this))}};function Q_(t){return ul(t)?XQ(t,()=>{}):t}function q_(t,e,n){return t.has(e)?t.get(e):t.set(e,n(e)).get(e)}function _fe(t){return typeof t=="boolean"}var Ofe=()=>function(e){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=e??{};let s=new eq;return n&&(_fe(n)?s.push(Bfe):s.push(jfe(n.extraArgument))),s},Ffe="RTK_autoBatch",Z_=t=>e=>{setTimeout(e,t)},zfe=(t={type:"raf"})=>e=>(...n)=>{const r=e(...n);let i=!0,a=!1,s=!1;const c=new Set,l=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Z_(10):t.type==="callback"?t.queueNotification:Z_(t.timeout),d=()=>{s=!1,a&&(a=!1,c.forEach(p=>p()))};return Object.assign({},r,{subscribe(p){const m=()=>i&&p(),g=r.subscribe(m);return c.add(p),()=>{g(),c.delete(p)}},dispatch(p){var m;try{return i=!((m=p==null?void 0:p.meta)!=null&&m[Ffe]),a=!i,a&&(s||(s=!0,l(d))),r.dispatch(p)}finally{i=!0}}})},Rfe=t=>function(n){const{autoBatch:r=!0}=n??{};let i=new eq(t);return r&&i.push(zfe(typeof r=="object"?r:void 0)),i};function Pfe(t){const e=Ofe(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:a=void 0,enhancers:s=void 0}=t||{};let c;if(typeof n=="function")c=n;else if(AN(n))c=vfe(n);else throw new Error(Xc(1));let l;typeof r=="function"?l=r(e):l=e();let d=Ky;i&&(d=kfe({trace:!1,...typeof i=="object"&&i}));const p=Mfe(...l),m=Rfe(p);let g=typeof s=="function"?s(m):m();const M=d(...g);return GQ(c,a,M)}function tq(t){const e={},n=[];let r;const i={addCase(a,s){const c=typeof a=="string"?a:a.type;if(!c)throw new Error(Xc(28));if(c in e)throw new Error(Xc(29));return e[c]=s,i},addMatcher(a,s){return n.push({matcher:a,reducer:s}),i},addDefaultCase(a){return r=a,i}};return t(i),[e,n,r]}function Ufe(t){return typeof t=="function"}function Hfe(t,e){let[n,r,i]=tq(e),a;if(Ufe(t))a=()=>Q_(t());else{const c=Q_(t);a=()=>c}function s(c=a(),l){let d=[n[l.type],...r.filter(({matcher:p})=>p(l)).map(({reducer:p})=>p)];return d.filter(p=>!!p).length===0&&(d=[i]),d.reduce((p,m)=>{if(m)if(q6(p)){const M=m(p,l);return M===void 0?p:M}else{if(ul(p))return XQ(p,g=>m(g,l));{const g=m(p,l);if(g===void 0){if(p===null)return p;throw Error("A case reducer on a non-draftable value must not return undefined")}return g}}return p},c)}return s.getInitialState=a,s}var Wfe=Symbol.for("rtk-slice-createasyncthunk");function Yfe(t,e){return`${t}/${e}`}function Gfe({creators:t}={}){var n;const e=(n=t==null?void 0:t.asyncThunk)==null?void 0:n[Wfe];return function(i){const{name:a,reducerPath:s=a}=i;if(!a)throw new Error(Xc(11));const c=(typeof i.reducers=="function"?i.reducers(Vfe()):i.reducers)||{},l=Object.keys(c),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(N,B){const k=typeof N=="string"?N:N.type;if(!k)throw new Error(Xc(12));if(k in d.sliceCaseReducersByType)throw new Error(Xc(13));return d.sliceCaseReducersByType[k]=B,p},addMatcher(N,B){return d.sliceMatchers.push({matcher:N,reducer:B}),p},exposeAction(N,B){return d.actionCreators[N]=B,p},exposeCaseReducer(N,B){return d.sliceCaseReducersByName[N]=B,p}};l.forEach(N=>{const B=c[N],k={reducerName:N,type:Yfe(a,N),createNotation:typeof i.reducers=="function"};qfe(B)?Kfe(k,B,p,e):Qfe(k,B,p)});function m(){const[N={},B=[],k=void 0]=typeof i.extraReducers=="function"?tq(i.extraReducers):[i.extraReducers],O={...N,...d.sliceCaseReducersByType};return Hfe(i.initialState,z=>{for(let _ in O)z.addCase(_,O[_]);for(let _ of d.sliceMatchers)z.addMatcher(_.matcher,_.reducer);for(let _ of B)z.addMatcher(_.matcher,_.reducer);k&&z.addDefaultCase(k)})}const g=N=>N,M=new Map;let C;function T(N,B){return C||(C=m()),C(N,B)}function D(){return C||(C=m()),C.getInitialState()}function S(N,B=!1){function k(z){let _=z[N];return typeof _>"u"&&B&&(_=D()),_}function O(z=g){const _=q_(M,B,()=>new WeakMap);return q_(_,z,()=>{const F={};for(const[R,w]of Object.entries(i.selectors??{}))F[R]=$fe(w,z,D,B);return F})}return{reducerPath:N,getSelectors:O,get selectors(){return O(k)},selectSlice:k}}const I={name:a,reducer:T,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:D,...S(s),injectInto(N,{reducerPath:B,...k}={}){const O=B??s;return N.inject({reducerPath:O,reducer:T},k),{...I,...S(O,!0)}}};return I}}function $fe(t,e,n,r){function i(a,...s){let c=e(a);return typeof c>"u"&&r&&(c=n()),t(c,...s)}return i.unwrapped=t,i}var Gh=Gfe();function Vfe(){function t(e,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...n}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...n){return e(...n)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:n}},asyncThunk:t}}function Qfe({type:t,reducerName:e,createNotation:n},r,i){let a,s;if("reducer"in r){if(n&&!Zfe(r))throw new Error(Xc(17));a=r.reducer,s=r.prepare}else a=r;i.addCase(t,a).exposeCaseReducer(e,a).exposeAction(e,s?V_(t,s):V_(t))}function qfe(t){return t._reducerDefinitionType==="asyncThunk"}function Zfe(t){return t._reducerDefinitionType==="reducerWithPrepare"}function Kfe({type:t,reducerName:e},n,r,i){if(!i)throw new Error(Xc(18));const{payloadCreator:a,fulfilled:s,pending:c,rejected:l,settled:d,options:p}=n,m=i(t,a,p);r.exposeAction(e,m),s&&r.addCase(m.fulfilled,s),c&&r.addCase(m.pending,c),l&&r.addCase(m.rejected,l),d&&r.addMatcher(m.settled,d),r.exposeCaseReducer(e,{fulfilled:s||e9,pending:c||e9,rejected:l||e9,settled:d||e9})}function e9(){}function Xc(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}const K_={txData:void 0,sendTx:"",redeemTx:"",transferComplete:!1,route:void 0,isResumeTx:!1,timestamp:0},nq=Gh({name:"redeem",initialState:K_,reducers:{setTxDetails:(t,{payload:e})=>{t.txData=e},setSendTx:(t,{payload:e})=>{t.sendTx=e},setRoute:(t,{payload:e})=>{t.route=e},clearRedeem:t=>{Object.keys(t).forEach(e=>{t[e]=K_[e]})},setIsResumeTx:(t,{payload:e})=>{t.isResumeTx=e},setTimestamp:(t,{payload:e})=>{t.timestamp=e}}}),{setTxDetails:SN,setSendTx:Xfe,clearRedeem:CS,setRoute:TN,setIsResumeTx:rq,setTimestamp:iq}=nq.actions,Jfe=nq.reducer;var Zt=(t=>(t.ETH="Ethereum",t.TERRA="Terra",t.XPLA="XPLA",t.SOLANA="Solana",t.ALGORAND="Algorand",t.NEAR="Near",t.APTOS="Aptos",t.SUI="Sui",t.OTHER="OTHER",t))(Zt||{});const e6e={Solana:{key:"Solana",id:1,context:Zt.SOLANA},Bsc:{key:"Bsc",id:4,context:Zt.ETH},Avalanche:{key:"Avalanche",id:6,context:Zt.ETH},Fantom:{key:"Fantom",id:10,context:Zt.ETH},Celo:{key:"Celo",id:14,context:Zt.ETH},Moonbeam:{key:"Moonbeam",id:16,context:Zt.ETH},Sui:{key:"Sui",id:21,context:Zt.SUI},Aptos:{key:"Aptos",id:22,context:Zt.APTOS},Klaytn:{key:"Klaytn",id:13,context:Zt.ETH},Scroll:{key:"Scroll",id:34,context:Zt.ETH},Blast:{key:"Blast",id:36,context:Zt.ETH},Xlayer:{key:"Xlayer",id:37,context:Zt.ETH},Sepolia:{key:"Sepolia",id:10002,context:Zt.ETH},ArbitrumSepolia:{key:"ArbitrumSepolia",id:10003,context:Zt.ETH},BaseSepolia:{key:"BaseSepolia",id:10004,context:Zt.ETH},OptimismSepolia:{key:"OptimismSepolia",id:10005,context:Zt.ETH},Mantle:{key:"Mantle",id:35,context:Zt.ETH},Unichain:{key:"Unichain",id:44,context:Zt.ETH},Worldchain:{key:"Worldchain",id:45,context:Zt.ETH},Mezo:{key:"Mezo",id:50,context:Zt.ETH}},t6e={env:"Testnet",rpcs:{Bsc:"https://data-seed-prebsc-1-s3.binance.org:8545",Avalanche:"https://api.avax-test.network/ext/bc/C/rpc",Fantom:"https://rpc.testnet.fantom.network",Celo:"https://alfajores-forno.celo-testnet.org",Solana:"https://api.devnet.solana.com",Moonbeam:"https://rpc.api.moonbase.moonbeam.network",Sui:"https://fullnode.testnet.sui.io",Aptos:"https://fullnode.testnet.aptoslabs.com/v1",Sei:"https://rpc.atlantic-2.seinetwork.io",Wormchain:"",Osmosis:"https://rpc.osmotest5.osmosis.zone",Cosmoshub:"https://rpc.sentry-02.theta-testnet.polypore.xyz",Evmos:"https://evmos-testnet-rpc.polkachu.com",Kujira:"https://kujira-testnet-rpc.polkachu.com",Injective:"https://injective-testnet-rpc.polkachu.com",Klaytn:"https://public-en-kairos.node.kaia.io",Sepolia:"https://ethereum-sepolia-rpc.publicnode.com",ArbitrumSepolia:"https://sepolia-rollup.arbitrum.io/rpc",BaseSepolia:"https://base-sepolia-rpc.publicnode.com",OptimismSepolia:"https://sepolia.optimism.io",Scroll:"https://scroll-sepolia-rpc.publicnode.com",Blast:"https://sepolia.blast.io",Xlayer:"https://testrpc.xlayer.tech",Mantle:"https://rpc.sepolia.mantle.xyz",Worldchain:"https://worldchain-sepolia.g.alchemy.com/public",Unichain:"https://sepolia.unichain.org",Mezo:"https://rpc.test.mezo.org"},chains:e6e},n6e={Ethereum:{key:"Ethereum",id:2,context:Zt.ETH},Solana:{key:"Solana",id:1,context:Zt.SOLANA},Polygon:{key:"Polygon",id:5,context:Zt.ETH},Bsc:{key:"Bsc",id:4,context:Zt.ETH},Avalanche:{key:"Avalanche",id:6,context:Zt.ETH},Fantom:{key:"Fantom",id:10,context:Zt.ETH},Celo:{key:"Celo",id:14,context:Zt.ETH},Moonbeam:{key:"Moonbeam",id:16,context:Zt.ETH},Sui:{key:"Sui",id:21,context:Zt.SUI},Aptos:{key:"Aptos",id:22,context:Zt.APTOS},Arbitrum:{key:"Arbitrum",id:23,context:Zt.ETH},Optimism:{key:"Optimism",id:24,context:Zt.ETH},Base:{key:"Base",id:30,context:Zt.ETH},Klaytn:{key:"Klaytn",id:13,context:Zt.ETH},Scroll:{key:"Scroll",id:34,context:Zt.ETH},Blast:{key:"Blast",id:36,context:Zt.ETH},Mantle:{key:"Mantle",id:35,context:Zt.ETH},Xlayer:{key:"Xlayer",id:37,context:Zt.ETH},Berachain:{key:"Berachain",id:39,context:Zt.ETH},Unichain:{key:"Unichain",id:44,context:Zt.ETH},Worldchain:{key:"Worldchain",id:45,context:Zt.ETH}},r6e={env:"Mainnet",rpcs:{Ethereum:"https://ethereum-rpc.publicnode.com",Solana:"https://solana-rpc.publicnode.com",Polygon:"https://polygon-bor-rpc.publicnode.com",Bsc:"https://bscrpc.com",Avalanche:"https://avalanche-c-chain-rpc.publicnode.com",Fantom:"https://rpcapi.fantom.network",Celo:"https://celo-rpc.publicnode.com",Moonbeam:"https://moonbeam-rpc.publicnode.com",Sui:"https://rpc.mainnet.sui.io",Aptos:"https://fullnode.mainnet.aptoslabs.com/v1",Arbitrum:"https://arbitrum-one-rpc.publicnode.com",Optimism:"https://optimism-rpc.publicnode.com",Base:"https://base.publicnode.com",Sei:"",Wormchain:"https://wormchain-rpc.quickapi.com",Osmosis:"https://osmosis-rpc.polkachu.com",Cosmoshub:"https://cosmos-rpc.polkachu.com",Evmos:"https://evmos-rpc.polkachu.com",Kujira:"https://kujira-rpc.polkachu.com",Injective:"https://injective-rpc.publicnode.com/",Klaytn:"https://public-en.node.kaia.io",Scroll:"https://scroll-rpc.publicnode.com",Blast:"https://blast-rpc.publicnode.com",Xlayer:"https://rpc.xlayer.tech",Mantle:"https://rpc.mantle.xyz",Worldchain:"https://worldchain-mainnet.g.alchemy.com/public",Unichain:"https://mainnet.unichain.org",Berachain:"https://rpc.berachain.com"},chains:n6e},i6e={Ethereum:{key:"Ethereum",id:2,context:Zt.ETH}},a6e={env:"Devnet",rpcs:{Ethereum:"http://localhost:8545",Wormchain:"http://localhost:26659",Osmosis:"http://localhost:33043",Terra2:"http://localhost:26658"},chains:i6e},n4=class n4 extends Error{constructor(){super(n4.MESSAGE)}};se(n4,"MESSAGE","Insufficient funds for gas"),se(n4,"MESSAGE_REGEX",/insufficient funds|Insufficient funds for gas/gm);let ES=n4;const uv={MAINNET:r6e,TESTNET:t6e,DEVNET:a6e},{chains:M0}=uv.MAINNET,s6e={Ethereum:{...M0.Ethereum,displayName:"Ethereum",sdkName:"Ethereum",explorerUrl:"https://etherscan.io/",explorerName:"Etherscan",chainId:1,icon:"Ethereum",symbol:"ETH",wrappedGasToken:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"},Bsc:{...M0.Bsc,displayName:"BSC",sdkName:"Bsc",explorerUrl:"https://bscscan.com/",explorerName:"BscScan",chainId:56,icon:"Bsc",symbol:"BSC",wrappedGasToken:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"},Polygon:{...M0.Polygon,displayName:"Polygon",sdkName:"Polygon",explorerUrl:"https://polygonscan.com/",explorerName:"PolygonScan",chainId:137,icon:"Polygon",symbol:"POL",wrappedGasToken:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270"},Avalanche:{...M0.Avalanche,displayName:"Avalanche",sdkName:"Avalanche",explorerUrl:"https://avascan.info/blockchain/c/",explorerName:"Avascan",chainId:43114,icon:"Avalanche",symbol:"AVAX",wrappedGasToken:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7"},Fantom:{...M0.Fantom,displayName:"Fantom",sdkName:"Fantom",explorerUrl:"https://explorer.fantom.network/",explorerName:"Fantom Explorer",chainId:250,icon:"Fantom",symbol:"FTM",wrappedGasToken:"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83"},Celo:{...M0.Celo,displayName:"Celo",sdkName:"Celo",explorerUrl:"https://explorer.celo.org/mainnet/",explorerName:"Celo Explorer",chainId:42220,icon:"Celo",symbol:"CELO"},Moonbeam:{...M0.Moonbeam,displayName:"Moonbeam",sdkName:"Moonbeam",explorerUrl:"https://moonscan.io/",explorerName:"Moonscan",chainId:1284,icon:"Moonbeam",symbol:"GLMR",wrappedGasToken:"0xAcc15dC74880C9944775448304B263D191c6077F"},Solana:{...M0.Solana,displayName:"Solana",sdkName:"Solana",explorerUrl:"https://explorer.solana.com/",explorerName:"Solana Explorer",chainId:0,icon:"Solana",symbol:"SOL",wrappedGasToken:"So11111111111111111111111111111111111111112"},Sui:{...M0.Sui,displayName:"Sui",sdkName:"Sui",explorerUrl:"https://suiscan.xyz/",explorerName:"Suiscan",chainId:0,icon:"Sui",symbol:"SUI"},Aptos:{...M0.Aptos,displayName:"Aptos",sdkName:"Aptos",explorerUrl:"https://explorer.aptoslabs.com/",explorerName:"Aptos Explorer",chainId:0,icon:"Aptos",symbol:"APT"},Base:{...M0.Base,displayName:"Base",sdkName:"Base",explorerUrl:"https://basescan.org/",explorerName:"BaseScan",chainId:8453,icon:"Base",symbol:"BASE",wrappedGasToken:"0x4200000000000000000000000000000000000006"},Arbitrum:{...M0.Arbitrum,displayName:"Arbitrum",sdkName:"Arbitrum",explorerUrl:"https://arbiscan.io/",explorerName:"Arbitrum Explorer",chainId:42161,icon:"Arbitrum",symbol:"ARB",wrappedGasToken:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1"},Optimism:{...M0.Optimism,displayName:"Optimism",sdkName:"Optimism",explorerUrl:"https://optimistic.etherscan.io/",explorerName:"Optimistic Etherscan",chainId:10,icon:"Optimism",symbol:"OP",wrappedGasToken:"0x4200000000000000000000000000000000000006"},Klaytn:{...M0.Klaytn,displayName:"Kaia",sdkName:"Klaytn",explorerUrl:"https://kaiascope.com/",explorerName:"Kaia Scope",chainId:8217,icon:"Klaytn",symbol:"KLAY",wrappedGasToken:"0xe4f05A66Ec68B54A58B17c22107b02e0232cC817"},Scroll:{...M0.Scroll,displayName:"Scroll",sdkName:"Scroll",explorerUrl:"https://scrollscan.com/",explorerName:"Scrollscan",chainId:534352,icon:"Scroll",symbol:"SCR",wrappedGasToken:"0x5300000000000000000000000000000000000004"},Blast:{...M0.Blast,displayName:"Blast",sdkName:"Blast",explorerUrl:"https://blastscan.io/",explorerName:"Blastscan",chainId:81457,icon:"Blast",symbol:"BLAST",wrappedGasToken:"0x9D020B1697035d9d54f115194c9e04a1e4Eb9aF7"},Xlayer:{...M0.Xlayer,displayName:"X Layer",sdkName:"Xlayer",explorerUrl:"https://www.okx.com/web3/explorer/xlayer/",explorerName:"OKX Explorer",chainId:196,icon:"Xlayer",symbol:"OKX",wrappedGasToken:"0xe538905cf8410324e03A5A23C1c177a474D59b2b"},Mantle:{...M0.Mantle,displayName:"Mantle",sdkName:"Mantle",explorerUrl:"https://explorer.mantle.xyz/",explorerName:"Mantle Explorer",chainId:5e3,icon:"Mantle",symbol:"MNT",wrappedGasToken:"0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8"},Worldchain:{...M0.Worldchain,displayName:"World Chain",sdkName:"Worldchain",explorerUrl:"https://worldscan.org/",explorerName:"World Scan",chainId:480,icon:"Worldchain",symbol:"WORLD"},Unichain:{...M0.Unichain,displayName:"Unichain",sdkName:"Unichain",explorerUrl:"https://uniscan.xyz/",explorerName:"Uniscan",chainId:130,icon:"Unichain",symbol:"UNI",wrappedGasToken:"0x4200000000000000000000000000000000000006"},Berachain:{...M0.Berachain,displayName:"Berachain",sdkName:"Berachain",explorerUrl:"https://berascan.com/",explorerName:"Berascan",chainId:80094,icon:"Berachain",symbol:"BERA",wrappedGasToken:"0x6969696969696969696969696969696969696969"}},bf=t=>{console.error(`Wormhole Connect: ${t}`)},wn=(t,e)=>e?{[t]:e}:{},o6e=(t,e)=>{if(!e)return t;for(const n in e)for(const r in e[n])t[n]||(t[n]={}),t[n][r]={...e[n][r],...t[n][r]};return t},c6e=(t,e,n)=>{if(t)return t.fromChain&&(e[t.fromChain]||(bf(`Invalid chain name "${t.fromChain}" specified for defaultInputs.fromChain`),delete t.fromChain)),t.toChain&&(e[t.toChain]||(bf(`Invalid chain name "${t.toChain}" specified for defaultInputs.toChain`),delete t.fromChain)),t.fromChain&&t.toChain&&t.fromChain===t.toChain&&bf("Source and destination chain cannot be the same, check the defaultInputs configuration"),t.fromChain&&t.toChain&&t.requiredChain&&(e[t.requiredChain]||bf(`Invalid network value "${t.requiredChain}" specified for defaultInputs.requiredChain`),t.toChain!==t.requiredChain&&t.fromChain!==t.requiredChain&&bf("Source chain or destination chain must equal the required network")),t.fromChain&&t.fromToken&&(n.findByAddressOrSymbol(t.fromChain,t.fromToken)||(bf(`Invalid token "${t.fromToken}" specified for defaultInputs.fromToken`),delete t.fromToken)),t.toChain&&t.toToken&&(n.findByAddressOrSymbol(t.toChain,t.toToken)||(bf(`Invalid token "${t.toToken}" specified for defaultInputs.toToken`),delete t.toToken)),t},l6e=t=>t[0].toUpperCase()+t.slice(1),u6e={},{REACT_APP_ETHEREUM_RPC:f6e,REACT_APP_SOLANA_RPC:d6e,REACT_APP_POLYGON_RPC:h6e,REACT_APP_BSC_RPC:p6e,REACT_APP_AVALANCHE_RPC:b6e,REACT_APP_FANTOM_RPC:m6e,REACT_APP_CELO_RPC:y6e,REACT_APP_MOONBEAM_RPC:g6e,REACT_APP_SUI_RPC:v6e,REACT_APP_APTOS_RPC:M6e,REACT_APP_BASE_RPC:x6e,REACT_APP_KLAYTN_RPC:w6e,REACT_APP_ARBITRUM_RPC:A6e,REACT_APP_OPTIMISM_RPC:C6e,REACT_APP_SCROLL_RPC:E6e,REACT_APP_BLAST_RPC:S6e,REACT_APP_XLAYER_RPC:T6e,REACT_APP_MANTLE_RPC:I6e,REACT_APP_WORLDCHAIN_RPC:D6e,REACT_APP_UNICHAIN_RPC:N6e,REACT_APP_BERACHAIN_RPC:L6e}=u6e,B6e={...wn("Ethereum",f6e),...wn("Solana",d6e),...wn("Polygon",h6e),...wn("Bsc",p6e),...wn("Avalanche",b6e),...wn("Fantom",m6e),...wn("Celo",y6e),...wn("Moonbeam",g6e),...wn("Sui",v6e),...wn("Aptos",M6e),...wn("Base",x6e),...wn("Arbitrum",A6e),...wn("Optimism",C6e),...wn("Klaytn",w6e),...wn("Scroll",E6e),...wn("Blast",S6e),...wn("Xlayer",T6e),...wn("Mantle",I6e),...wn("Worldchain",D6e),...wn("Unichain",N6e),...wn("Berachain",L6e)};var Ue=(t=>(t[t.AVAX=1]="AVAX",t[t.BNB=2]="BNB",t[t.BSC=3]="BSC",t[t.CELO=4]="CELO",t[t.ETH=5]="ETH",t[t.FANTOM=6]="FANTOM",t[t.POLYGON=7]="POLYGON",t[t.SOLANA=8]="SOLANA",t[t.USDC=9]="USDC",t[t.GLMR=10]="GLMR",t[t.DAI=11]="DAI",t[t.USDT=12]="USDT",t[t.BUSD=13]="BUSD",t[t.WBTC=14]="WBTC",t[t.SUI=15]="SUI",t[t.APT=16]="APT",t[t.SEI=17]="SEI",t[t.BASE=18]="BASE",t[t.OSMO=19]="OSMO",t[t.TBTC=20]="TBTC",t[t.WSTETH=21]="WSTETH",t[t.ARBITRUM=22]="ARBITRUM",t[t.OPTIMISM=23]="OPTIMISM",t[t.ATOM=24]="ATOM",t[t.EVMOS=25]="EVMOS",t[t.KUJI=26]="KUJI",t[t.PYTH=27]="PYTH",t[t.INJ=28]="INJ",t[t.KLAY=29]="KLAY",t[t.NTT=30]="NTT",t[t.SCROLL=31]="SCROLL",t[t.BLAST=32]="BLAST",t[t.XLAYER=33]="XLAYER",t[t.MANTLE=34]="MANTLE",t[t.WORLDCHAIN=35]="WORLDCHAIN",t[t.BERA=36]="BERA",t[t.BTC=37]="BTC",t))(Ue||{});const j6e=[{symbol:"ETH",decimals:18,icon:Ue.ETH,tokenId:{chain:"Ethereum",address:"native"}},{symbol:"WETH",decimals:18,icon:Ue.ETH,tokenId:{chain:"Ethereum",address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}},{symbol:"USDC",decimals:6,icon:Ue.USDC,tokenId:{chain:"Ethereum",address:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"}},{symbol:"WBTC",decimals:8,icon:Ue.WBTC,tokenId:{chain:"Ethereum",address:"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599"}},{symbol:"USDT",decimals:6,icon:Ue.USDT,tokenId:{chain:"Ethereum",address:"0xdAC17F958D2ee523a2206206994597C13D831ec7"}},{symbol:"DAI",decimals:18,icon:Ue.DAI,tokenId:{chain:"Ethereum",address:"0x6B175474E89094C44Da98b954EedeAC495271d0F"}},{symbol:"BUSD",decimals:18,icon:Ue.BUSD,tokenId:{chain:"Ethereum",address:"0x4Fabb145d64652a948d72533023f6E7A623C7C53"}},{symbol:"POL",decimals:18,icon:Ue.POLYGON,tokenId:{chain:"Polygon",address:"native"}},{symbol:"WPOL",decimals:18,icon:Ue.POLYGON,tokenId:{chain:"Polygon",address:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270"}},{symbol:"WETH",decimals:18,icon:Ue.ETH,tokenId:{chain:"Polygon",address:"0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619"}},{symbol:"USDC",decimals:6,icon:Ue.USDC,tokenId:{chain:"Polygon",address:"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"}},{symbol:"USDT",decimals:6,icon:Ue.USDT,tokenId:{chain:"Polygon",address:"0xc2132D05D31c914a87C6611C10748AEb04B58e8F"}},{symbol:"BNB",decimals:18,icon:Ue.BNB,tokenId:{chain:"Bsc",address:"native"}},{symbol:"WBNB",decimals:18,icon:Ue.BNB,tokenId:{chain:"Bsc",address:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"}},{symbol:"USDC",decimals:18,icon:Ue.USDC,tokenId:{chain:"Bsc",address:"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d"}},{symbol:"AVAX",decimals:18,icon:Ue.AVAX,tokenId:{chain:"Avalanche",address:"native"}},{symbol:"WAVAX",decimals:18,icon:Ue.AVAX,tokenId:{chain:"Avalanche",address:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7"}},{symbol:"USDC",decimals:6,icon:Ue.USDC,tokenId:{chain:"Avalanche",address:"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"}},{symbol:"USDT",decimals:6,icon:Ue.USDT,tokenId:{chain:"Avalanche",address:"0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7"}},{symbol:"WETH",decimals:18,icon:Ue.ETH,tokenId:{chain:"Avalanche",address:"0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB"}},{symbol:"FTM",decimals:18,icon:Ue.FANTOM,tokenId:{chain:"Fantom",address:"native"}},{symbol:"WFTM",name:"Wrapped Fantom",decimals:18,icon:Ue.FANTOM,tokenId:{chain:"Fantom",address:"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83"}},{symbol:"USDC.e",decimals:6,icon:Ue.USDC,tokenId:{chain:"Fantom",address:"0x2F733095B80A04b38b0D10cC884524a3d09b836a"}},{symbol:"CELO",decimals:18,icon:Ue.CELO,tokenId:{chain:"Celo",address:"0x471EcE3750Da237f93B8E339c536989b8978a438"}},{symbol:"USDT",decimals:6,icon:Ue.USDT,tokenId:{chain:"Celo",address:"0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e"}},{symbol:"GLMR",decimals:18,icon:Ue.GLMR,tokenId:{chain:"Moonbeam",address:"native"}},{symbol:"WGLMR",decimals:18,icon:Ue.GLMR,tokenId:{chain:"Moonbeam",address:"0xAcc15dC74880C9944775448304B263D191c6077F"}},{symbol:"SOL",decimals:9,icon:Ue.SOLANA,tokenId:{chain:"Solana",address:"native"}},{symbol:"WSOL",decimals:9,tokenId:{chain:"Solana",address:"So11111111111111111111111111111111111111112"},icon:Ue.SOLANA},{symbol:"USDC",decimals:6,tokenId:{chain:"Solana",address:"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"},icon:Ue.USDC},{symbol:"USDT",decimals:6,icon:Ue.USDT,tokenId:{chain:"Solana",address:"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"}},{symbol:"SUI",decimals:9,tokenId:{chain:"Sui",address:"native"},icon:Ue.SUI},{symbol:"USDC",decimals:6,tokenId:{chain:"Sui",address:"0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC"},icon:Ue.USDC},{symbol:"APT",decimals:8,tokenId:{chain:"Aptos",address:"native"},icon:Ue.APT},{symbol:"USDC",decimals:6,tokenId:{chain:"Aptos",address:"0xbae207659db88bea0cbead6da0ed00aac12edcdda169e591cd41c94180b46f3b"},icon:Ue.USDC},{symbol:"ETH",decimals:18,icon:Ue.ETH,tokenId:{chain:"Arbitrum",address:"native"}},{symbol:"WETH",decimals:18,icon:Ue.ETH,tokenId:{chain:"Arbitrum",address:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1"}},{symbol:"USDC",decimals:6,icon:Ue.USDC,tokenId:{chain:"Arbitrum",address:"0xaf88d065e77c8cC2239327C5EDb3A432268e5831"}},{symbol:"USDT",decimals:6,icon:Ue.USDT,tokenId:{chain:"Arbitrum",address:"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9"}},{symbol:"ETH",decimals:18,icon:Ue.ETH,tokenId:{chain:"Optimism",address:"native"}},{symbol:"WETH",decimals:18,icon:Ue.ETH,tokenId:{chain:"Optimism",address:"0x4200000000000000000000000000000000000006"}},{symbol:"USDC",decimals:6,icon:Ue.USDC,tokenId:{chain:"Optimism",address:"0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85"}},{symbol:"USDT",decimals:6,icon:Ue.USDT,tokenId:{chain:"Optimism",address:"0x94b008aA00579c1307B0EF2c499aD98a8ce58e58"}},{symbol:"WETH",decimals:18,icon:Ue.ETH,tokenId:{chain:"Bsc",address:"0x2170Ed0880ac9A755fd29B2688956BD959F933F8"}},{symbol:"USDT",decimals:18,icon:Ue.USDT,tokenId:{chain:"Bsc",address:"0x55d398326f99059fF775485246999027B3197955"}},{symbol:"ETH",decimals:18,icon:Ue.ETH,tokenId:{chain:"Base",address:"native"}},{symbol:"WETH",decimals:18,icon:Ue.ETH,tokenId:{chain:"Base",address:"0x4200000000000000000000000000000000000006"}},{symbol:"USDC",decimals:6,icon:Ue.USDC,tokenId:{chain:"Base",address:"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}},{symbol:"USDT",decimals:6,icon:Ue.USDT,tokenId:{chain:"Base",address:"0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2"}},{symbol:"wstETH",decimals:18,tokenId:{chain:"Base",address:"0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452"},icon:Ue.WSTETH},{symbol:"wstETH",decimals:18,tokenId:{chain:"Ethereum",address:"0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0"},icon:Ue.WSTETH},{symbol:"wstETH",decimals:18,tokenId:{chain:"Arbitrum",address:"0x5979D7b546E38E414F7E9822514be443A4800529"},icon:Ue.WSTETH},{symbol:"wstETH",decimals:18,tokenId:{chain:"Optimism",address:"0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb"},icon:Ue.WSTETH},{symbol:"wstETH",decimals:18,tokenId:{chain:"Polygon",address:"0x03b54A6e9a984069379fae1a4fC4dBAE93B3bCCD"},icon:Ue.WSTETH},{symbol:"KLAY",decimals:18,icon:Ue.KLAY,tokenId:{chain:"Klaytn",address:"native"}},{symbol:"WKLAY",decimals:18,name:"wKLAY",icon:Ue.KLAY,tokenId:{chain:"Klaytn",address:"0xe4f05A66Ec68B54A58B17c22107b02e0232cC817"}},{symbol:"PYTH",decimals:6,tokenId:{chain:"Solana",address:"HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3"},icon:Ue.PYTH},{symbol:"ETH",decimals:18,icon:Ue.SCROLL,tokenId:{chain:"Scroll",address:"native"}},{symbol:"WETH",decimals:18,icon:Ue.SCROLL,tokenId:{chain:"Scroll",address:"0x5300000000000000000000000000000000000004"}},{symbol:"ETH",decimals:18,icon:Ue.BLAST,tokenId:{chain:"Blast",address:"native"}},{symbol:"WETH",decimals:18,icon:Ue.BLAST,tokenId:{chain:"Blast",address:"0x9D020B1697035d9d54f115194c9e04a1e4Eb9aF7"}},{symbol:"OKB",decimals:18,icon:Ue.XLAYER,tokenId:{chain:"Xlayer",address:"native"}},{symbol:"WOKB",decimals:18,icon:Ue.XLAYER,tokenId:{chain:"Xlayer",address:"0xe538905cf8410324e03A5A23C1c177a474D59b2b"}},{symbol:"MNT",decimals:18,icon:Ue.MANTLE,tokenId:{chain:"Mantle",address:"native"}},{symbol:"WMNT",decimals:18,icon:Ue.MANTLE,tokenId:{chain:"Mantle",address:"0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8"}},{symbol:"tBTC",decimals:18,tokenId:{chain:"Ethereum",address:"0x18084fbA666a33d37592fA2633fD49a74DD93a88"},icon:Ue.TBTC},{symbol:"tBTC",decimals:18,tokenId:{chain:"Polygon",address:"0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"},icon:Ue.TBTC},{symbol:"tBTC",decimals:18,tokenId:{chain:"Optimism",address:"0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"},icon:Ue.TBTC},{symbol:"tBTC",decimals:18,tokenId:{chain:"Arbitrum",address:"0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"},icon:Ue.TBTC},{symbol:"tBTC",decimals:18,tokenId:{chain:"Base",address:"0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"},icon:Ue.TBTC},{symbol:"tBTC",decimals:8,tokenId:{chain:"Solana",address:"6DNSN2BJsaPFdFFc1zP37kkeNe4Usc1Sqkzr9C9vPWcU"},icon:Ue.TBTC},{symbol:"ETH",tokenId:{chain:"Worldchain",address:"native"},decimals:18,icon:Ue.WORLDCHAIN},{symbol:"WETH",tokenId:{chain:"Worldchain",address:"0x4200000000000000000000000000000000000006"},decimals:18,icon:Ue.WORLDCHAIN},{symbol:"ETH",tokenId:{chain:"Unichain",address:"native"},decimals:18,icon:Ue.ETH},{symbol:"WETH",tokenId:{chain:"Unichain",address:"0x4200000000000000000000000000000000000006"},decimals:18,icon:Ue.ETH},{symbol:"USDC",tokenId:{chain:"Unichain",address:"0x078D782b760474a361dDA0AF3839290b0EF57AD6"},decimals:6,icon:Ue.USDC},{symbol:"BERA",tokenId:{chain:"Berachain",address:"native"},decimals:18,icon:Ue.BERA},{symbol:"WBERA",tokenId:{chain:"Berachain",address:"0x6969696969696969696969696969696969696969"},decimals:18,icon:Ue.BERA}],k6e={Ethereum:{"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2":{Bsc:"0x4DB5a66E937A9F4473fA95b1cAF1d1E1D62E29EA",Polygon:"0x11CD37bb86F65419713f30673A480EA33c826872",Avalanche:"0x8b82A291F83ca07Af22120ABa21632088fC92931",Fantom:"0x2A126f043BDEBe5A0A9841c51915E562D9B07289",Celo:"0x66803FB87aBd4aaC3cbB3fAd7C3aa01f6F3FB207",Moonbeam:"0xab3f0245B83feB11d15AAffeFD7AD465a59817eD",Solana:"7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs",Sui:"0xaf8cd5edc19c4512f4259f0bee101a40d41ebed738ade5874359610ef8eeced5::coin::COIN",Aptos:"0xcc8a89c8dce9693d354449f1f73e60e14e347417854f029db5bc8e7454008abb::coin::T",Base:"0x71b35ECb35104773537f849FBC353F81303A5860",Arbitrum:"0xD8369C2EDA18dD6518eABb1F85BD60606dEb39Ec",Optimism:"0xb47bC3ed6D70F04fe759b2529c9bc7377889678f",Blast:"0xC09a79fCF76ab2917c685896E3693e04EEbab69C",Mantle:"0x115Fcc627AcE0457fbeb7Af3b8BcAcE7Ff6211A4",Klaytn:"0x98A8345bB9D3DDa9D808Ca1c9142a28F6b0430E1",Worldchain:"0x6938c3EfFEf84E5C69e3d7cc41eBC6Cff99EF8A7"},"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48":{Bsc:"0xB04906e95AB5D797aDA81508115611fee694c2b3",Polygon:"0x4318CB63A2b8edf2De971E2F17F77097e499459D",Avalanche:"0xB24CA28D4e2742907115fECda335b40dbda07a4C",Fantom:"0x2Ec752329c3EB419136ca5e4432Aa2CDb1eA23e6",Celo:"0x37f750B7cC259A2f741AF45294f6a16572CF5cAd",Moonbeam:"0x931715FEE2d06333043d11F658C8CE934aC61D0c",Solana:"A9mUU4qviSctJVPJdBJWkb28deg915LYJKrzQ19ji3FM",Sui:"0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf::coin::COIN",Aptos:"0x5e156f1207d0ebfa19a9eeff00d62a282278fb8719f4fab3a586a0a2c0fffbea::coin::T",Base:"0xec267C53f53807c2337C257f8AC3Fc3cC07cc0ed",Arbitrum:"0xC96F2715E2a242d50D1b0bC923dbe1740b8eCf18",Optimism:"0x711e53D031ea9B0bb0C24dD506df11b41AEA419e",Klaytn:"0x608792Deb376CCE1c9FA4D0E6B7b44f507CfFa6A",Worldchain:"0x2cbD3491d687A76bb9C53c30B212855520D47b52"},"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599":{Bsc:"0x43359676E1A3F9FbB5de095333f8e9c1B46dFA44",Polygon:"0x5D49c278340655B56609FdF8976eb0612aF3a0C3",Avalanche:"0x1C0e79C5292c59bbC13C9F9f209D204cf4d65aD6",Fantom:"0x87e9E225aD8a0755B9958fd95BE43DD6A91FF3A7",Celo:"0xd71Ffd0940c920786eC4DbB5A12306669b5b81EF",Moonbeam:"0xE57eBd2d67B462E9926e04a8e33f01cD0D64346D",Solana:"3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh",Sui:"0x027792d9fed7f9844eb4839566001bb6f6cb4804f66aa2da6fe1ee242d896881::coin::COIN",Aptos:"0xae478ff7d83ed072dbc5e264250e67ef58f57c99d89b447efd8a0a2e8b2be76e::coin::T",Base:"0xE6396f780b543dF16ee3b784D789c75B68319db0",Arbitrum:"0x397846a8078d4845c7f5c6Ca76aeBbcFDc044fAe",Optimism:"0xB214C19d81c99E75e84706a3aa0A757319023e26",Klaytn:"0x981846bE8d2d697f4dfeF6689a161A25FfbAb8F9",Worldchain:"0x06c9ec7E18A7900E79Ad5BeCc6Cc29E3eebD81EC"},"0xdAC17F958D2ee523a2206206994597C13D831ec7":{Bsc:"0x524bC91Dc82d6b90EF29F76A3ECAaBAffFD490Bc",Polygon:"0x9417669fBF23357D2774e9D421307bd5eA1006d2",Avalanche:"0x9d228444FC4B7E15A2C481b48E10247A03351FD8",Fantom:"0x14BCb86aEed6a74D3452550a25D37f1c30AA0A66",Celo:"0x617f3112bf5397D0467D315cC709EF968D9ba546",Moonbeam:"0xc30E9cA94CF52f3Bf5692aaCF81353a27052c46f",Solana:"Dn4noZ5jgGfkntzcQSUZ8czkreiZ1ForXYoV2H8Dm7S1",Sui:"0xc060006111016b8a020ad5b33834984a437aaa7d3c74c18e09a95d48aceab08c::coin::COIN",Aptos:"0xa2eda21a58856fda86451436513b867c97eecb4ba099da5775520e0f7492e852::coin::T",Base:"0xFf0C62A4979400841eFaA6faADb07Ac7d5C98b27",Arbitrum:"0xE4728F3E48E94C6DA2B53610E677cc241DAFB134",Optimism:"0xf6B4185FCf8aF291c0E3927fbEab7046b4f6A8CA",Blast:"0x37C1dea9C51864cc6640FA9c09f4dac574b8285E",Klaytn:"0x5C13E303a62Fc5DEdf5B52D66873f2E59fEdADC2",Xlayer:"0x5866709f926f26C5870191F40333ac462B917bC0",Worldchain:"0x95dd0680Fd6B6c7546e75C1A4E6A3256072C0593"},"0x6B175474E89094C44Da98b954EedeAC495271d0F":{Bsc:"0x3413a030EF81a3dD5a302F4B4D11d911e12ed337",Polygon:"0x732EB1747ecCFC431fF19bc359ffc83755B1918c",Avalanche:"0xca319f81D147559e19A522A0a0310Dd43A96cA0F",Fantom:"0xEE786D3D73Ea645365c7248E4e40eDba08B1169F",Celo:"0x97926a82930bb7B33178E3c2f4ED1BFDc91A9FBF",Moonbeam:"0x06e605775296e851FF43b4dAa541Bb0984E9D6fD",Solana:"EjmyN6qEC1Tf1JxiG1ae7UTJhUxSwk1TCWNWqxWV4J6o",Aptos:"0x407a220699982ebb514568d007938d2447d33667e4418372ffec1ddb24491b6c::coin::T",Base:"0x617Edadb51BfB43A44Bb91C7402129C23bA52381",Arbitrum:"0x5c4f2FEFB97F7DF09E762d95C83f0Ccf8bCe8234",Optimism:"0x098EA47D630b46df1E08e389e5e4466119c7dd30",Blast:"0x286ebE2BacB0EBeF746DBDA24dED0fc001c6d0F6",Sui:"0xc01c54cd767a60835bf100b0a8f7aae66ac9f4e374f76746af60f02493b6f2cf::coin::COIN",Klaytn:"0xCB2C7998696Ef7a582dFD0aAFadCd008D03E791A",Worldchain:"0x69635e59E89000e08a13C3F7B9f7293160Dc83a2"},"0x4Fabb145d64652a948d72533023f6E7A623C7C53":{Bsc:"0x035de3679E692C471072d1A09bEb9298fBB2BD31",Polygon:"0x95ea750420da26bE1Ab0891e209e921bCd84763f",Celo:"0x1dd42c0785ca90B677adc2ABad01dfc5ECcD0b4d",Moonbeam:"0xa2284e1F98E4d0B7Eb6a6b4f3C57f1b209C755F3",Solana:"33fsBLA8djQm82RpHmE3SuVrPGtZBWNYExsEUeKX1HXX",Aptos:"0x77400d2f56a01bad2d7c8c6fa282f62647ce3c03f43f2a8742e47ea01a91e24a::coin::T",Worldchain:"0x276719Fc6a38E62B717c6FF6E39d1C336ee633AB"},"0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0":{Polygon:"0xe082a7Fc696De18172Ad08D956569Ee80BC37f06",Solana:"ZScHuTtqZukUrtZS43teTKGs2VqkKL8k4QCouR2n6Uo",Arbitrum:"0xf2717122Dfdbe988ae811E7eFB157aAa07Ff9D0F",Optimism:"0x855CFcEEe998c8ca34F9c914F584AbF72dC88B87",Base:"0xEd4e2FD35161c3c0e33cA187fce64C70d44Ce32b",Bsc:"0xad80E1A9B5824234afA9dE1F3bbDb8a994796169",Avalanche:"0x11449fd2F05D93827972b40adE96F6ffBE42E35a",Fantom:"0x2a2Ec6Ad3e47C536F47934F63b95BD647F1C730E",Worldchain:"0xd977e0251db8d38155dC5d212944AB7B7a6777Ad"}},Polygon:{"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270":{Ethereum:"0x7c9f4C87d911613Fe9ca58b579f737911AAD2D43",Bsc:"0xc836d8dC361E44DbE64c4862D55BA041F88Ddd39",Avalanche:"0xf2f13f0B7008ab2FA4A2418F4ccC3684E49D20Eb",Fantom:"0xb88A6064B1F3FF5B9AE4A82fFD52560b0dF9FBD3",Celo:"0x9C234706292b1144133ED509ccc5B3CD193BF712",Moonbeam:"0x82DbDa803bb52434B1f4F41A6F0Acb1242A7dFa3",Solana:"Gz7VkD4MacbEB6yC5XD3HcumEiYx2EtDYYrfikGsvopG",Sui:"0xdbe380b13a6d0f5cdedd58de8f04625263f113b3f9db32b3e1983f49e2841676::coin::COIN",Aptos:"0x6781088e2a1629d38eda521467af4a8ca7bfa7e5516338017940389595c85c0f::coin::T",Base:"0xc863399E5c5C4011B1DC3fB602902C77BA72B709",Arbitrum:"0x3ab0E28C3F56616aD7061b4db38aE337E3809AEA",Optimism:"0x8f02B6a32cebcAe44D2Fd17d87966f5B5dD14c6d",Blast:"0xE00CB9206aCF0413aa9Dc12F01A22BB5Dd7A2866",Mantle:"0x1d15Dc3B3DB5A182eA8E3091F21EB0549d4a72E0",Klaytn:"0x9858e5A4f8202baD619D4BD39382CA67F4CA0E63",Scroll:"0x982D057feCD66c3af27b16EBC67C4db24810bcD8",Xlayer:"0xc97E2b2d7730C34adC389563721d9dF52EDA4A2a",Worldchain:"0xDcB507ECEA06724d8c4F2f03964f7EE4da504E8C"},"0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619":{Bsc:"0x1384284E16e3375522Be54F50909Bc52A69e90e4",Solana:"DQyeU3oFezEGia761GQ4iPcMCnxnH8fuLrmHZUvTYuby",Aptos:"0x2692323828f627a45a75a05eba8281dd46690c538b4f6ccb7a35ffe8199a28b7::coin::T",Sui:"0xa1ed6e76b06ff8f959cc479fbbd423820a3349dad8707b98ff4309c677fa20ad::coin::COIN",Arbitrum:"0xd2b299eD76d1369Ac8762CFEc85245fFD302FC17",Ethereum:"0x32d222E1f6386B3dF7065d639870bE0ef76D3599",Avalanche:"0x061FE51530768889dc20Ac7fCD29b5307b823395",Optimism:"0x2740220fFa4b206280907ce12b7cDC57445f3B92",Fantom:"0x1cAFd8d3301E4E54Fc1462E7117Eb678bF50C765",Base:"0x7A79923734eDA9c7f7ff69ad9ec1e234F67E7CD6",Moonbeam:"0xf1BB9A987B9edC360580b0c9F28069C808c2a7da",Celo:"0x8Ed68859f162970258992168293232e3Bdd987d0",Klaytn:"0x3eb25C7098AC38a852Cd2366161c5e216af50Df3"},"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359":{Aptos:"0xc5fd7820e9f053e6dd8e7dd8ca3ce8e9b10d200ba1692bdeb7a035217180ad4a::coin::T",Base:"0xFe1579BAc60363c8572CB30Bf4DD1Fd85811BBF8",Moonbeam:"0x4415BfBDee669446550d55c749007EF60B520FC8",Sui:"0x5c8c9082401982e8c2519a5c12883a5475295bf5cec4a0a13c26d35dd9a20d73::coin::COIN",Bsc:"0xe6d82Bbe75041E42E51d755e922cE1BA91af9c4d",Celo:"0x42c76808f3179A091Ee007A2955aF2522978ADE7",Fantom:"0xB4DcfD221048a1Dad989D39456BBd87762c26F06",Avalanche:"0xDb2d08f5A9C9ADBBA0DE5a69bbB1E9Ca03411692",Arbitrum:"0x599ADB10E6A012dF34935D47407450f6D7170e3C",Optimism:"0xbB1EaB9Eb8fDf65F0E291D013DA07B4b65a27a01",Solana:"C321jHPwWBzgfSGndosDTp5pBsiXPyMU1irxKLVcedRB",Ethereum:"0xFbcE0f9e92AD1003e893Ba647bC055D845aAa507",Klaytn:"0x59AEaD999e018a00B162D34de7a81AFFAB88bAbB"},"0x03b54A6e9a984069379fae1a4fC4dBAE93B3bCCD":{Base:"0xcB6D47199d60747152d7671D6497ce8D23cc1D75",Arbitrum:"0x23D3901A635fDd98D8d6509bc0720281f80a8E6D",Ethereum:"0x302F636d723c8Ed75C0d1E9D9C714009184C5624",Optimism:"0x4fad81d2268a7D9E1e0fE7dB38af07FFFA0aA56E",Celo:"0xA4c7302659eCF88a90e62e915Bd486E66B616A4C"}},Bsc:{"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c":{Ethereum:"0x418D75f65a02b3D53B2418FB8E1fe493759c7605",Polygon:"0xeCDCB5B88F8e3C15f95c720C51c71c9E2080525d",Avalanche:"0x442F7f22b1EE2c842bEAFf52880d4573E9201158",Fantom:"0xc033551e05907Ddd643AE14b6D4a9CA72BfF509B",Celo:"0xBf2554ce8A4D1351AFeB1aC3E5545AaF7591042d",Moonbeam:"0xE3b841C3f96e647E6dc01b468d6D0AD3562a9eeb",Solana:"9gP2kCy3wA1ctvYWQk75guqXuHfrEomqydHLtcTCqiLa",Sui:"0xb848cce11ef3a8f62eccea6eb5b35a12c4c2b1ee1af7755d02d7bd6218e8226f::coin::COIN",Aptos:"0x6312bc0a484bc4e37013befc9949df2d7c8a78e01c6fe14a34018449d136ba86::coin::T",Base:"0x7fdAa50d7399ac436943028edA6ed9a1BD89509f",Arbitrum:"0x7AF00405916D823eDb1121546EfA6F4972B51b84",Optimism:"0x6A09fE65ACa27C12573F04aAFa290bD75497E1BC",Blast:"0xdcd0Ec817d3ae2E82bCE8Cc9f92fFA7686A52160",Mantle:"0x9a7E85260d6F5d3c3d2a1FdDc3D980DBC78e508d",Klaytn:"0xaC9C1E4787139aF4c751B1C0fadfb513C44Ed833",Scroll:"0x5b0da0a36DC415714B53A4f24b56921332F42E7C",Xlayer:"0x8bC46166E06122603bA10D2bCA63b75091c25cAe",Worldchain:"0x59163d9c70E9b3852a504c5F1458e2daD33516Ff"},"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d":{Ethereum:"0x7cd167B101D2808Cfd2C45d17b2E7EA9F46b74B6",Polygon:"0x4B3a922c773BDCF3BA8f1A4FDAc2029E1D0E9868",Avalanche:"0x6145E8a910aE937913426BF32De2b26039728ACF",Fantom:"0x0FcbDAC44c67A43607D3E95886dB19871ADc985F",Celo:"0x9d9abAE97a9344e3854527b4efbB366a1564bfEb",Moonbeam:"0x7f433E22366E03a3758CE22cCf82887d828078f8",Solana:"FCqfQSujuPxy6V42UvafBhsysWtEq1vhjfMN1PUbgaxA",Sui:"0x909cba62ce96d54de25bec9502de5ca7b4f28901747bbf96b76c2e63ec5f1cba::coin::COIN",Aptos:"0x79a6ed7a0607fdad2d18d67d1a0e552d4b09ebce5951f1e5c851732c02437595::coin::T",Base:"0x68E2b07F92ed506f92935d7359ECA84D5342dbb4",Arbitrum:"0x1a0590F951bc9C3818Ce75ba5Bbe92831b2cf57e",Optimism:"0x1C15057d1F3794C934a6cBC1f7EceE934050F219",Klaytn:"0x01B342d26FEF5749E87CBe412e16163771b0277c"},"0x2170Ed0880ac9A755fd29B2688956BD959F933F8":{Aptos:"0xd9fc4259ec5def95477dba9f0861c2882d1f8bee9a4138b476dd0720a3444547::coin::T",Solana:"FzjTz2cD1DfqYvafrbHWZvf1dK9qjwXGLuaU7xYXQjxP",Sui:"0x5029d5a94429a73b8036cd67192d9c5e09bbc2c0fee942d50075a9edba66744f::coin::COIN",Base:"0xf50509Bb6aF76E20c6E1eD493699c5f70764BcCC",Arbitrum:"0x6478377A399bE8c92bD35254aA7bF287836de32e",Ethereum:"0x5DbBB101CDc29443d12055eCDDdD7ca037Dce721",Fantom:"0xc511E3aec79CABD605021C237c475Ec553B002d4",Celo:"0x09F236D3708894581b1Cf679e582ba9eA5BE16f0",Klaytn:"0x4C07075BB44076106f3389766946b79784Fb5C58",Avalanche:"0xf0e509144CfA602d0A5e8C75d76FF74077f52f2b",Optimism:"0x8088Bc767c392b5769b94c9ec1D07c62874c8d5f",Polygon:"0x2D291e940DbDdaa9E847Ba5cC49451575f086b27",Moonbeam:"0xBefd7902B682938b29B3FD3D4AdECD9A984D5930"}},Avalanche:{"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7":{Ethereum:"0x85f138bfEE4ef8e540890CFb48F620571d67Eda3",Bsc:"0x96412902aa9aFf61E13f085e70D3152C6ef2a817",Polygon:"0x7Bb11E7f8b10E9e571E5d8Eace04735fDFB2358a",Fantom:"0x358CE030DC6116Cc296E8B9F002728e65459C146",Celo:"0xFFdb274b4909fC2efE26C8e4Ddc9fe91963cAA4d",Moonbeam:"0xd4937A95BeC789CC1AE1640714C61c160279B22F",Solana:"KgV1GvrHQmRBY8sHQQeUKwTm2r2h8t4C8qt12Cw1HVE",Sui:"0x1e8b532cca6569cab9f9b9ebc73f8c13885012ade714729aa3b450e0339ac766::coin::COIN",Aptos:"0x5b1bbc25524d41b17a95dac402cf2f584f56400bf5cc06b53c36b331b1ec6e8f::coin::T",Base:"0xc449A60A31E1eebFE83c42E9465fd4Dc318aE9a7",Arbitrum:"0x565609fAF65B92F7be02468acF86f8979423e514",Optimism:"0x8418C1d909842f458c9394886b83F19d62bF1A0D",Blast:"0x7D86F00026c2cD8137D60ae85d53c5E5a15B2481",Mantle:"0x2cAb4233d42043AEBbbb1445af362Ef686f3C133",Klaytn:"0x45830b92443a8f750247da2A76C85c70d0f1EBF3",Scroll:"0xC043c8A3672f397e7b52bF0a04F47d6f1aA952Ed",Xlayer:"0x5208Fb676B2DBab7aFaFB56e8997237F0ceECF71",Worldchain:"0x5Bf2A0622aa1254D963A3074b593A379784C116a"},"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E":{Ethereum:"0x39EbF69137D98FB7659Ef8D4ea21ec26394389d7",Bsc:"0xc88Dc63bf0c8c8198C97Db0945E3eF25Ca89A8e4",Polygon:"0xAEA5CC14DefbC1b845FDE729E563B717Ee6825ae",Fantom:"0xEfE7701cb2B80664385Be226d0300912CA92f66A",Celo:"0x62FFf2D2D1692D52eAf043AeeC727F7918d269D3",Moonbeam:"0xd4918c40cA9f02d42Cb53d06587aF42017Bc345D",Solana:"FHfba3ov5P3RjaiLVgh8FTv4oirxQDoVXuoUUDvHuXax",Sui:"0xe596782fbaebef51ae99ffac8731aed98a80642b9dc193ed659c97fbc2cc0f84::coin::COIN",Aptos:"0x39d84c2af3b0c9895b45d4da098049e382c451ba63bec0ce0396ff7af4bb5dff::coin::T",Arbitrum:"0x93e0FcbEd43CD6fC30DF00CcBD4669718dc74e77",Optimism:"0x355f0a8a7ecAeD971b8Fbd50994558291ff2413a",Base:"0xD83385fE100E20c269a5975D4Bf92525BcE09F87",Blast:"0x3Db095413b5e1e5681c48028e31e8dc2505D8aD3",Klaytn:"0x9C97D4c09679Dfd00A39681f6d3b61A285312B13",Scroll:"0xbEFc3d0457fB88f82364Dd982F7BA195FEE96b74"},"0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB":{Aptos:"0x25ff8e0c07552c392c9e5dd4c9c07cf0382765c1bca560e80b6296a702034219::coin::T",Solana:"F9B9qLwUN3TAWGV9EGsuzFzS2PxWvKAmLhvfeqYNaS7J",Bsc:"0xBDfe278268524de38Da89B3023C1F49deBDFdA8A",Sui:"0xc1ea686a329e35808c61484d95904d50522f1d1616cab4b416d9cfa9b274bc6c::coin::COIN",Base:"0xEfe64b52bc0bDfa109790736F25cefb79724adF0",Arbitrum:"0xdF64fB41b7f45304a786695E0D5daD8d033C01eF",Polygon:"0x2912b3a9586Fc2AB177dC869e878c688DAA7d06E",Ethereum:"0xD85a87Edbe9fB3Baf6a1Bbd1E46f1C04B291331d",Optimism:"0xBe6EA3e70e2bbB0dbD093B657fbbc0DFF0BA67eC",Moonbeam:"0x9C673c6b651D6FDEF57441125A6AC16b08bba939",Celo:"0xDac2C97b5E64d7C79d040cd2906EBe02341F1Ab5",Klaytn:"0x9971F9d9170D787C4e4E01c56E1BDB308291CacF",Fantom:"0x86a09597fc91b116511B990D29CB46ddedC0fCb0"}},Fantom:{"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83":{Ethereum:"0x4cD2690d86284e044cb63E60F1EB218a825a7e92",Bsc:"0xbF8413EE8612E0E4f66Aa63B5ebE27f3C5883d47",Polygon:"0x3726831304D77f585f1Aca9d9841cc3Ef80dAa62",Avalanche:"0xd19abc09B7b36F7558929b97a866f499a26c2f83",Celo:"0xd1A342eE2210238233a347FEd61EE7Faf9f251ce",Moonbeam:"0x609AedD990bf45926bca9E4eE988b4Fb98587D3A",Solana:"DRQBDBEWmwWGK13fRTLhSPzjbvMSUavhV6nW4RUH8W6T",Sui:"0x6081300950a4f1e2081580e919c210436a1bed49080502834950d31ee55a2396::coin::COIN",Aptos:"0xd1aa2ff36a0e93e1b4e4fecdecf8bb95bc5de399061c5e84b515281f48718842::coin::T",Base:"0x936Fa2DE8380Dc5BF34C80F1BaD53a9f3630263B",Arbitrum:"0x7f7dcDb91930033a4Eb269196EBb6fd5f0644E4B",Optimism:"0x0b0ecbe5C3995541876d27633B63296570FB34Af",Blast:"0xf1D0eEeB6B6B35dc7289E1AD5e523F68b82bd09A",Mantle:"0x6BFDc59ECBC5503aE16F71851064597D0a75dA76",Klaytn:"0xF3AebeA789F30C22F3657F70f4CaA0f8b49ed676",Scroll:"0x16f077e2e9bF99Adfb1FEEc8360ee002842C44A2",Xlayer:"0x956b5E88c311b976C76CB415C7E030A5Af87373b"},"0x2F733095B80A04b38b0D10cC884524a3d09b836a":{Bsc:"0x521af8b1c43B503BE91F542d82EEFEabc0C93340",Arbitrum:"0xF68734163731ad6A6108f76A8e09862C1d412B42",Ethereum:"0xfcC349c14013EdeFAAcAE09Ba30F4ef2571b8D2c"}},Celo:{"0x471EcE3750Da237f93B8E339c536989b8978a438":{Ethereum:"0x3294395e62F4eB6aF3f1Fcf89f5602D90Fb3Ef69",Bsc:"0x2A335e327a55b177f5B40132fEC5D7298aa0D7e6",Polygon:"0x922F49a9911effc034eE756196E59BE7b90D43b3",Avalanche:"0x494317B8521c5a5287a06DEE467dd6fe285dA4a8",Fantom:"0xF432490C6c96C9d3bF523a499a1CEaFd8208A373",Moonbeam:"0xc1a792041985F65c17Eb65E66E254DC879CF380b",Solana:"9kvAcwQbqejuJMd59mKuw2bfSsLRaQ7zuvaTVHEeBBec",Sui:"0xa198f3be41cda8c07b3bf3fee02263526e535d682499806979a111e88a5a8d0f::coin::COIN",Aptos:"0xac0c3c35d50f6ef00e3b4db6998732fe9ed6331384925fe8ec95fcd7745a9112::coin::T",Base:"0x74df3823aA29D278cAD0A3632fCB56C896a38eD4",Arbitrum:"0x4E51aC49bC5e2d87e0EF713E9e5AB2D71EF4F336",Optimism:"0x9b88D293b7a791E40d36A39765FFd5A1B9b5c349",Blast:"0x75345Cc6a3333cca03aCE2a28C7de328122Db3b1",Klaytn:"0xB2b5bC9bc872c7107CBC8E8e0E2805Db0ac4FBc2",Worldchain:"0x2250A0E2532A745b585B69dd2CdC75207384917c"}},Moonbeam:{"0xAcc15dC74880C9944775448304B263D191c6077F":{Ethereum:"0x93d3696A9F879b331f40CB5059e37015423A3Bd0",Bsc:"0x1C063db3c621BF901FC6C1D03328b08b2F9bbfba",Polygon:"0xcC48d6CF842083fEc0E01d913fB964b585975F05",Avalanche:"0x375aA6C67BF499fBf01804A9f92C03c0776F372d",Fantom:"0xBF227E92D6754EB4BFE26C40cb299ff2809Da45f",Celo:"0x383A5513AbE4Fe36e0E00d484F710148E348Aa9D",Solana:"7ixSaXGsHAFy34wogPk2YXiUX3BMmQMFdercdaHLnBby",Sui:"0x66f87084e49c38f76502d17f87d17f943f183bb94117561eb573e075fdc5ff75::coin::COIN",Aptos:"0x7ab1283a7b13c4254d4e1f803d7ce6578442c1d7a40d0faee41cd48ba4884c8a::coin::T",Base:"0xfdB7311BeC3b2CcCF8407d0585f81B97b3b5eff1",Arbitrum:"0x944C5b67a03e6Cb93Ae1E4B70081f13b04CDB6Bd",Optimism:"0xbffD46DFDb8d3a02b8D2E0F864a2cD712090a4D3",Blast:"0x43E43580A34c8FdD4694e1F9B5F9b1121a7044a5",Klaytn:"0x52a4558f98dDc7cb40cd9114C005f0B9571258Fc",Scroll:"0x2Aba1Ed24EaFC17F801b1A7dF1c3a06737F8aB72",Xlayer:"0xE2a44Dad57004517738FbD84cdf09Bd1451b4e43",Worldchain:"0xaAe2Bd4EB640f02dD3a53bd994ad19110b4191b0"}},Solana:{So11111111111111111111111111111111111111112:{Ethereum:"0xD31a59c85aE9D8edEFeC411D448f90841571b89c",Bsc:"0xfA54fF1a158B5189Ebba6ae130CEd6bbd3aEA76e",Polygon:"0xd93f7E271cB87c23AaA73edC008A79646d1F9912",Avalanche:"0xFE6B19286885a4F7F55AdAD09C3Cd1f906D2478F",Fantom:"0xd99021C2A33e4Cf243010539c9e9b7c52E0236c1",Celo:"0x4581E64115d46CcdeE65Be2336bEc86c9BA54C01",Moonbeam:"0x99Fec54a5Ad36D50A4Bba3a41CAB983a5BB86A7d",Sui:"0xb7844e289a8410e50fb3ca48d69eb9cf29e27d223ef90353fe1bd8e27ff8f3f8::coin::COIN",Aptos:"0xdd89c0e695df0692205912fb69fc290418bed0dbe6e4573d744a6d5e6bab6c13::coin::T",Base:"0x1C61629598e4a901136a81BC138E5828dc150d67",Arbitrum:"0x2bcC6D6CdBbDC0a4071e48bb3B969b06B3330c07",Optimism:"0xba1Cf949c382A32a09A17B2AdF3587fc7fA664f1",Blast:"0xA5370b8e2413b23eA16F3B78D1d1ba3969678227",Mantle:"0xDA03239f428c76A527e1ceCa0ecA6cC367A2D945",Klaytn:"0xfAA03A2AC2d1B8481Ec3fF44A0152eA818340e6d",Xlayer:"0x3a859D92da2E16Ad32C5C6F3ADAddFBa4dE3A47e",Scroll:"0xCDf95E1F720caade4b1DC83ABfE15400D2a458AD",Worldchain:"0xEfae32D1c15EDBaEA3ebdDe1e2C51003AED04d30"},EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v:{Ethereum:"0x41f7B8b9b897276b7AAE926a9016935280b44E97",Bsc:"0x91Ca579B0D47E5cfD5D0862c21D5659d39C8eCf0",Polygon:"0x576Cf361711cd940CD9C397BB98C4C896cBd38De",Avalanche:"0x0950Fc1AD509358dAeaD5eB8020a3c7d8b43b9DA",Fantom:"0xb8398DA4FB3BC4306B9D9d9d13d9573e7d0E299f",Celo:"0x8B6eef6C449D3Ac723a9C06a9eaE2dCd7d308BA9",Moonbeam:"0x098d6eE48341D6a0a0A72dE5baaF80A10E0F6082",Sui:"0xb231fcda8bbddb31f2ef02e6161444aec64a514e2c89279584ac9806ce9cf037::coin::COIN",Aptos:"0xc91d826e29a3183eb3b6f6aa3a722089fdffb8e9642b94c5fcd4c48d035c0080::coin::T",Arbitrum:"0x3870546cfd600ba87e4180686d29dC993A45d3B7",Optimism:"0x6F974A6dfD5B166731704Be226795901c45Bb815",Base:"0xe8CE40EBBB844142400D21558a2F1c9683d69139",Klaytn:"0xa1a7feeD29EbFa38079D943486c23f401939Ce80",Scroll:"0x883Ccb5aEfD0084f1e4D04b133675acd6D5F123F"},HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3:{Aptos:"0x770211b47954e15bec1a4271bf33bacebc2d2adb43b7dc1ca45efa787615dd4c::coin::T",Bsc:"0xb0188B0bb2cD4a6D2744637fC83C94a284B247Da",Base:"0x4c5d8A75F3762c1561D96f177694f67378705E98",Celo:"0x985aa4814419ba338379A634785216301e51113D",Avalanche:"0x8A0691e602B7a5FCc51a27E4a08376dE50889B42",Polygon:"0xFa4B761A1e07909Ba31331a5dfa12390E3ff5583",Fantom:"0x77ad3B2dA29FBd208F12c3C701E969F4422aAD79",Optimism:"0x99C59ACeBFEF3BBFB7129DC90D1a11DB0E91187f",Ethereum:"0xeFc0CED4B3D536103e76a1c4c74F0385C8F4Bdd3",Arbitrum:"0xE4D5c6aE46ADFAF04313081e8C0052A30b6Dd724",Sui:"0x9c6d76eb273e6b5ba2ec8d708b7fa336a5531f6be59f326b5be8d4d8b12348a4::coin::COIN",Moonbeam:"0x27cc3FDbDD1F415b09a41232D0fD71345DAB8030",Xlayer:"0x057b766b3fB76527cf815c3b5C38Dfa8144335CF",Worldchain:"0x838f3045F3B2dcDFF8cB4e5CaB0c0092A69B790a"}},Sui:{native:{Ethereum:"0x84074EA631dEc7a4edcD5303d164D5dEa4c653D6",Bsc:"0x8314f6Bf1B4dd8604A0fC33C84F9AF2fc07AABC8",Polygon:"0x34bE049fEbfc6C64Ffd82Da08a8931A9a45f2cc8",Avalanche:"0x1703CB0F762D2a435199B64Ea47E5349B7C17480",Fantom:"0xC277423a21F6e32D886BF85Ef6cCB945d5D28347",Celo:"0x1Cb9859B1A16A67ef83A0c7b9A21eeC17d9a97Dc",Moonbeam:"0x484eCCE6775143D3335Ed2C7bCB22151C53B9F49",Solana:"G1vJEgzepqhnVu35BN4jrkv3wVwkujYWFFCxhbEZ1CZr",Aptos:"0xa72a97e872be9ee3d2f14d56fd511eb7e4a53f4055be3a267d8602e7685b41c0::coin::T",Base:"0x36c6FBF7B49bF65f5F82b674af219C05b2a4aDD1",Arbitrum:"0xCF79d86B8a830030aF6D835737d6eac3bE823fD7",Optimism:"0x27A533e438892DA192725b4C9AcA51447F457212",Mantle:"0x9ef1BB6072d7d6B9C935d9c040133036aD532119",Blast:"0x62c95Ffd6d2f893Ea2EF072d1EbBcb242a974b1A",Klaytn:"0xB0B40516293e0204fB376A18aA230A210cbE0305",Xlayer:"0xEa76dBFE6e449420f294e74E057518F750E99A16",Worldchain:"0xf69005c35B5d9AcC22E4DbCf52f892cAE21F83B0"}},Aptos:{native:{Ethereum:"0x8CDf7AF57E4c8B930e1B23c477c22f076530585e",Bsc:"0x2Ba98cf7Edd2c5C794e21bc3Dc6973D3C2585eE3",Polygon:"0xa4ef199d3ad524E9C3C51Ac46B303B103A307Cef",Avalanche:"0x43c588459b3243fA541B98CC4B2E995b3de553A2",Fantom:"0x3Cd9162Ca5256b8E26A0e3Ad14CCfF7C0Da0F174",Celo:"0x89F2b718Ca518db39d377F0ABBa6B42582b549F7",Moonbeam:"0x25331575641d35D9765e1934acC8F0991c58e904",Solana:"6LNeTYMqtNm1pBFN8PfhQaoLyegAH8GD32WmHU9erXKN",Sui:"0x3a5143bb1196e3bcdfab6203d1683ae29edd26294fc8bfeafe4aaa9d2704df37::coin::COIN",Base:"0x1d36126289Be1658297A35CC3EB2BB80A7D7A04b",Arbitrum:"0x4EdeF400eDe5309240814b5FC403F224504604e9",Optimism:"0xC5B3AC2DF8D8D7AC851F763a5b3Ff23B4A696d59",Blast:"0x2a3DdE20159FbDbC86f1da0e7a462711b610c815",Klaytn:"0x68d5254007BE3a6d3d2A37e2C1ad3921D049F46D",Xlayer:"0xEdF2AEaCE382A3c0722f110c4927d34b78bce34F",Worldchain:"0xfC5011f2037f2Dad9c9aC05CbB6749B383C3099c"}},Arbitrum:{"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1":{Ethereum:"0xb945E3F853B5f8033C8513Cf3cE9F8AD9beBB1c9",Bsc:"0xaA1eEdABC48D078350ccBdD620bD088848e299E5",Polygon:"0x6a5c59AB16268d2c872916054C50440B999e417C",Avalanche:"0xDfDA518A1612030536bD77Fd67eAcbe90dDC52Ab",Fantom:"0xE8367853A0823515D37b1538331B4704089becb4",Celo:"0xc6F962fCcb140ece554AfD0E589f971532A57f14",Solana:"CSD6JQMvLi46psjHdpfFdr826mF336pEVMJgjwcoS1m4",Sui:"0x33744e7df340a4d01c23f6b18c13563f767545ea95f976f8045f056358419da3::coin::COIN",Aptos:"0xe977796d7bfb3263609b90dffd264c7bd078ce35dac42b55302858d9fa3452b::coin::T",Base:"0x9D36e0edb8BBaBeec5edE8a218dc2B9a6Fce494F",Optimism:"0x825206E1D29456337769e6f1384101E997C6A732",Moonbeam:"0x18872b45c603eD2EbC508b9C5514a85c2e2791FB",Klaytn:"0x3CF1751E32c4225CB12ba953786C260C2cE89008"},"0xaf88d065e77c8cC2239327C5EDb3A432268e5831":{Ethereum:"0xCFc006a32a98031C2338BF9d5ff8ED2c0Cae4a9e",Bsc:"0x5caa170b465122D15a6D20FD9A804a9613CE7882",Polygon:"0x7800FE8951cdc1cDea748d878fAce63018D97960",Avalanche:"0x4b5fE357Eb11c735078e47526D6e853DBff18541",Celo:"0xA41a62567d9eb960D84b72663FdaeBE0BCdE2683",Solana:"CR4xnGrhsu1fWNPoX4KbTUUtqGMF3mzRLfj4S6YEs1Yo",Sui:"0xc3f8927de33d3deb52c282a836082a413bc73c6ee0bd4d7ec7e3b6b4c28e9abf::coin::COIN",Aptos:"0xca3a2c28bc8c6c762f752dd2a4ebbfd00356ca99977ce6636e3af5897124a87a::coin::T",Optimism:"0xa6252F56cc6eEA21165d56744C795F91c8a3Cf68",Base:"0xb96B82Cd6D45d98Fb6897D16A5E4EE888329C513",Fantom:"0x2228703672906fEe5eD681Ec28e42B4506b8c336",Moonbeam:"0xbd2B6D665439514EEaA8519f4fE87CC8C46e9167",Klaytn:"0x3d5973fF7288f47857dAa5a32C53976A9A968928",Xlayer:"0xd53bD30985B4125fc561774e388d9f679BB84117"},"0x5979D7b546E38E414F7E9822514be443A4800529":{Bsc:"0x159167e842C586a81f02E55bc043AC8EdB033E0b",Aptos:"0xd2ca17516bc4ca57c1c69577e0c9cc0129153286695b46b97f438ecc138c225e::coin::T",Solana:"8wJakbZuv7WApfHmRo2sdkeQfu6hXqfEqjb7BYXDKpKe",Sui:"0xb607aed1c09e676384d14ae638dbcb08523fc691d309e71c856c7fdcb60d4430::coin::COIN",Base:"0xbE3981b37CcE5eCb6925d2ad9D9E28dE7b165793",Optimism:"0xEae5ccc3c36beF59f6794b467e7e228CB3720415",Fantom:"0xf65BF40A3299Df500D440520dF7e6ce1BEa53E73",Ethereum:"0x906310cE867C22c5016248Bd791FA5dd162c9D6d",Polygon:"0xcf0aa97c2fD78Ee0f0C3090B9EB65d2bd6C1D81a"}},Optimism:{"0x4200000000000000000000000000000000000006":{Fantom:"0xe8E8f941377A955bFA72880ec0dc2319dbC827a8",Celo:"0x8d53771b1Ec7461f8e45Bca2609c45bC0bbd0677",Solana:"8M6d63oL7dvMZ1gNbgGe3h8afMSWJEKEhtPTFM2u8h3c",Sui:"0x0aab14ec22908de73d1b0619f5e03842398f8e68262981bd35ef44b42d22b23a::coin::COIN",Aptos:"0x6a7a7f36ef5e2d0e65fcf72669c20d514d68298b0f76c7554517208f73260aaf::coin::T",Arbitrum:"0xB1fC645a86fB5085e12D8BDDb77702F728D2A26F",Avalanche:"0xDf11535274c0FD2Fe41A88bd1bBF802D72296037",Bsc:"0x94AEc09B5e2CE591e39DC6aa58A3A6E85Ed45265",Ethereum:"0x8B5653Ae095529155462eDa8CF664eD96773F557",Polygon:"0x8182De59485Bb646542Db8C7E5958148Dc699319",Base:"0xCb725aC8d9985D3bE306Dd9e1517d3702929176c",Moonbeam:"0xd4870F7F5AD8Ae5139E1a5D8AD4ac55204aE4490",Klaytn:"0x4ab77AF7059435b71dBC3B7c5255983C8628eFdf"},"0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85":{Fantom:"0x385b219f0C4fa2e84EfE5aaf9692a821C57B8248",Celo:"0xEe48963C003e21EaCEdFA8a0A19BB3cbF7E776Fe",Moonbeam:"0x7143e8EA96e158381057a58AfdDF44601c7e532C",Base:"0xc6bfBeb3002aD563D2d1f72614C61C83Bf147Acd",Arbitrum:"0x3A5C2Da9E30741cb59a5e9446A23A86886fC9DC2",Aptos:"0x4f6ecb05a797902d472abc2f5804bde93a53d8b75f14f767824cdb1623a4ee83::coin::T",Bsc:"0xa41ae127D04F7ee73B5058E2C60Fb7c7A2D21F79",Avalanche:"0xBe04f76A0ba2100c3F2d6Aa1FD8484F415469573",Polygon:"0x31F12aCb60C3c32EE884F3894a873347C097D925",Sui:"0x6037801f060f0f54b3817bca05e3c8b9b9ffaa2da8e93fd5b80fa662aa3c9e55::coin::COIN",Solana:"J8kcD4Wnd1ehne1dpL8WNtgZQR6Jpui2cTZcrmg5ybAa",Klaytn:"0x7Ee2AB1443fDB59AECEa3aDD8F81296d68c2D1e3",Ethereum:"0xe77C99b64414e0fd9aeEA48AFFBBD2E97A895020"},"0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb":{Bsc:"0x1f29fAD000255BF49D72803b2A8FaC8e31947eF8",Base:"0xBb0BeaB819dEAf091C193bE4bBEeA9D5b0F5227C",Arbitrum:"0xf99C5EEd186601955a9a1027536D1b46b1f909F8",Polygon:"0x9065e1D25E65F7A1D60bb6197154386B52faA469",Ethereum:"0xB3ceE6DCa1dD528CB7CC258e32D8B50ce9Ee46f5"}},Base:{"0x4200000000000000000000000000000000000006":{Ethereum:"0x1D4241F7370253C0f12EFC536B7e16E462Fb3526",Bsc:"0x9dc152F4941cE1A138326e70c3600385bf0C22dD",Polygon:"0x5BCf8d8c097FbB35C371F921E3FF3e6F6Eb54B41",Avalanche:"0xFA83178c66fE51ee99109b5cC912f8098Ff812eF",Fantom:"0xd3365E7355230c78098b44B172eE27DAB95B041A",Celo:"0x905CADB645684140E285e2D09D39dF5a2082BC87",Moonbeam:"0x6C6f83366A42fcA4D30a2D3f1914284de995Ac3a",Solana:"DWXe1hxpnb8LAH21iyXcjvMbiAGzoYyuCVQtRLvZdLYd",Sui:"0xaecbc804fa7ca7cffc74c9a05eb6ae86fda0c68375b5c1724204a1065bcb239a::coin::COIN",Aptos:"0x5b5f14781164cf77185a7b6acd8e4f3cbb7e7cfb1cd5760d2b8af81075fc153d::coin::T",Arbitrum:"0xBAfbCB010D920e0Dab9DFdcF634De1B777028a85",Optimism:"0x3F369a664fa665e01e8EB9f20bFcE03A0CAb8971",Mantle:"0x4a2176DE2Fb36485704965bd1Cc471854f21303B",Klaytn:"0x7Bf9ad1D104dEAE4B59Ef1be6a273Cb46BA16362"},"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913":{Solana:"EfqRM8ZGWhDTKJ7BHmFvNagKVu3AxQRDQs8WMMaoBCu6",Moonbeam:"0xE6d02a875CcC153c076fe418f33De3A5C420f505",Celo:"0x2e2acb1782Aad0490f8446b6fD4626C467987bD6",Bsc:"0x55CaD531c8E303Cab8B3BE4bB4744Db4f896ac81",Optimism:"0xb931c7BbD87A6e249EaA7355B13927F9c99Bce87",Arbitrum:"0x8619F97D4d08382548F536E5CE1D3e0D9bA40326",Polygon:"0x1eeCaB0F75fE93abbFa0cDFfb4fB13d1dC8706c8",Avalanche:"0xab933e939a9236BD439F7d29b87CE712f42bAC06",Fantom:"0xd9E4C283d8A49Dc3767A6F5a4dFdc1d0cEf21604",Sui:"0x7e3e74afcc1913aa9491c8cee89b02131a6e5519b090f16b54321835c1241cfb::coin::COIN",Aptos:"0xfcc4fcd734d5b8578fb629d238d15264a49eca6165c7444c21feec3b4962eb88::coin::T",Blast:"0x35a926D55A726cdF70Ac498972F22426363F3C77",Mantle:"0x5D628a3285a10fdd93AEa704007957F294e05F91",Ethereum:"0xc38261846c42C1E1D59E04dA675Eb1974E9cE7b1",Klaytn:"0x0a2330c1C46E9A74e8651F7117a1264410eA3C88",Scroll:"0x22C9bde4Ad49C4b6CCFB8D394B5ED42A57853d58"},"0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452":{Arbitrum:"0x09E79693E44c8813A8CA25EeD7A40e5E24cD9c01",Ethereum:"0x187175c7a526f48c905202Bd2Bf8D25A457F479F",Polygon:"0x95d4C8e851D9E8c6B92aa518474E991c373E9Fb2",Optimism:"0x6ee40855c0BaB20585d17D2b9dd8d2Cd1cd41801",Avalanche:"0x5e513CA12DbD8424bDFc5B50711dF4AE999a8C58"}},Klaytn:{"0xe4f05A66Ec68B54A58B17c22107b02e0232cC817":{Aptos:"0x539b652f8230a0e42adaeda4706b5639893d22362eda6ea897493c210cb48219::coin::T",Ethereum:"0x9AEA32B459e96C8eF5010f69130bf95fd129ac05",Celo:"0xe304254de5c2048F9bFb042dDFB54f84d1d77730",Polygon:"0x415ce980fde17F1FF102e1c6e4ce860Acc615D74",Base:"0x41c433c146c47Dc53FC48cDc69e406e365e298E1",Arbitrum:"0xFA95f6c796E54F9C4a99392CAE84410a25794BB3",Moonbeam:"0xf0a9476E4712123A807859f9Fd25fe98213379BD",Fantom:"0x787e2F3509583C0F03A339Be0826463C839CBE5E",Sui:"0xa5ec915864d7f37b25ca9144b2db6ebcf29e73603c2ccf9d0e765adcd9049a98::coin::COIN",Avalanche:"0x126C03982Ad6D7ef7E6aF020bF219e87185a6BC3",Bsc:"0xEA970e7b7D131Ea36c3051C9Ca11e785462fE00c",Optimism:"0xbbeF8233a0d10EEAb84E913FaDB337ab9b62F683",Solana:"2b8fZGLBZjpxFugCdnJbbLLBYxvx23rsrsvLYYueiHb7",Blast:"0x5F6fE613528df9AE4Bf6f667fbCB923263098617",Scroll:"0xA55FB7A046454998b2f6d8D99Df5F0E108b38229",Worldchain:"0xC080f0082029fC6e8A4Bb33a9B0655B8d4f2BAB0"}},Scroll:{"0x5300000000000000000000000000000000000004":{Arbitrum:"0xAe81a542e20270b48Bd5297E3e0f280f79E46C42"}},Mantle:{"0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8":{Optimism:"0xf704F6a3241609Cfb3E44Db1237E68EB6CaC7C04"}}},_6e={chains:s6e,tokens:j6e,wrappedTokens:k6e,rpcs:B6e,guardianSet:{index:4,keys:["0x5893b5a76c3f739645648885bdccc06cd70a3cd3","0xff6cb952589bde862c25ef4392132fb9d4a42157","0x114de8460193bdf3a2fcf81f86a09765f4762fd1","0x107a0086b32d7a0977926a205131d8731d39cbeb","0x8c82b2fd82faed2711d59af0f2499d16e726f6b2","0x11b39756c042441be6d8650b69b54ebe715e2343","0x54ce5b4d348fb74b958e8966e2ec3dbd4958a7cd","0x15e7caf07c4e3dc8e7c469f92c8cd88fb8005a20","0x74a3bf913953d695260d88bc1aa25a4eee363ef0","0x000ac0076727b35fbea2dac28fee5ccb0fea768e","0xaf45ced136b9d9e24903464ae889f5c8a723fc14","0xf93124b7c738843cbb89e864c862c38cddcccf95","0xd2cc37a4dc036a8d232b48f62cdd4731412f4890","0xda798f6896a3331f64b48c12d1d57fd9cbe70811","0x71aa1be1d36cafe3867910f99c09e347899c19c3","0x8192b6e7387ccd768277c17dab1b7a5027c0b3cf","0x178e21ad2e77ae06711549cfbb1f9c7a9d8096e8","0x5e1487f35515d02a92753504a8d75471b9f49edb","0x6fbebc898f403e4773e95feb15e80c9a99c8348d"]}},{chains:D0}=uv.TESTNET,O6e={Bsc:{...D0.Bsc,displayName:"BSC",explorerUrl:"https://testnet.bscscan.com/",explorerName:"BscScan",chainId:97,icon:"Bsc",symbol:"BSC",sdkName:"Bsc",wrappedGasToken:"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd"},Avalanche:{...D0.Avalanche,displayName:"Fuji",explorerUrl:"https://testnet.avascan.info/blockchain/c/",explorerName:"Avascan",chainId:43113,icon:"Avalanche",symbol:"AVAX",sdkName:"Avalanche",wrappedGasToken:"0xd00ae08403B9bbb9124bB305C09058E32C39A48c"},Fantom:{...D0.Fantom,displayName:"Fantom",explorerUrl:"https://testnet.ftmscan.com/",explorerName:"FtmScan",chainId:4002,icon:"Fantom",symbol:"FTM",sdkName:"Fantom",wrappedGasToken:"0xf1277d1Ed8AD466beddF92ef448A132661956621"},Celo:{...D0.Celo,displayName:"Alfajores",explorerUrl:"https://explorer.celo.org/alfajores/",explorerName:"Celo Explorer",chainId:44787,icon:"Celo",symbol:"CELO",sdkName:"Celo"},Moonbeam:{...D0.Moonbeam,displayName:"Moonbase",explorerUrl:"https://moonbase.moonscan.io/",explorerName:"Moonscan",chainId:1287,icon:"Moonbeam",symbol:"GLMR",sdkName:"Moonbeam",wrappedGasToken:"0xD909178CC99d318e4D46e7E66a972955859670E1"},Solana:{...D0.Solana,displayName:"Solana",explorerUrl:"https://explorer.solana.com/",explorerName:"Solana Explorer",chainId:0,icon:"Solana",symbol:"SOL",sdkName:"Solana",wrappedGasToken:"So11111111111111111111111111111111111111112"},Sui:{...D0.Sui,displayName:"Sui",explorerUrl:"https://suiscan.xyz/testnet/",explorerName:"Suiscan",chainId:0,icon:"Sui",symbol:"SUI",sdkName:"Sui"},Aptos:{...D0.Aptos,displayName:"Aptos",explorerUrl:"https://explorer.aptoslabs.com/",explorerName:"Aptos Explorer",chainId:0,icon:"Aptos",symbol:"APT",sdkName:"Aptos"},Klaytn:{...D0.Klaytn,displayName:"Kaia",explorerUrl:"https://kairos.kaiascope.com/",explorerName:"Kaia Scope",chainId:1001,icon:"Klaytn",symbol:"KLAY",sdkName:"Klaytn",wrappedGasToken:"0x0339d5Eb6D195Ba90B13ed1BCeAa97EbD198b106"},Sepolia:{...D0.Sepolia,displayName:"Sepolia",explorerUrl:"https://sepolia.etherscan.io/",explorerName:"Etherscan",chainId:11155111,icon:"Ethereum",symbol:"ETH",sdkName:"Sepolia",wrappedGasToken:"0xeef12A83EE5b7161D3873317c8E0E7B76e0B5D9c"},ArbitrumSepolia:{...D0.ArbitrumSepolia,displayName:"Arbitrum Sepolia",explorerUrl:"https://sepolia.arbiscan.io/",explorerName:"Etherscan",chainId:421614,icon:"Arbitrum",symbol:"ARB",sdkName:"ArbitrumSepolia",wrappedGasToken:"0x980B62Da83eFf3D4576C647993b0c1D7faf17c73"},BaseSepolia:{...D0.BaseSepolia,displayName:"Base Sepolia",explorerUrl:"https://base-sepolia.blockscout.com/",explorerName:"Etherscan",chainId:84532,icon:"Base",symbol:"BASE",sdkName:"BaseSepolia",wrappedGasToken:"0x4200000000000000000000000000000000000006"},OptimismSepolia:{...D0.OptimismSepolia,displayName:"Optimism Sepolia",explorerUrl:"https://sepolia-optimistic.etherscan.io/",explorerName:"Etherscan",chainId:11155420,icon:"Optimism",symbol:"OP",sdkName:"OptimismSepolia",wrappedGasToken:"0x4200000000000000000000000000000000000006"},Scroll:{...D0.Scroll,displayName:"Scroll",explorerUrl:"https://sepolia.scrollscan.dev/",explorerName:"Scrollscan",chainId:534351,icon:"Scroll",symbol:"SCR",sdkName:"Scroll",wrappedGasToken:"0x5300000000000000000000000000000000000004"},Blast:{...D0.Blast,displayName:"Blast",explorerUrl:"https://testnet.blastscan.io/",explorerName:"Blastscan",chainId:168587773,icon:"Blast",symbol:"BLAST",sdkName:"Blast",wrappedGasToken:"0x9D020B1697035d9d54f115194c9e04a1e4Eb9aF7"},Xlayer:{...D0.Xlayer,displayName:"X Layer",explorerUrl:"https://www.okx.com/web3/explorer/xlayer-test/",explorerName:"OKX Explorer",chainId:195,icon:"Xlayer",symbol:"OKX",sdkName:"Xlayer",wrappedGasToken:"0xa2aFfd8301BfB3c5b815829f2F509f053556D21B"},Mantle:{...D0.Mantle,displayName:"Mantle",explorerUrl:"https://explorer.testnet.mantle.xyz/",explorerName:"Mantle Explorer",chainId:5003,icon:"Mantle",symbol:"MNT",sdkName:"Mantle",wrappedGasToken:"0xa4c4cb2A072eE99f77212Fa18c2B7Ca26DA23905"},Worldchain:{...D0.Worldchain,displayName:"World Chain",explorerUrl:"https://worldchain-sepolia.explorer.alchemy.com/",explorerName:"World Scan",chainId:4801,icon:"Worldchain",sdkName:"Worldchain",symbol:"WORLD"},Unichain:{...D0.Unichain,displayName:"Unichain",explorerUrl:"https://unichain-sepolia.blockscout.com/",explorerName:"Unichain Explorer",chainId:1301,icon:"Unichain",symbol:"UNI",sdkName:"Unichain",wrappedGasToken:"0x4200000000000000000000000000000000000006"},Mezo:{...D0.Mezo,displayName:"Mezo",explorerUrl:"https://explorer.test.mezo.org/",explorerName:"Mezo Explorer",chainId:31611,icon:"Mezo",sdkName:"Mezo",symbol:"MEZO"}},F6e={},{REACT_APP_SEPOLIA_RPC:z6e,REACT_APP_BSC_TESTNET_RPC:R6e,REACT_APP_FUJI_RPC:P6e,REACT_APP_FANTOM_TESTNET_RPC:U6e,REACT_APP_ALFAJORES_RPC:H6e,REACT_APP_SOLANA_DEVNET_RPC:W6e,REACT_APP_MOONBASE_RPC:Y6e,REACT_APP_SUI_TESTNET_RPC:G6e,REACT_APP_APTOS_TESTNET_RPC:$6e,REACT_APP_BASE_SEPOLIA_RPC:V6e,REACT_APP_KLAYTN_TESTNET_RPC:Q6e,REACT_APP_ARBITRUM_SEPOLIA_RPC:q6e,REACT_APP_OPTIMISM_SEPOLIA_RPC:Z6e,REACT_APP_SCROLL_TESTNET_RPC:K6e,REACT_APP_BLAST_TESTNET_RPC:X6e,REACT_APP_XLAYER_TESTNET_RPC:J6e,REACT_APP_MANTLE_TESTNET_RPC:ede,REACT_APP_WORLDCHAIN_TESTNET_RPC:tde,REACT_APP_UNICHAIN_TESTNET_RPC:nde,REACT_APP_MEZO_TESTNET_RPC:rde}=F6e,ide={...wn("Sepolia",z6e),...wn("Bsc",R6e),...wn("Avalanche",P6e),...wn("Fantom",U6e),...wn("Celo",H6e),...wn("Solana",W6e),...wn("Moonbeam",Y6e),...wn("Sui",G6e),...wn("Aptos",$6e),...wn("BaseSepolia",V6e),...wn("ArbitrumSepolia",q6e),...wn("OptimismSepolia",Z6e),...wn("Klaytn",Q6e),...wn("Scroll",K6e),...wn("Blast",X6e),...wn("Xlayer",J6e),...wn("Mantle",ede),...wn("Worldchain",tde),...wn("Unichain",nde),...wn("Mezo",rde)},ade=[{symbol:"BNB",icon:Ue.BNB,decimals:18,tokenId:{chain:"Bsc",address:"native"}},{symbol:"WBNB",icon:Ue.BNB,decimals:18,tokenId:{chain:"Bsc",address:"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd"}},{symbol:"AVAX",icon:Ue.AVAX,decimals:18,tokenId:{chain:"Avalanche",address:"native"}},{symbol:"WAVAX",icon:Ue.AVAX,decimals:18,tokenId:{chain:"Avalanche",address:"0xd00ae08403B9bbb9124bB305C09058E32C39A48c"}},{symbol:"USDC",icon:Ue.USDC,decimals:6,tokenId:{chain:"Avalanche",address:"0x5425890298aed601595a70AB815c96711a31Bc65"}},{symbol:"FTM",icon:Ue.FANTOM,decimals:18,tokenId:{chain:"Fantom",address:"native"}},{symbol:"WFTM",icon:Ue.FANTOM,decimals:18,tokenId:{chain:"Fantom",address:"0xf1277d1Ed8AD466beddF92ef448A132661956621"}},{symbol:"CELO",icon:Ue.CELO,decimals:18,tokenId:{chain:"Celo",address:"0xF194afDf50B03e69Bd7D057c1Aa9e10c9954E4C9"}},{symbol:"USDC.e",icon:Ue.USDC,decimals:6,tokenId:{chain:"Celo",address:"0x72CAaa7e9889E0a63e016748179b43911A3ec9e5"}},{symbol:"GLMR",icon:Ue.GLMR,decimals:18,tokenId:{chain:"Moonbeam",address:"native"}},{symbol:"WGLMR",icon:Ue.GLMR,decimals:18,tokenId:{chain:"Moonbeam",address:"0xD909178CC99d318e4D46e7E66a972955859670E1"}},{symbol:"SOL",icon:Ue.SOLANA,decimals:9,tokenId:{chain:"Solana",address:"native"}},{symbol:"WSOL",tokenId:{chain:"Solana",address:"So11111111111111111111111111111111111111112"},icon:Ue.SOLANA,decimals:9},{symbol:"USDC",tokenId:{chain:"Solana",address:"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU"},icon:Ue.USDC,decimals:6},{symbol:"SUI",tokenId:{chain:"Sui",address:"native"},icon:Ue.SUI,decimals:9},{symbol:"USDC",decimals:6,tokenId:{chain:"Sui",address:"0xa1ec7fc00a6f40db9693ad1415d0c193ad3906494428cf252621037bd7117e29::usdc::USDC"},icon:Ue.USDC},{symbol:"APT",tokenId:{chain:"Aptos",address:"native"},icon:Ue.APT,decimals:8},{symbol:"USDC",decimals:6,tokenId:{chain:"Aptos",address:"0x69091fbab5f7d635ee7ac5098cf0c1efbe31d68fec0f2cd565e8d168daf52832"},icon:Ue.USDC},{symbol:"KLAY",icon:Ue.KLAY,decimals:18,tokenId:{chain:"Klaytn",address:"native"}},{symbol:"WKLAY",name:"wKLAY",icon:Ue.KLAY,decimals:18,tokenId:{chain:"Klaytn",address:"0x0339d5Eb6D195Ba90B13ed1BCeAa97EbD198b106"}},{symbol:"ETH",icon:Ue.ETH,decimals:18,tokenId:{chain:"Sepolia",address:"native"}},{symbol:"WETH",icon:Ue.ETH,decimals:18,tokenId:{chain:"Sepolia",address:"0xeef12A83EE5b7161D3873317c8E0E7B76e0B5D9c"}},{symbol:"USDC",icon:Ue.USDC,decimals:6,tokenId:{chain:"Sepolia",address:"0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238"}},{symbol:"ETH",icon:Ue.ETH,decimals:18,tokenId:{chain:"ArbitrumSepolia",address:"native"}},{symbol:"WETH",icon:Ue.ETH,decimals:18,tokenId:{chain:"ArbitrumSepolia",address:"0x980B62Da83eFf3D4576C647993b0c1D7faf17c73"}},{symbol:"ETH",icon:Ue.ETH,decimals:18,tokenId:{chain:"BaseSepolia",address:"native"}},{symbol:"WETH",icon:Ue.ETH,decimals:18,tokenId:{chain:"BaseSepolia",address:"0x4200000000000000000000000000000000000006"}},{symbol:"ETH",icon:Ue.ETH,decimals:18,tokenId:{chain:"OptimismSepolia",address:"native"}},{symbol:"WETH",icon:Ue.ETH,decimals:18,tokenId:{chain:"OptimismSepolia",address:"0x4200000000000000000000000000000000000006"}},{symbol:"ETH",icon:Ue.SCROLL,decimals:18,tokenId:{chain:"Scroll",address:"native"}},{symbol:"WETH",icon:Ue.SCROLL,decimals:18,tokenId:{chain:"Scroll",address:"0x5300000000000000000000000000000000000004"}},{symbol:"ETH",icon:Ue.BLAST,decimals:18,tokenId:{chain:"Blast",address:"native"}},{symbol:"WETH",icon:Ue.BLAST,decimals:18,tokenId:{chain:"Blast",address:"0x9D020B1697035d9d54f115194c9e04a1e4Eb9aF7"}},{symbol:"OKB",icon:Ue.XLAYER,decimals:18,tokenId:{chain:"Xlayer",address:"native"}},{symbol:"WOKB",icon:Ue.XLAYER,decimals:18,tokenId:{chain:"Xlayer",address:"0xa2aFfd8301BfB3c5b815829f2F509f053556D21B"}},{symbol:"MNT",icon:Ue.MANTLE,decimals:18,tokenId:{chain:"Mantle",address:"native"}},{symbol:"WMNT",icon:Ue.MANTLE,decimals:18,tokenId:{chain:"Mantle",address:"0xa4c4cb2A072eE99f77212Fa18c2B7Ca26DA23905"}},{symbol:"ETH",tokenId:{chain:"Worldchain",address:"native"},decimals:18,icon:Ue.WORLDCHAIN},{symbol:"WETH",tokenId:{chain:"Worldchain",address:"0x4200000000000000000000000000000000000006"},decimals:18,icon:Ue.WORLDCHAIN},{symbol:"ETH",tokenId:{chain:"Unichain",address:"native"},decimals:18,icon:Ue.ETH},{symbol:"WETH",tokenId:{chain:"Unichain",address:"0x4200000000000000000000000000000000000006"},decimals:18,icon:Ue.ETH},{symbol:"USDC",tokenId:{chain:"Unichain",address:"0x31d0220469e10c4E71834a79b1f276d740d3768F"},decimals:6,icon:Ue.USDC},{symbol:"BTC",tokenId:{chain:"Mezo",address:"native"},decimals:18,icon:Ue.BTC}],sde={Bsc:{"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd":{Avalanche:"0x10F1053bF2884b28ee0Bd7a2dDBa237Af3511d29",Fantom:"0xfB174b43228950C2055CFc25AE93f2DCe8E2beF0",Celo:"0xa8050be9389466c3c524F10F131f244ACbf21A0D",Moonbeam:"0x6097E80331B0c6aF4F74D7F2363E70Cb2Fd078A5",Solana:"BaGfF51MQ3a61papTRDYaNefBgTQ9ywnVne5fCff4bxT",Sui:"0xddcf8680a8a4b8a527d8c85ec203274991590c2ea898d1c4635b70164d9c584b::coin::COIN",Aptos:"0xa5894f5ddb8647e6143102aa336ff07374f7b32e88c1c703aef5b7c9a370bf80::coin::T",Klaytn:"0xEFa3626825C33C4cd83850920Ad7Ac0a392E1faE",Sepolia:"0x02CdD5eB55934663F0aD8fbA3516dC7DE4E22894"}},Avalanche:{"0xd00ae08403B9bbb9124bB305C09058E32C39A48c":{Bsc:"0x6cE9E2c8b59bbcf65dA375D3d8AB503c8524caf7",Fantom:"0x0f545Be981C37fB15ab7c65404648761e99016e4",Celo:"0x502c8C83008D9Dd812a7C5fB886C063060C73Dbf",Moonbeam:"0x2E8afeCC19842229358f3650cc3F091908dcbaB4",Solana:"3Ftc5hTz9sG4huk79onufGiebJNDMZNL8HYgdMJ9E7JR",Sui:"0xa600741c469fb57ed01497ddf101e798fa79a9c529bd176675c5c4d970811f80::coin::COIN",Aptos:"0xbe8f4301c0b54e870902b9a23eeb95ce74ac190531782aa3262337ceb145401a::coin::T",Blast:"0x74C6aA987658FcBaB9FdC2ee65f52Ddd5B2cEd95",Klaytn:"0x10257392a2B5e3C4D4bEe1607650a1C0C738202a",Scroll:"0x5Bd1ba0040C16b13894A6EbE3d55708c91eF08bb",Xlayer:"0xb13a464ceE7455A9b2941bFAe1bB1eB5A6833867"},"0x5425890298aed601595a70AB815c96711a31Bc65":{Bsc:"0x1cfeCf72bcBE1E429A21A5B11E708C7c397AaC54",Fantom:"0x6BC4E8D8c1d54656D1DeBCa96efc53aFd1408aD2",Celo:"0xDDB349c976cA2C873644F21f594767Eb5390C831",Moonbeam:"0x6533CE14804D113b1F494dC56c5D60A43cb5C3b5",Solana:"GQtMXZxnuacCFTXVeTvyHi6P9F6chbtzhVc8JgD8hv7c",Sui:"0x2aa8c885d04e676c4e87b7d0f94d4f3b243b1b5d93239d1cc41d5528ce1714c1::coin::COIN",Aptos:"0x2ef7697bdb33361ca39d228671203afc0dea3202e792d79d2072b761d87c834::coin::T"}},Fantom:{"0xf1277d1Ed8AD466beddF92ef448A132661956621":{Bsc:"0x9aB305B792DBdb8253bEE909E7006611Cb45175b",Avalanche:"0x094cB577C21Ab1360178beE74B9591fa12216dAD",Celo:"0xE6F8710cA14CFe7F5aAAD3A799C3d1D92dCba938",Moonbeam:"0x566c1cebc6A4AFa1C122E039C4BEBe77043148Ee",Solana:"DMw2tLaq1bVoAEKtkoUtieSk9bfCPUvubYLatTMsSVop",Sui:"0x14e756ff65e0ac810a5f69ca5276ef5b899a6df3c4717de1f85559d8b5ae6ea6::coin::COIN",Aptos:"0x533c6ade00d15d1e014c41e29e34853e87df92c4e01a6a3f41318dbd098048d6::coin::T",Klaytn:"0x097c8878A0d852581Dc4D8820151094Ddd3663Ac",Sepolia:"0x852132647d301B7EED02589B1dc73545E73c8596"}},Celo:{"0xF194afDf50B03e69Bd7D057c1Aa9e10c9954E4C9":{Bsc:"0x1471698cBD9cAB0228F2EEA9303A2b3aA0ABDC2B",Avalanche:"0xC66d9c2b33c347d4A4441975f4688fcD5DD4c441",Fantom:"0xB18E73a69c3Aaea39a610372537Cf8482622d199",Moonbeam:"0x3406a9b09adf0cb36DC04c1523C4b294C6b79513",Solana:"84F2QX9278ToDmA98u4A86xSV9hz1ovazr8zwGaX6qjS",Sui:"0x81868174a6b11e1acc337b3414f9912455435d486609fb8d50b34312865085f2::coin::COIN",Aptos:"0xecbb0f7e7d049499ca83ca1358344f56557886f6f7adc740d6734cce7bfc9a14::coin::T",Klaytn:"0xC951826bbB310a8160BB78c2eEe6C98246292ba7",Sepolia:"0x648f226f3bDcAEdc844622d604F76935DC05bC24"}},Moonbeam:{"0xD909178CC99d318e4D46e7E66a972955859670E1":{Bsc:"0x5C31B36599ED7f06b09c0ffC7A2F928cE496F046",Avalanche:"0xf080782DF38eD5228D2FC2882d13D56c8f1D6f21",Fantom:"0x41E3CFDFC255A4bF3C8D3560Bc8D3D9b5080338e",Celo:"0x132D2172D89cd9CfD480A8887c6bF92360fB460e",Solana:"8987WGkYa5viiZ9DD8sS3PB5XghKmWjkEgmzvwDuoAEc",Sui:"0xeffae382de96981f7ddd2d294429924827e8f325d612487a12d6a0b249171002::coin::COIN",Aptos:"0x338373b6694f71dbeac5ca4a30503bf5f083888d71678aed31255de416be37c0::coin::T",Sepolia:"0x3F7CD70ECd402BBe71f45A95156A2CAC0d6A822E"}},Solana:{So11111111111111111111111111111111111111112:{Bsc:"0x30f19eBba919954FDc020B8A20aEF13ab5e02Af0",Avalanche:"0xb10563644a6AB8948ee6d7f5b0a1fb15AaEa1E03",Fantom:"0xED1a08Fc69A7008d225890A96aaE258c465CC7ad",Celo:"0x05EEF2AE1A7A938D78598F7d9e8b97A9bED0c9eC",Sui:"0xbc03aaab4c11eb84df8bf39fdc714fa5d5b65b16eb7d155e22c74a68c8d4e17f::coin::COIN",Aptos:"0xdd89c0e695df0692205912fb69fc290418bed0dbe6e4573d744a6d5e6bab6c13::coin::T",Klaytn:"0x48D99C16638E6FFD2ED60375cD35ef6c139e5f41",Moonbeam:"0x5babD0d267Adf2081626654E51d1cABF8c477440",Sepolia:"0x824CB8fC742F8D3300d29f16cA8beE94471169f5"},"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU":{Bsc:"0x51a3cc54eA30Da607974C5D07B8502599801AC08"}},Sui:{native:{Bsc:"0x5A73D76e09Af2E428EC64aE10F91B78AC990B298",Avalanche:"0xfc5128F8556a6F059466E67740e6cC31EE5C2C47",Fantom:"0xd882AB49372eC093E8697B5153f54ab5e7738e3b",Celo:"0xa40d9E69ca9867C4bFbeC11Ce79C939991e9bf26",Solana:"BJZ72CjPQojVoH68mzrd4VQ4nr6KuhbAGnhZEZCujKxY",Aptos:"0x7b22d0e02f653d4fd1caddcfa4719a2b329da56eb81d8f27db703f02466c26a5::coin::T",Moonbeam:"0x2ed4B5B1071A3C676664E9085C0e3826542C1b27",Klaytn:"0xbA5F07a20681Add3A396E7606c6DC9B03d71d28A"}},Aptos:{native:{Bsc:"0x4A7Bd5E135f421057F97BbA8BCeeE5c18334f454",Avalanche:"0x996a3f12C1FcD7339Ea8801f629201e4d42EAD04",Fantom:"0xAb2297E8994149BA91737944E40891881aF762a4",Celo:"0xAC0a2fF7DD597de863878a3372142b07B614C125",Moonbeam:"0xCaa2A1d3BbbA0D1466571e83b4E2CbE04252593D",Solana:"7EvFD3JKCJVdtkAYdaSVKJsrPEJCzy2neJha7TREGrCa",Sui:"0x812d6feb8b84e55d47a0bfcae9fb6a4e7e09be5ec86ce0a729e0f67d5f59f477::coin::COIN"}},Klaytn:{"0x0339d5Eb6D195Ba90B13ed1BCeAa97EbD198b106":{Bsc:"0x79D34FDb686B5D139949E4F92D83EEe376489176",Aptos:"0xa8ffe1ffe3057756019345cdf9cf3d1f1a3d9a355147dd9440878c448a057579::coin::T",Celo:"0x8e50fC4b7F8B7018E72475f78C640F973218C8Cf",Avalanche:"0x84f3298Bcc019BD5B995756494095e1Eb72B565C",Solana:"6p7qTfX4tRFtQovxwT77Jn9HFQEV7nxLbux9C31Tgm23",Fantom:"0x72A1C24dA7F08d11a7668E228Ec287Fc6ec16E48",Sepolia:"0x142D0E977768cA4De6f2161D9E5B5C9F00435F9e",Moonbeam:"0x6eFf019D79D4136e57A7FC141967F3D0AD41089a",Sui:"0xd4a59fb612b162df75a9d190c0f72098dcae883e88bd0eb28667c31f8208dc3c::coin::COIN"}},Sepolia:{"0xeef12A83EE5b7161D3873317c8E0E7B76e0B5D9c":{Solana:"6F5YWWrUMNpee8C6BDUc6DmRvYRMDDTgJHwKhbXuifWs",Celo:"0x890ad4a7eD5bD08b7d6638515157dF3bF4BaD1Bc",Bsc:"0x667a61Efa611399970AE927637dD6f9A16f51e40",Moonbeam:"0xa7276055a1d45fB9982575411801e10ac9970Da8",ArbitrumSepolia:"0x97Ee87C7Db6049669a518730a2Ee60d1Fc58844E",Avalanche:"0x12bFE94230daaE3d48067577F45b7b031dD357f3",Fantom:"0x7F96D67186561Aa17cEb699494E94bEE3F3499D4"},"0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238":{Aptos:"0x3f2912a313c5bea312dbf19f9080101d2e762df6546a6fe9f60a4de72c93d015::coin::T",Solana:"23Adx8na44L3M1Nf9RrUpQPb41eufdRXKseg25FfcJtw",Celo:"0xD6A34325e5F6BE27b7006bf06651444196Da579a",Bsc:"0xb8850F591019F0794F813426d4A4A9b5fB8f23C8",BaseSepolia:"0x3F872340B6A75397aa9b0A463000349962a8795D",ArbitrumSepolia:"0x27B8F40Cf0915e729ae5A96970E91045Fe9724dF",Fantom:"0xa686203C86140142230f44A724281E1BEd09c369",Klaytn:"0x25f2a470a2e1E75DDAc40289AB277eDE4DD98aFa",Sui:"0x6529fef82a8a09470c550a3129bbd889030b62306f0c14161224b1a40ef1346f::coin::COIN"}},OptimismSepolia:{"0x4200000000000000000000000000000000000006":{ArbitrumSepolia:"0xa2610700cCA8361DECD27dB2564848C530f20813"}}},ode={chains:O6e,tokens:ade,wrappedTokens:sde,rpcs:ide,guardianSet:{index:0,keys:["0x13947Bd48b18E53fdAeEe77F3473391aC727C638"]}},{chains:t9}=uv.DEVNET,cde={Ethereum:{...t9.Ethereum,sdkName:"Ethereum",displayName:"EVM",explorerUrl:"",explorerName:"",wrappedGasToken:"0xDDb64fE46a91D46ee29420539FC25FD07c5FEa3E",chainId:1,icon:"Ethereum",symbol:"ETH"},Osmosis:{...t9.Osmosis,displayName:"Osmosis",sdkName:"Osmosis",explorerUrl:"",explorerName:"",wrappedGasToken:"",chainId:"osmosis-1002",icon:"Osmosis",symbol:"OSMO"},Wormchain:{...t9.Wormchain,sdkName:"Wormchain",displayName:"Wormchain",explorerUrl:"",explorerName:"",wrappedGasToken:"",chainId:"wormchain-1",icon:"Osmosis",symbol:"OSMO"},Terra2:{...t9.Terra2,sdkName:"Terra2",displayName:"Terra",explorerUrl:"",explorerName:"",wrappedGasToken:"",chainId:"localterra",icon:"Terra2",symbol:"OSMO"}},lde={},{REACT_APP_ETHEREUM_DEVNET_RPC:ude}=lde,fde={...wn("Ethereum",ude)},dde=[{symbol:"ETH",icon:Ue.ETH,decimals:18,tokenId:{chain:"Ethereum",address:"native"}},{symbol:"WETH",icon:Ue.ETH,decimals:18,tokenId:{chain:"Ethereum",address:"0xDDb64fE46a91D46ee29420539FC25FD07c5FEa3E"}},{symbol:"TKN",icon:Ue.ETH,decimals:18,tokenId:{chain:"Ethereum",address:"0x2D8BE6BF0baA74e0A907016679CaE9190e80dD0A"}}],hde={chains:cde,tokens:dde,wrappedTokens:{},rpcs:fde,guardianSet:{index:0,keys:["0x13947Bd48b18E53fdAeEe77F3473391aC727C638"]}},aq="https://wormholescan.io/#/",pde="2.5.0-beta.15-development",bde="62897b9c992049c23a5d8ff3c03bf1cf5e77421b",X_=["Ethereum","Solana","Arbitrum","Base","Sui","Bsc","Optimism","Unichain","Fantom","Polygon","Avalanche","Celo","Moonbeam","Klaytn","Scroll","Evmos","Mantle","Berachain","Mezo"];function mde(t){var n;const e=typeof window>"u"||(n=window.location)==null?void 0:n.host;return function(r){const i={meta:{version:pde,hash:bde,host:e},...r};if(console.debug("Wormhole Connect event:",i),t)try{t(i)}catch(a){console.error("Error handling event:",a)}}}const tg=t=>[...Array(t).keys()],sq=(t,e)=>t.map(n=>n[e]),$f=t=>tg(t[0].length).map(e=>tg(t.length).map(n=>t[n][e])),yde=(t,e,n)=>{const r=new Set(Array.isArray(e)?e:[e]);return t.filter((i,a)=>r.has(a)!==n)};function $He(t,e=!1){if(t.length===0)throw new Error("Can't calculate median of empty array");const n=e?t:[...t].sort((s,c)=>s>c?1:s<c?-1:0),r=Math.floor(n.length/2);if(n.length%2===1)return n[r];const i=n[r-1],a=n[r];if(typeof i=="bigint"&&typeof a=="bigint")return(i+a)/2n;if(typeof i=="number"&&typeof a=="number")return(i+a)/2;throw new Error("Can't calculate median of array with mixed number and bigint")}function gde(t){return["string","number","symbol","bigint","boolean"].includes(typeof t)}const J_=t=>t.length===2&&!Array.isArray(t[0])&&Array.isArray(t[1]),ng=t=>t.length===0?[]:Array.isArray(t[0])?t.map(([e,n])=>Array.isArray(n)?(J_(n)?ng(n):n).map(r=>[e,r].flat()):[[e,n]]).flat():J_(t)?ng(t[1]).map(e=>[t[0],e]):t,vde=(t,e)=>{const n=ng(t);if(n.length===0)throw new Error("Invalid mapping: empty");const r=e===void 0?[tg(n[0].length-1),[n[0].length-1]]:e.map(g=>typeof g=="number"?[g]:g);let i=[],a=!0;const s=(g,M)=>{const C=Array.from(new Set(g[0]).values()),T=new Map(C.map(S=>[S,[]]));for(const[S,I]of g[0].entries())T.get(I).push(S);if(g.length===1){const S=Object.fromEntries(C.map(I=>[I,T.get(I).map(N=>M[N].length===1?M[N][0]:M[N])]));if(a){for(const I of T.values())if(I.length>1)return a=!1,S;i.push(S)}return S}const D=$f(g.slice(1));return Object.fromEntries(C.map(S=>{const I=T.get(S),N=$f(I.map(k=>D[k])),B=I.map(k=>M[k]);return[S,s(N,B)]}))},c=$f(n),l=g=>{const M=c[g];if(M===void 0)throw new Error(`Invalid shape: column ${g} does not exist`);return M},[d,p]=r.map(g=>g.map(M=>l(M)));if(d.length===0)throw new Error("Invalid shape: empty key set");if(p.length===0)throw new Error("Invalid shape: empty value set");for(const g of d)for(const M of g)if(!gde(M))throw new Error(`Invalid key: ${M} in ${g}`);const m=s(d,$f(p));if(a)for(const g of i)for(const M of Object.keys(g))g[M]=g[M][0];return m};function pn(t,e){const n=r=>{const i=(...a)=>a.reduce((s,c)=>s?s[c.toString()]??void 0:void 0,r);return Object.assign(i,{has:(...a)=>i(...a)!==void 0,get:(...a)=>i(...a),subMap:a=>n(r[a.toString()])})};return n(vde(t,e))}function IN(t){let e=null;return()=>(e||(e=t()),e)}function Mde(t){try{return t(),!1}catch{return!0}}function VHe(t,e,n){return t<e?e:t>n?n:t}var xde=["int","uint","bytes","array","switch"],oq="big",fv=6,K6=t=>typeof t=="number"||typeof t=="bigint",$h=t=>t instanceof Uint8Array,wde=t=>K6(t)||$h(t),D4=t=>xde.includes(t==null?void 0:t.binary),Ade=t=>D4(t)||Array.isArray(t)&&t.every(D4),Cde=t=>typeof(t==null?void 0:t.from)=="number",Ede=t=>typeof(t==null?void 0:t.from)=="bigint",Sde=t=>Cde(t)||Ede(t),Vh=t=>$h(t==null?void 0:t.from),Tde=t=>Sde(t)||Vh(t),cq=(t,e)=>{if(t!==e)throw new Error(`size mismatch: layout size: ${t}, data size: ${e}`);return e},jm=(t,e)=>"size"in t&&t.size!==void 0?cq(t.size,e):e,SS=(t,e)=>{if(t!=e)throw new Error(`value mismatch: (constant) layout value: ${t}, data value: ${e}`)},TS=(t,e,n)=>{const r=(d,p)=>p===void 0?[0,d.length]:Array.isArray(p)?p:[p,d.length],[i,a]=r(t,n==null?void 0:n.customSlice),[s,c]=r(e,n==null?void 0:n.dataSlize),l=a-i;cq(l,c-s);for(let d=0;d<t.length;++d)if(t[d+i]!==e[d+s])throw new Error(`binary data mismatch: layout value: ${t}, offset: ${i}, data value: ${e}, offset: ${s}`)};function lq(t,e){const n=e[t.idTag??"id"];return t.layouts.find(([r])=>(Array.isArray(r)?r[1]:r)==n)}function uq(t){return Tf(t,Os)}var Os=Symbol("staticCalc");function Ide(t,e){const n=[],r=Tf(t,e,n);if(r===null)throw new Error(`coding error: couldn't calculate layout size for layout ${t} with data ${e}`);return[r,n]}function eO(t,e,n){const r=i=>(n!==void 0&&n.push(i),i);switch(t.binary){case"int":case"uint":return t.size;case"bytes":{const i="lengthSize"in t?t.lengthSize|0:0;if("layout"in t){const{custom:s}=t,c=Tf(t.layout,s===void 0?e:typeof s.from=="function"?e!==Os?r(s.from(e)):Os:s.from,n);return c===null?"size"in t?t.size??null:null:i+jm(t,c)}const{custom:a}=t;return $h(a)?i+a.length:Vh(a)?i+a.from.length:a===void 0?e!==Os?i+jm(t,e.length):null:e!==Os?i+jm(t,r(a.from(e)).length):null}case"array":{const i="length"in t?t.length:void 0;if(e===Os){if(i!==void 0){const s=Tf(t.layout,Os,n);return s!==null?i*s:null}return null}let a=0;if(i!==void 0&&i!==e.length)throw new Error(`array length mismatch: layout length: ${i}, data length: ${e.length}`);"lengthSize"in t&&t.lengthSize!==void 0&&(a+=t.lengthSize);for(let s=0;s<e.length;++s){const c=Tf(t.layout,e[s],n);if(c===null)return null;a+=c}return a}case"switch":{if(e!==Os){const[a,s]=lq(t,e),c=Tf(s,e,n);return c!==null?t.idSize+c:null}let i=null;for(const[a,s]of t.layouts){const c=Tf(s,Os,n);if(i===null)i=c;else if(c!==i)return null}return t.idSize+i}}}function Tf(t,e,n){if(D4(t))return eO(t,e,n);let r=0;for(const i of t){let a;if(e===Os)a=Os;else if(!("omit"in i)||!i.omit){if(!(i.name in e))throw new Error(`missing data for layout item: ${i.name}`);a=e[i.name]}const s=eO(i,a,n);if(s===null){if(e!==Os)throw new Error(`coding error: couldn't calculate size for layout item: ${i.name}`);return null}r+=s}return r}var Rx=(t,e)=>{t.bytes.set(e,t.offset),t.offset+=e.length},tO=t=>t.bytesConversions[t.position++];function oo(t,e,n){const[r,i]=Ide(t,e),a={bytes:n??new Uint8Array(r),offset:0};if(km(t,e,a,{bytesConversions:i,position:0}),a.offset!==a.bytes.length)throw new Error(`encoded data is shorter than expected: ${a.bytes.length} > ${a.offset}`);return n?a.offset:a.bytes}var Dde=2**(fv*8);function Vf(t,e,n,r=oq,i=!1){if(!i&&t<0)throw new Error(`Value ${t} is negative but unsigned`);if(typeof t=="number"){if(!Number.isInteger(t))throw new Error(`Value ${t} is not an integer`);if(e>fv){if(t>=Dde)throw new Error(`Value ${t} is too large to be safely converted into an integer`);if(i&&t<-281474976710656)throw new Error(`Value ${t} is too small to be safely converted into an integer`)}}const a=2n**BigInt(e*8-(i?1:0));if(t>=a)throw new Error(`Value ${t} is too large for ${e} bytes`);if(i&&t<-a)throw new Error(`Value ${t} is too small for ${e} bytes`);for(let s=0;s<e;++s)n.bytes[n.offset+s]=Number(BigInt(t)>>BigInt(8*(r==="big"?e-s-1:s))&0xffn);n.offset+=e}function km(t,e,n,r){if(D4(t))nO(t,e,n,r);else for(const i of t)try{nO(i,e[i.name],n,r)}catch(a){throw a.message=`when serializing item '${i.name}': ${a.message}`,a}}function nO(t,e,n,r){switch(t.binary){case"int":case"uint":{const i=(()=>{var a;return K6(t.custom)?("omit"in t&&t.omit||SS(t.custom,e),t.custom):K6((a=t==null?void 0:t.custom)==null?void 0:a.from)?t.custom.from:t.custom!==void 0?t.custom.from(e):e})();Vf(i,t.size,n,t.endianness,t.binary==="int");break}case"bytes":{const i=n.offset;if("lengthSize"in t&&t.lengthSize!==void 0&&(n.offset+=t.lengthSize),"layout"in t){const{custom:a}=t;let s;a===void 0?s=e:typeof a.from!="function"?s=a.from:s=tO(r),km(t.layout,s,n,r)}else{const{custom:a}=t;$h(a)?("omit"in t&&t.omit||TS(a,e),Rx(n,a)):Vh(a)?Rx(n,a.from):Rx(n,a!==void 0?tO(r):e)}if("lengthSize"in t&&t.lengthSize!==void 0){const a=n.offset-i-t.lengthSize,s=n.offset;n.offset=i,Vf(a,t.lengthSize,n,t.lengthEndianness),n.offset=s}else jm(t,n.offset-i);break}case"array":{if("length"in t&&t.length!==e.length)throw new Error(`array length mismatch: layout length: ${t.length}, data length: ${e.length}`);"lengthSize"in t&&t.lengthSize!==void 0&&Vf(e.length,t.lengthSize,n,t.lengthEndianness);for(let i=0;i<e.length;++i)km(t.layout,e[i],n,r);break}case"switch":{const[i,a]=lq(t,e),s=Array.isArray(i)?i[0]:i;Vf(s,t.idSize,n,t.idEndianness),km(a,e,n,r);break}}}function fq(t){const e=t.custom;if(!("cachedSerializedFrom"in e)&&(e.cachedSerializedFrom=oo(t.layout,e.from),"size"in t&&t.size!==void 0&&t.size!==e.cachedSerializedFrom.length))throw new Error("Layout specification error: custom.from does not serialize to specified size");return e.cachedSerializedFrom}function co(t,e,n){const r=n??!0,i={bytes:e,offset:0,end:e.length},a=l3(t,i);if(r&&i.offset!==i.end)throw new Error(`encoded data is longer than expected: ${i.end} > ${i.offset}`);return r?a:[a,i.offset]}function _m(t,e){const n=t.offset+e;if(n>t.end)throw new Error(`chunk is shorter than expected: ${t.end} < ${n}`);t.offset=n}function l3(t,e){if(!Array.isArray(t))return rO(t,e);let n={};for(const r of t)try{(r.omit?{}:n)[r.name]=rO(r,e)}catch(i){throw i.message=`when deserializing item '${r.name}': ${i.message}`,i}return n}function n9(t,e,n=oq,r=!1){let i=0n;for(let a=0;a<e;++a)i|=BigInt(t.bytes[t.offset+a])<<BigInt(8*(n==="big"?e-a-1:a));return r&&t.bytes[t.offset+(n==="big"?0:e-1)]&128&&(i-=1n<<BigInt(8*e)),_m(t,e),e>fv?i:Number(i)}function rO(t,e){switch(t.binary){case"int":case"uint":{const n=n9(e,t.size,t.endianness,t.binary==="int"),{custom:r}=t;return K6(r)?(SS(r,n),r):K6(r==null?void 0:r.from)?(SS(r.from,n),r.to):r!==void 0?r.to(n):n}case"bytes":{const n="lengthSize"in t&&t.lengthSize!==void 0?n9(e,t.lengthSize,t.lengthEndianness):t==null?void 0:t.size;if("layout"in t){const{custom:c}=t,l=e.offset;let d;if(n===void 0)d=l3(t.layout,e);else{const p={...e,end:e.offset+n};if(_m(e,n),d=l3(t.layout,p),p.offset!==p.end)throw new Error(`read less data than expected: ${p.offset-e.offset} < ${n}`)}return c!==void 0?typeof c.from!="function"?(TS(fq(t),e.bytes,{dataSlize:[l,e.offset]}),c.to):c.to(d):d}const{custom:r}=t;{let c,l;if($h(r)?c=r:Vh(r)&&(c=r.from,l=r.to),c!==void 0){const d=n??c.length,p=e.bytes.subarray(e.offset,e.offset+d);return TS(c,p),_m(e,d),l??c}}const i=e.offset,a=n!==void 0?e.offset+n:e.end;_m(e,a-i);const s=e.bytes.subarray(i,a);return r!==void 0?r.to(s):s}case"array":{let n=[];const{layout:r}=t,i=()=>{const s=l3(r,e);n.push(s)};let a=null;if("length"in t&&t.length!==void 0?a=t.length:"lengthSize"in t&&t.lengthSize!==void 0&&(a=n9(e,t.lengthSize,t.lengthEndianness)),a!==null)for(let s=0;s<a;++s)i();else for(;e.offset<e.end;)i();return n}case"switch":{const n=n9(e,t.idSize,t.idEndianness),{layouts:r}=t;if(r.length===0)throw new Error("switch item has no layouts");const i=typeof r[0][0]=="number",a=r.find(([d])=>i?d===n:d[0]===n);if(a===void 0)throw new Error(`unknown id value: ${n}`);const[s,c]=a,l=l3(c,e);return{[t.idTag??"id"]:i?n:s[1],...l}}}}function iO(t,e){return Om(t,e)}function aO(t,e){switch(t.binary){case"bytes":if("layout"in t){const{custom:n}=t;return n===void 0||typeof n.from!="function"?Om(t.layout,n?n.from:e):e}case"int":case"uint":{const{custom:n}=t;return t!=null&&t.omit?void 0:wde(n)?n:Tde(n)?n.to:e}case"array":return Array.isArray(e)?e.map(n=>Om(t.layout,n)):void 0;case"switch":{const n=e[t.idTag??"id"],[r,i]=t.layouts.find(([a])=>(Array.isArray(a)?a[1]:a)==n);return{[t.idTag??"id"]:n,...Om(i,e)}}}}function Om(t,e){if(e=e??{},D4(t))return aO(t,e);const n={};for(const r of t){const i=aO(r,e[r.name]??{});i!==void 0&&(n[r.name]=i)}return n}function Nde(t,e){const[n,r]=Bde(t);if(!n)throw new Error("Cannot uniquely distinguished the given layouts");return i=>{const a=r(i);return a.length===0?null:a[0]}}function IS(t){return t.reduce((e,n)=>e|BigInt(1)<<BigInt(n),BigInt(0))}function r9(t){const e=[];for(let n=0n;t>0n;t>>=1n,++n)t&1n&&e.push(Number(n));return e}function R0(t){let e=0;for(;t>0n;t>>=1n)e+=Number(t&1n);return e}var sO=t=>t>0?2**(8*t)-1:1/0;function oO(t,e,n){var r;switch(t.binary){case"int":case"uint":{const i=K6(t.custom)?t.custom:K6((r=t==null?void 0:t.custom)==null?void 0:r.from)?t.custom.from:null;if(i!==null&&e!==null){const a={bytes:new Uint8Array(t.size),offset:0};Vf(i,t.size,a,t.endianness,t.binary==="int"),n.push([e,a.bytes])}return[t.size,t.size]}case"bytes":{const i="lengthSize"in t?t.lengthSize|0:0;let a,s;if("layout"in t){const{custom:l}=t;if(l!==void 0&&typeof l.from!="function")a=fq(t),s=a.length;else{const d=uq(t.layout);d!==null&&(s=d)}}else{const{custom:l}=t;$h(l)?(a=l,s=l.length):Vh(l)&&(a=l.from,s=l.from.length)}if(i>0&&e!==null){if(s!==void 0){const l={bytes:new Uint8Array(i),offset:0},d=t.lengthEndianness;Vf(s,i,l,d,!1),n.push([e,l.bytes])}e+=i}if(a!==void 0)return e!==null&&n.push([e,a]),[i+a.length,i+a.length];const c="size"in t&&t.size!==void 0?[t.size,t.size]:void 0;if("layout"in t){const l=Fm(t.layout,e,n);return c??[i+l[0],i+l[1]]}return c??[i,sO(i)]}case"array":{if("length"in t){let a=[];const s=Fm(t.layout,0,a);if(e!==null)if(s[0]!==s[1]){if(t.length>0)for(const[c,l]of a)n.push([e+c,l])}else for(let c=0;c<t.length;++c)for(const[l,d]of a)n.push([e+l+c*s[0],d]);return[t.length*s[0],t.length*s[1]]}const i=t.lengthSize|0;return[i,sO(i)]}case"switch":{const i=t.layouts.map(l=>[]),{idSize:a,idEndianness:s}=t,c=t.layouts.map(([l,d],p)=>{const m=Array.isArray(l)?l[0]:l;if(e!==null){const M={bytes:new Uint8Array(a),offset:0};Vf(m,a,M,s),i[p].push([0,M.bytes])}const g=Fm(d,e!==null?a:null,i[p]);return[g[0]+a,g[1]+a]});return e!==null&&i.every(l=>l.length>0)&&(()=>{const l=Math.min(...i.map(p=>p.at(-1)[0]+p.at(-1)[1].length)),d=i.map(p=>0);for(let p=0;p<l;){let m=null,g=0;for(;g<i.length;){let M=d[g];const C=i[g],[T,D]=C[M];if(T+D.length<=p){if(++M,M===C.length)return;d[g]=M,p=C[M][0];break}const S=D[p-T];if(m===null&&(m=S),S!==m){++p;break}++g}g===i.length&&(n.push([e+p,new Uint8Array([m])]),++p)}})(),[Math.min(...c.map(([l])=>l)),Math.max(...c.map(([l,d])=>d))]}}}function Fm(t,e,n){if(!Array.isArray(t))return oO(t,e,n);let r=[0,0];for(const i of t){const a=oO(i,e,n);r[0]+=a[0],r[1]+=a[1],e!==null&&(e=a[0]===a[1]?e+a[0]:null)}return r}function Lde(t){const e=new Map;let n=[];const r=i=>{for(;n.length>0&&n[0][0]<i;){const a=n[0][0]+1,s=n.findIndex(([c])=>a<=c);s===-1?n=[]:n.splice(0,s),e.set(a,IS(n.map(([,c])=>c)))}};for(const[[i,a],s]of t){r(i);const c=n.findIndex(([l])=>l>a);c===-1?n.push([a,s]):n.splice(c,0,[a,s]),e.set(i,IS(n.map(([,l])=>l)))}return r(1/0),e}function Bde(t){if(t.length===0)throw new Error("Cannot discriminate empty set of layouts");const e=0n,n=(1n<<BigInt(t.length))-1n,r=t.map(()=>[]),i=t.map((N,B)=>Fm(N,0,r[B])),a=i.map((N,B)=>[N,B]).sort(([[N]],[[B]])=>N-B),s=(()=>{let N=n;const B=new Map;for(const[[k],O]of a)N^=1n<<BigInt(O),B.set(k,N);return B})(),c=Lde(a),l=t.length-Math.max(...[...c.values()].map(N=>R0(N))),d=N=>{let B=n;for(const[k,O]of s){if(N<k)break;B=O}return B},p=N=>{let B=e;for(const[k,O]of c){if(N<k)break;B=O}return B},m=Array.from({length:Math.max(...r.map(N=>N.length>0?N.at(-1)[0]+N.at(-1)[1].length:0))}).map(()=>[]);for(let N=0;N<r.length;++N)for(const[B,k]of r[N])for(let O=0;O<k.length;++O)m[B+O].push([k[O],N]);let g=[];for(const[N,B]of m.entries()){const k=d(N),O=k^IS(B.map(([,R])=>R)),z=n^k,_=new Map;for(const[R,w]of B)_.has(R)||_.set(R,e),_.set(R,_.get(R)|1n<<BigInt(w));let F=t.length-Math.max(R0(O),R0(z));for(const R of _.values()){const w=B.length-R0(R)+R0(z);F=Math.min(F,w)}if(F!==0){if(F===t.length-1)return[!0,R=>r9(R.length<=N?z:_.get(R[N])??e)];g.push([F,N,z,_,O])}}if(l===t.length-1)return[!0,N=>r9(p(N.length))];g.sort(([N],[B])=>B-N);let M=!0;const C=new Map,T=new Map,D=(N,B)=>{C.set(N,B),T.has(R0(N))||T.set(R0(N),[]),T.get(R0(N)).push(N)},S=(N,B)=>{if(R0(N)<=1||C.has(N))return;let k=0;const O=new Map;for(const _ of r9(N)){const F=i[_][0],R=c.get(F)&N;O.set(F,R),k=Math.max(k,R0(R))}k=R0(N)-k;const z=[];for(const[_,F,R,w,o]of B){const u=new Map;let h=0;for(const[x,E]of w){const v=E&N;R0(v)>0&&(u.set(x,v),h+=R0(v))}const b=R&N;let y=u.size>0?_:0;for(const x of u.values()){const E=h-R0(x)+R0(b);y=Math.min(y,E)}if(y!==0){if(y===R0(N)-1){D(N,[F,b,u]);return}z.push([y,F,b,u,o&N])}}if(k===R0(N)-1){D(N,"size");return}if(z.sort(([_],[F])=>F-_),z.length>0&&z[0][0]>=k){const[,_,F,R,w]=z[0];D(N,[_,F,R]),S(F,z);for(const o of R.values())S(o|w,z.slice(1));return}if(k>0){D(N,"size");for(const _ of O.values())S(_,z);return}D(N,"indistinguishable"),M=!1};S(n,g);const I=N=>{for(let B=R0(N)+1;B<t.length-2;++B)for(const k of T.get(B)??[])if((N&k)==N)return C.get(k);throw new Error("Implementation error in layout discrimination algorithm")};return[M,N=>{let B=n,k=C.get(B);for(;k!=="indistinguishable";){if(k==="size")B&=p(N.length);else{const[O,z,_]=k;if(N.length<=O)B&=z;else{const F=N[O];for(const[R,w]of _)R!==F&&(B^=B&w);B^=B&z}}if(R0(B)<=1)break;k=C.get(B)??I(B)}return r9(B)}]}var X6=(t,e)=>({...t,binary:"bytes",...e===void 0?{}:Ade(e)?{layout:e}:e instanceof Uint8Array||Vh(e)||!Array.isArray(e)?{custom:e}:{layout:e[0],custom:e[1]}});function jde(t,e){const n=Object.fromEntries(t.map(([i,a])=>[a,i])),r=Object.fromEntries(t);return{binary:"uint",size:(e==null?void 0:e.size)??1,endianness:(e==null?void 0:e.endianness)??"big",custom:{to:i=>{const a=n[i];if(a===void 0)throw new Error(`Invalid enum value: ${i}`);return a},from:i=>r[i]}}}function kde(t,e){return{binary:"uint",size:Math.ceil(t.length/8),custom:{to:n=>{const r={};for(let i=0;i<t.length;++i)t[i]&&(r[t[i]]=(BigInt(n)&1n<<BigInt(i))!==0n);return r},from:n=>{let r=0n;for(let i=0;i<t.length;++i)t[i]&&n[t[i]]&&(r|=1n<<BigInt(i));return t.length>fv?r:Number(r)}}}}function _de(t,e){return Number(Number(t).toFixed(e))}function B6(t,e){if(Ode(t,e),t=t.toString(),t.includes("e"))throw new Error("Scientific notation is not supported yet by Amount");const n=t.split(".");if(n.length>2)throw"Too many decimals";let[r,i]=n.length===0?["0",""]:n.length===1?[n[0],""]:n;if(i=i.padEnd(e,"0"),i.length>e){if(BigInt(i.substring(e))!==0n)throw new Error("Amount: invalid input. Decimals too low.");i=i.substring(0,e)}return{amount:BigInt(r+i).toString(),decimals:e}}function ca(t,e){if(t.decimals<=e)return t;const n=BigInt(t.decimals-e);return{amount:(gn(t)/10n**n*10n**n).toString(),decimals:t.decimals}}function _u(t,e){if(t.decimals===e)return t;if(t.amount==="0")return{amount:t.amount,decimals:e};const n=e-t.decimals;if(n>0)return{amount:t.amount+"0".repeat(n),decimals:e};if(BigInt(t.amount.substring(t.amount.length+n))===0n)return{amount:t.amount.substring(0,t.amount.length+n),decimals:e};throw new Error(`scaleAmount(${JSON.stringify(t)}, ${e}) would result in altered amount. Use truncateAmount first if you intended to truncate it.`)}function Sr(t,e){return{amount:t.toString(),decimals:e}}function gn(t){return dq(t),BigInt(t.amount)}function y0(t,e){dq(t);let n=t.amount.substring(0,t.amount.length-t.decimals).padStart(1,"0"),r=t.amount.substring(t.amount.length-t.decimals).padStart(t.decimals,"0");if(e!==void 0){for(;r.length>e&&r[r.length-1]==="0";)r=r.substring(0,r.length-1);r=r.padEnd(e,"0")}else r=r.replace(/0+$/,"");return r.length>0?`${n}.${r}`:n}function Fo(t){return Number(y0(t))}function cO(t,e){return y0(Sr(t,e))}function Ode(t,e){if(typeof t=="number"){if(!isFinite(t))throw new Error("Amount: invalid input. Amount must be finite");if(t<0)throw new Error("Amount: invalid input. Amount cannot be negative")}else if(!/^[0-9\.]*$/.test(t))throw new Error("Amount: invalid input. Must only contain digits.");if(!isFinite(e))throw new Error("Amount: invalid input. Decimals must be finite")}function dq(t){if(!/^[0-9]*$/.test(t.amount))throw new Error("Amount: invalid input. Must only contain digits.");if(t.decimals<0)throw new Error("Amount: invalid input. Decimals must be >= 0");if(!isFinite(t.decimals))throw new Error("Amount: invalid input. Decimals must be a finite number.")}const eh=(t=0,e=0,n=0)=>new Date(Date.now()+(t*60*60+e*60+n)*1e3);/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */function N4(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"}function hq(t,e){return Array.isArray(e)?e.length===0?!0:t?e.every(n=>typeof n=="string"):e.every(n=>Number.isSafeInteger(n)):!1}function pq(t){if(typeof t!="function")throw new Error("function expected");return!0}function th(t,e){if(typeof e!="string")throw new Error(`${t}: string expected`);return!0}function Qh(t){if(!Number.isSafeInteger(t))throw new Error(`invalid integer: ${t}`)}function rg(t){if(!Array.isArray(t))throw new Error("array expected")}function ig(t,e){if(!hq(!0,e))throw new Error(`${t}: array of strings expected`)}function DN(t,e){if(!hq(!1,e))throw new Error(`${t}: array of numbers expected`)}function $p(...t){const e=a=>a,n=(a,s)=>c=>a(s(c)),r=t.map(a=>a.encode).reduceRight(n,e),i=t.map(a=>a.decode).reduce(n,e);return{encode:r,decode:i}}function dv(t){const e=typeof t=="string"?t.split(""):t,n=e.length;ig("alphabet",e);const r=new Map(e.map((i,a)=>[i,a]));return{encode:i=>(rg(i),i.map(a=>{if(!Number.isSafeInteger(a)||a<0||a>=n)throw new Error(`alphabet.encode: digit index outside alphabet "${a}". Allowed: ${t}`);return e[a]})),decode:i=>(rg(i),i.map(a=>{th("alphabet.decode",a);const s=r.get(a);if(s===void 0)throw new Error(`Unknown letter: "${a}". Allowed: ${t}`);return s}))}}function hv(t=""){return th("join",t),{encode:e=>(ig("join.decode",e),e.join(t)),decode:e=>(th("join.decode",e),e.split(t))}}function Fde(t,e="="){return Qh(t),th("padding",e),{encode(n){for(ig("padding.encode",n);n.length*t%8;)n.push(e);return n},decode(n){ig("padding.decode",n);let r=n.length;if(r*t%8)throw new Error("padding: invalid, string should have whole number of bytes");for(;r>0&&n[r-1]===e;r--)if((r-1)*t%8===0)throw new Error("padding: invalid, string has too much padding");return n.slice(0,r)}}}function lO(t,e,n){if(e<2)throw new Error(`convertRadix: invalid from=${e}, base cannot be less than 2`);if(n<2)throw new Error(`convertRadix: invalid to=${n}, base cannot be less than 2`);if(rg(t),!t.length)return[];let r=0;const i=[],a=Array.from(t,c=>{if(Qh(c),c<0||c>=e)throw new Error(`invalid integer: ${c}`);return c}),s=a.length;for(;;){let c=0,l=!0;for(let d=r;d<s;d++){const p=a[d],m=e*c,g=m+p;if(!Number.isSafeInteger(g)||m/e!==c||g-p!==m)throw new Error("convertRadix: carry overflow");const M=g/n;c=g%n;const C=Math.floor(M);if(a[d]=C,!Number.isSafeInteger(C)||C*n+c!==g)throw new Error("convertRadix: carry overflow");if(l)C?l=!1:r=d;else continue}if(i.push(c),l)break}for(let c=0;c<t.length-1&&t[c]===0;c++)i.push(0);return i.reverse()}const bq=(t,e)=>e===0?t:bq(e,t%e),ag=(t,e)=>t+(e-bq(t,e)),zm=(()=>{let t=[];for(let e=0;e<40;e++)t.push(2**e);return t})();function DS(t,e,n,r){if(rg(t),e<=0||e>32)throw new Error(`convertRadix2: wrong from=${e}`);if(n<=0||n>32)throw new Error(`convertRadix2: wrong to=${n}`);if(ag(e,n)>32)throw new Error(`convertRadix2: carry overflow from=${e} to=${n} carryBits=${ag(e,n)}`);let i=0,a=0;const s=zm[e],c=zm[n]-1,l=[];for(const d of t){if(Qh(d),d>=s)throw new Error(`convertRadix2: invalid data word=${d} from=${e}`);if(i=i<<e|d,a+e>32)throw new Error(`convertRadix2: carry overflow pos=${a} from=${e}`);for(a+=e;a>=n;a-=n)l.push((i>>a-n&c)>>>0);const p=zm[a];if(p===void 0)throw new Error("invalid carry");i&=p-1}if(i=i<<n-a&c,!r&&a>=e)throw new Error("Excess padding");if(!r&&i>0)throw new Error(`Non-zero padding: ${i}`);return r&&a>0&&l.push(i>>>0),l}function zde(t){Qh(t);const e=2**8;return{encode:n=>{if(!N4(n))throw new Error("radix.encode input should be Uint8Array");return lO(Array.from(n),e,t)},decode:n=>(DN("radix.decode",n),Uint8Array.from(lO(n,t,e)))}}function NN(t,e=!1){if(Qh(t),t<=0||t>32)throw new Error("radix2: bits should be in (0..32]");if(ag(8,t)>32||ag(t,8)>32)throw new Error("radix2: carry overflow");return{encode:n=>{if(!N4(n))throw new Error("radix2.encode input should be Uint8Array");return DS(Array.from(n),8,t,!e)},decode:n=>(DN("radix2.decode",n),Uint8Array.from(DS(n,t,8,e)))}}function uO(t){return pq(t),function(...e){try{return t.apply(null,e)}catch{}}}function Rde(t,e){return Qh(t),pq(e),{encode(n){if(!N4(n))throw new Error("checksum.encode: input should be Uint8Array");const r=e(n).slice(0,t),i=new Uint8Array(n.length+t);return i.set(n),i.set(r,n.length),i},decode(n){if(!N4(n))throw new Error("checksum.decode: input should be Uint8Array");const r=n.slice(0,-t),i=n.slice(-t),a=e(r).slice(0,t);for(let s=0;s<t;s++)if(a[s]!==i[s])throw new Error("Invalid checksum");return r}}}const fO=$p(NN(4),dv("0123456789ABCDEF"),hv("")),dO=$p(NN(6),dv("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),Fde(6),hv("")),Pde=t=>$p(zde(58),dv(t),hv("")),NS=Pde("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),QHe=t=>$p(Rde(4,e=>t(t(e))),NS),LS=$p(dv("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),hv("")),hO=[996825010,642813549,513874426,1027748829,705979059];function _8(t){const e=t>>25;let n=(t&33554431)<<5;for(let r=0;r<hO.length;r++)(e>>r&1)===1&&(n^=hO[r]);return n}function pO(t,e,n=1){const r=t.length;let i=1;for(let a=0;a<r;a++){const s=t.charCodeAt(a);if(s<33||s>126)throw new Error(`Invalid prefix (${t})`);i=_8(i)^s>>5}i=_8(i);for(let a=0;a<r;a++)i=_8(i)^t.charCodeAt(a)&31;for(let a of e)i=_8(i)^a;for(let a=0;a<6;a++)i=_8(i);return i^=n,LS.encode(DS([i%zm[30]],30,5,!1))}function Ude(t){const e=t==="bech32"?1:734539939,n=NN(5),r=n.decode,i=n.encode,a=uO(r);function s(m,g,M=90){th("bech32.encode prefix",m),N4(g)&&(g=Array.from(g)),DN("bech32.encode",g);const C=m.length;if(C===0)throw new TypeError(`Invalid prefix length ${C}`);const T=C+7+g.length;if(M!==!1&&T>M)throw new TypeError(`Length ${T} exceeds limit ${M}`);const D=m.toLowerCase(),S=pO(D,g,e);return`${D}1${LS.encode(g)}${S}`}function c(m,g=90){th("bech32.decode input",m);const M=m.length;if(M<8||g!==!1&&M>g)throw new TypeError(`invalid string length: ${M} (${m}). Expected (8..${g})`);const C=m.toLowerCase();if(m!==C&&m!==m.toUpperCase())throw new Error("String must be lowercase or uppercase");const T=C.lastIndexOf("1");if(T===0||T===-1)throw new Error('Letter "1" must be present between prefix and data only');const D=C.slice(0,T),S=C.slice(T+1);if(S.length<6)throw new Error("Data must be at least 6 characters long");const I=LS.decode(S).slice(0,-6),N=pO(D,I,e);if(!S.endsWith(N))throw new Error(`Invalid checksum in ${m}: expected "${N}"`);return{prefix:D,words:I}}const l=uO(c);function d(m){const{prefix:g,words:M}=c(m,!1);return{prefix:g,words:M,bytes:r(M)}}function p(m,g){return s(m,i(g))}return{encode:s,decode:c,encodeFromBytes:p,decodeToBytes:d,decodeUnsafe:l,fromWords:r,fromWordsUnsafe:a,toWords:i}}const M5=Ude("bech32"),mq=(t,e)=>e.startsWith(t)?e.slice(t.length):e,Hde=/^(?:0x)?[0-9a-fA-F]+$/,dr={valid:t=>Hde.test(t),decode:t=>fO.decode(mq("0x",t).toUpperCase()),encode:(t,e=!1)=>(t=typeof t=="string"?Tr.encode(t):t,(e?"0x":"")+fO.encode(t).toLowerCase())},Wde=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,Vp={valid:t=>Wde.test(t),decode:dO.decode,encode:t=>dO.encode(typeof t=="string"?Tr.encode(t):t)},yq={decode:NS.decode,encode:t=>NS.encode(typeof t=="string"?Tr.encode(t):t)},L1={decode:t=>(typeof t!="string"&&(t=dr.encode(t,!0)),t===""||t==="0x"?0n:BigInt(t)),encode:(t,e=!1)=>L1.toString(t,e),toString:(t,e=!1)=>{let n=t.toString(16);return n=n.length%2===1?n="0"+n:n,e?"0x"+n:n},toBytes:(t,e)=>{typeof t=="number"&&(t=L1.toBigInt(t));const n=dr.decode(L1.toString(t));if(!e)return n;if(e<n.length)throw new Error(`Can't fit ${t} into ${e} bytes.`);return Tr.zpad(n,e)},toNumber:t=>{if(t>BigInt(Number.MAX_SAFE_INTEGER))throw new Error(`Invalid cast: ${t} exceeds MAX_SAFE_INTEGER`);return Number(t)},toBigInt:t=>{if(t>Number.MAX_SAFE_INTEGER)throw new Error(`Invalid cast: ${t} exceeds MAX_SAFE_INTEGER`);return BigInt(t)}},Tr={encode:t=>new TextEncoder().encode(t),decode:t=>new TextDecoder().decode(t),equals:(t,e)=>t.length===e.length&&t.every((n,r)=>n===e[r]),zpad:(t,e,n=!0)=>n?Tr.concat(new Uint8Array(e-t.length),t):Tr.concat(t,new Uint8Array(e-t.length)),concat:(...t)=>{const e=t.reduce((i,a)=>i+a.length,0),n=new Uint8Array(e);let r=0;return t.forEach(i=>{n.set(i,r),r+=i.length}),n}},LN=[[1,"Solana"],[2,"Ethereum"],[3,"Terra"],[4,"Bsc"],[5,"Polygon"],[6,"Avalanche"],[7,"Oasis"],[8,"Algorand"],[9,"Aurora"],[10,"Fantom"],[11,"Karura"],[12,"Acala"],[13,"Klaytn"],[14,"Celo"],[15,"Near"],[16,"Moonbeam"],[17,"Neon"],[18,"Terra2"],[19,"Injective"],[20,"Osmosis"],[21,"Sui"],[22,"Aptos"],[23,"Arbitrum"],[24,"Optimism"],[25,"Gnosis"],[26,"Pythnet"],[28,"Xpla"],[29,"Btc"],[30,"Base"],[32,"Sei"],[34,"Scroll"],[35,"Mantle"],[36,"Blast"],[37,"Xlayer"],[38,"Linea"],[39,"Berachain"],[40,"Seievm"],[43,"Snaxchain"],[44,"Unichain"],[45,"Worldchain"],[46,"Ink"],[47,"HyperEVM"],[48,"Monad"],[50,"Mezo"],[3104,"Wormchain"],[4e3,"Cosmoshub"],[4001,"Evmos"],[4002,"Kujira"],[4003,"Neutron"],[4004,"Celestia"],[4005,"Stargaze"],[4006,"Seda"],[4007,"Dymension"],[4008,"Provenance"],[4009,"Noble"],[10002,"Sepolia"],[10003,"ArbitrumSepolia"],[10004,"BaseSepolia"],[10005,"OptimismSepolia"],[10006,"Holesky"],[10007,"PolygonSepolia"]],[qHe,gq]=$f(LN),pv=pn(LN,[1,0]),g1=pn(LN),qh=t=>pv.has(t),BS=t=>g1.has(t),Kn=t=>{switch(typeof t){case"string":if(qh(t))return pv(t);break;case"number":if(BS(t))return t;break}throw Error(`Cannot convert to ChainId: ${t}`)},Qu=t=>{switch(typeof t){case"string":if(qh(t))return t;break;case"number":if(BS(t))return g1(t);break;case"bigint":if(BS(Number(t)))return g1.get(Number(t));break}throw Error(`Cannot convert to Chain: ${t}`)},BN=[["Evm",["Acala","Arbitrum","Aurora","Avalanche","Base","Bsc","Celo","Ethereum","Fantom","Gnosis","Karura","Klaytn","Moonbeam","Neon","Oasis","Optimism","Polygon","Sepolia","ArbitrumSepolia","BaseSepolia","OptimismSepolia","Holesky","PolygonSepolia","Mantle","Scroll","Blast","Xlayer","Linea","Berachain","Seievm","Snaxchain","Unichain","Worldchain","Ink","HyperEVM","Monad","Mezo"]],["Solana",["Solana","Pythnet"]],["Cosmwasm",["Cosmoshub","Evmos","Injective","Kujira","Osmosis","Sei","Terra","Terra2","Wormchain","Xpla","Dymension","Neutron","Stargaze","Celestia","Seda","Provenance","Noble"]],["Btc",["Btc"]],["Algorand",["Algorand"]],["Sui",["Sui"]],["Aptos",["Aptos"]],["Near",["Near"]]];sq(BN,0);const vq=pn(BN),Yi=pn(BN,[1,0]),Yde=[["Evm","hex"],["Solana","base58"],["Cosmwasm","bech32"],["Btc","bech32"],["Algorand","algorandAppId"],["Sui","hex"],["Aptos","hex"],["Near","sha256"]],Gde=pn(Yde),Zh={byAddress:(t,e)=>Object.values(t).find(n=>$de(n.address,e)),native:t=>Zh.byAddress(t,"native"),bySymbol:(t,e)=>{const n=Object.values(t).filter(r=>r.symbol===e);return n&&n.length>0?n:void 0},byKey:(t,e)=>{const n=Object.entries(t).find(([r])=>e===r);return n?n[1]:void 0}},$de=(t,e)=>t.toLowerCase()===e.toLowerCase();var bO;(function(t){t[t.Finalized=1]="Finalized",t[t.Immediate=200]="Immediate",t[t.Safe=201]="Safe"})(bO||(bO={}));const Vde=[["Ethereum",32]];pn(Vde);const Qde=[["Solana",32],["Ethereum",72],["Bsc",15],["Optimism",512],["Base",512],["Arbitrum",4096],["Blast",512],["Xlayer",300],["Scroll",300],["Mantle",512],["Worldchain",512],["Polygon",32],["Fantom",1],["Celo",1],["Moonbeam",1],["Karura",1],["Acala",1],["Oasis",1],["Avalanche",0],["Sui",0],["Algorand",0],["Aptos",0],["Klaytn",0],["Sei",0],["Near",0],["Osmosis",0],["Terra",0],["Terra2",0],["Xpla",0],["Injective",0],["Berachain",1],["Seievm",1],["Snaxchain",512],["Unichain",1024],["Ink",512],["HyperEVM",1],["Monad",1],["Mezo",1],["Cosmoshub",0],["Evmos",0],["Kujira",0],["Neutron",0],["Celestia",0],["Stargaze",0],["Dymension",0],["Provenance",0],["Noble",0],["Sepolia",72],["ArbitrumSepolia",4096],["BaseSepolia",512],["OptimismSepolia",512],["PolygonSepolia",32]],Mq=pn(Qde),qde=[["Acala",12e3],["Algorand",3300],["Aptos",4e3],["Arbitrum",260],["ArbitrumSepolia",260],["Aurora",3e3],["Avalanche",2e3],["Base",2e3],["BaseSepolia",2e3],["Blast",2e3],["Bsc",3e3],["Celo",5e3],["Cosmoshub",5e3],["Ethereum",15e3],["Evmos",2e3],["Fantom",2500],["Gnosis",5e3],["Holesky",15e3],["Injective",2500],["Karura",12e3],["Klaytn",1e3],["Kujira",3e3],["Mantle",2e3],["Moonbeam",12e3],["Monad",1e3],["Near",1500],["Neon",3e4],["Oasis",6e3],["Optimism",2e3],["OptimismSepolia",2e3],["Osmosis",6e3],["Polygon",2e3],["PolygonSepolia",2e3],["Scroll",3e3],["Sei",400],["Sepolia",15e3],["Solana",400],["Sui",3e3],["Terra",6e3],["Terra2",6e3],["Unichain",1e3],["Xpla",5e3],["Xlayer",3e3],["Worldchain",2e3],["Ink",1e3],["Wormchain",5e3],["Btc",6e5],["Pythnet",400],["Dymension",5e3],["Celestia",5e3],["Neutron",5e3],["Stargaze",5e3],["Seda",7500],["Berachain",2e3],["Mezo",4e3]],xq=pn(qde);function bv(t){const e=Mq.get(t);if(e===void 0)throw new Error("Cannot find finality for "+t);const n=xq.get(t);if(n===void 0)throw new Error("Cannot find block time for "+t);return e*n}const Zde=[["Evm",18],["Solana",9],["Sui",9],["Aptos",8],["Cosmwasm",6],["Algorand",6],["Btc",8],["Near",12]],jN=pn(Zde),Kde=[["Mainnet",[["Ethereum",{name:"Etherscan",baseUrl:"https://etherscan.io/",endpoints:{tx:"tx/",account:"address/"}}],["Solana",{name:"Solana Explorer",baseUrl:"https://explorer.solana.com/",endpoints:{tx:"tx/",account:"address/"}}],["Polygon",{name:"PolygonScan",baseUrl:"https://polygonscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Bsc",{name:"BscScan",baseUrl:"https://bscscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Avalanche",{name:"Snowtrace",baseUrl:"https://snowtrace.io/",endpoints:{tx:"tx/",account:"address/"}}],["Fantom",{name:"FTMscan",baseUrl:"https://ftmscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Celo",{name:"Celo Explorer",baseUrl:"https://explorer.celo.org/mainnet/",endpoints:{tx:"tx/",account:"address/"}}],["Moonbeam",{name:"Moonscan",baseUrl:"https://moonscan.io/",endpoints:{tx:"tx/",account:"address/"}}],["Sui",{name:"Sui Explorer",baseUrl:"https://explorer.sui.io/",endpoints:{tx:"txblock/",account:"address/"}}],["Aptos",{name:"Aptos Explorer",baseUrl:"https://explorer.aptoslabs.com/",endpoints:{tx:"txn/",account:"account/"}}],["Sei",{name:"Sei Explorer",baseUrl:"https://sei.explorers.guru/",endpoints:{tx:"transaction/",account:"address/"}}],["Karura",{name:"Karura Explorer",baseUrl:"https://blockscout.karura.network/",endpoints:{tx:"tx/",account:"address/"}}],["Acala",{name:"Acala Explorer",baseUrl:"https://blockscout.acala.network/",endpoints:{tx:"tx/",account:"address/"}}]]],["Testnet",[["Ethereum",{name:"Etherscan",baseUrl:"https://goerli.etherscan.io/",endpoints:{tx:"tx/",account:"address/"}}],["Polygon",{name:"PolygonScan",baseUrl:"https://mumbai.polygonscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Bsc",{name:"BscScan",baseUrl:"https://testnet.bscscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Avalanche",{name:"Snowtrace",baseUrl:"https://testnet.snowtrace.io/",endpoints:{tx:"tx/",account:"address/"}}],["Fantom",{name:"FTMscan",baseUrl:"https://testnet.ftmscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Celo",{name:"Celo Explorer",baseUrl:"https://explorer.celo.org/alfajores/",endpoints:{tx:"tx/",account:"address/"}}],["Moonbeam",{name:"Moonscan",baseUrl:"https://moonbase.moonscan.io/",endpoints:{tx:"tx/",account:"address/"}}],["Solana",{name:"Solana Explorer",baseUrl:"https://explorer.solana.com/",endpoints:{tx:"tx/",account:"address/"},networkQuery:{default:"Devnet",Testnet:"?cluster=testnet",Devnet:"?cluster=devnet"}}],["Sui",{name:"Sui Explorer",baseUrl:"https://explorer.sui.io/",endpoints:{tx:"txblock/",account:"address/"},networkQuery:{default:"Testnet",Testnet:"?network=testnet",Devnet:"?network=devnet"}}],["Aptos",{name:"Aptos Explorer",baseUrl:"https://explorer.aptoslabs.com/",endpoints:{tx:"txn/",account:"account/"},networkQuery:{default:"Testnet",Testnet:"?network=testnet",Devnet:"?network=devnet"}}],["Sei",{name:"Sei Explorer",baseUrl:"https://sei.explorers.guru/",endpoints:{tx:"transaction/",account:"address/"}}],["Karura",{name:"Karura Explorer",baseUrl:"https://blockscout.karura-testnet.aca-staging.network/",endpoints:{tx:"tx/",account:"address/"}}],["Acala",{name:"Acala Explorer",baseUrl:"https://blockscout.acala-dev.aca-dev.network/",endpoints:{tx:"tx/",account:"address/"}}]]]],Xde=pn(Kde),Jde=(t,e)=>t==="Devnet"?void 0:Xde.get(t,e),e5e=[["Mainnet",[["Ethereum","https://ethereum-rpc.publicnode.com"],["Solana","https://api.mainnet-beta.solana.com"],["Polygon","https://polygon-bor-rpc.publicnode.com"],["Bsc","https://bsc-rpc.publicnode.com"],["Avalanche","https://avalanche-c-chain-rpc.publicnode.com"],["Fantom","https://rpcapi.fantom.network"],["Celo","https://celo-rpc.publicnode.com"],["Moonbeam","https://moonbeam-rpc.publicnode.com"],["Sui","https://rpc.mainnet.sui.io"],["Aptos","https://fullnode.mainnet.aptoslabs.com/v1"],["Arbitrum","https://arb1.arbitrum.io/rpc"],["Optimism","https://mainnet.optimism.io"],["Base","https://mainnet.base.org"],["Osmosis","https://osmosis-rpc.polkachu.com"],["Cosmoshub","https://cosmos-rpc.publicnode.com:443"],["Evmos","https://evmos-rpc.polkachu.com"],["Injective","https://sentry.tm.injective.network"],["Wormchain","https://wormchain-rpc.quickapi.com"],["Xpla","https://dimension-rpc.xpla.dev"],["Sei","https://sei-rpc.polkachu.com/"],["Algorand","https://mainnet-api.algonode.cloud"],["Terra","https://terra-classic-rpc.publicnode.com"],["Terra2","https://terra-rpc.polkachu.com"],["Karura","https://eth-rpc-karura.aca-api.network"],["Acala","https://eth-rpc-acala.aca-api.network"],["Oasis","https://emerald.oasis.dev"],["Dymension","https://dymension-rpc.polkachu.com/"],["Stargaze","https://stargaze-rpc.polkachu.com/"],["Celestia","https://celestia-rpc.polkachu.com/"],["Neutron","https://neutron-rpc.polkachu.com/"],["Blast","https://rpc.blast.io"],["Provenance","https://rpc.provenance.io/"],["Noble","https://noble-rpc.polkachu.com/"],["Linea","https://rpc.linea.build"],["Scroll","https://scroll-rpc.publicnode.com"],["Xlayer","https://xlayerrpc.okx.com/"],["Gnosis","https://gnosis-rpc.publicnode.com"],["Mantle","https://rpc.mantle.xyz"],["Klaytn","https://public-en.node.kaia.io"],["Snaxchain","https://mainnet.snaxchain.io"],["Berachain","https://rpc.berachain.com"],["Unichain","https://mainnet.unichain.org"],["Worldchain","https://worldchain-mainnet.g.alchemy.com/public"],["Ink","https://rpc-qnd.inkonchain.com"]]],["Testnet",[["Bsc","https://data-seed-prebsc-1-s3.binance.org:8545"],["Avalanche","https://api.avax-test.network/ext/bc/C/rpc"],["Fantom","https://rpc.testnet.fantom.network"],["Celo","https://alfajores-forno.celo-testnet.org"],["Solana","https://api.devnet.solana.com"],["Oasis","https://testnet.emerald.oasis.io"],["Moonbeam","https://rpc.api.moonbase.moonbeam.network"],["Sui","https://fullnode.testnet.sui.io"],["Aptos","https://fullnode.testnet.aptoslabs.com/v1"],["Sei","https://sei-testnet-rpc.polkachu.com"],["Injective","https://testnet.sentry.tm.injective.network"],["Osmosis","https://rpc.testnet.osmosis.zone"],["Cosmoshub","https://rpc.sentry-02.theta-testnet.polypore.xyz"],["Evmos","https://evmos-testnet-rpc.polkachu.com"],["Wormchain","https://gateway.testnet.xlabs.xyz/"],["Xpla","https://cube-rpc.xpla.dev"],["Sepolia","https://ethereum-sepolia.publicnode.com"],["Algorand","https://testnet-api.algonode.cloud"],["Terra","https://bombay.stakesystems.io"],["Terra2","https://terra-testnet-rpc.polkachu.com"],["ArbitrumSepolia","https://sepolia-rollup.arbitrum.io/rpc"],["OptimismSepolia","https://sepolia.optimism.io"],["BaseSepolia","https://sepolia.base.org"],["PolygonSepolia","https://rpc-amoy.polygon.technology/"],["Mantle","https://rpc.testnet.mantle.xyz"],["Karura","https://eth-rpc-karura-testnet.aca-staging.network"],["Acala","https://eth-rpc-acala-testnet.aca-staging.network"],["Blast","https://sepolia.blast.io"],["Berachain","https://bepolia.rpc.berachain.com/"],["Seievm","https://evm-rpc-testnet.sei-apis.com/"],["Linea","https://rpc.sepolia.linea.build"],["Xlayer","https://testrpc.xlayer.tech/"],["Scroll","https://scroll-sepolia-rpc.publicnode.com"],["Gnosis","https://rpc.chiadochain.net"],["Klaytn","https://public-en-kairos.node.kaia.io"],["Snaxchain","https://testnet.snaxchain.io"],["Unichain","https://sepolia.unichain.org"],["Worldchain","https://worldchain-sepolia.g.alchemy.com/public"],["Ink","https://rpc-qnd-sepolia.inkonchain.com"],["HyperEVM","https://api.hyperliquid-testnet.xyz/evm"],["Monad","https://testnet-rpc.monad.xyz"],["Noble","https://noble-testnet-rpc.polkachu.com/"],["Mezo","https://rpc.test.mezo.org"]]],["Devnet",[["Ethereum","http://eth-devnet:8545"],["Bsc","http://eth-devnet2:8545"],["Solana","http://solana-devnet:8899"]]]],t5e=pn(e5e),wq=(t,e)=>t5e.get(t,e)??"",Aq=[["Mainnet",[["Aptos",1n],["Algorand","mainnet-v1.0"],["Near","mainnet"],["Cosmoshub","cosmoshub-4"],["Evmos","evmos_9001-2"],["Injective","injective-1"],["Osmosis","osmosis-1"],["Sei","pacific-1"],["Terra","columbus-5"],["Terra2","phoenix-1"],["Wormchain","wormchain"],["Xpla","dimension_37-1"],["Kujira","kaiyo-1"],["Solana","5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d"],["Sui","35834a8a"],["Acala",787n],["Arbitrum",42161n],["Aurora",1313161554n],["Avalanche",43114n],["Base",8453n],["Bsc",56n],["Celo",42220n],["Ethereum",1n],["Fantom",250n],["Gnosis",100n],["Karura",686n],["Klaytn",8217n],["Moonbeam",1284n],["Neon",245022934n],["Oasis",42262n],["Optimism",10n],["Polygon",137n],["Neutron","neutron-1"],["Stargaze","stargaze-1"],["Celestia","celestia"],["Dymension","dymension_1100-1"],["Provenance","pio-mainnet-1"],["Noble","noble-1"],["Xlayer",196n],["Mantle",5000n],["Scroll",534352n],["Blast",81457n],["Linea",59144n],["Snaxchain",2192n],["Berachain",80094n],["Unichain",130n],["Worldchain",480n],["Ink",57073n]]],["Testnet",[["Aptos",2n],["Algorand","testnet-v1.0"],["Near","testnet"],["Cosmoshub","theta-testnet-001"],["Evmos","evmos_9000-4"],["Injective","injective-888"],["Osmosis","osmo-test-5"],["Sei","atlantic-2"],["Terra","bombay-12"],["Terra2","pisco-1"],["Wormchain","wormchain-testnet-0"],["Xpla","cube_47-5"],["Kujira","harpoon-4"],["Solana","EtWTRABZaYq6iMfeYKouRu166VU2xqa1wcaWoxPkrZBG"],["Sui","4c78adac"],["Acala",597n],["Arbitrum",421613n],["Aurora",1313161555n],["Avalanche",43113n],["Base",84531n],["Bsc",97n],["Celo",44787n],["Ethereum",5n],["Fantom",4002n],["Gnosis",10200n],["Karura",596n],["Klaytn",1001n],["Moonbeam",1287n],["Neon",245022940n],["Oasis",42261n],["Optimism",420n],["Polygon",80001n],["Sepolia",11155111n],["ArbitrumSepolia",421614n],["BaseSepolia",84532n],["OptimismSepolia",11155420n],["PolygonSepolia",80002n],["Holesky",17000n],["Neutron","pion-1"],["Celestia","mocha-4"],["Seda","seda-1-testnet"],["Noble","grand-1"],["Blast",168587773n],["Mantle",5003n],["Scroll",534351n],["Berachain",80069n],["Seievm",1328n],["Snaxchain",13001n],["Unichain",1301n],["Worldchain",4801n],["Ink",763373n],["HyperEVM",998n],["Xlayer",195n],["Linea",59141n],["Monad",10143n],["Mezo",31611n]]],["Devnet",[["Aptos",0n],["Algorand","sandnet-v1.0"],["Bsc",1397n],["Ethereum",1337n],["Injective","injective_devnet_fake"],["Solana","8wF6jKV3cKwyaVkWcoV9KpDqmkjvEYno9hKZrKx8TbZn"]]]],mv=pn(Aq),n5e=pn(Aq,[2,[0,1]]);function Cq(t,e){const r=n5e(e).filter(([i,a])=>Yi(a)===t);if(r.length!==1)throw new Error(`Platform ${t} has multiple chains with native chain id ${e}`);return r[0]}const r5e=[["Mainnet","https://iris-api.circle.com/v1/attestations"],["Testnet","https://iris-api-sandbox.circle.com/v1/attestations"]],mO=pn(r5e),i5e=[["Mainnet",[["Ethereum","0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"],["Avalanche","0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"],["Optimism","0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85"],["Arbitrum","0xaf88d065e77c8cC2239327C5EDb3A432268e5831"],["Solana","EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"],["Base","0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"],["Polygon","0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"],["Sui","0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC"],["Aptos","0xbae207659db88bea0cbead6da0ed00aac12edcdda169e591cd41c94180b46f3b"],["Unichain","0x078D782b760474a361dDA0AF3839290b0EF57AD6"]]],["Testnet",[["Sepolia","0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238"],["Avalanche","0x5425890298aed601595a70AB815c96711a31Bc65"],["OptimismSepolia","0x5fd84259d66Cd46123540766Be93DFE6D43130D7"],["ArbitrumSepolia","0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d"],["Solana","4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU"],["BaseSepolia","0x036CbD53842c5426634e7929541eC2318f3dCF7e"],["Polygon","0x9999f7Fea5938fD3b1E26A12c3f2fb024e194f97"],["Sui","0xa1ec7fc00a6f40db9693ad1415d0c193ad3906494428cf252621037bd7117e29::usdc::USDC"],["Aptos","0x69091fbab5f7d635ee7ac5098cf0c1efbe31d68fec0f2cd565e8d168daf52832"],["Unichain","0x31d0220469e10c4E71834a79b1f276d740d3768F"]]]],la=pn(i5e),kN=[["Mainnet",[["Ethereum",0],["Avalanche",1],["Optimism",2],["Arbitrum",3],["Solana",5],["Base",6],["Polygon",7],["Sui",8],["Aptos",9],["Unichain",10]]],["Testnet",[["Sepolia",0],["Avalanche",1],["OptimismSepolia",2],["ArbitrumSepolia",3],["Solana",5],["BaseSepolia",6],["Polygon",7],["Sui",8],["Aptos",9],["Unichain",10]]]],a5e=pn(kN,[[0,1],2]),jS=pn(kN,[[0,2],1]),[ZHe,KHe]=$f(kN),kS=(t,e)=>a5e.has(t,e),yO=(t,e)=>jS.has(t,e),gO=(t,e)=>la.has(t,e),Px=(t,e)=>{switch(typeof e){case"string":if(kS(t,e))return e;break;case"number":if(yO(t,e))return jS(t,e);break;case"bigint":const n=Number(e);if(yO(t,n))return jS(t,n);break}throw Error(`Cannot convert to Chain: ${e}`)},s5e=[["Mainnet",[["Solana","worm2ZoG2kUd4vFXhvjh93UUH596ayRfgQ2MgjNMTth"],["Ethereum","0x98f3c9e6E3fAce36bAAd05FE09d375Ef1464288B"],["Terra","terra1dq03ugtd40zu9hcgdzrsq6z2z4hwhc9tqk2uy5"],["Bsc","0x98f3c9e6E3fAce36bAAd05FE09d375Ef1464288B"],["Polygon","0x7A4B5a56256163F07b2C80A7cA55aBE66c4ec4d7"],["Avalanche","0x54a8e5f9c4CbA08F9943965859F6c34eAF03E26c"],["Oasis","0xfE8cD454b4A1CA468B57D79c0cc77Ef5B6f64585"],["Algorand","842125965"],["Aurora","0xa321448d90d4e5b0A732867c18eA198e75CAC48E"],["Fantom","0x126783A6Cb203a3E35344528B26ca3a0489a1485"],["Karura","0xa321448d90d4e5b0A732867c18eA198e75CAC48E"],["Acala","0xa321448d90d4e5b0A732867c18eA198e75CAC48E"],["Klaytn","0x0C21603c4f3a6387e241c0091A7EA39E43E90bb7"],["Celo","0xa321448d90d4e5b0A732867c18eA198e75CAC48E"],["Near","contract.wormhole_crypto.near"],["Injective","inj17p9rzwnnfxcjp32un9ug7yhhzgtkhvl9l2q74d"],["Aptos","0x5bc11445584a763c1fa7ed39081f1b920954da14e04b32440cba863d03e19625"],["Sui","0xaeab97f96cf9877fee2883315d459552b2b921edc16d7ceac6eab944dd88919c"],["Moonbeam","0xC8e2b0cD52Cf01b0Ce87d389Daa3d414d4cE29f3"],["Terra2","terra12mrnzvhx3rpej6843uge2yyfppfyd3u9c3uq223q8sl48huz9juqffcnhp"],["Arbitrum","0xa5f208e072434bC67592E4C49C1B991BA79BCA46"],["Optimism","0xEe91C335eab126dF5fDB3797EA9d6aD93aeC9722"],["Gnosis","0xa321448d90d4e5b0A732867c18eA198e75CAC48E"],["Pythnet","H3fxXJ86ADW2PNuDDmZJg6mzTtPxkYCpNuQUTgmJ7AjU"],["Base","0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6"],["Xlayer","0x194B123c5E96B9b2E49763619985790Dc241CAC0"],["Xpla","xpla1jn8qmdda5m6f6fqu9qv46rt7ajhklg40ukpqchkejcvy8x7w26cqxamv3w"],["Sei","sei1gjrrme22cyha4ht2xapn3f08zzw6z3d4uxx6fyy9zd5dyr3yxgzqqncdqn"],["Wormchain","wormhole1ufs3tlq4umljk0qfe8k5ya0x6hpavn897u2cnf9k0en9jr7qarqqaqfk2j"],["Neutron","neutron16rerygcpahqcxx5t8vjla46ym8ccn7xz7rtc6ju5ujcd36cmc7zs9zrunh"],["Blast","0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6"],["Scroll","0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6"],["Mantle","0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6"],["Snaxchain","0xc1BA3CC4bFE724A08FbbFbF64F8db196738665f4"],["Berachain","0xCa1D5a146B03f6303baF59e5AD5615ae0b9d146D"],["Unichain","0xCa1D5a146B03f6303baF59e5AD5615ae0b9d146D"],["Worldchain","0xcbcEe4e081464A15d8Ad5f58BB493954421eB506"],["Ink","0xCa1D5a146B03f6303baF59e5AD5615ae0b9d146D"]]],["Testnet",[["Solana","3u8hJUVTA4jH1wYAyUur7FFZVQ8H635K3tSHHF4ssjQ5"],["Ethereum","0x706abc4E45D419950511e474C7B9Ed348A4a716c"],["Terra","terra1pd65m0q9tl3v8znnz5f5ltsfegyzah7g42cx5v"],["Bsc","0x68605AD7b15c732a30b1BbC62BE8F2A509D74b4D"],["Polygon","0x0CBE91CF822c73C2315FB05100C2F714765d5c20"],["Avalanche","0x7bbcE28e64B3F8b84d876Ab298393c38ad7aac4C"],["Oasis","0xc1C338397ffA53a2Eb12A7038b4eeb34791F8aCb"],["Algorand","86525623"],["Aurora","0xBd07292de7b505a4E803CEe286184f7Acf908F5e"],["Fantom","0x1BB3B4119b7BA9dfad76B0545fb3F531383c3bB7"],["Karura","0x64fb09E405D2043ed7785a29E296C766D56F2056"],["Acala","0x64fb09E405D2043ed7785a29E296C766D56F2056"],["Klaytn","0x1830CC6eE66c84D2F177B94D544967c774E624cA"],["Celo","0x88505117CA88e7dd2eC6EA1E13f0948db2D50D56"],["Near","wormhole.wormhole.testnet"],["Injective","inj1xx3aupmgv3ce537c0yce8zzd3sz567syuyedpg"],["Osmosis","osmo1hggkxr0hpw83f8vuft7ruvmmamsxmwk2hzz6nytdkzyup9krt0dq27sgyx"],["Aptos","0x5bc11445584a763c1fa7ed39081f1b920954da14e04b32440cba863d03e19625"],["Sui","0x31358d198147da50db32eda2562951d53973a0c0ad5ed738e9b17d88b213d790"],["Moonbeam","0xa5B7D85a8f27dd7907dc8FdC21FA5657D5E2F901"],["Neon","0x268557122Ffd64c85750d630b716471118F323c8"],["Terra2","terra19nv3xr5lrmmr7egvrk2kqgw4kcn43xrtd5g0mpgwwvhetusk4k7s66jyv0"],["Arbitrum","0xC7A204bDBFe983FCD8d8E61D02b475D4073fF97e"],["Optimism","0x6b9C8671cdDC8dEab9c719bB87cBd3e782bA6a35"],["Gnosis","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Pythnet","EUrRARh92Cdc54xrDn6qzaqjA77NRrCcfbr8kPwoTL4z"],["Xpla","xpla1upkjn4mthr0047kahvn0llqx4qpqfn75lnph4jpxfn8walmm8mqsanyy35"],["Base","0x23908A62110e21C04F3A4e011d24F901F911744A"],["Sei","sei1nna9mzp274djrgzhzkac2gvm3j27l402s4xzr08chq57pjsupqnqaj0d5s"],["Sepolia","0x4a8bc80Ed5a4067f1CCf107057b8270E0cC11A78"],["Wormchain","wormhole16jzpxp0e8550c9aht6q9svcux30vtyyyyxv5w2l2djjra46580wsazcjwp"],["ArbitrumSepolia","0x6b9C8671cdDC8dEab9c719bB87cBd3e782bA6a35"],["BaseSepolia","0x79A1027a6A159502049F10906D333EC57E95F083"],["OptimismSepolia","0x31377888146f3253211EFEf5c676D41ECe7D58Fe"],["Holesky","0xa10f2eF61dE1f19f586ab8B6F2EbA89bACE63F7a"],["Neutron","neutron1enf63k37nnv9cugggpm06mg70emcnxgj9p64v2s8yx7a2yhhzk2q6xesk4"],["Mantle","0x376428e7f26D5867e69201b275553C45B09EE090"],["PolygonSepolia","0x6b9C8671cdDC8dEab9c719bB87cBd3e782bA6a35"],["Scroll","0x055F47F1250012C6B20c436570a76e52c17Af2D5"],["Blast","0x473e002D7add6fB67a4964F13bFd61280Ca46886"],["Berachain","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Seievm","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Snaxchain","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Unichain","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Worldchain","0xe5E02cD12B6FcA153b0d7fF4bF55730AE7B3C93A"],["Ink","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["HyperEVM","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Xlayer","0xA31aa3FDb7aF7Db93d18DDA4e19F811342EDF780"],["Linea","0x79A1027a6A159502049F10906D333EC57E95F083"],["Monad","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Mezo","0x268557122Ffd64c85750d630b716471118F323c8"]]],["Devnet",[["Solana","Bridge1p5gheXUvJ6jGWGeCsgPKgnE3YgdGKRVCMY9o"],["Ethereum","0xC89Ce4735882C9F0f0FE26686c53074E09B0D550"],["Terra","terra14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9ssrc8au"],["Bsc","0xC89Ce4735882C9F0f0FE26686c53074E09B0D550"],["Algorand","1004"],["Near","wormhole.test.near"],["Aptos","0xde0036a9600559e295d5f6802ef6f3f802f510366e0c23912b0655d972166017"],["Sui","0x5a5160ca3c2037f4b4051344096ef7a48ebf4400b3f385e57ea90e1628a8bde0"],["Terra2","terra14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9ssrc8au"],["Wormchain","wormhole17p9rzwnnfxcjp32un9ug7yhhzgtkhvl9jfksztgw5uh69wac2pgshdnj3k"]]]],Eq=[["Mainnet",[["Solana","wormDTUJ6AWPNvk59vGQbDvGJmqbDTdgWgAqcLBCgUb"],["Ethereum","0x3ee18B2214AFF97000D974cf647E7C347E8fa585"],["Terra","terra10nmmwe8r3g99a9newtqa7a75xfgs2e8z87r2sf"],["Bsc","0xB6F6D86a8f9879A9c87f643768d9efc38c1Da6E7"],["Polygon","0x5a58505a96D1dbf8dF91cB21B54419FC36e93fdE"],["Avalanche","0x0e082F06FF657D94310cB8cE8B0D9a04541d8052"],["Oasis","0x5848C791e09901b40A9Ef749f2a6735b418d7564"],["Algorand","842126029"],["Aurora","0x51b5123a7b0F9b2bA265f9c4C8de7D78D52f510F"],["Fantom","0x7C9Fc5741288cDFdD83CeB07f3ea7e22618D79D2"],["Karura","0xae9d7fe007b3327AA64A32824Aaac52C42a6E624"],["Acala","0xae9d7fe007b3327AA64A32824Aaac52C42a6E624"],["Klaytn","0x5b08ac39EAED75c0439FC750d9FE7E1F9dD0193F"],["Celo","0x796Dff6D74F3E27060B71255Fe517BFb23C93eed"],["Near","contract.portalbridge.near"],["Injective","inj1ghd753shjuwexxywmgs4xz7x2q732vcnxxynfn"],["Aptos","0x576410486a2da45eee6c949c995670112ddf2fbeedab20350d506328eefc9d4f"],["Sui","0xc57508ee0d4595e5a8728974a4a93a787d38f339757230d441e895422c07aba9"],["Moonbeam","0xb1731c586ca89a23809861c6103f0b96b3f57d92"],["Terra2","terra153366q50k7t8nn7gec00hg66crnhkdggpgdtaxltaq6xrutkkz3s992fw9"],["Arbitrum","0x0b2402144Bb366A632D14B83F244D2e0e21bD39c"],["Optimism","0x1D68124e65faFC907325e3EDbF8c4d84499DAa8b"],["Base","0x8d2de8d2f73F1F4cAB472AC9A881C9b123C79627"],["Xlayer","0x5537857664B0f9eFe38C9f320F75fEf23234D904"],["Xpla","xpla137w0wfch2dfmz7jl2ap8pcmswasj8kg06ay4dtjzw7tzkn77ufxqfw7acv"],["Sei","sei1smzlm9t79kur392nu9egl8p8je9j92q4gzguewj56a05kyxxra0qy0nuf3"],["Wormchain","wormhole1466nf3zuxpya8q9emxukd7vftaf6h4psr0a07srl5zw74zh84yjq4lyjmh"],["Blast","0x24850c6f61C438823F01B7A3BF2B89B72174Fa9d"],["Scroll","0x24850c6f61C438823F01B7A3BF2B89B72174Fa9d"],["Mantle","0x24850c6f61C438823F01B7A3BF2B89B72174Fa9d"],["Snaxchain","0x8B94bfE456B48a6025b92E11Be393BAa86e68410"],["Berachain","0x3Ff72741fd67D6AD0668d93B41a09248F4700560"],["Unichain","0x3Ff72741fd67D6AD0668d93B41a09248F4700560"],["Worldchain","0xc309275443519adca74c9136b02A38eF96E3a1f6"],["Ink","0x3Ff72741fd67D6AD0668d93B41a09248F4700560"]]],["Testnet",[["Solana","DZnkkTmCiFWfYTfT41X3Rd1kDgozqzxWaHqsw6W4x2oe"],["Ethereum","0xF890982f9310df57d00f659cf4fd87e65adEd8d7"],["Terra","terra1pseddrv0yfsn76u4zxrjmtf45kdlmalswdv39a"],["Bsc","0x9dcF9D205C9De35334D646BeE44b2D2859712A09"],["Polygon","0x377D55a7928c046E18eEbb61977e714d2a76472a"],["Avalanche","0x61E44E506Ca5659E6c0bba9b678586fA2d729756"],["Oasis","0x88d8004A9BdbfD9D28090A02010C19897a29605c"],["Algorand","86525641"],["Aurora","0xD05eD3ad637b890D68a854d607eEAF11aF456fba"],["Fantom","0x599CEa2204B4FaECd584Ab1F2b6aCA137a0afbE8"],["Karura","0xe157115ef34c93145Fec2FE53706846853B07F42"],["Acala","0xe157115ef34c93145Fec2FE53706846853B07F42"],["Klaytn","0xC7A13BE098720840dEa132D860fDfa030884b09A"],["Celo","0x05ca6037eC51F8b712eD2E6Fa72219FEaE74E153"],["Near","token.wormhole.testnet"],["Injective","inj1q0e70vhrv063eah90mu97sazhywmeegp7myvnh"],["Aptos","0x576410486a2da45eee6c949c995670112ddf2fbeedab20350d506328eefc9d4f"],["Sui","0x6fb10cdb7aa299e9a4308752dadecb049ff55a892de92992a1edbd7912b3d6da"],["Moonbeam","0xbc976D4b9D57E57c3cA52e1Fd136C45FF7955A96"],["Neon","0xEe3dB83916Ccdc3593b734F7F2d16D630F39F1D0"],["Terra2","terra1c02vds4uhgtrmcw7ldlg75zumdqxr8hwf7npseuf2h58jzhpgjxsgmwkvk"],["Arbitrum","0x23908A62110e21C04F3A4e011d24F901F911744A"],["ArbitrumSepolia","0xC7A204bDBFe983FCD8d8E61D02b475D4073fF97e"],["Optimism","0xC7A204bDBFe983FCD8d8E61D02b475D4073fF97e"],["OptimismSepolia","0x99737Ec4B815d816c49A385943baf0380e75c0Ac"],["Xpla","xpla1kek6zgdaxcsu35nqfsyvs2t9vs87dqkkq6hjdgczacysjn67vt8sern93x"],["Base","0xA31aa3FDb7aF7Db93d18DDA4e19F811342EDF780"],["BaseSepolia","0x86F55A04690fd7815A3D802bD587e83eA888B239"],["Sei","sei1jv5xw094mclanxt5emammy875qelf3v62u4tl4lp5nhte3w3s9ts9w9az2"],["Sepolia","0xDB5492265f6038831E89f495670FF909aDe94bd9"],["Wormchain","wormhole1aaf9r6s7nxhysuegqrxv0wpm27ypyv4886medd3mrkrw6t4yfcnst3qpex"],["Holesky","0x76d093BbaE4529a342080546cAFEec4AcbA59EC6"],["Mantle","0x75Bfa155a9D7A3714b0861c8a8aF0C4633c45b5D"],["PolygonSepolia","0xC7A204bDBFe983FCD8d8E61D02b475D4073fF97e"],["Scroll","0x22427d90B7dA3fA4642F7025A854c7254E4e45BF"],["Blast","0x430855B4D43b8AEB9D2B9869B74d58dda79C0dB2"],["Xlayer","0xdA91a06299BBF302091B053c6B9EF86Eff0f930D"],["Berachain","0xa10f2eF61dE1f19f586ab8B6F2EbA89bACE63F7a"],["Seievm","0x23908A62110e21C04F3A4e011d24F901F911744A"],["Snaxchain","0xa10f2eF61dE1f19f586ab8B6F2EbA89bACE63F7a"],["Unichain","0xa10f2eF61dE1f19f586ab8B6F2EbA89bACE63F7a"],["Worldchain","0x430855B4D43b8AEB9D2B9869B74d58dda79C0dB2"],["Ink","0x376428e7f26D5867e69201b275553C45B09EE090"],["HyperEVM","0x4a8bc80Ed5a4067f1CCf107057b8270E0cC11A78"],["Linea","0xC7A204bDBFe983FCD8d8E61D02b475D4073fF97e"],["Monad","0xF323dcDe4d33efe83cf455F78F9F6cc656e6B659"],["Mezo","0xA31aa3FDb7aF7Db93d18DDA4e19F811342EDF780"]]],["Devnet",[["Solana","B6RHG3mfcckmrYN1UhmJzyS1XX3fZKbkeUcpJe9Sy3FE"],["Ethereum","0x0290FB167208Af455bB137780163b7B7a9a10C16"],["Terra","terra1nc5tatafv6eyq7llkr2gv50ff9e22mnf70qgjlv737ktmt4eswrquka9l6"],["Bsc","0x0290FB167208Af455bB137780163b7B7a9a10C16"],["Algorand","1006"],["Near","token.test.near"],["Aptos","0x84a5f374d29fc77e370014dce4fd6a55b58ad608de8074b0be5571701724da31"],["Sui","0xa6a3da85bbe05da5bfd953708d56f1a3a023e7fb58e5a824a3d4de3791e8f690"],["Terra2","terra1nc5tatafv6eyq7llkr2gv50ff9e22mnf70qgjlv737ktmt4eswrquka9l6"],["Wormchain","wormhole1ghd753shjuwexxywmgs4xz7x2q732vcnkm6h2pyv9s6ah3hylvrqtm7t3h"]]]],Sq=[["Mainnet",[["Ethereum","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Bsc","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Polygon","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Avalanche","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Fantom","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Celo","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Sui","0x57f4e0ba41a7045e29d435bc66cc4175f381eb700e6ec16d4fdfe92e5a4dff9f"],["Solana","3vxKRPwUTiEkeUVyoZ9MXFe1V71sRLbLqu1gRYaWmehQ"],["Base","0xaE8dc4a7438801Ec4edC0B035EcCCcF3807F4CC1"],["Moonbeam","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Arbitrum","0xaE8dc4a7438801Ec4edC0B035EcCCcF3807F4CC1"],["Optimism","0xaE8dc4a7438801Ec4edC0B035EcCCcF3807F4CC1"]]],["Testnet",[["Ethereum","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Bsc","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Polygon","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Avalanche","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Fantom","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Celo","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Sui","0xb30040e5120f8cb853b691cb6d45981ae884b1d68521a9dc7c3ae881c0031923"],["Base","0xae8dc4a7438801ec4edc0b035eccccf3807f4cc1"],["Moonbeam","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Solana","3bPRWXqtSfUaCw3S4wdgvypQtsSzcmvDeaqSqPDkncrg"],["Sepolia",""],["ArbitrumSepolia","0xaE8dc4a7438801Ec4edC0B035EcCCcF3807F4CC1"],["OptimismSepolia","0xaE8dc4a7438801Ec4edC0B035EcCCcF3807F4CC1"],["BaseSepolia",""]]]],o5e=[["Mainnet",[["Solana","WnFt12ZrnzZrFZkt2xsNsaNWoQribnuQ5B5FrDbwDhD"],["Ethereum","0x6FFd7EdE62328b3Af38FCD61461Bbfc52F5651fE"],["Bsc","0x5a58505a96D1dbf8dF91cB21B54419FC36e93fdE"],["Polygon","0x90BBd86a6Fe93D3bc3ed6335935447E75fAb7fCf"],["Avalanche","0xf7B6737Ca9c4e08aE573F75A97B73D7a813f5De5"],["Oasis","0x04952D522Ff217f40B5Ef3cbF659EcA7b952a6c1"],["Aurora","0x6dcC0484472523ed9Cdc017F711Bcbf909789284"],["Fantom","0xA9c7119aBDa80d4a4E0C06C8F4d8cF5893234535"],["Karura","0xb91e3638F82A1fACb28690b37e3aAE45d2c33808"],["Acala","0xb91e3638F82A1fACb28690b37e3aAE45d2c33808"],["Klaytn","0x3c3c561757BAa0b78c5C025CdEAa4ee24C1dFfEf"],["Celo","0xA6A377d75ca5c9052c9a77ED1e865Cc25Bd97bf3"],["Aptos","0x1bdffae984043833ed7fe223f7af7a3f8902d04129b14f801823e64827da7130"],["Moonbeam","0x453cfbe096c0f8d763e8c5f24b441097d577bde2"],["Arbitrum","0x3dD14D553cFD986EAC8e3bddF629d82073e188c8"],["Base","0xDA3adC6621B2677BEf9aD26598e6939CF0D92f88"],["Optimism","0xfE8cD454b4A1CA468B57D79c0cc77Ef5B6f64585"]]],["Testnet",[["Solana","2rHhojZ7hpu1zA91nvZmT8TqWWvMcKmmNBCr2mKTtMq4"],["Ethereum","0xD8E4C2DbDd2e2bd8F1336EA691dBFF6952B1a6eB"],["Bsc","0xcD16E5613EF35599dc82B24Cb45B5A93D779f1EE"],["Polygon","0x51a02d0dcb5e52F5b92bdAA38FA013C91c7309A9"],["Avalanche","0xD601BAf2EEE3C028344471684F6b27E789D9075D"],["Oasis","0xC5c25B41AB0b797571620F5204Afa116A44c0ebA"],["Aurora","0x8F399607E9BA2405D87F5f3e1B78D950b44b2e24"],["Fantom","0x63eD9318628D26BdCB15df58B53BB27231D1B227"],["Klaytn","0x94c994fC51c13101062958b567e743f1a04432dE"],["Celo","0xaCD8190F647a31E56A656748bC30F69259f245Db"],["Moonbeam","0x98A0F4B96972b32Fcb3BD03cAeB66A44a6aB9Edb"],["Neon","0x66E5BcFD45D2F3f166c567ADa663f9d2ffb292B4"],["Arbitrum","0xEe3dB83916Ccdc3593b734F7F2d16D630F39F1D0"],["Optimism","0x23908A62110e21C04F3A4e011d24F901F911744A"],["Base","0xF681d1cc5F25a3694E348e7975d7564Aa581db59"],["Sepolia","0x6a0B52ac198e4870e5F3797d5B403838a5bbFD99"],["Aptos","0x1bdffae984043833ed7fe223f7af7a3f8902d04129b14f801823e64827da7130"],["ArbitrumSepolia","0x23908A62110e21C04F3A4e011d24F901F911744A"],["BaseSepolia","0x268557122Ffd64c85750d630b716471118F323c8"],["OptimismSepolia","0x27812285fbe85BA1DF242929B906B31EE3dd1b9f"],["Holesky","0xc8941d483c45eF8FB72E4d1F9dDE089C95fF8171"],["PolygonSepolia","0x23908A62110e21C04F3A4e011d24F901F911744A"],["Mantle","0xD7D732C8Bf5eBF620EA55b5828eae20418eEF083"],["Scroll","0x47B9a1406BEe29a3001BFEB7e45aE45fFFB40c18"]]],["Devnet",[["Solana","NFTWqJR8YnRVqPDvTJrYuLrQDitTG5AScqbeghi4zSA"],["Ethereum","0x26b4afb60d6c903165150c6f0aa14f8016be4aec"],["Terra","terra1plju286nnfj3z54wgcggd4enwaa9fgf5kgrgzl"],["Bsc","0x26b4afb60d6c903165150c6f0aa14f8016be4aec"],["Aptos","0x46da3d4c569388af61f951bdd1153f4c875f90c2991f6b2d0a38e2161a40852c"]]]],c5e=[["Mainnet",[["Ethereum","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Bsc","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Polygon","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Avalanche","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Fantom","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Klaytn","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Celo","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Moonbeam","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Base","0x706f82e9bb5b0813501714ab5974216704980e31"],["Arbitrum","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Optimism","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Blast","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Scroll","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Mantle","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Xlayer","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Berachain","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Ink","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Worldchain","0x1520cc9e779c56dab5866bebfb885c86840c33d3"],["Snaxchain","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Unichain","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"]]],["Testnet",[["Ethereum","0x28D8F1Be96f97C1387e94A53e00eCcFb4E75175a"],["Bsc","0x80aC94316391752A193C1c47E27D382b507c93F3"],["Polygon","0x0591C25ebd0580E0d4F27A82Fc2e24E7489CB5e0"],["Avalanche","0xA3cF45939bD6260bcFe3D66bc73d60f19e49a8BB"],["Fantom","0x7B1bD7a6b4E61c2a123AC6BC2cbfC614437D0470"],["Celo","0x306B68267Deb7c5DfCDa3619E22E9Ca39C374f84"],["Seievm","0x362fca37E45fe1096b42021b543f462D49a5C8df"],["Moonbeam","0x0591C25ebd0580E0d4F27A82Fc2e24E7489CB5e0"],["Arbitrum","0xAd753479354283eEE1b86c9470c84D42f229FF43"],["Optimism","0x01A957A525a5b7A72808bA9D10c389674E459891"],["Base","0xea8029CD7FCAEFFcD1F53686430Db0Fc8ed384E1"],["Sepolia","0x7B1bD7a6b4E61c2a123AC6BC2cbfC614437D0470"],["ArbitrumSepolia","0x7B1bD7a6b4E61c2a123AC6BC2cbfC614437D0470"],["BaseSepolia","0x93BAD53DDfB6132b0aC8E37f6029163E63372cEE"],["OptimismSepolia","0x93BAD53DDfB6132b0aC8E37f6029163E63372cEE"],["Berachain","0x362fca37E45fe1096b42021b543f462D49a5C8df"],["Unichain","0x362fca37E45fe1096b42021b543f462D49a5C8df"],["Ink","0x362fca37E45fe1096b42021b543f462D49a5C8df"],["Monad","0x362fca37E45fe1096b42021b543f462D49a5C8df"]]],["Devnet",[["Ethereum","0xcC680D088586c09c3E0E099a676FA4b6e42467b4"],["Bsc","0xcC680D088586c09c3E0E099a676FA4b6e42467b4"]]]],Tq=[["Mainnet",[["Ethereum",{tokenMessenger:"0xbd3fa81b58ba92a82136038b25adec7066af3155",messageTransmitter:"0x0a992d191deec32afe36203ad87d7d289a738f81",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0xAaDA05BD399372f0b0463744C09113c137636f6a"}],["Avalanche",{tokenMessenger:"0x6b25532e1060ce10cc3b0a99e5683b91bfde6982",messageTransmitter:"0x8186359af5f57fbb40c6b14a588d2a59c0c29880",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x09Fb06A271faFf70A651047395AaEb6265265F13"}],["Optimism",{tokenMessenger:"0x2B4069517957735bE00ceE0fadAE88a26365528f",messageTransmitter:"0x4d41f22c5a0e5c74090899e5a8fb597a8842b3e8",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Arbitrum",{tokenMessenger:"0x19330d10D9Cc8751218eaf51E8885D058642E08A",messageTransmitter:"0xC30362313FBBA5cf9163F0bb16a0e01f01A896ca",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Base",{tokenMessenger:"0x1682Ae6375C4E4A97e4B583BC394c861A46D8962",messageTransmitter:"0xAD09780d193884d503182aD4588450C416D6F9D4",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x03faBB06Fa052557143dC28eFCFc63FC12843f1D"}],["Solana",{tokenMessenger:"CCTPiPYPc6AsJuwueEnWgSgucamXDZwBd53dQ11YiKX3",messageTransmitter:"CCTPmbSD7gX1bxKPAmg77w8oFzNFpaQiQUWD43TKaecd",wormholeRelayer:"",wormhole:""}],["Polygon",{tokenMessenger:"0x9daF8c91AEFAE50b9c0E69629D3F6Ca40cA3B3FE",messageTransmitter:"0xF3be9355363857F3e001be68856A2f96b4C39Ba9",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x0FF28217dCc90372345954563486528aa865cDd6"}],["Sui",{tokenMessenger:"0x2aa6c5d56376c371f88a6cc42e852824994993cb9bab8d3e6450cbe3cb32b94e",messageTransmitter:"0x08d87d37ba49e785dde270a83f8e979605b03dc552b5548f26fdf2f49bf7ed1b",wormholeRelayer:"",wormhole:""}],["Aptos",{tokenMessenger:"0x9e6702a472080ea3caaf6ba9dfaa6effad2290a9ba9adaacd5af5c618e42782d",messageTransmitter:"0x177e17751820e4b4371873ca8c30279be63bdea63b88ed0f2239c2eea10f1772",wormholeRelayer:"",wormhole:""}],["Unichain",{tokenMessenger:"0x4e744b28E787c3aD0e810eD65A24461D4ac5a762",messageTransmitter:"0x353bE9E2E38AB1D19104534e4edC21c643Df86f4",wormholeRelayer:"",wormhole:""}]]],["Testnet",[["Sepolia",{tokenMessenger:"0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",messageTransmitter:"0x7865fAfC2db2093669d92c0F33AeEF291086BEFD",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Avalanche",{tokenMessenger:"0xeb08f243e5d3fcff26a9e38ae5520a669f4019d0",messageTransmitter:"0xa9fb1b3009dcb79e2fe346c16a604b8fa8ae0a79",wormholeRelayer:"0x774a70bbd03327c21460b60f25b677d9e46ab458",wormhole:"0x58f4c17449c90665891c42e14d34aae7a26a472e"}],["OptimismSepolia",{tokenMessenger:"0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",messageTransmitter:"0x7865fAfC2db2093669d92c0F33AeEF291086BEFD",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["ArbitrumSepolia",{tokenMessenger:"0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",messageTransmitter:"0xaCF1ceeF35caAc005e15888dDb8A3515C41B4872",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Solana",{tokenMessenger:"CCTPiPYPc6AsJuwueEnWgSgucamXDZwBd53dQ11YiKX3",messageTransmitter:"CCTPmbSD7gX1bxKPAmg77w8oFzNFpaQiQUWD43TKaecd",wormholeRelayer:"",wormhole:""}],["BaseSepolia",{tokenMessenger:"0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",messageTransmitter:"0x7865fAfC2db2093669d92c0F33AeEF291086BEFD",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Polygon",{tokenMessenger:"0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",messageTransmitter:"0xe09A679F56207EF33F5b9d8fb4499Ec00792eA73",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Sui",{tokenMessenger:"0x31cc14d80c175ae39777c0238f20594c6d4869cfab199f40b69f3319956b8beb",messageTransmitter:"0x4931e06dce648b3931f890035bd196920770e913e43e45990b383f6486fdd0a5",wormholeRelayer:"",wormhole:""}],["Aptos",{tokenMessenger:"0x5f9b937419dda90aa06c1836b7847f65bbbe3f1217567758dc2488be31a477b9",messageTransmitter:"0x081e86cebf457a0c6004f35bd648a2794698f52e0dde09a48619dcd3d4cc23d9",wormholeRelayer:"",wormhole:""}],["Unichain",{tokenMessenger:"0x8ed94B8dAd2Dc5453862ea5e316A8e71AAed9782",messageTransmitter:"0xbc498c326533d675cf571B90A2Ced265ACb7d086",wormholeRelayer:"",wormhole:""}]]]],l5e=[["Mainnet",[["Wormchain","wormhole14ejqjyq8um4p3xfqj74yld5waqljf88fz25yxnma0cngspxe3les00fpjx"]]],["Testnet",[["Wormchain","wormhole1ctnjk7an90lz5wjfvr3cf6x984a8cjnv8dpmztmlpcq4xteaa2xs9pwmzk"]]]],u5e=[["Mainnet",[["Sei","sei189adguawugk3e55zn63z8r9ll29xrjwca636ra7v7gxuzn98sxyqwzt47l"]]],["Testnet",[["Sei","sei1dkdwdvknx0qav5cp5kw68mkn3r99m3svkyjfvkztwh97dv2lm0ksj6xrak"]]]],f5e=[["Mainnet",[["Polygon",["Ethereum","0x86E4Dc95c7FBdBf52e33D563BbDB00823894C287"]],["Optimism",["Ethereum","0xdfe97868233d1aa22e815a266982f2cf17685a27"]],["Arbitrum",["Ethereum","0x1c479675ad559dc151f6ec7ed3fbf8cee79582b6"]]]],["Testnet",[["Polygon",["Ethereum","0x2890ba17efe978480615e330ecb65333b880928e"]],["Optimism",["Ethereum","0xe6dfba0953616bacab0c9a8ecb3a9bba77fc15c0"]],["Arbitrum",["Ethereum","0x45af9ed1d03703e480ce7d328fb684bb67da5049"]]]]],Iq=[["Mainnet",[["Ethereum",{porticoUniswap:"0x48b6101128C0ed1E208b7C910e60542A2ee6f476",uniswapQuoterV2:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",porticoPancakeSwap:"0x4db1683d60e0a933A9A477a19FA32F472bB9d06e",pancakeSwapQuoterV2:"0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997"}],["Polygon",{porticoUniswap:"0x227bABe533fa9a1085f5261210E0B7137E44437B",uniswapQuoterV2:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",porticoPancakeSwap:void 0,pancakeSwapQuoterV2:void 0}],["Bsc",{porticoUniswap:"0x05498574BD0Fa99eeCB01e1241661E7eE58F8a85",uniswapQuoterV2:"0x78D78E420Da98ad378D7799bE8f4AF69033EB077",porticoPancakeSwap:"0xF352DC165783538A26e38A536e76DceF227d90F2",pancakeSwapQuoterV2:"0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997"}],["Avalanche",{porticoUniswap:"0xE565E118e75304dD3cF83dff409c90034b7EA18a",uniswapQuoterV2:"0xbe0F5544EC67e9B3b2D979aaA43f18Fd87E6257F",porticoPancakeSwap:void 0,pancakeSwapQuoterV2:void 0}],["Arbitrum",{porticoUniswap:"0x48fa7528bFD6164DdF09dF0Ed22451cF59c84130",uniswapQuoterV2:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",porticoPancakeSwap:"0xE70946692E2e56ae47BfAe2d93d31bd60952B090",pancakeSwapQuoterV2:"0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997"}],["Optimism",{porticoUniswap:"0x9ae506cDDd27DEe1275fd1fe6627E5dc65257061",uniswapQuoterV2:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",porticoPancakeSwap:void 0,pancakeSwapQuoterV2:void 0}],["Base",{porticoUniswap:"0x610d4DFAC3EC32e0be98D18DDb280DACD76A1889",uniswapQuoterV2:"0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a",porticoPancakeSwap:"0x4568aa1eA0ED54db666c58B4526B3FC9BD9be9bf",pancakeSwapQuoterV2:"0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997"}],["Celo",{porticoUniswap:"0xE565E118e75304dD3cF83dff409c90034b7EA18a",uniswapQuoterV2:"0x82825d0554fA07f7FC52Ab63c961F330fdEFa8E8",porticoPancakeSwap:void 0,pancakeSwapQuoterV2:void 0}]]]],d5e=[["Mainnet",[["Solana","87MEvHZCXE3ML5rrmh5uX1FbShHmRXXS32xJDGbQ7h5t"],["Polygon","0x09959798B95d00a3183d20FaC298E4594E599eab"],["Arbitrum","0x1293a54e160D1cd7075487898d65266081A15458"],["Optimism","0x1293a54e160D1cd7075487898d65266081A15458"],["Base","0x09959798B95d00a3183d20FaC298E4594E599eab"]]]],h5e=pn(s5e),p5e=pn(Eq),b5e=pn(Sq),m5e=pn(o5e),y5e=pn(c5e),vO=pn(l5e),MO=pn(u5e),xO=pn(Iq),Rm=pn(d5e),_S=pn(Tq);pn(f5e);const Dq=pn(Eq,[0,1]),wO=pn(Sq,[0,1]),sg=pn(Tq,[0,1]),AO=pn(Iq,[0,1]),_N=[["Mainnet",[["0x58CC3AE5C097b213cE3c81979e1B9f9570746AA5","JumpCrypto"],["0xfF6CB952589BDE862c25Ef4392132fb9D4A42157","Staked"],["0x114De8460193bdf3A2fCf81f86a09765F4762fD1","Figment"],["0x107A0086b32d7A0977926A205131d8731D39cbEB","ChainodeTech"],["0x8C82B2fd82FaeD2711d59AF0F2499D16e726f6b2","Inotel"],["0x11b39756C042441BE6D8650b69b54EbE715E2343","HashQuark"],["0x54Ce5B4D348fb74B958e8966e2ec3dBd4958a7cd","Chainlayer"],["0x15e7cAF07C4e3DC8e7C469f92C8Cd88FB8005a20","xLabs"],["0x74a3bf913953D695260D88BC1aA25A4eeE363ef0","Forbole"],["0x000aC0076727b35FBea2dAc28fEE5cCB0fEA768e","StakingFund"],["0xAF45Ced136b9D9e24903464AE889F5C8a723FC14","MoonletWallet"],["0xf93124b7c738843CBB89E864c862c38cddCccF95","P2PValidator"],["0xD2CC37A4dc036a8D232b48f62cDD4731412f4890","01Node"],["0xDA798F6896A3331F64b48c12D1D57Fd9cbe70811","MCF"],["0x71AA1BE1D36CaFE3867910F99C09e347899C19C3","Everstake"],["0x8192b6E7387CCd768277c17DAb1b7a5027c0b3Cf","ChorusOne"],["0x178e21ad2E77AE06711549CFBB1f9c7a9d8096e8","Syncnode"],["0x5E1487F35515d02A92753504a8D75471b9f49EdB","Triton"],["0x6FbEBc898F403E4773E95feB15E80C9A99c8348d","StakingFacilities"]]],["Testnet",[["0x13947Bd48b18E53fdAeEe77F3473391aC727C638","Testnet guardian"]]]],[XHe,JHe]=yde($f(ng(_N)),[1,2]);pn(_N,[[0,2],1]);pn(_N,[1,[0,2]]);const ON=5,g5e=[["Mainnet",[["Ethereum","0x18084fbA666a33d37592fA2633fD49a74DD93a88"],["Solana","6DNSN2BJsaPFdFFc1zP37kkeNe4Usc1Sqkzr9C9vPWcU"],["Polygon","0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"],["Arbitrum","0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"],["Optimism","0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"],["Base","0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"]]]],v5e=pn(g5e);function og(t){if(!Number.isSafeInteger(t)||t<0)throw new Error("positive integer expected, got "+t)}function M5e(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"}function Kh(t,...e){if(!M5e(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error("Uint8Array expected of length "+e+", got length="+t.length)}function x5e(t){if(typeof t!="function"||typeof t.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");og(t.outputLen),og(t.blockLen)}function nh(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function Nq(t,e){Kh(t);const n=e.outputLen;if(t.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}const Hd=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function w5e(t){return new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4))}function Ux(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function Ko(t,e){return t<<32-e|t>>>e}function eWe(t,e){return t<<e|t>>>32-e>>>0}const OS=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function Lq(t){return t<<24&4278190080|t<<8&16711680|t>>>8&65280|t>>>24&255}const tWe=OS?t=>t:t=>Lq(t);function CO(t){for(let e=0;e<t.length;e++)t[e]=Lq(t[e])}const A5e=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function nWe(t){Kh(t);let e="";for(let n=0;n<t.length;n++)e+=A5e[t[n]];return e}const lc={_0:48,_9:57,A:65,F:70,a:97,f:102};function EO(t){if(t>=lc._0&&t<=lc._9)return t-lc._0;if(t>=lc.A&&t<=lc.F)return t-(lc.A-10);if(t>=lc.a&&t<=lc.f)return t-(lc.a-10)}function rWe(t){if(typeof t!="string")throw new Error("hex string expected, got "+typeof t);const e=t.length,n=e/2;if(e%2)throw new Error("hex string expected, got unpadded hex of length "+e);const r=new Uint8Array(n);for(let i=0,a=0;i<n;i++,a+=2){const s=EO(t.charCodeAt(a)),c=EO(t.charCodeAt(a+1));if(s===void 0||c===void 0){const l=t[a]+t[a+1];throw new Error('hex string expected, got non-hex character "'+l+'" at index '+a)}r[i]=s*16+c}return r}function C5e(t){if(typeof t!="string")throw new Error("utf8ToBytes expected string, got "+typeof t);return new Uint8Array(new TextEncoder().encode(t))}function Qp(t){return typeof t=="string"&&(t=C5e(t)),Kh(t),t}function E5e(...t){let e=0;for(let r=0;r<t.length;r++){const i=t[r];Kh(i),e+=i.length}const n=new Uint8Array(e);for(let r=0,i=0;r<t.length;r++){const a=t[r];n.set(a,i),i+=a.length}return n}let FN=class{clone(){return this._cloneInto()}};function aWe(t,e){if(e!==void 0&&{}.toString.call(e)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(t,e)}function yv(t){const e=r=>t().update(Qp(r)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function sWe(t){const e=(r,i)=>t(i).update(Qp(r)).digest(),n=t({});return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=r=>t(r),e}function Bq(t=32){if(Hd&&typeof Hd.getRandomValues=="function")return Hd.getRandomValues(new Uint8Array(t));if(Hd&&typeof Hd.randomBytes=="function")return Hd.randomBytes(t);throw new Error("crypto.getRandomValues must be defined")}function S5e(t,e,n,r){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,n,r);const i=BigInt(32),a=BigInt(4294967295),s=Number(n>>i&a),c=Number(n&a),l=r?4:0,d=r?0:4;t.setUint32(e+l,s,r),t.setUint32(e+d,c,r)}function T5e(t,e,n){return t&e^~t&n}function I5e(t,e,n){return t&e^t&n^e&n}class jq extends FN{constructor(e,n,r,i){super(),this.blockLen=e,this.outputLen=n,this.padOffset=r,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=Ux(this.buffer)}update(e){nh(this);const{view:n,buffer:r,blockLen:i}=this;e=Qp(e);const a=e.length;for(let s=0;s<a;){const c=Math.min(i-this.pos,a-s);if(c===i){const l=Ux(e);for(;i<=a-s;s+=i)this.process(l,s);continue}r.set(e.subarray(s,s+c),this.pos),this.pos+=c,s+=c,this.pos===i&&(this.process(n,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){nh(this),Nq(e,this),this.finished=!0;const{buffer:n,view:r,blockLen:i,isLE:a}=this;let{pos:s}=this;n[s++]=128,this.buffer.subarray(s).fill(0),this.padOffset>i-s&&(this.process(r,0),s=0);for(let m=s;m<i;m++)n[m]=0;S5e(r,i-8,BigInt(this.length*8),a),this.process(r,0);const c=Ux(e),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const d=l/4,p=this.get();if(d>p.length)throw new Error("_sha2: outputLen bigger than state");for(let m=0;m<d;m++)c.setUint32(4*m,p[m],a)}digest(){const{buffer:e,outputLen:n}=this;this.digestInto(e);const r=e.slice(0,n);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:n,buffer:r,length:i,finished:a,destroyed:s,pos:c}=this;return e.length=i,e.pos=c,e.finished=a,e.destroyed=s,i%n&&e.buffer.set(r),e}}const D5e=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Dl=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Nl=new Uint32Array(64);let N5e=class extends jq{constructor(){super(64,32,8,!1),this.A=Dl[0]|0,this.B=Dl[1]|0,this.C=Dl[2]|0,this.D=Dl[3]|0,this.E=Dl[4]|0,this.F=Dl[5]|0,this.G=Dl[6]|0,this.H=Dl[7]|0}get(){const{A:e,B:n,C:r,D:i,E:a,F:s,G:c,H:l}=this;return[e,n,r,i,a,s,c,l]}set(e,n,r,i,a,s,c,l){this.A=e|0,this.B=n|0,this.C=r|0,this.D=i|0,this.E=a|0,this.F=s|0,this.G=c|0,this.H=l|0}process(e,n){for(let m=0;m<16;m++,n+=4)Nl[m]=e.getUint32(n,!1);for(let m=16;m<64;m++){const g=Nl[m-15],M=Nl[m-2],C=Ko(g,7)^Ko(g,18)^g>>>3,T=Ko(M,17)^Ko(M,19)^M>>>10;Nl[m]=T+Nl[m-7]+C+Nl[m-16]|0}let{A:r,B:i,C:a,D:s,E:c,F:l,G:d,H:p}=this;for(let m=0;m<64;m++){const g=Ko(c,6)^Ko(c,11)^Ko(c,25),M=p+g+T5e(c,l,d)+D5e[m]+Nl[m]|0,T=(Ko(r,2)^Ko(r,13)^Ko(r,22))+I5e(r,i,a)|0;p=d,d=l,l=c,c=s+M|0,s=a,a=i,i=r,r=M+T|0}r=r+this.A|0,i=i+this.B|0,a=a+this.C|0,s=s+this.D|0,c=c+this.E|0,l=l+this.F|0,d=d+this.G|0,p=p+this.H|0,this.set(r,i,a,s,c,l,d,p)}roundClean(){Nl.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}};const qu=yv(()=>new N5e),i9=BigInt(2**32-1),FS=BigInt(32);function kq(t,e=!1){return e?{h:Number(t&i9),l:Number(t>>FS&i9)}:{h:Number(t>>FS&i9)|0,l:Number(t&i9)|0}}function _q(t,e=!1){let n=new Uint32Array(t.length),r=new Uint32Array(t.length);for(let i=0;i<t.length;i++){const{h:a,l:s}=kq(t[i],e);[n[i],r[i]]=[a,s]}return[n,r]}const L5e=(t,e)=>BigInt(t>>>0)<<FS|BigInt(e>>>0),B5e=(t,e,n)=>t>>>n,j5e=(t,e,n)=>t<<32-n|e>>>n,k5e=(t,e,n)=>t>>>n|e<<32-n,_5e=(t,e,n)=>t<<32-n|e>>>n,O5e=(t,e,n)=>t<<64-n|e>>>n-32,F5e=(t,e,n)=>t>>>n-32|e<<64-n,z5e=(t,e)=>e,R5e=(t,e)=>t,Oq=(t,e,n)=>t<<n|e>>>32-n,Fq=(t,e,n)=>e<<n|t>>>32-n,zq=(t,e,n)=>e<<n-32|t>>>64-n,Rq=(t,e,n)=>t<<n-32|e>>>64-n;function P5e(t,e,n,r){const i=(e>>>0)+(r>>>0);return{h:t+n+(i/2**32|0)|0,l:i|0}}const U5e=(t,e,n)=>(t>>>0)+(e>>>0)+(n>>>0),H5e=(t,e,n,r)=>e+n+r+(t/2**32|0)|0,W5e=(t,e,n,r)=>(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0),Y5e=(t,e,n,r,i)=>e+n+r+i+(t/2**32|0)|0,G5e=(t,e,n,r,i)=>(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0)+(i>>>0),$5e=(t,e,n,r,i,a)=>e+n+r+i+a+(t/2**32|0)|0,Dn={fromBig:kq,split:_q,toBig:L5e,shrSH:B5e,shrSL:j5e,rotrSH:k5e,rotrSL:_5e,rotrBH:O5e,rotrBL:F5e,rotr32H:z5e,rotr32L:R5e,rotlSH:Oq,rotlSL:Fq,rotlBH:zq,rotlBL:Rq,add:P5e,add3L:U5e,add3H:H5e,add4L:W5e,add4H:Y5e,add5H:$5e,add5L:G5e},Pq=[],Uq=[],Hq=[],V5e=BigInt(0),O8=BigInt(1),Q5e=BigInt(2),q5e=BigInt(7),Z5e=BigInt(256),K5e=BigInt(113);for(let t=0,e=O8,n=1,r=0;t<24;t++){[n,r]=[r,(2*n+3*r)%5],Pq.push(2*(5*r+n)),Uq.push((t+1)*(t+2)/2%64);let i=V5e;for(let a=0;a<7;a++)e=(e<<O8^(e>>q5e)*K5e)%Z5e,e&Q5e&&(i^=O8<<(O8<<BigInt(a))-O8);Hq.push(i)}const[X5e,J5e]=_q(Hq,!0),SO=(t,e,n)=>n>32?zq(t,e,n):Oq(t,e,n),TO=(t,e,n)=>n>32?Rq(t,e,n):Fq(t,e,n);function e2e(t,e=24){const n=new Uint32Array(10);for(let r=24-e;r<24;r++){for(let s=0;s<10;s++)n[s]=t[s]^t[s+10]^t[s+20]^t[s+30]^t[s+40];for(let s=0;s<10;s+=2){const c=(s+8)%10,l=(s+2)%10,d=n[l],p=n[l+1],m=SO(d,p,1)^n[c],g=TO(d,p,1)^n[c+1];for(let M=0;M<50;M+=10)t[s+M]^=m,t[s+M+1]^=g}let i=t[2],a=t[3];for(let s=0;s<24;s++){const c=Uq[s],l=SO(i,a,c),d=TO(i,a,c),p=Pq[s];i=t[p],a=t[p+1],t[p]=l,t[p+1]=d}for(let s=0;s<50;s+=10){for(let c=0;c<10;c++)n[c]=t[s+c];for(let c=0;c<10;c++)t[s+c]^=~n[(c+2)%10]&n[(c+4)%10]}t[0]^=X5e[r],t[1]^=J5e[r]}n.fill(0)}let t2e=class Wq extends FN{constructor(e,n,r,i=!1,a=24){if(super(),this.blockLen=e,this.suffix=n,this.outputLen=r,this.enableXOF=i,this.rounds=a,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,og(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=w5e(this.state)}keccak(){OS||CO(this.state32),e2e(this.state32,this.rounds),OS||CO(this.state32),this.posOut=0,this.pos=0}update(e){nh(this);const{blockLen:n,state:r}=this;e=Qp(e);const i=e.length;for(let a=0;a<i;){const s=Math.min(n-this.pos,i-a);for(let c=0;c<s;c++)r[this.pos++]^=e[a++];this.pos===n&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:e,suffix:n,pos:r,blockLen:i}=this;e[r]^=n,n&128&&r===i-1&&this.keccak(),e[i-1]^=128,this.keccak()}writeInto(e){nh(this,!1),Kh(e),this.finish();const n=this.state,{blockLen:r}=this;for(let i=0,a=e.length;i<a;){this.posOut>=r&&this.keccak();const s=Math.min(r-this.posOut,a-i);e.set(n.subarray(this.posOut,this.posOut+s),i),this.posOut+=s,i+=s}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return og(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(Nq(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:n,suffix:r,outputLen:i,rounds:a,enableXOF:s}=this;return e||(e=new Wq(n,r,i,s,a)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=a,e.suffix=r,e.outputLen=i,e.enableXOF=s,e.destroyed=this.destroyed,e}};const Yq=(t,e,n)=>yv(()=>new t2e(e,t,n)),cWe=Yq(6,136,256/8),J6=Yq(1,136,256/8),[n2e,r2e]=Dn.split(["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(t=>BigInt(t))),Ll=new Uint32Array(80),Bl=new Uint32Array(80);let Gq=class extends jq{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:e,Al:n,Bh:r,Bl:i,Ch:a,Cl:s,Dh:c,Dl:l,Eh:d,El:p,Fh:m,Fl:g,Gh:M,Gl:C,Hh:T,Hl:D}=this;return[e,n,r,i,a,s,c,l,d,p,m,g,M,C,T,D]}set(e,n,r,i,a,s,c,l,d,p,m,g,M,C,T,D){this.Ah=e|0,this.Al=n|0,this.Bh=r|0,this.Bl=i|0,this.Ch=a|0,this.Cl=s|0,this.Dh=c|0,this.Dl=l|0,this.Eh=d|0,this.El=p|0,this.Fh=m|0,this.Fl=g|0,this.Gh=M|0,this.Gl=C|0,this.Hh=T|0,this.Hl=D|0}process(e,n){for(let N=0;N<16;N++,n+=4)Ll[N]=e.getUint32(n),Bl[N]=e.getUint32(n+=4);for(let N=16;N<80;N++){const B=Ll[N-15]|0,k=Bl[N-15]|0,O=Dn.rotrSH(B,k,1)^Dn.rotrSH(B,k,8)^Dn.shrSH(B,k,7),z=Dn.rotrSL(B,k,1)^Dn.rotrSL(B,k,8)^Dn.shrSL(B,k,7),_=Ll[N-2]|0,F=Bl[N-2]|0,R=Dn.rotrSH(_,F,19)^Dn.rotrBH(_,F,61)^Dn.shrSH(_,F,6),w=Dn.rotrSL(_,F,19)^Dn.rotrBL(_,F,61)^Dn.shrSL(_,F,6),o=Dn.add4L(z,w,Bl[N-7],Bl[N-16]),u=Dn.add4H(o,O,R,Ll[N-7],Ll[N-16]);Ll[N]=u|0,Bl[N]=o|0}let{Ah:r,Al:i,Bh:a,Bl:s,Ch:c,Cl:l,Dh:d,Dl:p,Eh:m,El:g,Fh:M,Fl:C,Gh:T,Gl:D,Hh:S,Hl:I}=this;for(let N=0;N<80;N++){const B=Dn.rotrSH(m,g,14)^Dn.rotrSH(m,g,18)^Dn.rotrBH(m,g,41),k=Dn.rotrSL(m,g,14)^Dn.rotrSL(m,g,18)^Dn.rotrBL(m,g,41),O=m&M^~m&T,z=g&C^~g&D,_=Dn.add5L(I,k,z,r2e[N],Bl[N]),F=Dn.add5H(_,S,B,O,n2e[N],Ll[N]),R=_|0,w=Dn.rotrSH(r,i,28)^Dn.rotrBH(r,i,34)^Dn.rotrBH(r,i,39),o=Dn.rotrSL(r,i,28)^Dn.rotrBL(r,i,34)^Dn.rotrBL(r,i,39),u=r&a^r&c^a&c,h=i&s^i&l^s&l;S=T|0,I=D|0,T=M|0,D=C|0,M=m|0,C=g|0,{h:m,l:g}=Dn.add(d|0,p|0,F|0,R|0),d=c|0,p=l|0,c=a|0,l=s|0,a=r|0,s=i|0;const b=Dn.add3L(R,o,h);r=Dn.add3H(b,F,w,u),i=b|0}({h:r,l:i}=Dn.add(this.Ah|0,this.Al|0,r|0,i|0)),{h:a,l:s}=Dn.add(this.Bh|0,this.Bl|0,a|0,s|0),{h:c,l}=Dn.add(this.Ch|0,this.Cl|0,c|0,l|0),{h:d,l:p}=Dn.add(this.Dh|0,this.Dl|0,d|0,p|0),{h:m,l:g}=Dn.add(this.Eh|0,this.El|0,m|0,g|0),{h:M,l:C}=Dn.add(this.Fh|0,this.Fl|0,M|0,C|0),{h:T,l:D}=Dn.add(this.Gh|0,this.Gl|0,T|0,D|0),{h:S,l:I}=Dn.add(this.Hh|0,this.Hl|0,S|0,I|0),this.set(r,i,a,s,c,l,d,p,m,g,M,C,T,D,S,I)}roundClean(){Ll.fill(0),Bl.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}};class i2e extends Gq{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}const a2e=yv(()=>new Gq),s2e=yv(()=>new i2e);let $q=class extends FN{constructor(e,n){super(),this.finished=!1,this.destroyed=!1,x5e(e);const r=Qp(n);if(this.iHash=e.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?e.create().update(r).digest():r);for(let s=0;s<a.length;s++)a[s]^=54;this.iHash.update(a),this.oHash=e.create();for(let s=0;s<a.length;s++)a[s]^=106;this.oHash.update(a),a.fill(0)}update(e){return nh(this),this.iHash.update(e),this}digestInto(e){nh(this),Kh(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:n,iHash:r,finished:i,destroyed:a,blockLen:s,outputLen:c}=this;return e=e,e.finished=i,e.destroyed=a,e.blockLen=s,e.outputLen=c,e.oHash=n._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}};const Vq=(t,e,n)=>new $q(t,e).update(n).digest();Vq.create=(t,e)=>new $q(t,e);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const gv=BigInt(0),vv=BigInt(1),o2e=BigInt(2);function ed(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"}function qp(t){if(!ed(t))throw new Error("Uint8Array expected")}function Jc(t,e){if(typeof e!="boolean")throw new Error(t+" boolean expected, got "+e)}const c2e=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function td(t){qp(t);let e="";for(let n=0;n<t.length;n++)e+=c2e[t[n]];return e}function x5(t){const e=t.toString(16);return e.length&1?"0"+e:e}function zN(t){if(typeof t!="string")throw new Error("hex string expected, got "+typeof t);return t===""?gv:BigInt("0x"+t)}const uc={_0:48,_9:57,A:65,F:70,a:97,f:102};function IO(t){if(t>=uc._0&&t<=uc._9)return t-uc._0;if(t>=uc.A&&t<=uc.F)return t-(uc.A-10);if(t>=uc.a&&t<=uc.f)return t-(uc.a-10)}function rh(t){if(typeof t!="string")throw new Error("hex string expected, got "+typeof t);const e=t.length,n=e/2;if(e%2)throw new Error("hex string expected, got unpadded hex of length "+e);const r=new Uint8Array(n);for(let i=0,a=0;i<n;i++,a+=2){const s=IO(t.charCodeAt(a)),c=IO(t.charCodeAt(a+1));if(s===void 0||c===void 0){const l=t[a]+t[a+1];throw new Error('hex string expected, got non-hex character "'+l+'" at index '+a)}r[i]=s*16+c}return r}function j6(t){return zN(td(t))}function G5(t){return qp(t),zN(td(Uint8Array.from(t).reverse()))}function ih(t,e){return rh(t.toString(16).padStart(e*2,"0"))}function L4(t,e){return ih(t,e).reverse()}function l2e(t){return rh(x5(t))}function L0(t,e,n){let r;if(typeof e=="string")try{r=rh(e)}catch(a){throw new Error(t+" must be hex string or Uint8Array, cause: "+a)}else if(ed(e))r=Uint8Array.from(e);else throw new Error(t+" must be hex string or Uint8Array");const i=r.length;if(typeof n=="number"&&i!==n)throw new Error(t+" of length "+n+" expected, got "+i);return r}function nd(...t){let e=0;for(let r=0;r<t.length;r++){const i=t[r];qp(i),e+=i.length}const n=new Uint8Array(e);for(let r=0,i=0;r<t.length;r++){const a=t[r];n.set(a,i),i+=a.length}return n}function u2e(t,e){if(t.length!==e.length)return!1;let n=0;for(let r=0;r<t.length;r++)n|=t[r]^e[r];return n===0}function f2e(t){if(typeof t!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(t))}const Hx=t=>typeof t=="bigint"&&gv<=t;function Mv(t,e,n){return Hx(t)&&Hx(e)&&Hx(n)&&e<=t&&t<n}function Qs(t,e,n,r){if(!Mv(e,n,r))throw new Error("expected valid "+t+": "+n+" <= n < "+r+", got "+e)}function Qq(t){let e;for(e=0;t>gv;t>>=vv,e+=1);return e}function d2e(t,e){return t>>BigInt(e)&vv}function h2e(t,e,n){return t|(n?vv:gv)<<BigInt(e)}const RN=t=>(o2e<<BigInt(t-1))-vv,Wx=t=>new Uint8Array(t),DO=t=>Uint8Array.from(t);function qq(t,e,n){if(typeof t!="number"||t<2)throw new Error("hashLen must be a number");if(typeof e!="number"||e<2)throw new Error("qByteLen must be a number");if(typeof n!="function")throw new Error("hmacFn must be a function");let r=Wx(t),i=Wx(t),a=0;const s=()=>{r.fill(1),i.fill(0),a=0},c=(...m)=>n(i,r,...m),l=(m=Wx())=>{i=c(DO([0]),m),r=c(),m.length!==0&&(i=c(DO([1]),m),r=c())},d=()=>{if(a++>=1e3)throw new Error("drbg: tried 1000 values");let m=0;const g=[];for(;m<e;){r=c();const M=r.slice();g.push(M),m+=r.length}return nd(...g)};return(m,g)=>{s(),l(m);let M;for(;!(M=g(d()));)l();return s(),M}}const p2e={bigint:t=>typeof t=="bigint",function:t=>typeof t=="function",boolean:t=>typeof t=="boolean",string:t=>typeof t=="string",stringOrUint8Array:t=>typeof t=="string"||ed(t),isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,e)=>e.Fp.isValid(t),hash:t=>typeof t=="function"&&Number.isSafeInteger(t.outputLen)};function Xh(t,e,n={}){const r=(i,a,s)=>{const c=p2e[a];if(typeof c!="function")throw new Error("invalid validator function");const l=t[i];if(!(s&&l===void 0)&&!c(l,t))throw new Error("param "+String(i)+" is invalid. Expected "+a+", got "+l)};for(const[i,a]of Object.entries(e))r(i,a,!1);for(const[i,a]of Object.entries(n))r(i,a,!0);return t}const b2e=()=>{throw new Error("not implemented")};function B4(t){const e=new WeakMap;return(n,...r)=>{const i=e.get(n);if(i!==void 0)return i;const a=t(n,...r);return e.set(n,a),a}}const m2e=Object.freeze(Object.defineProperty({__proto__:null,aInRange:Qs,abool:Jc,abytes:qp,bitGet:d2e,bitLen:Qq,bitMask:RN,bitSet:h2e,bytesToHex:td,bytesToNumberBE:j6,bytesToNumberLE:G5,concatBytes:nd,createHmacDrbg:qq,ensureBytes:L0,equalBytes:u2e,hexToBytes:rh,hexToNumber:zN,inRange:Mv,isBytes:ed,memoized:B4,notImplemented:b2e,numberToBytesBE:ih,numberToBytesLE:L4,numberToHexUnpadded:x5,numberToVarBytesBE:l2e,utf8ToBytes:f2e,validateObject:Xh},Symbol.toStringTag,{value:"Module"}));/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const ri=BigInt(0),Kr=BigInt(1),If=BigInt(2),y2e=BigInt(3),zS=BigInt(4),NO=BigInt(5),LO=BigInt(8);function $r(t,e){const n=t%e;return n>=ri?n:e+n}function g2e(t,e,n){if(e<ri)throw new Error("invalid exponent, negatives unsupported");if(n<=ri)throw new Error("invalid modulus");if(n===Kr)return ri;let r=Kr;for(;e>ri;)e&Kr&&(r=r*t%n),t=t*t%n,e>>=Kr;return r}function f0(t,e,n){let r=t;for(;e-- >ri;)r*=r,r%=n;return r}function RS(t,e){if(t===ri)throw new Error("invert: expected non-zero number");if(e<=ri)throw new Error("invert: expected positive modulus, got "+e);let n=$r(t,e),r=e,i=ri,a=Kr;for(;n!==ri;){const c=r/n,l=r%n,d=i-a*c;r=n,n=l,i=a,a=d}if(r!==Kr)throw new Error("invert: does not exist");return $r(i,e)}function v2e(t){const e=(t-Kr)/If;let n,r,i;for(n=t-Kr,r=0;n%If===ri;n/=If,r++);for(i=If;i<t&&g2e(i,e,t)!==t-Kr;i++)if(i>1e3)throw new Error("Cannot find square root: likely non-prime P");if(r===1){const s=(t+Kr)/zS;return function(l,d){const p=l.pow(d,s);if(!l.eql(l.sqr(p),d))throw new Error("Cannot find square root");return p}}const a=(n+Kr)/If;return function(c,l){if(c.pow(l,e)===c.neg(c.ONE))throw new Error("Cannot find square root");let d=r,p=c.pow(c.mul(c.ONE,i),n),m=c.pow(l,a),g=c.pow(l,n);for(;!c.eql(g,c.ONE);){if(c.eql(g,c.ZERO))return c.ZERO;let M=1;for(let T=c.sqr(g);M<d&&!c.eql(T,c.ONE);M++)T=c.sqr(T);const C=c.pow(p,Kr<<BigInt(d-M-1));p=c.sqr(C),m=c.mul(m,C),g=c.mul(g,p),d=M}return m}}function M2e(t){if(t%zS===y2e){const e=(t+Kr)/zS;return function(r,i){const a=r.pow(i,e);if(!r.eql(r.sqr(a),i))throw new Error("Cannot find square root");return a}}if(t%LO===NO){const e=(t-NO)/LO;return function(r,i){const a=r.mul(i,If),s=r.pow(a,e),c=r.mul(i,s),l=r.mul(r.mul(c,If),s),d=r.mul(c,r.sub(l,r.ONE));if(!r.eql(r.sqr(d),i))throw new Error("Cannot find square root");return d}}return v2e(t)}const x2e=(t,e)=>($r(t,e)&Kr)===Kr,w2e=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function A2e(t){const e={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},n=w2e.reduce((r,i)=>(r[i]="function",r),e);return Xh(t,n)}function C2e(t,e,n){if(n<ri)throw new Error("invalid exponent, negatives unsupported");if(n===ri)return t.ONE;if(n===Kr)return e;let r=t.ONE,i=e;for(;n>ri;)n&Kr&&(r=t.mul(r,i)),i=t.sqr(i),n>>=Kr;return r}function E2e(t,e){const n=new Array(e.length),r=e.reduce((a,s,c)=>t.is0(s)?a:(n[c]=a,t.mul(a,s)),t.ONE),i=t.inv(r);return e.reduceRight((a,s,c)=>t.is0(s)?a:(n[c]=t.mul(a,n[c]),t.mul(a,s)),i),n}function Zq(t,e){const n=e!==void 0?e:t.toString(2).length,r=Math.ceil(n/8);return{nBitLength:n,nByteLength:r}}function xv(t,e,n=!1,r={}){if(t<=ri)throw new Error("invalid field: expected ORDER > 0, got "+t);const{nBitLength:i,nByteLength:a}=Zq(t,e);if(a>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let s;const c=Object.freeze({ORDER:t,isLE:n,BITS:i,BYTES:a,MASK:RN(i),ZERO:ri,ONE:Kr,create:l=>$r(l,t),isValid:l=>{if(typeof l!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof l);return ri<=l&&l<t},is0:l=>l===ri,isOdd:l=>(l&Kr)===Kr,neg:l=>$r(-l,t),eql:(l,d)=>l===d,sqr:l=>$r(l*l,t),add:(l,d)=>$r(l+d,t),sub:(l,d)=>$r(l-d,t),mul:(l,d)=>$r(l*d,t),pow:(l,d)=>C2e(c,l,d),div:(l,d)=>$r(l*RS(d,t),t),sqrN:l=>l*l,addN:(l,d)=>l+d,subN:(l,d)=>l-d,mulN:(l,d)=>l*d,inv:l=>RS(l,t),sqrt:r.sqrt||(l=>(s||(s=M2e(t)),s(c,l))),invertBatch:l=>E2e(c,l),cmov:(l,d,p)=>p?d:l,toBytes:l=>n?L4(l,a):ih(l,a),fromBytes:l=>{if(l.length!==a)throw new Error("Field.fromBytes: expected "+a+" bytes, got "+l.length);return n?G5(l):j6(l)}});return Object.freeze(c)}function Kq(t){if(typeof t!="bigint")throw new Error("field order must be bigint");const e=t.toString(2).length;return Math.ceil(e/8)}function Xq(t){const e=Kq(t);return e+Math.ceil(e/2)}function S2e(t,e,n=!1){const r=t.length,i=Kq(e),a=Xq(e);if(r<16||r<a||r>1024)throw new Error("expected "+a+"-1024 bytes of input, got "+r);const s=n?G5(t):j6(t),c=$r(s,e-Kr)+Kr;return n?L4(c,i):ih(c,i)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const BO=BigInt(0),a9=BigInt(1);function Yx(t,e){const n=e.negate();return t?n:e}function Jq(t,e){if(!Number.isSafeInteger(t)||t<=0||t>e)throw new Error("invalid window size, expected [1.."+e+"], got W="+t)}function Gx(t,e){Jq(t,e);const n=Math.ceil(e/t)+1,r=2**(t-1);return{windows:n,windowSize:r}}function T2e(t,e){if(!Array.isArray(t))throw new Error("array expected");t.forEach((n,r)=>{if(!(n instanceof e))throw new Error("invalid point at index "+r)})}function I2e(t,e){if(!Array.isArray(t))throw new Error("array of scalars expected");t.forEach((n,r)=>{if(!e.isValid(n))throw new Error("invalid scalar at index "+r)})}const $x=new WeakMap,eZ=new WeakMap;function Vx(t){return eZ.get(t)||1}function tZ(t,e){return{constTimeNegate:Yx,hasPrecomputes(n){return Vx(n)!==1},unsafeLadder(n,r,i=t.ZERO){let a=n;for(;r>BO;)r&a9&&(i=i.add(a)),a=a.double(),r>>=a9;return i},precomputeWindow(n,r){const{windows:i,windowSize:a}=Gx(r,e),s=[];let c=n,l=c;for(let d=0;d<i;d++){l=c,s.push(l);for(let p=1;p<a;p++)l=l.add(c),s.push(l);c=l.double()}return s},wNAF(n,r,i){const{windows:a,windowSize:s}=Gx(n,e);let c=t.ZERO,l=t.BASE;const d=BigInt(2**n-1),p=2**n,m=BigInt(n);for(let g=0;g<a;g++){const M=g*s;let C=Number(i&d);i>>=m,C>s&&(C-=p,i+=a9);const T=M,D=M+Math.abs(C)-1,S=g%2!==0,I=C<0;C===0?l=l.add(Yx(S,r[T])):c=c.add(Yx(I,r[D]))}return{p:c,f:l}},wNAFUnsafe(n,r,i,a=t.ZERO){const{windows:s,windowSize:c}=Gx(n,e),l=BigInt(2**n-1),d=2**n,p=BigInt(n);for(let m=0;m<s;m++){const g=m*c;if(i===BO)break;let M=Number(i&l);if(i>>=p,M>c&&(M-=d,i+=a9),M===0)continue;let C=r[g+Math.abs(M)-1];M<0&&(C=C.negate()),a=a.add(C)}return a},getPrecomputes(n,r,i){let a=$x.get(r);return a||(a=this.precomputeWindow(r,n),n!==1&&$x.set(r,i(a))),a},wNAFCached(n,r,i){const a=Vx(n);return this.wNAF(a,this.getPrecomputes(a,n,i),r)},wNAFCachedUnsafe(n,r,i,a){const s=Vx(n);return s===1?this.unsafeLadder(n,r,a):this.wNAFUnsafe(s,this.getPrecomputes(s,n,i),r,a)},setWindowSize(n,r){Jq(r,e),eZ.set(n,r),$x.delete(n)}}}function nZ(t,e,n,r){if(T2e(n,t),I2e(r,e),n.length!==r.length)throw new Error("arrays of points and scalars must have equal length");const i=t.ZERO,a=Qq(BigInt(n.length)),s=a>12?a-3:a>4?a-2:a?2:1,c=(1<<s)-1,l=new Array(c+1).fill(i),d=Math.floor((e.BITS-1)/s)*s;let p=i;for(let m=d;m>=0;m-=s){l.fill(i);for(let M=0;M<r.length;M++){const C=r[M],T=Number(C>>BigInt(m)&BigInt(c));l[T]=l[T].add(n[M])}let g=i;for(let M=l.length-1,C=i;M>0;M--)C=C.add(l[M]),g=g.add(C);if(p=p.add(g),m!==0)for(let M=0;M<s;M++)p=p.double()}return p}function PN(t){return A2e(t.Fp),Xh(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...Zq(t.n,t.nBitLength),...t,p:t.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function jO(t){t.lowS!==void 0&&Jc("lowS",t.lowS),t.prehash!==void 0&&Jc("prehash",t.prehash)}function D2e(t){const e=PN(t);Xh(e,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:n,Fp:r,a:i}=e;if(n){if(!r.eql(i,r.ZERO))throw new Error("invalid endomorphism, can only be defined for Koblitz curves that have a=0");if(typeof n!="object"||typeof n.beta!="bigint"||typeof n.splitScalar!="function")throw new Error("invalid endomorphism, expected beta: bigint and splitScalar: function")}return Object.freeze({...e})}const{bytesToNumberBE:N2e,hexToBytes:L2e}=m2e;class B2e extends Error{constructor(e=""){super(e)}}const vc={Err:B2e,_tlv:{encode:(t,e)=>{const{Err:n}=vc;if(t<0||t>256)throw new n("tlv.encode: wrong tag");if(e.length&1)throw new n("tlv.encode: unpadded data");const r=e.length/2,i=x5(r);if(i.length/2&128)throw new n("tlv.encode: long form length too big");const a=r>127?x5(i.length/2|128):"";return x5(t)+a+i+e},decode(t,e){const{Err:n}=vc;let r=0;if(t<0||t>256)throw new n("tlv.encode: wrong tag");if(e.length<2||e[r++]!==t)throw new n("tlv.decode: wrong tlv");const i=e[r++],a=!!(i&128);let s=0;if(!a)s=i;else{const l=i&127;if(!l)throw new n("tlv.decode(long): indefinite length not supported");if(l>4)throw new n("tlv.decode(long): byte length is too big");const d=e.subarray(r,r+l);if(d.length!==l)throw new n("tlv.decode: length bytes not complete");if(d[0]===0)throw new n("tlv.decode(long): zero leftmost byte");for(const p of d)s=s<<8|p;if(r+=l,s<128)throw new n("tlv.decode(long): not minimal encoding")}const c=e.subarray(r,r+s);if(c.length!==s)throw new n("tlv.decode: wrong value length");return{v:c,l:e.subarray(r+s)}}},_int:{encode(t){const{Err:e}=vc;if(t<zc)throw new e("integer: negative integers are not allowed");let n=x5(t);if(Number.parseInt(n[0],16)&8&&(n="00"+n),n.length&1)throw new e("unexpected DER parsing assertion: unpadded hex");return n},decode(t){const{Err:e}=vc;if(t[0]&128)throw new e("invalid signature integer: negative");if(t[0]===0&&!(t[1]&128))throw new e("invalid signature integer: unnecessary leading zero");return N2e(t)}},toSig(t){const{Err:e,_int:n,_tlv:r}=vc,i=typeof t=="string"?L2e(t):t;qp(i);const{v:a,l:s}=r.decode(48,i);if(s.length)throw new e("invalid signature: left bytes after parsing");const{v:c,l}=r.decode(2,a),{v:d,l:p}=r.decode(2,l);if(p.length)throw new e("invalid signature: left bytes after parsing");return{r:n.decode(c),s:n.decode(d)}},hexFromSig(t){const{_tlv:e,_int:n}=vc,r=e.encode(2,n.encode(t.r)),i=e.encode(2,n.encode(t.s)),a=r+i;return e.encode(48,a)}},zc=BigInt(0),Z0=BigInt(1);BigInt(2);const kO=BigInt(3);BigInt(4);function j2e(t){const e=D2e(t),{Fp:n}=e,r=xv(e.n,e.nBitLength),i=e.toBytes||((T,D,S)=>{const I=D.toAffine();return nd(Uint8Array.from([4]),n.toBytes(I.x),n.toBytes(I.y))}),a=e.fromBytes||(T=>{const D=T.subarray(1),S=n.fromBytes(D.subarray(0,n.BYTES)),I=n.fromBytes(D.subarray(n.BYTES,2*n.BYTES));return{x:S,y:I}});function s(T){const{a:D,b:S}=e,I=n.sqr(T),N=n.mul(I,T);return n.add(n.add(N,n.mul(T,D)),S)}if(!n.eql(n.sqr(e.Gy),s(e.Gx)))throw new Error("bad generator point: equation left != right");function c(T){return Mv(T,Z0,e.n)}function l(T){const{allowedPrivateKeyLengths:D,nByteLength:S,wrapPrivateKey:I,n:N}=e;if(D&&typeof T!="bigint"){if(ed(T)&&(T=td(T)),typeof T!="string"||!D.includes(T.length))throw new Error("invalid private key");T=T.padStart(S*2,"0")}let B;try{B=typeof T=="bigint"?T:j6(L0("private key",T,S))}catch{throw new Error("invalid private key, expected hex or "+S+" bytes, got "+typeof T)}return I&&(B=$r(B,N)),Qs("private key",B,Z0,N),B}function d(T){if(!(T instanceof g))throw new Error("ProjectivePoint expected")}const p=B4((T,D)=>{const{px:S,py:I,pz:N}=T;if(n.eql(N,n.ONE))return{x:S,y:I};const B=T.is0();D==null&&(D=B?n.ONE:n.inv(N));const k=n.mul(S,D),O=n.mul(I,D),z=n.mul(N,D);if(B)return{x:n.ZERO,y:n.ZERO};if(!n.eql(z,n.ONE))throw new Error("invZ was invalid");return{x:k,y:O}}),m=B4(T=>{if(T.is0()){if(e.allowInfinityPoint&&!n.is0(T.py))return;throw new Error("bad point: ZERO")}const{x:D,y:S}=T.toAffine();if(!n.isValid(D)||!n.isValid(S))throw new Error("bad point: x or y not FE");const I=n.sqr(S),N=s(D);if(!n.eql(I,N))throw new Error("bad point: equation left != right");if(!T.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});class g{constructor(D,S,I){if(this.px=D,this.py=S,this.pz=I,D==null||!n.isValid(D))throw new Error("x required");if(S==null||!n.isValid(S))throw new Error("y required");if(I==null||!n.isValid(I))throw new Error("z required");Object.freeze(this)}static fromAffine(D){const{x:S,y:I}=D||{};if(!D||!n.isValid(S)||!n.isValid(I))throw new Error("invalid affine point");if(D instanceof g)throw new Error("projective point not allowed");const N=B=>n.eql(B,n.ZERO);return N(S)&&N(I)?g.ZERO:new g(S,I,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(D){const S=n.invertBatch(D.map(I=>I.pz));return D.map((I,N)=>I.toAffine(S[N])).map(g.fromAffine)}static fromHex(D){const S=g.fromAffine(a(L0("pointHex",D)));return S.assertValidity(),S}static fromPrivateKey(D){return g.BASE.multiply(l(D))}static msm(D,S){return nZ(g,r,D,S)}_setWindowSize(D){C.setWindowSize(this,D)}assertValidity(){m(this)}hasEvenY(){const{y:D}=this.toAffine();if(n.isOdd)return!n.isOdd(D);throw new Error("Field doesn't support isOdd")}equals(D){d(D);const{px:S,py:I,pz:N}=this,{px:B,py:k,pz:O}=D,z=n.eql(n.mul(S,O),n.mul(B,N)),_=n.eql(n.mul(I,O),n.mul(k,N));return z&&_}negate(){return new g(this.px,n.neg(this.py),this.pz)}double(){const{a:D,b:S}=e,I=n.mul(S,kO),{px:N,py:B,pz:k}=this;let O=n.ZERO,z=n.ZERO,_=n.ZERO,F=n.mul(N,N),R=n.mul(B,B),w=n.mul(k,k),o=n.mul(N,B);return o=n.add(o,o),_=n.mul(N,k),_=n.add(_,_),O=n.mul(D,_),z=n.mul(I,w),z=n.add(O,z),O=n.sub(R,z),z=n.add(R,z),z=n.mul(O,z),O=n.mul(o,O),_=n.mul(I,_),w=n.mul(D,w),o=n.sub(F,w),o=n.mul(D,o),o=n.add(o,_),_=n.add(F,F),F=n.add(_,F),F=n.add(F,w),F=n.mul(F,o),z=n.add(z,F),w=n.mul(B,k),w=n.add(w,w),F=n.mul(w,o),O=n.sub(O,F),_=n.mul(w,R),_=n.add(_,_),_=n.add(_,_),new g(O,z,_)}add(D){d(D);const{px:S,py:I,pz:N}=this,{px:B,py:k,pz:O}=D;let z=n.ZERO,_=n.ZERO,F=n.ZERO;const R=e.a,w=n.mul(e.b,kO);let o=n.mul(S,B),u=n.mul(I,k),h=n.mul(N,O),b=n.add(S,I),y=n.add(B,k);b=n.mul(b,y),y=n.add(o,u),b=n.sub(b,y),y=n.add(S,N);let x=n.add(B,O);return y=n.mul(y,x),x=n.add(o,h),y=n.sub(y,x),x=n.add(I,N),z=n.add(k,O),x=n.mul(x,z),z=n.add(u,h),x=n.sub(x,z),F=n.mul(R,y),z=n.mul(w,h),F=n.add(z,F),z=n.sub(u,F),F=n.add(u,F),_=n.mul(z,F),u=n.add(o,o),u=n.add(u,o),h=n.mul(R,h),y=n.mul(w,y),u=n.add(u,h),h=n.sub(o,h),h=n.mul(R,h),y=n.add(y,h),o=n.mul(u,y),_=n.add(_,o),o=n.mul(x,y),z=n.mul(b,z),z=n.sub(z,o),o=n.mul(b,u),F=n.mul(x,F),F=n.add(F,o),new g(z,_,F)}subtract(D){return this.add(D.negate())}is0(){return this.equals(g.ZERO)}wNAF(D){return C.wNAFCached(this,D,g.normalizeZ)}multiplyUnsafe(D){const{endo:S,n:I}=e;Qs("scalar",D,zc,I);const N=g.ZERO;if(D===zc)return N;if(this.is0()||D===Z0)return this;if(!S||C.hasPrecomputes(this))return C.wNAFCachedUnsafe(this,D,g.normalizeZ);let{k1neg:B,k1:k,k2neg:O,k2:z}=S.splitScalar(D),_=N,F=N,R=this;for(;k>zc||z>zc;)k&Z0&&(_=_.add(R)),z&Z0&&(F=F.add(R)),R=R.double(),k>>=Z0,z>>=Z0;return B&&(_=_.negate()),O&&(F=F.negate()),F=new g(n.mul(F.px,S.beta),F.py,F.pz),_.add(F)}multiply(D){const{endo:S,n:I}=e;Qs("scalar",D,Z0,I);let N,B;if(S){const{k1neg:k,k1:O,k2neg:z,k2:_}=S.splitScalar(D);let{p:F,f:R}=this.wNAF(O),{p:w,f:o}=this.wNAF(_);F=C.constTimeNegate(k,F),w=C.constTimeNegate(z,w),w=new g(n.mul(w.px,S.beta),w.py,w.pz),N=F.add(w),B=R.add(o)}else{const{p:k,f:O}=this.wNAF(D);N=k,B=O}return g.normalizeZ([N,B])[0]}multiplyAndAddUnsafe(D,S,I){const N=g.BASE,B=(O,z)=>z===zc||z===Z0||!O.equals(N)?O.multiplyUnsafe(z):O.multiply(z),k=B(this,S).add(B(D,I));return k.is0()?void 0:k}toAffine(D){return p(this,D)}isTorsionFree(){const{h:D,isTorsionFree:S}=e;if(D===Z0)return!0;if(S)return S(g,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:D,clearCofactor:S}=e;return D===Z0?this:S?S(g,this):this.multiplyUnsafe(e.h)}toRawBytes(D=!0){return Jc("isCompressed",D),this.assertValidity(),i(g,this,D)}toHex(D=!0){return Jc("isCompressed",D),td(this.toRawBytes(D))}}g.BASE=new g(e.Gx,e.Gy,n.ONE),g.ZERO=new g(n.ZERO,n.ONE,n.ZERO);const M=e.nBitLength,C=tZ(g,e.endo?Math.ceil(M/2):M);return{CURVE:e,ProjectivePoint:g,normPrivateKeyToScalar:l,weierstrassEquation:s,isWithinCurveOrder:c}}function k2e(t){const e=PN(t);return Xh(e,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...e})}function _2e(t){const e=k2e(t),{Fp:n,n:r}=e,i=n.BYTES+1,a=2*n.BYTES+1;function s(h){return $r(h,r)}function c(h){return RS(h,r)}const{ProjectivePoint:l,normPrivateKeyToScalar:d,weierstrassEquation:p,isWithinCurveOrder:m}=j2e({...e,toBytes(h,b,y){const x=b.toAffine(),E=n.toBytes(x.x),v=nd;return Jc("isCompressed",y),y?v(Uint8Array.from([b.hasEvenY()?2:3]),E):v(Uint8Array.from([4]),E,n.toBytes(x.y))},fromBytes(h){const b=h.length,y=h[0],x=h.subarray(1);if(b===i&&(y===2||y===3)){const E=j6(x);if(!Mv(E,Z0,n.ORDER))throw new Error("Point is not on curve");const v=p(E);let f;try{f=n.sqrt(v)}catch(P){const $=P instanceof Error?": "+P.message:"";throw new Error("Point is not on curve"+$)}const A=(f&Z0)===Z0;return(y&1)===1!==A&&(f=n.neg(f)),{x:E,y:f}}else if(b===a&&y===4){const E=n.fromBytes(x.subarray(0,n.BYTES)),v=n.fromBytes(x.subarray(n.BYTES,2*n.BYTES));return{x:E,y:v}}else{const E=i,v=a;throw new Error("invalid Point, expected length of "+E+", or uncompressed "+v+", got "+b)}}}),g=h=>td(ih(h,e.nByteLength));function M(h){const b=r>>Z0;return h>b}function C(h){return M(h)?s(-h):h}const T=(h,b,y)=>j6(h.slice(b,y));class D{constructor(b,y,x){this.r=b,this.s=y,this.recovery=x,this.assertValidity()}static fromCompact(b){const y=e.nByteLength;return b=L0("compactSignature",b,y*2),new D(T(b,0,y),T(b,y,2*y))}static fromDER(b){const{r:y,s:x}=vc.toSig(L0("DER",b));return new D(y,x)}assertValidity(){Qs("r",this.r,Z0,r),Qs("s",this.s,Z0,r)}addRecoveryBit(b){return new D(this.r,this.s,b)}recoverPublicKey(b){const{r:y,s:x,recovery:E}=this,v=O(L0("msgHash",b));if(E==null||![0,1,2,3].includes(E))throw new Error("recovery id invalid");const f=E===2||E===3?y+e.n:y;if(f>=n.ORDER)throw new Error("recovery id 2 or 3 invalid");const A=E&1?"03":"02",j=l.fromHex(A+g(f)),P=c(f),$=s(-v*P),K=s(x*P),Q=l.BASE.multiplyAndAddUnsafe(j,$,K);if(!Q)throw new Error("point at infinify");return Q.assertValidity(),Q}hasHighS(){return M(this.s)}normalizeS(){return this.hasHighS()?new D(this.r,s(-this.s),this.recovery):this}toDERRawBytes(){return rh(this.toDERHex())}toDERHex(){return vc.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return rh(this.toCompactHex())}toCompactHex(){return g(this.r)+g(this.s)}}const S={isValidPrivateKey(h){try{return d(h),!0}catch{return!1}},normPrivateKeyToScalar:d,randomPrivateKey:()=>{const h=Xq(e.n);return S2e(e.randomBytes(h),e.n)},precompute(h=8,b=l.BASE){return b._setWindowSize(h),b.multiply(BigInt(3)),b}};function I(h,b=!0){return l.fromPrivateKey(h).toRawBytes(b)}function N(h){const b=ed(h),y=typeof h=="string",x=(b||y)&&h.length;return b?x===i||x===a:y?x===2*i||x===2*a:h instanceof l}function B(h,b,y=!0){if(N(h))throw new Error("first arg must be private key");if(!N(b))throw new Error("second arg must be public key");return l.fromHex(b).multiply(d(h)).toRawBytes(y)}const k=e.bits2int||function(h){if(h.length>8192)throw new Error("input is too large");const b=j6(h),y=h.length*8-e.nBitLength;return y>0?b>>BigInt(y):b},O=e.bits2int_modN||function(h){return s(k(h))},z=RN(e.nBitLength);function _(h){return Qs("num < 2^"+e.nBitLength,h,zc,z),ih(h,e.nByteLength)}function F(h,b,y=R){if(["recovered","canonical"].some(V=>V in y))throw new Error("sign() legacy options not supported");const{hash:x,randomBytes:E}=e;let{lowS:v,prehash:f,extraEntropy:A}=y;v==null&&(v=!0),h=L0("msgHash",h),jO(y),f&&(h=L0("prehashed msgHash",x(h)));const j=O(h),P=d(b),$=[_(P),_(j)];if(A!=null&&A!==!1){const V=A===!0?E(n.BYTES):A;$.push(L0("extraEntropy",V))}const K=nd(...$),Q=j;function H(V){const J=k(V);if(!m(J))return;const ae=c(J),te=l.BASE.multiply(J).toAffine(),Z=s(te.x);if(Z===zc)return;const ce=s(ae*s(Q+Z*P));if(ce===zc)return;let De=(te.x===Z?0:2)|Number(te.y&Z0),pe=ce;return v&&M(ce)&&(pe=C(ce),De^=1),new D(Z,pe,De)}return{seed:K,k2sig:H}}const R={lowS:e.lowS,prehash:!1},w={lowS:e.lowS,prehash:!1};function o(h,b,y=R){const{seed:x,k2sig:E}=F(h,b,y),v=e;return qq(v.hash.outputLen,v.nByteLength,v.hmac)(x,E)}l.BASE._setWindowSize(8);function u(h,b,y,x=w){var De;const E=h;b=L0("msgHash",b),y=L0("publicKey",y);const{lowS:v,prehash:f,format:A}=x;if(jO(x),"strict"in x)throw new Error("options.strict was renamed to lowS");if(A!==void 0&&A!=="compact"&&A!=="der")throw new Error("format must be compact or der");const j=typeof E=="string"||ed(E),P=!j&&!A&&typeof E=="object"&&E!==null&&typeof E.r=="bigint"&&typeof E.s=="bigint";if(!j&&!P)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let $,K;try{if(P&&($=new D(E.r,E.s)),j){try{A!=="compact"&&($=D.fromDER(E))}catch(pe){if(!(pe instanceof vc.Err))throw pe}!$&&A!=="der"&&($=D.fromCompact(E))}K=l.fromHex(y)}catch{return!1}if(!$||v&&$.hasHighS())return!1;f&&(b=e.hash(b));const{r:Q,s:H}=$,V=O(b),J=c(H),ae=s(V*J),te=s(Q*J),Z=(De=l.BASE.multiplyAndAddUnsafe(K,ae,te))==null?void 0:De.toAffine();return Z?s(Z.x)===Q:!1}return{CURVE:e,getPublicKey:I,getSharedSecret:B,sign:o,verify:u,ProjectivePoint:l,Signature:D,utils:S}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function O2e(t){return{hash:t,hmac:(e,...n)=>Vq(t,e,E5e(...n)),randomBytes:Bq}}function F2e(t,e){const n=r=>_2e({...t,...O2e(r)});return{...n(e),create:n}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const rZ=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),_O=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),z2e=BigInt(1),PS=BigInt(2),OO=(t,e)=>(t+e/PS)/e;function R2e(t){const e=rZ,n=BigInt(3),r=BigInt(6),i=BigInt(11),a=BigInt(22),s=BigInt(23),c=BigInt(44),l=BigInt(88),d=t*t*t%e,p=d*d*t%e,m=f0(p,n,e)*p%e,g=f0(m,n,e)*p%e,M=f0(g,PS,e)*d%e,C=f0(M,i,e)*M%e,T=f0(C,a,e)*C%e,D=f0(T,c,e)*T%e,S=f0(D,l,e)*D%e,I=f0(S,c,e)*T%e,N=f0(I,n,e)*p%e,B=f0(N,s,e)*C%e,k=f0(B,r,e)*d%e,O=f0(k,PS,e);if(!US.eql(US.sqr(O),t))throw new Error("Cannot find square root");return O}const US=xv(rZ,void 0,void 0,{sqrt:R2e}),wu=F2e({a:BigInt(0),b:BigInt(7),Fp:US,n:_O,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:t=>{const e=_O,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-z2e*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),a=n,s=BigInt("0x100000000000000000000000000000000"),c=OO(a*t,e),l=OO(-r*t,e);let d=$r(t-c*n-l*i,e),p=$r(-c*r-l*a,e);const m=d>s,g=p>s;if(m&&(d=e-d),g&&(p=e-p),d>s||p>s)throw new Error("splitScalar: Endomorphism failed, k="+t);return{k1neg:m,k1:d,k2neg:g,k2:p}}}},qu);BigInt(0);wu.ProjectivePoint;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const wo=BigInt(0),ma=BigInt(1),s9=BigInt(2),P2e=BigInt(8),U2e={zip215:!0};function H2e(t){const e=PN(t);return Xh(t,{hash:"function",a:"bigint",d:"bigint",randomBytes:"function"},{adjustScalarBytes:"function",domain:"function",uvRatio:"function",mapToCurve:"function"}),Object.freeze({...e})}function W2e(t){const e=H2e(t),{Fp:n,n:r,prehash:i,hash:a,randomBytes:s,nByteLength:c,h:l}=e,d=s9<<BigInt(c*8)-ma,p=n.create,m=xv(e.n,e.nBitLength),g=e.uvRatio||((y,x)=>{try{return{isValid:!0,value:n.sqrt(y*n.inv(x))}}catch{return{isValid:!1,value:wo}}}),M=e.adjustScalarBytes||(y=>y),C=e.domain||((y,x,E)=>{if(Jc("phflag",E),x.length||E)throw new Error("Contexts/pre-hash are not supported");return y});function T(y,x){Qs("coordinate "+y,x,wo,d)}function D(y){if(!(y instanceof N))throw new Error("ExtendedPoint expected")}const S=B4((y,x)=>{const{ex:E,ey:v,ez:f}=y,A=y.is0();x==null&&(x=A?P2e:n.inv(f));const j=p(E*x),P=p(v*x),$=p(f*x);if(A)return{x:wo,y:ma};if($!==ma)throw new Error("invZ was invalid");return{x:j,y:P}}),I=B4(y=>{const{a:x,d:E}=e;if(y.is0())throw new Error("bad point: ZERO");const{ex:v,ey:f,ez:A,et:j}=y,P=p(v*v),$=p(f*f),K=p(A*A),Q=p(K*K),H=p(P*x),V=p(K*p(H+$)),J=p(Q+p(E*p(P*$)));if(V!==J)throw new Error("bad point: equation left != right (1)");const ae=p(v*f),te=p(A*j);if(ae!==te)throw new Error("bad point: equation left != right (2)");return!0});class N{constructor(x,E,v,f){this.ex=x,this.ey=E,this.ez=v,this.et=f,T("x",x),T("y",E),T("z",v),T("t",f),Object.freeze(this)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(x){if(x instanceof N)throw new Error("extended point not allowed");const{x:E,y:v}=x||{};return T("x",E),T("y",v),new N(E,v,ma,p(E*v))}static normalizeZ(x){const E=n.invertBatch(x.map(v=>v.ez));return x.map((v,f)=>v.toAffine(E[f])).map(N.fromAffine)}static msm(x,E){return nZ(N,m,x,E)}_setWindowSize(x){O.setWindowSize(this,x)}assertValidity(){I(this)}equals(x){D(x);const{ex:E,ey:v,ez:f}=this,{ex:A,ey:j,ez:P}=x,$=p(E*P),K=p(A*f),Q=p(v*P),H=p(j*f);return $===K&&Q===H}is0(){return this.equals(N.ZERO)}negate(){return new N(p(-this.ex),this.ey,this.ez,p(-this.et))}double(){const{a:x}=e,{ex:E,ey:v,ez:f}=this,A=p(E*E),j=p(v*v),P=p(s9*p(f*f)),$=p(x*A),K=E+v,Q=p(p(K*K)-A-j),H=$+j,V=H-P,J=$-j,ae=p(Q*V),te=p(H*J),Z=p(Q*J),ce=p(V*H);return new N(ae,te,ce,Z)}add(x){D(x);const{a:E,d:v}=e,{ex:f,ey:A,ez:j,et:P}=this,{ex:$,ey:K,ez:Q,et:H}=x;if(E===BigInt(-1)){const lt=p((A-f)*(K+$)),Me=p((A+f)*(K-$)),ye=p(Me-lt);if(ye===wo)return this.double();const _e=p(j*s9*H),be=p(P*s9*Q),we=be+_e,yt=Me+lt,q=be-_e,U=p(we*ye),Y=p(yt*q),ie=p(we*q),ue=p(ye*yt);return new N(U,Y,ue,ie)}const V=p(f*$),J=p(A*K),ae=p(P*v*H),te=p(j*Q),Z=p((f+A)*($+K)-V-J),ce=te-ae,De=te+ae,pe=p(J-E*V),Se=p(Z*ce),st=p(De*pe),ve=p(Z*pe),Ne=p(ce*De);return new N(Se,st,Ne,ve)}subtract(x){return this.add(x.negate())}wNAF(x){return O.wNAFCached(this,x,N.normalizeZ)}multiply(x){const E=x;Qs("scalar",E,ma,r);const{p:v,f}=this.wNAF(E);return N.normalizeZ([v,f])[0]}multiplyUnsafe(x,E=N.ZERO){const v=x;return Qs("scalar",v,wo,r),v===wo?k:this.is0()||v===ma?this:O.wNAFCachedUnsafe(this,v,N.normalizeZ,E)}isSmallOrder(){return this.multiplyUnsafe(l).is0()}isTorsionFree(){return O.unsafeLadder(this,r).is0()}toAffine(x){return S(this,x)}clearCofactor(){const{h:x}=e;return x===ma?this:this.multiplyUnsafe(x)}static fromHex(x,E=!1){const{d:v,a:f}=e,A=n.BYTES;x=L0("pointHex",x,A),Jc("zip215",E);const j=x.slice(),P=x[A-1];j[A-1]=P&-129;const $=G5(j),K=E?d:n.ORDER;Qs("pointHex.y",$,wo,K);const Q=p($*$),H=p(Q-ma),V=p(v*Q-f);let{isValid:J,value:ae}=g(H,V);if(!J)throw new Error("Point.fromHex: invalid y coordinate");const te=(ae&ma)===ma,Z=(P&128)!==0;if(!E&&ae===wo&&Z)throw new Error("Point.fromHex: x=0 and x_0=1");return Z!==te&&(ae=p(-ae)),N.fromAffine({x:ae,y:$})}static fromPrivateKey(x){return F(x).point}toRawBytes(){const{x,y:E}=this.toAffine(),v=L4(E,n.BYTES);return v[v.length-1]|=x&ma?128:0,v}toHex(){return td(this.toRawBytes())}}N.BASE=new N(e.Gx,e.Gy,ma,p(e.Gx*e.Gy)),N.ZERO=new N(wo,ma,ma,wo);const{BASE:B,ZERO:k}=N,O=tZ(N,c*8);function z(y){return $r(y,r)}function _(y){return z(G5(y))}function F(y){const x=n.BYTES;y=L0("private key",y,x);const E=L0("hashed private key",a(y),2*x),v=M(E.slice(0,x)),f=E.slice(x,2*x),A=_(v),j=B.multiply(A),P=j.toRawBytes();return{head:v,prefix:f,scalar:A,point:j,pointBytes:P}}function R(y){return F(y).pointBytes}function w(y=new Uint8Array,...x){const E=nd(...x);return _(a(C(E,L0("context",y),!!i)))}function o(y,x,E={}){y=L0("message",y),i&&(y=i(y));const{prefix:v,scalar:f,pointBytes:A}=F(x),j=w(E.context,v,y),P=B.multiply(j).toRawBytes(),$=w(E.context,P,A,y),K=z(j+$*f);Qs("signature.s",K,wo,r);const Q=nd(P,L4(K,n.BYTES));return L0("result",Q,n.BYTES*2)}const u=U2e;function h(y,x,E,v=u){const{context:f,zip215:A}=v,j=n.BYTES;y=L0("signature",y,2*j),x=L0("message",x),E=L0("publicKey",E,j),A!==void 0&&Jc("zip215",A),i&&(x=i(x));const P=G5(y.slice(j,2*j));let $,K,Q;try{$=N.fromHex(E,A),K=N.fromHex(y.slice(0,j),A),Q=B.multiplyUnsafe(P)}catch{return!1}if(!A&&$.isSmallOrder())return!1;const H=w(f,K.toRawBytes(),$.toRawBytes(),x);return K.add($.multiplyUnsafe(H)).subtract(Q).clearCofactor().equals(N.ZERO)}return B._setWindowSize(8),{CURVE:e,getPublicKey:R,sign:o,verify:h,ExtendedPoint:N,utils:{getExtendedPublicKey:F,randomPrivateKey:()=>s(n.BYTES),precompute(y=8,x=N.BASE){return x._setWindowSize(y),x.multiply(BigInt(3)),x}}}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const UN=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),FO=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");BigInt(0);const Y2e=BigInt(1),zO=BigInt(2);BigInt(3);const G2e=BigInt(5),$2e=BigInt(8);function V2e(t){const e=BigInt(10),n=BigInt(20),r=BigInt(40),i=BigInt(80),a=UN,c=t*t%a*t%a,l=f0(c,zO,a)*c%a,d=f0(l,Y2e,a)*t%a,p=f0(d,G2e,a)*d%a,m=f0(p,e,a)*p%a,g=f0(m,n,a)*m%a,M=f0(g,r,a)*g%a,C=f0(M,i,a)*M%a,T=f0(C,i,a)*M%a,D=f0(T,e,a)*p%a;return{pow_p_5_8:f0(D,zO,a)*t%a,b2:c}}function Q2e(t){return t[0]&=248,t[31]&=127,t[31]|=64,t}function q2e(t,e){const n=UN,r=$r(e*e*e,n),i=$r(r*r*e,n),a=V2e(t*i).pow_p_5_8;let s=$r(t*r*a,n);const c=$r(e*s*s,n),l=s,d=$r(s*FO,n),p=c===t,m=c===$r(-t,n),g=c===$r(-t*FO,n);return p&&(s=l),(m||g)&&(s=d),x2e(s,n)&&(s=$r(-s,n)),{isValid:p||m,value:s}}const Z2e=xv(UN,void 0,!0),K2e={a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp:Z2e,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:$2e,Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),hash:a2e,randomBytes:Bq,adjustScalarBytes:Q2e,uvRatio:q2e},Jh=W2e(K2e),X2e=[{name:"appIdPrefix",binary:"bytes",custom:Tr.encode("appID"),omit:!0},{name:"appId",binary:"uint",size:8}],t1=class t1{constructor(e,n="hex"){se(this,"address");this.address=typeof e=="string"?t1.stringToUint8Array(e,n):e}toNative(e){return Gi(e,this)}unwrap(){return this.address}toString(){return dr.encode(this.address,!0)}toUint8Array(){return this.address}toUniversalAddress(){return this}equals(e){return Tr.equals(this.address,e.address)}static isValidAddress(e,n="hex"){return!Mde(()=>t1.stringToUint8Array(e,n))}static instanceof(e){return typeof e=="object"&&"constructor"in e&&e.constructor.type===t1.type}static stringToUint8Array(e,n){const r=(()=>{switch(n){case"hex":if(![40,2*this.byteSize].includes(e.length-(e.startsWith("0x")?2:0)))throw new Error(`string ${e} has invalid length for format ${n}`);return dr.decode(e);case"base58":return yq.decode(e);case"bech32":return M5.decodeToBytes(e).bytes;case"algorandAppId":return s2e(oo(X2e,{appId:BigInt(e)}));case"sha256":return qu(e)}})();if(r.length>t1.byteSize)throw new Error(`string ${e} has invalid length for format ${n}`);return r.length<t1.byteSize?Tr.zpad(r,t1.byteSize):r}};se(t1,"byteSize",32),se(t1,"type","Universal");let jr=t1;function J2e(t){return typeof t=="object"&&"setChain"in t}const HS=new Map;function e8(t,e){HS.has(t)||HS.set(t,e)}function Gi(t,e){const n=Yi.get(t),r=HS.get(n);if(!r)throw new Error(`No native address type registered for platform ${n}, import the platform directly or, if using sdk package, import the addresses conditional export`);try{const i=new r(e);return J2e(i)&&i.setChain(t),i}catch(i){const a=`Error parsing address as a native ${t} address: ${i.message}`;if(jr.instanceof(e))throw a;return new jr(e).toNative(t)}}function rd(t,e){const n=Yi.get(t);return new jr(e,Gde.get(n))}function ehe(t){return"getVersion"in t}const Au={};function wv(t,e,n){e in Au||(Au[e]={});const r=Au[e];if(t in r)throw new Error(`Protocol ${t} for protocol ${e} has already registered`);Au[e][t]=n}function the(t,e){const n=qh(t)?Yi.get(t):t;return e in Au?n in Au[e]:!1}function iZ(t,e){if(e in Au){const n=Au[e];if(n&&t in n){const r=n[t];if(r)return r}}throw new Error(`No protocols registered for ${t}:${e}. This may be because the platform specific protocol implementation is not registered (by installing and importing it) or no implementation exists for this platform`)}const nhe=(t,e,n,r)=>iZ(t,e).fromRpc(n,r),WS=(t,e)=>t?`${t}:${e}`:e,YS=new Map;function rhe(t,e,n){const r=WS(t,e);if(YS.has(r))throw new Error(`Payload type ${r} already registered`);YS.set(r,n)}function Q0(t,e){for(const[n,r]of e)rhe(t,n,r)}const Si={binary:"uint",size:32},ihe={binary:"uint",size:2},Ui=t=>({...ihe,custom:{to:e=>{if(e===0){if(!(t!=null&&t.allowNull))throw new Error("ChainId 0 is not valid for this protocol and action");return null}const n=Qu(e),r=(t==null?void 0:t.allowedChains)??gq;if(!r.includes(n))throw new Error(`Chain ${n} not in allowed chains ${r}`);return n},from:e=>e==null?0:pv(e)}}),j4={binary:"uint",size:4},HN={binary:"uint",size:8},aZ={binary:"uint",size:4},af=t=>({name:"payloadId",binary:"uint",size:1,custom:t,omit:!0}),WN={binary:"uint",size:8};let ahe=class{constructor(e,n,r){se(this,"r");se(this,"s");se(this,"v");this.r=e,this.s=n,this.v=r}encode(){return oo(GS,this)}static decode(e){return co(GS,e)}};var RO;(function(t){function e(a){return wu.getPublicKey(a)}t.toPubkey=e;function n(a,s){if(s.length!=32)throw new Error("hash.length != 32");return wu.sign(s,a)}t.sign=n;function r(a,s,c){const{r:l,s:d}=a;return wu.verify({r:l,s:d},c,s)}t.validate=r;function i(a,s){const{r:c,s:l,v:d}=a,p=new wu.Signature(c,l);return p.recovery=d,p.recoverPublicKey(s).toRawBytes()}t.recover=i})(RO||(RO={}));const she=[{name:"r",binary:"uint",size:32},{name:"s",binary:"uint",size:32},{name:"v",binary:"uint",size:1}],GS={binary:"bytes",layout:she,custom:{to:t=>new ahe(t.r,t.s,t.v),from:t=>({r:t.r,s:t.s,v:t.v})}},hn={binary:"bytes",size:32,custom:{to:t=>new jr(t),from:t=>t.toUint8Array()}},ohe=t=>{const e=t.findIndex(n=>n!==0);return-1<e?t.slice(e):new Uint8Array([])},che={to:Tr.decode,from:Tr.encode},sZ=t=>({binary:"bytes",size:t,custom:{to:e=>Tr.decode(ohe(e)),from:e=>Tr.zpad(Tr.encode(e),t)}});function oZ(t){const e=t.indexOf(":");return e!==-1?[t.slice(0,e),t.slice(e+1)]:[null,t]}const lhe=[{name:"guardianIndex",binary:"uint",size:1},{name:"signature",...GS}],YN=[{name:"version",binary:"uint",size:1,custom:1,omit:!0},{name:"guardianSet",...aZ},{name:"signatures",binary:"array",lengthSize:1,layout:lhe}],GN=[{name:"timestamp",binary:"uint",size:4},{name:"nonce",binary:"uint",size:4},{name:"emitterChain",...Ui()},{name:"emitterAddress",...hn},{name:"sequence",...WN},{name:"consistencyLevel",binary:"uint",size:1}],uhe=[...YN,...GN];function k4(t){const e=YS.get(t);if(!e)throw new Error(`No layout registered for payload type ${t}`);return e}function cZ(t){return{name:"payload",binary:"bytes",...t==="Uint8Array"?{}:{layout:k4(t)}}}function _4(t){const e=[...uhe,cZ(t.payloadLiteral)];return oo(e,t)}function fhe(t,e){if(t==="Uint8Array")return e;const n=k4(t);return oo(n,e)}function $N(t,e){const n=(()=>{if(Array.isArray(t[0]))return t.flatMap(([s,c])=>c.map(l=>WS(s,l)));if(typeof t[1]=="string")return t;const[i,a]=t;return a.map(s=>WS(i,s))})(),r=Nde(n.map(i=>k4(i)));return i=>{typeof i=="string"&&(i=dr.decode(i));const a=r(i);return Array.isArray(a)?a.map(s=>n[s]):a!==null?n[a]:null}}function O4(t,e){typeof e=="string"&&(e=dr.decode(e));const[n,r]=co(YN,e,!1);for(let M=1;M<n.signatures.length;++M)if(n.signatures[M].guardianIndex<=n.signatures[M-1].guardianIndex)throw new Error("Guardian signatures must be in ascending order of guardian set index");const i=r,[a,s]=co(GN,e.subarray(i),!1),c=i+s,[l,d]=typeof t=="string"?[t,PO(t,e.subarray(c))]:PO(t,e.subarray(c)),[p,m]=oZ(l),g=J6(e.slice(i));return{protocolName:p,payloadName:m,payloadLiteral:l,...n,...a,payload:d,hash:g}}function PO(t,e,n=0){return(()=>{if(typeof e=="string"&&(e=dr.decode(e)),t==="Uint8Array")return e.slice(n);if(typeof t=="string")return co(k4(t),e.subarray(n));const r=t(e.slice(n));if(r===null)throw new Error(`Encoded data does not match any of the given payload types - ${e}`);return[r,co(k4(r),e.subarray(n))]})()}function UO(t){return[...GN,cZ(t)]}function lZ(t,e){const[n,r]=oZ(t),i=iO(UO(t),e);return{protocolName:n,payloadName:r,payloadLiteral:t,...iO(YN,e),...i,hash:J6(oo(UO(t),i))}}class uZ{constructor(e,n){se(this,"network");se(this,"config");this.network=e,this.config=n}utils(){return this.constructor}getProtocol(e,n){return nhe(this.utils()._platform,e,n,this.config)}getProtocolInitializer(e){return iZ(this.utils()._platform,e)}async parseWormholeMessages(e,n,r){return(await this.getProtocol("WormholeCore",n)).parseTransaction(r)}}const dhe=[["Ethereum",[["ETH",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETH"}],["WETH",{symbol:"WETH",decimals:18,address:"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x2260fac5e5542a773aa44fbcfedf7c193bc2c599"}],["USDT",{symbol:"USDT",decimals:6,address:"0xdac17f958d2ee523a2206206994597c13d831ec7"}],["DAI",{symbol:"DAI",decimals:18,address:"0x6b175474e89094c44da98b954eedeac495271d0f"}],["BUSD",{symbol:"BUSD",decimals:18,address:"0x4fabb145d64652a948d72533023f6e7a623c7c53"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x7c9f4C87d911613Fe9ca58b579f737911AAD2D43",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x418D75f65a02b3D53B2418FB8E1fe493759c7605",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x7cd167B101D2808Cfd2C45d17b2E7EA9F46b74B6",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x85f138bfEE4ef8e540890CFb48F620571d67Eda3",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x39EbF69137D98FB7659Ef8D4ea21ec26394389d7",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x4cD2690d86284e044cb63E60F1EB218a825a7e92",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x3294395e62F4eB6aF3f1Fcf89f5602D90Fb3Ef69",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x93d3696A9F879b331f40CB5059e37015423A3Bd0",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xD31a59c85aE9D8edEFeC411D448f90841571b89c",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x41f7B8b9b897276b7AAE926a9016935280b44E97",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x84074EA631dEc7a4edcD5303d164D5dEa4c653D6",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x8CDf7AF57E4c8B930e1B23c477c22f076530585e",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xb945E3F853B5f8033C8513Cf3cE9F8AD9beBB1c9",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xCFc006a32a98031C2338BF9d5ff8ED2c0Cae4a9e",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x8B5653Ae095529155462eDa8CF664eD96773F557",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x1D4241F7370253C0f12EFC536B7e16E462Fb3526",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x18084fbA666a33d37592fA2633fD49a74DD93a88"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0xb4c624dBC50804dA086cf2380cD55dEBC0d22E96",original:"Polygon"}],["tBTCoptimism",{symbol:"tBTC",decimals:18,address:"0xB8d1E0642bFD3744CaBd2ca8830cFabE19b2Ca54",original:"Optimism"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x4F3819A6cfF717BFfE801a75c73A984141c76589",original:"Arbitrum"}],["tBTCbase",{symbol:"tBTC",decimals:18,address:"0x733F28B3e315046Db01dAbC292D6F0F7F26C4551",original:"Base"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x9AEA32B459e96C8eF5010f69130bf95fd129ac05",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0xeFc0CED4B3D536103e76a1c4c74F0385C8F4Bdd3",original:"Solana"}]]],["Bsc",[["WETH",{symbol:"WETH",decimals:18,address:"0x4DB5a66E937A9F4473fA95b1cAF1d1E1D62E29EA",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xB04906e95AB5D797aDA81508115611fee694c2b3",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x43359676E1A3F9FbB5de095333f8e9c1B46dFA44",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x524bC91Dc82d6b90EF29F76A3ECAaBAffFD490Bc",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x3413a030EF81a3dD5a302F4B4D11d911e12ed337",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:18,address:"0x035de3679E692C471072d1A09bEb9298fBB2BD31",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xc836d8dC361E44DbE64c4862D55BA041F88Ddd39",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xe6d82Bbe75041E42E51d755e922cE1BA91af9c4d",original:"Polygon"}],["BNB",{symbol:"BNB",decimals:18,address:"native",wrappedKey:"WBNB"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x96412902aa9aFf61E13f085e70D3152C6ef2a817",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xc88Dc63bf0c8c8198C97Db0945E3eF25Ca89A8e4",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xbF8413EE8612E0E4f66Aa63B5ebE27f3C5883d47",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x2A335e327a55b177f5B40132fEC5D7298aa0D7e6",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x1C063db3c621BF901FC6C1D03328b08b2F9bbfba",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xfA54fF1a158B5189Ebba6ae130CEd6bbd3aEA76e",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x91Ca579B0D47E5cfD5D0862c21D5659d39C8eCf0",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x8314f6Bf1B4dd8604A0fC33C84F9AF2fc07AABC8",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x2Ba98cf7Edd2c5C794e21bc3Dc6973D3C2585eE3",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xaA1eEdABC48D078350ccBdD620bD088848e299E5",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x5caa170b465122D15a6D20FD9A804a9613CE7882",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x94AEc09B5e2CE591e39DC6aa58A3A6E85Ed45265",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xa41ae127D04F7ee73B5058E2C60Fb7c7A2D21F79",original:"Optimism"}],["WETHbsc",{symbol:"WETH",decimals:18,address:"0x2170Ed0880ac9A755fd29B2688956BD959F933F8"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x9dc152F4941cE1A138326e70c3600385bf0C22dD",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x55CaD531c8E303Cab8B3BE4bB4744Db4f896ac81",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x94c97dd3Bde5bC1406BCe82E7941A6365968521D",original:"Ethereum"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0xad80E1A9B5824234afA9dE1F3bbDb8a994796169",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xEA970e7b7D131Ea36c3051C9Ca11e785462fE00c",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0xb0188B0bb2cD4a6D2744637fC83C94a284B247Da",original:"Solana"}],["USDTbsc",{symbol:"USDT",decimals:18,address:"0x55d398326f99059fF775485246999027B3197955"}]]],["Polygon",[["WETH",{symbol:"WETH",decimals:18,address:"0x11CD37bb86F65419713f30673A480EA33c826872",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x4318CB63A2b8edf2De971E2F17F77097e499459D",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x5D49c278340655B56609FdF8976eb0612aF3a0C3",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x9417669fBF23357D2774e9D421307bd5eA1006d2",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x732EB1747ecCFC431fF19bc359ffc83755B1918c",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:18,address:"0x95ea750420da26bE1Ab0891e209e921bCd84763f",original:"Ethereum"}],["MATIC",{symbol:"MATIC",decimals:18,address:"native",wrappedKey:"WMATIC"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270"}],["WETHpolygon",{symbol:"WETH",decimals:18,address:"0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x3c499c542cef5e3811e1192ce70d8cc03d5c3359"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xeCDCB5B88F8e3C15f95c720C51c71c9E2080525d",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x4B3a922c773BDCF3BA8f1A4FDAc2029E1D0E9868",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x7Bb11E7f8b10E9e571E5d8Eace04735fDFB2358a",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xAEA5CC14DefbC1b845FDE729E563B717Ee6825ae",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x3726831304D77f585f1Aca9d9841cc3Ef80dAa62",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x922F49a9911effc034eE756196E59BE7b90D43b3",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xcC48d6CF842083fEc0E01d913fB964b585975F05",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xd93f7E271cB87c23AaA73edC008A79646d1F9912",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x576Cf361711cd940CD9C397BB98C4C896cBd38De",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x34bE049fEbfc6C64Ffd82Da08a8931A9a45f2cc8",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xa4ef199d3ad524E9C3C51Ac46B303B103A307Cef",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x6a5c59AB16268d2c872916054C50440B999e417C",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x7800FE8951cdc1cDea748d878fAce63018D97960",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x8182De59485Bb646542Db8C7E5958148Dc699319",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x31F12aCb60C3c32EE884F3894a873347C097D925",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x5BCf8d8c097FbB35C371F921E3FF3e6F6Eb54B41",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x1eeCaB0F75fE93abbFa0cDFfb4fB13d1dC8706c8",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x3362b2B92b331925F09F9E5bCA3E8C43921a435C",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"}],["tBTCoptimism",{symbol:"tBTC",decimals:18,address:"0x68A8797da1c8ED592600d70A5151886A92D2183C",original:"Optimism"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x045D8c62D5326aa51a31518ECF3aF80C17421Aba",original:"Arbitrum"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0xe082a7Fc696De18172Ad08D956569Ee80BC37f06",original:"Ethereum"}],["wstETHpolygon",{symbol:"wstETH",decimals:18,address:"0x03b54A6e9a984069379fae1a4fC4dBAE93B3bCCD"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x415ce980fde17F1FF102e1c6e4ce860Acc615D74",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0xFa4B761A1e07909Ba31331a5dfa12390E3ff5583",original:"Solana"}],["USDTpolygon",{symbol:"USDT",decimals:6,address:"0xc2132D05D31c914a87C6611C10748AEb04B58e8F"}]]],["Avalanche",[["WETH",{symbol:"WETH",decimals:18,address:"0x8b82A291F83ca07Af22120ABa21632088fC92931",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xB24CA28D4e2742907115fECda335b40dbda07a4C",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x1C0e79C5292c59bbC13C9F9f209D204cf4d65aD6",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x9d228444FC4B7E15A2C481b48E10247A03351FD8",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0xca319f81D147559e19A522A0a0310Dd43A96cA0F",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xf2f13f0B7008ab2FA4A2418F4ccC3684E49D20Eb",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xDb2d08f5A9C9ADBBA0DE5a69bbB1E9Ca03411692",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x442F7f22b1EE2c842bEAFf52880d4573E9201158",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x6145E8a910aE937913426BF32De2b26039728ACF",original:"Bsc"}],["AVAX",{symbol:"AVAX",decimals:18,address:"native",wrappedKey:"WAVAX"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"}],["WETHavax",{symbol:"WETH",decimals:18,address:"0x49d5c2bdffac6ce2bfdb6640f4f80f226bc10bab"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xd19abc09B7b36F7558929b97a866f499a26c2f83",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x494317B8521c5a5287a06DEE467dd6fe285dA4a8",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x375aA6C67BF499fBf01804A9f92C03c0776F372d",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xFE6B19286885a4F7F55AdAD09C3Cd1f906D2478F",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x0950Fc1AD509358dAeaD5eB8020a3c7d8b43b9DA",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x1703CB0F762D2a435199B64Ea47E5349B7C17480",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x43c588459b3243fA541B98CC4B2E995b3de553A2",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xDfDA518A1612030536bD77Fd67eAcbe90dDC52Ab",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x4b5fE357Eb11c735078e47526D6e853DBff18541",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xDf11535274c0FD2Fe41A88bd1bBF802D72296037",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xBe04f76A0ba2100c3F2d6Aa1FD8484F415469573",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0xFA83178c66fE51ee99109b5cC912f8098Ff812eF",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xab933e939a9236BD439F7d29b87CE712f42bAC06",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x3F531c038A0D2d9c7D19FC3554cd0439791526c4",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x126C03982Ad6D7ef7E6aF020bF219e87185a6BC3",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x8A0691e602B7a5FCc51a27E4a08376dE50889B42",original:"Solana"}],["USDTavax",{symbol:"USDT",decimals:6,address:"0x9702230a8ea53601f5cd2dc00fdbc13d4df4a8c7"}]]],["Fantom",[["WETH",{symbol:"WETH",decimals:18,address:"0x2A126f043BDEBe5A0A9841c51915E562D9B07289",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x2Ec752329c3EB419136ca5e4432Aa2CDb1eA23e6",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x87e9E225aD8a0755B9958fd95BE43DD6A91FF3A7",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x14BCb86aEed6a74D3452550a25D37f1c30AA0A66",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0xEE786D3D73Ea645365c7248E4e40eDba08B1169F",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xb88A6064B1F3FF5B9AE4A82fFD52560b0dF9FBD3",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xB4DcfD221048a1Dad989D39456BBd87762c26F06",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xc033551e05907Ddd643AE14b6D4a9CA72BfF509B",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x0FcbDAC44c67A43607D3E95886dB19871ADc985F",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x358CE030DC6116Cc296E8B9F002728e65459C146",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xEfE7701cb2B80664385Be226d0300912CA92f66A",original:"Avalanche"}],["FTM",{symbol:"FTM",decimals:18,address:"native",wrappedKey:"WFTM"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83"}],["CELO",{symbol:"CELO",decimals:18,address:"0xF432490C6c96C9d3bF523a499a1CEaFd8208A373",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xBF227E92D6754EB4BFE26C40cb299ff2809Da45f",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xd99021C2A33e4Cf243010539c9e9b7c52E0236c1",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0xb8398DA4FB3BC4306B9D9d9d13d9573e7d0E299f",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xC277423a21F6e32D886BF85Ef6cCB945d5D28347",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x3Cd9162Ca5256b8E26A0e3Ad14CCfF7C0Da0F174",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xE8367853A0823515D37b1538331B4704089becb4",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x2228703672906fEe5eD681Ec28e42B4506b8c336",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xe8E8f941377A955bFA72880ec0dc2319dbC827a8",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x385b219f0C4fa2e84EfE5aaf9692a821C57B8248",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0xd3365E7355230c78098b44B172eE27DAB95B041A",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xd9E4C283d8A49Dc3767A6F5a4dFdc1d0cEf21604",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xeE27799cF29D7F64647B92f47d543B382B49f83E",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x787e2F3509583C0F03A339Be0826463C839CBE5E",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x77ad3B2dA29FBd208F12c3C701E969F4422aAD79",original:"Solana"}]]],["Celo",[["WETH",{symbol:"WETH",decimals:18,address:"0x66803FB87aBd4aaC3cbB3fAd7C3aa01f6F3FB207",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x37f750B7cC259A2f741AF45294f6a16572CF5cAd",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xd71Ffd0940c920786eC4DbB5A12306669b5b81EF",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x617f3112bf5397D0467D315cC709EF968D9ba546",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x97926a82930bb7B33178E3c2f4ED1BFDc91A9FBF",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:18,address:"0x1dd42c0785ca90B677adc2ABad01dfc5ECcD0b4d",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x9C234706292b1144133ED509ccc5B3CD193BF712",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x42c76808f3179A091Ee007A2955aF2522978ADE7",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xBf2554ce8A4D1351AFeB1aC3E5545AaF7591042d",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x9d9abAE97a9344e3854527b4efbB366a1564bfEb",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0xFFdb274b4909fC2efE26C8e4Ddc9fe91963cAA4d",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x62FFf2D2D1692D52eAf043AeeC727F7918d269D3",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xd1A342eE2210238233a347FEd61EE7Faf9f251ce",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x471ece3750da237f93b8e339c536989b8978a438"}],["USDT",{symbol:"USDT",decimals:6,address:"0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x383A5513AbE4Fe36e0E00d484F710148E348Aa9D",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x4581E64115d46CcdeE65Be2336bEc86c9BA54C01",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x8B6eef6C449D3Ac723a9C06a9eaE2dCd7d308BA9",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x1Cb9859B1A16A67ef83A0c7b9A21eeC17d9a97Dc",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x89F2b718Ca518db39d377F0ABBa6B42582b549F7",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xc6F962fCcb140ece554AfD0E589f971532A57f14",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xA41a62567d9eb960D84b72663FdaeBE0BCdE2683",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x8d53771b1Ec7461f8e45Bca2609c45bC0bbd0677",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xEe48963C003e21EaCEdFA8a0A19BB3cbF7E776Fe",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x905CADB645684140E285e2D09D39dF5a2082BC87",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x2e2acb1782Aad0490f8446b6fD4626C467987bD6",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xFaED7314060FCEc652ED91D9eac6c980DCA9D3B8",original:"Ethereum"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x72878E7d3A8746e0c91b9F16F0b8ee4fDE9DDc06",original:"Arbitrum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xe304254de5c2048F9bFb042dDFB54f84d1d77730",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x985aa4814419ba338379A634785216301e51113D",original:"Solana"}]]],["Moonbeam",[["WETH",{symbol:"WETH",decimals:18,address:"0xab3f0245B83feB11d15AAffeFD7AD465a59817eD",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x931715FEE2d06333043d11F658C8CE934aC61D0c",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xE57eBd2d67B462E9926e04a8e33f01cD0D64346D",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xc30E9cA94CF52f3Bf5692aaCF81353a27052c46f",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x06e605775296e851FF43b4dAa541Bb0984E9D6fD",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:18,address:"0xa2284e1F98E4d0B7Eb6a6b4f3C57f1b209C755F3",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x82DbDa803bb52434B1f4F41A6F0Acb1242A7dFa3",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x4415BfBDee669446550d55c749007EF60B520FC8",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xE3b841C3f96e647E6dc01b468d6D0AD3562a9eeb",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x7f433E22366E03a3758CE22cCf82887d828078f8",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0xd4937A95BeC789CC1AE1640714C61c160279B22F",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xd4918c40cA9f02d42Cb53d06587aF42017Bc345D",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x609AedD990bf45926bca9E4eE988b4Fb98587D3A",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0xc1a792041985F65c17Eb65E66E254DC879CF380b",original:"Celo"}],["GLMR",{symbol:"GLMR",decimals:18,address:"native",wrappedKey:"WGLMR"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xAcc15dC74880C9944775448304B263D191c6077F"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x99Fec54a5Ad36D50A4Bba3a41CAB983a5BB86A7d",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x098d6eE48341D6a0a0A72dE5baaF80A10E0F6082",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x484eCCE6775143D3335Ed2C7bCB22151C53B9F49",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x25331575641d35D9765e1934acC8F0991c58e904",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x18872b45c603eD2EbC508b9C5514a85c2e2791FB",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xd4870F7F5AD8Ae5139E1a5D8AD4ac55204aE4490",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x7143e8EA96e158381057a58AfdDF44601c7e532C",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x6C6f83366A42fcA4D30a2D3f1914284de995Ac3a",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xE6d02a875CcC153c076fe418f33De3A5C420f505",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xeCd65E4B89495Ae63b4f11cA872a23680A7c419c",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xf0a9476E4712123A807859f9Fd25fe98213379BD",original:"Klaytn"}]]],["Solana",[["WETH",{symbol:"WETH",decimals:8,address:"7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"A9mUU4qviSctJVPJdBJWkb28deg915LYJKrzQ19ji3FM",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"Dn4noZ5jgGfkntzcQSUZ8czkreiZ1ForXYoV2H8Dm7S1",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"EjmyN6qEC1Tf1JxiG1ae7UTJhUxSwk1TCWNWqxWV4J6o",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:8,address:"33fsBLA8djQm82RpHmE3SuVrPGtZBWNYExsEUeKX1HXX",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"Gz7VkD4MacbEB6yC5XD3HcumEiYx2EtDYYrfikGsvopG",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"9gP2kCy3wA1ctvYWQk75guqXuHfrEomqydHLtcTCqiLa",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"FCqfQSujuPxy6V42UvafBhsysWtEq1vhjfMN1PUbgaxA",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"KgV1GvrHQmRBY8sHQQeUKwTm2r2h8t4C8qt12Cw1HVE",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"FHfba3ov5P3RjaiLVgh8FTv4oirxQDoVXuoUUDvHuXax",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"DRQBDBEWmwWGK13fRTLhSPzjbvMSUavhV6nW4RUH8W6T",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"9kvAcwQbqejuJMd59mKuw2bfSsLRaQ7zuvaTVHEeBBec",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"7ixSaXGsHAFy34wogPk2YXiUX3BMmQMFdercdaHLnBby",original:"Moonbeam"}],["SOL",{symbol:"SOL",decimals:9,address:"native",wrappedKey:"WSOL"}],["WSOL",{symbol:"WSOL",decimals:9,address:"So11111111111111111111111111111111111111112"}],["USDCsol",{symbol:"USDC",decimals:6,address:"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"}],["SUI",{symbol:"SUI",decimals:8,address:"G1vJEgzepqhnVu35BN4jrkv3wVwkujYWFFCxhbEZ1CZr",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"6LNeTYMqtNm1pBFN8PfhQaoLyegAH8GD32WmHU9erXKN",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"CSD6JQMvLi46psjHdpfFdr826mF336pEVMJgjwcoS1m4",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"CR4xnGrhsu1fWNPoX4KbTUUtqGMF3mzRLfj4S6YEs1Yo",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"8M6d63oL7dvMZ1gNbgGe3h8afMSWJEKEhtPTFM2u8h3c",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"DWXe1hxpnb8LAH21iyXcjvMbiAGzoYyuCVQtRLvZdLYd",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"EfqRM8ZGWhDTKJ7BHmFvNagKVu3AxQRDQs8WMMaoBCu6",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"25rXTx9zDZcHyTav5sRqM6YBvTGu9pPH9yv83uAEqbgG",original:"Ethereum"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"6DNSN2BJsaPFdFFc1zP37kkeNe4Usc1Sqkzr9C9vPWcU"}],["wstETH",{symbol:"wstETH",decimals:8,address:"ZScHuTtqZukUrtZS43teTKGs2VqkKL8k4QCouR2n6Uo",original:"Ethereum"}],["PYTH",{symbol:"PYTH",decimals:6,address:"HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3"}]]],["Sui",[["WETH",{symbol:"WETH",decimals:8,address:"0xaf8cd5edc19c4512f4259f0bee101a40d41ebed738ade5874359610ef8eeced5::coin::COIN",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf::coin::COIN",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x27792d9fed7f9844eb4839566001bb6f6cb4804f66aa2da6fe1ee242d896881::coin::COIN",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xc060006111016b8a020ad5b33834984a437aaa7d3c74c18e09a95d48aceab08c::coin::COIN",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"0xdbe380b13a6d0f5cdedd58de8f04625263f113b3f9db32b3e1983f49e2841676::coin::COIN",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x5c8c9082401982e8c2519a5c12883a5475295bf5cec4a0a13c26d35dd9a20d73::coin::COIN",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"0xb848cce11ef3a8f62eccea6eb5b35a12c4c2b1ee1af7755d02d7bd6218e8226f::coin::COIN",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"0x909cba62ce96d54de25bec9502de5ca7b4f28901747bbf96b76c2e63ec5f1cba::coin::COIN",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"0x1e8b532cca6569cab9f9b9ebc73f8c13885012ade714729aa3b450e0339ac766::coin::COIN",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xe596782fbaebef51ae99ffac8731aed98a80642b9dc193ed659c97fbc2cc0f84::coin::COIN",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"0x6081300950a4f1e2081580e919c210436a1bed49080502834950d31ee55a2396::coin::COIN",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"0xa198f3be41cda8c07b3bf3fee02263526e535d682499806979a111e88a5a8d0f::coin::COIN",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"0x66f87084e49c38f76502d17f87d17f943f183bb94117561eb573e075fdc5ff75::coin::COIN",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"0xb7844e289a8410e50fb3ca48d69eb9cf29e27d223ef90353fe1bd8e27ff8f3f8::coin::COIN",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0xb231fcda8bbddb31f2ef02e6161444aec64a514e2c89279584ac9806ce9cf037::coin::COIN",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x2::sui::SUI"}],["APT",{symbol:"APT",decimals:8,address:"0x3a5143bb1196e3bcdfab6203d1683ae29edd26294fc8bfeafe4aaa9d2704df37::coin::COIN",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"0x33744e7df340a4d01c23f6b18c13563f767545ea95f976f8045f056358419da3::coin::COIN",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xc3f8927de33d3deb52c282a836082a413bc73c6ee0bd4d7ec7e3b6b4c28e9abf::coin::COIN",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"0xaab14ec22908de73d1b0619f5e03842398f8e68262981bd35ef44b42d22b23a::coin::COIN",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x6037801f060f0f54b3817bca05e3c8b9b9ffaa2da8e93fd5b80fa662aa3c9e55::coin::COIN",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"0xaecbc804fa7ca7cffc74c9a05eb6ae86fda0c68375b5c1724204a1065bcb239a::coin::COIN",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x7e3e74afcc1913aa9491c8cee89b02131a6e5519b090f16b54321835c1241cfb::coin::COIN",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"0xbc3a676894871284b3ccfb2eec66f428612000e2a6e6d23f592ce8833c27c973::coin::COIN",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:8,address:"0xa5ec915864d7f37b25ca9144b2db6ebcf29e73603c2ccf9d0e765adcd9049a98::coin::COIN",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x9c6d76eb273e6b5ba2ec8d708b7fa336a5531f6be59f326b5be8d4d8b12348a4::coin::COIN",original:"Solana"}]]],["Aptos",[["WETH",{symbol:"WETH",decimals:8,address:"0xcc8a89c8dce9693d354449f1f73e60e14e347417854f029db5bc8e7454008abb::coin::T",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x5e156f1207d0ebfa19a9eeff00d62a282278fb8719f4fab3a586a0a2c0fffbea::coin::T",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xae478ff7d83ed072dbc5e264250e67ef58f57c99d89b447efd8a0a2e8b2be76e::coin::T",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xa2eda21a58856fda86451436513b867c97eecb4ba099da5775520e0f7492e852::coin::T",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"0x407a220699982ebb514568d007938d2447d33667e4418372ffec1ddb24491b6c::coin::T",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:8,address:"0x77400d2f56a01bad2d7c8c6fa282f62647ce3c03f43f2a8742e47ea01a91e24a::coin::T",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"0x6781088e2a1629d38eda521467af4a8ca7bfa7e5516338017940389595c85c0f::coin::T",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xc5fd7820e9f053e6dd8e7dd8ca3ce8e9b10d200ba1692bdeb7a035217180ad4a::coin::T",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"0x6312bc0a484bc4e37013befc9949df2d7c8a78e01c6fe14a34018449d136ba86::coin::T",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"0x79a6ed7a0607fdad2d18d67d1a0e552d4b09ebce5951f1e5c851732c02437595::coin::T",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"0x5b1bbc25524d41b17a95dac402cf2f584f56400bf5cc06b53c36b331b1ec6e8f::coin::T",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x39d84c2af3b0c9895b45d4da098049e382c451ba63bec0ce0396ff7af4bb5dff::coin::T",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"0xd1aa2ff36a0e93e1b4e4fecdecf8bb95bc5de399061c5e84b515281f48718842::coin::T",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"0xac0c3c35d50f6ef00e3b4db6998732fe9ed6331384925fe8ec95fcd7745a9112::coin::T",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"0x7ab1283a7b13c4254d4e1f803d7ce6578442c1d7a40d0faee41cd48ba4884c8a::coin::T",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"0xdd89c0e695df0692205912fb69fc290418bed0dbe6e4573d744a6d5e6bab6c13::coin::T",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0xc91d826e29a3183eb3b6f6aa3a722089fdffb8e9642b94c5fcd4c48d035c0080::coin::T",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"0xa72a97e872be9ee3d2f14d56fd511eb7e4a53f4055be3a267d8602e7685b41c0::coin::T",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x1::aptos_coin::AptosCoin"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"0x0e977796d7bfb3263609b90dffd264c7bd078ce35dac42b55302858d9fa3452b::coin::T",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xca3a2c28bc8c6c762f752dd2a4ebbfd00356ca99977ce6636e3af5897124a87a::coin::T",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"0x6a7a7f36ef5e2d0e65fcf72669c20d514d68298b0f76c7554517208f73260aaf::coin::T",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x4f6ecb05a797902d472abc2f5804bde93a53d8b75f14f767824cdb1623a4ee83::coin::T",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"0x5b5f14781164cf77185a7b6acd8e4f3cbb7e7cfb1cd5760d2b8af81075fc153d::coin::T",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xfcc4fcd734d5b8578fb629d238d15264a49eca6165c7444c21feec3b4962eb88::coin::T",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"0x9d5a0f8215301fa8096df332b1533f6328f18c32fbac2a7089cfbea73b3068a7::coin::T",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:8,address:"0x539b652f8230a0e42adaeda4706b5639893d22362eda6ea897493c210cb48219::coin::T",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x770211b47954e15bec1a4271bf33bacebc2d2adb43b7dc1ca45efa787615dd4c::coin::T",original:"Solana"}]]],["Base",[["WETH",{symbol:"WETH",decimals:18,address:"0x71b35ECb35104773537f849FBC353F81303A5860",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xec267C53f53807c2337C257f8AC3Fc3cC07cc0ed",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xE6396f780b543dF16ee3b784D789c75B68319db0",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xFf0C62A4979400841eFaA6faADb07Ac7d5C98b27",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x617Edadb51BfB43A44Bb91C7402129C23bA52381",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xc863399E5c5C4011B1DC3fB602902C77BA72B709",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xFe1579BAc60363c8572CB30Bf4DD1Fd85811BBF8",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x7fdAa50d7399ac436943028edA6ed9a1BD89509f",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x68E2b07F92ed506f92935d7359ECA84D5342dbb4",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0xc449A60A31E1eebFE83c42E9465fd4Dc318aE9a7",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xD83385fE100E20c269a5975D4Bf92525BcE09F87",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x936Fa2DE8380Dc5BF34C80F1BaD53a9f3630263B",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x74df3823aA29D278cAD0A3632fCB56C896a38eD4",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xfdB7311BeC3b2CcCF8407d0585f81B97b3b5eff1",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x1C61629598e4a901136a81BC138E5828dc150d67",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0xe8CE40EBBB844142400D21558a2F1c9683d69139",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x36c6FBF7B49bF65f5F82b674af219C05b2a4aDD1",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x1d36126289Be1658297A35CC3EB2BB80A7D7A04b",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x9D36e0edb8BBaBeec5edE8a218dc2B9a6Fce494F",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xb96B82Cd6D45d98Fb6897D16A5E4EE888329C513",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xCb725aC8d9985D3bE306Dd9e1517d3702929176c",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xc6bfBeb3002aD563D2d1f72614C61C83Bf147Acd",original:"Optimism"}],["ETHbase",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHbase"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}],["wstETHbase",{symbol:"wstETH",decimals:18,address:"0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x9EE95E6Bd1B3C5740F105d6fb06b8BDeF64Eec70",original:"Ethereum"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x56D0873e0eCA4a56063e1BF945788365666CFBFC",original:"Arbitrum"}],["tBTCbase",{symbol:"tBTC",decimals:18,address:"0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0xEd4e2FD35161c3c0e33cA187fce64C70d44Ce32b",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x41c433c146c47Dc53FC48cDc69e406e365e298E1",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x4c5d8A75F3762c1561D96f177694f67378705E98",original:"Solana"}],["USDTbase",{symbol:"USDT",decimals:6,address:"0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2"}]]],["Arbitrum",[["WETH",{symbol:"WETH",decimals:18,address:"0xD8369C2EDA18dD6518eABb1F85BD60606dEb39Ec",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xC96F2715E2a242d50D1b0bC923dbe1740b8eCf18",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x397846a8078d4845c7f5c6Ca76aeBbcFDc044fAe",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xE4728F3E48E94C6DA2B53610E677cc241DAFB134",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x5c4f2FEFB97F7DF09E762d95C83f0Ccf8bCe8234",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x3ab0E28C3F56616aD7061b4db38aE337E3809AEA",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x599ADB10E6A012dF34935D47407450f6D7170e3C",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x7AF00405916D823eDb1121546EfA6F4972B51b84",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x1a0590F951bc9C3818Ce75ba5Bbe92831b2cf57e",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x565609fAF65B92F7be02468acF86f8979423e514",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x93e0FcbEd43CD6fC30DF00CcBD4669718dc74e77",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x7f7dcDb91930033a4Eb269196EBb6fd5f0644E4B",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x4E51aC49bC5e2d87e0EF713E9e5AB2D71EF4F336",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x944C5b67a03e6Cb93Ae1E4B70081f13b04CDB6Bd",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x2bcC6D6CdBbDC0a4071e48bb3B969b06B3330c07",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x3870546cfd600ba87e4180686d29dC993A45d3B7",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xCF79d86B8a830030aF6D835737d6eac3bE823fD7",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x4EdeF400eDe5309240814b5FC403F224504604e9",original:"Aptos"}],["ETHarbitrum",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHarbitrum"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x82af49447d8a07e3bd95bd0d56f35241523fbab1"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xaf88d065e77c8cC2239327C5EDb3A432268e5831"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xB1fC645a86fB5085e12D8BDDb77702F728D2A26F",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x3A5C2Da9E30741cb59a5e9446A23A86886fC9DC2",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0xBAfbCB010D920e0Dab9DFdcF634De1B777028a85",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x8619F97D4d08382548F536E5CE1D3e0D9bA40326",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x57723abc582DBfE11Ea01f1A1f48aEE20bD65D73",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0x3bab04bDFd2Dc3640c2B9390A2Da05bC1192D482",original:"Polygon"}],["tBTCoptimism",{symbol:"tBTC",decimals:18,address:"0x2519010b6585247BcDC8BcDa5C8730Be754b8c76",original:"Optimism"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0xf2717122Dfdbe988ae811E7eFB157aAa07Ff9D0F",original:"Ethereum"}],["wstETHarbitrum",{symbol:"wstETH",decimals:18,address:"0x5979D7b546E38E414F7E9822514be443A4800529"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xFA95f6c796E54F9C4a99392CAE84410a25794BB3",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0xE4D5c6aE46ADFAF04313081e8C0052A30b6Dd724",original:"Solana"}],["USDTarbitrum",{symbol:"USDT",decimals:6,address:"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9"}]]],["Optimism",[["WETH",{symbol:"WETH",decimals:18,address:"0xb47bC3ed6D70F04fe759b2529c9bc7377889678f",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x711e53D031ea9B0bb0C24dD506df11b41AEA419e",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xB214C19d81c99E75e84706a3aa0A757319023e26",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xf6B4185FCf8aF291c0E3927fbEab7046b4f6A8CA",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x098EA47D630b46df1E08e389e5e4466119c7dd30",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x8f02B6a32cebcAe44D2Fd17d87966f5B5dD14c6d",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xbB1EaB9Eb8fDf65F0E291D013DA07B4b65a27a01",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x6A09fE65ACa27C12573F04aAFa290bD75497E1BC",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x1C15057d1F3794C934a6cBC1f7EceE934050F219",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x8418C1d909842f458c9394886b83F19d62bF1A0D",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x355f0a8a7ecAeD971b8Fbd50994558291ff2413a",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x0b0ecbe5C3995541876d27633B63296570FB34Af",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x9b88D293b7a791E40d36A39765FFd5A1B9b5c349",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xbffD46DFDb8d3a02b8D2E0F864a2cD712090a4D3",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xba1Cf949c382A32a09A17B2AdF3587fc7fA664f1",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x6F974A6dfD5B166731704Be226795901c45Bb815",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x27A533e438892DA192725b4C9AcA51447F457212",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xC5B3AC2DF8D8D7AC851F763a5b3Ff23B4A696d59",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x825206E1D29456337769e6f1384101E997C6A732",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xa6252F56cc6eEA21165d56744C795F91c8a3Cf68",original:"Arbitrum"}],["ETHoptimism",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHoptimism"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x0b2c639c533813f4aa9d7837caf62653d097ff85"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x3F369a664fa665e01e8EB9f20bFcE03A0CAb8971",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xb931c7BbD87A6e249EaA7355B13927F9c99Bce87",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xeC0a755664271b87002dDa33CA2484B24aF68912",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0xE4C32B9eA749fa0342B1C42C01E80028B97c3917",original:"Polygon"}],["tBTCoptimism",{symbol:"tBTC",decimals:18,address:"0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x2390a5131fcba6e47f702172cF4876589E4161c6",original:"Arbitrum"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0x855CFcEEe998c8ca34F9c914F584AbF72dC88B87",original:"Ethereum"}],["wstETHoptimism",{symbol:"wstETH",decimals:18,address:"0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xbbeF8233a0d10EEAb84E913FaDB337ab9b62F683",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x99C59ACeBFEF3BBFB7129DC90D1a11DB0E91187f",original:"Solana"}],["USDToptimism",{symbol:"USDT",decimals:6,address:"0x94b008aA00579c1307B0EF2c499aD98a8ce58e58"}]]],["Wormchain",[["WETH",{symbol:"WETH",decimals:8,address:"wormhole18csycs4vm6varkp00apuqlsm7v4twg8jsljk8wfdd7cghr7g4rtslwqndm",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"wormhole1utjx3594tlvfw4375esgu72wa4sdgf0q7x4ye27husf5kvuzp5rsr72gdq",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"wormhole1nz0r0au8aj6dc00wmm3ufy4g4k86rjzlr8wkf92cktdlps5lgfcqxnx9yk",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"wormhole1w27ekqvvtzfanfxnkw4jx2f8gdfeqwd3drkee3e64xat6phwjg0savgmhw",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"wormhole1chejx4qqtvwxy6684yrsmf6pylancxqhk3vsmtleg5ta3zrffljqfscg87",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:8,address:"wormhole1msyushf6d76u9wupuvm6jdvc0x4trmv5w5kxr0hyt7n9npp233usg7pkhm",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"wormhole1xmpenz0ykxfy8rxr3yc3d4dtqq4dpas4zz3xl6sh873us3vajlpszn4ph7",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"wormhole169nr66h9gcsfljvsnxnqfjakskcjt6ac8f58wqjuagu79m540teqfvaal4",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"wormhole1g3acw7aumaj3r348cqn4kazrehlmn822w9p46sqwztnke27h3lysxj4ddr",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"wormhole1ml922hnp59jtq9a87arekvx60ezehwlg2v3j5pduplwkenfa68ksgmzxwr",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"wormhole1gwm6mrnse9atzf4mer4dnrz64mp6pa75wpsxywu8gymt9fwsk46sfr372u",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"wormhole1e0cwfmla7exa578xddl87paxexw9ymwrzysfjms8c2mstxjkldlqn45jqa",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"wormhole1kqey3a6k26kyensq7elcpx229tlj4d3qlshwhjq5xjm8dcdvu60qtef8k9",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"wormhole1gzuv84xrwwhxhf0f62av279vfyrfrm7x58fcnadlr5m90gnx223ses2st0",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"wormhole1wn625s4jcmvk0szpl85rj5azkfc6suyvf75q6vrddscjdphtve8sca0pvl",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"wormhole17fr8awnysyv3nt5je4strczdupssl8u9jqam890jfv72sh32yyqqhtg3ry",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"wormhole19hlynxzedrlqv99v6qscww7d3crhl86qtd0vprpltg5g9xx6jk9q6ya33y",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"wormhole1f9sxjn0qu8xylcpzlvnhrefnatndqxnrajfrnr5h97hegnmsdqhsh6juc0",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"wormhole18nlwscr7290j463vcptqlgqudycry2rdnw2ysltpc2nqefk3353s808rl9",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"wormhole1ev8rhdflmlq6de5g7ttj585fhuv3jfhnuhfzyh7qrswhzaq2tkqswxz6y3",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"wormhole1snw0qugpjcxwtxzzkqt5guwavq85eumxzeagql2u2m662xrtnjuqyj3pkj",original:"Optimism"}],["USDCbase",{symbol:"USDC",decimals:6,address:"wormhole1edkult6zudk6ld23fesjfrehux35q86engsq5jlycl0e4upkz8mqkgcprf",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"wormhole1nu9wf9dw384attnpu0pwfet5fajn05w2ex4r07mghvk3xcwrt2yq5uutp5",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:8,address:"wormhole1uj24zecnaxz7ftz0sh6dsayfene4w3yptwg0422kves9duel67vsr7hlyz",original:"Polygon"}],["tBTCarbitrum",{symbol:"tBTC",decimals:8,address:"wormhole1q8ynvqvtw49ln73mn70v4me4q03fvvmhkf2lh4ueam5w4362s2asjmvxtd",original:"Arbitrum"}],["wstETH",{symbol:"wstETH",decimals:8,address:"wormhole1gg6f95cymcfrfzhpek7cf5wl53t5kng52cd2m0krgdlu8k58vd8qezy8pt",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:8,address:"wormhole1kyy876kye7k79fuzat532yyqkrzhlr6l7hc7lfa2rk5tygzhy00qrhjgkc",original:"Klaytn"}]]],["Osmosis",[["WETH",{symbol:"WETH",decimals:8,address:"ibc/62F82550D0B96522361C89B0DA1119DE262FBDFB25E5502BC5101B5C0D0DBAAC",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"ibc/6B99DB46AA9FF47162148C1726866919E44A6A5E0274B90912FD17E19A337695",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"ibc/E4CD61E1FA3EB04EF1BF924D676AB9FD55E84A0DCF4E78C11CCA0E14E5B42672",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"ibc/2108F2D81CBE328F371AD0CEF56691B18A86E08C3651504E42487D9EE92DDE9C",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"ibc/898ACF6F5DEBF535103BBD52E3E5B70A311AD097B198A152483F69290B4210C0",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"ibc/03B6D1925A09B3033AA6FA8772202719ABDC51F8CC2A5C26D0A9B19832F2C023",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"ibc/5394BB30B3C9BD1EE84C9531E5094DDE2490964F518CBE8A4C91F748CE559AF5",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"ibc/B28ACEF11D063FA8B1DA73C2F7DA3A1CFCCBC13E96B671698D4860E9367B55BB",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"ibc/22B44C7369EED16089B9840ADE399B80D9483B4E459E67643C96C681D7C463D0",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"ibc/0B3C3D06228578334B66B57FBFBA4033216CEB8119B27ACDEE18D92DA5B28D43",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"ibc/397DFE63D87F6940ECA583DFF5461E48BF0BA6554CBBE70278E307DDFDC8E9D5",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"ibc/83300733052AB5F6E0F0C221E24189B6DF26CC94C73D2F44627627F9DEF4A9C8",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"ibc/0F2941B0168D8DB77DA1B6A2D3A95EC04026D3C97FA3BFE8FD1D5D3F983AA518",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"ibc/1E43D59E565D41FB4E54CA639B838FFD5BCFC20003D330A56CB1396231AA1CBA",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"ibc/F08DE332018E8070CC4C68FE06E04E254F527556A614F5F8F9A68AF38D367E45",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"ibc/B1C287C2701774522570010EEBCD864BCB7AB714711B3AA218699FDD75E832F5",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"ibc/A4D176906C1646949574B48C1928D475F2DF56DE0AC04E1C99B08F90BC21ABDE",original:"Aptos"}],["USDCbase",{symbol:"USDC",decimals:6,address:"ibc/8AC0F990290BBEF3AEBFCBF70F902AD954781BB40D07EB76341272800D48D05F",original:"Base"}],["OSMO",{symbol:"OSMO",decimals:6,address:"uosmo"}],["tBTC",{symbol:"tBTC",decimals:8,address:"ibc/6207D35D2C08F2162575C3C4BFD524226E50639121A273045F1B393AF67DCEB3",original:"Ethereum"}],["wstETH",{symbol:"wstETH",decimals:8,address:"ibc/BF75AE1500CB7EC458E91A11731F1B6AC1F1FE1FA937A88564955ED6A83CA2FB",original:"Ethereum"}]]],["Evmos",[["WETH",{symbol:"WETH",decimals:8,address:"ibc/4442A8E0D487A49E76EA6606F5DADCF8D0DBDD8499112340C964970DB745EDA2",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"ibc/0C19171CDC59451F91D2749CDEA63355532DCD5D8904CCBAC4953290E16AB8FD",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"ibc/46C5DA1CB61C5BAA8730ABA467ADD58DE0333B075CACE28BC87E64AE8C9CA051",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"ibc/C9072A294F5649D64E87A6998DD750576881E454CACCDAF7376EFC0FA243808D",original:"Ethereum"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"ibc/8E08C01546EF346F7E9A3600DDBC88943ADF3B20A67F1F2DD7B83D85613BCCAB",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"ibc/2EA2FE172078576E62DA20F14EEED12B26611D93150FE1D68E1AAE00479AC335",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"ibc/39913E647C3549D663B1ED7F0745E1779515170C5215B98B2C8410B4C073AD30",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"ibc/9EFE5F5D75A87197DD257BA7A96A3BCCEC9DB59D257C742FB5AA9D3DF612D476",original:"Fantom"}],["WSOL",{symbol:"WSOL",decimals:8,address:"ibc/4443218F584A7AB2DFBCF93872D6E5B6967A11C53515DDF45A2CF387C54BD73A",original:"Solana"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"ibc/9E2E7B4A53409267CD686F4EB67969C2602A0F5FF9BDB1082B00E71CC4815DDE",original:"Arbitrum"}],["EVMOS",{symbol:"EVMOS",decimals:18,address:"aevmos"}]]],["Kujira",[["WETH",{symbol:"WETH",decimals:8,address:"ibc/7D9D28CABB49A4BB1A50C3B7E4544BFDBC5DDFAEB84A7787755A34CE7196CE15",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"ibc/C5EADE2C526B9629D230AC02A97644984ACB7C2F9A6C85126D1025CB0DA42588",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"ibc/B2C7F21B604E3974A7DA5DAA9395905F2F3C85392F8A221CFDF62E4A9F4E48E4",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"ibc/3CE8A3DE4AE5AE2B4B8C03B2B227CC284732EDC849E506615FF2AA3D8EB1BAFC",original:"Ethereum"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"ibc/28E7241F6508EB4692C721E91201377323796EF2758CCD83D220A40EAD32601E",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"ibc/F9F41DB8DA49EA6AB9EB4B2C9E0ECDC2502ABDA2FE728B85994BF31240CBC163",original:"Avalanche"}],["CELO",{symbol:"CELO",decimals:8,address:"ibc/4ACD155D71182398277CBD2C630A7C8C5F0F16FFF77965FDE4C845A4CDE2D60C",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"ibc/3D337ECC89A8421DD6F33C4B7DDE9D4A18D728A4A688BA30E41F466EC8DD3869",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"ibc/E5CA126979E2FFB4C70C072F8094D07ECF27773B37623AD2BF7582AD0726F0F3",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"ibc/EBA52E7239CC1BC7F8ECF4F41523B6DD477FF067FD953315704A9A4FD2131B48",original:"Sui"}],["KUJI",{symbol:"KUJI",decimals:6,address:"ukuji"}]]],["Klaytn",[["KLAY",{symbol:"KLAY",decimals:18,address:"native",wrappedKey:"WKLAY"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xe4f05A66Ec68B54A58B17c22107b02e0232cC817"}]]]],HO=pn(dhe,[0,[1,2]]),hhe=[["Ethereum",[["ETH",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETH"}],["WETH",{symbol:"WETH",decimals:18,address:"0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x07865c6e87b9f70255377e024ace6630c1eaa37f"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xC04B0d3107736C32e19F1c62b2aF67BE61d63a05"}],["USDT",{symbol:"USDT",decimals:6,address:"0xC2C527C0CACF457746Bd31B2a698Fe89de2b6d49"}],["DAI",{symbol:"DAI",decimals:18,address:"0x11fE4B6AE13d2a6055C8D9cF65c55bac32B5d844"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x7cd0e8ff09cEB653813bD3d63d0554c1CB4BFdf6",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xB19693FEB013Bab65866dE0a845a9511064230cE",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x4C1b727f6df3B075E682C41a25687A69846aaC04",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xF6699D3f725C4b64Cc6010F2DF77B4B05C76Cd5C",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x0d7A9Cdbb7C21E64825cF81750A5081a32aFb5d4",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0xe092525a787CD56B901279b5864a224c22B95B72",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x0dc83BB61008A5E1194fe50fA9E474713C1AEcD7",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x494701CE895389d917a938f0ea202D4eB9684Eab",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x70F7360C49D227ccBbb98fB7B69B7CDB651195bb",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xd7A89a8DD20Cb4F252c7FB96B6421b37d82cE506",original:"Aptos"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xd962F26D93c4eF609Ba00Ed6101326A1490B9489",original:"Arbitrum"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x76e39239e40857030D6f4D8545EFbd71F904d344",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x5aA392243437dDC8b4d86bfC90DF296908740A41",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x679874fBE6D4E7Cc54A59e315FF1eB266686a937"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x575D93A2278FbF4E8Bd3d51B539a6E237C3F17c5",original:"Arbitrum"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"0x57A52B6F0b393AF7d36116183cA83E584e636eA4",original:"Solana"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0x6320cD32aA674d2898A68ec82e869385Fc5f7E2f"}],["SEI",{symbol:"SEI",decimals:6,address:"0xd68df72136207E9471C915cf1B6Cf43D587D4E0A",original:"Sei"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x327e0c7D5cFa65d4f9E358dC9fA4446C49dBcB6C",original:"Klaytn"}]]],["Polygon",[["WETH",{symbol:"WETH",decimals:18,address:"0xc6735cc74553Cc2caeB9F5e1Ea0A4dAe12ef4632",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x543237045a106D7fd2eE3e2B44b5728e70BDe9c3",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x02E30E84161BE1aBfcBB2b154B11De4C2b5E0a32",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x87374d35C5F1bD78c2b1da383F460e154e7D3E5e",original:"Ethereum"}],["MATIC",{symbol:"MATIC",decimals:18,address:"native",wrappedKey:"WMATIC"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x9999f7fea5938fd3b1e26a12c3f2fb024e194f97"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x0C63D8ADB69204b2946DcB945a6f16d97C255eE2",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x51f3D34651523dD8CC4872ee261A1B0B3f73AceF",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xcc048C353Fdc2f5c378B7BCab9B240Ca2b619f1c",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x84aa9100a36D6c3514605F62342abF3cE77D5b97",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0xAd027790A64331A11bd1b651739450cC9Dc0098F",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x693b9AC2199d989bDA8C9C5b5d7A3680B4f40dAa",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x0284B4994456Fae4cb56E4d33228d51B674EAD1b",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x3dadA6f29f80A0427C4989E17a5a2ada17441841",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x226B436043B537BD158e84fA199E2Aa36bf364f8",original:"Aptos"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xC77d781f38Cf52F8Ea0b4c0F22312bB9A34911b5",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x68C4365d5229A44D9A59058B65500365492b5307",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xf6CC0Cc8D54a4b1A63a0E9745663e0c844Ee4D48",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0xBcD7917282E529BAA6f232DdDc75F3901245A492"}],["SEI",{symbol:"SEI",decimals:6,address:"0xc5C0229B38564E1E8083031405Be8d6E6e3Bc462",original:"Sei"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x7b34f3711705eB2963fB856cda063C979de4749e",original:"Klaytn"}]]],["Bsc",[["WETH",{symbol:"WETH",decimals:18,address:"0x064a85eac6b4Bd7190BCAd3458dBD9459989c37B",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x861B5C16A2EcED022241072A7beA9D530b99EB6f",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xe94AaBAdB6F833f65B8A9AdDD030985B775188c9",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x45082C9Fc6BBCa72288F47Fad21dE0BECC75759E",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x7FCDA925f0994121752ca14C334297BeC3d0eA9E",original:"Polygon"}],["BNB",{symbol:"BNB",decimals:18,address:"native",wrappedKey:"WBNB"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x6cE9E2c8b59bbcf65dA375D3d8AB503c8524caf7",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x1cfeCf72bcBE1E429A21A5B11E708C7c397AaC54",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x9aB305B792DBdb8253bEE909E7006611Cb45175b",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x1471698cBD9cAB0228F2EEA9303A2b3aA0ABDC2B",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x5C31B36599ED7f06b09c0ffC7A2F928cE496F046",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x30f19eBba919954FDc020B8A20aEF13ab5e02Af0",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x51a3cc54eA30Da607974C5D07B8502599801AC08",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x5A73D76e09Af2E428EC64aE10F91B78AC990B298",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x4A7Bd5E135f421057F97BbA8BCeeE5c18334f454",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x60845E2503Fcd945b3A6f0bC077a31CC913E654D",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xe3aA397cb6d93Cce4fAd9Cc9E796CCa5E50FB5ED",original:"Arbitrum"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x63108fC941F3cCE0B484De19746B5Af949EAF6eE",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xE7176110261ef2FfC885dd568C1093f58F0aEee9",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0x79A8FFFCED130314eCC8782C846c4d8d4867A900",original:"Sei"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x79D34FDb686B5D139949E4F92D83EEe376489176",original:"Klaytn"}]]],["Avalanche",[["WETH",{symbol:"WETH",decimals:18,address:"0xbB5A2dC896Ec4E2fa77F40FA630582ed9c6D0172",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x63A30f239DC8d1c17Bf6653a68Fc6C2F83641E6d",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x3989C9c4bdd30400E6Aa90990683EAd6a1638A16",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x78554394273957d7e55afC841aeA27Cce469AEd4",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x10F1053bF2884b28ee0Bd7a2dDBa237Af3511d29",original:"Bsc"}],["AVAX",{symbol:"AVAX",decimals:18,address:"native",wrappedKey:"WAVAX"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0xd00ae08403B9bbb9124bB305C09058E32C39A48c"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x5425890298aed601595a70AB815c96711a31Bc65"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x094cB577C21Ab1360178beE74B9591fa12216dAD",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0xC66d9c2b33c347d4A4441975f4688fcD5DD4c441",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xf080782DF38eD5228D2FC2882d13D56c8f1D6f21",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xb10563644a6AB8948ee6d7f5b0a1fb15AaEa1E03",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xfc5128F8556a6F059466E67740e6cC31EE5C2C47",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x996a3f12C1FcD7339Ea8801f629201e4d42EAD04",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x36Bd1562F874941eE62Ebb2b3A45B4A88A9df90e",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x301587BF484756441de43E522027e3751871237B",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0xc07c754ef7473d315D973F7D9F7858C2eCe0a0a6",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x7E1779F65B644E5f98DdC4D2cB0A0106a7E6d9e1",original:"Ethereum"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x4beDc7471374d7479120E44ea9593eBB85f48AD9",original:"Arbitrum"}],["SEI",{symbol:"SEI",decimals:6,address:"0xfe2eCDD1708aaebf1cF802C6124fAFb18B22dfEE",original:"Sei"}]]],["Fantom",[["WETH",{symbol:"WETH",decimals:18,address:"0x758FEebDDeC06f4bCcEc8F756C8efBD35d5b7124",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xDF7928AF5B33F7de592594958D8d6Ff8472Eb407",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x32eF19C4b3DF65a24972A489e70AdDef5E54262C",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0xE4FE5DF2084f9D81595e4fcba2399020FBE7b233",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x47a4C4c0f96D6CBe5b5C0A46CB0E22d6A17F1430",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xfB174b43228950C2055CFc25AE93f2DCe8E2beF0",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x0f545Be981C37fB15ab7c65404648761e99016e4",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x6BC4E8D8c1d54656D1DeBCa96efc53aFd1408aD2",original:"Avalanche"}],["FTM",{symbol:"FTM",decimals:18,address:"native",wrappedKey:"WFTM"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xf1277d1Ed8AD466beddF92ef448A132661956621"}],["CELO",{symbol:"CELO",decimals:18,address:"0xB18E73a69c3Aaea39a610372537Cf8482622d199",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x41E3CFDFC255A4bF3C8D3560Bc8D3D9b5080338e",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xED1a08Fc69A7008d225890A96aaE258c465CC7ad",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xd882AB49372eC093E8697B5153f54ab5e7738e3b",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xAb2297E8994149BA91737944E40891881aF762a4",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x456e08952f9091B6c268dC0cECad53d141152C59",original:"Arbitrum"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x685B29e17440c42758Ab3F80FD3603EF01bebe9A",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x01950A33DfFa63E6Bc23b5dB440505581A4cc0e7",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x66E080407407620844fE2083c33108BE55E087bc",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0x832e8050D6c64724500DE9B0ffe1CAc6c570a26d",original:"Sei"}]]],["Celo",[["WETH",{symbol:"WETH",decimals:18,address:"0x898471a82737dFFfB61915F9e8381e279076D72b",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xB0524bEF6c61c6150B340b2828a890fD8dEa60C0",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0xeBB3fF6E5d61d3793Fdb60f7942BA78E636019f6",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x7a56409988BBF8758b3ba412b9c7E3FE504C8544",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xa8050be9389466c3c524F10F131f244ACbf21A0D",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x502c8C83008D9Dd812a7C5fB886C063060C73Dbf",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xDDB349c976cA2C873644F21f594767Eb5390C831",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xE6F8710cA14CFe7F5aAAD3A799C3d1D92dCba938",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0xF194afDf50B03e69Bd7D057c1Aa9e10c9954E4C9"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x132D2172D89cd9CfD480A8887c6bF92360fB460e",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x05EEF2AE1A7A938D78598F7d9e8b97A9bED0c9eC",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xa40d9E69ca9867C4bFbeC11Ce79C939991e9bf26",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xAC0a2fF7DD597de863878a3372142b07B614C125",original:"Aptos"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x0C4AbF95Ff3d82d1F02f55e65050eA5bA062606E",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x28E768a51D19dcB753a24B79D1e89c92fee094Ba",original:"Optimism"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x01a050Fc725F4E99aAD43Eb6f8481f38ee6231aD",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0x05Efb4aC79ef48a4830f517834c6f5f039F16832",original:"Sei"}]]],["Moonbeam",[["WETH",{symbol:"WETH",decimals:18,address:"0xd27d8883E31FAA11B2613b14BE83ad8951C8783C",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xE5dE10C4b744bac6b783fAF8d9B9fDFF14Acc3c9",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x7f5Ca1bcFb38fDF4c0E0646FCbf3FA87740ff65D",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0xc31EC0108D8e886be58808B4C2C53f8365f1885D",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xD2888f015BcB76CE3d27b6024cdEFA16836d0dbb",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x6097E80331B0c6aF4F74D7F2363E70Cb2Fd078A5",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x2E8afeCC19842229358f3650cc3F091908dcbaB4",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x6533CE14804D113b1F494dC56c5D60A43cb5C3b5",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x566c1cebc6A4AFa1C122E039C4BEBe77043148Ee",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x3406a9b09adf0cb36DC04c1523C4b294C6b79513",original:"Celo"}],["GLMR",{symbol:"GLMR",decimals:18,address:"native",wrappedKey:"WGLMR"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xD909178CC99d318e4D46e7E66a972955859670E1"}],["SUI",{symbol:"SUI",decimals:9,address:"0x2ed4B5B1071A3C676664E9085C0e3826542C1b27",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xCaa2A1d3BbbA0D1466571e83b4E2CbE04252593D",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x15025b956969DD8F1d0CD69959Ad97128F8f6D69",original:"Arbitrum"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xf98E630a3DD4F21Cab7a37Bb01209cb62959169D",original:"Optimism"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x7480641F5B00b4Fc39d6AaeC4Cd851EdEA7f31CF",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xf82E21cE03471983Afb9c2E3789Aa13a2d7242E8",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0x1EdDe35B7e058194B457B8621285EaFA710f01ea",original:"Sei"}]]],["Solana",[["WETH",{symbol:"WETH",decimals:8,address:"7VPWjBhCXrpYYBiRKZh1ubh9tLZZNkZGp2ReRphEV4Mc",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"2BAqec7Qof3Y7VJatwFsRHUNSQBSkzaEsT1V5bW6dbZY",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"3WK3mEDNPrNuQReBvM28NcsqrExMnPxD9pPJmgrUeKKH",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"ACbmcQxbbhiXWM1GmapUSMmBYKMvnFLfAAXKqdo8xKwo",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"BaGfF51MQ3a61papTRDYaNefBgTQ9ywnVne5fCff4bxT",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"3Ftc5hTz9sG4huk79onufGiebJNDMZNL8HYgdMJ9E7JR",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"GQtMXZxnuacCFTXVeTvyHi6P9F6chbtzhVc8JgD8hv7c",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"DMw2tLaq1bVoAEKtkoUtieSk9bfCPUvubYLatTMsSVop",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"84F2QX9278ToDmA98u4A86xSV9hz1ovazr8zwGaX6qjS",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"8987WGkYa5viiZ9DD8sS3PB5XghKmWjkEgmzvwDuoAEc",original:"Moonbeam"}],["SOL",{symbol:"SOL",decimals:9,address:"native",wrappedKey:"WSOL"}],["WSOL",{symbol:"WSOL",decimals:9,address:"So11111111111111111111111111111111111111112"}],["USDCsol",{symbol:"USDC",decimals:6,address:"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU"}],["SUI",{symbol:"SUI",decimals:8,address:"BJZ72CjPQojVoH68mzrd4VQ4nr6KuhbAGnhZEZCujKxY",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"7EvFD3JKCJVdtkAYdaSVKJsrPEJCzy2neJha7TREGrCa",original:"Aptos"}],["WETHbase",{symbol:"WETH",decimals:8,address:"EKZqcBZ3Y7YTDinpecA7SxRp9B4s1m99VHJ9jpvyTwzW",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"FMYvcyMJJ22whB9m3T5g1oPKwM6jpLnFBXnrY6eXmCrp",original:"Ethereum"}],["tBTCoptimism",{symbol:"tBTC",decimals:8,address:"HsPvRT3J7kuitNvNHogyZeSEagcqAqwwq2FPgrGfgApy",original:"Optimism"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"6DNSN2BJsaPFdFFc1zP37kkeNe4Usc1Sqkzr9C9vPWcU"}],["SEI",{symbol:"SEI",decimals:6,address:"8LFdfuhbfdH8oBzSKDgfPAxvLW24dCM9ttjBrBobURuk",original:"Sei"}]]],["Sui",[["WETH",{symbol:"WETH",decimals:8,address:"0x72831f626b1f0e11be201893d5cb641917730b1ccac778e4a77f8ab2052f0784::coin::COIN",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x9e4396c19ec1c5f2214c79d3af3f31e59869640305560f8f2499c36fa9c8e0f2::coin::COIN",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"0xe6fc78aa2b52b785bdcb67901cd85793a0b593248f315cb755974d23d0fcb837::coin::COIN",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"0xa516bcbf83b29a2944bb53ec9f934ea7d78c3626d3ae411d2fb9dcb977522e67::coin::COIN",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"0xddcf8680a8a4b8a527d8c85ec203274991590c2ea898d1c4635b70164d9c584b::coin::COIN",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"0xa600741c469fb57ed01497ddf101e798fa79a9c529bd176675c5c4d970811f80::coin::COIN",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x2aa8c885d04e676c4e87b7d0f94d4f3b243b1b5d93239d1cc41d5528ce1714c1::coin::COIN",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"0x14e756ff65e0ac810a5f69ca5276ef5b899a6df3c4717de1f85559d8b5ae6ea6::coin::COIN",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"0x81868174a6b11e1acc337b3414f9912455435d486609fb8d50b34312865085f2::coin::COIN",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"0xeffae382de96981f7ddd2d294429924827e8f325d612487a12d6a0b249171002::coin::COIN",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"0xbc03aaab4c11eb84df8bf39fdc714fa5d5b65b16eb7d155e22c74a68c8d4e17f::coin::COIN",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x2::sui::SUI"}],["APT",{symbol:"APT",decimals:8,address:"0x812d6feb8b84e55d47a0bfcae9fb6a4e7e09be5ec86ce0a729e0f67d5f59f477::coin::COIN",original:"Aptos"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xbbc39df58a11072ceeac1f685393ca912d1a1bfd6e772053ec5a544f36124da::coin::COIN",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"0x7b442b988864149dedfb9b6a75a88c7c33b9ddd3d15a87bf25104e1fcdd680ab::coin::COIN",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x4125940814a0ca87465a1a59092a7344633ad03b48ad7cda36d799d8558012c1::coin::COIN",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"0xacf6784120b221a077ab0b84acc0b76930779eb55f157ea2492be4a60b808f6::coin::COIN",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0x22c5cdaabaae4b6d3351f9bba9511b0aebb0662a6c209a360f0776e1e77a8438::coin::COIN",original:"Sei"}]]],["Aptos",[["WETH",{symbol:"WETH",decimals:8,address:"0x381775005cb32cdd3dbf935ae1b978ed40d309c72b009cd4a812aab6d991418a::coin::T",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"0x5f229253e2b2d03fb909f565feca49452582bd633a5816e5ce30aa593cb49d8a::coin::T",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"0xa5894f5ddb8647e6143102aa336ff07374f7b32e88c1c703aef5b7c9a370bf80::coin::T",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"0xbe8f4301c0b54e870902b9a23eeb95ce74ac190531782aa3262337ceb145401a::coin::T",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x02ef7697bdb33361ca39d228671203afc0dea3202e792d79d2072b761d87c834::coin::T",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"0x533c6ade00d15d1e014c41e29e34853e87df92c4e01a6a3f41318dbd098048d6::coin::T",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"0xecbb0f7e7d049499ca83ca1358344f56557886f6f7adc740d6734cce7bfc9a14::coin::T",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"0x338373b6694f71dbeac5ca4a30503bf5f083888d71678aed31255de416be37c0::coin::T",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"0xdd89c0e695df0692205912fb69fc290418bed0dbe6e4573d744a6d5e6bab6c13::coin::T",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"0x7b22d0e02f653d4fd1caddcfa4719a2b329da56eb81d8f27db703f02466c26a5::coin::T",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x1::aptos_coin::AptosCoin"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x3f0fdd44d96dae888d6c576218cf655458316a27c7bdc46537f61e531b10d3df::coin::T",original:"Arbitrum"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xcff1d9820851201436ad225dcc4374a2d15f52a74109283eb9881be799677e92::coin::T",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"0x5b5f14781164cf77185a7b6acd8e4f3cbb7e7cfb1cd5760d2b8af81075fc153d::coin::T",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xcfaabb3cb08ad612905dd6b2593d044ce857dfe5360148333b4635fb57d4d13f::coin::T",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"0x6e2d5d1a6d6d0e0c5db506ce64ead0530847a48b96516abbb08cdebe43fe3036::coin::T",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0xcae0ba0b7a435730ab65f1c8357d213e5cf9d4b377b96761745a8edaf9c9df6d::coin::T",original:"Sei"}]]],["Base",[["WETH",{symbol:"WETH",decimals:18,address:"0x44D627f900da8AdaC7561bD73aA745F132450798",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x5010B0988a035915C91a2a432085824FcB3D8d3f",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x31B2BAEE47Dc5Fc06baEC1BF73C124031b44fB97",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xFFB5d863d5132523d013338845A1Bb01EDd440f4",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x9DeF11E63C23c71dE3716b81dD2Fdad2B24b8b7F",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x410B0EE532EFfB18fa4d90cc095B1CD58aC43d5a",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x4C5208246676486064c501E1DAF2dD21596Bc5f5",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xB4808E58713112AbAbB8167C7187F8988df38bbD",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x72C56041ea5fe8bDE99b2A123fb5964cDE8C7FE9",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xCEc03b5710a464F4354AF35ebD0310238F656DFf",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x6Fb1dE2372e48fe66c84cf37cc2fb54EaEe62988",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xEe0fC8BECD593B41AACBd93936fDAbc2A444370A",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xd934A15FfA3945DD0Ba2cb7b4174024261A14874",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x8eD43aBdc4f836aa60933177B31AC358ea09f27E",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x5c443C05C72F0660502d88642c807020cc9b71A2",original:"Optimism"}],["ETHbase",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHbase"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xf175520c52418dfe19c8098071a252da48cd1c19"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x0219441240d89fAc3fD708d06d8fD3A072C02FB6",original:"Ethereum"}],["tBTCbase",{symbol:"tBTC",decimals:18,address:"0x783349cd20f26CE12e747b1a17bC38D252c9e119"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"0x9dA16Ae62De05bcb4606c4BFbB54046872501Bd0",original:"Solana"}],["SEI",{symbol:"SEI",decimals:6,address:"0x7B5edB2B3d2BeA8057a736B82AC6EF35c70bdadD",original:"Sei"}]]],["Sei",[["WETH",{symbol:"WETH",decimals:8,address:"sei13pzlt9etk44hj22lckncvampq2qu2gxv6r6774f3hma4vc07wqgsmftjx7",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"sei1nj32y0h0vzam33ay42h2majlfk7tdkqcuk84srn0v2a52kmujgfsyfe78f",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"sei1dc94as3vgxn3qkr5h0lnnrep69mtfku6jg4t94gfkunuyzr5g5eqyqvj9p",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"sei10a7see3f9t2j9l8fdweur3aqy4zgvz583a268hhhln3yzps6l5mqnl4ua6",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"sei1mgpq67pj7p2acy5x7r5lz7fulxmuxr3uh5f0szyvqgvru3glufzsxk8tnx",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"sei1uyce5s6cc8hveg0maq2lg7wm6v6fvwqmznypj559nzf9wr9tmw3qnd3ce7",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"sei1cr3j7rxq0dhq04ksftmj8n2w096w9g7ck8fngkvk2lrmy3qwz56q9thu9u",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"sei1yw4wv2zqg9xkn67zvq3azye0t8h0x9kgyg3d53jym24gxt49vdyswk5upj",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"sei140m6xagmw0zesejzhsvk46zprgscr7tu94h36rwsutcsxcs4fmds9sevym",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"sei1at3xuugacwgu3ppx7fxzmtr3q6m3ztjuean9r2mwcnqupw28yezs7unxgz",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"sei1rhpcprr2pffe6ydf078a0qeslhnlywxh2t3wjax4489z0m29cj9swj5khc",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"sei1em74y5sts4h8y5zuhfdn4w5g8zs285qld3kczpk6rh32jpvjyqqsvv0pdt",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"sei1pf5j3dgngm8yj2xkwmvmvt87g4vyc0szpjz92q8ly9erh23ytn4s983htv",original:"Arbitrum"}],["WETHbase",{symbol:"WETH",decimals:8,address:"sei1kdqylzcv86t7slg8m30mlfgna9xsrusghdgnavvurkv0rku7jvqqta7lka",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"sei1lf6ghmrkd7gn5jlj6xw64suycpjy7g4s5q92fc2gef4f8q3znanq95mmgv",original:"Base"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"sei1aj3uu9ejt8fk6rpjfhzluqnzqmv3enlndjmt8llkr7dn2dtz55xst4s3mn",original:"Solana"}],["SEI",{symbol:"SEI",decimals:6,address:"usei"}]]],["Arbitrum",[["WETH",{symbol:"WETH",decimals:18,address:"0x285d75E04D78F53f4Ed29A506a7e8479EEf3035f",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x42A212A2E7eA8feF4ED28F439F16A6ABDd34DA35",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x2B732F5ad6117818Ad3b7aC73C16033F6ECD78E5",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x50FD4064cC536a964E2E0Dc7B3fE2313Ab386bEA",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xB039aC4Fa8Ed99d30C2f7D791294A9d5FAd698eF",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x92b0C4D27a05921Ded4BB117755990F567aEe049",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xb39697B8BA5df91A169690DfEf88B911436619F2",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xa507f7566B8aDE000E886166B95964677ef3b3Ef",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x9592eE6eD1D9E611b7aa6F20CCbD7Ba571Be8bdd",original:"Celo"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xF8cbdc4E54281b801f182039c250Ad6d13818250",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xe64e2139fdf6Ee7e3795FE51955e21bA3d9eB9F7",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xa81C3BEf2d6f10213b860458DC119666C0ba13bf",original:"Aptos"}],["ETHarbitrum",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHarbitrum"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xee01c0cd76354c383b8c7b4e65ea88d00b06f36f"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xfd064A18f3BF249cf1f87FC203E90D8f650f2d63"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xFd903eA23Bf65f26FdAf2eeb589cf007b108882E",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0xbC4CB3CD7186fD457C072298C48d0eDf7213CAEa",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x97B5fE27a82b2B187D9a19C5782d9eB93B82DaC3",original:"Ethereum"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x85727F4725A4B2834e00Db1AA8e1b843a188162F"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"0x227115F659f7c2939D23FedE68583F5291c395A6",original:"Solana"}],["SEI",{symbol:"SEI",decimals:6,address:"0x90eC817A1f7C1Eb18dD2985C534A78dD88747F47",original:"Sei"}]]],["Optimism",[["WETH",{symbol:"WETH",decimals:18,address:"0x33Db338718aC89Cd8DB13B56af05be3a3029BBE5",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x0382F518AcE1a86224c78B7CDfa67B9774055A1b",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x427B5a0b0384D7FD3AF81805A166a2d9C1116D7d",original:"Polygon"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x81BA80f5820273AA965086e710042d737993f12c",original:"Fantom"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x99436d62259532E0407A7aE78A3b48D119B13903",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x06EcAF6638070Ccf3b3dEA421b3becAA57f3e559",original:"Solana"}],["ETHoptimism",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHoptimism"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xe05606174bac4A6364B31bd0eCA4bf4dD368f8C6"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x04b559971c90Dfb12D9795E95883e55f2fcf34Ed",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x5D89a5BcB86F15a2CCAb05e7E3bEE23fDF246a64",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0xE04e0F5f2C6ce45A40482C3AB92CA91D6741D717",original:"Polygon"}],["tBTCoptimism",{symbol:"tBTC",decimals:18,address:"0x1a53759DE2eADf73bd0b05c07a4F1F5B7912dA3d"}],["SEI",{symbol:"SEI",decimals:6,address:"0xE12be3D96fE101246bF2d290184B0eC6D35d02CA",original:"Sei"}]]],["Wormchain",[["WETH",{symbol:"WETH",decimals:8,address:"wormhole1vguuxez2h5ekltfj9gjd62fs5k4rl2zy5hfrncasykzw08rezpfs63pmq2",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"wormhole1rl8su3hadqqq2v86lscpuklsh2mh84cxqvjdew4jt9yd07dzekyqkmcy3p",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"wormhole1v2efcqkp2qtev06t0ksjnx6trxdd0f7fxg2zdrtzr8cr9wdpjkyqkv9ch6",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"wormhole1uuwad4khwek2h05gmkktzmh8l4t0ep54yydlsqg0l4y2uh3tqfyq3an9k6",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"wormhole1vhjnzk9ly03dugffvzfcwgry4dgc8x0sv0nqqtfxj3ajn7rn5ghq6whn2p",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"wormhole1335rlmhujm0gj5e9gh7at9jpqvqckz0mpe4v284ar4lw5mlkryzsnetfsj",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"wormhole1tqwwyth34550lg2437m05mjnjp8w7h5ka7m70jtzpxn4uh2ktsmq8dv649",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"wormhole1qum2tr7hh4y7ruzew68c64myjec0dq2s2njf6waja5t0w879lutqv2exs9",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"wormhole1808lz8dp2c39vhm9gnemt7zzj95nvrmjepxp7v3w4skzrlyzcmnsxkduxf",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"wormhole1e8z2wjelypwxw5sey62jvwjyup88w55q3h6m0x8jtwjf6sx5c7ys4mzydk",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"wormhole10sfpr8ykh9xn93u8xec4ed3990nmvh86e0vaegkauqhlkxspysyqwavrxx",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"wormhole1gryz69gzl6mz2m66a4twg922jtlc47nlx73sxv88lvq86du5zvyqz3mt23",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"wormhole1ced9v4plkf25q8c6k9gz0guq6l4xyjujpjlvxfg8lpaqywkmamashswq7p",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"wormhole1yf4p93xu68j5fseupm4laj4k6f60gy7ynx6r5vvyr9c0hl3uy8vqpqd6h0",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"wormhole1u8rft0gee23fa6a0t4t88ualrza5lj8ses4aur0l66c7efpvjezqchv34j",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"wormhole186k0cp83c3wyvapgh8fxf66ededemzrfujvjfsx0xw3vr0u9g8sq2y30vx",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"wormhole1s3pk90ccfl6ueehnj8s9pdgyjjlspmr3m5rv46arjh5v4g08dd0qrchjrk",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"wormhole12eu6c7f67l8gdl2lt0hz0dgdh24dhune6wjgy5t0es3tpfzhc3yspwnpfy",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"wormhole1u5z7097gm57zvun9wqsx6jxej2gpdjhg9l9xfe58rhpm29rtjmfqfnl4yv",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"wormhole10p89p4zh00dwdg8h52sysrqm0l2j47jj3kmg93pnz2a039ucw7esgl5vl9",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"wormhole1ja4txt6m0jjq0gmjtmv442f8wk0r5f5apaya0z55wwlrpg3p5xaq3qxw7h",original:"Base"}],["tBTCarbitrum",{symbol:"tBTC",decimals:8,address:"wormhole1rm8ztmk20lrd6ex8uqq3yu7a6eyfjwvg53pcuuj22ffe2y8r3yzqr8j4v9",original:"Arbitrum"}],["wstETH",{symbol:"wstETH",decimals:8,address:"wormhole1u2zdjcczjrenwmf57fmrpensk4the84azdm05m3unm387rm8asdsxqwfeu",original:"Ethereum"}]]],["Osmosis",[["WETH",{symbol:"WETH",decimals:8,address:"ibc/A4A8B6AE885DACD75B228031C0D18AD7EE1B914CED30C9F6F4230DDBD4A1CF2B",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"ibc/3BB8C4BD1C90599B2FA5B5839DD0813EF7B94B0BD0904C4C5A61498AE81E0EE9",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"ibc/1941ED1147121BA7DF35559597B6EB3251844DBBBE4557337D957CB95E0978C2",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"ibc/2864B3418775DDB90EE1410EFF822FDA94E9F0FF77FC8771644761C79EDFE7A3",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"ibc/43F15553F8598186394E81E18604B8B4532B2D7E855D9FFE68A2EF6802C18BE4",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"ibc/65A67BA10DE2378B32AC5A822321E370966D3D4E180DEFB4C3C5245B21088DDF",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"ibc/99EAD53D49EC7CC4E2E2EB26C22CF81C16727DF0C4BF7F7ACBF0D22D910DB5DE",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"ibc/EC9FA5074F34F0644A025BB0263FDAE8F364C5E08523F6464465EF1010FF5A3A",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"ibc/145C6B688F70B0C2F6D87546A5974A75CE75B3A2940275B750E65797B2996157",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"ibc/3A4EA3F8096856C0802F86B218DD74213B4C10224AA44BBD54AEAAA2ABF078BA",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"ibc/7DB06BB67428510AFC3967DC90F5632C679D55D8C487A951A0EEC3160AF492A6",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"ibc/B5D53105A7AA2BEC4DA4B3304228F3856219AE7CF84A9023043C481629E3E319",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"ibc/35A0467DE5744662078DE8B36CBBE0CF0EAA022565A3E6630CB375DDEBB96E05",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"ibc/30778BA41ADF2D8A70B90DB53C2E0251731A40276EF6737215BB1A6ED9E90078",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"ibc/7C495BD95757ED662A897C139F1C9F18275A86EE7203A0B073E2DB12B1E19D63",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"ibc/221A4AADF7972F3BB8F48A6CA984FF0AE65B5D973FF1A695B9642AD702F51789",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"ibc/06ED2700071B5A9C582F51A556537DA94E69EF547E7E6CCD8BFA3D95C818A525",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"ibc/80B3FECB24A4CE94537444E5BF937AC4C08A39BF90D59620D278FA185BD2B148",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"ibc/0A98A3947189D7C368170C76C3EF49486DDBE095F34B72A3C7F92AEBE1013A1D",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"ibc/A45069EA82C933945973E66E4222EEE4624498D4483508FE9BEBF9D519F2132F",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"ibc/2E4F8BC7F7AF33752CF7E290CAD4417EE67CD18FFC0D099E6519A440E588E0CE",original:"Base"}],["OSMO",{symbol:"OSMO",decimals:6,address:"uosmo"}],["wstETH",{symbol:"wstETH",decimals:8,address:"ibc/C66B7DB3ED665D2F5FE8ED15E88B5913A37D80601E161C5E53A743DE12C0FB85",original:"Ethereum"}]]],["Cosmoshub",[["WETH",{symbol:"WETH",decimals:8,address:"ibc/77FE9153FA76C3107CB9F6633AC33509A58529E9622327F216BA8107C79C2DE3",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"ibc/D0EC31D1176BB69EA1A7CF7172CA0380B7AF488AFC6D55B101B8363C2141CD4F",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"ibc/755FBC53FFB46FB505B5269F9BEDF47041F2A0EF2FF8D0520315403E5925C80A",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"ibc/5F21E975410DA22AF565B1772DC45AD0BD5F6DA004981EBE291763F3D2C72A96",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"ibc/37FB599287C6963C413E915FDE83EFA69A3CE8147675DD5A7F974B45F39C8A31",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"ibc/5B0D5974A56332468DD4B2D07C96A7386FCF8FE7303FF41234F90E410EF51937",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"ibc/BAEAC83736444C09656FBE666FB625974FCCDEE566EB700EBFD2642C5F6CF13A",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"ibc/F09E98FA8682FF39130F171E9D89A948B0C3A452F2A31F22B6CC54A3AAE1CD4A",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"ibc/919D8F138B7E71BB067C7301AB5C2D48415E8C3A2D9187861245CEC668F88E3C",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"ibc/009206915358A002C852A2A2CBEDB8446D2D02E519C815087A01F8BDB4DF77BA",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"ibc/1EEDF447A6B046B20C00B1497BED5947219AEEBE0D9A85235C85133A554DF7A4",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"ibc/D3EA463A51E31B2B30BED1978575CAC145DBAB354B8A0EA5D4CFB12D737AF790",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"ibc/26D8D6C63C8D37A5127591DDA905E04CC69CBD3A64F9DA3B1DA3FB0B6A7D9FA5",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"ibc/129EC6B8A41BE07F94DD267F552F4AE1D5EAEBB51634A1468556AF06C10C2692",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"ibc/0CCA5EB15BC2FE474E71DBC9698302CDE260B6F6548F91C30002F7CBF228197B",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"ibc/AB4046AF5B6F146C006DE4DECAD929D24F762A701E09EC8B29000EC63A6E649B",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"ibc/6D1B6A7A9EF692A279A6B5994C98C0D598D003D9203BE8309F14B6E57A58506E",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"ibc/A0298483510D803A045AA7F49CCBD0F9D01010FE0B1A346EBDFFF4BA820C3D21",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"ibc/CE3F2FE630DA6A1187F085CDC8D59BA8B20DA48F4866F2D71C5AB7A1D5859933",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"ibc/97035986A4BD0AF555713355A02EA31A4526616B6543E019E0D750007FABE06C",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"ibc/8560BA5F45C95AE716C05978E364F50C98347ACBEC745840C30F91611FA36698",original:"Base"}],["wstETH",{symbol:"wstETH",decimals:8,address:"ibc/5BB02667F9F0C8284FCF7716065C2779039817FBCB91E937F5149FE89FD8F202",original:"Ethereum"}],["ATOM",{symbol:"ATOM",decimals:6,address:"uatom"}]]],["Evmos",[["EVMOS",{symbol:"EVMOS",decimals:18,address:"atevmos"}]]],["Kujira",[["KUJI",{symbol:"KUJI",decimals:6,address:"ukuji"}]]],["Klaytn",[["KLAY",{symbol:"KLAY",decimals:18,address:"native",wrappedKey:"WKLAY"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x0339d5Eb6D195Ba90B13ed1BCeAa97EbD198b106"}]]],["Sepolia",[["ETHsepolia",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHsepolia"}],["WETHsepolia",{symbol:"WETH",decimals:18,address:"0xeef12A83EE5b7161D3873317c8E0E7B76e0B5D9c"}]]],["ArbitrumSepolia",[["ETHarbitrum_sepolia",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHarbitrum_sepolia"}],["WETHarbitrum_sepolia",{symbol:"WETH",decimals:18,address:"0x980B62Da83eFf3D4576C647993b0c1D7faf17c73"}]]],["BaseSepolia",[["ETHbase_sepolia",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHbase_sepolia"}],["WETHbase_sepolia",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}]]],["OptimismSepolia",[["ETHoptimism_sepolia",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHoptimism_sepolia"}],["WETHoptimism_sepolia",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}]]]],WO=pn(hhe,[0,[1,2]]);function Av(t,e){if(t!=="Devnet"){if(t==="Mainnet"){if(!HO.has(e))return;const n=HO.get(e);return Object.fromEntries(n.map(([r,i])=>[r,{...i,chain:e,key:r}]))}if(t==="Testnet"){if(!WO.has(e))return;const n=WO.get(e);return Object.fromEntries(n.map(([r,i])=>[r,{...i,chain:e,key:r}]))}throw new Error("Unsupported network: "+t)}}function phe(t,e){const n=Av(t,e);return n?Zh.native(n):void 0}function bhe(t,e,n){const r=Av(t,e);return r?Zh.byAddress(r,n):void 0}function mhe(t,e,n){const r=Av(t,e);return r?Zh.byKey(r,n):void 0}function yhe(t,e){const n={coreBridge:h5e.get(t,e),tokenBridge:p5e.get(t,e),nftBridge:m5e.get(t,e),relayer:y5e.get(t,e),tokenBridgeRelayer:b5e.get(t,e),tbtc:Rm.get(t,e)};return _S.has(t,e)&&(n.cctp=_S.get(t,e)),vO.has(t,e)&&(n.gateway=vO.get(t,e)),MO.has(t,e)&&(n.translator=MO.get(t,e)),xO.has(t,e)&&(n.portico=xO.get(t,e)),Rm.has(t,e)&&(n.tbtc=Rm.get(t,e)),n}function Fn(t){return typeof t=="string"&&t==="native"}function VN(t){return{chain:t,address:"native"}}function Zp(t){return typeof t=="object"&&t.address!==void 0&&t.chain!==void 0&&qh(t.chain)}function Xi(t,e){return t.chain!==e.chain?!1:Fn(t.address)&&Fn(e.address)?!0:Xr(t)===Xr(e)}function Xr(t){return Zp(t)&&Fn(t.address)?t.address:t.address.toNative(t.chain).toString()}function $S(t){if(Fn(t.address))throw new Error("Invalid address, cannot convert the string literal `native` to a Universal Address");return t.address.toUniversalAddress().toString()}function Pm(t,e,n){let r;if(Zp(n)){if(!Fn(n.address))return[!1,n];r=n.address}else r=n;if(Fn(r)){const a=phe(t,e);if(!a)throw new Error("Invalid destination token");const s=a.wrappedKey,c=mhe(t,e,s);if(!c)throw new Error("Invalid wrapped token key: "+s);return[!0,{chain:e,address:Gi(e,c.address)}]}return[!1,{chain:e,address:r}]}function fZ(t){return t.chain!==void 0&&t.txid!==void 0}function Qx(t){return gq.map(n=>{const r=Yi(n);let i="";try{i=mv.get(t,n)}catch{}const a=Av(t,n),s=a?Object.values(a).find(l=>Fn(l.address)&&l.wrappedKey):void 0,c=s?a[s.wrappedKey]:void 0;return{key:n,platform:r,network:t,chainId:Kn(n),finalityThreshold:Mq.get(n)??0,blockTime:xq.get(n)??0,contracts:yhe(t,n),nativeTokenDecimals:jN(r),nativeChainId:i,tokenMap:a,wrappedNative:c,explorer:Jde(t,n),rpc:wq(t,n)}}).reduce((n,r)=>({...n,[r.key]:r}),{})}class dZ{constructor(e,n,r){se(this,"network");se(this,"chain");se(this,"config");se(this,"platform");se(this,"rpc");se(this,"protocols",new Map);se(this,"supportsWormholeCore",()=>this.supportsProtocol("WormholeCore"));se(this,"getWormholeCore",()=>this.getProtocol("WormholeCore"));se(this,"supportsTokenBridge",()=>this.supportsProtocol("TokenBridge"));se(this,"getTokenBridge",()=>this.getProtocol("TokenBridge"));se(this,"supportsAutomaticTokenBridge",()=>this.supportsProtocol("AutomaticTokenBridge"));se(this,"getAutomaticTokenBridge",()=>this.getProtocol("AutomaticTokenBridge"));se(this,"supportsCircleBridge",()=>this.supportsProtocol("CircleBridge"));se(this,"getCircleBridge",()=>this.getProtocol("CircleBridge"));se(this,"supportsAutomaticCircleBridge",()=>this.supportsProtocol("AutomaticCircleBridge"));se(this,"getAutomaticCircleBridge",()=>this.getProtocol("AutomaticCircleBridge"));se(this,"supportsIbcBridge",()=>this.supportsProtocol("IbcBridge"));se(this,"getIbcBridge",()=>this.getProtocol("IbcBridge"));se(this,"supportsPorticoBridge",()=>this.supportsProtocol("PorticoBridge"));se(this,"getPorticoBridge",()=>this.getProtocol("PorticoBridge"));se(this,"supportsTBTCBridge",()=>this.supportsProtocol("TBTCBridge"));se(this,"getTBTCBridge",()=>this.getProtocol("TBTCBridge"));this.config=n.config[e],this.platform=n,this.chain=this.config.key,this.network=this.config.network,this.rpc=r}getRpc(){return this.rpc=this.rpc?this.rpc:this.platform.getRpc(this.chain),this.rpc}async getDecimals(e){if(Fn(e))return this.config.nativeTokenDecimals;if(this.config.tokenMap){const n=Xr({chain:this.chain,address:e}),r=bhe(this.network,this.chain,n);if(r)return r.decimals}return this.platform.utils().getDecimals(this.chain,await this.getRpc(),e)}async getBalance(e,n){return this.platform.utils().getBalance(this.chain,await this.getRpc(),e,n)}async getLatestBlock(){return this.platform.utils().getLatestBlock(await this.getRpc())}async getLatestFinalizedBlock(){return this.platform.utils().getLatestFinalizedBlock(await this.getRpc())}async parseTransaction(e){return this.platform.parseWormholeMessages(this.chain,await this.getRpc(),e)}async sendWait(e){return this.platform.utils().sendWait(this.chain,await this.getRpc(),e)}getToken(e){if(this.config.tokenMap&&e in this.config.tokenMap)return this.config.tokenMap[e]}async getNativeWrappedTokenId(){if(this.config.wrappedNative){const{address:n}=this.config.wrappedNative;return{chain:this.chain,address:Gi(this.chain,n)}}const e=await this.getTokenBridge();return{chain:this.chain,address:await e.getWrappedNative()}}async getTokenAccount(e,n){return{chain:this.chain,address:e}}supportsProtocol(e){return the(this.chain,e)}async getProtocol(e,n,r){if(!n&&this.protocols.has(e))return this.protocols.get(e);const i=n?{...this.config.contracts,...n}:this.config.contracts,a=r??await this.getRpc(),s=this.platform.getProtocolInitializer(e);let c;if(r){if(n)throw new Error("Custom contracts are currently not supported with custom rpc connection. Add the contracts to the base config.");c=await this.platform.getProtocol(e,a)}else if(ehe(s)){const l=await s.getVersion(a,i);c=new s(this.network,this.chain,a,i,l)}else c=new s(this.network,this.chain,a,i);return n||this.protocols.set(e,c),c}}function ghe(t){return vhe(t)||hZ(t)}function vhe(t){return typeof t=="object"&&"chain"in t&&typeof t.chain=="function"&&"address"in t&&typeof t.address=="function"&&"sign"in t&&typeof t.sign=="function"}function hZ(t){return typeof t=="object"&&"chain"in t&&typeof t.chain=="function"&&"address"in t&&typeof t.address=="function"&&"signAndSend"in t&&typeof t.signAndSend=="function"}class dWe{constructor(e,n,r){se(this,"_chain");se(this,"_address");se(this,"_signer");this._chain=e,this._address=n,this._signer=r}unwrap(){return this._signer}}function k6(t){return t.sequence!==void 0&&t.emitter!==void 0&&t.chain!==void 0}function cg(t){return t.hash!==void 0}const YO=t=>[af(1),{name:"token",binary:"bytes",layout:[{name:"address",...hn},{name:"amount",...Si}]},{name:"sourceDomain",...j4},{name:"targetDomain",...j4},{name:"nonce",...HN},{name:"caller",...hn},{name:"mintRecipient",...hn},X6({name:"payload",lengthSize:2},t)],Mhe=[af(1),{name:"targetRelayerFee",...Si},{name:"toNativeTokenAmount",...Si},{name:"targetRecipient",...hn}],xhe=[["DepositWithPayload",YO()],["TransferWithRelay",YO(Mhe)]];Q0("AutomaticCircleBridge",xhe);const pZ={binary:"uint",size:4,custom:0,omit:!0},whe=[{name:"messageBodyVersion",...pZ},{name:"burnToken",...hn},{name:"mintRecipient",...hn},{name:"amount",...Si},{name:"messageSender",...hn}],VS=[{name:"version",...pZ},{name:"sourceDomain",...j4},{name:"destinationDomain",...j4},{name:"nonce",...HN},{name:"sender",...hn},{name:"recipient",...hn},{name:"destinationCaller",...hn},{name:"payload",binary:"bytes",layout:whe}],Ahe=[["Message",VS]];Q0("CircleBridge",Ahe);var ah;(function(t){t.isCircleAttestation=e=>e.message!==void 0,t.deserialize=e=>{const n=co(VS,e),r=dr.encode(J6(e),!0);return[n,r]},t.serialize=e=>oo(VS,e)})(ah||(ah={}));var GO;(function(t){const e="AutomaticCircleBridge",n=["DepositWithPayload","TransferWithRelay"];t.getTransferDiscriminator=IN(()=>$N([e,n]))})(GO||(GO={}));function Che(t){return t.amount!==void 0&&t.from!==void 0&&t.to!==void 0}const $O={binary:"bytes",size:32,custom:{to:t=>tg(t.byteLength).map(e=>String.fromCharCode(t[e])).join(""),from:t=>new Uint8Array(t.split("").map(e=>e.charCodeAt(0)))}},bZ=[{name:"token",binary:"bytes",layout:[{name:"amount",...Si},{name:"address",...hn},{name:"chain",...Ui()}]},{name:"to",binary:"bytes",layout:[{name:"address",...hn},{name:"chain",...Ui()}]}],mZ=[af(1),...bZ,{name:"fee",...Si}],Cv=t=>[af(3),...bZ,{name:"from",...hn},X6({name:"payload"},t)],Ehe=[["AttestMeta",[af(2),{name:"token",binary:"bytes",layout:[{name:"address",...hn},{name:"chain",...Ui()}]},{name:"decimals",binary:"uint",size:1},{name:"symbol",...$O},{name:"name",...$O}]],["Transfer",mZ],["TransferWithPayload",Cv()]];Q0("TokenBridge",Ehe);const She=kde(["shouldWrapNative","shouldUnwrapNative"]),QS=[{name:"recipientChain",binary:"uint",endianness:"little",size:2},{name:"bridgeNonce",binary:"uint",endianness:"little",size:4},{name:"feeTierStart",binary:"uint",endianness:"little",size:3},{name:"feeTierFinish",binary:"uint",endianness:"little",size:3},{name:"padding",binary:"bytes",size:19},{name:"flags",...She}],qS=[{name:"flagSet",binary:"bytes",layout:QS},{name:"finalTokenAddress",...hn},{name:"recipientAddress",...hn},{name:"cannonAssetAmount",...Si},{name:"minAmountFinish",...Si},{name:"relayerFee",...Si}],The=[["Transfer",Cv(qS)]];Q0("PorticoBridge",The);var VO;(function(t){t.deserializePayload=e=>co(qS,e),t.serializePayload=e=>oo(qS,e),t.deserializeFlagSet=e=>co(QS,e),t.serializeFlagSet=e=>oo(QS,e)})(VO||(VO={}));const yZ={binary:"bytes",layout:[{name:"size",binary:"uint",size:4,custom:3*32,omit:!0},{name:"waste",binary:"uint",size:31,custom:0n,omit:!0},{name:"version",binary:"uint",size:1,custom:0,omit:!0},{name:"gasLimit",...Si},{name:"targetChainRefundPerGasUnused",...Si}]},QO={binary:"bytes",layout:[{name:"chain",...Ui()},{name:"address",...hn}]},Ihe=[{name:"chain",...Ui()},{name:"emitterAddress",...hn},{name:"sequence",...WN}],Dhe=[{name:"size",binary:"uint",size:4,custom:12,omit:!0},{name:"domain",...j4},{name:"nonce",...HN}],gZ={binary:"switch",idSize:1,idTag:"keyType",layouts:[[[1,"VAA"],Ihe],[[2,"CCTP"],Dhe]]},vZ=t=>[af(1),{name:"target",...QO},X6({name:"payload",lengthSize:4},t),{name:"requestedReceiverValue",...Si},{name:"extraReceiverValue",...Si},{name:"executionInfo",...yZ},{name:"refund",...QO},{name:"refundDeliveryProvider",...hn},{name:"sourceDeliveryProvider",...hn},{name:"senderAddress",...hn},{name:"messageKeys",binary:"array",lengthSize:1,layout:gZ}],Nhe=[["DeliveryInstruction",vZ()],["RedeliveryInstruction",[af(2),{name:"deliveryVaaKey",binary:"bytes",layout:gZ},{name:"targetChain",...Ui()},{name:"newRequestedReceiverValue",...Si},{name:"newEncodedExecutionInfo",...yZ},{name:"newSourceDeliveryProvider",...hn},{name:"newSenderAddress",...hn}]]];Q0("Relayer",Nhe);const Lhe=[af(1),{name:"targetRelayerFee",...Si},{name:"toNativeTokenAmount",...Si},{name:"targetRecipient",...hn}],Bhe=[["TransferWithRelay",Cv(Lhe)]];Q0("AutomaticTokenBridge",Bhe);const hWe=t=>new Error(`Token ${t} is not a wrapped asset`);var ZS;(function(t){const e="TokenBridge",n=["Transfer","TransferWithPayload"],r=["AttestMeta"];[...n,...r],t.getTransferDiscriminator=IN(()=>$N([e,n]))})(ZS||(ZS={}));function jhe(t){return t.token!==void 0&&t.amount!==void 0&&t.from!==void 0&&t.to!==void 0}const khe=[["Add",1],["Subtract",2],["Unknown",3]],KS={binary:"bytes",size:20,custom:{to:t=>dr.encode(t,!0),from:t=>dr.decode(t)}},_he=[["UpgradeContract",[!1,[{name:"newContract",...hn}]]],["RegisterChain",[!0,[{name:"foreignChain",...Ui()},{name:"foreignAddress",...hn}]]],["RecoverChainId",[!1,[{name:"evmChainId",binary:"uint",size:32},{name:"newChainId",...Ui({allowedChains:vq("Evm")})}]]],["GuardianSetUpgrade",[!0,[{name:"guardianSet",...aZ},{name:"guardians",binary:"array",lengthSize:1,layout:KS}]]],["SetMessageFee",[!1,[{name:"messageFee",binary:"uint",size:32}]]],["TransferFees",[!0,[{name:"amount",binary:"uint",size:32},{name:"recipient",...hn}]]],["UpdateDefaultProvider",[!1,[{name:"defaultProvider",...hn}]]],["RegisterEmitterAndDomain",[!0,[{name:"emitterChain",...Ui()},{name:"emitterAddress",...hn},{name:"domain",binary:"uint",size:4}]]],["UpdateFinality",[!1,[{name:"finality",binary:"uint",size:1}]]]],qx={binary:"bytes",size:32},qO=[{name:"contractAddr",...hn},{name:"codeId",binary:"uint",size:8}],Ohe=[["StoreCode",[!1,[{name:"wasmHash",...qx}]]],["InstantiateContract",[!1,[{name:"instantiationParamsHash",...qx}]]],["MigrateContract",[!1,[{name:"migrationParamsHash",...qx}]]],["AddWasmInstantiateAllowlist",[!1,qO]],["DeleteWasmInstantiateAllowlist",[!1,qO]]],Fhe=(()=>{const t=i=>({binary:"bytes",size:i,custom:che}),e=[{name:"height",binary:"uint",size:8}],n=uq(e),r=i=>[{name:"name",...t(i)},...e];return{binary:"bytes",custom:{to:i=>co(r(i.length-n),i),from:i=>oo(r(i.name.length),i)}}})(),zhe=[["ScheduleUpgrade",[!1,Fhe]],["CancelUpgrade",[!0,[]]],["SetIbcComposabilityMwContract",[!1,[{name:"contractAddress",...hn}]]]],Rhe=[["ModifyBalance",[!1,[{name:"sequence",...WN},{name:"modifiedChain",...Ui()},{name:"tokenChain",...Ui()},{name:"tokenAddress",...hn},{name:"kind",...jde(khe)},{name:"amount",...Si},{name:"reason",...sZ(32)}]]]],Phe=[["ActionUpdateChannelChain",[!1,[{name:"channelId",...sZ(64)},{name:"channelChain",...Ui({allowedChains:vq("Cosmwasm")})}]]]],Uhe=[["GeneralPurposeEvm",[!1,[{name:"governanceContract",...KS},{name:"targetContract",...KS},{name:"payload",binary:"bytes",lengthSize:2}]]],["GeneralPurposeSolana",[!1,[{name:"governanceContract",...hn},{name:"payload",binary:"bytes"}]]]],MZ=[..._he,...Ohe,...zhe,...Rhe,...Phe,...Uhe];sq(MZ,0);const ZO=Object.fromEntries(MZ),Hhe=[["WormholeCore","Core"],["TokenBridge","TokenBridge"],["NftBridge","NftBridge"],["Relayer","WormholeRelayer"],["CircleBridge","CircleIntegration"],["IbcBridge","IbcTranslator"],["IbcReceiver","IbcReceiver"],["GlobalAccountant","GlobalAccountant"],["GeneralPurposeGovernance","GeneralPurposeGovernance"],["WormchainGovernance","WasmdModule"],["GatewayGovernance","GatewayModule"]],Whe=pn(Hhe),Yhe=t=>({to:t,from:(()=>{const n=new Uint8Array(32),r=Whe(t);for(let i=1;i<=r.length;++i)n[32-i]=r.charCodeAt(r.length-i);return n})()}),Ghe=(t,e)=>({to:t,from:e}),$he=(t,e,n)=>[{name:"protocol",binary:"bytes",custom:Yhe(t)},{name:"action",binary:"uint",size:1,custom:Ghe(e,n)},{name:"chain",...Ui({allowNull:ZO[e][0]})},{name:"actionArgs",binary:"bytes",layout:ZO[e][1]}],pr=(t,e,n)=>[e,$he(t,e,n)],Vhe=[pr("WormholeCore","UpgradeContract",1),pr("WormholeCore","GuardianSetUpgrade",2),pr("WormholeCore","SetMessageFee",3),pr("WormholeCore","TransferFees",4),pr("WormholeCore","RecoverChainId",5)],Qhe=[pr("TokenBridge","RegisterChain",1),pr("TokenBridge","UpgradeContract",2),pr("TokenBridge","RecoverChainId",3)],qhe=[pr("NftBridge","RegisterChain",1),pr("NftBridge","UpgradeContract",2),pr("NftBridge","RecoverChainId",3)],Zhe=[pr("Relayer","RegisterChain",1),pr("Relayer","UpgradeContract",2),pr("Relayer","UpdateDefaultProvider",3)],Khe=[pr("CircleBridge","UpdateFinality",1),pr("CircleBridge","RegisterEmitterAndDomain",2),pr("CircleBridge","UpgradeContract",3)],Xhe=[pr("IbcBridge","ActionUpdateChannelChain",1)],Jhe=[pr("IbcReceiver","ActionUpdateChannelChain",1)],e8e=[pr("GlobalAccountant","ModifyBalance",1)],t8e=[pr("GeneralPurposeGovernance","GeneralPurposeEvm",1),pr("GeneralPurposeGovernance","GeneralPurposeSolana",2)],n8e=[pr("WormchainGovernance","StoreCode",1),pr("WormchainGovernance","InstantiateContract",2),pr("WormchainGovernance","MigrateContract",3),pr("WormchainGovernance","AddWasmInstantiateAllowlist",4),pr("WormchainGovernance","DeleteWasmInstantiateAllowlist",5)],r8e=[pr("GatewayGovernance","ScheduleUpgrade",1),pr("GatewayGovernance","CancelUpgrade",2),pr("GatewayGovernance","SetIbcComposabilityMwContract",3)];Q0("WormholeCore",Vhe);Q0("TokenBridge",Qhe);Q0("NftBridge",qhe);Q0("Relayer",Zhe);Q0("CircleBridge",Khe);Q0("IbcBridge",Xhe);Q0("IbcReceiver",Jhe);Q0("GlobalAccountant",e8e);Q0("GeneralPurposeGovernance",t8e);Q0("WormchainGovernance",n8e);Q0("GatewayGovernance",r8e);var Ds;(function(t){const e="TBTCBridge",n=["GatewayTransfer","Transfer"];[...n],t.getTransferDiscriminator=IN(()=>$N([e,n])),t.getNativeTbtcToken=r=>{const i=v5e.get("Mainnet",r);if(i)return{chain:r,address:Gi(r,i)}}})(Ds||(Ds={}));const i8e=[{name:"recipient",...hn}],a8e=[["GatewayTransfer",Cv(i8e)],["Transfer",mZ]];Q0("TBTCBridge",a8e);function xZ(t,e){return function(){return t.apply(e,arguments)}}const{toString:s8e}=Object.prototype,{getPrototypeOf:QN}=Object,Ev=(t=>e=>{const n=s8e.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Z1=t=>(t=t.toLowerCase(),e=>Ev(e)===t),Sv=t=>e=>typeof e===t,{isArray:t8}=Array,F4=Sv("undefined");function o8e(t){return t!==null&&!F4(t)&&t.constructor!==null&&!F4(t.constructor)&&Xs(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const wZ=Z1("ArrayBuffer");function c8e(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&wZ(t.buffer),e}const l8e=Sv("string"),Xs=Sv("function"),AZ=Sv("number"),Tv=t=>t!==null&&typeof t=="object",u8e=t=>t===!0||t===!1,Um=t=>{if(Ev(t)!=="object")return!1;const e=QN(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},f8e=Z1("Date"),d8e=Z1("File"),h8e=Z1("Blob"),p8e=Z1("FileList"),b8e=t=>Tv(t)&&Xs(t.pipe),m8e=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Xs(t.append)&&((e=Ev(t))==="formdata"||e==="object"&&Xs(t.toString)&&t.toString()==="[object FormData]"))},y8e=Z1("URLSearchParams"),g8e=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Kp(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,i;if(typeof t!="object"&&(t=[t]),t8(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{const a=n?Object.getOwnPropertyNames(t):Object.keys(t),s=a.length;let c;for(r=0;r<s;r++)c=a[r],e.call(null,t[c],c,t)}}function CZ(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,i;for(;r-- >0;)if(i=n[r],e===i.toLowerCase())return i;return null}const EZ=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:je.global,SZ=t=>!F4(t)&&t!==EZ;function XS(){const{caseless:t}=SZ(this)&&this||{},e={},n=(r,i)=>{const a=t&&CZ(e,i)||i;Um(e[a])&&Um(r)?e[a]=XS(e[a],r):Um(r)?e[a]=XS({},r):t8(r)?e[a]=r.slice():e[a]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&Kp(arguments[r],n);return e}const v8e=(t,e,n,{allOwnKeys:r}={})=>(Kp(e,(i,a)=>{n&&Xs(i)?t[a]=xZ(i,n):t[a]=i},{allOwnKeys:r}),t),M8e=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),x8e=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},w8e=(t,e,n,r)=>{let i,a,s;const c={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),a=i.length;a-- >0;)s=i[a],(!r||r(s,t,e))&&!c[s]&&(e[s]=t[s],c[s]=!0);t=n!==!1&&QN(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},A8e=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},C8e=t=>{if(!t)return null;if(t8(t))return t;let e=t.length;if(!AZ(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},E8e=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&QN(Uint8Array)),S8e=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let i;for(;(i=r.next())&&!i.done;){const a=i.value;e.call(t,a[0],a[1])}},T8e=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},I8e=Z1("HTMLFormElement"),D8e=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),KO=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),N8e=Z1("RegExp"),TZ=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};Kp(n,(i,a)=>{e(i,a,t)!==!1&&(r[a]=i)}),Object.defineProperties(t,r)},L8e=t=>{TZ(t,(e,n)=>{if(Xs(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(Xs(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},B8e=(t,e)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return t8(t)?r(t):r(String(t).split(e)),n},j8e=()=>{},k8e=(t,e)=>(t=+t,Number.isFinite(t)?t:e),Zx="abcdefghijklmnopqrstuvwxyz",XO="0123456789",IZ={DIGIT:XO,ALPHA:Zx,ALPHA_DIGIT:Zx+Zx.toUpperCase()+XO},_8e=(t=16,e=IZ.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function O8e(t){return!!(t&&Xs(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const F8e=t=>{const e=new Array(10),n=(r,i)=>{if(Tv(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[i]=r;const a=t8(r)?[]:{};return Kp(r,(s,c)=>{const l=n(s,i+1);!F4(l)&&(a[c]=l)}),e[i]=void 0,a}}return r};return n(t,0)},z8e=Z1("AsyncFunction"),R8e=t=>t&&(Tv(t)||Xs(t))&&Xs(t.then)&&Xs(t.catch),et={isArray:t8,isArrayBuffer:wZ,isBuffer:o8e,isFormData:m8e,isArrayBufferView:c8e,isString:l8e,isNumber:AZ,isBoolean:u8e,isObject:Tv,isPlainObject:Um,isUndefined:F4,isDate:f8e,isFile:d8e,isBlob:h8e,isRegExp:N8e,isFunction:Xs,isStream:b8e,isURLSearchParams:y8e,isTypedArray:E8e,isFileList:p8e,forEach:Kp,merge:XS,extend:v8e,trim:g8e,stripBOM:M8e,inherits:x8e,toFlatObject:w8e,kindOf:Ev,kindOfTest:Z1,endsWith:A8e,toArray:C8e,forEachEntry:S8e,matchAll:T8e,isHTMLForm:I8e,hasOwnProperty:KO,hasOwnProp:KO,reduceDescriptors:TZ,freezeMethods:L8e,toObjectSet:B8e,toCamelCase:D8e,noop:j8e,toFiniteNumber:k8e,findKey:CZ,global:EZ,isContextDefined:SZ,ALPHABET:IZ,generateString:_8e,isSpecCompliantForm:O8e,toJSONObject:F8e,isAsyncFn:z8e,isThenable:R8e};function rr(t,e,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}et.inherits(rr,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:et.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const DZ=rr.prototype,NZ={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{NZ[t]={value:t}});Object.defineProperties(rr,NZ);Object.defineProperty(DZ,"isAxiosError",{value:!0});rr.from=(t,e,n,r,i,a)=>{const s=Object.create(DZ);return et.toFlatObject(t,s,function(l){return l!==Error.prototype},c=>c!=="isAxiosError"),rr.call(s,t.message,e,n,r,i),s.cause=t,s.name=t.name,a&&Object.assign(s,a),s};const P8e=null;function JS(t){return et.isPlainObject(t)||et.isArray(t)}function LZ(t){return et.endsWith(t,"[]")?t.slice(0,-2):t}function JO(t,e,n){return t?t.concat(e).map(function(i,a){return i=LZ(i),!n&&a?"["+i+"]":i}).join(n?".":""):e}function U8e(t){return et.isArray(t)&&!t.some(JS)}const H8e=et.toFlatObject(et,{},null,function(e){return/^is[A-Z]/.test(e)});function Iv(t,e,n){if(!et.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=et.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(T,D){return!et.isUndefined(D[T])});const r=n.metaTokens,i=n.visitor||p,a=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&et.isSpecCompliantForm(e);if(!et.isFunction(i))throw new TypeError("visitor must be a function");function d(C){if(C===null)return"";if(et.isDate(C))return C.toISOString();if(!l&&et.isBlob(C))throw new rr("Blob is not supported. Use a Buffer instead.");return et.isArrayBuffer(C)||et.isTypedArray(C)?l&&typeof Blob=="function"?new Blob([C]):je.Buffer.from(C):C}function p(C,T,D){let S=C;if(C&&!D&&typeof C=="object"){if(et.endsWith(T,"{}"))T=r?T:T.slice(0,-2),C=JSON.stringify(C);else if(et.isArray(C)&&U8e(C)||(et.isFileList(C)||et.endsWith(T,"[]"))&&(S=et.toArray(C)))return T=LZ(T),S.forEach(function(N,B){!(et.isUndefined(N)||N===null)&&e.append(s===!0?JO([T],B,a):s===null?T:T+"[]",d(N))}),!1}return JS(C)?!0:(e.append(JO(D,T,a),d(C)),!1)}const m=[],g=Object.assign(H8e,{defaultVisitor:p,convertValue:d,isVisitable:JS});function M(C,T){if(!et.isUndefined(C)){if(m.indexOf(C)!==-1)throw Error("Circular reference detected in "+T.join("."));m.push(C),et.forEach(C,function(S,I){(!(et.isUndefined(S)||S===null)&&i.call(e,S,et.isString(I)?I.trim():I,T,g))===!0&&M(S,T?T.concat(I):[I])}),m.pop()}}if(!et.isObject(t))throw new TypeError("data must be an object");return M(t),e}function eF(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function qN(t,e){this._pairs=[],t&&Iv(t,this,e)}const BZ=qN.prototype;BZ.append=function(e,n){this._pairs.push([e,n])};BZ.toString=function(e){const n=e?function(r){return e.call(this,r,eF)}:eF;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function W8e(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function jZ(t,e,n){if(!e)return t;const r=n&&n.encode||W8e,i=n&&n.serialize;let a;if(i?a=i(e,n):a=et.isURLSearchParams(e)?e.toString():new qN(e,n).toString(r),a){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+a}return t}class tF{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){et.forEach(this.handlers,function(r){r!==null&&e(r)})}}const kZ={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Y8e=typeof URLSearchParams<"u"?URLSearchParams:qN,G8e=typeof FormData<"u"?FormData:null,$8e=typeof Blob<"u"?Blob:null,V8e=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Q8e=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",C1={classes:{URLSearchParams:Y8e,FormData:G8e,Blob:$8e},isStandardBrowserEnv:V8e,isStandardBrowserWebWorkerEnv:Q8e,protocols:["http","https","file","blob","url","data"]};function q8e(t,e){return Iv(t,new C1.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,a){return C1.isNode&&et.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},e))}function Z8e(t){return et.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function K8e(t){const e={},n=Object.keys(t);let r;const i=n.length;let a;for(r=0;r<i;r++)a=n[r],e[a]=t[a];return e}function _Z(t){function e(n,r,i,a){let s=n[a++];const c=Number.isFinite(+s),l=a>=n.length;return s=!s&&et.isArray(i)?i.length:s,l?(et.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!c):((!i[s]||!et.isObject(i[s]))&&(i[s]=[]),e(n,r,i[s],a)&&et.isArray(i[s])&&(i[s]=K8e(i[s])),!c)}if(et.isFormData(t)&&et.isFunction(t.entries)){const n={};return et.forEachEntry(t,(r,i)=>{e(Z8e(r),i,n,0)}),n}return null}const X8e={"Content-Type":void 0};function J8e(t,e,n){if(et.isString(t))try{return(e||JSON.parse)(t),et.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const n8={transitional:kZ,adapter:["xhr","http"],transformRequest:[function(e,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=et.isObject(e);if(a&&et.isHTMLForm(e)&&(e=new FormData(e)),et.isFormData(e))return i&&i?JSON.stringify(_Z(e)):e;if(et.isArrayBuffer(e)||et.isBuffer(e)||et.isStream(e)||et.isFile(e)||et.isBlob(e))return e;if(et.isArrayBufferView(e))return e.buffer;if(et.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return q8e(e,this.formSerializer).toString();if((c=et.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Iv(c?{"files[]":e}:e,l&&new l,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),J8e(e)):e}],transformResponse:[function(e){const n=this.transitional||n8.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(e&&et.isString(e)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(c){if(s)throw c.name==="SyntaxError"?rr.from(c,rr.ERR_BAD_RESPONSE,this,null,this.response):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:C1.classes.FormData,Blob:C1.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};et.forEach(["delete","get","head"],function(e){n8.headers[e]={}});et.forEach(["post","put","patch"],function(e){n8.headers[e]=et.merge(X8e)});const e3e=et.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),t3e=t=>{const e={};let n,r,i;return t&&t.split(`
|
|
63
63
|
`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||e[n]&&e3e[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},nF=Symbol("internals");function F8(t){return t&&String(t).trim().toLowerCase()}function Hm(t){return t===!1||t==null?t:et.isArray(t)?t.map(Hm):String(t)}function n3e(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const r3e=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Kx(t,e,n,r,i){if(et.isFunction(r))return r.call(this,e,n);if(i&&(e=n),!!et.isString(e)){if(et.isString(r))return e.indexOf(r)!==-1;if(et.isRegExp(r))return r.test(e)}}function i3e(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function a3e(t,e){const n=et.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(i,a,s){return this[r].call(this,e,i,a,s)},configurable:!0})})}let Js=class{constructor(e){e&&this.set(e)}set(e,n,r){const i=this;function a(c,l,d){const p=F8(l);if(!p)throw new Error("header name must be a non-empty string");const m=et.findKey(i,p);(!m||i[m]===void 0||d===!0||d===void 0&&i[m]!==!1)&&(i[m||l]=Hm(c))}const s=(c,l)=>et.forEach(c,(d,p)=>a(d,p,l));return et.isPlainObject(e)||e instanceof this.constructor?s(e,n):et.isString(e)&&(e=e.trim())&&!r3e(e)?s(t3e(e),n):e!=null&&a(n,e,r),this}get(e,n){if(e=F8(e),e){const r=et.findKey(this,e);if(r){const i=this[r];if(!n)return i;if(n===!0)return n3e(i);if(et.isFunction(n))return n.call(this,i,r);if(et.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=F8(e),e){const r=et.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||Kx(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let i=!1;function a(s){if(s=F8(s),s){const c=et.findKey(r,s);c&&(!n||Kx(r,r[c],c,n))&&(delete r[c],i=!0)}}return et.isArray(e)?e.forEach(a):a(e),i}clear(e){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const a=n[r];(!e||Kx(this,this[a],a,e,!0))&&(delete this[a],i=!0)}return i}normalize(e){const n=this,r={};return et.forEach(this,(i,a)=>{const s=et.findKey(r,a);if(s){n[s]=Hm(i),delete n[a];return}const c=e?i3e(a):String(a).trim();c!==a&&delete n[a],n[c]=Hm(i),r[c]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return et.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=e&&et.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
|
|
64
64
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(i=>r.set(i)),r}static accessor(e){const r=(this[nF]=this[nF]={accessors:{}}).accessors,i=this.prototype;function a(s){const c=F8(s);r[c]||(a3e(i,s),r[c]=!0)}return et.isArray(e)?e.forEach(a):a(e),this}};Js.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);et.freezeMethods(Js.prototype);et.freezeMethods(Js);function Xx(t,e){const n=this||n8,r=e||n,i=Js.from(r.headers);let a=r.data;return et.forEach(t,function(c){a=c.call(n,a,i.normalize(),e?e.status:void 0)}),i.normalize(),a}function OZ(t){return!!(t&&t.__CANCEL__)}function Xp(t,e,n){rr.call(this,t??"canceled",rr.ERR_CANCELED,e,n),this.name="CanceledError"}et.inherits(Xp,rr,{__CANCEL__:!0});function s3e(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new rr("Request failed with status code "+n.status,[rr.ERR_BAD_REQUEST,rr.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const o3e=C1.isStandardBrowserEnv?function(){return{write:function(n,r,i,a,s,c){const l=[];l.push(n+"="+encodeURIComponent(r)),et.isNumber(i)&&l.push("expires="+new Date(i).toGMTString()),et.isString(a)&&l.push("path="+a),et.isString(s)&&l.push("domain="+s),c===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function c3e(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function l3e(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function FZ(t,e){return t&&!c3e(e)?l3e(t,e):e}const u3e=C1.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(a){let s=a;return e&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(s){const c=et.isString(s)?i(s):s;return c.protocol===r.protocol&&c.host===r.host}}():function(){return function(){return!0}}();function f3e(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function d3e(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i=0,a=0,s;return e=e!==void 0?e:1e3,function(l){const d=Date.now(),p=r[a];s||(s=d),n[i]=l,r[i]=d;let m=a,g=0;for(;m!==i;)g+=n[m++],m=m%t;if(i=(i+1)%t,i===a&&(a=(a+1)%t),d-s<e)return;const M=p&&d-p;return M?Math.round(g*1e3/M):void 0}}function rF(t,e){let n=0;const r=d3e(50,250);return i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,c=a-n,l=r(c),d=a<=s;n=a;const p={loaded:a,total:s,progress:s?a/s:void 0,bytes:c,rate:l||void 0,estimated:l&&s&&d?(s-a)/l:void 0,event:i};p[e?"download":"upload"]=!0,t(p)}}const h3e=typeof XMLHttpRequest<"u",p3e=h3e&&function(t){return new Promise(function(n,r){let i=t.data;const a=Js.from(t.headers).normalize(),s=t.responseType;let c;function l(){t.cancelToken&&t.cancelToken.unsubscribe(c),t.signal&&t.signal.removeEventListener("abort",c)}et.isFormData(i)&&(C1.isStandardBrowserEnv||C1.isStandardBrowserWebWorkerEnv?a.setContentType(!1):a.setContentType("multipart/form-data;",!1));let d=new XMLHttpRequest;if(t.auth){const M=t.auth.username||"",C=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";a.set("Authorization","Basic "+btoa(M+":"+C))}const p=FZ(t.baseURL,t.url);d.open(t.method.toUpperCase(),jZ(p,t.params,t.paramsSerializer),!0),d.timeout=t.timeout;function m(){if(!d)return;const M=Js.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),T={data:!s||s==="text"||s==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:M,config:t,request:d};s3e(function(S){n(S),l()},function(S){r(S),l()},T),d=null}if("onloadend"in d?d.onloadend=m:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(m)},d.onabort=function(){d&&(r(new rr("Request aborted",rr.ECONNABORTED,t,d)),d=null)},d.onerror=function(){r(new rr("Network Error",rr.ERR_NETWORK,t,d)),d=null},d.ontimeout=function(){let C=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const T=t.transitional||kZ;t.timeoutErrorMessage&&(C=t.timeoutErrorMessage),r(new rr(C,T.clarifyTimeoutError?rr.ETIMEDOUT:rr.ECONNABORTED,t,d)),d=null},C1.isStandardBrowserEnv){const M=(t.withCredentials||u3e(p))&&t.xsrfCookieName&&o3e.read(t.xsrfCookieName);M&&a.set(t.xsrfHeaderName,M)}i===void 0&&a.setContentType(null),"setRequestHeader"in d&&et.forEach(a.toJSON(),function(C,T){d.setRequestHeader(T,C)}),et.isUndefined(t.withCredentials)||(d.withCredentials=!!t.withCredentials),s&&s!=="json"&&(d.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&d.addEventListener("progress",rF(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",rF(t.onUploadProgress)),(t.cancelToken||t.signal)&&(c=M=>{d&&(r(!M||M.type?new Xp(null,t,d):M),d.abort(),d=null)},t.cancelToken&&t.cancelToken.subscribe(c),t.signal&&(t.signal.aborted?c():t.signal.addEventListener("abort",c)));const g=f3e(p);if(g&&C1.protocols.indexOf(g)===-1){r(new rr("Unsupported protocol "+g+":",rr.ERR_BAD_REQUEST,t));return}d.send(i||null)})},Wm={http:P8e,xhr:p3e};et.forEach(Wm,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const b3e={getAdapter:t=>{t=et.isArray(t)?t:[t];const{length:e}=t;let n,r;for(let i=0;i<e&&(n=t[i],!(r=et.isString(n)?Wm[n.toLowerCase()]:n));i++);if(!r)throw r===!1?new rr(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(et.hasOwnProp(Wm,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!et.isFunction(r))throw new TypeError("adapter is not a function");return r},adapters:Wm};function Jx(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Xp(null,t)}function iF(t){return Jx(t),t.headers=Js.from(t.headers),t.data=Xx.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),b3e.getAdapter(t.adapter||n8.adapter)(t).then(function(r){return Jx(t),r.data=Xx.call(t,t.transformResponse,r),r.headers=Js.from(r.headers),r},function(r){return OZ(r)||(Jx(t),r&&r.response&&(r.response.data=Xx.call(t,t.transformResponse,r.response),r.response.headers=Js.from(r.response.headers))),Promise.reject(r)})}const aF=t=>t instanceof Js?t.toJSON():t;function sh(t,e){e=e||{};const n={};function r(d,p,m){return et.isPlainObject(d)&&et.isPlainObject(p)?et.merge.call({caseless:m},d,p):et.isPlainObject(p)?et.merge({},p):et.isArray(p)?p.slice():p}function i(d,p,m){if(et.isUndefined(p)){if(!et.isUndefined(d))return r(void 0,d,m)}else return r(d,p,m)}function a(d,p){if(!et.isUndefined(p))return r(void 0,p)}function s(d,p){if(et.isUndefined(p)){if(!et.isUndefined(d))return r(void 0,d)}else return r(void 0,p)}function c(d,p,m){if(m in e)return r(d,p);if(m in t)return r(void 0,d)}const l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c,headers:(d,p)=>i(aF(d),aF(p),!0)};return et.forEach(Object.keys(Object.assign({},t,e)),function(p){const m=l[p]||i,g=m(t[p],e[p],p);et.isUndefined(g)&&m!==c||(n[p]=g)}),n}const zZ="1.4.0",ZN={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{ZN[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const sF={};ZN.transitional=function(e,n,r){function i(a,s){return"[Axios v"+zZ+"] Transitional option '"+a+"'"+s+(r?". "+r:"")}return(a,s,c)=>{if(e===!1)throw new rr(i(s," has been removed"+(n?" in "+n:"")),rr.ERR_DEPRECATED);return n&&!sF[s]&&(sF[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(a,s,c):!0}};function m3e(t,e,n){if(typeof t!="object")throw new rr("options must be an object",rr.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;for(;i-- >0;){const a=r[i],s=e[a];if(s){const c=t[a],l=c===void 0||s(c,a,t);if(l!==!0)throw new rr("option "+a+" must be "+l,rr.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new rr("Unknown option "+a,rr.ERR_BAD_OPTION)}}const eT={assertOptions:m3e,validators:ZN},jl=eT.validators;let _6=class{constructor(e){this.defaults=e,this.interceptors={request:new tF,response:new tF}}request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=sh(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&eT.assertOptions(r,{silentJSONParsing:jl.transitional(jl.boolean),forcedJSONParsing:jl.transitional(jl.boolean),clarifyTimeoutError:jl.transitional(jl.boolean)},!1),i!=null&&(et.isFunction(i)?n.paramsSerializer={serialize:i}:eT.assertOptions(i,{encode:jl.function,serialize:jl.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s;s=a&&et.merge(a.common,a[n.method]),s&&et.forEach(["delete","get","head","post","put","patch","common"],C=>{delete a[C]}),n.headers=Js.concat(s,a);const c=[];let l=!0;this.interceptors.request.forEach(function(T){typeof T.runWhen=="function"&&T.runWhen(n)===!1||(l=l&&T.synchronous,c.unshift(T.fulfilled,T.rejected))});const d=[];this.interceptors.response.forEach(function(T){d.push(T.fulfilled,T.rejected)});let p,m=0,g;if(!l){const C=[iF.bind(this),void 0];for(C.unshift.apply(C,c),C.push.apply(C,d),g=C.length,p=Promise.resolve(n);m<g;)p=p.then(C[m++],C[m++]);return p}g=c.length;let M=n;for(m=0;m<g;){const C=c[m++],T=c[m++];try{M=C(M)}catch(D){T.call(this,D);break}}try{p=iF.call(this,M)}catch(C){return Promise.reject(C)}for(m=0,g=d.length;m<g;)p=p.then(d[m++],d[m++]);return p}getUri(e){e=sh(this.defaults,e);const n=FZ(e.baseURL,e.url);return jZ(n,e.params,e.paramsSerializer)}};et.forEach(["delete","get","head","options"],function(e){_6.prototype[e]=function(n,r){return this.request(sh(r||{},{method:e,url:n,data:(r||{}).data}))}});et.forEach(["post","put","patch"],function(e){function n(r){return function(a,s,c){return this.request(sh(c||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:s}))}}_6.prototype[e]=n(),_6.prototype[e+"Form"]=n(!0)});let y3e=class RZ{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(i=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const s=new Promise(c=>{r.subscribe(c),a=c}).then(i);return s.cancel=function(){r.unsubscribe(a)},s},e(function(a,s,c){r.reason||(r.reason=new Xp(a,s,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new RZ(function(i){e=i}),cancel:e}}};function g3e(t){return function(n){return t.apply(null,n)}}function v3e(t){return et.isObject(t)&&t.isAxiosError===!0}const tT={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(tT).forEach(([t,e])=>{tT[e]=t});function PZ(t){const e=new _6(t),n=xZ(_6.prototype.request,e);return et.extend(n,_6.prototype,e,{allOwnKeys:!0}),et.extend(n,e,null,{allOwnKeys:!0}),n.create=function(i){return PZ(sh(t,i))},n}const lr=PZ(n8);lr.Axios=_6;lr.CanceledError=Xp;lr.CancelToken=y3e;lr.isCancel=OZ;lr.VERSION=zZ;lr.toFormData=Iv;lr.AxiosError=rr;lr.Cancel=lr.CanceledError;lr.all=function(e){return Promise.all(e)};lr.spread=g3e;lr.isAxiosError=v3e;lr.mergeConfig=sh;lr.AxiosHeaders=Js;lr.formToJSON=t=>_Z(et.isHTMLForm(t)?new FormData(t):t);lr.HttpStatusCode=tT;lr.default=lr;const{Axios:mWe,AxiosError:yWe,CanceledError:gWe,isCancel:vWe,CancelToken:MWe,VERSION:xWe,all:wWe,Cancel:AWe,isAxiosError:CWe,spread:EWe,toFormData:SWe,AxiosHeaders:TWe,HttpStatusCode:IWe,formToJSON:DWe,mergeConfig:NWe}=lr,Rc=60*1e3,UZ={Mainnet:{api:"https://api.wormholescan.io",circleAPI:mO("Mainnet"),chains:Qx("Mainnet")},Testnet:{api:"https://api.testnet.wormholescan.io",circleAPI:mO("Testnet"),chains:Qx("Testnet")},Devnet:{api:"http://guardian:7071",circleAPI:"",chains:Qx("Devnet")}};function KN(t,e){return Object.fromEntries(Object.entries(UZ[t].chains).filter(([n,r])=>r.platform==e))}function M3e(t,e){let n=UZ[t];return e?XN(n,e):n}function LWe(t,e,n){const r=KN(t,e);return n?XN(r,n):r}function XN(t,e){t||(t={});for(const[n,r]of Object.entries(e))typeof r=="object"&&!Array.isArray(r)?t[n]=XN(t[n],r):t[n]=r;return t}async function r8(t,e,n=Rc,r){const i=Math.floor(n/e);let a=0;return new Promise((s,c)=>{t().then(l=>{if(l!==null){s(l);return}let d=setInterval(async()=>{if(a>=i){clearInterval(d),s(null);return}const p=await t();p!==null?(clearInterval(d),s(p)):r&&console.log(`Retrying ${r}, attempt ${a}/${i} `),a++},e)})})}const x3e=2e3;var oF;(function(t){t.complete="complete",t.pending_confirmations="pending_confirmations"})(oF||(oF={}));const w3e=t=>({message:t.attestation,status:t.status});async function A3e(t,e){var r;const n=`${t}/${e}`;try{const i=await lr.get(n),a=w3e(i==null?void 0:i.data);return a.message==="PENDING"?null:a.message}catch(i){if(!i||typeof i=="object"&&(lr.isAxiosError(i)&&((r=i.response)==null?void 0:r.status)===404||"status"in i&&i.status===404))return null;throw i}}async function C3e(t,e,n){return r8(()=>A3e(t,e),x3e,n,"Circle:GetAttestation")}async function B1(t,e,n){if(!ghe(n))throw new Error("Invalid signer, not SignAndSendSigner or SignOnlySigner");return(await E3e(e,async a=>hZ(n)?n.signAndSend(a):t.sendWait(await n.sign(a)))).map(a=>({chain:t.chain,txid:a}))}async function E3e(t,e){const n=[];let r=[];for await(const i of t)i.parallelizable?r.push(i):(r.length>0&&(n.push(...await e(r)),r=[]),n.push(...await e([i])));return r.length>0&&n.push(...await e(r)),n}var zt;(function(t){t[t.Failed=-1]="Failed",t[t.Created=0]="Created",t[t.SourceInitiated=1]="SourceInitiated",t[t.SourceFinalized=2]="SourceFinalized",t[t.InReview=3]="InReview",t[t.Attested=4]="Attested",t[t.Refunded=5]="Refunded",t[t.DestinationInitiated=6]="DestinationInitiated",t[t.DestinationQueued=7]="DestinationQueued",t[t.DestinationFinalized=8]="DestinationFinalized"})(zt||(zt={}));function Dv(t){return t.state===zt.SourceInitiated}function oh(t){return t.state===zt.SourceFinalized}function cF(t){return t.state===zt.InReview}function Uo(t){return t.state===zt.Attested}function S3e(t){return t.state===zt.Refunded}function HZ(t){return t.state===zt.DestinationInitiated}function ew(t){return t.state===zt.DestinationQueued}function nT(t){return t.state===zt.DestinationFinalized}function tw(t){return t.state<0}class vr{constructor(e,n,r,i){se(this,"wh");se(this,"fromChain");se(this,"toChain");se(this,"_state");se(this,"transfer");se(this,"txids",[]);se(this,"attestations");this._state=zt.Created,this.wh=e,this.transfer=n,this.fromChain=r??e.getChain(n.from.chain),this.toChain=i??e.getChain(n.to.chain)}getTransferState(){return this._state}static async from(e,n,r=Rc,i,a){if(Che(n))return n={...n,...await vr.destinationOverrides(e.getChain(n.from.chain),e.getChain(n.to.chain),n)},new vr(e,n,i,a);let s;if(k6(n))s=await vr.fromWormholeMessageId(e,n,r);else if(fZ(n))s=await vr.fromTransaction(e,n,r,i);else if(cg(n))s=await vr.fromCircleMessage(e,n);else throw new Error("Invalid `from` parameter for CircleTransfer");return s.fromChain=i??e.getChain(s.transfer.from.chain),s.toChain=a??e.getChain(s.transfer.to.chain),await s.fetchAttestation(r),s}static async fromWormholeMessageId(e,n,r){const{chain:i,emitter:a}=n,s=await vr.getTransferVaa(e,n),c=s.payload.mintRecipient,l=Px(e.network,s.payload.targetDomain),{wormholeRelayer:d}=e.config.chains[l].contracts.cctp;let p=!1;if(d){const M=fn.chainAddress(i,d).address.toUniversalAddress();p=s.payloadName==="TransferWithRelay"&&c.equals(M)}const m={from:{chain:n.chain,address:s.payload.caller},to:{chain:l,address:c},amount:s.payload.token.amount,automatic:p},g=new vr(e,m);return g.attestations=[{id:{emitter:a,sequence:s.sequence,chain:i},attestation:s}],g._state=zt.Attested,g}static async fromCircleMessage(e,n){const[r,i]=ah.deserialize(dr.decode(n)),{payload:a}=r,s=a.messageSender,c=a.mintRecipient,l=Px(e.network,r.sourceDomain),d=Px(e.network,r.destinationDomain),p={from:{chain:l,address:s},to:{chain:d,address:c},amount:a.amount,automatic:!1},m=new vr(e,p);return m.attestations=[{id:{hash:i},attestation:{message:r}}],m._state=zt.SourceInitiated,m}static async fromTransaction(e,n,r,i){const{chain:a,txid:s}=n;i=i??e.getChain(a);let c=[];try{c=await i.parseTransaction(s)}catch(d){if(!(d.message.includes("no bridge messages found")||d.message.includes("not found")))throw d}let l;if(c.length>0)l=await vr.fromWormholeMessageId(e,c[0],r);else{const p=await(await i.getCircleBridge()).parseTransactionDetails(s),m={...p,automatic:!1};l=new vr(e,m),l.attestations=[{id:p.id,attestation:{message:p.message}}]}return l._state=zt.SourceInitiated,l.txids=[n],l}async initiateTransfer(e){if(this._state!==zt.Created)throw new Error("Invalid state transition in `start`");return this.txids=await vr.transfer(this.fromChain,this.transfer,e),this._state=zt.SourceInitiated,this.txids.map(({txid:n})=>n)}async _fetchWormholeAttestation(e){let n=this.attestations??[];if(!n||n.length==0)throw new Error("No VAA details available");for(const r in n)n[r].attestation||(n[r].attestation=await vr.getTransferVaa(this.wh,n[r].id,e));return this.attestations=n,n.map(r=>r.id)}async _fetchCircleAttestation(e){var r,i;let n=this.attestations??[];if(!n||n.length==0){if(this.txids.length===0)throw new Error("No circle attestations or transactions to fetch");const a=this.txids[((r=this.txids)==null?void 0:r.length)-1],l=await(await this.wh.getChain(this.transfer.from.chain).getCircleBridge()).parseTransactionDetails(a.txid);n=[{id:l.id,attestation:{message:l.message}}]}for(const a in n){const s=n[a];if((i=s.attestation)!=null&&i.attestation)continue;const c=await this.wh.getCircleAttestation(s.id.hash,e);if(c===null)throw new Error("No attestation available after timeout exhausted");n[a].attestation.attestation=c}return this.attestations=n,n.map(a=>a.id)}async fetchAttestation(e){if(this._state<zt.SourceInitiated)throw new Error("Invalid state transition in `fetchAttestation`");const n=this.transfer.automatic?(await Promise.all([this._fetchWormholeAttestation(e),this._fetchCircleAttestation(e)])).flat():await this._fetchCircleAttestation(e);if(this._state=zt.Attested,this.attestations&&this.attestations.length>0)for(const r of this.attestations){const{attestation:i}=r;if(!ah.isCircleAttestation(i))continue;await vr.isTransferComplete(this.toChain,i)&&(this._state=zt.DestinationFinalized)}return n}async completeTransfer(e){var m;if(this._state<zt.Attested)throw new Error("Invalid state transition in `finish`");if(this.transfer.automatic)throw this.attestations?this.attestations.find(M=>k6(M.id))?new Error("No method to redeem auto circle bridge tx (yet)"):new Error("No VAA found"):new Error("No VAA details available");if(!this.attestations)throw new Error("No Circle Attestations found");const n=this.attestations.filter(g=>cg(g.id));if(n.length>1)throw new Error(`Expected a single circle attestation, found ${n.length}`);const{id:r,attestation:i}=n[0];if(!i)throw new Error(`No Circle Attestation for ${r.hash}`);const{message:a,attestation:s}=i;if(!s)throw new Error(`No Circle Attestation for ${r.hash}`);const c=await this.toChain.getCircleBridge(),l=fn.parseAddress(e.chain(),e.address()),d=c.redeem(l,a,s),p=await B1(this.toChain,d,e);return(m=this.txids)==null||m.push(...p),p.map(({txid:g})=>g)}}(function(t){async function e(d,p,m){let g;return p.automatic?g=(await d.getAutomaticCircleBridge()).transfer(p.from.address,{chain:p.to.chain,address:p.to.address},p.amount,p.nativeGas):g=(await d.getCircleBridge()).transfer(p.from.address,{chain:p.to.chain,address:p.to.address},p.amount),await B1(d,g,m)}t.transfer=e;async function*n(d,p,m=Rc,g,M){var D,S;const C=Date.now(),T=(I,N)=>Math.max(N-(Date.now()-I),0);if(g=g??d.getChain(p.from),M=M??d.getChain(p.to),Dv(p)){if(p.originTxs.length===0)throw"Invalid state transition: no originating transactions";const I=p.originTxs[p.originTxs.length-1],N=await t.getTransferMessage(g,I.txid);p={...p,attestation:{id:N.id,attestation:{message:N.message}},state:zt.SourceFinalized},yield p}if(oh(p)){if(!p.attestation)throw"Invalid state transition: no attestation id";if(k6(p.attestation.id)){let I=p.attestation.attestation?p.attestation.attestation:void 0;I||(I=await t.getTransferVaa(d,p.attestation.id,T(C,m)),p={...p,attestation:{id:p.attestation.id,attestation:I},state:zt.Attested},yield p)}else if(cg(p.attestation.id)){const I=await d.getCircleAttestation(p.attestation.id.hash,m),N=p.originTxs[p.originTxs.length-1],k=await(await g.getCircleBridge()).parseTransactionDetails(N.txid);I&&(p={...p,attestation:{id:p.attestation.id,attestation:{attestation:I,message:k.message}},state:zt.Attested},yield p)}}if(Uo(p)||oh(p)){if(!p.attestation)throw"Invalid state transition";if(k6(p.attestation.id)){const I=await d.getTransactionStatus(p.attestation.id,T(C,m));if(I&&((S=(D=I.globalTx)==null?void 0:D.destinationTx)!=null&&S.txHash)){const{chainId:N,txHash:B}=I.globalTx.destinationTx;p={...p,destinationTxs:[{chain:Qu(N),txid:B}],state:zt.DestinationInitiated},yield p}}}(Uo(p)||HZ(p))&&(await t.isTransferComplete(M,p.attestation.attestation)&&(p={...p,state:zt.DestinationFinalized,destinationTxs:[]}),yield p)}t.track=n;async function r(d,p,m){const g={...m};if(m.to.chain==="Solana"&&!g.automatic){const M=fn.parseAddress("Solana",la.get(p.network,p.chain));g.to=await p.getTokenAccount(g.to.address,M)}return g}t.destinationOverrides=r;async function i(d,p,m){const g=la.get(p.network,p.chain);if(!g)throw"Invalid transfer, no USDC contract on destination";const M=la.get(d.network,d.chain);if(!M)throw"Invalid transfer, no USDC contract on source";const C=fn.chainAddress(p.chain,g),T=fn.chainAddress(d.chain,M),D=(d.chain==="Polygon"?2e3*200:bv(d.chain))+ON,S=m.automatic?eh(0,5,0):eh(24,0,0);if(!m.automatic)return{sourceToken:{token:T,amount:m.amount},destinationToken:{token:C,amount:m.amount},eta:D,expires:S};let I=m.amount;const N=m.nativeGas?m.nativeGas:0n;I-=N;const k=await(await d.getAutomaticCircleBridge()).getRelayerFee(p.chain);I-=k;let O=0n;return m.nativeGas&&(O=await(await p.getAutomaticCircleBridge()).nativeTokenAmount(N)),{sourceToken:{token:T,amount:m.amount},destinationToken:{token:C,amount:I},relayFee:{token:T,amount:k},destinationNativeGas:O,eta:D,expires:S}}t.quoteTransfer=i;async function a(d,p){if(!ah.isCircleAttestation(p))throw new Error("Must check for completion with circle message");return await(await d.getCircleBridge()).isTransferCompleted(p.message)}t.isTransferComplete=a;async function s(d,p,m){const g=await d.getVaa(p,"AutomaticCircleBridge:TransferWithRelay",m);if(!g)throw new Error("No VAA available after timeout exhausted");return g}t.getTransferVaa=s;async function c(d,p){return await(await d.getCircleBridge()).parseTransactionDetails(p)}t.getTransferMessage=c;function l(d){var I,N;const{from:p,to:m}=d.transfer;let g={from:p.chain,to:m.chain,state:zt.Created};const M=d.txids.filter(B=>B.chain===d.transfer.from.chain);M.length>0&&(g={...g,state:zt.SourceInitiated,originTxs:M});const C=((I=d.attestations)==null?void 0:I.filter(B=>k6(B.id)))??[],T=((N=d.attestations)==null?void 0:N.filter(B=>cg(B.id)))??[],D=T.length>0?T[0]:C.length>0?C[0]:void 0;D&&D.id&&(g={...g,state:zt.SourceFinalized,attestation:D},D.attestation&&(g={...g,state:zt.Attested,attestation:{id:D.id,attestation:D.attestation}}));const S=d.txids.filter(B=>B.chain===d.transfer.to.chain);return S.length>0&&(g={...g,state:zt.DestinationInitiated,destinationTxs:S}),g}t.getReceipt=l})(vr||(vr={}));const Nv=2e3;async function WZ(t,e){var l;const{chain:n,emitter:r,sequence:i}=e,a=Kn(n),s=mq("0x",r.toString()),c=`${t}/v1/signed_vaa/${a}/${s}/${i}`;try{const{data:{vaaBytes:d}}=await lr.get(c);return Vp.decode(d)}catch(d){if(!d||typeof d=="object"&&(lr.isAxiosError(d)&&((l=d.response)==null?void 0:l.status)===404||"status"in d&&d.status===404))return null;throw d}}async function T3e(t,e,n){return await r8(()=>WZ(t,e),Nv,n,"Wormholescan:GetVaaBytes")}async function I3e(t,e,n){const r=await WZ(t,e);return r?O4(n,r):null}async function D3e(t,e,n,r){return await r8(()=>I3e(t,e,n),Nv,r,"Wormholescan:GetVaaBytes")}async function N3e(t,e){var l;const{chain:n,emitter:r,sequence:i}=e,a=Kn(n),s=r.toUniversalAddress().toString(),c=`${t}/api/v1/transactions/${a}/${s}/${i}`;try{return(await lr.get(c)).data}catch(d){if(!d||typeof d=="object"&&(lr.isAxiosError(d)&&((l=d.response)==null?void 0:l.status)===404||"status"in d&&d.status===404))return null;throw d}}async function L3e(t,e,n){return await r8(()=>N3e(t,e),Nv,n,"Wormholescan:GetTransactionStatus")}async function B3e(t,e){var r;const n=`${t}/api/v1/vaas?txHash=${e}`;try{const i=await lr.get(n);if(i.data.data.length>0)return i.data.data[0]}catch(i){if(!i||typeof i=="object"&&(lr.isAxiosError(i)&&((r=i.response)==null?void 0:r.status)===404||"status"in i&&i.status===404))return null;throw i}return null}async function lF(t,e,n,r){const a=await r8(()=>B3e(t,e),Nv,r,"Wormholescan:GetVaaByTxHash");return a?O4(n,Vp.decode(a.vaa)):null}async function j3e(t,e,n=50,r=0){var a;const i=`${t}/api/v1/transactions?address=${e}&pageSize=${n}&page=${r}`;try{const s=await lr.get(i);if(s.data.transactions.length>0)return s.data.transactions}catch(s){if(!s||typeof s=="object"&&(lr.isAxiosError(s)&&((a=s.response)==null?void 0:a.status)===404||"status"in s&&s.status===404))return null;throw s}return null}async function k3e(t){const e=`${t}/v1/governor/token_list`;try{const n=await lr.get(e);if(n.data&&n.data.entries.length>0)return n.data.entries.reduce((r,i)=>{const a=Qu(i.originChainId);return r[a]=r[a]||{},r[a][i.originAddress]=i.price,r},{})}catch{}return null}async function _3e(t){const e=`${t}/v1/governor/available_notional_by_chain`;try{const n=await lr.get(e);if(n.data&&n.data.entries.length>0)return n.data.entries.reduce((r,i)=>{const a=i.bigTransactionSize==="0"?void 0:Fo(B6(i.bigTransactionSize,2));return r[Qu(i.chainId)]={available:Fo(B6(i.remainingAvailableNotional,2)),limit:Fo(B6(i.notionalLimit,2)),maxSize:a},r},{})}catch{}return null}async function O3e(t,e){const{chain:n,emitter:r,sequence:i}=e,a=Kn(n),s=r.toUniversalAddress().toString(),c=`${t}/v1/governor/is_vaa_enqueued/${a}/${s}/${i}`;return(await lr.get(c)).data.isEnqueued}class Vn{constructor(e,n,r,i){se(this,"wh");se(this,"fromChain");se(this,"toChain");se(this,"_state");se(this,"transfer");se(this,"txids",[]);se(this,"attestations");this._state=zt.Created,this.wh=e,this.transfer=n,this.fromChain=r??e.getChain(n.from.chain),this.toChain=i??e.getChain(n.to.chain)}getTransferState(){return this._state}static async from(e,n,r=6e3,i,a){if(jhe(n))return i=i??e.getChain(n.from.chain),a=a??e.getChain(n.to.chain),Vn.validateTransferDetails(e,n,i,a),n={...n,...await Vn.destinationOverrides(i,a,n)},new Vn(e,n,i,a);let s;if(k6(n))s=await Vn.fromIdentifier(e,n,r);else if(fZ(n))s=await Vn.fromTransaction(e,n,r,i);else throw new Error("Invalid `from` parameter for TokenTransfer");return s.fromChain=i??e.getChain(s.transfer.from.chain),s.toChain=a??e.getChain(s.transfer.to.chain),await s.fetchAttestation(r),s}static async fromIdentifier(e,n,r){const i=await Vn.getTransferVaa(e,n,r);if(!i)throw new Error("VAA not found");const a=i.protocolName==="AutomaticTokenBridge";let s={chain:i.emitterChain,address:i.emitterAddress},{token:c,to:l}=i.payload,d;if(c.chain===s.chain)d=await e.getTokenNativeAddress(s.chain,c.chain,c.address);else{const S=await(await(await e.getChain(s.chain)).getTokenBridge()).getWrappedAsset(c);d=Gi(s.chain,S.toString())}const p=await e.getDecimals(s.chain,d),m=_u(Sr(c.amount,Math.min(p,Vn.MAX_DECIMALS)),p);let g=0n;a&&(g=i.payload.payload.toNativeTokenAmount,s={chain:i.emitterChain,address:i.payload.from},l={chain:i.payload.to.chain,address:i.payload.payload.targetRecipient});const M={token:c,amount:gn(m),from:s,to:l,automatic:a,nativeGas:g},C=new Vn(e,M);return C.attestations=[{id:n,attestation:i}],C._state=zt.Attested,C}static async fromTransaction(e,n,r,i){i=i??e.getChain(n.chain);const a=await Vn.getTransferMessage(i,n.txid,r),s=await Vn.fromIdentifier(e,a,r);return s.txids=[n],s}async initiateTransfer(e){if(this._state!==zt.Created)throw new Error("Invalid state transition in `initiateTransfer`");return this.txids=await Vn.transfer(this.fromChain,this.transfer,e),this._state=zt.SourceInitiated,this.txids.map(({txid:n})=>n)}async fetchAttestation(e){if(this._state<zt.SourceInitiated||this._state>zt.Attested)throw new Error("Invalid state transition in `fetchAttestation`, expected at least `SourceInitiated`");if(!this.attestations||this.attestations.length===0){if(this.txids.length===0)throw new Error("No VAAs set and txids available to look them up");const n=this.txids[this.txids.length-1],r=await Vn.getTransferMessage(this.fromChain,n.txid,e);this.attestations=[{id:r}]}for(const n in this.attestations){if(this.attestations[n].attestation)continue;const r=await Vn.getTransferVaa(this.wh,this.attestations[n].id,e);if(!r)throw new Error("VAA not found");this.attestations[n].attestation=r}if(this._state=zt.Attested,this.attestations.length>0){const{attestation:n}=this.attestations[0];await Vn.isTransferComplete(this.toChain,n)&&(this._state=zt.DestinationFinalized)}return this.attestations.map(n=>n.id)}async completeTransfer(e){if(this._state<zt.Attested)throw new Error("Invalid state transition, must be attested prior to calling `completeTransfer`.");if(!this.attestations)throw new Error("No VAA details available");const{attestation:n}=this.attestations[0];if(!n)throw new Error(`No VAA found for ${this.attestations[0].id.sequence}`);const r=await Vn.redeem(this.toChain,n,e);return this.txids.push(...r),this._state=zt.DestinationInitiated,r.map(({txid:i})=>i)}}(function(t){t.MAX_DECIMALS=8;async function e(M,C,T){const D=Gi(T.chain(),T.address()),S=Zp(C.token)?C.token.address:C.token;let I;return C.automatic?I=(await M.getAutomaticTokenBridge()).transfer(D,C.to,S,C.amount,C.nativeGas):I=(await M.getTokenBridge()).transfer(D,C.to,S,C.amount,C.payload),B1(M,I,T)}t.transfer=e;async function n(M,C,T){const D=Gi(T.chain(),T.address()),S=C.protocolName==="AutomaticTokenBridge"?(await M.getAutomaticTokenBridge()).redeem(D,C):(await M.getTokenBridge()).redeem(D,C);return B1(M,S,T)}t.redeem=n;async function*r(M,C,T=Rc,D,S){var B,k;const I=Date.now(),N=(O,z)=>Math.max(z-(Date.now()-O),0);if(D=D??M.getChain(C.from),Dv(C)){if(C.originTxs.length===0)throw"Origin transactions required to fetch message id";const{txid:O}=C.originTxs[C.originTxs.length-1],z=await t.getTransferMessage(D,O,N(I,T));C={...C,state:zt.SourceFinalized,attestation:{id:z}},yield C}if(oh(C)||cF(C)){if(!C.attestation.id)throw"Attestation id required to fetch attestation";const{id:O}=C.attestation,z=await t.getTransferVaa(M,O,N(I,T));throw z?(C={...C,attestation:{id:O,attestation:z},state:zt.Attested},yield C):await t.isTransferEnqueued(M,O)&&(C={...C,state:zt.InReview},yield C),new Error("Attestation not found")}if(Uo(C)||oh(C)||cF(C)){if(!C.attestation.id)throw"Attestation id required to fetch redeem tx";const{id:O}=C.attestation,z=await M.getTransactionStatus(O,N(I,T));if(z&&((k=(B=z.globalTx)==null?void 0:B.destinationTx)!=null&&k.txHash)){const{chainId:_,txHash:F}=z.globalTx.destinationTx;C={...C,destinationTxs:[{chain:Qu(_),txid:F}],state:zt.DestinationInitiated}}yield C}if(Uo(C)||HZ(C)){if(!C.attestation.attestation)throw"Signed Attestation required to check for redeem";if(C.attestation.attestation.payloadName==="AttestMeta")throw new Error("Unable to track an AttestMeta receipt");await t.isTransferComplete(S??M.getChain(C.attestation.attestation.payload.to.chain),C.attestation.attestation)&&(C={...C,state:zt.DestinationFinalized}),yield C}yield C}t.track=r;function i(M){const{transfer:C}=M,T=C.from.chain,D=C.to.chain;let S={from:T,to:D,state:zt.Created};const I=M.txids.filter(O=>O.chain===C.from.chain);I.length>0&&(S={...S,state:zt.SourceInitiated,originTxs:I});const N=M.attestations&&M.attestations.length>0?M.attestations[0]:void 0,B=N&&N.id?{id:N.id,attestation:N.attestation}:void 0;B&&B.id&&(S={...S,state:zt.SourceFinalized,attestation:{id:B.id}},B.attestation&&(S={...S,state:zt.Attested,attestation:{id:B.id,attestation:B.attestation}}));const k=M.txids.filter(O=>O.chain===C.to.chain);return k.length>0&&(S={...S,state:zt.DestinationFinalized,destinationTxs:k}),S}t.getReceipt=i;async function a(M,C,T){let D;const S=await M.getTokenBridge();if(Fn(T.address)){const B=await S.getWrappedNative();D={chain:T.chain,address:await S.getTokenUniversalAddress(B)}}else try{let B;jr.instanceof(T.address)?B=await S.getWrappedAsset(T):B=T.address,D=await S.getOriginalAsset(B)}catch(B){if(!B.message.includes("not a wrapped asset"))throw B;let k;jr.instanceof(T.address)?k=await S.getTokenNativeAddress(M.chain,T.address):k=T.address,D={chain:T.chain,address:await S.getTokenUniversalAddress(k)}}const I=await C.getTokenBridge();if(D.chain===C.chain){const B=await I.getTokenNativeAddress(D.chain,D.address),k=await I.getWrappedNative();return Xr({chain:C.chain,address:k})===Xr({chain:C.chain,address:B})?{chain:C.chain,address:"native"}:{chain:C.chain,address:B}}const N=await I.getWrappedAsset(D);return{chain:C.chain,address:N}}t.lookupDestinationToken=a;async function s(M,C){return C.protocolName==="AutomaticTokenBridge"&&(C=O4("TokenBridge:TransferWithPayload",_4(C))),(await M.getTokenBridge()).isTransferCompleted(C)}t.isTransferComplete=s;async function c(M,C,T){const D=await fn.parseMessageFromTx(M,C,T);if(D.length!==1)throw new Error("Expected a single Wormhole Message, got: "+D.length);return D[0]}t.getTransferMessage=c;async function l(M,C,T){const D=await M.getVaa(C,ZS.getTransferDiscriminator(),T);if(!D)return null;if(D.payloadName==="TransferWithPayload"){const{chain:S,address:I}=D.payload.to,{tokenBridgeRelayer:N}=M.config.chains[S].contracts,B=N?rd(S,N):null;if(B&&I.equals(B))return O4("AutomaticTokenBridge:TransferWithRelay",_4(D))}return D}t.getTransferVaa=l;async function d(M,C){return await M.getIsVaaEnqueued(C)}t.isTransferEnqueued=d;function p(M,C,T,D){if(C.amount===0n)throw new Error("Amount cannot be 0");if(C.from.chain===C.to.chain)throw new Error("Cannot transfer to the same chain");if(T=T??M.getChain(C.from.chain),D=D??M.getChain(C.to.chain),C.automatic){if(C.payload)throw new Error("Payload with automatic delivery is not supported");if(!T.supportsAutomaticTokenBridge())throw new Error(`Automatic Token Bridge not supported on ${C.from.chain}`);if(!D.supportsAutomaticTokenBridge())throw new Error(`Automatic Token Bridge not supported on ${C.to.chain}`);const S=C.nativeGas??0n;if(S>C.amount)throw new Error(`Native gas amount > amount (${S} > ${C.amount})`)}else{if(C.nativeGas)throw new Error("Gas Dropoff is only supported for automatic transfers");if(!T.supportsTokenBridge())throw new Error(`Token Bridge not supported on ${C.from.chain}`);if(!D.supportsTokenBridge())throw new Error(`Token Bridge not supported on ${C.to.chain}`)}}t.validateTransferDetails=p;async function m(M,C,T,D){const S=await C.getTokenBridge();let I;if(Fn(D.token.address))I=await S.getWrappedNative();else if(jr.instanceof(D.token.address))try{I=await S.getWrappedAsset(D.token)}catch(A){if(!A.message.includes("not a wrapped asset"))throw A;I=await S.getTokenNativeAddress(C.chain,D.token.address)}else I=D.token.address;fn.tokenId(C.chain,I.toString());const N=await C.getDecimals(I),B=Sr(D.amount,N),k=ca(B,t.MAX_DECIMALS),[O,z]=await Promise.all([k3e(M.config.api),_3e(M.config.api)]),_=[];if(z!==null&&C.chain in z&&O!==null){let A;if(Fn(D.token.address))A={chain:C.chain,address:await S.getTokenUniversalAddress(I)};else try{A=await S.getOriginalAsset(D.token.address)}catch(j){if(!j.message.includes("not a wrapped asset"))throw j;A={chain:C.chain,address:await S.getTokenUniversalAddress(I)}}if(A.chain in O&&A.address.toString()in O[A.chain]){const j=z[C.chain],$=O[A.chain][A.address.toString()]*Fo(k);j.maxSize&&$>j.maxSize&&_.push({type:"GovernorLimitWarning",reason:"ExceedsLargeTransferLimit"}),$>j.available&&_.push({type:"GovernorLimitWarning",reason:"ExceedsRemainingNotional"})}}const F=await t.lookupDestinationToken(C,T,D.token),R=await T.getDecimals(F.address),w=_u(k,R),o=bv(C.chain)+ON;if(!D.automatic)return{sourceToken:{token:D.token,amount:gn(k)},destinationToken:{token:F,amount:gn(w)},warnings:_.length>0?_:void 0,eta:o,expires:eh(24,0,0)};const h=await(await C.getAutomaticTokenBridge()).getRelayerFee(T.chain,I),b=_u(ca(Sr(h,N),t.MAX_DECIMALS),R),y=D.nativeGas??0n,x=gn(_u(ca(Sr(y,N),t.MAX_DECIMALS),R)),E=890880n;let v=0n;if(D.nativeGas){const A=await T.getAutomaticTokenBridge(),[j,P]=await Promise.all([A.maxSwapAmount(F.address),A.nativeTokenAmount(F.address,x)]);if(x>j)throw new Error(`Native gas amount exceeds maximum swap amount: ${cO(x,R)}>${cO(j,R)}`);if(T.chain==="Solana"&&P<E)throw new Error(`Native gas amount must be at least ${E} lamports`);v=P}const f=gn(w)-x-gn(b);if(F.chain==="Solana"){const A=await T.getNativeWrappedTokenId();if((Fn(F.address)||Xi(F,A))&&f<E)throw new Error(`Destination amount must be at least ${E} lamports`)}return{sourceToken:{token:D.token,amount:gn(k)},destinationToken:{token:F,amount:f},relayFee:{token:F,amount:gn(b)},destinationNativeGas:v,warnings:_.length>0?_:void 0,eta:o,expires:eh(0,5,0)}}t.quoteTransfer=m;async function g(M,C,T){const D={...T};if(T.to.chain==="Solana"&&!D.automatic){const S=await t.lookupDestinationToken(M,C,D.token);if(Fn(S.address)){const I=await C.getNativeWrappedTokenId();D.to=await C.getTokenAccount(D.to.address,I.address)}else D.to=await C.getTokenAccount(D.to.address,S.address)}if(D.to.chain==="Sei"){if(D.to.chain==="Sei"&&D.payload)throw new Error("Arbitrary payloads unsupported for Sei");D.payload=Tr.encode(JSON.stringify({basic_recipient:{recipient:Vp.encode(D.to.address.toString())}}));const S=C.config.contracts.translator;if(S===void 0||S==="")throw new Error("Unexpected empty translator address");D.to=fn.chainAddress(D.to.chain,S)}return D}t.destinationOverrides=g})(Vn||(Vn={}));function F3e(t){if(t.length===0)return[];const{chain:e}=t[0];if(!t.every(n=>n.chain===e))throw new Error("Not every chain is equal");return Array.from(new Set(t.map(n=>Xr(n)))).map(n=>fn.tokenId(e,n))}async function uF(t,e,n){const r=Xr(e),i=t.config.tokenMap?Zh.byAddress(t.config.tokenMap,r):void 0,a=i?i.symbol:void 0,s=Fn(e.address)?await t.getNativeWrappedTokenId():void 0;return n=n??await t.getDecimals(e.address),{id:e,decimals:n,wrapped:s,symbol:a}}class z3e{constructor(e,n){se(this,"wh");se(this,"routeConstructors");se(this,"inputTokenList");this.wh=e,this.routeConstructors=n}async supportedDestinationTokens(e,n,r){const[,i]=Pm(n.network,n.chain,e),a=await Promise.all(this.routeConstructors.map(async s=>{if(!s.supportedNetworks().includes(n.network))return[];const l=s.supportedChains(n.network);if(!l.includes(n.chain)||!l.includes(r.chain))return[];try{return await s.supportedDestinationTokens(i,n,r)}catch{return[]}}));return F3e(a.flat())}async findRoutes(e){return(await Promise.all(this.routeConstructors.map(async r=>{try{const i=r.supportedNetworks().includes(this.wh.network)&&r.supportedChains(this.wh.network).includes(e.toChain.chain)&&r.supportedChains(this.wh.network).includes(e.fromChain.chain),a=Xr(Fn(e.destination.id.address)?e.destination.wrapped:e.destination.id),s=(await r.supportedDestinationTokens(e.source.id,e.fromChain,e.toChain)).filter(c=>Xr(c)===a).length>0;return i&&s}catch{return!1}})).then(r=>this.routeConstructors.filter((i,a)=>r[a]))).map(r=>new r(this.wh))}}class fn{constructor(e,n,r){se(this,"_network");se(this,"_platforms");se(this,"_chains");se(this,"config");this._network=e,this.config=M3e(e,r),this._chains=new Map,this._platforms=new Map;for(const i of n)this._platforms.set(i._platform,new i(e,this.config.chains))}get network(){return this._network}async circleTransfer(e,n,r,i,a,s){if(i&&a)throw new Error("Payload with automatic delivery is not supported");if(!kS(this.network,n.chain)||!kS(this.network,r.chain)||!gO(this.network,n.chain)||!gO(this.network,r.chain))throw new Error(`Network and chain not supported: ${this.network} ${n.chain} `);if(i){const d=await(await this.getChain(n.chain).getAutomaticCircleBridge()).getRelayerFee(r.chain)+(s||0n);if(e<d)throw new Error(`Amount must be > ${d} (relayerFee + nativeGas)`)}return await vr.from(this,{amount:e,from:n,to:r,automatic:i,payload:a,nativeGas:s})}async tokenTransfer(e,n,r,i,a,s,c){return await Vn.from(this,{token:e,amount:n,from:r,to:i,automatic:a,payload:s,nativeGas:c})}resolver(e){return new z3e(this,e)}getContracts(e){var n;return(n=this.config.chains[e])==null?void 0:n.contracts}getPlatform(e){const n=this._platforms.get(e);if(!n)throw new Error(`Not able to retrieve platform ${e}. Did it get registered in the constructor?`);return n}getChain(e){const n=Yi(e);return this._chains.has(e)||this._chains.set(e,this.getPlatform(n).getChain(e)),this._chains.get(e)}async getWrappedAsset(e,n){const i=await this.getChain(e).getTokenBridge();return{chain:e,address:await i.getWrappedAsset(n)}}async getOriginalAsset(e){return await(await this.getChain(e.chain).getTokenBridge()).getOriginalAsset(e.address)}async getTokenUniversalAddress(e,n){return await(await this.getChain(e).getTokenBridge()).getTokenUniversalAddress(n)}async getTokenNativeAddress(e,n,r){return await(await this.getChain(e).getTokenBridge()).getTokenNativeAddress(n,r)}async getDecimals(e,n){return await this.getChain(e).getDecimals(n)}async getBalance(e,n,r){return this.getChain(e).getBalance(r,n)}async getTokenAccount(e,n){return this.getChain(e.chain).getTokenAccount(e.address,n.address)}async getVaaBytes(e,n=Rc){return await T3e(this.config.api,e,n)}async getVaa(e,n,r=Rc){return typeof e=="string"?await lF(this.config.api,e,n,r):await D3e(this.config.api,e,n,r)}async getIsVaaEnqueued(e){return await O3e(this.config.api,e)}async getCircleAttestation(e,n=Rc){return C3e(this.config.circleAPI,e,n)}async getTransactionStatus(e,n=Rc){let r;if(typeof e=="string"){const i=await lF(this.config.api,e,"Uint8Array",n);if(!i)return null;r={emitter:i.emitterAddress,chain:i.emitterChain,sequence:i.sequence}}else r=e;return await L3e(this.config.api,r,n)}async getTransactionsForAddress(e,n=50,r=0){return j3e(this.config.api,e,n,r)}static parseAddress(e,n){return Gi(e,n)}static canonicalAddress(e){return Xr(e)}static chainAddress(e,n){return{chain:e,address:fn.parseAddress(e,n)}}static tokenId(e,n){return Fn(n)?VN(e):this.chainAddress(e,n)}static async parseMessageFromTx(e,n,r=Rc){const a=await r8(async()=>{try{const s=await e.parseTransaction(n);return s.length===0?null:s}catch(s){return console.error(s),null}},e.config.blockTime,r,"WormholeCore:ParseMessageFromTransaction");if(!a)throw new Error(`No WormholeMessageId found for ${n}`);return a}}class YZ{constructor(e){se(this,"wh");this.wh=e}transferUrl(e){return`https://wormholescan.io/#/tx/${e}?network=${this.wh.network}`}}class Lv extends YZ{}se(Lv,"IS_AUTOMATIC",!0);class z4 extends YZ{}se(z4,"NATIVE_GAS_DROPOFF_SUPPORTED",!1),se(z4,"IS_AUTOMATIC",!1);function rT(t){return t.complete!==void 0}function iT(t){return t.finalize!==void 0}class JN{constructor(e,n,r,i,a){se(this,"source");se(this,"destination");se(this,"fromChain");se(this,"toChain");se(this,"recipient");this.fromChain=e,this.toChain=n,this.source=r,this.destination=i,this.recipient=a}parseAmount(e){return B6(e,this.source.decimals)}amountFromBaseUnits(e){return Sr(e,this.source.decimals)}async displayQuote(e,n,r){let i={success:!0,sourceToken:{token:e.sourceToken.token,amount:Sr(e.sourceToken.amount,this.source.decimals)},destinationToken:{token:e.destinationToken.token,amount:Sr(e.destinationToken.amount,this.destination.decimals)},params:n};if(e.relayFee){const s=await(e.relayFee.token.chain===this.fromChain.chain?this.fromChain:this.toChain).getDecimals(e.relayFee.token.address);i.relayFee={token:e.relayFee.token,amount:Sr(e.relayFee.amount,s)}}if(e.destinationNativeGas){const a=await this.toChain.getDecimals("native");i.destinationNativeGas=Sr(e.destinationNativeGas,a)}return e.warnings&&e.warnings.length>0&&(i.warnings=[...e.warnings]),i.eta=e.eta,i.expires=e.expires,r&&(i.details=r),i}static async create(e,n,r,i){r=r??e.getChain(n.source.chain),i=i??e.getChain(n.destination.chain);const a=await uF(r,n.source,n.sourceDecimals),s=await uF(i,n.destination,n.destinationDecimals);return new JN(r,i,a,s,n.recipient)}}class GZ extends Error{constructor(n){super(`Minimum transfer amount is ${y0(n)}`);se(this,"min");this.min=n}minAmount(){return this.min}}class $Z extends Error{constructor(e){super(e)}}class aT extends Lv{static supportedNetworks(){return["Mainnet","Testnet"]}static supportedChains(e){return wO.has(e)?wO.get(e):[]}static async supportedDestinationTokens(e,n,r){try{if(!Fn(e)&&!await(await n.getAutomaticTokenBridge()).isRegisteredToken(e.address))return[];const i=await Vn.lookupDestinationToken(n,r,e);return await(await r.getAutomaticTokenBridge()).isRegisteredToken(i.address)?[i]:[]}catch{return[]}}getDefaultOptions(){return{nativeGas:0}}async validate(e,n){try{const r=n.options??this.getDefaultOptions();if(r.nativeGas&&(r.nativeGas>1||r.nativeGas<0))throw new Error("Native gas must be between 0.0 and 1.0 (0% and 100%)");const{destination:i}=e;Fn(i.id.address)&&r.nativeGas===0&&(r.nativeGas=0);const a={...n,options:r};return{valid:!0,params:{...a,normalizedParams:await this.normalizeTransferParams(e,a)}}}catch(r){return{valid:!1,params:n,error:r}}}async normalizeTransferParams(e,n){const r=e.parseAmount(n.amount),i=Fn(e.source.id.address)?await e.fromChain.getNativeWrappedTokenId():e.source.id,s=await(await e.fromChain.getAutomaticTokenBridge()).getRelayerFee(e.toChain.chain,i.address),c=s*105n/100n;if(gn(r)<c)throw new GZ(Sr(c,r.decimals));const l=gn(r)-s;let d=Sr(0n,e.source.decimals);if(n.options&&n.options.nativeGas>0){let m=await(await e.toChain.getAutomaticTokenBridge()).maxSwapAmount(e.destination.id.address);const g=ca(Sr(l,r.decimals),Vn.MAX_DECIMALS),M=await e.toChain.getDecimals(e.destination.id.address),C=gn(_u(g,M));C<m&&(m=C);const T=1e4,D=BigInt(Math.floor(n.options.nativeGas*T)),S=m*D/BigInt(T),I=Sr(S,e.destination.decimals);d=_u(ca(I,Vn.MAX_DECIMALS),e.source.decimals),gn(d)>l&&(d=Sr(l,e.source.decimals))}return{fee:Sr(s,e.source.decimals),amount:r,nativeGasAmount:d}}async quote(e,n){const r=await e.fromChain.getAutomaticTokenBridge();if(Zp(e.source.id)&&!await r.isRegisteredToken(e.source.id.address))return{success:!1,error:new Error("Source token is not registered")};try{let i=await Vn.quoteTransfer(this.wh,e.fromChain,e.toChain,{automatic:!0,amount:gn(n.normalizedParams.amount),token:e.source.id,nativeGas:gn(n.normalizedParams.nativeGasAmount)});return e.displayQuote(i,n)}catch(i){return{success:!1,error:i}}}async initiate(e,n,r,i){const{params:a}=r,s=this.toTransferDetails(e,a,fn.chainAddress(n.chain(),n.address()),i),c=await Vn.transfer(e.fromChain,s,n);return{from:s.from.chain,to:s.to.chain,state:zt.SourceInitiated,originTxs:c}}async*track(e,n){try{yield*Vn.track(this.wh,e,n)}catch(r){throw r}}toTransferDetails(e,n,r,i){return{from:r,to:i,automatic:!0,amount:gn(n.normalizedParams.amount),token:e.source.id,nativeGas:gn(n.normalizedParams.nativeGasAmount)}}}se(aT,"NATIVE_GAS_DROPOFF_SUPPORTED",!0),se(aT,"meta",{name:"AutomaticTokenBridge"});class VZ extends z4{static supportedNetworks(){return["Mainnet","Testnet"]}static supportedChains(e){return Dq(e)}static async supportedDestinationTokens(e,n,r){try{return[await Vn.lookupDestinationToken(n,r,e)]}catch{return[]}}getDefaultOptions(){return{payload:void 0}}async validate(e,n){const r=B6(n.amount,e.source.decimals);return{valid:!0,params:{amount:n.amount,normalizedParams:{amount:r},options:{}}}}async quote(e,n){try{return e.displayQuote(await Vn.quoteTransfer(this.wh,e.fromChain,e.toChain,{token:e.source.id,amount:gn(n.normalizedParams.amount),...n.options}),n)}catch(r){return{success:!1,error:r}}}async initiate(e,n,r,i){const{params:a}=r,s=await Vn.destinationOverrides(e.fromChain,e.toChain,this.toTransferDetails(e,a,fn.chainAddress(n.chain(),n.address()),i)),c=await Vn.transfer(e.fromChain,s,n);return{from:s.from.chain,to:s.to.chain,state:zt.SourceInitiated,originTxs:c}}async complete(e,n){if(!Uo(n))throw new Error("The source must be finalized in order to complete the transfer");const r=this.wh.getChain(n.to),i=await Vn.redeem(r,n.attestation.attestation,e);return{...n,state:zt.DestinationInitiated,destinationTxs:i}}async resume(e){const n=await Vn.from(this.wh,e,1e4);return Vn.getReceipt(n)}async*track(e,n){yield*Vn.track(this.wh,e,n)}toTransferDetails(e,n,r,i){return{from:r,to:i,token:e.source.id,amount:gn(n.normalizedParams.amount),...n.options}}}se(VZ,"meta",{name:"ManualTokenBridge"});const fF=15n,R3e=100n,nw=10000n,N5=class N5 extends Lv{static supportedNetworks(){return["Mainnet"]}static supportedChains(e){return AO.has(e)?AO.get(e):[]}static async supportedDestinationTokens(e,n,r){const[,i]=Pm(n.network,n.chain,e),a=Xr(i),s=await n.getPorticoBridge();if(!s.supportedTokens().some(m=>Xr(m.token)===a))return[];try{const m=await s.getTransferrableToken(a);await Vn.lookupDestinationToken(n,r,m)}catch{return[]}const l=(await r.getPorticoBridge()).supportedTokens(),{tokenMap:d}=r.config,p=s.getTokenGroup(a);return l.filter(m=>(m.group===p||m.group==="ETH"&&p==="WETH"||m.group==="WETH"&&p==="ETH")&&(!d||Zh.byAddress(d,Xr(m.token)))).map(m=>m.token)}getDefaultOptions(){return{}}async validate(e,n){try{if(!N5.supportedChains(e.fromChain.network).includes(e.fromChain.chain)||!N5.supportedChains(e.toChain.network).includes(e.toChain.chain))throw new Error("Protocol not supported");const{fromChain:r,toChain:i,source:a,destination:s}=e,{network:c}=r,[,l]=Pm(c,r.chain,a.id),[,d]=Pm(c,i.chain,s.id),p=await r.getPorticoBridge(),m=await i.getPorticoBridge(),g=await p.getTransferrableToken(Xr(l)),M=await m.getTransferrableToken(Xr(d));return{valid:!0,params:{amount:n.amount,options:n.options??this.getDefaultOptions(),normalizedParams:{amount:e.parseAmount(n.amount),canonicalSourceToken:g,canonicalDestinationToken:M,sourceToken:l,destinationToken:d}}}}catch(r){return{valid:!1,error:r,params:n}}}async quote(e,n){try{const r=await this.fetchSwapQuote(e,n),i=Math.max(e.source.decimals,e.destination.decimals),a=gn(_u(n.normalizedParams.amount,i));if(gn(_u(Sr(r.minAmountFinish,e.destination.decimals),i))<a-a*R3e/nw)throw new Error("Slippage too high");const l=await(await e.toChain.getPorticoBridge()).quoteRelay(n.normalizedParams.canonicalDestinationToken.address,n.normalizedParams.destinationToken.address),d={swapAmounts:r,relayerFee:l},p=d.swapAmounts.minAmountFinish-l;return p<0n?{success:!1,error:new Error(`Amount too low for slippage and fee, would result in negative destination amount (${p})`)}:await e.displayQuote({sourceToken:{token:n.normalizedParams.sourceToken,amount:gn(n.normalizedParams.amount)},destinationToken:{token:n.normalizedParams.destinationToken,amount:d.swapAmounts.minAmountFinish-l},relayFee:{token:n.normalizedParams.destinationToken,amount:l},eta:bv(e.fromChain.chain),expires:eh(0,5,0)},n,d)}catch(r){return{success:!1,error:r}}}async initiate(e,n,r,i){const{params:a,details:s}=r,c=e.source.id.address,l=e.destination.id,d=await e.fromChain.getPorticoBridge(),p=d.getTokenGroup(c.toString()),g=(await e.toChain.getPorticoBridge()).getPorticoAddress(p),M=d.transfer(fn.parseAddress(n.chain(),n.address()),i,c,gn(a.normalizedParams.amount),l,g,s);return{originTxs:await B1(e.fromChain,M,n),state:zt.SourceInitiated,from:e.fromChain.chain,to:e.toChain.chain}}async*track(e,n){if(Dv(e)||oh(e)){const{txid:r}=e.originTxs[e.originTxs.length-1],i=await this.wh.getVaa(r,"PorticoBridge:Transfer",n);if(!i)throw new Error("No VAA found for transaction: "+r);const a={chain:i.emitterChain,emitter:i.emitterAddress,sequence:i.sequence};e={...e,state:zt.Attested,attestation:{id:a,attestation:i}},yield e}Uo(e)&&await(await this.wh.getChain(e.to).getPorticoBridge()).isTransferCompleted(e.attestation.attestation)&&(e={...e,state:zt.DestinationFinalized},yield e),yield e}async complete(e,n){if(!Uo(n))throw new Error("Source must be attested");const r=await this.wh.getChain(n.to),i=await r.getPorticoBridge(),a=fn.chainAddress(e.chain(),e.address()),s=i.redeem(a.address,n.attestation.attestation);return await B1(r,s,e)}async fetchSwapQuote(e,n){const r=await e.fromChain.getPorticoBridge(),i=gn(n.normalizedParams.amount),a=r.getTokenGroup(Xr(n.normalizedParams.sourceToken)),s=await r.quoteSwap(n.normalizedParams.sourceToken.address,n.normalizedParams.canonicalSourceToken.address,a,i),c=s*fF/nw;if(c>=s)throw new Error("Start slippage too high");const l=await e.toChain.getPorticoBridge(),d=s-c,p=await l.quoteSwap(n.normalizedParams.canonicalDestinationToken.address,n.normalizedParams.destinationToken.address,a,d),m=p*fF/nw;if(m>=p)throw new Error("Finish slippage too high");const g=p-m;return{minAmountStart:d,minAmountFinish:g}}};se(N5,"NATIVE_GAS_DROPOFF_SUPPORTED",!1),se(N5,"meta",{name:"AutomaticPortico"});let sT=N5;class QZ extends z4{static supportedNetworks(){return["Mainnet","Testnet"]}static supportedChains(e){return sg.has(e)?sg.get(e):[]}static async supportedDestinationTokens(e,n,r){const i=la.get(n.network,n.chain);if(!i)return[];if(!Xi(e,fn.tokenId(n.chain,i)))return[];const{network:a,chain:s}=r;return la.has(a,s)?[fn.chainAddress(s,la.get(a,s))]:[]}getDefaultOptions(){return{payload:void 0}}async validate(e,n){return{valid:!0,params:{normalizedParams:{amount:e.parseAmount(n.amount)},options:n.options??this.getDefaultOptions(),...n}}}async quote(e,n){try{return e.displayQuote(await vr.quoteTransfer(e.fromChain,e.toChain,{automatic:!1,amount:gn(n.normalizedParams.amount),...n.options}),n)}catch(r){return{success:!1,error:r}}}async initiate(e,n,r,i){const{params:a}=r,s=await vr.destinationOverrides(e.fromChain,e.toChain,this.toTransferDetails(a,fn.chainAddress(n.chain(),n.address()),i)),c=await vr.transfer(e.fromChain,s,n),l=await vr.getTransferMessage(e.fromChain,c[c.length-1].txid);return{from:s.from.chain,to:s.to.chain,state:zt.SourceFinalized,originTxs:c,attestation:{id:l.id,attestation:{message:l.message}}}}async complete(e,n){if(!Uo(n))throw new Error("The source must be finalized in order to complete the transfer");const{id:r,attestation:i}=n.attestation;if(ah.isCircleAttestation(i)){const{message:a,attestation:s}=i;if(!s)throw new Error(`No Circle attestation for ${r}`);const c=this.wh.getChain(n.to),l=await c.getCircleBridge(),d=fn.parseAddress(e.chain(),e.address()),p=l.redeem(d,a,s),m=await B1(c,p,e);return{...n,state:zt.DestinationInitiated,destinationTxs:m}}else return n}async resume(e){const n=await vr.from(this.wh,e,1e4);return vr.getReceipt(n)}async*track(e,n){yield*vr.track(this.wh,e,n)}toTransferDetails(e,n,r){return{from:n,to:r,amount:gn(e.normalizedParams.amount),automatic:!1,...e.options}}}se(QZ,"meta",{name:"ManualCCTP",provider:"Circle"});class oT extends Lv{static supportedNetworks(){return["Mainnet","Testnet"]}static supportedChains(e){return sg.has(e)?sg.get(e).filter(r=>{var i;return(i=_S.get(e,r))==null?void 0:i.wormholeRelayer}):[]}static async supportedDestinationTokens(e,n,r){const i=la.get(n.network,n.chain);if(!i)return[];if(!Xi(e,fn.tokenId(n.chain,i)))return[];const{network:a,chain:s}=r;return la.has(a,s)?[fn.chainAddress(s,la.get(a,s))]:[]}getDefaultOptions(){return{nativeGas:0}}async validate(e,n){try{const r=n.options??this.getDefaultOptions();return{valid:!0,params:{normalizedParams:await this.normalizeTransferParams(e,n),options:r,...n}}}catch(r){return{valid:!1,params:n,error:r}}}async quote(e,n){try{return e.displayQuote(await vr.quoteTransfer(e.fromChain,e.toChain,{automatic:!0,amount:gn(n.normalizedParams.amount),nativeGas:gn(n.normalizedParams.nativeGasAmount)}),n)}catch(r){return{success:!1,error:r}}}async normalizeTransferParams(e,n){const r=e.parseAmount(n.amount),a=await(await e.fromChain.getAutomaticCircleBridge()).getRelayerFee(e.toChain.chain),s=a*105n/100n;if(gn(r)<s)throw new GZ(Sr(s,r.decimals));const c=gn(r)-a,d=(n.options??this.getDefaultOptions()).nativeGas??0;if(d>1||d<0)throw new Error("Native gas must be between 0.0 and 1.0 (0% and 100%)");let p=0n;if(d>0){let g=await(await e.toChain.getAutomaticCircleBridge()).maxSwapAmount();c<g&&(g=c);const M=1e4,C=BigInt(Math.floor(d*M));p=g*C/BigInt(M),p===c&&p>0n&&(p-=1n)}return{fee:e.amountFromBaseUnits(a),amount:r,nativeGasAmount:e.amountFromBaseUnits(p)}}toTransferDetails(e,n,r){return{from:n,to:r,amount:gn(e.normalizedParams.amount),automatic:!0,nativeGas:gn(e.normalizedParams.nativeGasAmount)}}async initiate(e,n,r,i){const{params:a}=r;let s=this.toTransferDetails(a,fn.chainAddress(n.chain(),n.address()),i),c=await vr.transfer(e.fromChain,s,n);const l=await vr.getTransferMessage(e.fromChain,c[c.length-1].txid);return{from:s.from.chain,to:s.to.chain,state:zt.SourceFinalized,originTxs:c,attestation:{id:l.id,attestation:{message:l.message}}}}async*track(e,n){yield*vr.track(this.wh,e,n)}}se(oT,"NATIVE_GAS_DROPOFF_SUPPORTED",!0),se(oT,"meta",{name:"AutomaticCCTP",provider:"Circle"});class qZ extends z4{static supportedNetworks(){return["Mainnet"]}static supportedChains(e){return Dq(e)}static async supportedDestinationTokens(e,n,r){if(!await this.isSourceTokenSupported(e,n))return[];const i=Ds.getNativeTbtcToken(r.chain);if(i)return[i];const a=await r.getTokenBridge(),s=Ds.getNativeTbtcToken("Ethereum");try{const c=await a.getWrappedAsset(s);return[fn.tokenId(r.chain,c.toString())]}catch(c){if(c.message.includes("not a wrapped asset"))return[];throw c}}getDefaultOptions(){return{}}async validate(e,n){return{valid:!0,params:{normalizedParams:{amount:e.parseAmount(n.amount)},options:n.options??this.getDefaultOptions(),...n}}}async quote(e,n){const r=bv(e.fromChain.chain)+ON;return{success:!0,params:n,sourceToken:{token:e.source.id,amount:n.normalizedParams.amount},destinationToken:{token:e.destination.id,amount:n.normalizedParams.amount},eta:r,expires:eh(24,0,0)}}async initiate(e,n,r,i){const a=gn(r.params.normalizedParams.amount),s=e.fromChain.chain==="Ethereum",c=Ds.getNativeTbtcToken(e.fromChain.chain),l=c&&Xi(r.sourceToken.token,c);if(l&&!s)return await this.transferNative(e,n,i,a);if(!l&&s)throw new Error("Only tbtc can be transferred on Ethereum");if(!l){const p=await(await e.fromChain.getTokenBridge()).getOriginalAsset(r.sourceToken.token.address),m=Ds.getNativeTbtcToken("Ethereum");if(!Xi(p,m))throw new Error("Can only transfer wrapped tbtc")}return await this.transferWrapped(e,n,i,a)}async transferNative(e,n,r,i){const a=fn.parseAddress(n.chain(),n.address()),c=(await e.fromChain.getTBTCBridge()).transfer(a,r,i);return{originTxs:await B1(e.fromChain,c,n),state:zt.SourceInitiated,from:e.fromChain.chain,to:e.toChain.chain}}async transferWrapped(e,n,r,i){const a=fn.parseAddress(n.chain(),n.address()),s=Rm.get(e.fromChain.network,r.chain),c=await e.fromChain.getTokenBridge();let l;return s?l=c.transfer(a,fn.chainAddress(e.toChain.chain,s),e.source.id.address,i,r.address.toUniversalAddress().toUint8Array()):l=c.transfer(a,r,e.source.id.address,i),{originTxs:await B1(e.fromChain,l,n),state:zt.SourceInitiated,from:e.fromChain.chain,to:e.toChain.chain}}async complete(e,n){if(!Uo(n))throw new Error("The source must be finalized in order to complete the transfer");const r=fn.parseAddress(e.chain(),e.address()),i=n.attestation.attestation,a=this.wh.getChain(n.to);let s;if(i.payloadLiteral==="TBTCBridge:GatewayTransfer")s=(await a.getTBTCBridge()).redeem(r,i);else{const l=await a.getTokenBridge(),d=_4(i),p=O4("TokenBridge:Transfer",d);s=l.redeem(r,p)}const c=await B1(a,s,e);return{...n,state:zt.DestinationInitiated,destinationTxs:c}}async resume(e){const n=await this.wh.getVaa(e.txid,Ds.getTransferDiscriminator());if(!n)throw new Error("No VAA found for transaction: "+e);const r=Ds.getNativeTbtcToken("Ethereum"),{chain:i,address:a}=n.payload.token;if(!Xi(r,{chain:i,address:a}))throw new Error("Can only resume tbtc transfers");return{originTxs:[e],state:zt.Attested,from:n.emitterChain,to:n.payload.to.chain,attestation:{id:{chain:n.emitterChain,emitter:n.emitterAddress,sequence:n.sequence},attestation:n}}}async*track(e,n){if(Dv(e)||oh(e)){const{txid:r}=e.originTxs[e.originTxs.length-1],i=await this.wh.getVaa(r,Ds.getTransferDiscriminator(),n);if(!i)throw new Error("No VAA found for transaction: "+r);const a={chain:i.emitterChain,emitter:i.emitterAddress,sequence:i.sequence};e={...e,state:zt.Attested,attestation:{id:a,attestation:i}},yield e}Uo(e)&&await(await this.wh.getChain(e.to).getTokenBridge()).isTransferCompleted(e.attestation.attestation)&&(e={...e,state:zt.DestinationFinalized},yield e),yield e}static async isSourceTokenSupported(e,n){if(Fn(e.address))return!1;const r=Ds.getNativeTbtcToken(n.chain);if(r&&Xi(e,r))return!0;const i=await n.getTokenBridge();try{const a=await i.getOriginalAsset(e.address);return Xi(a,Ds.getNativeTbtcToken("Ethereum"))}catch(a){if(a.message.includes("not a wrapped asset"))return!1;throw a}}}se(qZ,"meta",{name:"ManualTBTC"});function P3e(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ZZ={exports:{}},En={},o9={exports:{}},cT={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */(function(t,e){var n=wt,r=n.Buffer;function i(s,c){for(var l in s)c[l]=s[l]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=a);function a(s,c,l){return r(s,c,l)}a.prototype=Object.create(r.prototype),i(r,a),a.from=function(s,c,l){if(typeof s=="number")throw new TypeError("Argument must not be a number");return r(s,c,l)},a.alloc=function(s,c,l){if(typeof s!="number")throw new TypeError("Argument must be a number");var d=r(s);return c!==void 0?typeof l=="string"?d.fill(c,l):d.fill(c):d.fill(0),d},a.allocUnsafe=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return r(s)},a.allocUnsafeSlow=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(s)}})(cT,cT.exports);var Tn=cT.exports,dF;function i8(){if(dF)return o9.exports;dF=1;var t=65536,e=4294967295;function n(){throw new Error(`Secure random number generation is not supported by this browser.
|
|
65
65
|
Use Chrome, Firefox or Internet Explorer 11`)}var r=Tn.Buffer,i=Kt.crypto||Kt.msCrypto;i&&i.getRandomValues?o9.exports=a:o9.exports=n;function a(s,c){if(s>e)throw new RangeError("requested too many random bytes");var l=r.allocUnsafe(s);if(s>0)if(s>t)for(var d=0;d<s;d+=t)i.getRandomValues(l.slice(d,d+t));else i.getRandomValues(l);return typeof c=="function"?je.process.nextTick(function(){c(null,l)}):l}return o9.exports}var lT={exports:{}};typeof Object.create=="function"?lT.exports=function(e,n){n&&(e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:lT.exports=function(e,n){if(n){e.super_=n;var r=function(){};r.prototype=n.prototype,e.prototype=new r,e.prototype.constructor=e}};var mn=lT.exports,c9={exports:{}},hF;function Jp(){if(hF)return c9.exports;hF=1;var t=typeof Reflect=="object"?Reflect:null,e=t&&typeof t.apply=="function"?t.apply:function(k,O,z){return Function.prototype.apply.call(k,O,z)},n;t&&typeof t.ownKeys=="function"?n=t.ownKeys:Object.getOwnPropertySymbols?n=function(k){return Object.getOwnPropertyNames(k).concat(Object.getOwnPropertySymbols(k))}:n=function(k){return Object.getOwnPropertyNames(k)};function r(B){console&&console.warn&&console.warn(B)}var i=Number.isNaN||function(k){return k!==k};function a(){a.init.call(this)}c9.exports=a,c9.exports.once=S,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var s=10;function c(B){if(typeof B!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof B)}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(B){if(typeof B!="number"||B<0||i(B))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+B+".");s=B}}),a.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(k){if(typeof k!="number"||k<0||i(k))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+k+".");return this._maxListeners=k,this};function l(B){return B._maxListeners===void 0?a.defaultMaxListeners:B._maxListeners}a.prototype.getMaxListeners=function(){return l(this)},a.prototype.emit=function(k){for(var O=[],z=1;z<arguments.length;z++)O.push(arguments[z]);var _=k==="error",F=this._events;if(F!==void 0)_=_&&F.error===void 0;else if(!_)return!1;if(_){var R;if(O.length>0&&(R=O[0]),R instanceof Error)throw R;var w=new Error("Unhandled error."+(R?" ("+R.message+")":""));throw w.context=R,w}var o=F[k];if(o===void 0)return!1;if(typeof o=="function")e(o,this,O);else for(var u=o.length,h=C(o,u),z=0;z<u;++z)e(h[z],this,O);return!0};function d(B,k,O,z){var _,F,R;if(c(O),F=B._events,F===void 0?(F=B._events=Object.create(null),B._eventsCount=0):(F.newListener!==void 0&&(B.emit("newListener",k,O.listener?O.listener:O),F=B._events),R=F[k]),R===void 0)R=F[k]=O,++B._eventsCount;else if(typeof R=="function"?R=F[k]=z?[O,R]:[R,O]:z?R.unshift(O):R.push(O),_=l(B),_>0&&R.length>_&&!R.warned){R.warned=!0;var w=new Error("Possible EventEmitter memory leak detected. "+R.length+" "+String(k)+" listeners added. Use emitter.setMaxListeners() to increase limit");w.name="MaxListenersExceededWarning",w.emitter=B,w.type=k,w.count=R.length,r(w)}return B}a.prototype.addListener=function(k,O){return d(this,k,O,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(k,O){return d(this,k,O,!0)};function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function m(B,k,O){var z={fired:!1,wrapFn:void 0,target:B,type:k,listener:O},_=p.bind(z);return _.listener=O,z.wrapFn=_,_}a.prototype.once=function(k,O){return c(O),this.on(k,m(this,k,O)),this},a.prototype.prependOnceListener=function(k,O){return c(O),this.prependListener(k,m(this,k,O)),this},a.prototype.removeListener=function(k,O){var z,_,F,R,w;if(c(O),_=this._events,_===void 0)return this;if(z=_[k],z===void 0)return this;if(z===O||z.listener===O)--this._eventsCount===0?this._events=Object.create(null):(delete _[k],_.removeListener&&this.emit("removeListener",k,z.listener||O));else if(typeof z!="function"){for(F=-1,R=z.length-1;R>=0;R--)if(z[R]===O||z[R].listener===O){w=z[R].listener,F=R;break}if(F<0)return this;F===0?z.shift():T(z,F),z.length===1&&(_[k]=z[0]),_.removeListener!==void 0&&this.emit("removeListener",k,w||O)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(k){var O,z,_;if(z=this._events,z===void 0)return this;if(z.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):z[k]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete z[k]),this;if(arguments.length===0){var F=Object.keys(z),R;for(_=0;_<F.length;++_)R=F[_],R!=="removeListener"&&this.removeAllListeners(R);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(O=z[k],typeof O=="function")this.removeListener(k,O);else if(O!==void 0)for(_=O.length-1;_>=0;_--)this.removeListener(k,O[_]);return this};function g(B,k,O){var z=B._events;if(z===void 0)return[];var _=z[k];return _===void 0?[]:typeof _=="function"?O?[_.listener||_]:[_]:O?D(_):C(_,_.length)}a.prototype.listeners=function(k){return g(this,k,!0)},a.prototype.rawListeners=function(k){return g(this,k,!1)},a.listenerCount=function(B,k){return typeof B.listenerCount=="function"?B.listenerCount(k):M.call(B,k)},a.prototype.listenerCount=M;function M(B){var k=this._events;if(k!==void 0){var O=k[B];if(typeof O=="function")return 1;if(O!==void 0)return O.length}return 0}a.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]};function C(B,k){for(var O=new Array(k),z=0;z<k;++z)O[z]=B[z];return O}function T(B,k){for(;k+1<B.length;k++)B[k]=B[k+1];B.pop()}function D(B){for(var k=new Array(B.length),O=0;O<k.length;++O)k[O]=B[O].listener||B[O];return k}function S(B,k){return new Promise(function(O,z){function _(R){B.removeListener(k,F),z(R)}function F(){typeof B.removeListener=="function"&&B.removeListener("error",_),O([].slice.call(arguments))}N(B,k,F,{once:!0}),k!=="error"&&I(B,_,{once:!0})})}function I(B,k,O){typeof B.on=="function"&&N(B,"error",k,O)}function N(B,k,O,z){if(typeof B.on=="function")z.once?B.once(k,O):B.on(k,O);else if(typeof B.addEventListener=="function")B.addEventListener(k,function _(F){z.once&&B.removeEventListener(k,_),O(F)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof B)}return c9.exports}var rw,pF;function KZ(){return pF||(pF=1,rw=Jp().EventEmitter),rw}const U3e={},H3e=Object.freeze(Object.defineProperty({__proto__:null,default:U3e},Symbol.toStringTag,{value:"Module"})),eb=za(H3e);var iw,bF;function W3e(){if(bF)return iw;bF=1;function t(C,T){var D=Object.keys(C);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(C);T&&(S=S.filter(function(I){return Object.getOwnPropertyDescriptor(C,I).enumerable})),D.push.apply(D,S)}return D}function e(C){for(var T=1;T<arguments.length;T++){var D=arguments[T]!=null?arguments[T]:{};T%2?t(Object(D),!0).forEach(function(S){n(C,S,D[S])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(D)):t(Object(D)).forEach(function(S){Object.defineProperty(C,S,Object.getOwnPropertyDescriptor(D,S))})}return C}function n(C,T,D){return T=s(T),T in C?Object.defineProperty(C,T,{value:D,enumerable:!0,configurable:!0,writable:!0}):C[T]=D,C}function r(C,T){if(!(C instanceof T))throw new TypeError("Cannot call a class as a function")}function i(C,T){for(var D=0;D<T.length;D++){var S=T[D];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(C,s(S.key),S)}}function a(C,T,D){return T&&i(C.prototype,T),Object.defineProperty(C,"prototype",{writable:!1}),C}function s(C){var T=c(C,"string");return typeof T=="symbol"?T:String(T)}function c(C,T){if(typeof C!="object"||C===null)return C;var D=C[Symbol.toPrimitive];if(D!==void 0){var S=D.call(C,T);if(typeof S!="object")return S;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(C)}var l=wt,d=l.Buffer,p=eb,m=p.inspect,g=m&&m.custom||"inspect";function M(C,T,D){d.prototype.copy.call(C,T,D)}return iw=function(){function C(){r(this,C),this.head=null,this.tail=null,this.length=0}return a(C,[{key:"push",value:function(D){var S={data:D,next:null};this.length>0?this.tail.next=S:this.head=S,this.tail=S,++this.length}},{key:"unshift",value:function(D){var S={data:D,next:this.head};this.length===0&&(this.tail=S),this.head=S,++this.length}},{key:"shift",value:function(){if(this.length!==0){var D=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,D}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(D){if(this.length===0)return"";for(var S=this.head,I=""+S.data;S=S.next;)I+=D+S.data;return I}},{key:"concat",value:function(D){if(this.length===0)return d.alloc(0);for(var S=d.allocUnsafe(D>>>0),I=this.head,N=0;I;)M(I.data,S,N),N+=I.data.length,I=I.next;return S}},{key:"consume",value:function(D,S){var I;return D<this.head.data.length?(I=this.head.data.slice(0,D),this.head.data=this.head.data.slice(D)):D===this.head.data.length?I=this.shift():I=S?this._getString(D):this._getBuffer(D),I}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(D){var S=this.head,I=1,N=S.data;for(D-=N.length;S=S.next;){var B=S.data,k=D>B.length?B.length:D;if(k===B.length?N+=B:N+=B.slice(0,D),D-=k,D===0){k===B.length?(++I,S.next?this.head=S.next:this.head=this.tail=null):(this.head=S,S.data=B.slice(k));break}++I}return this.length-=I,N}},{key:"_getBuffer",value:function(D){var S=d.allocUnsafe(D),I=this.head,N=1;for(I.data.copy(S),D-=I.data.length;I=I.next;){var B=I.data,k=D>B.length?B.length:D;if(B.copy(S,S.length-D,0,k),D-=k,D===0){k===B.length?(++N,I.next?this.head=I.next:this.head=this.tail=null):(this.head=I,I.data=B.slice(k));break}++N}return this.length-=N,S}},{key:g,value:function(D,S){return m(this,e(e({},S),{},{depth:0,customInspect:!1}))}}]),C}(),iw}var aw,mF;function XZ(){if(mF)return aw;mF=1;function t(s,c){var l=this,d=this._readableState&&this._readableState.destroyed,p=this._writableState&&this._writableState.destroyed;return d||p?(c?c(s):s&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,je.process.nextTick(i,this,s)):je.process.nextTick(i,this,s)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(s||null,function(m){!c&&m?l._writableState?l._writableState.errorEmitted?je.process.nextTick(n,l):(l._writableState.errorEmitted=!0,je.process.nextTick(e,l,m)):je.process.nextTick(e,l,m):c?(je.process.nextTick(n,l),c(m)):je.process.nextTick(n,l)}),this)}function e(s,c){i(s,c),n(s)}function n(s){s._writableState&&!s._writableState.emitClose||s._readableState&&!s._readableState.emitClose||s.emit("close")}function r(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function i(s,c){s.emit("error",c)}function a(s,c){var l=s._readableState,d=s._writableState;l&&l.autoDestroy||d&&d.autoDestroy?s.destroy(c):s.emit("error",c)}return aw={destroy:t,undestroy:r,errorOrDestroy:a},aw}var sw={},yF;function a8(){if(yF)return sw;yF=1;function t(c,l){c.prototype=Object.create(l.prototype),c.prototype.constructor=c,c.__proto__=l}var e={};function n(c,l,d){d||(d=Error);function p(g,M,C){return typeof l=="string"?l:l(g,M,C)}var m=function(g){t(M,g);function M(C,T,D){return g.call(this,p(C,T,D))||this}return M}(d);m.prototype.name=d.name,m.prototype.code=c,e[c]=m}function r(c,l){if(Array.isArray(c)){var d=c.length;return c=c.map(function(p){return String(p)}),d>2?"one of ".concat(l," ").concat(c.slice(0,d-1).join(", "),", or ")+c[d-1]:d===2?"one of ".concat(l," ").concat(c[0]," or ").concat(c[1]):"of ".concat(l," ").concat(c[0])}else return"of ".concat(l," ").concat(String(c))}function i(c,l,d){return c.substr(0,l.length)===l}function a(c,l,d){return(d===void 0||d>c.length)&&(d=c.length),c.substring(d-l.length,d)===l}function s(c,l,d){return typeof d!="number"&&(d=0),d+l.length>c.length?!1:c.indexOf(l,d)!==-1}return n("ERR_INVALID_OPT_VALUE",function(c,l){return'The value "'+l+'" is invalid for option "'+c+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(c,l,d){var p;typeof l=="string"&&i(l,"not ")?(p="must not be",l=l.replace(/^not /,"")):p="must be";var m;if(a(c," argument"))m="The ".concat(c," ").concat(p," ").concat(r(l,"type"));else{var g=s(c,".")?"property":"argument";m='The "'.concat(c,'" ').concat(g," ").concat(p," ").concat(r(l,"type"))}return m+=". Received type ".concat(typeof d),m},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(c){return"The "+c+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(c){return"Cannot call "+c+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(c){return"Unknown encoding: "+c},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),sw.codes=e,sw}var ow,gF;function JZ(){if(gF)return ow;gF=1;var t=a8().codes.ERR_INVALID_OPT_VALUE;function e(r,i,a){return r.highWaterMark!=null?r.highWaterMark:i?r[a]:null}function n(r,i,a,s){var c=e(i,s,a);if(c!=null){if(!(isFinite(c)&&Math.floor(c)===c)||c<0){var l=s?a:"highWaterMark";throw new t(l,c)}return Math.floor(c)}return r.objectMode?16:16*1024}return ow={getHighWaterMark:n},ow}var eK=Y3e;function Y3e(t,e){if(cw("noDeprecation"))return t;var n=!1;function r(){if(!n){if(cw("throwDeprecation"))throw new Error(e);cw("traceDeprecation")?console.trace(e):console.warn(e),n=!0}return t.apply(this,arguments)}return r}function cw(t){try{if(!Kt.localStorage)return!1}catch{return!1}var e=Kt.localStorage[t];return e==null?!1:String(e).toLowerCase()==="true"}var lw,vF;function tK(){if(vF)return lw;vF=1,lw=_;function t(Q){var H=this;this.next=null,this.entry=null,this.finish=function(){K(H,Q)}}var e;_.WritableState=O;var n={deprecate:eK},r=KZ(),i=wt.Buffer,a=(typeof Kt<"u"?Kt:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function s(Q){return i.from(Q)}function c(Q){return i.isBuffer(Q)||Q instanceof a}var l=XZ(),d=JZ(),p=d.getHighWaterMark,m=a8().codes,g=m.ERR_INVALID_ARG_TYPE,M=m.ERR_METHOD_NOT_IMPLEMENTED,C=m.ERR_MULTIPLE_CALLBACK,T=m.ERR_STREAM_CANNOT_PIPE,D=m.ERR_STREAM_DESTROYED,S=m.ERR_STREAM_NULL_VALUES,I=m.ERR_STREAM_WRITE_AFTER_END,N=m.ERR_UNKNOWN_ENCODING,B=l.errorOrDestroy;mn(_,r);function k(){}function O(Q,H,V){e=e||ch(),Q=Q||{},typeof V!="boolean"&&(V=H instanceof e),this.objectMode=!!Q.objectMode,V&&(this.objectMode=this.objectMode||!!Q.writableObjectMode),this.highWaterMark=p(this,Q,"writableHighWaterMark",V),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var J=Q.decodeStrings===!1;this.decodeStrings=!J,this.defaultEncoding=Q.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ae){y(H,ae)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Q.emitClose!==!1,this.autoDestroy=!!Q.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}O.prototype.getBuffer=function(){for(var H=this.bufferedRequest,V=[];H;)V.push(H),H=H.next;return V},function(){try{Object.defineProperty(O.prototype,"buffer",{get:n.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var z;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(z=Function.prototype[Symbol.hasInstance],Object.defineProperty(_,Symbol.hasInstance,{value:function(H){return z.call(this,H)?!0:this!==_?!1:H&&H._writableState instanceof O}})):z=function(H){return H instanceof this};function _(Q){e=e||ch();var H=this instanceof e;if(!H&&!z.call(_,this))return new _(Q);this._writableState=new O(Q,this,H),this.writable=!0,Q&&(typeof Q.write=="function"&&(this._write=Q.write),typeof Q.writev=="function"&&(this._writev=Q.writev),typeof Q.destroy=="function"&&(this._destroy=Q.destroy),typeof Q.final=="function"&&(this._final=Q.final)),r.call(this)}_.prototype.pipe=function(){B(this,new T)};function F(Q,H){var V=new I;B(Q,V),je.process.nextTick(H,V)}function R(Q,H,V,J){var ae;return V===null?ae=new S:typeof V!="string"&&!H.objectMode&&(ae=new g("chunk",["string","Buffer"],V)),ae?(B(Q,ae),je.process.nextTick(J,ae),!1):!0}_.prototype.write=function(Q,H,V){var J=this._writableState,ae=!1,te=!J.objectMode&&c(Q);return te&&!i.isBuffer(Q)&&(Q=s(Q)),typeof H=="function"&&(V=H,H=null),te?H="buffer":H||(H=J.defaultEncoding),typeof V!="function"&&(V=k),J.ending?F(this,V):(te||R(this,J,Q,V))&&(J.pendingcb++,ae=o(this,J,te,Q,H,V)),ae},_.prototype.cork=function(){this._writableState.corked++},_.prototype.uncork=function(){var Q=this._writableState;Q.corked&&(Q.corked--,!Q.writing&&!Q.corked&&!Q.bufferProcessing&&Q.bufferedRequest&&v(this,Q))},_.prototype.setDefaultEncoding=function(H){if(typeof H=="string"&&(H=H.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((H+"").toLowerCase())>-1))throw new N(H);return this._writableState.defaultEncoding=H,this},Object.defineProperty(_.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function w(Q,H,V){return!Q.objectMode&&Q.decodeStrings!==!1&&typeof H=="string"&&(H=i.from(H,V)),H}Object.defineProperty(_.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function o(Q,H,V,J,ae,te){if(!V){var Z=w(H,J,ae);J!==Z&&(V=!0,ae="buffer",J=Z)}var ce=H.objectMode?1:J.length;H.length+=ce;var De=H.length<H.highWaterMark;if(De||(H.needDrain=!0),H.writing||H.corked){var pe=H.lastBufferedRequest;H.lastBufferedRequest={chunk:J,encoding:ae,isBuf:V,callback:te,next:null},pe?pe.next=H.lastBufferedRequest:H.bufferedRequest=H.lastBufferedRequest,H.bufferedRequestCount+=1}else u(Q,H,!1,ce,J,ae,te);return De}function u(Q,H,V,J,ae,te,Z){H.writelen=J,H.writecb=Z,H.writing=!0,H.sync=!0,H.destroyed?H.onwrite(new D("write")):V?Q._writev(ae,H.onwrite):Q._write(ae,te,H.onwrite),H.sync=!1}function h(Q,H,V,J,ae){--H.pendingcb,V?(je.process.nextTick(ae,J),je.process.nextTick(P,Q,H),Q._writableState.errorEmitted=!0,B(Q,J)):(ae(J),Q._writableState.errorEmitted=!0,B(Q,J),P(Q,H))}function b(Q){Q.writing=!1,Q.writecb=null,Q.length-=Q.writelen,Q.writelen=0}function y(Q,H){var V=Q._writableState,J=V.sync,ae=V.writecb;if(typeof ae!="function")throw new C;if(b(V),H)h(Q,V,J,H,ae);else{var te=f(V)||Q.destroyed;!te&&!V.corked&&!V.bufferProcessing&&V.bufferedRequest&&v(Q,V),J?je.process.nextTick(x,Q,V,te,ae):x(Q,V,te,ae)}}function x(Q,H,V,J){V||E(Q,H),H.pendingcb--,J(),P(Q,H)}function E(Q,H){H.length===0&&H.needDrain&&(H.needDrain=!1,Q.emit("drain"))}function v(Q,H){H.bufferProcessing=!0;var V=H.bufferedRequest;if(Q._writev&&V&&V.next){var J=H.bufferedRequestCount,ae=new Array(J),te=H.corkedRequestsFree;te.entry=V;for(var Z=0,ce=!0;V;)ae[Z]=V,V.isBuf||(ce=!1),V=V.next,Z+=1;ae.allBuffers=ce,u(Q,H,!0,H.length,ae,"",te.finish),H.pendingcb++,H.lastBufferedRequest=null,te.next?(H.corkedRequestsFree=te.next,te.next=null):H.corkedRequestsFree=new t(H),H.bufferedRequestCount=0}else{for(;V;){var De=V.chunk,pe=V.encoding,Se=V.callback,st=H.objectMode?1:De.length;if(u(Q,H,!1,st,De,pe,Se),V=V.next,H.bufferedRequestCount--,H.writing)break}V===null&&(H.lastBufferedRequest=null)}H.bufferedRequest=V,H.bufferProcessing=!1}_.prototype._write=function(Q,H,V){V(new M("_write()"))},_.prototype._writev=null,_.prototype.end=function(Q,H,V){var J=this._writableState;return typeof Q=="function"?(V=Q,Q=null,H=null):typeof H=="function"&&(V=H,H=null),Q!=null&&this.write(Q,H),J.corked&&(J.corked=1,this.uncork()),J.ending||$(this,J,V),this},Object.defineProperty(_.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function f(Q){return Q.ending&&Q.length===0&&Q.bufferedRequest===null&&!Q.finished&&!Q.writing}function A(Q,H){Q._final(function(V){H.pendingcb--,V&&B(Q,V),H.prefinished=!0,Q.emit("prefinish"),P(Q,H)})}function j(Q,H){!H.prefinished&&!H.finalCalled&&(typeof Q._final=="function"&&!H.destroyed?(H.pendingcb++,H.finalCalled=!0,je.process.nextTick(A,Q,H)):(H.prefinished=!0,Q.emit("prefinish")))}function P(Q,H){var V=f(H);if(V&&(j(Q,H),H.pendingcb===0&&(H.finished=!0,Q.emit("finish"),H.autoDestroy))){var J=Q._readableState;(!J||J.autoDestroy&&J.endEmitted)&&Q.destroy()}return V}function $(Q,H,V){H.ending=!0,P(Q,H),V&&(H.finished?je.process.nextTick(V):Q.once("finish",V)),H.ended=!0,Q.writable=!1}function K(Q,H,V){var J=Q.entry;for(Q.entry=null;J;){var ae=J.callback;H.pendingcb--,ae(V),J=J.next}H.corkedRequestsFree.next=Q}return Object.defineProperty(_.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(H){this._writableState&&(this._writableState.destroyed=H)}}),_.prototype.destroy=l.destroy,_.prototype._undestroy=l.undestroy,_.prototype._destroy=function(Q,H){H(Q)},lw}var uw,MF;function ch(){if(MF)return uw;MF=1;var t=Object.keys||function(d){var p=[];for(var m in d)p.push(m);return p};uw=s;var e=nK(),n=tK();mn(s,e);for(var r=t(n.prototype),i=0;i<r.length;i++){var a=r[i];s.prototype[a]||(s.prototype[a]=n.prototype[a])}function s(d){if(!(this instanceof s))return new s(d);e.call(this,d),n.call(this,d),this.allowHalfOpen=!0,d&&(d.readable===!1&&(this.readable=!1),d.writable===!1&&(this.writable=!1),d.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",c)))}Object.defineProperty(s.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(s.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(s.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function c(){this._writableState.ended||je.process.nextTick(l,this)}function l(d){d.end()}return Object.defineProperty(s.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(p){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=p,this._writableState.destroyed=p)}}),uw}var fw={},xF;function uT(){if(xF)return fw;xF=1;var t=Tn.Buffer,e=t.isEncoding||function(S){switch(S=""+S,S&&S.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function n(S){if(!S)return"utf8";for(var I;;)switch(S){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return S;default:if(I)return;S=(""+S).toLowerCase(),I=!0}}function r(S){var I=n(S);if(typeof I!="string"&&(t.isEncoding===e||!e(S)))throw new Error("Unknown encoding: "+S);return I||S}fw.StringDecoder=i;function i(S){this.encoding=r(S);var I;switch(this.encoding){case"utf16le":this.text=m,this.end=g,I=4;break;case"utf8":this.fillLast=l,I=4;break;case"base64":this.text=M,this.end=C,I=3;break;default:this.write=T,this.end=D;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(I)}i.prototype.write=function(S){if(S.length===0)return"";var I,N;if(this.lastNeed){if(I=this.fillLast(S),I===void 0)return"";N=this.lastNeed,this.lastNeed=0}else N=0;return N<S.length?I?I+this.text(S,N):this.text(S,N):I||""},i.prototype.end=p,i.prototype.text=d,i.prototype.fillLast=function(S){if(this.lastNeed<=S.length)return S.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);S.copy(this.lastChar,this.lastTotal-this.lastNeed,0,S.length),this.lastNeed-=S.length};function a(S){return S<=127?0:S>>5===6?2:S>>4===14?3:S>>3===30?4:S>>6===2?-1:-2}function s(S,I,N){var B=I.length-1;if(B<N)return 0;var k=a(I[B]);return k>=0?(k>0&&(S.lastNeed=k-1),k):--B<N||k===-2?0:(k=a(I[B]),k>=0?(k>0&&(S.lastNeed=k-2),k):--B<N||k===-2?0:(k=a(I[B]),k>=0?(k>0&&(k===2?k=0:S.lastNeed=k-3),k):0))}function c(S,I,N){if((I[0]&192)!==128)return S.lastNeed=0,"�";if(S.lastNeed>1&&I.length>1){if((I[1]&192)!==128)return S.lastNeed=1,"�";if(S.lastNeed>2&&I.length>2&&(I[2]&192)!==128)return S.lastNeed=2,"�"}}function l(S){var I=this.lastTotal-this.lastNeed,N=c(this,S);if(N!==void 0)return N;if(this.lastNeed<=S.length)return S.copy(this.lastChar,I,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);S.copy(this.lastChar,I,0,S.length),this.lastNeed-=S.length}function d(S,I){var N=s(this,S,I);if(!this.lastNeed)return S.toString("utf8",I);this.lastTotal=N;var B=S.length-(N-this.lastNeed);return S.copy(this.lastChar,0,B),S.toString("utf8",I,B)}function p(S){var I=S&&S.length?this.write(S):"";return this.lastNeed?I+"�":I}function m(S,I){if((S.length-I)%2===0){var N=S.toString("utf16le",I);if(N){var B=N.charCodeAt(N.length-1);if(B>=55296&&B<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=S[S.length-2],this.lastChar[1]=S[S.length-1],N.slice(0,-1)}return N}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=S[S.length-1],S.toString("utf16le",I,S.length-1)}function g(S){var I=S&&S.length?this.write(S):"";if(this.lastNeed){var N=this.lastTotal-this.lastNeed;return I+this.lastChar.toString("utf16le",0,N)}return I}function M(S,I){var N=(S.length-I)%3;return N===0?S.toString("base64",I):(this.lastNeed=3-N,this.lastTotal=3,N===1?this.lastChar[0]=S[S.length-1]:(this.lastChar[0]=S[S.length-2],this.lastChar[1]=S[S.length-1]),S.toString("base64",I,S.length-N))}function C(S){var I=S&&S.length?this.write(S):"";return this.lastNeed?I+this.lastChar.toString("base64",0,3-this.lastNeed):I}function T(S){return S.toString(this.encoding)}function D(S){return S&&S.length?this.write(S):""}return fw}var dw,wF;function eL(){if(wF)return dw;wF=1;var t=a8().codes.ERR_STREAM_PREMATURE_CLOSE;function e(a){var s=!1;return function(){if(!s){s=!0;for(var c=arguments.length,l=new Array(c),d=0;d<c;d++)l[d]=arguments[d];a.apply(this,l)}}}function n(){}function r(a){return a.setHeader&&typeof a.abort=="function"}function i(a,s,c){if(typeof s=="function")return i(a,null,s);s||(s={}),c=e(c||n);var l=s.readable||s.readable!==!1&&a.readable,d=s.writable||s.writable!==!1&&a.writable,p=function(){a.writable||g()},m=a._writableState&&a._writableState.finished,g=function(){d=!1,m=!0,l||c.call(a)},M=a._readableState&&a._readableState.endEmitted,C=function(){l=!1,M=!0,d||c.call(a)},T=function(N){c.call(a,N)},D=function(){var N;if(l&&!M)return(!a._readableState||!a._readableState.ended)&&(N=new t),c.call(a,N);if(d&&!m)return(!a._writableState||!a._writableState.ended)&&(N=new t),c.call(a,N)},S=function(){a.req.on("finish",g)};return r(a)?(a.on("complete",g),a.on("abort",D),a.req?S():a.on("request",S)):d&&!a._writableState&&(a.on("end",p),a.on("close",p)),a.on("end",C),a.on("finish",g),s.error!==!1&&a.on("error",T),a.on("close",D),function(){a.removeListener("complete",g),a.removeListener("abort",D),a.removeListener("request",S),a.req&&a.req.removeListener("finish",g),a.removeListener("end",p),a.removeListener("close",p),a.removeListener("finish",g),a.removeListener("end",C),a.removeListener("error",T),a.removeListener("close",D)}}return dw=i,dw}var hw,AF;function G3e(){if(AF)return hw;AF=1;var t;function e(N,B,k){return B=n(B),B in N?Object.defineProperty(N,B,{value:k,enumerable:!0,configurable:!0,writable:!0}):N[B]=k,N}function n(N){var B=r(N,"string");return typeof B=="symbol"?B:String(B)}function r(N,B){if(typeof N!="object"||N===null)return N;var k=N[Symbol.toPrimitive];if(k!==void 0){var O=k.call(N,B);if(typeof O!="object")return O;throw new TypeError("@@toPrimitive must return a primitive value.")}return(B==="string"?String:Number)(N)}var i=eL(),a=Symbol("lastResolve"),s=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),d=Symbol("lastPromise"),p=Symbol("handlePromise"),m=Symbol("stream");function g(N,B){return{value:N,done:B}}function M(N){var B=N[a];if(B!==null){var k=N[m].read();k!==null&&(N[d]=null,N[a]=null,N[s]=null,B(g(k,!1)))}}function C(N){je.process.nextTick(M,N)}function T(N,B){return function(k,O){N.then(function(){if(B[l]){k(g(void 0,!0));return}B[p](k,O)},O)}}var D=Object.getPrototypeOf(function(){}),S=Object.setPrototypeOf((t={get stream(){return this[m]},next:function(){var B=this,k=this[c];if(k!==null)return Promise.reject(k);if(this[l])return Promise.resolve(g(void 0,!0));if(this[m].destroyed)return new Promise(function(F,R){je.process.nextTick(function(){B[c]?R(B[c]):F(g(void 0,!0))})});var O=this[d],z;if(O)z=new Promise(T(O,this));else{var _=this[m].read();if(_!==null)return Promise.resolve(g(_,!1));z=new Promise(this[p])}return this[d]=z,z}},e(t,Symbol.asyncIterator,function(){return this}),e(t,"return",function(){var B=this;return new Promise(function(k,O){B[m].destroy(null,function(z){if(z){O(z);return}k(g(void 0,!0))})})}),t),D),I=function(B){var k,O=Object.create(S,(k={},e(k,m,{value:B,writable:!0}),e(k,a,{value:null,writable:!0}),e(k,s,{value:null,writable:!0}),e(k,c,{value:null,writable:!0}),e(k,l,{value:B._readableState.endEmitted,writable:!0}),e(k,p,{value:function(_,F){var R=O[m].read();R?(O[d]=null,O[a]=null,O[s]=null,_(g(R,!1))):(O[a]=_,O[s]=F)},writable:!0}),k));return O[d]=null,i(B,function(z){if(z&&z.code!=="ERR_STREAM_PREMATURE_CLOSE"){var _=O[s];_!==null&&(O[d]=null,O[a]=null,O[s]=null,_(z)),O[c]=z;return}var F=O[a];F!==null&&(O[d]=null,O[a]=null,O[s]=null,F(g(void 0,!0))),O[l]=!0}),B.on("readable",C.bind(null,O)),O};return hw=I,hw}var pw,CF;function $3e(){return CF||(CF=1,pw=function(){throw new Error("Readable.from is not available in the browser")}),pw}var bw,EF;function nK(){if(EF)return bw;EF=1,bw=F;var t;F.ReadableState=_,Jp().EventEmitter;var e=function(Z,ce){return Z.listeners(ce).length},n=KZ(),r=wt.Buffer,i=(typeof Kt<"u"?Kt:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function a(te){return r.from(te)}function s(te){return r.isBuffer(te)||te instanceof i}var c=eb,l;c&&c.debuglog?l=c.debuglog("stream"):l=function(){};var d=W3e(),p=XZ(),m=JZ(),g=m.getHighWaterMark,M=a8().codes,C=M.ERR_INVALID_ARG_TYPE,T=M.ERR_STREAM_PUSH_AFTER_EOF,D=M.ERR_METHOD_NOT_IMPLEMENTED,S=M.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,I,N,B;mn(F,n);var k=p.errorOrDestroy,O=["error","close","destroy","pause","resume"];function z(te,Z,ce){if(typeof te.prependListener=="function")return te.prependListener(Z,ce);!te._events||!te._events[Z]?te.on(Z,ce):Array.isArray(te._events[Z])?te._events[Z].unshift(ce):te._events[Z]=[ce,te._events[Z]]}function _(te,Z,ce){t=t||ch(),te=te||{},typeof ce!="boolean"&&(ce=Z instanceof t),this.objectMode=!!te.objectMode,ce&&(this.objectMode=this.objectMode||!!te.readableObjectMode),this.highWaterMark=g(this,te,"readableHighWaterMark",ce),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=te.emitClose!==!1,this.autoDestroy=!!te.autoDestroy,this.destroyed=!1,this.defaultEncoding=te.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,te.encoding&&(I||(I=uT().StringDecoder),this.decoder=new I(te.encoding),this.encoding=te.encoding)}function F(te){if(t=t||ch(),!(this instanceof F))return new F(te);var Z=this instanceof t;this._readableState=new _(te,this,Z),this.readable=!0,te&&(typeof te.read=="function"&&(this._read=te.read),typeof te.destroy=="function"&&(this._destroy=te.destroy)),n.call(this)}Object.defineProperty(F.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(Z){this._readableState&&(this._readableState.destroyed=Z)}}),F.prototype.destroy=p.destroy,F.prototype._undestroy=p.undestroy,F.prototype._destroy=function(te,Z){Z(te)},F.prototype.push=function(te,Z){var ce=this._readableState,De;return ce.objectMode?De=!0:typeof te=="string"&&(Z=Z||ce.defaultEncoding,Z!==ce.encoding&&(te=r.from(te,Z),Z=""),De=!0),R(this,te,Z,!1,De)},F.prototype.unshift=function(te){return R(this,te,null,!0,!1)};function R(te,Z,ce,De,pe){l("readableAddChunk",Z);var Se=te._readableState;if(Z===null)Se.reading=!1,y(te,Se);else{var st;if(pe||(st=o(Se,Z)),st)k(te,st);else if(Se.objectMode||Z&&Z.length>0)if(typeof Z!="string"&&!Se.objectMode&&Object.getPrototypeOf(Z)!==r.prototype&&(Z=a(Z)),De)Se.endEmitted?k(te,new S):w(te,Se,Z,!0);else if(Se.ended)k(te,new T);else{if(Se.destroyed)return!1;Se.reading=!1,Se.decoder&&!ce?(Z=Se.decoder.write(Z),Se.objectMode||Z.length!==0?w(te,Se,Z,!1):v(te,Se)):w(te,Se,Z,!1)}else De||(Se.reading=!1,v(te,Se))}return!Se.ended&&(Se.length<Se.highWaterMark||Se.length===0)}function w(te,Z,ce,De){Z.flowing&&Z.length===0&&!Z.sync?(Z.awaitDrain=0,te.emit("data",ce)):(Z.length+=Z.objectMode?1:ce.length,De?Z.buffer.unshift(ce):Z.buffer.push(ce),Z.needReadable&&x(te)),v(te,Z)}function o(te,Z){var ce;return!s(Z)&&typeof Z!="string"&&Z!==void 0&&!te.objectMode&&(ce=new C("chunk",["string","Buffer","Uint8Array"],Z)),ce}F.prototype.isPaused=function(){return this._readableState.flowing===!1},F.prototype.setEncoding=function(te){I||(I=uT().StringDecoder);var Z=new I(te);this._readableState.decoder=Z,this._readableState.encoding=this._readableState.decoder.encoding;for(var ce=this._readableState.buffer.head,De="";ce!==null;)De+=Z.write(ce.data),ce=ce.next;return this._readableState.buffer.clear(),De!==""&&this._readableState.buffer.push(De),this._readableState.length=De.length,this};var u=1073741824;function h(te){return te>=u?te=u:(te--,te|=te>>>1,te|=te>>>2,te|=te>>>4,te|=te>>>8,te|=te>>>16,te++),te}function b(te,Z){return te<=0||Z.length===0&&Z.ended?0:Z.objectMode?1:te!==te?Z.flowing&&Z.length?Z.buffer.head.data.length:Z.length:(te>Z.highWaterMark&&(Z.highWaterMark=h(te)),te<=Z.length?te:Z.ended?Z.length:(Z.needReadable=!0,0))}F.prototype.read=function(te){l("read",te),te=parseInt(te,10);var Z=this._readableState,ce=te;if(te!==0&&(Z.emittedReadable=!1),te===0&&Z.needReadable&&((Z.highWaterMark!==0?Z.length>=Z.highWaterMark:Z.length>0)||Z.ended))return l("read: emitReadable",Z.length,Z.ended),Z.length===0&&Z.ended?V(this):x(this),null;if(te=b(te,Z),te===0&&Z.ended)return Z.length===0&&V(this),null;var De=Z.needReadable;l("need readable",De),(Z.length===0||Z.length-te<Z.highWaterMark)&&(De=!0,l("length less than watermark",De)),Z.ended||Z.reading?(De=!1,l("reading or ended",De)):De&&(l("do read"),Z.reading=!0,Z.sync=!0,Z.length===0&&(Z.needReadable=!0),this._read(Z.highWaterMark),Z.sync=!1,Z.reading||(te=b(ce,Z)));var pe;return te>0?pe=H(te,Z):pe=null,pe===null?(Z.needReadable=Z.length<=Z.highWaterMark,te=0):(Z.length-=te,Z.awaitDrain=0),Z.length===0&&(Z.ended||(Z.needReadable=!0),ce!==te&&Z.ended&&V(this)),pe!==null&&this.emit("data",pe),pe};function y(te,Z){if(l("onEofChunk"),!Z.ended){if(Z.decoder){var ce=Z.decoder.end();ce&&ce.length&&(Z.buffer.push(ce),Z.length+=Z.objectMode?1:ce.length)}Z.ended=!0,Z.sync?x(te):(Z.needReadable=!1,Z.emittedReadable||(Z.emittedReadable=!0,E(te)))}}function x(te){var Z=te._readableState;l("emitReadable",Z.needReadable,Z.emittedReadable),Z.needReadable=!1,Z.emittedReadable||(l("emitReadable",Z.flowing),Z.emittedReadable=!0,je.process.nextTick(E,te))}function E(te){var Z=te._readableState;l("emitReadable_",Z.destroyed,Z.length,Z.ended),!Z.destroyed&&(Z.length||Z.ended)&&(te.emit("readable"),Z.emittedReadable=!1),Z.needReadable=!Z.flowing&&!Z.ended&&Z.length<=Z.highWaterMark,Q(te)}function v(te,Z){Z.readingMore||(Z.readingMore=!0,je.process.nextTick(f,te,Z))}function f(te,Z){for(;!Z.reading&&!Z.ended&&(Z.length<Z.highWaterMark||Z.flowing&&Z.length===0);){var ce=Z.length;if(l("maybeReadMore read 0"),te.read(0),ce===Z.length)break}Z.readingMore=!1}F.prototype._read=function(te){k(this,new D("_read()"))},F.prototype.pipe=function(te,Z){var ce=this,De=this._readableState;switch(De.pipesCount){case 0:De.pipes=te;break;case 1:De.pipes=[De.pipes,te];break;default:De.pipes.push(te);break}De.pipesCount+=1,l("pipe count=%d opts=%j",De.pipesCount,Z);var pe=(!Z||Z.end!==!1)&&te!==je.process.stdout&&te!==je.process.stderr,Se=pe?ve:yt;De.endEmitted?je.process.nextTick(Se):ce.once("end",Se),te.on("unpipe",st);function st(q,U){l("onunpipe"),q===ce&&U&&U.hasUnpiped===!1&&(U.hasUnpiped=!0,Me())}function ve(){l("onend"),te.end()}var Ne=A(ce);te.on("drain",Ne);var lt=!1;function Me(){l("cleanup"),te.removeListener("close",be),te.removeListener("finish",we),te.removeListener("drain",Ne),te.removeListener("error",_e),te.removeListener("unpipe",st),ce.removeListener("end",ve),ce.removeListener("end",yt),ce.removeListener("data",ye),lt=!0,De.awaitDrain&&(!te._writableState||te._writableState.needDrain)&&Ne()}ce.on("data",ye);function ye(q){l("ondata");var U=te.write(q);l("dest.write",U),U===!1&&((De.pipesCount===1&&De.pipes===te||De.pipesCount>1&&ae(De.pipes,te)!==-1)&&!lt&&(l("false write response, pause",De.awaitDrain),De.awaitDrain++),ce.pause())}function _e(q){l("onerror",q),yt(),te.removeListener("error",_e),e(te,"error")===0&&k(te,q)}z(te,"error",_e);function be(){te.removeListener("finish",we),yt()}te.once("close",be);function we(){l("onfinish"),te.removeListener("close",be),yt()}te.once("finish",we);function yt(){l("unpipe"),ce.unpipe(te)}return te.emit("pipe",ce),De.flowing||(l("pipe resume"),ce.resume()),te};function A(te){return function(){var ce=te._readableState;l("pipeOnDrain",ce.awaitDrain),ce.awaitDrain&&ce.awaitDrain--,ce.awaitDrain===0&&e(te,"data")&&(ce.flowing=!0,Q(te))}}F.prototype.unpipe=function(te){var Z=this._readableState,ce={hasUnpiped:!1};if(Z.pipesCount===0)return this;if(Z.pipesCount===1)return te&&te!==Z.pipes?this:(te||(te=Z.pipes),Z.pipes=null,Z.pipesCount=0,Z.flowing=!1,te&&te.emit("unpipe",this,ce),this);if(!te){var De=Z.pipes,pe=Z.pipesCount;Z.pipes=null,Z.pipesCount=0,Z.flowing=!1;for(var Se=0;Se<pe;Se++)De[Se].emit("unpipe",this,{hasUnpiped:!1});return this}var st=ae(Z.pipes,te);return st===-1?this:(Z.pipes.splice(st,1),Z.pipesCount-=1,Z.pipesCount===1&&(Z.pipes=Z.pipes[0]),te.emit("unpipe",this,ce),this)},F.prototype.on=function(te,Z){var ce=n.prototype.on.call(this,te,Z),De=this._readableState;return te==="data"?(De.readableListening=this.listenerCount("readable")>0,De.flowing!==!1&&this.resume()):te==="readable"&&!De.endEmitted&&!De.readableListening&&(De.readableListening=De.needReadable=!0,De.flowing=!1,De.emittedReadable=!1,l("on readable",De.length,De.reading),De.length?x(this):De.reading||je.process.nextTick(P,this)),ce},F.prototype.addListener=F.prototype.on,F.prototype.removeListener=function(te,Z){var ce=n.prototype.removeListener.call(this,te,Z);return te==="readable"&&je.process.nextTick(j,this),ce},F.prototype.removeAllListeners=function(te){var Z=n.prototype.removeAllListeners.apply(this,arguments);return(te==="readable"||te===void 0)&&je.process.nextTick(j,this),Z};function j(te){var Z=te._readableState;Z.readableListening=te.listenerCount("readable")>0,Z.resumeScheduled&&!Z.paused?Z.flowing=!0:te.listenerCount("data")>0&&te.resume()}function P(te){l("readable nexttick read 0"),te.read(0)}F.prototype.resume=function(){var te=this._readableState;return te.flowing||(l("resume"),te.flowing=!te.readableListening,$(this,te)),te.paused=!1,this};function $(te,Z){Z.resumeScheduled||(Z.resumeScheduled=!0,je.process.nextTick(K,te,Z))}function K(te,Z){l("resume",Z.reading),Z.reading||te.read(0),Z.resumeScheduled=!1,te.emit("resume"),Q(te),Z.flowing&&!Z.reading&&te.read(0)}F.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Q(te){var Z=te._readableState;for(l("flow",Z.flowing);Z.flowing&&te.read()!==null;);}F.prototype.wrap=function(te){var Z=this,ce=this._readableState,De=!1;te.on("end",function(){if(l("wrapped end"),ce.decoder&&!ce.ended){var st=ce.decoder.end();st&&st.length&&Z.push(st)}Z.push(null)}),te.on("data",function(st){if(l("wrapped data"),ce.decoder&&(st=ce.decoder.write(st)),!(ce.objectMode&&st==null)&&!(!ce.objectMode&&(!st||!st.length))){var ve=Z.push(st);ve||(De=!0,te.pause())}});for(var pe in te)this[pe]===void 0&&typeof te[pe]=="function"&&(this[pe]=function(ve){return function(){return te[ve].apply(te,arguments)}}(pe));for(var Se=0;Se<O.length;Se++)te.on(O[Se],this.emit.bind(this,O[Se]));return this._read=function(st){l("wrapped _read",st),De&&(De=!1,te.resume())},this},typeof Symbol=="function"&&(F.prototype[Symbol.asyncIterator]=function(){return N===void 0&&(N=G3e()),N(this)}),Object.defineProperty(F.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(F.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(F.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(Z){this._readableState&&(this._readableState.flowing=Z)}}),F._fromList=H,Object.defineProperty(F.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function H(te,Z){if(Z.length===0)return null;var ce;return Z.objectMode?ce=Z.buffer.shift():!te||te>=Z.length?(Z.decoder?ce=Z.buffer.join(""):Z.buffer.length===1?ce=Z.buffer.first():ce=Z.buffer.concat(Z.length),Z.buffer.clear()):ce=Z.buffer.consume(te,Z.decoder),ce}function V(te){var Z=te._readableState;l("endReadable",Z.endEmitted),Z.endEmitted||(Z.ended=!0,je.process.nextTick(J,Z,te))}function J(te,Z){if(l("endReadableNT",te.endEmitted,te.length),!te.endEmitted&&te.length===0&&(te.endEmitted=!0,Z.readable=!1,Z.emit("end"),te.autoDestroy)){var ce=Z._writableState;(!ce||ce.autoDestroy&&ce.finished)&&Z.destroy()}}typeof Symbol=="function"&&(F.from=function(te,Z){return B===void 0&&(B=$3e()),B(F,te,Z)});function ae(te,Z){for(var ce=0,De=te.length;ce<De;ce++)if(te[ce]===Z)return ce;return-1}return bw}var mw,SF;function rK(){if(SF)return mw;SF=1,mw=c;var t=a8().codes,e=t.ERR_METHOD_NOT_IMPLEMENTED,n=t.ERR_MULTIPLE_CALLBACK,r=t.ERR_TRANSFORM_ALREADY_TRANSFORMING,i=t.ERR_TRANSFORM_WITH_LENGTH_0,a=ch();mn(c,a);function s(p,m){var g=this._transformState;g.transforming=!1;var M=g.writecb;if(M===null)return this.emit("error",new n);g.writechunk=null,g.writecb=null,m!=null&&this.push(m),M(p);var C=this._readableState;C.reading=!1,(C.needReadable||C.length<C.highWaterMark)&&this._read(C.highWaterMark)}function c(p){if(!(this instanceof c))return new c(p);a.call(this,p),this._transformState={afterTransform:s.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,p&&(typeof p.transform=="function"&&(this._transform=p.transform),typeof p.flush=="function"&&(this._flush=p.flush)),this.on("prefinish",l)}function l(){var p=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(m,g){d(p,m,g)}):d(this,null,null)}c.prototype.push=function(p,m){return this._transformState.needTransform=!1,a.prototype.push.call(this,p,m)},c.prototype._transform=function(p,m,g){g(new e("_transform()"))},c.prototype._write=function(p,m,g){var M=this._transformState;if(M.writecb=g,M.writechunk=p,M.writeencoding=m,!M.transforming){var C=this._readableState;(M.needTransform||C.needReadable||C.length<C.highWaterMark)&&this._read(C.highWaterMark)}},c.prototype._read=function(p){var m=this._transformState;m.writechunk!==null&&!m.transforming?(m.transforming=!0,this._transform(m.writechunk,m.writeencoding,m.afterTransform)):m.needTransform=!0},c.prototype._destroy=function(p,m){a.prototype._destroy.call(this,p,function(g){m(g)})};function d(p,m,g){if(m)return p.emit("error",m);if(g!=null&&p.push(g),p._writableState.length)throw new i;if(p._transformState.transforming)throw new r;return p.push(null)}return mw}var yw,TF;function V3e(){if(TF)return yw;TF=1,yw=e;var t=rK();mn(e,t);function e(n){if(!(this instanceof e))return new e(n);t.call(this,n)}return e.prototype._transform=function(n,r,i){i(null,n)},yw}var gw,IF;function Q3e(){if(IF)return gw;IF=1;var t;function e(g){var M=!1;return function(){M||(M=!0,g.apply(void 0,arguments))}}var n=a8().codes,r=n.ERR_MISSING_ARGS,i=n.ERR_STREAM_DESTROYED;function a(g){if(g)throw g}function s(g){return g.setHeader&&typeof g.abort=="function"}function c(g,M,C,T){T=e(T);var D=!1;g.on("close",function(){D=!0}),t===void 0&&(t=eL()),t(g,{readable:M,writable:C},function(I){if(I)return T(I);D=!0,T()});var S=!1;return function(I){if(!D&&!S){if(S=!0,s(g))return g.abort();if(typeof g.destroy=="function")return g.destroy();T(I||new i("pipe"))}}}function l(g){g()}function d(g,M){return g.pipe(M)}function p(g){return!g.length||typeof g[g.length-1]!="function"?a:g.pop()}function m(){for(var g=arguments.length,M=new Array(g),C=0;C<g;C++)M[C]=arguments[C];var T=p(M);if(Array.isArray(M[0])&&(M=M[0]),M.length<2)throw new r("streams");var D,S=M.map(function(I,N){var B=N<M.length-1,k=N>0;return c(I,B,k,function(O){D||(D=O),O&&S.forEach(l),!B&&(S.forEach(l),T(D))})});return M.reduce(d)}return gw=m,gw}var tL=lo,nL=Jp().EventEmitter,q3e=mn;q3e(lo,nL);lo.Readable=nK();lo.Writable=tK();lo.Duplex=ch();lo.Transform=rK();lo.PassThrough=V3e();lo.finished=eL();lo.pipeline=Q3e();lo.Stream=lo;function lo(){nL.call(this)}lo.prototype.pipe=function(t,e){var n=this;function r(p){t.writable&&t.write(p)===!1&&n.pause&&n.pause()}n.on("data",r);function i(){n.readable&&n.resume&&n.resume()}t.on("drain",i),!t._isStdio&&(!e||e.end!==!1)&&(n.on("end",s),n.on("close",c));var a=!1;function s(){a||(a=!0,t.end())}function c(){a||(a=!0,typeof t.destroy=="function"&&t.destroy())}function l(p){if(d(),nL.listenerCount(this,"error")===0)throw p}n.on("error",l),t.on("error",l);function d(){n.removeListener("data",r),t.removeListener("drain",i),n.removeListener("end",s),n.removeListener("close",c),n.removeListener("error",l),t.removeListener("error",l),n.removeListener("end",d),n.removeListener("close",d),t.removeListener("close",d)}return n.on("end",d),n.on("close",d),t.on("close",d),t.emit("pipe",n),t};const BWe=$i(tL);var vw,DF;function iK(){if(DF)return vw;DF=1;var t=Tn.Buffer,e=tL.Transform,n=mn;function r(c){e.call(this),this._block=t.allocUnsafe(c),this._blockSize=c,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}n(r,e),r.prototype._transform=function(c,l,d){var p=null;try{this.update(c,l)}catch(m){p=m}d(p)},r.prototype._flush=function(c){var l=null;try{this.push(this.digest())}catch(d){l=d}c(l)};var i=typeof Uint8Array<"u",a=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(t.prototype instanceof Uint8Array||t.TYPED_ARRAY_SUPPORT);function s(c,l){if(c instanceof t)return c;if(typeof c=="string")return t.from(c,l);if(a&&ArrayBuffer.isView(c)){if(c.byteLength===0)return t.alloc(0);var d=t.from(c.buffer,c.byteOffset,c.byteLength);if(d.byteLength===c.byteLength)return d}if(i&&c instanceof Uint8Array||t.isBuffer(c)&&c.constructor&&typeof c.constructor.isBuffer=="function"&&c.constructor.isBuffer(c))return t.from(c);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}return r.prototype.update=function(c,l){if(this._finalized)throw new Error("Digest already called");c=s(c,l);for(var d=this._block,p=0;this._blockOffset+c.length-p>=this._blockSize;){for(var m=this._blockOffset;m<this._blockSize;)d[m++]=c[p++];this._update(),this._blockOffset=0}for(;p<c.length;)d[this._blockOffset++]=c[p++];for(var g=0,M=c.length*8;M>0;++g)this._length[g]+=M,M=this._length[g]/4294967296|0,M>0&&(this._length[g]-=4294967296*M);return this},r.prototype._update=function(){throw new Error("_update is not implemented")},r.prototype.digest=function(c){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var l=this._digest();c!==void 0&&(l=l.toString(c)),this._block.fill(0),this._blockOffset=0;for(var d=0;d<4;++d)this._length[d]=0;return l},r.prototype._digest=function(){throw new Error("_digest is not implemented")},vw=r,vw}var Mw,NF;function rL(){if(NF)return Mw;NF=1;var t=mn,e=iK(),n=Tn.Buffer,r=new Array(16);function i(){e.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}t(i,e),i.prototype._update=function(){for(var p=r,m=0;m<16;++m)p[m]=this._block.readInt32LE(m*4);var g=this._a,M=this._b,C=this._c,T=this._d;g=s(g,M,C,T,p[0],3614090360,7),T=s(T,g,M,C,p[1],3905402710,12),C=s(C,T,g,M,p[2],606105819,17),M=s(M,C,T,g,p[3],3250441966,22),g=s(g,M,C,T,p[4],4118548399,7),T=s(T,g,M,C,p[5],1200080426,12),C=s(C,T,g,M,p[6],2821735955,17),M=s(M,C,T,g,p[7],4249261313,22),g=s(g,M,C,T,p[8],1770035416,7),T=s(T,g,M,C,p[9],2336552879,12),C=s(C,T,g,M,p[10],4294925233,17),M=s(M,C,T,g,p[11],2304563134,22),g=s(g,M,C,T,p[12],1804603682,7),T=s(T,g,M,C,p[13],4254626195,12),C=s(C,T,g,M,p[14],2792965006,17),M=s(M,C,T,g,p[15],1236535329,22),g=c(g,M,C,T,p[1],4129170786,5),T=c(T,g,M,C,p[6],3225465664,9),C=c(C,T,g,M,p[11],643717713,14),M=c(M,C,T,g,p[0],3921069994,20),g=c(g,M,C,T,p[5],3593408605,5),T=c(T,g,M,C,p[10],38016083,9),C=c(C,T,g,M,p[15],3634488961,14),M=c(M,C,T,g,p[4],3889429448,20),g=c(g,M,C,T,p[9],568446438,5),T=c(T,g,M,C,p[14],3275163606,9),C=c(C,T,g,M,p[3],4107603335,14),M=c(M,C,T,g,p[8],1163531501,20),g=c(g,M,C,T,p[13],2850285829,5),T=c(T,g,M,C,p[2],4243563512,9),C=c(C,T,g,M,p[7],1735328473,14),M=c(M,C,T,g,p[12],2368359562,20),g=l(g,M,C,T,p[5],4294588738,4),T=l(T,g,M,C,p[8],2272392833,11),C=l(C,T,g,M,p[11],1839030562,16),M=l(M,C,T,g,p[14],4259657740,23),g=l(g,M,C,T,p[1],2763975236,4),T=l(T,g,M,C,p[4],1272893353,11),C=l(C,T,g,M,p[7],4139469664,16),M=l(M,C,T,g,p[10],3200236656,23),g=l(g,M,C,T,p[13],681279174,4),T=l(T,g,M,C,p[0],3936430074,11),C=l(C,T,g,M,p[3],3572445317,16),M=l(M,C,T,g,p[6],76029189,23),g=l(g,M,C,T,p[9],3654602809,4),T=l(T,g,M,C,p[12],3873151461,11),C=l(C,T,g,M,p[15],530742520,16),M=l(M,C,T,g,p[2],3299628645,23),g=d(g,M,C,T,p[0],4096336452,6),T=d(T,g,M,C,p[7],1126891415,10),C=d(C,T,g,M,p[14],2878612391,15),M=d(M,C,T,g,p[5],4237533241,21),g=d(g,M,C,T,p[12],1700485571,6),T=d(T,g,M,C,p[3],2399980690,10),C=d(C,T,g,M,p[10],4293915773,15),M=d(M,C,T,g,p[1],2240044497,21),g=d(g,M,C,T,p[8],1873313359,6),T=d(T,g,M,C,p[15],4264355552,10),C=d(C,T,g,M,p[6],2734768916,15),M=d(M,C,T,g,p[13],1309151649,21),g=d(g,M,C,T,p[4],4149444226,6),T=d(T,g,M,C,p[11],3174756917,10),C=d(C,T,g,M,p[2],718787259,15),M=d(M,C,T,g,p[9],3951481745,21),this._a=this._a+g|0,this._b=this._b+M|0,this._c=this._c+C|0,this._d=this._d+T|0},i.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var p=n.allocUnsafe(16);return p.writeInt32LE(this._a,0),p.writeInt32LE(this._b,4),p.writeInt32LE(this._c,8),p.writeInt32LE(this._d,12),p};function a(p,m){return p<<m|p>>>32-m}function s(p,m,g,M,C,T,D){return a(p+(m&g|~m&M)+C+T|0,D)+m|0}function c(p,m,g,M,C,T,D){return a(p+(m&M|g&~M)+C+T|0,D)+m|0}function l(p,m,g,M,C,T,D){return a(p+(m^g^M)+C+T|0,D)+m|0}function d(p,m,g,M,C,T,D){return a(p+(g^(m|~M))+C+T|0,D)+m|0}return Mw=i,Mw}var xw,LF;function iL(){if(LF)return xw;LF=1;var t=wt.Buffer,e=mn,n=iK(),r=new Array(16),i=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],a=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],s=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],c=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],l=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0];function p(){n.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}e(p,n),p.prototype._update=function(){for(var S=r,I=0;I<16;++I)S[I]=this._block.readInt32LE(I*4);for(var N=this._a|0,B=this._b|0,k=this._c|0,O=this._d|0,z=this._e|0,_=this._a|0,F=this._b|0,R=this._c|0,w=this._d|0,o=this._e|0,u=0;u<80;u+=1){var h,b;u<16?(h=g(N,B,k,O,z,S[i[u]],l[0],s[u]),b=D(_,F,R,w,o,S[a[u]],d[0],c[u])):u<32?(h=M(N,B,k,O,z,S[i[u]],l[1],s[u]),b=T(_,F,R,w,o,S[a[u]],d[1],c[u])):u<48?(h=C(N,B,k,O,z,S[i[u]],l[2],s[u]),b=C(_,F,R,w,o,S[a[u]],d[2],c[u])):u<64?(h=T(N,B,k,O,z,S[i[u]],l[3],s[u]),b=M(_,F,R,w,o,S[a[u]],d[3],c[u])):(h=D(N,B,k,O,z,S[i[u]],l[4],s[u]),b=g(_,F,R,w,o,S[a[u]],d[4],c[u])),N=z,z=O,O=m(k,10),k=B,B=h,_=o,o=w,w=m(R,10),R=F,F=b}var y=this._b+k+w|0;this._b=this._c+O+o|0,this._c=this._d+z+_|0,this._d=this._e+N+F|0,this._e=this._a+B+R|0,this._a=y},p.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var S=t.alloc?t.alloc(20):new t(20);return S.writeInt32LE(this._a,0),S.writeInt32LE(this._b,4),S.writeInt32LE(this._c,8),S.writeInt32LE(this._d,12),S.writeInt32LE(this._e,16),S};function m(S,I){return S<<I|S>>>32-I}function g(S,I,N,B,k,O,z,_){return m(S+(I^N^B)+O+z|0,_)+k|0}function M(S,I,N,B,k,O,z,_){return m(S+(I&N|~I&B)+O+z|0,_)+k|0}function C(S,I,N,B,k,O,z,_){return m(S+((I|~N)^B)+O+z|0,_)+k|0}function T(S,I,N,B,k,O,z,_){return m(S+(I&B|N&~B)+O+z|0,_)+k|0}function D(S,I,N,B,k,O,z,_){return m(S+(I^(N|~B))+O+z|0,_)+k|0}return xw=p,xw}var ww={exports:{}},Aw,BF;function s8(){if(BF)return Aw;BF=1;var t=Tn.Buffer;function e(n,r){this._block=t.alloc(n),this._finalSize=r,this._blockSize=n,this._len=0}return e.prototype.update=function(n,r){typeof n=="string"&&(r=r||"utf8",n=t.from(n,r));for(var i=this._block,a=this._blockSize,s=n.length,c=this._len,l=0;l<s;){for(var d=c%a,p=Math.min(s-l,a-d),m=0;m<p;m++)i[d+m]=n[l+m];c+=p,l+=p,c%a===0&&this._update(i)}return this._len+=s,this},e.prototype.digest=function(n){var r=this._len%this._blockSize;this._block[r]=128,this._block.fill(0,r+1),r>=this._finalSize&&(this._update(this._block),this._block.fill(0));var i=this._len*8;if(i<=4294967295)this._block.writeUInt32BE(i,this._blockSize-4);else{var a=(i&4294967295)>>>0,s=(i-a)/4294967296;this._block.writeUInt32BE(s,this._blockSize-8),this._block.writeUInt32BE(a,this._blockSize-4)}this._update(this._block);var c=this._hash();return n?c.toString(n):c},e.prototype._update=function(){throw new Error("_update must be implemented by subclass")},Aw=e,Aw}var Cw,jF;function Z3e(){if(jF)return Cw;jF=1;var t=mn,e=s8(),n=Tn.Buffer,r=[1518500249,1859775393,-1894007588,-899497514],i=new Array(80);function a(){this.init(),this._w=i,e.call(this,64,56)}t(a,e),a.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function s(d){return d<<5|d>>>27}function c(d){return d<<30|d>>>2}function l(d,p,m,g){return d===0?p&m|~p&g:d===2?p&m|p&g|m&g:p^m^g}return a.prototype._update=function(d){for(var p=this._w,m=this._a|0,g=this._b|0,M=this._c|0,C=this._d|0,T=this._e|0,D=0;D<16;++D)p[D]=d.readInt32BE(D*4);for(;D<80;++D)p[D]=p[D-3]^p[D-8]^p[D-14]^p[D-16];for(var S=0;S<80;++S){var I=~~(S/20),N=s(m)+l(I,g,M,C)+T+p[S]+r[I]|0;T=C,C=M,M=c(g),g=m,m=N}this._a=m+this._a|0,this._b=g+this._b|0,this._c=M+this._c|0,this._d=C+this._d|0,this._e=T+this._e|0},a.prototype._hash=function(){var d=n.allocUnsafe(20);return d.writeInt32BE(this._a|0,0),d.writeInt32BE(this._b|0,4),d.writeInt32BE(this._c|0,8),d.writeInt32BE(this._d|0,12),d.writeInt32BE(this._e|0,16),d},Cw=a,Cw}var Ew,kF;function K3e(){if(kF)return Ew;kF=1;var t=mn,e=s8(),n=Tn.Buffer,r=[1518500249,1859775393,-1894007588,-899497514],i=new Array(80);function a(){this.init(),this._w=i,e.call(this,64,56)}t(a,e),a.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function s(p){return p<<1|p>>>31}function c(p){return p<<5|p>>>27}function l(p){return p<<30|p>>>2}function d(p,m,g,M){return p===0?m&g|~m&M:p===2?m&g|m&M|g&M:m^g^M}return a.prototype._update=function(p){for(var m=this._w,g=this._a|0,M=this._b|0,C=this._c|0,T=this._d|0,D=this._e|0,S=0;S<16;++S)m[S]=p.readInt32BE(S*4);for(;S<80;++S)m[S]=s(m[S-3]^m[S-8]^m[S-14]^m[S-16]);for(var I=0;I<80;++I){var N=~~(I/20),B=c(g)+d(N,M,C,T)+D+m[I]+r[N]|0;D=T,T=C,C=l(M),M=g,g=B}this._a=g+this._a|0,this._b=M+this._b|0,this._c=C+this._c|0,this._d=T+this._d|0,this._e=D+this._e|0},a.prototype._hash=function(){var p=n.allocUnsafe(20);return p.writeInt32BE(this._a|0,0),p.writeInt32BE(this._b|0,4),p.writeInt32BE(this._c|0,8),p.writeInt32BE(this._d|0,12),p.writeInt32BE(this._e|0,16),p},Ew=a,Ew}var Sw,_F;function aK(){if(_F)return Sw;_F=1;var t=mn,e=s8(),n=Tn.Buffer,r=[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],i=new Array(64);function a(){this.init(),this._w=i,e.call(this,64,56)}t(a,e),a.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function s(g,M,C){return C^g&(M^C)}function c(g,M,C){return g&M|C&(g|M)}function l(g){return(g>>>2|g<<30)^(g>>>13|g<<19)^(g>>>22|g<<10)}function d(g){return(g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7)}function p(g){return(g>>>7|g<<25)^(g>>>18|g<<14)^g>>>3}function m(g){return(g>>>17|g<<15)^(g>>>19|g<<13)^g>>>10}return a.prototype._update=function(g){for(var M=this._w,C=this._a|0,T=this._b|0,D=this._c|0,S=this._d|0,I=this._e|0,N=this._f|0,B=this._g|0,k=this._h|0,O=0;O<16;++O)M[O]=g.readInt32BE(O*4);for(;O<64;++O)M[O]=m(M[O-2])+M[O-7]+p(M[O-15])+M[O-16]|0;for(var z=0;z<64;++z){var _=k+d(I)+s(I,N,B)+r[z]+M[z]|0,F=l(C)+c(C,T,D)|0;k=B,B=N,N=I,I=S+_|0,S=D,D=T,T=C,C=_+F|0}this._a=C+this._a|0,this._b=T+this._b|0,this._c=D+this._c|0,this._d=S+this._d|0,this._e=I+this._e|0,this._f=N+this._f|0,this._g=B+this._g|0,this._h=k+this._h|0},a.prototype._hash=function(){var g=n.allocUnsafe(32);return g.writeInt32BE(this._a,0),g.writeInt32BE(this._b,4),g.writeInt32BE(this._c,8),g.writeInt32BE(this._d,12),g.writeInt32BE(this._e,16),g.writeInt32BE(this._f,20),g.writeInt32BE(this._g,24),g.writeInt32BE(this._h,28),g},Sw=a,Sw}var Tw,OF;function X3e(){if(OF)return Tw;OF=1;var t=mn,e=aK(),n=s8(),r=Tn.Buffer,i=new Array(64);function a(){this.init(),this._w=i,n.call(this,64,56)}return t(a,e),a.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},a.prototype._hash=function(){var s=r.allocUnsafe(28);return s.writeInt32BE(this._a,0),s.writeInt32BE(this._b,4),s.writeInt32BE(this._c,8),s.writeInt32BE(this._d,12),s.writeInt32BE(this._e,16),s.writeInt32BE(this._f,20),s.writeInt32BE(this._g,24),s},Tw=a,Tw}var Iw,FF;function sK(){if(FF)return Iw;FF=1;var t=mn,e=s8(),n=Tn.Buffer,r=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],i=new Array(160);function a(){this.init(),this._w=i,e.call(this,128,112)}t(a,e),a.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function s(T,D,S){return S^T&(D^S)}function c(T,D,S){return T&D|S&(T|D)}function l(T,D){return(T>>>28|D<<4)^(D>>>2|T<<30)^(D>>>7|T<<25)}function d(T,D){return(T>>>14|D<<18)^(T>>>18|D<<14)^(D>>>9|T<<23)}function p(T,D){return(T>>>1|D<<31)^(T>>>8|D<<24)^T>>>7}function m(T,D){return(T>>>1|D<<31)^(T>>>8|D<<24)^(T>>>7|D<<25)}function g(T,D){return(T>>>19|D<<13)^(D>>>29|T<<3)^T>>>6}function M(T,D){return(T>>>19|D<<13)^(D>>>29|T<<3)^(T>>>6|D<<26)}function C(T,D){return T>>>0<D>>>0?1:0}return a.prototype._update=function(T){for(var D=this._w,S=this._ah|0,I=this._bh|0,N=this._ch|0,B=this._dh|0,k=this._eh|0,O=this._fh|0,z=this._gh|0,_=this._hh|0,F=this._al|0,R=this._bl|0,w=this._cl|0,o=this._dl|0,u=this._el|0,h=this._fl|0,b=this._gl|0,y=this._hl|0,x=0;x<32;x+=2)D[x]=T.readInt32BE(x*4),D[x+1]=T.readInt32BE(x*4+4);for(;x<160;x+=2){var E=D[x-30],v=D[x-15*2+1],f=p(E,v),A=m(v,E);E=D[x-2*2],v=D[x-2*2+1];var j=g(E,v),P=M(v,E),$=D[x-7*2],K=D[x-7*2+1],Q=D[x-16*2],H=D[x-16*2+1],V=A+K|0,J=f+$+C(V,A)|0;V=V+P|0,J=J+j+C(V,P)|0,V=V+H|0,J=J+Q+C(V,H)|0,D[x]=J,D[x+1]=V}for(var ae=0;ae<160;ae+=2){J=D[ae],V=D[ae+1];var te=c(S,I,N),Z=c(F,R,w),ce=l(S,F),De=l(F,S),pe=d(k,u),Se=d(u,k),st=r[ae],ve=r[ae+1],Ne=s(k,O,z),lt=s(u,h,b),Me=y+Se|0,ye=_+pe+C(Me,y)|0;Me=Me+lt|0,ye=ye+Ne+C(Me,lt)|0,Me=Me+ve|0,ye=ye+st+C(Me,ve)|0,Me=Me+V|0,ye=ye+J+C(Me,V)|0;var _e=De+Z|0,be=ce+te+C(_e,De)|0;_=z,y=b,z=O,b=h,O=k,h=u,u=o+Me|0,k=B+ye+C(u,o)|0,B=N,o=w,N=I,w=R,I=S,R=F,F=Me+_e|0,S=ye+be+C(F,Me)|0}this._al=this._al+F|0,this._bl=this._bl+R|0,this._cl=this._cl+w|0,this._dl=this._dl+o|0,this._el=this._el+u|0,this._fl=this._fl+h|0,this._gl=this._gl+b|0,this._hl=this._hl+y|0,this._ah=this._ah+S+C(this._al,F)|0,this._bh=this._bh+I+C(this._bl,R)|0,this._ch=this._ch+N+C(this._cl,w)|0,this._dh=this._dh+B+C(this._dl,o)|0,this._eh=this._eh+k+C(this._el,u)|0,this._fh=this._fh+O+C(this._fl,h)|0,this._gh=this._gh+z+C(this._gl,b)|0,this._hh=this._hh+_+C(this._hl,y)|0},a.prototype._hash=function(){var T=n.allocUnsafe(64);function D(S,I,N){T.writeInt32BE(S,N),T.writeInt32BE(I,N+4)}return D(this._ah,this._al,0),D(this._bh,this._bl,8),D(this._ch,this._cl,16),D(this._dh,this._dl,24),D(this._eh,this._el,32),D(this._fh,this._fl,40),D(this._gh,this._gl,48),D(this._hh,this._hl,56),T},Iw=a,Iw}var Dw,zF;function J3e(){if(zF)return Dw;zF=1;var t=mn,e=sK(),n=s8(),r=Tn.Buffer,i=new Array(160);function a(){this.init(),this._w=i,n.call(this,128,112)}return t(a,e),a.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},a.prototype._hash=function(){var s=r.allocUnsafe(48);function c(l,d,p){s.writeInt32BE(l,p),s.writeInt32BE(d,p+4)}return c(this._ah,this._al,0),c(this._bh,this._bl,8),c(this._ch,this._cl,16),c(this._dh,this._dl,24),c(this._eh,this._el,32),c(this._fh,this._fl,40),s},Dw=a,Dw}var RF;function aL(){if(RF)return ww.exports;RF=1;var t=ww.exports=function(n){n=n.toLowerCase();var r=t[n];if(!r)throw new Error(n+" is not supported (we accept pull requests)");return new r};return t.sha=Z3e(),t.sha1=K3e(),t.sha224=X3e(),t.sha256=aK(),t.sha384=J3e(),t.sha512=sK(),ww.exports}var Nw,PF;function sf(){if(PF)return Nw;PF=1;var t=Tn.Buffer,e=tL.Transform,n=uT().StringDecoder,r=mn;function i(l){e.call(this),this.hashMode=typeof l=="string",this.hashMode?this[l]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(i,e);var a=typeof Uint8Array<"u",s=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(t.prototype instanceof Uint8Array||t.TYPED_ARRAY_SUPPORT);function c(l,d){if(l instanceof t)return l;if(typeof l=="string")return t.from(l,d);if(s&&ArrayBuffer.isView(l)){if(l.byteLength===0)return t.alloc(0);var p=t.from(l.buffer,l.byteOffset,l.byteLength);if(p.byteLength===l.byteLength)return p}if(a&&l instanceof Uint8Array||t.isBuffer(l)&&l.constructor&&typeof l.constructor.isBuffer=="function"&&l.constructor.isBuffer(l))return t.from(l);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}return i.prototype.update=function(l,d,p){var m=c(l,d),g=this._update(m);return this.hashMode?this:(p&&(g=this._toString(g,p)),g)},i.prototype.setAutoPadding=function(){},i.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},i.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},i.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},i.prototype._transform=function(l,d,p){var m;try{this.hashMode?this._update(l):this.push(this._update(l))}catch(g){m=g}finally{p(m)}},i.prototype._flush=function(l){var d;try{this.push(this.__final())}catch(p){d=p}l(d)},i.prototype._finalOrDigest=function(l){var d=this.__final()||t.alloc(0);return l&&(d=this._toString(d,l,!0)),d},i.prototype._toString=function(l,d,p){if(this._decoder||(this._decoder=new n(d),this._encoding=d),this._encoding!==d)throw new Error("can’t switch encodings");var m=this._decoder.write(l);return p&&(m+=this._decoder.end()),m},Nw=i,Nw}var Lw,UF;function tb(){if(UF)return Lw;UF=1;var t=mn,e=rL(),n=iL(),r=aL(),i=sf();function a(s){i.call(this,"digest"),this._hash=s}return t(a,i),a.prototype._update=function(s){this._hash.update(s)},a.prototype._final=function(){return this._hash.digest()},Lw=function(c){return c=c.toLowerCase(),c==="md5"?new e:c==="rmd160"||c==="ripemd160"?new n:new a(r(c))},Lw}var Bw,HF;function e4e(){if(HF)return Bw;HF=1;var t=mn,e=Tn.Buffer,n=sf(),r=e.alloc(128),i=64;function a(s,c){n.call(this,"digest"),typeof c=="string"&&(c=e.from(c)),this._alg=s,this._key=c,c.length>i?c=s(c):c.length<i&&(c=e.concat([c,r],i));for(var l=this._ipad=e.allocUnsafe(i),d=this._opad=e.allocUnsafe(i),p=0;p<i;p++)l[p]=c[p]^54,d[p]=c[p]^92;this._hash=[l]}return t(a,n),a.prototype._update=function(s){this._hash.push(s)},a.prototype._final=function(){var s=this._alg(e.concat(this._hash));return this._alg(e.concat([this._opad,s]))},Bw=a,Bw}var jw,WF;function oK(){if(WF)return jw;WF=1;var t=rL();return jw=function(e){return new t().update(e).digest()},jw}var kw,YF;function cK(){if(YF)return kw;YF=1;var t=mn,e=e4e(),n=sf(),r=Tn.Buffer,i=oK(),a=iL(),s=aL(),c=r.alloc(128);function l(d,p){n.call(this,"digest"),typeof p=="string"&&(p=r.from(p));var m=d==="sha512"||d==="sha384"?128:64;if(this._alg=d,this._key=p,p.length>m){var g=d==="rmd160"?new a:s(d);p=g.update(p).digest()}else p.length<m&&(p=r.concat([p,c],m));for(var M=this._ipad=r.allocUnsafe(m),C=this._opad=r.allocUnsafe(m),T=0;T<m;T++)M[T]=p[T]^54,C[T]=p[T]^92;this._hash=d==="rmd160"?new a:s(d),this._hash.update(M)}return t(l,n),l.prototype._update=function(d){this._hash.update(d)},l.prototype._final=function(){var d=this._hash.digest(),p=this._alg==="rmd160"?new a:s(this._alg);return p.update(this._opad).update(d).digest()},kw=function(p,m){return p=p.toLowerCase(),p==="rmd160"||p==="ripemd160"?new l("rmd160",m):p==="md5"?new e(i,m):new l(p,m)},kw}const t4e={sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},n4e={sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},r4e={sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},i4e={sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},a4e={sign:"ecdsa",hash:"sha256",id:""},s4e={sign:"ecdsa",hash:"sha224",id:""},o4e={sign:"ecdsa",hash:"sha384",id:""},c4e={sign:"ecdsa",hash:"sha512",id:""},l4e={sign:"dsa",hash:"sha1",id:""},u4e={sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},f4e={sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},lK={sha224WithRSAEncryption:t4e,"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:n4e,"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:r4e,"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:i4e,"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:a4e,sha224:s4e,sha384:o4e,sha512:c4e,"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:l4e,"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:u4e,"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:f4e,"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}};var _w,GF;function d4e(){return GF||(GF=1,_w=lK),_w}var l9={},Ow,$F;function uK(){if($F)return Ow;$F=1;var t=Math.pow(2,30)-1;return Ow=function(e,n){if(typeof e!="number")throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if(typeof n!="number")throw new TypeError("Key length not a number");if(n<0||n>t||n!==n)throw new TypeError("Bad key length")},Ow}var Fw,VF;function fK(){if(VF)return Fw;VF=1;var t;if(Kt.process&&Kt.process.browser)t="utf-8";else if(Kt.process&&Kt.process.version){var e=parseInt(je.process.version.split(".")[0].slice(1),10);t=e>=6?"utf-8":"binary"}else t="utf-8";return Fw=t,Fw}var zw,QF;function dK(){if(QF)return zw;QF=1;var t=Tn.Buffer;return zw=function(e,n,r){if(t.isBuffer(e))return e;if(typeof e=="string")return t.from(e,n);if(ArrayBuffer.isView(e))return t.from(e.buffer);throw new TypeError(r+" must be a string, a Buffer, a typed array or a DataView")},zw}var Rw,qF;function hK(){if(qF)return Rw;qF=1;var t=oK(),e=iL(),n=aL(),r=Tn.Buffer,i=uK(),a=fK(),s=dK(),c=r.alloc(128),l={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function d(g,M,C){var T=p(g),D=g==="sha512"||g==="sha384"?128:64;M.length>D?M=T(M):M.length<D&&(M=r.concat([M,c],D));for(var S=r.allocUnsafe(D+l[g]),I=r.allocUnsafe(D+l[g]),N=0;N<D;N++)S[N]=M[N]^54,I[N]=M[N]^92;var B=r.allocUnsafe(D+C+4);S.copy(B,0,0,D),this.ipad1=B,this.ipad2=S,this.opad=I,this.alg=g,this.blocksize=D,this.hash=T,this.size=l[g]}d.prototype.run=function(g,M){g.copy(M,this.blocksize);var C=this.hash(M);return C.copy(this.opad,this.blocksize),this.hash(this.opad)};function p(g){function M(T){return n(g).update(T).digest()}function C(T){return new e().update(T).digest()}return g==="rmd160"||g==="ripemd160"?C:g==="md5"?t:M}function m(g,M,C,T,D){i(C,T),g=s(g,a,"Password"),M=s(M,a,"Salt"),D=D||"sha1";var S=new d(D,g,M.length),I=r.allocUnsafe(T),N=r.allocUnsafe(M.length+4);M.copy(N,0,0,M.length);for(var B=0,k=l[D],O=Math.ceil(T/k),z=1;z<=O;z++){N.writeUInt32BE(z,M.length);for(var _=S.run(N,S.ipad1),F=_,R=1;R<C;R++){F=S.run(F,S.ipad2);for(var w=0;w<k;w++)_[w]^=F[w]}_.copy(I,B),B+=k}return I}return Rw=m,Rw}var Pw,ZF;function h4e(){if(ZF)return Pw;ZF=1;var t=Tn.Buffer,e=uK(),n=fK(),r=hK(),i=dK(),a,s=Kt.crypto&&Kt.crypto.subtle,c={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},l=[];function d(C){if(Kt.process&&!Kt.process.browser||!s||!s.importKey||!s.deriveBits)return Promise.resolve(!1);if(l[C]!==void 0)return l[C];a=a||t.alloc(8);var T=g(a,a,10,128,C).then(function(){return!0}).catch(function(){return!1});return l[C]=T,T}var p;function m(){return p||(Kt.process&&Kt.process.nextTick?p=Kt.process.nextTick:Kt.queueMicrotask?p=Kt.queueMicrotask:Kt.setImmediate?p=Kt.setImmediate:p=Kt.setTimeout,p)}function g(C,T,D,S,I){return s.importKey("raw",C,{name:"PBKDF2"},!1,["deriveBits"]).then(function(N){return s.deriveBits({name:"PBKDF2",salt:T,iterations:D,hash:{name:I}},N,S<<3)}).then(function(N){return t.from(N)})}function M(C,T){C.then(function(D){m()(function(){T(null,D)})},function(D){m()(function(){T(D)})})}return Pw=function(C,T,D,S,I,N){typeof I=="function"&&(N=I,I=void 0),I=I||"sha1";var B=c[I.toLowerCase()];if(!B||typeof Kt.Promise!="function"){m()(function(){var k;try{k=r(C,T,D,S,I)}catch(O){return N(O)}N(null,k)});return}if(e(D,S),C=i(C,n,"Password"),T=i(T,n,"Salt"),typeof N!="function")throw new Error("No callback provided to pbkdf2");M(d(B).then(function(k){return k?g(C,T,D,S,B):r(C,T,D,S,I)}),N)},Pw}var KF;function pK(){return KF||(KF=1,l9.pbkdf2=h4e(),l9.pbkdf2Sync=hK()),l9}var ys={},mf={},Ua={},XF;function bK(){if(XF)return Ua;XF=1,Ua.readUInt32BE=function(i,a){var s=i[0+a]<<24|i[1+a]<<16|i[2+a]<<8|i[3+a];return s>>>0},Ua.writeUInt32BE=function(i,a,s){i[0+s]=a>>>24,i[1+s]=a>>>16&255,i[2+s]=a>>>8&255,i[3+s]=a&255},Ua.ip=function(i,a,s,c){for(var l=0,d=0,p=6;p>=0;p-=2){for(var m=0;m<=24;m+=8)l<<=1,l|=a>>>m+p&1;for(var m=0;m<=24;m+=8)l<<=1,l|=i>>>m+p&1}for(var p=6;p>=0;p-=2){for(var m=1;m<=25;m+=8)d<<=1,d|=a>>>m+p&1;for(var m=1;m<=25;m+=8)d<<=1,d|=i>>>m+p&1}s[c+0]=l>>>0,s[c+1]=d>>>0},Ua.rip=function(i,a,s,c){for(var l=0,d=0,p=0;p<4;p++)for(var m=24;m>=0;m-=8)l<<=1,l|=a>>>m+p&1,l<<=1,l|=i>>>m+p&1;for(var p=4;p<8;p++)for(var m=24;m>=0;m-=8)d<<=1,d|=a>>>m+p&1,d<<=1,d|=i>>>m+p&1;s[c+0]=l>>>0,s[c+1]=d>>>0},Ua.pc1=function(i,a,s,c){for(var l=0,d=0,p=7;p>=5;p--){for(var m=0;m<=24;m+=8)l<<=1,l|=a>>m+p&1;for(var m=0;m<=24;m+=8)l<<=1,l|=i>>m+p&1}for(var m=0;m<=24;m+=8)l<<=1,l|=a>>m+p&1;for(var p=1;p<=3;p++){for(var m=0;m<=24;m+=8)d<<=1,d|=a>>m+p&1;for(var m=0;m<=24;m+=8)d<<=1,d|=i>>m+p&1}for(var m=0;m<=24;m+=8)d<<=1,d|=i>>m+p&1;s[c+0]=l>>>0,s[c+1]=d>>>0},Ua.r28shl=function(i,a){return i<<a&268435455|i>>>28-a};var t=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];Ua.pc2=function(i,a,s,c){for(var l=0,d=0,p=t.length>>>1,m=0;m<p;m++)l<<=1,l|=i>>>t[m]&1;for(var m=p;m<t.length;m++)d<<=1,d|=a>>>t[m]&1;s[c+0]=l>>>0,s[c+1]=d>>>0},Ua.expand=function(i,a,s){var c=0,l=0;c=(i&1)<<5|i>>>27;for(var d=23;d>=15;d-=4)c<<=6,c|=i>>>d&63;for(var d=11;d>=3;d-=4)l|=i>>>d&63,l<<=6;l|=(i&31)<<1|i>>>31,a[s+0]=c>>>0,a[s+1]=l>>>0};var e=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];Ua.substitute=function(i,a){for(var s=0,c=0;c<4;c++){var l=i>>>18-c*6&63,d=e[c*64+l];s<<=4,s|=d}for(var c=0;c<4;c++){var l=a>>>18-c*6&63,d=e[4*64+c*64+l];s<<=4,s|=d}return s>>>0};var n=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];return Ua.permute=function(i){for(var a=0,s=0;s<n.length;s++)a<<=1,a|=i>>>n[s]&1;return a>>>0},Ua.padSplit=function(i,a,s){for(var c=i.toString(2);c.length<a;)c="0"+c;for(var l=[],d=0;d<a;d+=s)l.push(c.slice(d,d+s));return l.join(" ")},Ua}var go=mK;function mK(t,e){if(!t)throw new Error(e||"Assertion failed")}mK.equal=function(e,n,r){if(e!=n)throw new Error(r||"Assertion failed: "+e+" != "+n)};var Uw,JF;function sL(){if(JF)return Uw;JF=1;var t=go;function e(n){this.options=n,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=n.padding!==!1}return Uw=e,e.prototype._init=function(){},e.prototype.update=function(r){return r.length===0?[]:this.type==="decrypt"?this._updateDecrypt(r):this._updateEncrypt(r)},e.prototype._buffer=function(r,i){for(var a=Math.min(this.buffer.length-this.bufferOff,r.length-i),s=0;s<a;s++)this.buffer[this.bufferOff+s]=r[i+s];return this.bufferOff+=a,a},e.prototype._flushBuffer=function(r,i){return this._update(this.buffer,0,r,i),this.bufferOff=0,this.blockSize},e.prototype._updateEncrypt=function(r){var i=0,a=0,s=(this.bufferOff+r.length)/this.blockSize|0,c=new Array(s*this.blockSize);this.bufferOff!==0&&(i+=this._buffer(r,i),this.bufferOff===this.buffer.length&&(a+=this._flushBuffer(c,a)));for(var l=r.length-(r.length-i)%this.blockSize;i<l;i+=this.blockSize)this._update(r,i,c,a),a+=this.blockSize;for(;i<r.length;i++,this.bufferOff++)this.buffer[this.bufferOff]=r[i];return c},e.prototype._updateDecrypt=function(r){for(var i=0,a=0,s=Math.ceil((this.bufferOff+r.length)/this.blockSize)-1,c=new Array(s*this.blockSize);s>0;s--)i+=this._buffer(r,i),a+=this._flushBuffer(c,a);return i+=this._buffer(r,i),c},e.prototype.final=function(r){var i;r&&(i=this.update(r));var a;return this.type==="encrypt"?a=this._finalEncrypt():a=this._finalDecrypt(),i?i.concat(a):a},e.prototype._pad=function(r,i){if(i===0)return!1;for(;i<r.length;)r[i++]=0;return!0},e.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var r=new Array(this.blockSize);return this._update(this.buffer,0,r,0),r},e.prototype._unpad=function(r){return r},e.prototype._finalDecrypt=function(){t.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var r=new Array(this.blockSize);return this._flushBuffer(r,0),this._unpad(r)},Uw}var Hw,ez;function yK(){if(ez)return Hw;ez=1;var t=go,e=mn,n=bK(),r=sL();function i(){this.tmp=new Array(2),this.keys=null}function a(c){r.call(this,c);var l=new i;this._desState=l,this.deriveKeys(l,c.key)}e(a,r),Hw=a,a.create=function(l){return new a(l)};var s=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];return a.prototype.deriveKeys=function(l,d){l.keys=new Array(16*2),t.equal(d.length,this.blockSize,"Invalid key length");var p=n.readUInt32BE(d,0),m=n.readUInt32BE(d,4);n.pc1(p,m,l.tmp,0),p=l.tmp[0],m=l.tmp[1];for(var g=0;g<l.keys.length;g+=2){var M=s[g>>>1];p=n.r28shl(p,M),m=n.r28shl(m,M),n.pc2(p,m,l.keys,g)}},a.prototype._update=function(l,d,p,m){var g=this._desState,M=n.readUInt32BE(l,d),C=n.readUInt32BE(l,d+4);n.ip(M,C,g.tmp,0),M=g.tmp[0],C=g.tmp[1],this.type==="encrypt"?this._encrypt(g,M,C,g.tmp,0):this._decrypt(g,M,C,g.tmp,0),M=g.tmp[0],C=g.tmp[1],n.writeUInt32BE(p,M,m),n.writeUInt32BE(p,C,m+4)},a.prototype._pad=function(l,d){if(this.padding===!1)return!1;for(var p=l.length-d,m=d;m<l.length;m++)l[m]=p;return!0},a.prototype._unpad=function(l){if(this.padding===!1)return l;for(var d=l[l.length-1],p=l.length-d;p<l.length;p++)t.equal(l[p],d);return l.slice(0,l.length-d)},a.prototype._encrypt=function(l,d,p,m,g){for(var M=d,C=p,T=0;T<l.keys.length;T+=2){var D=l.keys[T],S=l.keys[T+1];n.expand(C,l.tmp,0),D^=l.tmp[0],S^=l.tmp[1];var I=n.substitute(D,S),N=n.permute(I),B=C;C=(M^N)>>>0,M=B}n.rip(C,M,m,g)},a.prototype._decrypt=function(l,d,p,m,g){for(var M=p,C=d,T=l.keys.length-2;T>=0;T-=2){var D=l.keys[T],S=l.keys[T+1];n.expand(M,l.tmp,0),D^=l.tmp[0],S^=l.tmp[1];var I=n.substitute(D,S),N=n.permute(I),B=M;M=(C^N)>>>0,C=B}n.rip(M,C,m,g)},Hw}var Ww={},tz;function p4e(){if(tz)return Ww;tz=1;var t=go,e=mn,n={};function r(a){t.equal(a.length,8,"Invalid IV length"),this.iv=new Array(8);for(var s=0;s<this.iv.length;s++)this.iv[s]=a[s]}function i(a){function s(p){a.call(this,p),this._cbcInit()}e(s,a);for(var c=Object.keys(n),l=0;l<c.length;l++){var d=c[l];s.prototype[d]=n[d]}return s.create=function(m){return new s(m)},s}return Ww.instantiate=i,n._cbcInit=function(){var s=new r(this.options.iv);this._cbcState=s},n._update=function(s,c,l,d){var p=this._cbcState,m=this.constructor.super_.prototype,g=p.iv;if(this.type==="encrypt"){for(var M=0;M<this.blockSize;M++)g[M]^=s[c+M];m._update.call(this,g,0,l,d);for(var M=0;M<this.blockSize;M++)g[M]=l[d+M]}else{m._update.call(this,s,c,l,d);for(var M=0;M<this.blockSize;M++)l[d+M]^=g[M];for(var M=0;M<this.blockSize;M++)g[M]=s[c+M]}},Ww}var Yw,nz;function b4e(){if(nz)return Yw;nz=1;var t=go,e=mn,n=sL(),r=yK();function i(s,c){t.equal(c.length,24,"Invalid key length");var l=c.slice(0,8),d=c.slice(8,16),p=c.slice(16,24);s==="encrypt"?this.ciphers=[r.create({type:"encrypt",key:l}),r.create({type:"decrypt",key:d}),r.create({type:"encrypt",key:p})]:this.ciphers=[r.create({type:"decrypt",key:p}),r.create({type:"encrypt",key:d}),r.create({type:"decrypt",key:l})]}function a(s){n.call(this,s);var c=new i(this.type,this.options.key);this._edeState=c}return e(a,n),Yw=a,a.create=function(c){return new a(c)},a.prototype._update=function(c,l,d,p){var m=this._edeState;m.ciphers[0]._update(c,l,d,p),m.ciphers[1]._update(d,p,d,p),m.ciphers[2]._update(d,p,d,p)},a.prototype._pad=r.prototype._pad,a.prototype._unpad=r.prototype._unpad,Yw}var rz;function m4e(){return rz||(rz=1,mf.utils=bK(),mf.Cipher=sL(),mf.DES=yK(),mf.CBC=p4e(),mf.EDE=b4e()),mf}var Gw,iz;function y4e(){if(iz)return Gw;iz=1;var t=sf(),e=m4e(),n=mn,r=Tn.Buffer,i={"des-ede3-cbc":e.CBC.instantiate(e.EDE),"des-ede3":e.EDE,"des-ede-cbc":e.CBC.instantiate(e.EDE),"des-ede":e.EDE,"des-cbc":e.CBC.instantiate(e.DES),"des-ecb":e.DES};i.des=i["des-cbc"],i.des3=i["des-ede3-cbc"],Gw=a,n(a,t);function a(s){t.call(this);var c=s.mode.toLowerCase(),l=i[c],d;s.decrypt?d="decrypt":d="encrypt";var p=s.key;r.isBuffer(p)||(p=r.from(p)),(c==="des-ede"||c==="des-ede-cbc")&&(p=r.concat([p,p.slice(0,8)]));var m=s.iv;r.isBuffer(m)||(m=r.from(m)),this._des=l.create({key:p,iv:m,type:d})}return a.prototype._update=function(s){return r.from(this._des.update(s))},a.prototype._final=function(){return r.from(this._des.final())},Gw}var gs={},u9={},f9={},az;function g4e(){return az||(az=1,f9.encrypt=function(t,e){return t._cipher.encryptBlock(e)},f9.decrypt=function(t,e){return t._cipher.decryptBlock(e)}),f9}var d9={},$w,sz;function nb(){return sz||(sz=1,$w=function(e,n){for(var r=Math.min(e.length,n.length),i=new je.Buffer(r),a=0;a<r;++a)i[a]=e[a]^n[a];return i}),$w}var oz;function v4e(){if(oz)return d9;oz=1;var t=nb();return d9.encrypt=function(e,n){var r=t(n,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev},d9.decrypt=function(e,n){var r=e._prev;e._prev=n;var i=e._cipher.decryptBlock(n);return t(i,r)},d9}var Vw={},cz;function M4e(){if(cz)return Vw;cz=1;var t=Tn.Buffer,e=nb();function n(r,i,a){var s=i.length,c=e(i,r._cache);return r._cache=r._cache.slice(s),r._prev=t.concat([r._prev,a?i:c]),c}return Vw.encrypt=function(r,i,a){for(var s=t.allocUnsafe(0),c;i.length;)if(r._cache.length===0&&(r._cache=r._cipher.encryptBlock(r._prev),r._prev=t.allocUnsafe(0)),r._cache.length<=i.length)c=r._cache.length,s=t.concat([s,n(r,i.slice(0,c),a)]),i=i.slice(c);else{s=t.concat([s,n(r,i,a)]);break}return s},Vw}var Qw={},lz;function x4e(){if(lz)return Qw;lz=1;var t=Tn.Buffer;function e(n,r,i){var a=n._cipher.encryptBlock(n._prev),s=a[0]^r;return n._prev=t.concat([n._prev.slice(1),t.from([i?r:s])]),s}return Qw.encrypt=function(n,r,i){for(var a=r.length,s=t.allocUnsafe(a),c=-1;++c<a;)s[c]=e(n,r[c],i);return s},Qw}var qw={},uz;function w4e(){if(uz)return qw;uz=1;var t=Tn.Buffer;function e(r,i,a){for(var s,c=-1,l=8,d=0,p,m;++c<l;)s=r._cipher.encryptBlock(r._prev),p=i&1<<7-c?128:0,m=s[0]^p,d+=(m&128)>>c%8,r._prev=n(r._prev,a?p:m);return d}function n(r,i){var a=r.length,s=-1,c=t.allocUnsafe(r.length);for(r=t.concat([r,t.from([i])]);++s<a;)c[s]=r[s]<<1|r[s+1]>>7;return c}return qw.encrypt=function(r,i,a){for(var s=i.length,c=t.allocUnsafe(s),l=-1;++l<s;)c[l]=e(r,i[l],a);return c},qw}var Zw={},fz;function A4e(){if(fz)return Zw;fz=1;var t=nb();function e(n){return n._prev=n._cipher.encryptBlock(n._prev),n._prev}return Zw.encrypt=function(n,r){for(;n._cache.length<r.length;)n._cache=je.Buffer.concat([n._cache,e(n)]);var i=n._cache.slice(0,r.length);return n._cache=n._cache.slice(r.length),t(r,i)},Zw}var Kw={},Xw,dz;function gK(){if(dz)return Xw;dz=1;function t(e){for(var n=e.length,r;n--;)if(r=e.readUInt8(n),r===255)e.writeUInt8(0,n);else{r++,e.writeUInt8(r,n);break}}return Xw=t,Xw}var hz;function pz(){if(hz)return Kw;hz=1;var t=nb(),e=Tn.Buffer,n=gK();function r(a){var s=a._cipher.encryptBlockRaw(a._prev);return n(a._prev),s}var i=16;return Kw.encrypt=function(a,s){var c=Math.ceil(s.length/i),l=a._cache.length;a._cache=e.concat([a._cache,e.allocUnsafe(c*i)]);for(var d=0;d<c;d++){var p=r(a),m=l+d*i;a._cache.writeUInt32BE(p[0],m+0),a._cache.writeUInt32BE(p[1],m+4),a._cache.writeUInt32BE(p[2],m+8),a._cache.writeUInt32BE(p[3],m+12)}var g=a._cache.slice(0,s.length);return a._cache=a._cache.slice(s.length),t(s,g)},Kw}const C4e={cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},E4e={cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},S4e={cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},vK={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:C4e,aes192:E4e,aes256:S4e,"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}};var Jw,bz;function oL(){if(bz)return Jw;bz=1;var t={ECB:g4e(),CBC:v4e(),CFB:M4e(),CFB8:x4e(),CFB1:w4e(),OFB:A4e(),CTR:pz(),GCM:pz()},e=vK;for(var n in e)e[n].module=t[e[n].mode];return Jw=e,Jw}var eA={},mz;function Bv(){if(mz)return eA;mz=1;var t=Tn.Buffer;function e(c){t.isBuffer(c)||(c=t.from(c));for(var l=c.length/4|0,d=new Array(l),p=0;p<l;p++)d[p]=c.readUInt32BE(p*4);return d}function n(c){for(var l=0;l<c.length;c++)c[l]=0}function r(c,l,d,p,m){for(var g=d[0],M=d[1],C=d[2],T=d[3],D=c[0]^l[0],S=c[1]^l[1],I=c[2]^l[2],N=c[3]^l[3],B,k,O,z,_=4,F=1;F<m;F++)B=g[D>>>24]^M[S>>>16&255]^C[I>>>8&255]^T[N&255]^l[_++],k=g[S>>>24]^M[I>>>16&255]^C[N>>>8&255]^T[D&255]^l[_++],O=g[I>>>24]^M[N>>>16&255]^C[D>>>8&255]^T[S&255]^l[_++],z=g[N>>>24]^M[D>>>16&255]^C[S>>>8&255]^T[I&255]^l[_++],D=B,S=k,I=O,N=z;return B=(p[D>>>24]<<24|p[S>>>16&255]<<16|p[I>>>8&255]<<8|p[N&255])^l[_++],k=(p[S>>>24]<<24|p[I>>>16&255]<<16|p[N>>>8&255]<<8|p[D&255])^l[_++],O=(p[I>>>24]<<24|p[N>>>16&255]<<16|p[D>>>8&255]<<8|p[S&255])^l[_++],z=(p[N>>>24]<<24|p[D>>>16&255]<<16|p[S>>>8&255]<<8|p[I&255])^l[_++],B=B>>>0,k=k>>>0,O=O>>>0,z=z>>>0,[B,k,O,z]}var i=[0,1,2,4,8,16,32,64,128,27,54],a=function(){for(var c=new Array(256),l=0;l<256;l++)l<128?c[l]=l<<1:c[l]=l<<1^283;for(var d=[],p=[],m=[[],[],[],[]],g=[[],[],[],[]],M=0,C=0,T=0;T<256;++T){var D=C^C<<1^C<<2^C<<3^C<<4;D=D>>>8^D&255^99,d[M]=D,p[D]=M;var S=c[M],I=c[S],N=c[I],B=c[D]*257^D*16843008;m[0][M]=B<<24|B>>>8,m[1][M]=B<<16|B>>>16,m[2][M]=B<<8|B>>>24,m[3][M]=B,B=N*16843009^I*65537^S*257^M*16843008,g[0][D]=B<<24|B>>>8,g[1][D]=B<<16|B>>>16,g[2][D]=B<<8|B>>>24,g[3][D]=B,M===0?M=C=1:(M=S^c[c[c[N^S]]],C^=c[c[C]])}return{SBOX:d,INV_SBOX:p,SUB_MIX:m,INV_SUB_MIX:g}}();function s(c){this._key=e(c),this._reset()}return s.blockSize=4*4,s.keySize=256/8,s.prototype.blockSize=s.blockSize,s.prototype.keySize=s.keySize,s.prototype._reset=function(){for(var c=this._key,l=c.length,d=l+6,p=(d+1)*4,m=[],g=0;g<l;g++)m[g]=c[g];for(g=l;g<p;g++){var M=m[g-1];g%l===0?(M=M<<8|M>>>24,M=a.SBOX[M>>>24]<<24|a.SBOX[M>>>16&255]<<16|a.SBOX[M>>>8&255]<<8|a.SBOX[M&255],M^=i[g/l|0]<<24):l>6&&g%l===4&&(M=a.SBOX[M>>>24]<<24|a.SBOX[M>>>16&255]<<16|a.SBOX[M>>>8&255]<<8|a.SBOX[M&255]),m[g]=m[g-l]^M}for(var C=[],T=0;T<p;T++){var D=p-T,S=m[D-(T%4?0:4)];T<4||D<=4?C[T]=S:C[T]=a.INV_SUB_MIX[0][a.SBOX[S>>>24]]^a.INV_SUB_MIX[1][a.SBOX[S>>>16&255]]^a.INV_SUB_MIX[2][a.SBOX[S>>>8&255]]^a.INV_SUB_MIX[3][a.SBOX[S&255]]}this._nRounds=d,this._keySchedule=m,this._invKeySchedule=C},s.prototype.encryptBlockRaw=function(c){return c=e(c),r(c,this._keySchedule,a.SUB_MIX,a.SBOX,this._nRounds)},s.prototype.encryptBlock=function(c){var l=this.encryptBlockRaw(c),d=t.allocUnsafe(16);return d.writeUInt32BE(l[0],0),d.writeUInt32BE(l[1],4),d.writeUInt32BE(l[2],8),d.writeUInt32BE(l[3],12),d},s.prototype.decryptBlock=function(c){c=e(c);var l=c[1];c[1]=c[3],c[3]=l;var d=r(c,this._invKeySchedule,a.INV_SUB_MIX,a.INV_SBOX,this._nRounds),p=t.allocUnsafe(16);return p.writeUInt32BE(d[0],0),p.writeUInt32BE(d[3],4),p.writeUInt32BE(d[2],8),p.writeUInt32BE(d[1],12),p},s.prototype.scrub=function(){n(this._keySchedule),n(this._invKeySchedule),n(this._key)},eA.AES=s,eA}var tA,yz;function T4e(){if(yz)return tA;yz=1;var t=Tn.Buffer,e=t.alloc(16,0);function n(a){return[a.readUInt32BE(0),a.readUInt32BE(4),a.readUInt32BE(8),a.readUInt32BE(12)]}function r(a){var s=t.allocUnsafe(16);return s.writeUInt32BE(a[0]>>>0,0),s.writeUInt32BE(a[1]>>>0,4),s.writeUInt32BE(a[2]>>>0,8),s.writeUInt32BE(a[3]>>>0,12),s}function i(a){this.h=a,this.state=t.alloc(16,0),this.cache=t.allocUnsafe(0)}return i.prototype.ghash=function(a){for(var s=-1;++s<a.length;)this.state[s]^=a[s];this._multiply()},i.prototype._multiply=function(){for(var a=n(this.h),s=[0,0,0,0],c,l,d,p=-1;++p<128;){for(l=(this.state[~~(p/8)]&1<<7-p%8)!==0,l&&(s[0]^=a[0],s[1]^=a[1],s[2]^=a[2],s[3]^=a[3]),d=(a[3]&1)!==0,c=3;c>0;c--)a[c]=a[c]>>>1|(a[c-1]&1)<<31;a[0]=a[0]>>>1,d&&(a[0]=a[0]^225<<24)}this.state=r(s)},i.prototype.update=function(a){this.cache=t.concat([this.cache,a]);for(var s;this.cache.length>=16;)s=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(s)},i.prototype.final=function(a,s){return this.cache.length&&this.ghash(t.concat([this.cache,e],16)),this.ghash(r([0,a,0,s])),this.state},tA=i,tA}var nA,gz;function MK(){if(gz)return nA;gz=1;var t=Bv(),e=Tn.Buffer,n=sf(),r=mn,i=T4e(),a=nb(),s=gK();function c(p,m){var g=0;p.length!==m.length&&g++;for(var M=Math.min(p.length,m.length),C=0;C<M;++C)g+=p[C]^m[C];return g}function l(p,m,g){if(m.length===12)return p._finID=e.concat([m,e.from([0,0,0,1])]),e.concat([m,e.from([0,0,0,2])]);var M=new i(g),C=m.length,T=C%16;M.update(m),T&&(T=16-T,M.update(e.alloc(T,0))),M.update(e.alloc(8,0));var D=C*8,S=e.alloc(8);S.writeUIntBE(D,0,8),M.update(S),p._finID=M.state;var I=e.from(p._finID);return s(I),I}function d(p,m,g,M){n.call(this);var C=e.alloc(4,0);this._cipher=new t.AES(m);var T=this._cipher.encryptBlock(C);this._ghash=new i(T),g=l(this,g,T),this._prev=e.from(g),this._cache=e.allocUnsafe(0),this._secCache=e.allocUnsafe(0),this._decrypt=M,this._alen=0,this._len=0,this._mode=p,this._authTag=null,this._called=!1}return r(d,n),d.prototype._update=function(p){if(!this._called&&this._alen){var m=16-this._alen%16;m<16&&(m=e.alloc(m,0),this._ghash.update(m))}this._called=!0;var g=this._mode.encrypt(this,p);return this._decrypt?this._ghash.update(p):this._ghash.update(g),this._len+=p.length,g},d.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var p=a(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&c(p,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=p,this._cipher.scrub()},d.prototype.getAuthTag=function(){if(this._decrypt||!e.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},d.prototype.setAuthTag=function(m){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=m},d.prototype.setAAD=function(m){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(m),this._alen+=m.length},nA=d,nA}var rA,vz;function xK(){if(vz)return rA;vz=1;var t=Bv(),e=Tn.Buffer,n=sf(),r=mn;function i(a,s,c,l){n.call(this),this._cipher=new t.AES(s),this._prev=e.from(c),this._cache=e.allocUnsafe(0),this._secCache=e.allocUnsafe(0),this._decrypt=l,this._mode=a}return r(i,n),i.prototype._update=function(a){return this._mode.encrypt(this,a,this._decrypt)},i.prototype._final=function(){this._cipher.scrub()},rA=i,rA}var iA,Mz;function jv(){if(Mz)return iA;Mz=1;var t=Tn.Buffer,e=rL();function n(r,i,a,s){if(t.isBuffer(r)||(r=t.from(r,"binary")),i&&(t.isBuffer(i)||(i=t.from(i,"binary")),i.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var c=a/8,l=t.alloc(c),d=t.alloc(s||0),p=t.alloc(0);c>0||s>0;){var m=new e;m.update(p),m.update(r),i&&m.update(i),p=m.digest();var g=0;if(c>0){var M=l.length-c;g=Math.min(c,p.length),p.copy(l,M,0,g),c-=g}if(g<p.length&&s>0){var C=d.length-s,T=Math.min(s,p.length-g);p.copy(d,C,g,g+T),s-=T}}return p.fill(0),{key:l,iv:d}}return iA=n,iA}var xz;function I4e(){if(xz)return u9;xz=1;var t=oL(),e=MK(),n=Tn.Buffer,r=xK(),i=sf(),a=Bv(),s=jv(),c=mn;function l(M,C,T){i.call(this),this._cache=new p,this._cipher=new a.AES(C),this._prev=n.from(T),this._mode=M,this._autopadding=!0}c(l,i),l.prototype._update=function(M){this._cache.add(M);for(var C,T,D=[];C=this._cache.get();)T=this._mode.encrypt(this,C),D.push(T);return n.concat(D)};var d=n.alloc(16,16);l.prototype._final=function(){var M=this._cache.flush();if(this._autopadding)return M=this._mode.encrypt(this,M),this._cipher.scrub(),M;if(!M.equals(d))throw this._cipher.scrub(),new Error("data not multiple of block length")},l.prototype.setAutoPadding=function(M){return this._autopadding=!!M,this};function p(){this.cache=n.allocUnsafe(0)}p.prototype.add=function(M){this.cache=n.concat([this.cache,M])},p.prototype.get=function(){if(this.cache.length>15){var M=this.cache.slice(0,16);return this.cache=this.cache.slice(16),M}return null},p.prototype.flush=function(){for(var M=16-this.cache.length,C=n.allocUnsafe(M),T=-1;++T<M;)C.writeUInt8(M,T);return n.concat([this.cache,C])};function m(M,C,T){var D=t[M.toLowerCase()];if(!D)throw new TypeError("invalid suite type");if(typeof C=="string"&&(C=n.from(C)),C.length!==D.key/8)throw new TypeError("invalid key length "+C.length);if(typeof T=="string"&&(T=n.from(T)),D.mode!=="GCM"&&T.length!==D.iv)throw new TypeError("invalid iv length "+T.length);return D.type==="stream"?new r(D.module,C,T):D.type==="auth"?new e(D.module,C,T):new l(D.module,C,T)}function g(M,C){var T=t[M.toLowerCase()];if(!T)throw new TypeError("invalid suite type");var D=s(C,!1,T.key,T.iv);return m(M,D.key,D.iv)}return u9.createCipheriv=m,u9.createCipher=g,u9}var h9={},wz;function D4e(){if(wz)return h9;wz=1;var t=MK(),e=Tn.Buffer,n=oL(),r=xK(),i=sf(),a=Bv(),s=jv(),c=mn;function l(M,C,T){i.call(this),this._cache=new d,this._last=void 0,this._cipher=new a.AES(C),this._prev=e.from(T),this._mode=M,this._autopadding=!0}c(l,i),l.prototype._update=function(M){this._cache.add(M);for(var C,T,D=[];C=this._cache.get(this._autopadding);)T=this._mode.decrypt(this,C),D.push(T);return e.concat(D)},l.prototype._final=function(){var M=this._cache.flush();if(this._autopadding)return p(this._mode.decrypt(this,M));if(M)throw new Error("data not multiple of block length")},l.prototype.setAutoPadding=function(M){return this._autopadding=!!M,this};function d(){this.cache=e.allocUnsafe(0)}d.prototype.add=function(M){this.cache=e.concat([this.cache,M])},d.prototype.get=function(M){var C;if(M){if(this.cache.length>16)return C=this.cache.slice(0,16),this.cache=this.cache.slice(16),C}else if(this.cache.length>=16)return C=this.cache.slice(0,16),this.cache=this.cache.slice(16),C;return null},d.prototype.flush=function(){if(this.cache.length)return this.cache};function p(M){var C=M[15];if(C<1||C>16)throw new Error("unable to decrypt data");for(var T=-1;++T<C;)if(M[T+(16-C)]!==C)throw new Error("unable to decrypt data");if(C!==16)return M.slice(0,16-C)}function m(M,C,T){var D=n[M.toLowerCase()];if(!D)throw new TypeError("invalid suite type");if(typeof T=="string"&&(T=e.from(T)),D.mode!=="GCM"&&T.length!==D.iv)throw new TypeError("invalid iv length "+T.length);if(typeof C=="string"&&(C=e.from(C)),C.length!==D.key/8)throw new TypeError("invalid key length "+C.length);return D.type==="stream"?new r(D.module,C,T,!0):D.type==="auth"?new t(D.module,C,T,!0):new l(D.module,C,T)}function g(M,C){var T=n[M.toLowerCase()];if(!T)throw new TypeError("invalid suite type");var D=s(C,!1,T.key,T.iv);return m(M,D.key,D.iv)}return h9.createDecipher=g,h9.createDecipheriv=m,h9}var Az;function cL(){if(Az)return gs;Az=1;var t=I4e(),e=D4e(),n=vK;function r(){return Object.keys(n)}return gs.createCipher=gs.Cipher=t.createCipher,gs.createCipheriv=gs.Cipheriv=t.createCipheriv,gs.createDecipher=gs.Decipher=e.createDecipher,gs.createDecipheriv=gs.Decipheriv=e.createDecipheriv,gs.listCiphers=gs.getCiphers=r,gs}var aA={},Cz;function N4e(){return Cz||(Cz=1,function(t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}}(aA)),aA}var Ez;function L4e(){if(Ez)return ys;Ez=1;var t=y4e(),e=cL(),n=oL(),r=N4e(),i=jv();function a(p,m){p=p.toLowerCase();var g,M;if(n[p])g=n[p].key,M=n[p].iv;else if(r[p])g=r[p].key*8,M=r[p].iv;else throw new TypeError("invalid suite type");var C=i(m,!1,g,M);return c(p,C.key,C.iv)}function s(p,m){p=p.toLowerCase();var g,M;if(n[p])g=n[p].key,M=n[p].iv;else if(r[p])g=r[p].key*8,M=r[p].iv;else throw new TypeError("invalid suite type");var C=i(m,!1,g,M);return l(p,C.key,C.iv)}function c(p,m,g){if(p=p.toLowerCase(),n[p])return e.createCipheriv(p,m,g);if(r[p])return new t({key:m,iv:g,mode:p});throw new TypeError("invalid suite type")}function l(p,m,g){if(p=p.toLowerCase(),n[p])return e.createDecipheriv(p,m,g);if(r[p])return new t({key:m,iv:g,mode:p,decrypt:!0});throw new TypeError("invalid suite type")}function d(){return Object.keys(r).concat(e.getCiphers())}return ys.createCipher=ys.Cipher=a,ys.createCipheriv=ys.Cipheriv=c,ys.createDecipher=ys.Decipher=s,ys.createDecipheriv=ys.Decipheriv=l,ys.listCiphers=ys.getCiphers=d,ys}var yf={},Ym={exports:{}};Ym.exports;var Sz;function wK(){return Sz||(Sz=1,function(t){(function(e,n){function r(w,o){if(!w)throw new Error(o||"Assertion failed")}function i(w,o){w.super_=o;var u=function(){};u.prototype=o.prototype,w.prototype=new u,w.prototype.constructor=w}function a(w,o,u){if(a.isBN(w))return w;this.negative=0,this.words=null,this.length=0,this.red=null,w!==null&&((o==="le"||o==="be")&&(u=o,o=10),this._init(w||0,o||10,u||"be"))}typeof e=="object"?e.exports=a:n.BN=a,a.BN=a,a.wordSize=26;var s;try{typeof window<"u"&&typeof window.Buffer<"u"?s=window.Buffer:s=wt.Buffer}catch{}a.isBN=function(o){return o instanceof a?!0:o!==null&&typeof o=="object"&&o.constructor.wordSize===a.wordSize&&Array.isArray(o.words)},a.max=function(o,u){return o.cmp(u)>0?o:u},a.min=function(o,u){return o.cmp(u)<0?o:u},a.prototype._init=function(o,u,h){if(typeof o=="number")return this._initNumber(o,u,h);if(typeof o=="object")return this._initArray(o,u,h);u==="hex"&&(u=16),r(u===(u|0)&&u>=2&&u<=36),o=o.toString().replace(/\s+/g,"");var b=0;o[0]==="-"&&(b++,this.negative=1),b<o.length&&(u===16?this._parseHex(o,b,h):(this._parseBase(o,u,b),h==="le"&&this._initArray(this.toArray(),u,h)))},a.prototype._initNumber=function(o,u,h){o<0&&(this.negative=1,o=-o),o<67108864?(this.words=[o&67108863],this.length=1):o<4503599627370496?(this.words=[o&67108863,o/67108864&67108863],this.length=2):(r(o<9007199254740992),this.words=[o&67108863,o/67108864&67108863,1],this.length=3),h==="le"&&this._initArray(this.toArray(),u,h)},a.prototype._initArray=function(o,u,h){if(r(typeof o.length=="number"),o.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(o.length/3),this.words=new Array(this.length);for(var b=0;b<this.length;b++)this.words[b]=0;var y,x,E=0;if(h==="be")for(b=o.length-1,y=0;b>=0;b-=3)x=o[b]|o[b-1]<<8|o[b-2]<<16,this.words[y]|=x<<E&67108863,this.words[y+1]=x>>>26-E&67108863,E+=24,E>=26&&(E-=26,y++);else if(h==="le")for(b=0,y=0;b<o.length;b+=3)x=o[b]|o[b+1]<<8|o[b+2]<<16,this.words[y]|=x<<E&67108863,this.words[y+1]=x>>>26-E&67108863,E+=24,E>=26&&(E-=26,y++);return this.strip()};function c(w,o){var u=w.charCodeAt(o);return u>=65&&u<=70?u-55:u>=97&&u<=102?u-87:u-48&15}function l(w,o,u){var h=c(w,u);return u-1>=o&&(h|=c(w,u-1)<<4),h}a.prototype._parseHex=function(o,u,h){this.length=Math.ceil((o.length-u)/6),this.words=new Array(this.length);for(var b=0;b<this.length;b++)this.words[b]=0;var y=0,x=0,E;if(h==="be")for(b=o.length-1;b>=u;b-=2)E=l(o,u,b)<<y,this.words[x]|=E&67108863,y>=18?(y-=18,x+=1,this.words[x]|=E>>>26):y+=8;else{var v=o.length-u;for(b=v%2===0?u+1:u;b<o.length;b+=2)E=l(o,u,b)<<y,this.words[x]|=E&67108863,y>=18?(y-=18,x+=1,this.words[x]|=E>>>26):y+=8}this.strip()};function d(w,o,u,h){for(var b=0,y=Math.min(w.length,u),x=o;x<y;x++){var E=w.charCodeAt(x)-48;b*=h,E>=49?b+=E-49+10:E>=17?b+=E-17+10:b+=E}return b}a.prototype._parseBase=function(o,u,h){this.words=[0],this.length=1;for(var b=0,y=1;y<=67108863;y*=u)b++;b--,y=y/u|0;for(var x=o.length-h,E=x%b,v=Math.min(x,x-E)+h,f=0,A=h;A<v;A+=b)f=d(o,A,A+b,u),this.imuln(y),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f);if(E!==0){var j=1;for(f=d(o,A,o.length,u),A=0;A<E;A++)j*=u;this.imuln(j),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f)}this.strip()},a.prototype.copy=function(o){o.words=new Array(this.length);for(var u=0;u<this.length;u++)o.words[u]=this.words[u];o.length=this.length,o.negative=this.negative,o.red=this.red},a.prototype.clone=function(){var o=new a(null);return this.copy(o),o},a.prototype._expand=function(o){for(;this.length<o;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var p=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],m=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],g=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(o,u){o=o||10,u=u|0||1;var h;if(o===16||o==="hex"){h="";for(var b=0,y=0,x=0;x<this.length;x++){var E=this.words[x],v=((E<<b|y)&16777215).toString(16);y=E>>>24-b&16777215,b+=2,b>=26&&(b-=26,x--),y!==0||x!==this.length-1?h=p[6-v.length]+v+h:h=v+h}for(y!==0&&(h=y.toString(16)+h);h.length%u!==0;)h="0"+h;return this.negative!==0&&(h="-"+h),h}if(o===(o|0)&&o>=2&&o<=36){var f=m[o],A=g[o];h="";var j=this.clone();for(j.negative=0;!j.isZero();){var P=j.modn(A).toString(o);j=j.idivn(A),j.isZero()?h=P+h:h=p[f-P.length]+P+h}for(this.isZero()&&(h="0"+h);h.length%u!==0;)h="0"+h;return this.negative!==0&&(h="-"+h),h}r(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(o,u){return r(typeof s<"u"),this.toArrayLike(s,o,u)},a.prototype.toArray=function(o,u){return this.toArrayLike(Array,o,u)},a.prototype.toArrayLike=function(o,u,h){var b=this.byteLength(),y=h||Math.max(1,b);r(b<=y,"byte array longer than desired length"),r(y>0,"Requested array length <= 0"),this.strip();var x=u==="le",E=new o(y),v,f,A=this.clone();if(x){for(f=0;!A.isZero();f++)v=A.andln(255),A.iushrn(8),E[f]=v;for(;f<y;f++)E[f]=0}else{for(f=0;f<y-b;f++)E[f]=0;for(f=0;!A.isZero();f++)v=A.andln(255),A.iushrn(8),E[y-f-1]=v}return E},Math.clz32?a.prototype._countBits=function(o){return 32-Math.clz32(o)}:a.prototype._countBits=function(o){var u=o,h=0;return u>=4096&&(h+=13,u>>>=13),u>=64&&(h+=7,u>>>=7),u>=8&&(h+=4,u>>>=4),u>=2&&(h+=2,u>>>=2),h+u},a.prototype._zeroBits=function(o){if(o===0)return 26;var u=o,h=0;return u&8191||(h+=13,u>>>=13),u&127||(h+=7,u>>>=7),u&15||(h+=4,u>>>=4),u&3||(h+=2,u>>>=2),u&1||h++,h},a.prototype.bitLength=function(){var o=this.words[this.length-1],u=this._countBits(o);return(this.length-1)*26+u};function M(w){for(var o=new Array(w.bitLength()),u=0;u<o.length;u++){var h=u/26|0,b=u%26;o[u]=(w.words[h]&1<<b)>>>b}return o}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,u=0;u<this.length;u++){var h=this._zeroBits(this.words[u]);if(o+=h,h!==26)break}return o},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(o){return this.negative!==0?this.abs().inotn(o).iaddn(1):this.clone()},a.prototype.fromTwos=function(o){return this.testn(o-1)?this.notn(o).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(o){for(;this.length<o.length;)this.words[this.length++]=0;for(var u=0;u<o.length;u++)this.words[u]=this.words[u]|o.words[u];return this.strip()},a.prototype.ior=function(o){return r((this.negative|o.negative)===0),this.iuor(o)},a.prototype.or=function(o){return this.length>o.length?this.clone().ior(o):o.clone().ior(this)},a.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},a.prototype.iuand=function(o){var u;this.length>o.length?u=o:u=this;for(var h=0;h<u.length;h++)this.words[h]=this.words[h]&o.words[h];return this.length=u.length,this.strip()},a.prototype.iand=function(o){return r((this.negative|o.negative)===0),this.iuand(o)},a.prototype.and=function(o){return this.length>o.length?this.clone().iand(o):o.clone().iand(this)},a.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},a.prototype.iuxor=function(o){var u,h;this.length>o.length?(u=this,h=o):(u=o,h=this);for(var b=0;b<h.length;b++)this.words[b]=u.words[b]^h.words[b];if(this!==u)for(;b<u.length;b++)this.words[b]=u.words[b];return this.length=u.length,this.strip()},a.prototype.ixor=function(o){return r((this.negative|o.negative)===0),this.iuxor(o)},a.prototype.xor=function(o){return this.length>o.length?this.clone().ixor(o):o.clone().ixor(this)},a.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},a.prototype.inotn=function(o){r(typeof o=="number"&&o>=0);var u=Math.ceil(o/26)|0,h=o%26;this._expand(u),h>0&&u--;for(var b=0;b<u;b++)this.words[b]=~this.words[b]&67108863;return h>0&&(this.words[b]=~this.words[b]&67108863>>26-h),this.strip()},a.prototype.notn=function(o){return this.clone().inotn(o)},a.prototype.setn=function(o,u){r(typeof o=="number"&&o>=0);var h=o/26|0,b=o%26;return this._expand(h+1),u?this.words[h]=this.words[h]|1<<b:this.words[h]=this.words[h]&~(1<<b),this.strip()},a.prototype.iadd=function(o){var u;if(this.negative!==0&&o.negative===0)return this.negative=0,u=this.isub(o),this.negative^=1,this._normSign();if(this.negative===0&&o.negative!==0)return o.negative=0,u=this.isub(o),o.negative=1,u._normSign();var h,b;this.length>o.length?(h=this,b=o):(h=o,b=this);for(var y=0,x=0;x<b.length;x++)u=(h.words[x]|0)+(b.words[x]|0)+y,this.words[x]=u&67108863,y=u>>>26;for(;y!==0&&x<h.length;x++)u=(h.words[x]|0)+y,this.words[x]=u&67108863,y=u>>>26;if(this.length=h.length,y!==0)this.words[this.length]=y,this.length++;else if(h!==this)for(;x<h.length;x++)this.words[x]=h.words[x];return this},a.prototype.add=function(o){var u;return o.negative!==0&&this.negative===0?(o.negative=0,u=this.sub(o),o.negative^=1,u):o.negative===0&&this.negative!==0?(this.negative=0,u=o.sub(this),this.negative=1,u):this.length>o.length?this.clone().iadd(o):o.clone().iadd(this)},a.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var u=this.iadd(o);return o.negative=1,u._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var h=this.cmp(o);if(h===0)return this.negative=0,this.length=1,this.words[0]=0,this;var b,y;h>0?(b=this,y=o):(b=o,y=this);for(var x=0,E=0;E<y.length;E++)u=(b.words[E]|0)-(y.words[E]|0)+x,x=u>>26,this.words[E]=u&67108863;for(;x!==0&&E<b.length;E++)u=(b.words[E]|0)+x,x=u>>26,this.words[E]=u&67108863;if(x===0&&E<b.length&&b!==this)for(;E<b.length;E++)this.words[E]=b.words[E];return this.length=Math.max(this.length,E),b!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(o){return this.clone().isub(o)};function C(w,o,u){u.negative=o.negative^w.negative;var h=w.length+o.length|0;u.length=h,h=h-1|0;var b=w.words[0]|0,y=o.words[0]|0,x=b*y,E=x&67108863,v=x/67108864|0;u.words[0]=E;for(var f=1;f<h;f++){for(var A=v>>>26,j=v&67108863,P=Math.min(f,o.length-1),$=Math.max(0,f-w.length+1);$<=P;$++){var K=f-$|0;b=w.words[K]|0,y=o.words[$]|0,x=b*y+j,A+=x/67108864|0,j=x&67108863}u.words[f]=j|0,v=A|0}return v!==0?u.words[f]=v|0:u.length--,u.strip()}var T=function(o,u,h){var b=o.words,y=u.words,x=h.words,E=0,v,f,A,j=b[0]|0,P=j&8191,$=j>>>13,K=b[1]|0,Q=K&8191,H=K>>>13,V=b[2]|0,J=V&8191,ae=V>>>13,te=b[3]|0,Z=te&8191,ce=te>>>13,De=b[4]|0,pe=De&8191,Se=De>>>13,st=b[5]|0,ve=st&8191,Ne=st>>>13,lt=b[6]|0,Me=lt&8191,ye=lt>>>13,_e=b[7]|0,be=_e&8191,we=_e>>>13,yt=b[8]|0,q=yt&8191,U=yt>>>13,Y=b[9]|0,ie=Y&8191,ue=Y>>>13,Ce=y[0]|0,fe=Ce&8191,Ae=Ce>>>13,at=y[1]|0,Ee=at&8191,Be=at>>>13,Mt=y[2]|0,Oe=Mt&8191,Ge=Mt>>>13,Qt=y[3]|0,ze=Qt&8191,$e=Qt>>>13,rn=y[4]|0,We=rn&8191,qe=rn>>>13,bn=y[5]|0,Ye=bn&8191,Ze=bn>>>13,vn=y[6]|0,Pe=vn&8191,Ke=vn>>>13,X=y[7]|0,ee=X&8191,ne=X>>>13,W=y[8]|0,re=W&8191,de=W>>>13,Ie=y[9]|0,he=Ie&8191,xe=Ie>>>13;h.negative=o.negative^u.negative,h.length=19,v=Math.imul(P,fe),f=Math.imul(P,Ae),f=f+Math.imul($,fe)|0,A=Math.imul($,Ae);var it=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(it>>>26)|0,it&=67108863,v=Math.imul(Q,fe),f=Math.imul(Q,Ae),f=f+Math.imul(H,fe)|0,A=Math.imul(H,Ae),v=v+Math.imul(P,Ee)|0,f=f+Math.imul(P,Be)|0,f=f+Math.imul($,Ee)|0,A=A+Math.imul($,Be)|0;var Xe=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,v=Math.imul(J,fe),f=Math.imul(J,Ae),f=f+Math.imul(ae,fe)|0,A=Math.imul(ae,Ae),v=v+Math.imul(Q,Ee)|0,f=f+Math.imul(Q,Be)|0,f=f+Math.imul(H,Ee)|0,A=A+Math.imul(H,Be)|0,v=v+Math.imul(P,Oe)|0,f=f+Math.imul(P,Ge)|0,f=f+Math.imul($,Oe)|0,A=A+Math.imul($,Ge)|0;var $t=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+($t>>>26)|0,$t&=67108863,v=Math.imul(Z,fe),f=Math.imul(Z,Ae),f=f+Math.imul(ce,fe)|0,A=Math.imul(ce,Ae),v=v+Math.imul(J,Ee)|0,f=f+Math.imul(J,Be)|0,f=f+Math.imul(ae,Ee)|0,A=A+Math.imul(ae,Be)|0,v=v+Math.imul(Q,Oe)|0,f=f+Math.imul(Q,Ge)|0,f=f+Math.imul(H,Oe)|0,A=A+Math.imul(H,Ge)|0,v=v+Math.imul(P,ze)|0,f=f+Math.imul(P,$e)|0,f=f+Math.imul($,ze)|0,A=A+Math.imul($,$e)|0;var pt=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(pt>>>26)|0,pt&=67108863,v=Math.imul(pe,fe),f=Math.imul(pe,Ae),f=f+Math.imul(Se,fe)|0,A=Math.imul(Se,Ae),v=v+Math.imul(Z,Ee)|0,f=f+Math.imul(Z,Be)|0,f=f+Math.imul(ce,Ee)|0,A=A+Math.imul(ce,Be)|0,v=v+Math.imul(J,Oe)|0,f=f+Math.imul(J,Ge)|0,f=f+Math.imul(ae,Oe)|0,A=A+Math.imul(ae,Ge)|0,v=v+Math.imul(Q,ze)|0,f=f+Math.imul(Q,$e)|0,f=f+Math.imul(H,ze)|0,A=A+Math.imul(H,$e)|0,v=v+Math.imul(P,We)|0,f=f+Math.imul(P,qe)|0,f=f+Math.imul($,We)|0,A=A+Math.imul($,qe)|0;var tt=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(tt>>>26)|0,tt&=67108863,v=Math.imul(ve,fe),f=Math.imul(ve,Ae),f=f+Math.imul(Ne,fe)|0,A=Math.imul(Ne,Ae),v=v+Math.imul(pe,Ee)|0,f=f+Math.imul(pe,Be)|0,f=f+Math.imul(Se,Ee)|0,A=A+Math.imul(Se,Be)|0,v=v+Math.imul(Z,Oe)|0,f=f+Math.imul(Z,Ge)|0,f=f+Math.imul(ce,Oe)|0,A=A+Math.imul(ce,Ge)|0,v=v+Math.imul(J,ze)|0,f=f+Math.imul(J,$e)|0,f=f+Math.imul(ae,ze)|0,A=A+Math.imul(ae,$e)|0,v=v+Math.imul(Q,We)|0,f=f+Math.imul(Q,qe)|0,f=f+Math.imul(H,We)|0,A=A+Math.imul(H,qe)|0,v=v+Math.imul(P,Ye)|0,f=f+Math.imul(P,Ze)|0,f=f+Math.imul($,Ye)|0,A=A+Math.imul($,Ze)|0;var At=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(At>>>26)|0,At&=67108863,v=Math.imul(Me,fe),f=Math.imul(Me,Ae),f=f+Math.imul(ye,fe)|0,A=Math.imul(ye,Ae),v=v+Math.imul(ve,Ee)|0,f=f+Math.imul(ve,Be)|0,f=f+Math.imul(Ne,Ee)|0,A=A+Math.imul(Ne,Be)|0,v=v+Math.imul(pe,Oe)|0,f=f+Math.imul(pe,Ge)|0,f=f+Math.imul(Se,Oe)|0,A=A+Math.imul(Se,Ge)|0,v=v+Math.imul(Z,ze)|0,f=f+Math.imul(Z,$e)|0,f=f+Math.imul(ce,ze)|0,A=A+Math.imul(ce,$e)|0,v=v+Math.imul(J,We)|0,f=f+Math.imul(J,qe)|0,f=f+Math.imul(ae,We)|0,A=A+Math.imul(ae,qe)|0,v=v+Math.imul(Q,Ye)|0,f=f+Math.imul(Q,Ze)|0,f=f+Math.imul(H,Ye)|0,A=A+Math.imul(H,Ze)|0,v=v+Math.imul(P,Pe)|0,f=f+Math.imul(P,Ke)|0,f=f+Math.imul($,Pe)|0,A=A+Math.imul($,Ke)|0;var Rt=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,v=Math.imul(be,fe),f=Math.imul(be,Ae),f=f+Math.imul(we,fe)|0,A=Math.imul(we,Ae),v=v+Math.imul(Me,Ee)|0,f=f+Math.imul(Me,Be)|0,f=f+Math.imul(ye,Ee)|0,A=A+Math.imul(ye,Be)|0,v=v+Math.imul(ve,Oe)|0,f=f+Math.imul(ve,Ge)|0,f=f+Math.imul(Ne,Oe)|0,A=A+Math.imul(Ne,Ge)|0,v=v+Math.imul(pe,ze)|0,f=f+Math.imul(pe,$e)|0,f=f+Math.imul(Se,ze)|0,A=A+Math.imul(Se,$e)|0,v=v+Math.imul(Z,We)|0,f=f+Math.imul(Z,qe)|0,f=f+Math.imul(ce,We)|0,A=A+Math.imul(ce,qe)|0,v=v+Math.imul(J,Ye)|0,f=f+Math.imul(J,Ze)|0,f=f+Math.imul(ae,Ye)|0,A=A+Math.imul(ae,Ze)|0,v=v+Math.imul(Q,Pe)|0,f=f+Math.imul(Q,Ke)|0,f=f+Math.imul(H,Pe)|0,A=A+Math.imul(H,Ke)|0,v=v+Math.imul(P,ee)|0,f=f+Math.imul(P,ne)|0,f=f+Math.imul($,ee)|0,A=A+Math.imul($,ne)|0;var Ft=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,v=Math.imul(q,fe),f=Math.imul(q,Ae),f=f+Math.imul(U,fe)|0,A=Math.imul(U,Ae),v=v+Math.imul(be,Ee)|0,f=f+Math.imul(be,Be)|0,f=f+Math.imul(we,Ee)|0,A=A+Math.imul(we,Be)|0,v=v+Math.imul(Me,Oe)|0,f=f+Math.imul(Me,Ge)|0,f=f+Math.imul(ye,Oe)|0,A=A+Math.imul(ye,Ge)|0,v=v+Math.imul(ve,ze)|0,f=f+Math.imul(ve,$e)|0,f=f+Math.imul(Ne,ze)|0,A=A+Math.imul(Ne,$e)|0,v=v+Math.imul(pe,We)|0,f=f+Math.imul(pe,qe)|0,f=f+Math.imul(Se,We)|0,A=A+Math.imul(Se,qe)|0,v=v+Math.imul(Z,Ye)|0,f=f+Math.imul(Z,Ze)|0,f=f+Math.imul(ce,Ye)|0,A=A+Math.imul(ce,Ze)|0,v=v+Math.imul(J,Pe)|0,f=f+Math.imul(J,Ke)|0,f=f+Math.imul(ae,Pe)|0,A=A+Math.imul(ae,Ke)|0,v=v+Math.imul(Q,ee)|0,f=f+Math.imul(Q,ne)|0,f=f+Math.imul(H,ee)|0,A=A+Math.imul(H,ne)|0,v=v+Math.imul(P,re)|0,f=f+Math.imul(P,de)|0,f=f+Math.imul($,re)|0,A=A+Math.imul($,de)|0;var Bt=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,v=Math.imul(ie,fe),f=Math.imul(ie,Ae),f=f+Math.imul(ue,fe)|0,A=Math.imul(ue,Ae),v=v+Math.imul(q,Ee)|0,f=f+Math.imul(q,Be)|0,f=f+Math.imul(U,Ee)|0,A=A+Math.imul(U,Be)|0,v=v+Math.imul(be,Oe)|0,f=f+Math.imul(be,Ge)|0,f=f+Math.imul(we,Oe)|0,A=A+Math.imul(we,Ge)|0,v=v+Math.imul(Me,ze)|0,f=f+Math.imul(Me,$e)|0,f=f+Math.imul(ye,ze)|0,A=A+Math.imul(ye,$e)|0,v=v+Math.imul(ve,We)|0,f=f+Math.imul(ve,qe)|0,f=f+Math.imul(Ne,We)|0,A=A+Math.imul(Ne,qe)|0,v=v+Math.imul(pe,Ye)|0,f=f+Math.imul(pe,Ze)|0,f=f+Math.imul(Se,Ye)|0,A=A+Math.imul(Se,Ze)|0,v=v+Math.imul(Z,Pe)|0,f=f+Math.imul(Z,Ke)|0,f=f+Math.imul(ce,Pe)|0,A=A+Math.imul(ce,Ke)|0,v=v+Math.imul(J,ee)|0,f=f+Math.imul(J,ne)|0,f=f+Math.imul(ae,ee)|0,A=A+Math.imul(ae,ne)|0,v=v+Math.imul(Q,re)|0,f=f+Math.imul(Q,de)|0,f=f+Math.imul(H,re)|0,A=A+Math.imul(H,de)|0,v=v+Math.imul(P,he)|0,f=f+Math.imul(P,xe)|0,f=f+Math.imul($,he)|0,A=A+Math.imul($,xe)|0;var Ot=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,v=Math.imul(ie,Ee),f=Math.imul(ie,Be),f=f+Math.imul(ue,Ee)|0,A=Math.imul(ue,Be),v=v+Math.imul(q,Oe)|0,f=f+Math.imul(q,Ge)|0,f=f+Math.imul(U,Oe)|0,A=A+Math.imul(U,Ge)|0,v=v+Math.imul(be,ze)|0,f=f+Math.imul(be,$e)|0,f=f+Math.imul(we,ze)|0,A=A+Math.imul(we,$e)|0,v=v+Math.imul(Me,We)|0,f=f+Math.imul(Me,qe)|0,f=f+Math.imul(ye,We)|0,A=A+Math.imul(ye,qe)|0,v=v+Math.imul(ve,Ye)|0,f=f+Math.imul(ve,Ze)|0,f=f+Math.imul(Ne,Ye)|0,A=A+Math.imul(Ne,Ze)|0,v=v+Math.imul(pe,Pe)|0,f=f+Math.imul(pe,Ke)|0,f=f+Math.imul(Se,Pe)|0,A=A+Math.imul(Se,Ke)|0,v=v+Math.imul(Z,ee)|0,f=f+Math.imul(Z,ne)|0,f=f+Math.imul(ce,ee)|0,A=A+Math.imul(ce,ne)|0,v=v+Math.imul(J,re)|0,f=f+Math.imul(J,de)|0,f=f+Math.imul(ae,re)|0,A=A+Math.imul(ae,de)|0,v=v+Math.imul(Q,he)|0,f=f+Math.imul(Q,xe)|0,f=f+Math.imul(H,he)|0,A=A+Math.imul(H,xe)|0;var jt=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(jt>>>26)|0,jt&=67108863,v=Math.imul(ie,Oe),f=Math.imul(ie,Ge),f=f+Math.imul(ue,Oe)|0,A=Math.imul(ue,Ge),v=v+Math.imul(q,ze)|0,f=f+Math.imul(q,$e)|0,f=f+Math.imul(U,ze)|0,A=A+Math.imul(U,$e)|0,v=v+Math.imul(be,We)|0,f=f+Math.imul(be,qe)|0,f=f+Math.imul(we,We)|0,A=A+Math.imul(we,qe)|0,v=v+Math.imul(Me,Ye)|0,f=f+Math.imul(Me,Ze)|0,f=f+Math.imul(ye,Ye)|0,A=A+Math.imul(ye,Ze)|0,v=v+Math.imul(ve,Pe)|0,f=f+Math.imul(ve,Ke)|0,f=f+Math.imul(Ne,Pe)|0,A=A+Math.imul(Ne,Ke)|0,v=v+Math.imul(pe,ee)|0,f=f+Math.imul(pe,ne)|0,f=f+Math.imul(Se,ee)|0,A=A+Math.imul(Se,ne)|0,v=v+Math.imul(Z,re)|0,f=f+Math.imul(Z,de)|0,f=f+Math.imul(ce,re)|0,A=A+Math.imul(ce,de)|0,v=v+Math.imul(J,he)|0,f=f+Math.imul(J,xe)|0,f=f+Math.imul(ae,he)|0,A=A+Math.imul(ae,xe)|0;var gt=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(gt>>>26)|0,gt&=67108863,v=Math.imul(ie,ze),f=Math.imul(ie,$e),f=f+Math.imul(ue,ze)|0,A=Math.imul(ue,$e),v=v+Math.imul(q,We)|0,f=f+Math.imul(q,qe)|0,f=f+Math.imul(U,We)|0,A=A+Math.imul(U,qe)|0,v=v+Math.imul(be,Ye)|0,f=f+Math.imul(be,Ze)|0,f=f+Math.imul(we,Ye)|0,A=A+Math.imul(we,Ze)|0,v=v+Math.imul(Me,Pe)|0,f=f+Math.imul(Me,Ke)|0,f=f+Math.imul(ye,Pe)|0,A=A+Math.imul(ye,Ke)|0,v=v+Math.imul(ve,ee)|0,f=f+Math.imul(ve,ne)|0,f=f+Math.imul(Ne,ee)|0,A=A+Math.imul(Ne,ne)|0,v=v+Math.imul(pe,re)|0,f=f+Math.imul(pe,de)|0,f=f+Math.imul(Se,re)|0,A=A+Math.imul(Se,de)|0,v=v+Math.imul(Z,he)|0,f=f+Math.imul(Z,xe)|0,f=f+Math.imul(ce,he)|0,A=A+Math.imul(ce,xe)|0;var Et=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(Et>>>26)|0,Et&=67108863,v=Math.imul(ie,We),f=Math.imul(ie,qe),f=f+Math.imul(ue,We)|0,A=Math.imul(ue,qe),v=v+Math.imul(q,Ye)|0,f=f+Math.imul(q,Ze)|0,f=f+Math.imul(U,Ye)|0,A=A+Math.imul(U,Ze)|0,v=v+Math.imul(be,Pe)|0,f=f+Math.imul(be,Ke)|0,f=f+Math.imul(we,Pe)|0,A=A+Math.imul(we,Ke)|0,v=v+Math.imul(Me,ee)|0,f=f+Math.imul(Me,ne)|0,f=f+Math.imul(ye,ee)|0,A=A+Math.imul(ye,ne)|0,v=v+Math.imul(ve,re)|0,f=f+Math.imul(ve,de)|0,f=f+Math.imul(Ne,re)|0,A=A+Math.imul(Ne,de)|0,v=v+Math.imul(pe,he)|0,f=f+Math.imul(pe,xe)|0,f=f+Math.imul(Se,he)|0,A=A+Math.imul(Se,xe)|0;var ht=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(ht>>>26)|0,ht&=67108863,v=Math.imul(ie,Ye),f=Math.imul(ie,Ze),f=f+Math.imul(ue,Ye)|0,A=Math.imul(ue,Ze),v=v+Math.imul(q,Pe)|0,f=f+Math.imul(q,Ke)|0,f=f+Math.imul(U,Pe)|0,A=A+Math.imul(U,Ke)|0,v=v+Math.imul(be,ee)|0,f=f+Math.imul(be,ne)|0,f=f+Math.imul(we,ee)|0,A=A+Math.imul(we,ne)|0,v=v+Math.imul(Me,re)|0,f=f+Math.imul(Me,de)|0,f=f+Math.imul(ye,re)|0,A=A+Math.imul(ye,de)|0,v=v+Math.imul(ve,he)|0,f=f+Math.imul(ve,xe)|0,f=f+Math.imul(Ne,he)|0,A=A+Math.imul(Ne,xe)|0;var vt=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(vt>>>26)|0,vt&=67108863,v=Math.imul(ie,Pe),f=Math.imul(ie,Ke),f=f+Math.imul(ue,Pe)|0,A=Math.imul(ue,Ke),v=v+Math.imul(q,ee)|0,f=f+Math.imul(q,ne)|0,f=f+Math.imul(U,ee)|0,A=A+Math.imul(U,ne)|0,v=v+Math.imul(be,re)|0,f=f+Math.imul(be,de)|0,f=f+Math.imul(we,re)|0,A=A+Math.imul(we,de)|0,v=v+Math.imul(Me,he)|0,f=f+Math.imul(Me,xe)|0,f=f+Math.imul(ye,he)|0,A=A+Math.imul(ye,xe)|0;var xt=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(xt>>>26)|0,xt&=67108863,v=Math.imul(ie,ee),f=Math.imul(ie,ne),f=f+Math.imul(ue,ee)|0,A=Math.imul(ue,ne),v=v+Math.imul(q,re)|0,f=f+Math.imul(q,de)|0,f=f+Math.imul(U,re)|0,A=A+Math.imul(U,de)|0,v=v+Math.imul(be,he)|0,f=f+Math.imul(be,xe)|0,f=f+Math.imul(we,he)|0,A=A+Math.imul(we,xe)|0;var ut=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(ut>>>26)|0,ut&=67108863,v=Math.imul(ie,re),f=Math.imul(ie,de),f=f+Math.imul(ue,re)|0,A=Math.imul(ue,de),v=v+Math.imul(q,he)|0,f=f+Math.imul(q,xe)|0,f=f+Math.imul(U,he)|0,A=A+Math.imul(U,xe)|0;var Fe=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(Fe>>>26)|0,Fe&=67108863,v=Math.imul(ie,he),f=Math.imul(ie,xe),f=f+Math.imul(ue,he)|0,A=Math.imul(ue,xe);var Re=(E+v|0)+((f&8191)<<13)|0;return E=(A+(f>>>13)|0)+(Re>>>26)|0,Re&=67108863,x[0]=it,x[1]=Xe,x[2]=$t,x[3]=pt,x[4]=tt,x[5]=At,x[6]=Rt,x[7]=Ft,x[8]=Bt,x[9]=Ot,x[10]=jt,x[11]=gt,x[12]=Et,x[13]=ht,x[14]=vt,x[15]=xt,x[16]=ut,x[17]=Fe,x[18]=Re,E!==0&&(x[19]=E,h.length++),h};Math.imul||(T=C);function D(w,o,u){u.negative=o.negative^w.negative,u.length=w.length+o.length;for(var h=0,b=0,y=0;y<u.length-1;y++){var x=b;b=0;for(var E=h&67108863,v=Math.min(y,o.length-1),f=Math.max(0,y-w.length+1);f<=v;f++){var A=y-f,j=w.words[A]|0,P=o.words[f]|0,$=j*P,K=$&67108863;x=x+($/67108864|0)|0,K=K+E|0,E=K&67108863,x=x+(K>>>26)|0,b+=x>>>26,x&=67108863}u.words[y]=E,h=x,x=b}return h!==0?u.words[y]=h:u.length--,u.strip()}function S(w,o,u){var h=new I;return h.mulp(w,o,u)}a.prototype.mulTo=function(o,u){var h,b=this.length+o.length;return this.length===10&&o.length===10?h=T(this,o,u):b<63?h=C(this,o,u):b<1024?h=D(this,o,u):h=S(this,o,u),h};function I(w,o){this.x=w,this.y=o}I.prototype.makeRBT=function(o){for(var u=new Array(o),h=a.prototype._countBits(o)-1,b=0;b<o;b++)u[b]=this.revBin(b,h,o);return u},I.prototype.revBin=function(o,u,h){if(o===0||o===h-1)return o;for(var b=0,y=0;y<u;y++)b|=(o&1)<<u-y-1,o>>=1;return b},I.prototype.permute=function(o,u,h,b,y,x){for(var E=0;E<x;E++)b[E]=u[o[E]],y[E]=h[o[E]]},I.prototype.transform=function(o,u,h,b,y,x){this.permute(x,o,u,h,b,y);for(var E=1;E<y;E<<=1)for(var v=E<<1,f=Math.cos(2*Math.PI/v),A=Math.sin(2*Math.PI/v),j=0;j<y;j+=v)for(var P=f,$=A,K=0;K<E;K++){var Q=h[j+K],H=b[j+K],V=h[j+K+E],J=b[j+K+E],ae=P*V-$*J;J=P*J+$*V,V=ae,h[j+K]=Q+V,b[j+K]=H+J,h[j+K+E]=Q-V,b[j+K+E]=H-J,K!==v&&(ae=f*P-A*$,$=f*$+A*P,P=ae)}},I.prototype.guessLen13b=function(o,u){var h=Math.max(u,o)|1,b=h&1,y=0;for(h=h/2|0;h;h=h>>>1)y++;return 1<<y+1+b},I.prototype.conjugate=function(o,u,h){if(!(h<=1))for(var b=0;b<h/2;b++){var y=o[b];o[b]=o[h-b-1],o[h-b-1]=y,y=u[b],u[b]=-u[h-b-1],u[h-b-1]=-y}},I.prototype.normalize13b=function(o,u){for(var h=0,b=0;b<u/2;b++){var y=Math.round(o[2*b+1]/u)*8192+Math.round(o[2*b]/u)+h;o[b]=y&67108863,y<67108864?h=0:h=y/67108864|0}return o},I.prototype.convert13b=function(o,u,h,b){for(var y=0,x=0;x<u;x++)y=y+(o[x]|0),h[2*x]=y&8191,y=y>>>13,h[2*x+1]=y&8191,y=y>>>13;for(x=2*u;x<b;++x)h[x]=0;r(y===0),r((y&-8192)===0)},I.prototype.stub=function(o){for(var u=new Array(o),h=0;h<o;h++)u[h]=0;return u},I.prototype.mulp=function(o,u,h){var b=2*this.guessLen13b(o.length,u.length),y=this.makeRBT(b),x=this.stub(b),E=new Array(b),v=new Array(b),f=new Array(b),A=new Array(b),j=new Array(b),P=new Array(b),$=h.words;$.length=b,this.convert13b(o.words,o.length,E,b),this.convert13b(u.words,u.length,A,b),this.transform(E,x,v,f,b,y),this.transform(A,x,j,P,b,y);for(var K=0;K<b;K++){var Q=v[K]*j[K]-f[K]*P[K];f[K]=v[K]*P[K]+f[K]*j[K],v[K]=Q}return this.conjugate(v,f,b),this.transform(v,f,$,x,b,y),this.conjugate($,x,b),this.normalize13b($,b),h.negative=o.negative^u.negative,h.length=o.length+u.length,h.strip()},a.prototype.mul=function(o){var u=new a(null);return u.words=new Array(this.length+o.length),this.mulTo(o,u)},a.prototype.mulf=function(o){var u=new a(null);return u.words=new Array(this.length+o.length),S(this,o,u)},a.prototype.imul=function(o){return this.clone().mulTo(o,this)},a.prototype.imuln=function(o){r(typeof o=="number"),r(o<67108864);for(var u=0,h=0;h<this.length;h++){var b=(this.words[h]|0)*o,y=(b&67108863)+(u&67108863);u>>=26,u+=b/67108864|0,u+=y>>>26,this.words[h]=y&67108863}return u!==0&&(this.words[h]=u,this.length++),this},a.prototype.muln=function(o){return this.clone().imuln(o)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(o){var u=M(o);if(u.length===0)return new a(1);for(var h=this,b=0;b<u.length&&u[b]===0;b++,h=h.sqr());if(++b<u.length)for(var y=h.sqr();b<u.length;b++,y=y.sqr())u[b]!==0&&(h=h.mul(y));return h},a.prototype.iushln=function(o){r(typeof o=="number"&&o>=0);var u=o%26,h=(o-u)/26,b=67108863>>>26-u<<26-u,y;if(u!==0){var x=0;for(y=0;y<this.length;y++){var E=this.words[y]&b,v=(this.words[y]|0)-E<<u;this.words[y]=v|x,x=E>>>26-u}x&&(this.words[y]=x,this.length++)}if(h!==0){for(y=this.length-1;y>=0;y--)this.words[y+h]=this.words[y];for(y=0;y<h;y++)this.words[y]=0;this.length+=h}return this.strip()},a.prototype.ishln=function(o){return r(this.negative===0),this.iushln(o)},a.prototype.iushrn=function(o,u,h){r(typeof o=="number"&&o>=0);var b;u?b=(u-u%26)/26:b=0;var y=o%26,x=Math.min((o-y)/26,this.length),E=67108863^67108863>>>y<<y,v=h;if(b-=x,b=Math.max(0,b),v){for(var f=0;f<x;f++)v.words[f]=this.words[f];v.length=x}if(x!==0)if(this.length>x)for(this.length-=x,f=0;f<this.length;f++)this.words[f]=this.words[f+x];else this.words[0]=0,this.length=1;var A=0;for(f=this.length-1;f>=0&&(A!==0||f>=b);f--){var j=this.words[f]|0;this.words[f]=A<<26-y|j>>>y,A=j&E}return v&&A!==0&&(v.words[v.length++]=A),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(o,u,h){return r(this.negative===0),this.iushrn(o,u,h)},a.prototype.shln=function(o){return this.clone().ishln(o)},a.prototype.ushln=function(o){return this.clone().iushln(o)},a.prototype.shrn=function(o){return this.clone().ishrn(o)},a.prototype.ushrn=function(o){return this.clone().iushrn(o)},a.prototype.testn=function(o){r(typeof o=="number"&&o>=0);var u=o%26,h=(o-u)/26,b=1<<u;if(this.length<=h)return!1;var y=this.words[h];return!!(y&b)},a.prototype.imaskn=function(o){r(typeof o=="number"&&o>=0);var u=o%26,h=(o-u)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=h)return this;if(u!==0&&h++,this.length=Math.min(h,this.length),u!==0){var b=67108863^67108863>>>u<<u;this.words[this.length-1]&=b}return this.strip()},a.prototype.maskn=function(o){return this.clone().imaskn(o)},a.prototype.iaddn=function(o){return r(typeof o=="number"),r(o<67108864),o<0?this.isubn(-o):this.negative!==0?this.length===1&&(this.words[0]|0)<o?(this.words[0]=o-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(o),this.negative=1,this):this._iaddn(o)},a.prototype._iaddn=function(o){this.words[0]+=o;for(var u=0;u<this.length&&this.words[u]>=67108864;u++)this.words[u]-=67108864,u===this.length-1?this.words[u+1]=1:this.words[u+1]++;return this.length=Math.max(this.length,u+1),this},a.prototype.isubn=function(o){if(r(typeof o=="number"),r(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var u=0;u<this.length&&this.words[u]<0;u++)this.words[u]+=67108864,this.words[u+1]-=1;return this.strip()},a.prototype.addn=function(o){return this.clone().iaddn(o)},a.prototype.subn=function(o){return this.clone().isubn(o)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(o,u,h){var b=o.length+h,y;this._expand(b);var x,E=0;for(y=0;y<o.length;y++){x=(this.words[y+h]|0)+E;var v=(o.words[y]|0)*u;x-=v&67108863,E=(x>>26)-(v/67108864|0),this.words[y+h]=x&67108863}for(;y<this.length-h;y++)x=(this.words[y+h]|0)+E,E=x>>26,this.words[y+h]=x&67108863;if(E===0)return this.strip();for(r(E===-1),E=0,y=0;y<this.length;y++)x=-(this.words[y]|0)+E,E=x>>26,this.words[y]=x&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(o,u){var h=this.length-o.length,b=this.clone(),y=o,x=y.words[y.length-1]|0,E=this._countBits(x);h=26-E,h!==0&&(y=y.ushln(h),b.iushln(h),x=y.words[y.length-1]|0);var v=b.length-y.length,f;if(u!=="mod"){f=new a(null),f.length=v+1,f.words=new Array(f.length);for(var A=0;A<f.length;A++)f.words[A]=0}var j=b.clone()._ishlnsubmul(y,1,v);j.negative===0&&(b=j,f&&(f.words[v]=1));for(var P=v-1;P>=0;P--){var $=(b.words[y.length+P]|0)*67108864+(b.words[y.length+P-1]|0);for($=Math.min($/x|0,67108863),b._ishlnsubmul(y,$,P);b.negative!==0;)$--,b.negative=0,b._ishlnsubmul(y,1,P),b.isZero()||(b.negative^=1);f&&(f.words[P]=$)}return f&&f.strip(),b.strip(),u!=="div"&&h!==0&&b.iushrn(h),{div:f||null,mod:b}},a.prototype.divmod=function(o,u,h){if(r(!o.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var b,y,x;return this.negative!==0&&o.negative===0?(x=this.neg().divmod(o,u),u!=="mod"&&(b=x.div.neg()),u!=="div"&&(y=x.mod.neg(),h&&y.negative!==0&&y.iadd(o)),{div:b,mod:y}):this.negative===0&&o.negative!==0?(x=this.divmod(o.neg(),u),u!=="mod"&&(b=x.div.neg()),{div:b,mod:x.mod}):this.negative&o.negative?(x=this.neg().divmod(o.neg(),u),u!=="div"&&(y=x.mod.neg(),h&&y.negative!==0&&y.isub(o)),{div:x.div,mod:y}):o.length>this.length||this.cmp(o)<0?{div:new a(0),mod:this}:o.length===1?u==="div"?{div:this.divn(o.words[0]),mod:null}:u==="mod"?{div:null,mod:new a(this.modn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new a(this.modn(o.words[0]))}:this._wordDiv(o,u)},a.prototype.div=function(o){return this.divmod(o,"div",!1).div},a.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},a.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},a.prototype.divRound=function(o){var u=this.divmod(o);if(u.mod.isZero())return u.div;var h=u.div.negative!==0?u.mod.isub(o):u.mod,b=o.ushrn(1),y=o.andln(1),x=h.cmp(b);return x<0||y===1&&x===0?u.div:u.div.negative!==0?u.div.isubn(1):u.div.iaddn(1)},a.prototype.modn=function(o){r(o<=67108863);for(var u=(1<<26)%o,h=0,b=this.length-1;b>=0;b--)h=(u*h+(this.words[b]|0))%o;return h},a.prototype.idivn=function(o){r(o<=67108863);for(var u=0,h=this.length-1;h>=0;h--){var b=(this.words[h]|0)+u*67108864;this.words[h]=b/o|0,u=b%o}return this.strip()},a.prototype.divn=function(o){return this.clone().idivn(o)},a.prototype.egcd=function(o){r(o.negative===0),r(!o.isZero());var u=this,h=o.clone();u.negative!==0?u=u.umod(o):u=u.clone();for(var b=new a(1),y=new a(0),x=new a(0),E=new a(1),v=0;u.isEven()&&h.isEven();)u.iushrn(1),h.iushrn(1),++v;for(var f=h.clone(),A=u.clone();!u.isZero();){for(var j=0,P=1;!(u.words[0]&P)&&j<26;++j,P<<=1);if(j>0)for(u.iushrn(j);j-- >0;)(b.isOdd()||y.isOdd())&&(b.iadd(f),y.isub(A)),b.iushrn(1),y.iushrn(1);for(var $=0,K=1;!(h.words[0]&K)&&$<26;++$,K<<=1);if($>0)for(h.iushrn($);$-- >0;)(x.isOdd()||E.isOdd())&&(x.iadd(f),E.isub(A)),x.iushrn(1),E.iushrn(1);u.cmp(h)>=0?(u.isub(h),b.isub(x),y.isub(E)):(h.isub(u),x.isub(b),E.isub(y))}return{a:x,b:E,gcd:h.iushln(v)}},a.prototype._invmp=function(o){r(o.negative===0),r(!o.isZero());var u=this,h=o.clone();u.negative!==0?u=u.umod(o):u=u.clone();for(var b=new a(1),y=new a(0),x=h.clone();u.cmpn(1)>0&&h.cmpn(1)>0;){for(var E=0,v=1;!(u.words[0]&v)&&E<26;++E,v<<=1);if(E>0)for(u.iushrn(E);E-- >0;)b.isOdd()&&b.iadd(x),b.iushrn(1);for(var f=0,A=1;!(h.words[0]&A)&&f<26;++f,A<<=1);if(f>0)for(h.iushrn(f);f-- >0;)y.isOdd()&&y.iadd(x),y.iushrn(1);u.cmp(h)>=0?(u.isub(h),b.isub(y)):(h.isub(u),y.isub(b))}var j;return u.cmpn(1)===0?j=b:j=y,j.cmpn(0)<0&&j.iadd(o),j},a.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var u=this.clone(),h=o.clone();u.negative=0,h.negative=0;for(var b=0;u.isEven()&&h.isEven();b++)u.iushrn(1),h.iushrn(1);do{for(;u.isEven();)u.iushrn(1);for(;h.isEven();)h.iushrn(1);var y=u.cmp(h);if(y<0){var x=u;u=h,h=x}else if(y===0||h.cmpn(1)===0)break;u.isub(h)}while(!0);return h.iushln(b)},a.prototype.invm=function(o){return this.egcd(o).a.umod(o)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(o){return this.words[0]&o},a.prototype.bincn=function(o){r(typeof o=="number");var u=o%26,h=(o-u)/26,b=1<<u;if(this.length<=h)return this._expand(h+1),this.words[h]|=b,this;for(var y=b,x=h;y!==0&&x<this.length;x++){var E=this.words[x]|0;E+=y,y=E>>>26,E&=67108863,this.words[x]=E}return y!==0&&(this.words[x]=y,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(o){var u=o<0;if(this.negative!==0&&!u)return-1;if(this.negative===0&&u)return 1;this.strip();var h;if(this.length>1)h=1;else{u&&(o=-o),r(o<=67108863,"Number is too big");var b=this.words[0]|0;h=b===o?0:b<o?-1:1}return this.negative!==0?-h|0:h},a.prototype.cmp=function(o){if(this.negative!==0&&o.negative===0)return-1;if(this.negative===0&&o.negative!==0)return 1;var u=this.ucmp(o);return this.negative!==0?-u|0:u},a.prototype.ucmp=function(o){if(this.length>o.length)return 1;if(this.length<o.length)return-1;for(var u=0,h=this.length-1;h>=0;h--){var b=this.words[h]|0,y=o.words[h]|0;if(b!==y){b<y?u=-1:b>y&&(u=1);break}}return u},a.prototype.gtn=function(o){return this.cmpn(o)===1},a.prototype.gt=function(o){return this.cmp(o)===1},a.prototype.gten=function(o){return this.cmpn(o)>=0},a.prototype.gte=function(o){return this.cmp(o)>=0},a.prototype.ltn=function(o){return this.cmpn(o)===-1},a.prototype.lt=function(o){return this.cmp(o)===-1},a.prototype.lten=function(o){return this.cmpn(o)<=0},a.prototype.lte=function(o){return this.cmp(o)<=0},a.prototype.eqn=function(o){return this.cmpn(o)===0},a.prototype.eq=function(o){return this.cmp(o)===0},a.red=function(o){return new F(o)},a.prototype.toRed=function(o){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},a.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(o){return this.red=o,this},a.prototype.forceRed=function(o){return r(!this.red,"Already a number in reduction context"),this._forceRed(o)},a.prototype.redAdd=function(o){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},a.prototype.redIAdd=function(o){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},a.prototype.redSub=function(o){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},a.prototype.redISub=function(o){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},a.prototype.redShl=function(o){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},a.prototype.redMul=function(o){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},a.prototype.redIMul=function(o){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},a.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(o){return r(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var N={k256:null,p224:null,p192:null,p25519:null};function B(w,o){this.name=w,this.p=new a(o,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}B.prototype._tmp=function(){var o=new a(null);return o.words=new Array(Math.ceil(this.n/13)),o},B.prototype.ireduce=function(o){var u=o,h;do this.split(u,this.tmp),u=this.imulK(u),u=u.iadd(this.tmp),h=u.bitLength();while(h>this.n);var b=h<this.n?-1:u.ucmp(this.p);return b===0?(u.words[0]=0,u.length=1):b>0?u.isub(this.p):u.strip!==void 0?u.strip():u._strip(),u},B.prototype.split=function(o,u){o.iushrn(this.n,0,u)},B.prototype.imulK=function(o){return o.imul(this.k)};function k(){B.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(k,B),k.prototype.split=function(o,u){for(var h=4194303,b=Math.min(o.length,9),y=0;y<b;y++)u.words[y]=o.words[y];if(u.length=b,o.length<=9){o.words[0]=0,o.length=1;return}var x=o.words[9];for(u.words[u.length++]=x&h,y=10;y<o.length;y++){var E=o.words[y]|0;o.words[y-10]=(E&h)<<4|x>>>22,x=E}x>>>=22,o.words[y-10]=x,x===0&&o.length>10?o.length-=10:o.length-=9},k.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var u=0,h=0;h<o.length;h++){var b=o.words[h]|0;u+=b*977,o.words[h]=u&67108863,u=b*64+(u/67108864|0)}return o.words[o.length-1]===0&&(o.length--,o.words[o.length-1]===0&&o.length--),o};function O(){B.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(O,B);function z(){B.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(z,B);function _(){B.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(_,B),_.prototype.imulK=function(o){for(var u=0,h=0;h<o.length;h++){var b=(o.words[h]|0)*19+u,y=b&67108863;b>>>=26,o.words[h]=y,u=b}return u!==0&&(o.words[o.length++]=u),o},a._prime=function(o){if(N[o])return N[o];var u;if(o==="k256")u=new k;else if(o==="p224")u=new O;else if(o==="p192")u=new z;else if(o==="p25519")u=new _;else throw new Error("Unknown prime "+o);return N[o]=u,u};function F(w){if(typeof w=="string"){var o=a._prime(w);this.m=o.p,this.prime=o}else r(w.gtn(1),"modulus must be greater than 1"),this.m=w,this.prime=null}F.prototype._verify1=function(o){r(o.negative===0,"red works only with positives"),r(o.red,"red works only with red numbers")},F.prototype._verify2=function(o,u){r((o.negative|u.negative)===0,"red works only with positives"),r(o.red&&o.red===u.red,"red works only with red numbers")},F.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):o.umod(this.m)._forceRed(this)},F.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},F.prototype.add=function(o,u){this._verify2(o,u);var h=o.add(u);return h.cmp(this.m)>=0&&h.isub(this.m),h._forceRed(this)},F.prototype.iadd=function(o,u){this._verify2(o,u);var h=o.iadd(u);return h.cmp(this.m)>=0&&h.isub(this.m),h},F.prototype.sub=function(o,u){this._verify2(o,u);var h=o.sub(u);return h.cmpn(0)<0&&h.iadd(this.m),h._forceRed(this)},F.prototype.isub=function(o,u){this._verify2(o,u);var h=o.isub(u);return h.cmpn(0)<0&&h.iadd(this.m),h},F.prototype.shl=function(o,u){return this._verify1(o),this.imod(o.ushln(u))},F.prototype.imul=function(o,u){return this._verify2(o,u),this.imod(o.imul(u))},F.prototype.mul=function(o,u){return this._verify2(o,u),this.imod(o.mul(u))},F.prototype.isqr=function(o){return this.imul(o,o.clone())},F.prototype.sqr=function(o){return this.mul(o,o)},F.prototype.sqrt=function(o){if(o.isZero())return o.clone();var u=this.m.andln(3);if(r(u%2===1),u===3){var h=this.m.add(new a(1)).iushrn(2);return this.pow(o,h)}for(var b=this.m.subn(1),y=0;!b.isZero()&&b.andln(1)===0;)y++,b.iushrn(1);r(!b.isZero());var x=new a(1).toRed(this),E=x.redNeg(),v=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new a(2*f*f).toRed(this);this.pow(f,v).cmp(E)!==0;)f.redIAdd(E);for(var A=this.pow(f,b),j=this.pow(o,b.addn(1).iushrn(1)),P=this.pow(o,b),$=y;P.cmp(x)!==0;){for(var K=P,Q=0;K.cmp(x)!==0;Q++)K=K.redSqr();r(Q<$);var H=this.pow(A,new a(1).iushln($-Q-1));j=j.redMul(H),A=H.redSqr(),P=P.redMul(A),$=Q}return j},F.prototype.invm=function(o){var u=o._invmp(this.m);return u.negative!==0?(u.negative=0,this.imod(u).redNeg()):this.imod(u)},F.prototype.pow=function(o,u){if(u.isZero())return new a(1).toRed(this);if(u.cmpn(1)===0)return o.clone();var h=4,b=new Array(1<<h);b[0]=new a(1).toRed(this),b[1]=o;for(var y=2;y<b.length;y++)b[y]=this.mul(b[y-1],o);var x=b[0],E=0,v=0,f=u.bitLength()%26;for(f===0&&(f=26),y=u.length-1;y>=0;y--){for(var A=u.words[y],j=f-1;j>=0;j--){var P=A>>j&1;if(x!==b[0]&&(x=this.sqr(x)),P===0&&E===0){v=0;continue}E<<=1,E|=P,v++,!(v!==h&&(y!==0||j!==0))&&(x=this.mul(x,b[E]),v=0,E=0)}f=26}return x},F.prototype.convertTo=function(o){var u=o.umod(this.m);return u===o?u.clone():u},F.prototype.convertFrom=function(o){var u=o.clone();return u.red=null,u},a.mont=function(o){return new R(o)};function R(w){F.call(this,w),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}i(R,F),R.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},R.prototype.convertFrom=function(o){var u=this.imod(o.mul(this.rinv));return u.red=null,u},R.prototype.imul=function(o,u){if(o.isZero()||u.isZero())return o.words[0]=0,o.length=1,o;var h=o.imul(u),b=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=h.isub(b).iushrn(this.shift),x=y;return y.cmp(this.m)>=0?x=y.isub(this.m):y.cmpn(0)<0&&(x=y.iadd(this.m)),x._forceRed(this)},R.prototype.mul=function(o,u){if(o.isZero()||u.isZero())return new a(0)._forceRed(this);var h=o.mul(u),b=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=h.isub(b).iushrn(this.shift),x=y;return y.cmp(this.m)>=0?x=y.isub(this.m):y.cmpn(0)<0&&(x=y.iadd(this.m)),x._forceRed(this)},R.prototype.invm=function(o){var u=this.imod(o._invmp(this.m).mul(this.r2));return u._forceRed(this)}})(t,Kt)}(Ym)),Ym.exports}var Gm={exports:{}};Gm.exports;var Tz;function B4e(){return Tz||(Tz=1,function(t){(function(e,n){function r(w,o){if(!w)throw new Error(o||"Assertion failed")}function i(w,o){w.super_=o;var u=function(){};u.prototype=o.prototype,w.prototype=new u,w.prototype.constructor=w}function a(w,o,u){if(a.isBN(w))return w;this.negative=0,this.words=null,this.length=0,this.red=null,w!==null&&((o==="le"||o==="be")&&(u=o,o=10),this._init(w||0,o||10,u||"be"))}typeof e=="object"?e.exports=a:n.BN=a,a.BN=a,a.wordSize=26;var s;try{typeof window<"u"&&typeof window.Buffer<"u"?s=window.Buffer:s=wt.Buffer}catch{}a.isBN=function(o){return o instanceof a?!0:o!==null&&typeof o=="object"&&o.constructor.wordSize===a.wordSize&&Array.isArray(o.words)},a.max=function(o,u){return o.cmp(u)>0?o:u},a.min=function(o,u){return o.cmp(u)<0?o:u},a.prototype._init=function(o,u,h){if(typeof o=="number")return this._initNumber(o,u,h);if(typeof o=="object")return this._initArray(o,u,h);u==="hex"&&(u=16),r(u===(u|0)&&u>=2&&u<=36),o=o.toString().replace(/\s+/g,"");var b=0;o[0]==="-"&&(b++,this.negative=1),b<o.length&&(u===16?this._parseHex(o,b,h):(this._parseBase(o,u,b),h==="le"&&this._initArray(this.toArray(),u,h)))},a.prototype._initNumber=function(o,u,h){o<0&&(this.negative=1,o=-o),o<67108864?(this.words=[o&67108863],this.length=1):o<4503599627370496?(this.words=[o&67108863,o/67108864&67108863],this.length=2):(r(o<9007199254740992),this.words=[o&67108863,o/67108864&67108863,1],this.length=3),h==="le"&&this._initArray(this.toArray(),u,h)},a.prototype._initArray=function(o,u,h){if(r(typeof o.length=="number"),o.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(o.length/3),this.words=new Array(this.length);for(var b=0;b<this.length;b++)this.words[b]=0;var y,x,E=0;if(h==="be")for(b=o.length-1,y=0;b>=0;b-=3)x=o[b]|o[b-1]<<8|o[b-2]<<16,this.words[y]|=x<<E&67108863,this.words[y+1]=x>>>26-E&67108863,E+=24,E>=26&&(E-=26,y++);else if(h==="le")for(b=0,y=0;b<o.length;b+=3)x=o[b]|o[b+1]<<8|o[b+2]<<16,this.words[y]|=x<<E&67108863,this.words[y+1]=x>>>26-E&67108863,E+=24,E>=26&&(E-=26,y++);return this.strip()};function c(w,o){var u=w.charCodeAt(o);return u>=65&&u<=70?u-55:u>=97&&u<=102?u-87:u-48&15}function l(w,o,u){var h=c(w,u);return u-1>=o&&(h|=c(w,u-1)<<4),h}a.prototype._parseHex=function(o,u,h){this.length=Math.ceil((o.length-u)/6),this.words=new Array(this.length);for(var b=0;b<this.length;b++)this.words[b]=0;var y=0,x=0,E;if(h==="be")for(b=o.length-1;b>=u;b-=2)E=l(o,u,b)<<y,this.words[x]|=E&67108863,y>=18?(y-=18,x+=1,this.words[x]|=E>>>26):y+=8;else{var v=o.length-u;for(b=v%2===0?u+1:u;b<o.length;b+=2)E=l(o,u,b)<<y,this.words[x]|=E&67108863,y>=18?(y-=18,x+=1,this.words[x]|=E>>>26):y+=8}this.strip()};function d(w,o,u,h){for(var b=0,y=Math.min(w.length,u),x=o;x<y;x++){var E=w.charCodeAt(x)-48;b*=h,E>=49?b+=E-49+10:E>=17?b+=E-17+10:b+=E}return b}a.prototype._parseBase=function(o,u,h){this.words=[0],this.length=1;for(var b=0,y=1;y<=67108863;y*=u)b++;b--,y=y/u|0;for(var x=o.length-h,E=x%b,v=Math.min(x,x-E)+h,f=0,A=h;A<v;A+=b)f=d(o,A,A+b,u),this.imuln(y),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f);if(E!==0){var j=1;for(f=d(o,A,o.length,u),A=0;A<E;A++)j*=u;this.imuln(j),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f)}this.strip()},a.prototype.copy=function(o){o.words=new Array(this.length);for(var u=0;u<this.length;u++)o.words[u]=this.words[u];o.length=this.length,o.negative=this.negative,o.red=this.red},a.prototype.clone=function(){var o=new a(null);return this.copy(o),o},a.prototype._expand=function(o){for(;this.length<o;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var p=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],m=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],g=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(o,u){o=o||10,u=u|0||1;var h;if(o===16||o==="hex"){h="";for(var b=0,y=0,x=0;x<this.length;x++){var E=this.words[x],v=((E<<b|y)&16777215).toString(16);y=E>>>24-b&16777215,b+=2,b>=26&&(b-=26,x--),y!==0||x!==this.length-1?h=p[6-v.length]+v+h:h=v+h}for(y!==0&&(h=y.toString(16)+h);h.length%u!==0;)h="0"+h;return this.negative!==0&&(h="-"+h),h}if(o===(o|0)&&o>=2&&o<=36){var f=m[o],A=g[o];h="";var j=this.clone();for(j.negative=0;!j.isZero();){var P=j.modn(A).toString(o);j=j.idivn(A),j.isZero()?h=P+h:h=p[f-P.length]+P+h}for(this.isZero()&&(h="0"+h);h.length%u!==0;)h="0"+h;return this.negative!==0&&(h="-"+h),h}r(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(o,u){return r(typeof s<"u"),this.toArrayLike(s,o,u)},a.prototype.toArray=function(o,u){return this.toArrayLike(Array,o,u)},a.prototype.toArrayLike=function(o,u,h){var b=this.byteLength(),y=h||Math.max(1,b);r(b<=y,"byte array longer than desired length"),r(y>0,"Requested array length <= 0"),this.strip();var x=u==="le",E=new o(y),v,f,A=this.clone();if(x){for(f=0;!A.isZero();f++)v=A.andln(255),A.iushrn(8),E[f]=v;for(;f<y;f++)E[f]=0}else{for(f=0;f<y-b;f++)E[f]=0;for(f=0;!A.isZero();f++)v=A.andln(255),A.iushrn(8),E[y-f-1]=v}return E},Math.clz32?a.prototype._countBits=function(o){return 32-Math.clz32(o)}:a.prototype._countBits=function(o){var u=o,h=0;return u>=4096&&(h+=13,u>>>=13),u>=64&&(h+=7,u>>>=7),u>=8&&(h+=4,u>>>=4),u>=2&&(h+=2,u>>>=2),h+u},a.prototype._zeroBits=function(o){if(o===0)return 26;var u=o,h=0;return u&8191||(h+=13,u>>>=13),u&127||(h+=7,u>>>=7),u&15||(h+=4,u>>>=4),u&3||(h+=2,u>>>=2),u&1||h++,h},a.prototype.bitLength=function(){var o=this.words[this.length-1],u=this._countBits(o);return(this.length-1)*26+u};function M(w){for(var o=new Array(w.bitLength()),u=0;u<o.length;u++){var h=u/26|0,b=u%26;o[u]=(w.words[h]&1<<b)>>>b}return o}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,u=0;u<this.length;u++){var h=this._zeroBits(this.words[u]);if(o+=h,h!==26)break}return o},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(o){return this.negative!==0?this.abs().inotn(o).iaddn(1):this.clone()},a.prototype.fromTwos=function(o){return this.testn(o-1)?this.notn(o).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(o){for(;this.length<o.length;)this.words[this.length++]=0;for(var u=0;u<o.length;u++)this.words[u]=this.words[u]|o.words[u];return this.strip()},a.prototype.ior=function(o){return r((this.negative|o.negative)===0),this.iuor(o)},a.prototype.or=function(o){return this.length>o.length?this.clone().ior(o):o.clone().ior(this)},a.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},a.prototype.iuand=function(o){var u;this.length>o.length?u=o:u=this;for(var h=0;h<u.length;h++)this.words[h]=this.words[h]&o.words[h];return this.length=u.length,this.strip()},a.prototype.iand=function(o){return r((this.negative|o.negative)===0),this.iuand(o)},a.prototype.and=function(o){return this.length>o.length?this.clone().iand(o):o.clone().iand(this)},a.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},a.prototype.iuxor=function(o){var u,h;this.length>o.length?(u=this,h=o):(u=o,h=this);for(var b=0;b<h.length;b++)this.words[b]=u.words[b]^h.words[b];if(this!==u)for(;b<u.length;b++)this.words[b]=u.words[b];return this.length=u.length,this.strip()},a.prototype.ixor=function(o){return r((this.negative|o.negative)===0),this.iuxor(o)},a.prototype.xor=function(o){return this.length>o.length?this.clone().ixor(o):o.clone().ixor(this)},a.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},a.prototype.inotn=function(o){r(typeof o=="number"&&o>=0);var u=Math.ceil(o/26)|0,h=o%26;this._expand(u),h>0&&u--;for(var b=0;b<u;b++)this.words[b]=~this.words[b]&67108863;return h>0&&(this.words[b]=~this.words[b]&67108863>>26-h),this.strip()},a.prototype.notn=function(o){return this.clone().inotn(o)},a.prototype.setn=function(o,u){r(typeof o=="number"&&o>=0);var h=o/26|0,b=o%26;return this._expand(h+1),u?this.words[h]=this.words[h]|1<<b:this.words[h]=this.words[h]&~(1<<b),this.strip()},a.prototype.iadd=function(o){var u;if(this.negative!==0&&o.negative===0)return this.negative=0,u=this.isub(o),this.negative^=1,this._normSign();if(this.negative===0&&o.negative!==0)return o.negative=0,u=this.isub(o),o.negative=1,u._normSign();var h,b;this.length>o.length?(h=this,b=o):(h=o,b=this);for(var y=0,x=0;x<b.length;x++)u=(h.words[x]|0)+(b.words[x]|0)+y,this.words[x]=u&67108863,y=u>>>26;for(;y!==0&&x<h.length;x++)u=(h.words[x]|0)+y,this.words[x]=u&67108863,y=u>>>26;if(this.length=h.length,y!==0)this.words[this.length]=y,this.length++;else if(h!==this)for(;x<h.length;x++)this.words[x]=h.words[x];return this},a.prototype.add=function(o){var u;return o.negative!==0&&this.negative===0?(o.negative=0,u=this.sub(o),o.negative^=1,u):o.negative===0&&this.negative!==0?(this.negative=0,u=o.sub(this),this.negative=1,u):this.length>o.length?this.clone().iadd(o):o.clone().iadd(this)},a.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var u=this.iadd(o);return o.negative=1,u._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var h=this.cmp(o);if(h===0)return this.negative=0,this.length=1,this.words[0]=0,this;var b,y;h>0?(b=this,y=o):(b=o,y=this);for(var x=0,E=0;E<y.length;E++)u=(b.words[E]|0)-(y.words[E]|0)+x,x=u>>26,this.words[E]=u&67108863;for(;x!==0&&E<b.length;E++)u=(b.words[E]|0)+x,x=u>>26,this.words[E]=u&67108863;if(x===0&&E<b.length&&b!==this)for(;E<b.length;E++)this.words[E]=b.words[E];return this.length=Math.max(this.length,E),b!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(o){return this.clone().isub(o)};function C(w,o,u){u.negative=o.negative^w.negative;var h=w.length+o.length|0;u.length=h,h=h-1|0;var b=w.words[0]|0,y=o.words[0]|0,x=b*y,E=x&67108863,v=x/67108864|0;u.words[0]=E;for(var f=1;f<h;f++){for(var A=v>>>26,j=v&67108863,P=Math.min(f,o.length-1),$=Math.max(0,f-w.length+1);$<=P;$++){var K=f-$|0;b=w.words[K]|0,y=o.words[$]|0,x=b*y+j,A+=x/67108864|0,j=x&67108863}u.words[f]=j|0,v=A|0}return v!==0?u.words[f]=v|0:u.length--,u.strip()}var T=function(o,u,h){var b=o.words,y=u.words,x=h.words,E=0,v,f,A,j=b[0]|0,P=j&8191,$=j>>>13,K=b[1]|0,Q=K&8191,H=K>>>13,V=b[2]|0,J=V&8191,ae=V>>>13,te=b[3]|0,Z=te&8191,ce=te>>>13,De=b[4]|0,pe=De&8191,Se=De>>>13,st=b[5]|0,ve=st&8191,Ne=st>>>13,lt=b[6]|0,Me=lt&8191,ye=lt>>>13,_e=b[7]|0,be=_e&8191,we=_e>>>13,yt=b[8]|0,q=yt&8191,U=yt>>>13,Y=b[9]|0,ie=Y&8191,ue=Y>>>13,Ce=y[0]|0,fe=Ce&8191,Ae=Ce>>>13,at=y[1]|0,Ee=at&8191,Be=at>>>13,Mt=y[2]|0,Oe=Mt&8191,Ge=Mt>>>13,Qt=y[3]|0,ze=Qt&8191,$e=Qt>>>13,rn=y[4]|0,We=rn&8191,qe=rn>>>13,bn=y[5]|0,Ye=bn&8191,Ze=bn>>>13,vn=y[6]|0,Pe=vn&8191,Ke=vn>>>13,X=y[7]|0,ee=X&8191,ne=X>>>13,W=y[8]|0,re=W&8191,de=W>>>13,Ie=y[9]|0,he=Ie&8191,xe=Ie>>>13;h.negative=o.negative^u.negative,h.length=19,v=Math.imul(P,fe),f=Math.imul(P,Ae),f=f+Math.imul($,fe)|0,A=Math.imul($,Ae);var it=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(it>>>26)|0,it&=67108863,v=Math.imul(Q,fe),f=Math.imul(Q,Ae),f=f+Math.imul(H,fe)|0,A=Math.imul(H,Ae),v=v+Math.imul(P,Ee)|0,f=f+Math.imul(P,Be)|0,f=f+Math.imul($,Ee)|0,A=A+Math.imul($,Be)|0;var Xe=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,v=Math.imul(J,fe),f=Math.imul(J,Ae),f=f+Math.imul(ae,fe)|0,A=Math.imul(ae,Ae),v=v+Math.imul(Q,Ee)|0,f=f+Math.imul(Q,Be)|0,f=f+Math.imul(H,Ee)|0,A=A+Math.imul(H,Be)|0,v=v+Math.imul(P,Oe)|0,f=f+Math.imul(P,Ge)|0,f=f+Math.imul($,Oe)|0,A=A+Math.imul($,Ge)|0;var $t=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+($t>>>26)|0,$t&=67108863,v=Math.imul(Z,fe),f=Math.imul(Z,Ae),f=f+Math.imul(ce,fe)|0,A=Math.imul(ce,Ae),v=v+Math.imul(J,Ee)|0,f=f+Math.imul(J,Be)|0,f=f+Math.imul(ae,Ee)|0,A=A+Math.imul(ae,Be)|0,v=v+Math.imul(Q,Oe)|0,f=f+Math.imul(Q,Ge)|0,f=f+Math.imul(H,Oe)|0,A=A+Math.imul(H,Ge)|0,v=v+Math.imul(P,ze)|0,f=f+Math.imul(P,$e)|0,f=f+Math.imul($,ze)|0,A=A+Math.imul($,$e)|0;var pt=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(pt>>>26)|0,pt&=67108863,v=Math.imul(pe,fe),f=Math.imul(pe,Ae),f=f+Math.imul(Se,fe)|0,A=Math.imul(Se,Ae),v=v+Math.imul(Z,Ee)|0,f=f+Math.imul(Z,Be)|0,f=f+Math.imul(ce,Ee)|0,A=A+Math.imul(ce,Be)|0,v=v+Math.imul(J,Oe)|0,f=f+Math.imul(J,Ge)|0,f=f+Math.imul(ae,Oe)|0,A=A+Math.imul(ae,Ge)|0,v=v+Math.imul(Q,ze)|0,f=f+Math.imul(Q,$e)|0,f=f+Math.imul(H,ze)|0,A=A+Math.imul(H,$e)|0,v=v+Math.imul(P,We)|0,f=f+Math.imul(P,qe)|0,f=f+Math.imul($,We)|0,A=A+Math.imul($,qe)|0;var tt=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(tt>>>26)|0,tt&=67108863,v=Math.imul(ve,fe),f=Math.imul(ve,Ae),f=f+Math.imul(Ne,fe)|0,A=Math.imul(Ne,Ae),v=v+Math.imul(pe,Ee)|0,f=f+Math.imul(pe,Be)|0,f=f+Math.imul(Se,Ee)|0,A=A+Math.imul(Se,Be)|0,v=v+Math.imul(Z,Oe)|0,f=f+Math.imul(Z,Ge)|0,f=f+Math.imul(ce,Oe)|0,A=A+Math.imul(ce,Ge)|0,v=v+Math.imul(J,ze)|0,f=f+Math.imul(J,$e)|0,f=f+Math.imul(ae,ze)|0,A=A+Math.imul(ae,$e)|0,v=v+Math.imul(Q,We)|0,f=f+Math.imul(Q,qe)|0,f=f+Math.imul(H,We)|0,A=A+Math.imul(H,qe)|0,v=v+Math.imul(P,Ye)|0,f=f+Math.imul(P,Ze)|0,f=f+Math.imul($,Ye)|0,A=A+Math.imul($,Ze)|0;var At=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(At>>>26)|0,At&=67108863,v=Math.imul(Me,fe),f=Math.imul(Me,Ae),f=f+Math.imul(ye,fe)|0,A=Math.imul(ye,Ae),v=v+Math.imul(ve,Ee)|0,f=f+Math.imul(ve,Be)|0,f=f+Math.imul(Ne,Ee)|0,A=A+Math.imul(Ne,Be)|0,v=v+Math.imul(pe,Oe)|0,f=f+Math.imul(pe,Ge)|0,f=f+Math.imul(Se,Oe)|0,A=A+Math.imul(Se,Ge)|0,v=v+Math.imul(Z,ze)|0,f=f+Math.imul(Z,$e)|0,f=f+Math.imul(ce,ze)|0,A=A+Math.imul(ce,$e)|0,v=v+Math.imul(J,We)|0,f=f+Math.imul(J,qe)|0,f=f+Math.imul(ae,We)|0,A=A+Math.imul(ae,qe)|0,v=v+Math.imul(Q,Ye)|0,f=f+Math.imul(Q,Ze)|0,f=f+Math.imul(H,Ye)|0,A=A+Math.imul(H,Ze)|0,v=v+Math.imul(P,Pe)|0,f=f+Math.imul(P,Ke)|0,f=f+Math.imul($,Pe)|0,A=A+Math.imul($,Ke)|0;var Rt=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,v=Math.imul(be,fe),f=Math.imul(be,Ae),f=f+Math.imul(we,fe)|0,A=Math.imul(we,Ae),v=v+Math.imul(Me,Ee)|0,f=f+Math.imul(Me,Be)|0,f=f+Math.imul(ye,Ee)|0,A=A+Math.imul(ye,Be)|0,v=v+Math.imul(ve,Oe)|0,f=f+Math.imul(ve,Ge)|0,f=f+Math.imul(Ne,Oe)|0,A=A+Math.imul(Ne,Ge)|0,v=v+Math.imul(pe,ze)|0,f=f+Math.imul(pe,$e)|0,f=f+Math.imul(Se,ze)|0,A=A+Math.imul(Se,$e)|0,v=v+Math.imul(Z,We)|0,f=f+Math.imul(Z,qe)|0,f=f+Math.imul(ce,We)|0,A=A+Math.imul(ce,qe)|0,v=v+Math.imul(J,Ye)|0,f=f+Math.imul(J,Ze)|0,f=f+Math.imul(ae,Ye)|0,A=A+Math.imul(ae,Ze)|0,v=v+Math.imul(Q,Pe)|0,f=f+Math.imul(Q,Ke)|0,f=f+Math.imul(H,Pe)|0,A=A+Math.imul(H,Ke)|0,v=v+Math.imul(P,ee)|0,f=f+Math.imul(P,ne)|0,f=f+Math.imul($,ee)|0,A=A+Math.imul($,ne)|0;var Ft=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,v=Math.imul(q,fe),f=Math.imul(q,Ae),f=f+Math.imul(U,fe)|0,A=Math.imul(U,Ae),v=v+Math.imul(be,Ee)|0,f=f+Math.imul(be,Be)|0,f=f+Math.imul(we,Ee)|0,A=A+Math.imul(we,Be)|0,v=v+Math.imul(Me,Oe)|0,f=f+Math.imul(Me,Ge)|0,f=f+Math.imul(ye,Oe)|0,A=A+Math.imul(ye,Ge)|0,v=v+Math.imul(ve,ze)|0,f=f+Math.imul(ve,$e)|0,f=f+Math.imul(Ne,ze)|0,A=A+Math.imul(Ne,$e)|0,v=v+Math.imul(pe,We)|0,f=f+Math.imul(pe,qe)|0,f=f+Math.imul(Se,We)|0,A=A+Math.imul(Se,qe)|0,v=v+Math.imul(Z,Ye)|0,f=f+Math.imul(Z,Ze)|0,f=f+Math.imul(ce,Ye)|0,A=A+Math.imul(ce,Ze)|0,v=v+Math.imul(J,Pe)|0,f=f+Math.imul(J,Ke)|0,f=f+Math.imul(ae,Pe)|0,A=A+Math.imul(ae,Ke)|0,v=v+Math.imul(Q,ee)|0,f=f+Math.imul(Q,ne)|0,f=f+Math.imul(H,ee)|0,A=A+Math.imul(H,ne)|0,v=v+Math.imul(P,re)|0,f=f+Math.imul(P,de)|0,f=f+Math.imul($,re)|0,A=A+Math.imul($,de)|0;var Bt=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,v=Math.imul(ie,fe),f=Math.imul(ie,Ae),f=f+Math.imul(ue,fe)|0,A=Math.imul(ue,Ae),v=v+Math.imul(q,Ee)|0,f=f+Math.imul(q,Be)|0,f=f+Math.imul(U,Ee)|0,A=A+Math.imul(U,Be)|0,v=v+Math.imul(be,Oe)|0,f=f+Math.imul(be,Ge)|0,f=f+Math.imul(we,Oe)|0,A=A+Math.imul(we,Ge)|0,v=v+Math.imul(Me,ze)|0,f=f+Math.imul(Me,$e)|0,f=f+Math.imul(ye,ze)|0,A=A+Math.imul(ye,$e)|0,v=v+Math.imul(ve,We)|0,f=f+Math.imul(ve,qe)|0,f=f+Math.imul(Ne,We)|0,A=A+Math.imul(Ne,qe)|0,v=v+Math.imul(pe,Ye)|0,f=f+Math.imul(pe,Ze)|0,f=f+Math.imul(Se,Ye)|0,A=A+Math.imul(Se,Ze)|0,v=v+Math.imul(Z,Pe)|0,f=f+Math.imul(Z,Ke)|0,f=f+Math.imul(ce,Pe)|0,A=A+Math.imul(ce,Ke)|0,v=v+Math.imul(J,ee)|0,f=f+Math.imul(J,ne)|0,f=f+Math.imul(ae,ee)|0,A=A+Math.imul(ae,ne)|0,v=v+Math.imul(Q,re)|0,f=f+Math.imul(Q,de)|0,f=f+Math.imul(H,re)|0,A=A+Math.imul(H,de)|0,v=v+Math.imul(P,he)|0,f=f+Math.imul(P,xe)|0,f=f+Math.imul($,he)|0,A=A+Math.imul($,xe)|0;var Ot=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,v=Math.imul(ie,Ee),f=Math.imul(ie,Be),f=f+Math.imul(ue,Ee)|0,A=Math.imul(ue,Be),v=v+Math.imul(q,Oe)|0,f=f+Math.imul(q,Ge)|0,f=f+Math.imul(U,Oe)|0,A=A+Math.imul(U,Ge)|0,v=v+Math.imul(be,ze)|0,f=f+Math.imul(be,$e)|0,f=f+Math.imul(we,ze)|0,A=A+Math.imul(we,$e)|0,v=v+Math.imul(Me,We)|0,f=f+Math.imul(Me,qe)|0,f=f+Math.imul(ye,We)|0,A=A+Math.imul(ye,qe)|0,v=v+Math.imul(ve,Ye)|0,f=f+Math.imul(ve,Ze)|0,f=f+Math.imul(Ne,Ye)|0,A=A+Math.imul(Ne,Ze)|0,v=v+Math.imul(pe,Pe)|0,f=f+Math.imul(pe,Ke)|0,f=f+Math.imul(Se,Pe)|0,A=A+Math.imul(Se,Ke)|0,v=v+Math.imul(Z,ee)|0,f=f+Math.imul(Z,ne)|0,f=f+Math.imul(ce,ee)|0,A=A+Math.imul(ce,ne)|0,v=v+Math.imul(J,re)|0,f=f+Math.imul(J,de)|0,f=f+Math.imul(ae,re)|0,A=A+Math.imul(ae,de)|0,v=v+Math.imul(Q,he)|0,f=f+Math.imul(Q,xe)|0,f=f+Math.imul(H,he)|0,A=A+Math.imul(H,xe)|0;var jt=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(jt>>>26)|0,jt&=67108863,v=Math.imul(ie,Oe),f=Math.imul(ie,Ge),f=f+Math.imul(ue,Oe)|0,A=Math.imul(ue,Ge),v=v+Math.imul(q,ze)|0,f=f+Math.imul(q,$e)|0,f=f+Math.imul(U,ze)|0,A=A+Math.imul(U,$e)|0,v=v+Math.imul(be,We)|0,f=f+Math.imul(be,qe)|0,f=f+Math.imul(we,We)|0,A=A+Math.imul(we,qe)|0,v=v+Math.imul(Me,Ye)|0,f=f+Math.imul(Me,Ze)|0,f=f+Math.imul(ye,Ye)|0,A=A+Math.imul(ye,Ze)|0,v=v+Math.imul(ve,Pe)|0,f=f+Math.imul(ve,Ke)|0,f=f+Math.imul(Ne,Pe)|0,A=A+Math.imul(Ne,Ke)|0,v=v+Math.imul(pe,ee)|0,f=f+Math.imul(pe,ne)|0,f=f+Math.imul(Se,ee)|0,A=A+Math.imul(Se,ne)|0,v=v+Math.imul(Z,re)|0,f=f+Math.imul(Z,de)|0,f=f+Math.imul(ce,re)|0,A=A+Math.imul(ce,de)|0,v=v+Math.imul(J,he)|0,f=f+Math.imul(J,xe)|0,f=f+Math.imul(ae,he)|0,A=A+Math.imul(ae,xe)|0;var gt=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(gt>>>26)|0,gt&=67108863,v=Math.imul(ie,ze),f=Math.imul(ie,$e),f=f+Math.imul(ue,ze)|0,A=Math.imul(ue,$e),v=v+Math.imul(q,We)|0,f=f+Math.imul(q,qe)|0,f=f+Math.imul(U,We)|0,A=A+Math.imul(U,qe)|0,v=v+Math.imul(be,Ye)|0,f=f+Math.imul(be,Ze)|0,f=f+Math.imul(we,Ye)|0,A=A+Math.imul(we,Ze)|0,v=v+Math.imul(Me,Pe)|0,f=f+Math.imul(Me,Ke)|0,f=f+Math.imul(ye,Pe)|0,A=A+Math.imul(ye,Ke)|0,v=v+Math.imul(ve,ee)|0,f=f+Math.imul(ve,ne)|0,f=f+Math.imul(Ne,ee)|0,A=A+Math.imul(Ne,ne)|0,v=v+Math.imul(pe,re)|0,f=f+Math.imul(pe,de)|0,f=f+Math.imul(Se,re)|0,A=A+Math.imul(Se,de)|0,v=v+Math.imul(Z,he)|0,f=f+Math.imul(Z,xe)|0,f=f+Math.imul(ce,he)|0,A=A+Math.imul(ce,xe)|0;var Et=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(Et>>>26)|0,Et&=67108863,v=Math.imul(ie,We),f=Math.imul(ie,qe),f=f+Math.imul(ue,We)|0,A=Math.imul(ue,qe),v=v+Math.imul(q,Ye)|0,f=f+Math.imul(q,Ze)|0,f=f+Math.imul(U,Ye)|0,A=A+Math.imul(U,Ze)|0,v=v+Math.imul(be,Pe)|0,f=f+Math.imul(be,Ke)|0,f=f+Math.imul(we,Pe)|0,A=A+Math.imul(we,Ke)|0,v=v+Math.imul(Me,ee)|0,f=f+Math.imul(Me,ne)|0,f=f+Math.imul(ye,ee)|0,A=A+Math.imul(ye,ne)|0,v=v+Math.imul(ve,re)|0,f=f+Math.imul(ve,de)|0,f=f+Math.imul(Ne,re)|0,A=A+Math.imul(Ne,de)|0,v=v+Math.imul(pe,he)|0,f=f+Math.imul(pe,xe)|0,f=f+Math.imul(Se,he)|0,A=A+Math.imul(Se,xe)|0;var ht=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(ht>>>26)|0,ht&=67108863,v=Math.imul(ie,Ye),f=Math.imul(ie,Ze),f=f+Math.imul(ue,Ye)|0,A=Math.imul(ue,Ze),v=v+Math.imul(q,Pe)|0,f=f+Math.imul(q,Ke)|0,f=f+Math.imul(U,Pe)|0,A=A+Math.imul(U,Ke)|0,v=v+Math.imul(be,ee)|0,f=f+Math.imul(be,ne)|0,f=f+Math.imul(we,ee)|0,A=A+Math.imul(we,ne)|0,v=v+Math.imul(Me,re)|0,f=f+Math.imul(Me,de)|0,f=f+Math.imul(ye,re)|0,A=A+Math.imul(ye,de)|0,v=v+Math.imul(ve,he)|0,f=f+Math.imul(ve,xe)|0,f=f+Math.imul(Ne,he)|0,A=A+Math.imul(Ne,xe)|0;var vt=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(vt>>>26)|0,vt&=67108863,v=Math.imul(ie,Pe),f=Math.imul(ie,Ke),f=f+Math.imul(ue,Pe)|0,A=Math.imul(ue,Ke),v=v+Math.imul(q,ee)|0,f=f+Math.imul(q,ne)|0,f=f+Math.imul(U,ee)|0,A=A+Math.imul(U,ne)|0,v=v+Math.imul(be,re)|0,f=f+Math.imul(be,de)|0,f=f+Math.imul(we,re)|0,A=A+Math.imul(we,de)|0,v=v+Math.imul(Me,he)|0,f=f+Math.imul(Me,xe)|0,f=f+Math.imul(ye,he)|0,A=A+Math.imul(ye,xe)|0;var xt=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(xt>>>26)|0,xt&=67108863,v=Math.imul(ie,ee),f=Math.imul(ie,ne),f=f+Math.imul(ue,ee)|0,A=Math.imul(ue,ne),v=v+Math.imul(q,re)|0,f=f+Math.imul(q,de)|0,f=f+Math.imul(U,re)|0,A=A+Math.imul(U,de)|0,v=v+Math.imul(be,he)|0,f=f+Math.imul(be,xe)|0,f=f+Math.imul(we,he)|0,A=A+Math.imul(we,xe)|0;var ut=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(ut>>>26)|0,ut&=67108863,v=Math.imul(ie,re),f=Math.imul(ie,de),f=f+Math.imul(ue,re)|0,A=Math.imul(ue,de),v=v+Math.imul(q,he)|0,f=f+Math.imul(q,xe)|0,f=f+Math.imul(U,he)|0,A=A+Math.imul(U,xe)|0;var Fe=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(Fe>>>26)|0,Fe&=67108863,v=Math.imul(ie,he),f=Math.imul(ie,xe),f=f+Math.imul(ue,he)|0,A=Math.imul(ue,xe);var Re=(E+v|0)+((f&8191)<<13)|0;return E=(A+(f>>>13)|0)+(Re>>>26)|0,Re&=67108863,x[0]=it,x[1]=Xe,x[2]=$t,x[3]=pt,x[4]=tt,x[5]=At,x[6]=Rt,x[7]=Ft,x[8]=Bt,x[9]=Ot,x[10]=jt,x[11]=gt,x[12]=Et,x[13]=ht,x[14]=vt,x[15]=xt,x[16]=ut,x[17]=Fe,x[18]=Re,E!==0&&(x[19]=E,h.length++),h};Math.imul||(T=C);function D(w,o,u){u.negative=o.negative^w.negative,u.length=w.length+o.length;for(var h=0,b=0,y=0;y<u.length-1;y++){var x=b;b=0;for(var E=h&67108863,v=Math.min(y,o.length-1),f=Math.max(0,y-w.length+1);f<=v;f++){var A=y-f,j=w.words[A]|0,P=o.words[f]|0,$=j*P,K=$&67108863;x=x+($/67108864|0)|0,K=K+E|0,E=K&67108863,x=x+(K>>>26)|0,b+=x>>>26,x&=67108863}u.words[y]=E,h=x,x=b}return h!==0?u.words[y]=h:u.length--,u.strip()}function S(w,o,u){var h=new I;return h.mulp(w,o,u)}a.prototype.mulTo=function(o,u){var h,b=this.length+o.length;return this.length===10&&o.length===10?h=T(this,o,u):b<63?h=C(this,o,u):b<1024?h=D(this,o,u):h=S(this,o,u),h};function I(w,o){this.x=w,this.y=o}I.prototype.makeRBT=function(o){for(var u=new Array(o),h=a.prototype._countBits(o)-1,b=0;b<o;b++)u[b]=this.revBin(b,h,o);return u},I.prototype.revBin=function(o,u,h){if(o===0||o===h-1)return o;for(var b=0,y=0;y<u;y++)b|=(o&1)<<u-y-1,o>>=1;return b},I.prototype.permute=function(o,u,h,b,y,x){for(var E=0;E<x;E++)b[E]=u[o[E]],y[E]=h[o[E]]},I.prototype.transform=function(o,u,h,b,y,x){this.permute(x,o,u,h,b,y);for(var E=1;E<y;E<<=1)for(var v=E<<1,f=Math.cos(2*Math.PI/v),A=Math.sin(2*Math.PI/v),j=0;j<y;j+=v)for(var P=f,$=A,K=0;K<E;K++){var Q=h[j+K],H=b[j+K],V=h[j+K+E],J=b[j+K+E],ae=P*V-$*J;J=P*J+$*V,V=ae,h[j+K]=Q+V,b[j+K]=H+J,h[j+K+E]=Q-V,b[j+K+E]=H-J,K!==v&&(ae=f*P-A*$,$=f*$+A*P,P=ae)}},I.prototype.guessLen13b=function(o,u){var h=Math.max(u,o)|1,b=h&1,y=0;for(h=h/2|0;h;h=h>>>1)y++;return 1<<y+1+b},I.prototype.conjugate=function(o,u,h){if(!(h<=1))for(var b=0;b<h/2;b++){var y=o[b];o[b]=o[h-b-1],o[h-b-1]=y,y=u[b],u[b]=-u[h-b-1],u[h-b-1]=-y}},I.prototype.normalize13b=function(o,u){for(var h=0,b=0;b<u/2;b++){var y=Math.round(o[2*b+1]/u)*8192+Math.round(o[2*b]/u)+h;o[b]=y&67108863,y<67108864?h=0:h=y/67108864|0}return o},I.prototype.convert13b=function(o,u,h,b){for(var y=0,x=0;x<u;x++)y=y+(o[x]|0),h[2*x]=y&8191,y=y>>>13,h[2*x+1]=y&8191,y=y>>>13;for(x=2*u;x<b;++x)h[x]=0;r(y===0),r((y&-8192)===0)},I.prototype.stub=function(o){for(var u=new Array(o),h=0;h<o;h++)u[h]=0;return u},I.prototype.mulp=function(o,u,h){var b=2*this.guessLen13b(o.length,u.length),y=this.makeRBT(b),x=this.stub(b),E=new Array(b),v=new Array(b),f=new Array(b),A=new Array(b),j=new Array(b),P=new Array(b),$=h.words;$.length=b,this.convert13b(o.words,o.length,E,b),this.convert13b(u.words,u.length,A,b),this.transform(E,x,v,f,b,y),this.transform(A,x,j,P,b,y);for(var K=0;K<b;K++){var Q=v[K]*j[K]-f[K]*P[K];f[K]=v[K]*P[K]+f[K]*j[K],v[K]=Q}return this.conjugate(v,f,b),this.transform(v,f,$,x,b,y),this.conjugate($,x,b),this.normalize13b($,b),h.negative=o.negative^u.negative,h.length=o.length+u.length,h.strip()},a.prototype.mul=function(o){var u=new a(null);return u.words=new Array(this.length+o.length),this.mulTo(o,u)},a.prototype.mulf=function(o){var u=new a(null);return u.words=new Array(this.length+o.length),S(this,o,u)},a.prototype.imul=function(o){return this.clone().mulTo(o,this)},a.prototype.imuln=function(o){r(typeof o=="number"),r(o<67108864);for(var u=0,h=0;h<this.length;h++){var b=(this.words[h]|0)*o,y=(b&67108863)+(u&67108863);u>>=26,u+=b/67108864|0,u+=y>>>26,this.words[h]=y&67108863}return u!==0&&(this.words[h]=u,this.length++),this},a.prototype.muln=function(o){return this.clone().imuln(o)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(o){var u=M(o);if(u.length===0)return new a(1);for(var h=this,b=0;b<u.length&&u[b]===0;b++,h=h.sqr());if(++b<u.length)for(var y=h.sqr();b<u.length;b++,y=y.sqr())u[b]!==0&&(h=h.mul(y));return h},a.prototype.iushln=function(o){r(typeof o=="number"&&o>=0);var u=o%26,h=(o-u)/26,b=67108863>>>26-u<<26-u,y;if(u!==0){var x=0;for(y=0;y<this.length;y++){var E=this.words[y]&b,v=(this.words[y]|0)-E<<u;this.words[y]=v|x,x=E>>>26-u}x&&(this.words[y]=x,this.length++)}if(h!==0){for(y=this.length-1;y>=0;y--)this.words[y+h]=this.words[y];for(y=0;y<h;y++)this.words[y]=0;this.length+=h}return this.strip()},a.prototype.ishln=function(o){return r(this.negative===0),this.iushln(o)},a.prototype.iushrn=function(o,u,h){r(typeof o=="number"&&o>=0);var b;u?b=(u-u%26)/26:b=0;var y=o%26,x=Math.min((o-y)/26,this.length),E=67108863^67108863>>>y<<y,v=h;if(b-=x,b=Math.max(0,b),v){for(var f=0;f<x;f++)v.words[f]=this.words[f];v.length=x}if(x!==0)if(this.length>x)for(this.length-=x,f=0;f<this.length;f++)this.words[f]=this.words[f+x];else this.words[0]=0,this.length=1;var A=0;for(f=this.length-1;f>=0&&(A!==0||f>=b);f--){var j=this.words[f]|0;this.words[f]=A<<26-y|j>>>y,A=j&E}return v&&A!==0&&(v.words[v.length++]=A),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(o,u,h){return r(this.negative===0),this.iushrn(o,u,h)},a.prototype.shln=function(o){return this.clone().ishln(o)},a.prototype.ushln=function(o){return this.clone().iushln(o)},a.prototype.shrn=function(o){return this.clone().ishrn(o)},a.prototype.ushrn=function(o){return this.clone().iushrn(o)},a.prototype.testn=function(o){r(typeof o=="number"&&o>=0);var u=o%26,h=(o-u)/26,b=1<<u;if(this.length<=h)return!1;var y=this.words[h];return!!(y&b)},a.prototype.imaskn=function(o){r(typeof o=="number"&&o>=0);var u=o%26,h=(o-u)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=h)return this;if(u!==0&&h++,this.length=Math.min(h,this.length),u!==0){var b=67108863^67108863>>>u<<u;this.words[this.length-1]&=b}return this.strip()},a.prototype.maskn=function(o){return this.clone().imaskn(o)},a.prototype.iaddn=function(o){return r(typeof o=="number"),r(o<67108864),o<0?this.isubn(-o):this.negative!==0?this.length===1&&(this.words[0]|0)<o?(this.words[0]=o-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(o),this.negative=1,this):this._iaddn(o)},a.prototype._iaddn=function(o){this.words[0]+=o;for(var u=0;u<this.length&&this.words[u]>=67108864;u++)this.words[u]-=67108864,u===this.length-1?this.words[u+1]=1:this.words[u+1]++;return this.length=Math.max(this.length,u+1),this},a.prototype.isubn=function(o){if(r(typeof o=="number"),r(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var u=0;u<this.length&&this.words[u]<0;u++)this.words[u]+=67108864,this.words[u+1]-=1;return this.strip()},a.prototype.addn=function(o){return this.clone().iaddn(o)},a.prototype.subn=function(o){return this.clone().isubn(o)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(o,u,h){var b=o.length+h,y;this._expand(b);var x,E=0;for(y=0;y<o.length;y++){x=(this.words[y+h]|0)+E;var v=(o.words[y]|0)*u;x-=v&67108863,E=(x>>26)-(v/67108864|0),this.words[y+h]=x&67108863}for(;y<this.length-h;y++)x=(this.words[y+h]|0)+E,E=x>>26,this.words[y+h]=x&67108863;if(E===0)return this.strip();for(r(E===-1),E=0,y=0;y<this.length;y++)x=-(this.words[y]|0)+E,E=x>>26,this.words[y]=x&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(o,u){var h=this.length-o.length,b=this.clone(),y=o,x=y.words[y.length-1]|0,E=this._countBits(x);h=26-E,h!==0&&(y=y.ushln(h),b.iushln(h),x=y.words[y.length-1]|0);var v=b.length-y.length,f;if(u!=="mod"){f=new a(null),f.length=v+1,f.words=new Array(f.length);for(var A=0;A<f.length;A++)f.words[A]=0}var j=b.clone()._ishlnsubmul(y,1,v);j.negative===0&&(b=j,f&&(f.words[v]=1));for(var P=v-1;P>=0;P--){var $=(b.words[y.length+P]|0)*67108864+(b.words[y.length+P-1]|0);for($=Math.min($/x|0,67108863),b._ishlnsubmul(y,$,P);b.negative!==0;)$--,b.negative=0,b._ishlnsubmul(y,1,P),b.isZero()||(b.negative^=1);f&&(f.words[P]=$)}return f&&f.strip(),b.strip(),u!=="div"&&h!==0&&b.iushrn(h),{div:f||null,mod:b}},a.prototype.divmod=function(o,u,h){if(r(!o.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var b,y,x;return this.negative!==0&&o.negative===0?(x=this.neg().divmod(o,u),u!=="mod"&&(b=x.div.neg()),u!=="div"&&(y=x.mod.neg(),h&&y.negative!==0&&y.iadd(o)),{div:b,mod:y}):this.negative===0&&o.negative!==0?(x=this.divmod(o.neg(),u),u!=="mod"&&(b=x.div.neg()),{div:b,mod:x.mod}):this.negative&o.negative?(x=this.neg().divmod(o.neg(),u),u!=="div"&&(y=x.mod.neg(),h&&y.negative!==0&&y.isub(o)),{div:x.div,mod:y}):o.length>this.length||this.cmp(o)<0?{div:new a(0),mod:this}:o.length===1?u==="div"?{div:this.divn(o.words[0]),mod:null}:u==="mod"?{div:null,mod:new a(this.modn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new a(this.modn(o.words[0]))}:this._wordDiv(o,u)},a.prototype.div=function(o){return this.divmod(o,"div",!1).div},a.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},a.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},a.prototype.divRound=function(o){var u=this.divmod(o);if(u.mod.isZero())return u.div;var h=u.div.negative!==0?u.mod.isub(o):u.mod,b=o.ushrn(1),y=o.andln(1),x=h.cmp(b);return x<0||y===1&&x===0?u.div:u.div.negative!==0?u.div.isubn(1):u.div.iaddn(1)},a.prototype.modn=function(o){r(o<=67108863);for(var u=(1<<26)%o,h=0,b=this.length-1;b>=0;b--)h=(u*h+(this.words[b]|0))%o;return h},a.prototype.idivn=function(o){r(o<=67108863);for(var u=0,h=this.length-1;h>=0;h--){var b=(this.words[h]|0)+u*67108864;this.words[h]=b/o|0,u=b%o}return this.strip()},a.prototype.divn=function(o){return this.clone().idivn(o)},a.prototype.egcd=function(o){r(o.negative===0),r(!o.isZero());var u=this,h=o.clone();u.negative!==0?u=u.umod(o):u=u.clone();for(var b=new a(1),y=new a(0),x=new a(0),E=new a(1),v=0;u.isEven()&&h.isEven();)u.iushrn(1),h.iushrn(1),++v;for(var f=h.clone(),A=u.clone();!u.isZero();){for(var j=0,P=1;!(u.words[0]&P)&&j<26;++j,P<<=1);if(j>0)for(u.iushrn(j);j-- >0;)(b.isOdd()||y.isOdd())&&(b.iadd(f),y.isub(A)),b.iushrn(1),y.iushrn(1);for(var $=0,K=1;!(h.words[0]&K)&&$<26;++$,K<<=1);if($>0)for(h.iushrn($);$-- >0;)(x.isOdd()||E.isOdd())&&(x.iadd(f),E.isub(A)),x.iushrn(1),E.iushrn(1);u.cmp(h)>=0?(u.isub(h),b.isub(x),y.isub(E)):(h.isub(u),x.isub(b),E.isub(y))}return{a:x,b:E,gcd:h.iushln(v)}},a.prototype._invmp=function(o){r(o.negative===0),r(!o.isZero());var u=this,h=o.clone();u.negative!==0?u=u.umod(o):u=u.clone();for(var b=new a(1),y=new a(0),x=h.clone();u.cmpn(1)>0&&h.cmpn(1)>0;){for(var E=0,v=1;!(u.words[0]&v)&&E<26;++E,v<<=1);if(E>0)for(u.iushrn(E);E-- >0;)b.isOdd()&&b.iadd(x),b.iushrn(1);for(var f=0,A=1;!(h.words[0]&A)&&f<26;++f,A<<=1);if(f>0)for(h.iushrn(f);f-- >0;)y.isOdd()&&y.iadd(x),y.iushrn(1);u.cmp(h)>=0?(u.isub(h),b.isub(y)):(h.isub(u),y.isub(b))}var j;return u.cmpn(1)===0?j=b:j=y,j.cmpn(0)<0&&j.iadd(o),j},a.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var u=this.clone(),h=o.clone();u.negative=0,h.negative=0;for(var b=0;u.isEven()&&h.isEven();b++)u.iushrn(1),h.iushrn(1);do{for(;u.isEven();)u.iushrn(1);for(;h.isEven();)h.iushrn(1);var y=u.cmp(h);if(y<0){var x=u;u=h,h=x}else if(y===0||h.cmpn(1)===0)break;u.isub(h)}while(!0);return h.iushln(b)},a.prototype.invm=function(o){return this.egcd(o).a.umod(o)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(o){return this.words[0]&o},a.prototype.bincn=function(o){r(typeof o=="number");var u=o%26,h=(o-u)/26,b=1<<u;if(this.length<=h)return this._expand(h+1),this.words[h]|=b,this;for(var y=b,x=h;y!==0&&x<this.length;x++){var E=this.words[x]|0;E+=y,y=E>>>26,E&=67108863,this.words[x]=E}return y!==0&&(this.words[x]=y,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(o){var u=o<0;if(this.negative!==0&&!u)return-1;if(this.negative===0&&u)return 1;this.strip();var h;if(this.length>1)h=1;else{u&&(o=-o),r(o<=67108863,"Number is too big");var b=this.words[0]|0;h=b===o?0:b<o?-1:1}return this.negative!==0?-h|0:h},a.prototype.cmp=function(o){if(this.negative!==0&&o.negative===0)return-1;if(this.negative===0&&o.negative!==0)return 1;var u=this.ucmp(o);return this.negative!==0?-u|0:u},a.prototype.ucmp=function(o){if(this.length>o.length)return 1;if(this.length<o.length)return-1;for(var u=0,h=this.length-1;h>=0;h--){var b=this.words[h]|0,y=o.words[h]|0;if(b!==y){b<y?u=-1:b>y&&(u=1);break}}return u},a.prototype.gtn=function(o){return this.cmpn(o)===1},a.prototype.gt=function(o){return this.cmp(o)===1},a.prototype.gten=function(o){return this.cmpn(o)>=0},a.prototype.gte=function(o){return this.cmp(o)>=0},a.prototype.ltn=function(o){return this.cmpn(o)===-1},a.prototype.lt=function(o){return this.cmp(o)===-1},a.prototype.lten=function(o){return this.cmpn(o)<=0},a.prototype.lte=function(o){return this.cmp(o)<=0},a.prototype.eqn=function(o){return this.cmpn(o)===0},a.prototype.eq=function(o){return this.cmp(o)===0},a.red=function(o){return new F(o)},a.prototype.toRed=function(o){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},a.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(o){return this.red=o,this},a.prototype.forceRed=function(o){return r(!this.red,"Already a number in reduction context"),this._forceRed(o)},a.prototype.redAdd=function(o){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},a.prototype.redIAdd=function(o){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},a.prototype.redSub=function(o){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},a.prototype.redISub=function(o){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},a.prototype.redShl=function(o){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},a.prototype.redMul=function(o){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},a.prototype.redIMul=function(o){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},a.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(o){return r(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var N={k256:null,p224:null,p192:null,p25519:null};function B(w,o){this.name=w,this.p=new a(o,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}B.prototype._tmp=function(){var o=new a(null);return o.words=new Array(Math.ceil(this.n/13)),o},B.prototype.ireduce=function(o){var u=o,h;do this.split(u,this.tmp),u=this.imulK(u),u=u.iadd(this.tmp),h=u.bitLength();while(h>this.n);var b=h<this.n?-1:u.ucmp(this.p);return b===0?(u.words[0]=0,u.length=1):b>0?u.isub(this.p):u.strip!==void 0?u.strip():u._strip(),u},B.prototype.split=function(o,u){o.iushrn(this.n,0,u)},B.prototype.imulK=function(o){return o.imul(this.k)};function k(){B.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(k,B),k.prototype.split=function(o,u){for(var h=4194303,b=Math.min(o.length,9),y=0;y<b;y++)u.words[y]=o.words[y];if(u.length=b,o.length<=9){o.words[0]=0,o.length=1;return}var x=o.words[9];for(u.words[u.length++]=x&h,y=10;y<o.length;y++){var E=o.words[y]|0;o.words[y-10]=(E&h)<<4|x>>>22,x=E}x>>>=22,o.words[y-10]=x,x===0&&o.length>10?o.length-=10:o.length-=9},k.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var u=0,h=0;h<o.length;h++){var b=o.words[h]|0;u+=b*977,o.words[h]=u&67108863,u=b*64+(u/67108864|0)}return o.words[o.length-1]===0&&(o.length--,o.words[o.length-1]===0&&o.length--),o};function O(){B.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(O,B);function z(){B.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(z,B);function _(){B.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(_,B),_.prototype.imulK=function(o){for(var u=0,h=0;h<o.length;h++){var b=(o.words[h]|0)*19+u,y=b&67108863;b>>>=26,o.words[h]=y,u=b}return u!==0&&(o.words[o.length++]=u),o},a._prime=function(o){if(N[o])return N[o];var u;if(o==="k256")u=new k;else if(o==="p224")u=new O;else if(o==="p192")u=new z;else if(o==="p25519")u=new _;else throw new Error("Unknown prime "+o);return N[o]=u,u};function F(w){if(typeof w=="string"){var o=a._prime(w);this.m=o.p,this.prime=o}else r(w.gtn(1),"modulus must be greater than 1"),this.m=w,this.prime=null}F.prototype._verify1=function(o){r(o.negative===0,"red works only with positives"),r(o.red,"red works only with red numbers")},F.prototype._verify2=function(o,u){r((o.negative|u.negative)===0,"red works only with positives"),r(o.red&&o.red===u.red,"red works only with red numbers")},F.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):o.umod(this.m)._forceRed(this)},F.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},F.prototype.add=function(o,u){this._verify2(o,u);var h=o.add(u);return h.cmp(this.m)>=0&&h.isub(this.m),h._forceRed(this)},F.prototype.iadd=function(o,u){this._verify2(o,u);var h=o.iadd(u);return h.cmp(this.m)>=0&&h.isub(this.m),h},F.prototype.sub=function(o,u){this._verify2(o,u);var h=o.sub(u);return h.cmpn(0)<0&&h.iadd(this.m),h._forceRed(this)},F.prototype.isub=function(o,u){this._verify2(o,u);var h=o.isub(u);return h.cmpn(0)<0&&h.iadd(this.m),h},F.prototype.shl=function(o,u){return this._verify1(o),this.imod(o.ushln(u))},F.prototype.imul=function(o,u){return this._verify2(o,u),this.imod(o.imul(u))},F.prototype.mul=function(o,u){return this._verify2(o,u),this.imod(o.mul(u))},F.prototype.isqr=function(o){return this.imul(o,o.clone())},F.prototype.sqr=function(o){return this.mul(o,o)},F.prototype.sqrt=function(o){if(o.isZero())return o.clone();var u=this.m.andln(3);if(r(u%2===1),u===3){var h=this.m.add(new a(1)).iushrn(2);return this.pow(o,h)}for(var b=this.m.subn(1),y=0;!b.isZero()&&b.andln(1)===0;)y++,b.iushrn(1);r(!b.isZero());var x=new a(1).toRed(this),E=x.redNeg(),v=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new a(2*f*f).toRed(this);this.pow(f,v).cmp(E)!==0;)f.redIAdd(E);for(var A=this.pow(f,b),j=this.pow(o,b.addn(1).iushrn(1)),P=this.pow(o,b),$=y;P.cmp(x)!==0;){for(var K=P,Q=0;K.cmp(x)!==0;Q++)K=K.redSqr();r(Q<$);var H=this.pow(A,new a(1).iushln($-Q-1));j=j.redMul(H),A=H.redSqr(),P=P.redMul(A),$=Q}return j},F.prototype.invm=function(o){var u=o._invmp(this.m);return u.negative!==0?(u.negative=0,this.imod(u).redNeg()):this.imod(u)},F.prototype.pow=function(o,u){if(u.isZero())return new a(1).toRed(this);if(u.cmpn(1)===0)return o.clone();var h=4,b=new Array(1<<h);b[0]=new a(1).toRed(this),b[1]=o;for(var y=2;y<b.length;y++)b[y]=this.mul(b[y-1],o);var x=b[0],E=0,v=0,f=u.bitLength()%26;for(f===0&&(f=26),y=u.length-1;y>=0;y--){for(var A=u.words[y],j=f-1;j>=0;j--){var P=A>>j&1;if(x!==b[0]&&(x=this.sqr(x)),P===0&&E===0){v=0;continue}E<<=1,E|=P,v++,!(v!==h&&(y!==0||j!==0))&&(x=this.mul(x,b[E]),v=0,E=0)}f=26}return x},F.prototype.convertTo=function(o){var u=o.umod(this.m);return u===o?u.clone():u},F.prototype.convertFrom=function(o){var u=o.clone();return u.red=null,u},a.mont=function(o){return new R(o)};function R(w){F.call(this,w),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}i(R,F),R.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},R.prototype.convertFrom=function(o){var u=this.imod(o.mul(this.rinv));return u.red=null,u},R.prototype.imul=function(o,u){if(o.isZero()||u.isZero())return o.words[0]=0,o.length=1,o;var h=o.imul(u),b=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=h.isub(b).iushrn(this.shift),x=y;return y.cmp(this.m)>=0?x=y.isub(this.m):y.cmpn(0)<0&&(x=y.iadd(this.m)),x._forceRed(this)},R.prototype.mul=function(o,u){if(o.isZero()||u.isZero())return new a(0)._forceRed(this);var h=o.mul(u),b=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=h.isub(b).iushrn(this.shift),x=y;return y.cmp(this.m)>=0?x=y.isub(this.m):y.cmpn(0)<0&&(x=y.iadd(this.m)),x._forceRed(this)},R.prototype.invm=function(o){var u=this.imod(o._invmp(this.m).mul(this.r2));return u._forceRed(this)}})(t,Kt)}(Gm)),Gm.exports}var p9={exports:{}},Iz;function lL(){if(Iz)return p9.exports;Iz=1;var t;p9.exports=function(i){return t||(t=new e(null)),t.generate(i)};function e(r){this.rand=r}if(p9.exports.Rand=e,e.prototype.generate=function(i){return this._rand(i)},e.prototype._rand=function(i){if(this.rand.getBytes)return this.rand.getBytes(i);for(var a=new Uint8Array(i),s=0;s<a.length;s++)a[s]=this.rand.getByte();return a},typeof self=="object")self.crypto&&self.crypto.getRandomValues?e.prototype._rand=function(i){var a=new Uint8Array(i);return self.crypto.getRandomValues(a),a}:self.msCrypto&&self.msCrypto.getRandomValues?e.prototype._rand=function(i){var a=new Uint8Array(i);return self.msCrypto.getRandomValues(a),a}:typeof window=="object"&&(e.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var n=nX();if(typeof n.randomBytes!="function")throw new Error("Not supported");e.prototype._rand=function(i){return n.randomBytes(i)}}catch{}return p9.exports}var sA,Dz;function AK(){if(Dz)return sA;Dz=1;var t=B4e(),e=lL();function n(r){this.rand=r||new e.Rand}return sA=n,n.create=function(i){return new n(i)},n.prototype._randbelow=function(i){var a=i.bitLength(),s=Math.ceil(a/8);do var c=new t(this.rand.generate(s));while(c.cmp(i)>=0);return c},n.prototype._randrange=function(i,a){var s=a.sub(i);return i.add(this._randbelow(s))},n.prototype.test=function(i,a,s){var c=i.bitLength(),l=t.mont(i),d=new t(1).toRed(l);a||(a=Math.max(1,c/48|0));for(var p=i.subn(1),m=0;!p.testn(m);m++);for(var g=i.shrn(m),M=p.toRed(l),C=!0;a>0;a--){var T=this._randrange(new t(2),p);s&&s(T);var D=T.toRed(l).redPow(g);if(!(D.cmp(d)===0||D.cmp(M)===0)){for(var S=1;S<m;S++){if(D=D.redSqr(),D.cmp(d)===0)return!1;if(D.cmp(M)===0)break}if(S===m)return!1}}return C},n.prototype.getDivisor=function(i,a){var s=i.bitLength(),c=t.mont(i),l=new t(1).toRed(c);a||(a=Math.max(1,s/48|0));for(var d=i.subn(1),p=0;!d.testn(p);p++);for(var m=i.shrn(p),g=d.toRed(c);a>0;a--){var M=this._randrange(new t(2),d),C=i.gcd(M);if(C.cmpn(1)!==0)return C;var T=M.toRed(c).redPow(m);if(!(T.cmp(l)===0||T.cmp(g)===0)){for(var D=1;D<p;D++){if(T=T.redSqr(),T.cmp(l)===0)return T.fromRed().subn(1).gcd(i);if(T.cmp(g)===0)break}if(D===p)return T=T.redSqr(),T.fromRed().subn(1).gcd(i)}}return!1},sA}var oA,Nz;function CK(){if(Nz)return oA;Nz=1;var t=i8();oA=D,D.simpleSieve=C,D.fermatTest=T;var e=wK(),n=new e(24),r=AK(),i=new r,a=new e(1),s=new e(2),c=new e(5);new e(16),new e(8);var l=new e(10),d=new e(3);new e(7);var p=new e(11),m=new e(4);new e(12);var g=null;function M(){if(g!==null)return g;var S=1048576,I=[];I[0]=2;for(var N=1,B=3;B<S;B+=2){for(var k=Math.ceil(Math.sqrt(B)),O=0;O<N&&I[O]<=k&&B%I[O]!==0;O++);N!==O&&I[O]<=k||(I[N++]=B)}return g=I,I}function C(S){for(var I=M(),N=0;N<I.length;N++)if(S.modn(I[N])===0)return S.cmpn(I[N])===0;return!0}function T(S){var I=e.mont(S);return s.toRed(I).redPow(S.subn(1)).fromRed().cmpn(1)===0}function D(S,I){if(S<16)return I===2||I===5?new e([140,123]):new e([140,39]);I=new e(I);for(var N,B;;){for(N=new e(t(Math.ceil(S/8)));N.bitLength()>S;)N.ishrn(1);if(N.isEven()&&N.iadd(a),N.testn(1)||N.iadd(s),I.cmp(s)){if(!I.cmp(c))for(;N.mod(l).cmp(d);)N.iadd(m)}else for(;N.mod(n).cmp(p);)N.iadd(m);if(B=N.shrn(1),C(B)&&C(N)&&T(B)&&T(N)&&i.test(B)&&i.test(N))return N}}return oA}const j4e={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},k4e={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},_4e={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},O4e={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},F4e={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},z4e={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},R4e={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},P4e={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"},U4e={modp1:j4e,modp2:k4e,modp5:_4e,modp14:O4e,modp15:F4e,modp16:z4e,modp17:R4e,modp18:P4e};var cA,Lz;function H4e(){if(Lz)return cA;Lz=1;var t=wK(),e=AK(),n=new e,r=new t(24),i=new t(11),a=new t(10),s=new t(3),c=new t(7),l=CK(),d=i8();cA=C;function p(D,S){return S=S||"utf8",je.Buffer.isBuffer(D)||(D=new je.Buffer(D,S)),this._pub=new t(D),this}function m(D,S){return S=S||"utf8",je.Buffer.isBuffer(D)||(D=new je.Buffer(D,S)),this._priv=new t(D),this}var g={};function M(D,S){var I=S.toString("hex"),N=[I,D.toString(16)].join("_");if(N in g)return g[N];var B=0;if(D.isEven()||!l.simpleSieve||!l.fermatTest(D)||!n.test(D))return B+=1,I==="02"||I==="05"?B+=8:B+=4,g[N]=B,B;n.test(D.shrn(1))||(B+=2);var k;switch(I){case"02":D.mod(r).cmp(i)&&(B+=8);break;case"05":k=D.mod(a),k.cmp(s)&&k.cmp(c)&&(B+=8);break;default:B+=4}return g[N]=B,B}function C(D,S,I){this.setGenerator(S),this.__prime=new t(D),this._prime=t.mont(this.__prime),this._primeLen=D.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,I?(this.setPublicKey=p,this.setPrivateKey=m):this._primeCode=8}Object.defineProperty(C.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=M(this.__prime,this.__gen)),this._primeCode}}),C.prototype.generateKeys=function(){return this._priv||(this._priv=new t(d(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},C.prototype.computeSecret=function(D){D=new t(D),D=D.toRed(this._prime);var S=D.redPow(this._priv).fromRed(),I=new je.Buffer(S.toArray()),N=this.getPrime();if(I.length<N.length){var B=new je.Buffer(N.length-I.length);B.fill(0),I=je.Buffer.concat([B,I])}return I},C.prototype.getPublicKey=function(S){return T(this._pub,S)},C.prototype.getPrivateKey=function(S){return T(this._priv,S)},C.prototype.getPrime=function(D){return T(this.__prime,D)},C.prototype.getGenerator=function(D){return T(this._gen,D)},C.prototype.setGenerator=function(D,S){return S=S||"utf8",je.Buffer.isBuffer(D)||(D=new je.Buffer(D,S)),this.__gen=D,this._gen=new t(D),this};function T(D,S){var I=new je.Buffer(D.toArray());return S?I.toString(S):I}return cA}var Bz;function W4e(){if(Bz)return yf;Bz=1;var t=CK(),e=U4e,n=H4e();function r(s){var c=new je.Buffer(e[s].prime,"hex"),l=new je.Buffer(e[s].gen,"hex");return new n(c,l)}var i={binary:!0,hex:!0,base64:!0};function a(s,c,l,d){return je.Buffer.isBuffer(c)||i[c]===void 0?a(s,"binary",c,l):(c=c||"binary",d=d||"binary",l=l||new je.Buffer([2]),je.Buffer.isBuffer(l)||(l=new je.Buffer(l,d)),typeof s=="number"?new n(t(s,l),l,!0):(je.Buffer.isBuffer(s)||(s=new je.Buffer(s,c)),new n(s,l,!0)))}return yf.DiffieHellmanGroup=yf.createDiffieHellmanGroup=yf.getDiffieHellman=r,yf.createDiffieHellman=yf.DiffieHellman=a,yf}var b9={exports:{}},m9={exports:{}},jz;function kv(){if(jz)return m9.exports;jz=1,typeof je.process>"u"||!je.process.version||je.process.version.indexOf("v0.")===0||je.process.version.indexOf("v1.")===0&&je.process.version.indexOf("v1.8.")!==0?m9.exports={nextTick:t}:m9.exports=je.process;function t(e,n,r,i){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var a=arguments.length,s,c;switch(a){case 0:case 1:return je.process.nextTick(e);case 2:return je.process.nextTick(function(){e.call(null,n)});case 3:return je.process.nextTick(function(){e.call(null,n,r)});case 4:return je.process.nextTick(function(){e.call(null,n,r,i)});default:for(s=new Array(a-1),c=0;c<s.length;)s[c++]=arguments[c];return je.process.nextTick(function(){e.apply(null,s)})}}return m9.exports}var lA,kz;function Y4e(){if(kz)return lA;kz=1;var t={}.toString;return lA=Array.isArray||function(e){return t.call(e)=="[object Array]"},lA}var uA,_z;function EK(){return _z||(_z=1,uA=Jp().EventEmitter),uA}var y9={exports:{}},Oz;function _v(){return Oz||(Oz=1,function(t,e){var n=wt,r=n.Buffer;function i(s,c){for(var l in s)c[l]=s[l]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=a);function a(s,c,l){return r(s,c,l)}i(r,a),a.from=function(s,c,l){if(typeof s=="number")throw new TypeError("Argument must not be a number");return r(s,c,l)},a.alloc=function(s,c,l){if(typeof s!="number")throw new TypeError("Argument must be a number");var d=r(s);return c!==void 0?typeof l=="string"?d.fill(c,l):d.fill(c):d.fill(0),d},a.allocUnsafe=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return r(s)},a.allocUnsafeSlow=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(s)}}(y9,y9.exports)),y9.exports}var ui={},Fz;function rb(){if(Fz)return ui;Fz=1;function t(T){return Array.isArray?Array.isArray(T):C(T)==="[object Array]"}ui.isArray=t;function e(T){return typeof T=="boolean"}ui.isBoolean=e;function n(T){return T===null}ui.isNull=n;function r(T){return T==null}ui.isNullOrUndefined=r;function i(T){return typeof T=="number"}ui.isNumber=i;function a(T){return typeof T=="string"}ui.isString=a;function s(T){return typeof T=="symbol"}ui.isSymbol=s;function c(T){return T===void 0}ui.isUndefined=c;function l(T){return C(T)==="[object RegExp]"}ui.isRegExp=l;function d(T){return typeof T=="object"&&T!==null}ui.isObject=d;function p(T){return C(T)==="[object Date]"}ui.isDate=p;function m(T){return C(T)==="[object Error]"||T instanceof Error}ui.isError=m;function g(T){return typeof T=="function"}ui.isFunction=g;function M(T){return T===null||typeof T=="boolean"||typeof T=="number"||typeof T=="string"||typeof T=="symbol"||typeof T>"u"}ui.isPrimitive=M,ui.isBuffer=wt.Buffer.isBuffer;function C(T){return Object.prototype.toString.call(T)}return ui}var fA={exports:{}},zz;function G4e(){return zz||(zz=1,function(t){function e(a,s){if(!(a instanceof s))throw new TypeError("Cannot call a class as a function")}var n=_v().Buffer,r=eb;function i(a,s,c){a.copy(s,c)}t.exports=function(){function a(){e(this,a),this.head=null,this.tail=null,this.length=0}return a.prototype.push=function(c){var l={data:c,next:null};this.length>0?this.tail.next=l:this.head=l,this.tail=l,++this.length},a.prototype.unshift=function(c){var l={data:c,next:this.head};this.length===0&&(this.tail=l),this.head=l,++this.length},a.prototype.shift=function(){if(this.length!==0){var c=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,c}},a.prototype.clear=function(){this.head=this.tail=null,this.length=0},a.prototype.join=function(c){if(this.length===0)return"";for(var l=this.head,d=""+l.data;l=l.next;)d+=c+l.data;return d},a.prototype.concat=function(c){if(this.length===0)return n.alloc(0);for(var l=n.allocUnsafe(c>>>0),d=this.head,p=0;d;)i(d.data,l,p),p+=d.data.length,d=d.next;return l},a}(),r&&r.inspect&&r.inspect.custom&&(t.exports.prototype[r.inspect.custom]=function(){var a=r.inspect({length:this.length});return this.constructor.name+" "+a})}(fA)),fA.exports}var dA,Rz;function SK(){if(Rz)return dA;Rz=1;var t=kv();function e(i,a){var s=this,c=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return c||l?(a?a(i):i&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,t.nextTick(r,this,i)):t.nextTick(r,this,i)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(i||null,function(d){!a&&d?s._writableState?s._writableState.errorEmitted||(s._writableState.errorEmitted=!0,t.nextTick(r,s,d)):t.nextTick(r,s,d):a&&a(d)}),this)}function n(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function r(i,a){i.emit("error",a)}return dA={destroy:e,undestroy:n},dA}var hA,Pz;function TK(){if(Pz)return hA;Pz=1;var t=kv();hA=T;function e(x){var E=this;this.next=null,this.entry=null,this.finish=function(){y(E,x)}}var n=!je.process.browser&&["v0.10","v0.9."].indexOf(je.process.version.slice(0,5))>-1?setImmediate:t.nextTick,r;T.WritableState=M;var i=Object.create(rb());i.inherits=mn;var a={deprecate:eK},s=EK(),c=_v().Buffer,l=(typeof Kt<"u"?Kt:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function d(x){return c.from(x)}function p(x){return c.isBuffer(x)||x instanceof l}var m=SK();i.inherits(T,s);function g(){}function M(x,E){r=r||lh(),x=x||{};var v=E instanceof r;this.objectMode=!!x.objectMode,v&&(this.objectMode=this.objectMode||!!x.writableObjectMode);var f=x.highWaterMark,A=x.writableHighWaterMark,j=this.objectMode?16:16*1024;f||f===0?this.highWaterMark=f:v&&(A||A===0)?this.highWaterMark=A:this.highWaterMark=j,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var P=x.decodeStrings===!1;this.decodeStrings=!P,this.defaultEncoding=x.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function($){z(E,$)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}M.prototype.getBuffer=function(){for(var E=this.bufferedRequest,v=[];E;)v.push(E),E=E.next;return v},function(){try{Object.defineProperty(M.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var C;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(C=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(x){return C.call(this,x)?!0:this!==T?!1:x&&x._writableState instanceof M}})):C=function(x){return x instanceof this};function T(x){if(r=r||lh(),!C.call(T,this)&&!(this instanceof r))return new T(x);this._writableState=new M(x,this),this.writable=!0,x&&(typeof x.write=="function"&&(this._write=x.write),typeof x.writev=="function"&&(this._writev=x.writev),typeof x.destroy=="function"&&(this._destroy=x.destroy),typeof x.final=="function"&&(this._final=x.final)),s.call(this)}T.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function D(x,E){var v=new Error("write after end");x.emit("error",v),t.nextTick(E,v)}function S(x,E,v,f){var A=!0,j=!1;return v===null?j=new TypeError("May not write null values to stream"):typeof v!="string"&&v!==void 0&&!E.objectMode&&(j=new TypeError("Invalid non-string/buffer chunk")),j&&(x.emit("error",j),t.nextTick(f,j),A=!1),A}T.prototype.write=function(x,E,v){var f=this._writableState,A=!1,j=!f.objectMode&&p(x);return j&&!c.isBuffer(x)&&(x=d(x)),typeof E=="function"&&(v=E,E=null),j?E="buffer":E||(E=f.defaultEncoding),typeof v!="function"&&(v=g),f.ended?D(this,v):(j||S(this,f,x,v))&&(f.pendingcb++,A=N(this,f,j,x,E,v)),A},T.prototype.cork=function(){var x=this._writableState;x.corked++},T.prototype.uncork=function(){var x=this._writableState;x.corked&&(x.corked--,!x.writing&&!x.corked&&!x.bufferProcessing&&x.bufferedRequest&&R(this,x))},T.prototype.setDefaultEncoding=function(E){if(typeof E=="string"&&(E=E.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((E+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+E);return this._writableState.defaultEncoding=E,this};function I(x,E,v){return!x.objectMode&&x.decodeStrings!==!1&&typeof E=="string"&&(E=c.from(E,v)),E}Object.defineProperty(T.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function N(x,E,v,f,A,j){if(!v){var P=I(E,f,A);f!==P&&(v=!0,A="buffer",f=P)}var $=E.objectMode?1:f.length;E.length+=$;var K=E.length<E.highWaterMark;if(K||(E.needDrain=!0),E.writing||E.corked){var Q=E.lastBufferedRequest;E.lastBufferedRequest={chunk:f,encoding:A,isBuf:v,callback:j,next:null},Q?Q.next=E.lastBufferedRequest:E.bufferedRequest=E.lastBufferedRequest,E.bufferedRequestCount+=1}else B(x,E,!1,$,f,A,j);return K}function B(x,E,v,f,A,j,P){E.writelen=f,E.writecb=P,E.writing=!0,E.sync=!0,v?x._writev(A,E.onwrite):x._write(A,j,E.onwrite),E.sync=!1}function k(x,E,v,f,A){--E.pendingcb,v?(t.nextTick(A,f),t.nextTick(h,x,E),x._writableState.errorEmitted=!0,x.emit("error",f)):(A(f),x._writableState.errorEmitted=!0,x.emit("error",f),h(x,E))}function O(x){x.writing=!1,x.writecb=null,x.length-=x.writelen,x.writelen=0}function z(x,E){var v=x._writableState,f=v.sync,A=v.writecb;if(O(v),E)k(x,v,f,E,A);else{var j=w(v);!j&&!v.corked&&!v.bufferProcessing&&v.bufferedRequest&&R(x,v),f?n(_,x,v,j,A):_(x,v,j,A)}}function _(x,E,v,f){v||F(x,E),E.pendingcb--,f(),h(x,E)}function F(x,E){E.length===0&&E.needDrain&&(E.needDrain=!1,x.emit("drain"))}function R(x,E){E.bufferProcessing=!0;var v=E.bufferedRequest;if(x._writev&&v&&v.next){var f=E.bufferedRequestCount,A=new Array(f),j=E.corkedRequestsFree;j.entry=v;for(var P=0,$=!0;v;)A[P]=v,v.isBuf||($=!1),v=v.next,P+=1;A.allBuffers=$,B(x,E,!0,E.length,A,"",j.finish),E.pendingcb++,E.lastBufferedRequest=null,j.next?(E.corkedRequestsFree=j.next,j.next=null):E.corkedRequestsFree=new e(E),E.bufferedRequestCount=0}else{for(;v;){var K=v.chunk,Q=v.encoding,H=v.callback,V=E.objectMode?1:K.length;if(B(x,E,!1,V,K,Q,H),v=v.next,E.bufferedRequestCount--,E.writing)break}v===null&&(E.lastBufferedRequest=null)}E.bufferedRequest=v,E.bufferProcessing=!1}T.prototype._write=function(x,E,v){v(new Error("_write() is not implemented"))},T.prototype._writev=null,T.prototype.end=function(x,E,v){var f=this._writableState;typeof x=="function"?(v=x,x=null,E=null):typeof E=="function"&&(v=E,E=null),x!=null&&this.write(x,E),f.corked&&(f.corked=1,this.uncork()),f.ending||b(this,f,v)};function w(x){return x.ending&&x.length===0&&x.bufferedRequest===null&&!x.finished&&!x.writing}function o(x,E){x._final(function(v){E.pendingcb--,v&&x.emit("error",v),E.prefinished=!0,x.emit("prefinish"),h(x,E)})}function u(x,E){!E.prefinished&&!E.finalCalled&&(typeof x._final=="function"?(E.pendingcb++,E.finalCalled=!0,t.nextTick(o,x,E)):(E.prefinished=!0,x.emit("prefinish")))}function h(x,E){var v=w(E);return v&&(u(x,E),E.pendingcb===0&&(E.finished=!0,x.emit("finish"))),v}function b(x,E,v){E.ending=!0,h(x,E),v&&(E.finished?t.nextTick(v):x.once("finish",v)),E.ended=!0,x.writable=!1}function y(x,E,v){var f=x.entry;for(x.entry=null;f;){var A=f.callback;E.pendingcb--,A(v),f=f.next}E.corkedRequestsFree.next=x}return Object.defineProperty(T.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(x){this._writableState&&(this._writableState.destroyed=x)}}),T.prototype.destroy=m.destroy,T.prototype._undestroy=m.undestroy,T.prototype._destroy=function(x,E){this.end(),E(x)},hA}var pA,Uz;function lh(){if(Uz)return pA;Uz=1;var t=kv(),e=Object.keys||function(m){var g=[];for(var M in m)g.push(M);return g};pA=l;var n=Object.create(rb());n.inherits=mn;var r=IK(),i=TK();n.inherits(l,r);for(var a=e(i.prototype),s=0;s<a.length;s++){var c=a[s];l.prototype[c]||(l.prototype[c]=i.prototype[c])}function l(m){if(!(this instanceof l))return new l(m);r.call(this,m),i.call(this,m),m&&m.readable===!1&&(this.readable=!1),m&&m.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,m&&m.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",d)}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function d(){this.allowHalfOpen||this._writableState.ended||t.nextTick(p,this)}function p(m){m.end()}return Object.defineProperty(l.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(m){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=m,this._writableState.destroyed=m)}}),l.prototype._destroy=function(m,g){this.push(null),this.end(),t.nextTick(g,m)},pA}var bA={},Hz;function Wz(){if(Hz)return bA;Hz=1;var t=_v().Buffer,e=t.isEncoding||function(S){switch(S=""+S,S&&S.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function n(S){if(!S)return"utf8";for(var I;;)switch(S){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return S;default:if(I)return;S=(""+S).toLowerCase(),I=!0}}function r(S){var I=n(S);if(typeof I!="string"&&(t.isEncoding===e||!e(S)))throw new Error("Unknown encoding: "+S);return I||S}bA.StringDecoder=i;function i(S){this.encoding=r(S);var I;switch(this.encoding){case"utf16le":this.text=m,this.end=g,I=4;break;case"utf8":this.fillLast=l,I=4;break;case"base64":this.text=M,this.end=C,I=3;break;default:this.write=T,this.end=D;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(I)}i.prototype.write=function(S){if(S.length===0)return"";var I,N;if(this.lastNeed){if(I=this.fillLast(S),I===void 0)return"";N=this.lastNeed,this.lastNeed=0}else N=0;return N<S.length?I?I+this.text(S,N):this.text(S,N):I||""},i.prototype.end=p,i.prototype.text=d,i.prototype.fillLast=function(S){if(this.lastNeed<=S.length)return S.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);S.copy(this.lastChar,this.lastTotal-this.lastNeed,0,S.length),this.lastNeed-=S.length};function a(S){return S<=127?0:S>>5===6?2:S>>4===14?3:S>>3===30?4:S>>6===2?-1:-2}function s(S,I,N){var B=I.length-1;if(B<N)return 0;var k=a(I[B]);return k>=0?(k>0&&(S.lastNeed=k-1),k):--B<N||k===-2?0:(k=a(I[B]),k>=0?(k>0&&(S.lastNeed=k-2),k):--B<N||k===-2?0:(k=a(I[B]),k>=0?(k>0&&(k===2?k=0:S.lastNeed=k-3),k):0))}function c(S,I,N){if((I[0]&192)!==128)return S.lastNeed=0,"�";if(S.lastNeed>1&&I.length>1){if((I[1]&192)!==128)return S.lastNeed=1,"�";if(S.lastNeed>2&&I.length>2&&(I[2]&192)!==128)return S.lastNeed=2,"�"}}function l(S){var I=this.lastTotal-this.lastNeed,N=c(this,S);if(N!==void 0)return N;if(this.lastNeed<=S.length)return S.copy(this.lastChar,I,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);S.copy(this.lastChar,I,0,S.length),this.lastNeed-=S.length}function d(S,I){var N=s(this,S,I);if(!this.lastNeed)return S.toString("utf8",I);this.lastTotal=N;var B=S.length-(N-this.lastNeed);return S.copy(this.lastChar,0,B),S.toString("utf8",I,B)}function p(S){var I=S&&S.length?this.write(S):"";return this.lastNeed?I+"�":I}function m(S,I){if((S.length-I)%2===0){var N=S.toString("utf16le",I);if(N){var B=N.charCodeAt(N.length-1);if(B>=55296&&B<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=S[S.length-2],this.lastChar[1]=S[S.length-1],N.slice(0,-1)}return N}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=S[S.length-1],S.toString("utf16le",I,S.length-1)}function g(S){var I=S&&S.length?this.write(S):"";if(this.lastNeed){var N=this.lastTotal-this.lastNeed;return I+this.lastChar.toString("utf16le",0,N)}return I}function M(S,I){var N=(S.length-I)%3;return N===0?S.toString("base64",I):(this.lastNeed=3-N,this.lastTotal=3,N===1?this.lastChar[0]=S[S.length-1]:(this.lastChar[0]=S[S.length-2],this.lastChar[1]=S[S.length-1]),S.toString("base64",I,S.length-N))}function C(S){var I=S&&S.length?this.write(S):"";return this.lastNeed?I+this.lastChar.toString("base64",0,3-this.lastNeed):I}function T(S){return S.toString(this.encoding)}function D(S){return S&&S.length?this.write(S):""}return bA}var mA,Yz;function IK(){if(Yz)return mA;Yz=1;var t=kv();mA=I;var e=Y4e(),n;I.ReadableState=S,Jp().EventEmitter;var r=function(H,V){return H.listeners(V).length},i=EK(),a=_v().Buffer,s=(typeof Kt<"u"?Kt:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function c(H){return a.from(H)}function l(H){return a.isBuffer(H)||H instanceof s}var d=Object.create(rb());d.inherits=mn;var p=eb,m=void 0;p&&p.debuglog?m=p.debuglog("stream"):m=function(){};var g=G4e(),M=SK(),C;d.inherits(I,i);var T=["error","close","destroy","pause","resume"];function D(H,V,J){if(typeof H.prependListener=="function")return H.prependListener(V,J);!H._events||!H._events[V]?H.on(V,J):e(H._events[V])?H._events[V].unshift(J):H._events[V]=[J,H._events[V]]}function S(H,V){n=n||lh(),H=H||{};var J=V instanceof n;this.objectMode=!!H.objectMode,J&&(this.objectMode=this.objectMode||!!H.readableObjectMode);var ae=H.highWaterMark,te=H.readableHighWaterMark,Z=this.objectMode?16:16*1024;ae||ae===0?this.highWaterMark=ae:J&&(te||te===0)?this.highWaterMark=te:this.highWaterMark=Z,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=H.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,H.encoding&&(C||(C=Wz().StringDecoder),this.decoder=new C(H.encoding),this.encoding=H.encoding)}function I(H){if(n=n||lh(),!(this instanceof I))return new I(H);this._readableState=new S(H,this),this.readable=!0,H&&(typeof H.read=="function"&&(this._read=H.read),typeof H.destroy=="function"&&(this._destroy=H.destroy)),i.call(this)}Object.defineProperty(I.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(H){this._readableState&&(this._readableState.destroyed=H)}}),I.prototype.destroy=M.destroy,I.prototype._undestroy=M.undestroy,I.prototype._destroy=function(H,V){this.push(null),V(H)},I.prototype.push=function(H,V){var J=this._readableState,ae;return J.objectMode?ae=!0:typeof H=="string"&&(V=V||J.defaultEncoding,V!==J.encoding&&(H=a.from(H,V),V=""),ae=!0),N(this,H,V,!1,ae)},I.prototype.unshift=function(H){return N(this,H,null,!0,!1)};function N(H,V,J,ae,te){var Z=H._readableState;if(V===null)Z.reading=!1,R(H,Z);else{var ce;te||(ce=k(Z,V)),ce?H.emit("error",ce):Z.objectMode||V&&V.length>0?(typeof V!="string"&&!Z.objectMode&&Object.getPrototypeOf(V)!==a.prototype&&(V=c(V)),ae?Z.endEmitted?H.emit("error",new Error("stream.unshift() after end event")):B(H,Z,V,!0):Z.ended?H.emit("error",new Error("stream.push() after EOF")):(Z.reading=!1,Z.decoder&&!J?(V=Z.decoder.write(V),Z.objectMode||V.length!==0?B(H,Z,V,!1):u(H,Z)):B(H,Z,V,!1))):ae||(Z.reading=!1)}return O(Z)}function B(H,V,J,ae){V.flowing&&V.length===0&&!V.sync?(H.emit("data",J),H.read(0)):(V.length+=V.objectMode?1:J.length,ae?V.buffer.unshift(J):V.buffer.push(J),V.needReadable&&w(H)),u(H,V)}function k(H,V){var J;return!l(V)&&typeof V!="string"&&V!==void 0&&!H.objectMode&&(J=new TypeError("Invalid non-string/buffer chunk")),J}function O(H){return!H.ended&&(H.needReadable||H.length<H.highWaterMark||H.length===0)}I.prototype.isPaused=function(){return this._readableState.flowing===!1},I.prototype.setEncoding=function(H){return C||(C=Wz().StringDecoder),this._readableState.decoder=new C(H),this._readableState.encoding=H,this};var z=8388608;function _(H){return H>=z?H=z:(H--,H|=H>>>1,H|=H>>>2,H|=H>>>4,H|=H>>>8,H|=H>>>16,H++),H}function F(H,V){return H<=0||V.length===0&&V.ended?0:V.objectMode?1:H!==H?V.flowing&&V.length?V.buffer.head.data.length:V.length:(H>V.highWaterMark&&(V.highWaterMark=_(H)),H<=V.length?H:V.ended?V.length:(V.needReadable=!0,0))}I.prototype.read=function(H){m("read",H),H=parseInt(H,10);var V=this._readableState,J=H;if(H!==0&&(V.emittedReadable=!1),H===0&&V.needReadable&&(V.length>=V.highWaterMark||V.ended))return m("read: emitReadable",V.length,V.ended),V.length===0&&V.ended?$(this):w(this),null;if(H=F(H,V),H===0&&V.ended)return V.length===0&&$(this),null;var ae=V.needReadable;m("need readable",ae),(V.length===0||V.length-H<V.highWaterMark)&&(ae=!0,m("length less than watermark",ae)),V.ended||V.reading?(ae=!1,m("reading or ended",ae)):ae&&(m("do read"),V.reading=!0,V.sync=!0,V.length===0&&(V.needReadable=!0),this._read(V.highWaterMark),V.sync=!1,V.reading||(H=F(J,V)));var te;return H>0?te=f(H,V):te=null,te===null?(V.needReadable=!0,H=0):V.length-=H,V.length===0&&(V.ended||(V.needReadable=!0),J!==H&&V.ended&&$(this)),te!==null&&this.emit("data",te),te};function R(H,V){if(!V.ended){if(V.decoder){var J=V.decoder.end();J&&J.length&&(V.buffer.push(J),V.length+=V.objectMode?1:J.length)}V.ended=!0,w(H)}}function w(H){var V=H._readableState;V.needReadable=!1,V.emittedReadable||(m("emitReadable",V.flowing),V.emittedReadable=!0,V.sync?t.nextTick(o,H):o(H))}function o(H){m("emit readable"),H.emit("readable"),v(H)}function u(H,V){V.readingMore||(V.readingMore=!0,t.nextTick(h,H,V))}function h(H,V){for(var J=V.length;!V.reading&&!V.flowing&&!V.ended&&V.length<V.highWaterMark&&(m("maybeReadMore read 0"),H.read(0),J!==V.length);)J=V.length;V.readingMore=!1}I.prototype._read=function(H){this.emit("error",new Error("_read() is not implemented"))},I.prototype.pipe=function(H,V){var J=this,ae=this._readableState;switch(ae.pipesCount){case 0:ae.pipes=H;break;case 1:ae.pipes=[ae.pipes,H];break;default:ae.pipes.push(H);break}ae.pipesCount+=1,m("pipe count=%d opts=%j",ae.pipesCount,V);var te=(!V||V.end!==!1)&&H!==je.process.stdout&&H!==je.process.stderr,Z=te?De:_e;ae.endEmitted?t.nextTick(Z):J.once("end",Z),H.on("unpipe",ce);function ce(be,we){m("onunpipe"),be===J&&we&&we.hasUnpiped===!1&&(we.hasUnpiped=!0,st())}function De(){m("onend"),H.end()}var pe=b(J);H.on("drain",pe);var Se=!1;function st(){m("cleanup"),H.removeListener("close",Me),H.removeListener("finish",ye),H.removeListener("drain",pe),H.removeListener("error",lt),H.removeListener("unpipe",ce),J.removeListener("end",De),J.removeListener("end",_e),J.removeListener("data",Ne),Se=!0,ae.awaitDrain&&(!H._writableState||H._writableState.needDrain)&&pe()}var ve=!1;J.on("data",Ne);function Ne(be){m("ondata"),ve=!1;var we=H.write(be);we===!1&&!ve&&((ae.pipesCount===1&&ae.pipes===H||ae.pipesCount>1&&Q(ae.pipes,H)!==-1)&&!Se&&(m("false write response, pause",ae.awaitDrain),ae.awaitDrain++,ve=!0),J.pause())}function lt(be){m("onerror",be),_e(),H.removeListener("error",lt),r(H,"error")===0&&H.emit("error",be)}D(H,"error",lt);function Me(){H.removeListener("finish",ye),_e()}H.once("close",Me);function ye(){m("onfinish"),H.removeListener("close",Me),_e()}H.once("finish",ye);function _e(){m("unpipe"),J.unpipe(H)}return H.emit("pipe",J),ae.flowing||(m("pipe resume"),J.resume()),H};function b(H){return function(){var V=H._readableState;m("pipeOnDrain",V.awaitDrain),V.awaitDrain&&V.awaitDrain--,V.awaitDrain===0&&r(H,"data")&&(V.flowing=!0,v(H))}}I.prototype.unpipe=function(H){var V=this._readableState,J={hasUnpiped:!1};if(V.pipesCount===0)return this;if(V.pipesCount===1)return H&&H!==V.pipes?this:(H||(H=V.pipes),V.pipes=null,V.pipesCount=0,V.flowing=!1,H&&H.emit("unpipe",this,J),this);if(!H){var ae=V.pipes,te=V.pipesCount;V.pipes=null,V.pipesCount=0,V.flowing=!1;for(var Z=0;Z<te;Z++)ae[Z].emit("unpipe",this,{hasUnpiped:!1});return this}var ce=Q(V.pipes,H);return ce===-1?this:(V.pipes.splice(ce,1),V.pipesCount-=1,V.pipesCount===1&&(V.pipes=V.pipes[0]),H.emit("unpipe",this,J),this)},I.prototype.on=function(H,V){var J=i.prototype.on.call(this,H,V);if(H==="data")this._readableState.flowing!==!1&&this.resume();else if(H==="readable"){var ae=this._readableState;!ae.endEmitted&&!ae.readableListening&&(ae.readableListening=ae.needReadable=!0,ae.emittedReadable=!1,ae.reading?ae.length&&w(this):t.nextTick(y,this))}return J},I.prototype.addListener=I.prototype.on;function y(H){m("readable nexttick read 0"),H.read(0)}I.prototype.resume=function(){var H=this._readableState;return H.flowing||(m("resume"),H.flowing=!0,x(this,H)),this};function x(H,V){V.resumeScheduled||(V.resumeScheduled=!0,t.nextTick(E,H,V))}function E(H,V){V.reading||(m("resume read 0"),H.read(0)),V.resumeScheduled=!1,V.awaitDrain=0,H.emit("resume"),v(H),V.flowing&&!V.reading&&H.read(0)}I.prototype.pause=function(){return m("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(m("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function v(H){var V=H._readableState;for(m("flow",V.flowing);V.flowing&&H.read()!==null;);}I.prototype.wrap=function(H){var V=this,J=this._readableState,ae=!1;H.on("end",function(){if(m("wrapped end"),J.decoder&&!J.ended){var ce=J.decoder.end();ce&&ce.length&&V.push(ce)}V.push(null)}),H.on("data",function(ce){if(m("wrapped data"),J.decoder&&(ce=J.decoder.write(ce)),!(J.objectMode&&ce==null)&&!(!J.objectMode&&(!ce||!ce.length))){var De=V.push(ce);De||(ae=!0,H.pause())}});for(var te in H)this[te]===void 0&&typeof H[te]=="function"&&(this[te]=function(ce){return function(){return H[ce].apply(H,arguments)}}(te));for(var Z=0;Z<T.length;Z++)H.on(T[Z],this.emit.bind(this,T[Z]));return this._read=function(ce){m("wrapped _read",ce),ae&&(ae=!1,H.resume())},this},Object.defineProperty(I.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),I._fromList=f;function f(H,V){if(V.length===0)return null;var J;return V.objectMode?J=V.buffer.shift():!H||H>=V.length?(V.decoder?J=V.buffer.join(""):V.buffer.length===1?J=V.buffer.head.data:J=V.buffer.concat(V.length),V.buffer.clear()):J=A(H,V.buffer,V.decoder),J}function A(H,V,J){var ae;return H<V.head.data.length?(ae=V.head.data.slice(0,H),V.head.data=V.head.data.slice(H)):H===V.head.data.length?ae=V.shift():ae=J?j(H,V):P(H,V),ae}function j(H,V){var J=V.head,ae=1,te=J.data;for(H-=te.length;J=J.next;){var Z=J.data,ce=H>Z.length?Z.length:H;if(ce===Z.length?te+=Z:te+=Z.slice(0,H),H-=ce,H===0){ce===Z.length?(++ae,J.next?V.head=J.next:V.head=V.tail=null):(V.head=J,J.data=Z.slice(ce));break}++ae}return V.length-=ae,te}function P(H,V){var J=a.allocUnsafe(H),ae=V.head,te=1;for(ae.data.copy(J),H-=ae.data.length;ae=ae.next;){var Z=ae.data,ce=H>Z.length?Z.length:H;if(Z.copy(J,J.length-H,0,ce),H-=ce,H===0){ce===Z.length?(++te,ae.next?V.head=ae.next:V.head=V.tail=null):(V.head=ae,ae.data=Z.slice(ce));break}++te}return V.length-=te,J}function $(H){var V=H._readableState;if(V.length>0)throw new Error('"endReadable()" called on non-empty stream');V.endEmitted||(V.ended=!0,t.nextTick(K,V,H))}function K(H,V){!H.endEmitted&&H.length===0&&(H.endEmitted=!0,V.readable=!1,V.emit("end"))}function Q(H,V){for(var J=0,ae=H.length;J<ae;J++)if(H[J]===V)return J;return-1}return mA}var yA,Gz;function DK(){if(Gz)return yA;Gz=1,yA=r;var t=lh(),e=Object.create(rb());e.inherits=mn,e.inherits(r,t);function n(s,c){var l=this._transformState;l.transforming=!1;var d=l.writecb;if(!d)return this.emit("error",new Error("write callback called multiple times"));l.writechunk=null,l.writecb=null,c!=null&&this.push(c),d(s);var p=this._readableState;p.reading=!1,(p.needReadable||p.length<p.highWaterMark)&&this._read(p.highWaterMark)}function r(s){if(!(this instanceof r))return new r(s);t.call(this,s),this._transformState={afterTransform:n.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,s&&(typeof s.transform=="function"&&(this._transform=s.transform),typeof s.flush=="function"&&(this._flush=s.flush)),this.on("prefinish",i)}function i(){var s=this;typeof this._flush=="function"?this._flush(function(c,l){a(s,c,l)}):a(this,null,null)}r.prototype.push=function(s,c){return this._transformState.needTransform=!1,t.prototype.push.call(this,s,c)},r.prototype._transform=function(s,c,l){throw new Error("_transform() is not implemented")},r.prototype._write=function(s,c,l){var d=this._transformState;if(d.writecb=l,d.writechunk=s,d.writeencoding=c,!d.transforming){var p=this._readableState;(d.needTransform||p.needReadable||p.length<p.highWaterMark)&&this._read(p.highWaterMark)}},r.prototype._read=function(s){var c=this._transformState;c.writechunk!==null&&c.writecb&&!c.transforming?(c.transforming=!0,this._transform(c.writechunk,c.writeencoding,c.afterTransform)):c.needTransform=!0},r.prototype._destroy=function(s,c){var l=this;t.prototype._destroy.call(this,s,function(d){c(d),l.emit("close")})};function a(s,c,l){if(c)return s.emit("error",c);if(l!=null&&s.push(l),s._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(s._transformState.transforming)throw new Error("Calling transform done when still transforming");return s.push(null)}return yA}var gA,$z;function $4e(){if($z)return gA;$z=1,gA=n;var t=DK(),e=Object.create(rb());e.inherits=mn,e.inherits(n,t);function n(r){if(!(this instanceof n))return new n(r);t.call(this,r)}return n.prototype._transform=function(r,i,a){a(null,r)},gA}var Vz;function V4e(){return Vz||(Vz=1,function(t,e){e=t.exports=IK(),e.Stream=e,e.Readable=e,e.Writable=TK(),e.Duplex=lh(),e.Transform=DK(),e.PassThrough=$4e()}(b9,b9.exports)),b9.exports}var z8={exports:{}},uL={exports:{}};uL.exports;(function(t){(function(e,n){function r(u,h){if(!u)throw new Error(h||"Assertion failed")}function i(u,h){u.super_=h;var b=function(){};b.prototype=h.prototype,u.prototype=new b,u.prototype.constructor=u}function a(u,h,b){if(a.isBN(u))return u;this.negative=0,this.words=null,this.length=0,this.red=null,u!==null&&((h==="le"||h==="be")&&(b=h,h=10),this._init(u||0,h||10,b||"be"))}typeof e=="object"?e.exports=a:n.BN=a,a.BN=a,a.wordSize=26;var s;try{typeof window<"u"&&typeof window.Buffer<"u"?s=window.Buffer:s=wt.Buffer}catch{}a.isBN=function(h){return h instanceof a?!0:h!==null&&typeof h=="object"&&h.constructor.wordSize===a.wordSize&&Array.isArray(h.words)},a.max=function(h,b){return h.cmp(b)>0?h:b},a.min=function(h,b){return h.cmp(b)<0?h:b},a.prototype._init=function(h,b,y){if(typeof h=="number")return this._initNumber(h,b,y);if(typeof h=="object")return this._initArray(h,b,y);b==="hex"&&(b=16),r(b===(b|0)&&b>=2&&b<=36),h=h.toString().replace(/\s+/g,"");var x=0;h[0]==="-"&&(x++,this.negative=1),x<h.length&&(b===16?this._parseHex(h,x,y):(this._parseBase(h,b,x),y==="le"&&this._initArray(this.toArray(),b,y)))},a.prototype._initNumber=function(h,b,y){h<0&&(this.negative=1,h=-h),h<67108864?(this.words=[h&67108863],this.length=1):h<4503599627370496?(this.words=[h&67108863,h/67108864&67108863],this.length=2):(r(h<9007199254740992),this.words=[h&67108863,h/67108864&67108863,1],this.length=3),y==="le"&&this._initArray(this.toArray(),b,y)},a.prototype._initArray=function(h,b,y){if(r(typeof h.length=="number"),h.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(h.length/3),this.words=new Array(this.length);for(var x=0;x<this.length;x++)this.words[x]=0;var E,v,f=0;if(y==="be")for(x=h.length-1,E=0;x>=0;x-=3)v=h[x]|h[x-1]<<8|h[x-2]<<16,this.words[E]|=v<<f&67108863,this.words[E+1]=v>>>26-f&67108863,f+=24,f>=26&&(f-=26,E++);else if(y==="le")for(x=0,E=0;x<h.length;x+=3)v=h[x]|h[x+1]<<8|h[x+2]<<16,this.words[E]|=v<<f&67108863,this.words[E+1]=v>>>26-f&67108863,f+=24,f>=26&&(f-=26,E++);return this._strip()};function c(u,h){var b=u.charCodeAt(h);if(b>=48&&b<=57)return b-48;if(b>=65&&b<=70)return b-55;if(b>=97&&b<=102)return b-87;r(!1,"Invalid character in "+u)}function l(u,h,b){var y=c(u,b);return b-1>=h&&(y|=c(u,b-1)<<4),y}a.prototype._parseHex=function(h,b,y){this.length=Math.ceil((h.length-b)/6),this.words=new Array(this.length);for(var x=0;x<this.length;x++)this.words[x]=0;var E=0,v=0,f;if(y==="be")for(x=h.length-1;x>=b;x-=2)f=l(h,b,x)<<E,this.words[v]|=f&67108863,E>=18?(E-=18,v+=1,this.words[v]|=f>>>26):E+=8;else{var A=h.length-b;for(x=A%2===0?b+1:b;x<h.length;x+=2)f=l(h,b,x)<<E,this.words[v]|=f&67108863,E>=18?(E-=18,v+=1,this.words[v]|=f>>>26):E+=8}this._strip()};function d(u,h,b,y){for(var x=0,E=0,v=Math.min(u.length,b),f=h;f<v;f++){var A=u.charCodeAt(f)-48;x*=y,A>=49?E=A-49+10:A>=17?E=A-17+10:E=A,r(A>=0&&E<y,"Invalid character"),x+=E}return x}a.prototype._parseBase=function(h,b,y){this.words=[0],this.length=1;for(var x=0,E=1;E<=67108863;E*=b)x++;x--,E=E/b|0;for(var v=h.length-y,f=v%x,A=Math.min(v,v-f)+y,j=0,P=y;P<A;P+=x)j=d(h,P,P+x,b),this.imuln(E),this.words[0]+j<67108864?this.words[0]+=j:this._iaddn(j);if(f!==0){var $=1;for(j=d(h,P,h.length,b),P=0;P<f;P++)$*=b;this.imuln($),this.words[0]+j<67108864?this.words[0]+=j:this._iaddn(j)}this._strip()},a.prototype.copy=function(h){h.words=new Array(this.length);for(var b=0;b<this.length;b++)h.words[b]=this.words[b];h.length=this.length,h.negative=this.negative,h.red=this.red};function p(u,h){u.words=h.words,u.length=h.length,u.negative=h.negative,u.red=h.red}if(a.prototype._move=function(h){p(h,this)},a.prototype.clone=function(){var h=new a(null);return this.copy(h),h},a.prototype._expand=function(h){for(;this.length<h;)this.words[this.length++]=0;return this},a.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=m}catch{a.prototype.inspect=m}else a.prototype.inspect=m;function m(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var g=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],M=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],C=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(h,b){h=h||10,b=b|0||1;var y;if(h===16||h==="hex"){y="";for(var x=0,E=0,v=0;v<this.length;v++){var f=this.words[v],A=((f<<x|E)&16777215).toString(16);E=f>>>24-x&16777215,x+=2,x>=26&&(x-=26,v--),E!==0||v!==this.length-1?y=g[6-A.length]+A+y:y=A+y}for(E!==0&&(y=E.toString(16)+y);y.length%b!==0;)y="0"+y;return this.negative!==0&&(y="-"+y),y}if(h===(h|0)&&h>=2&&h<=36){var j=M[h],P=C[h];y="";var $=this.clone();for($.negative=0;!$.isZero();){var K=$.modrn(P).toString(h);$=$.idivn(P),$.isZero()?y=K+y:y=g[j-K.length]+K+y}for(this.isZero()&&(y="0"+y);y.length%b!==0;)y="0"+y;return this.negative!==0&&(y="-"+y),y}r(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var h=this.words[0];return this.length===2?h+=this.words[1]*67108864:this.length===3&&this.words[2]===1?h+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-h:h},a.prototype.toJSON=function(){return this.toString(16,2)},s&&(a.prototype.toBuffer=function(h,b){return this.toArrayLike(s,h,b)}),a.prototype.toArray=function(h,b){return this.toArrayLike(Array,h,b)};var T=function(h,b){return h.allocUnsafe?h.allocUnsafe(b):new h(b)};a.prototype.toArrayLike=function(h,b,y){this._strip();var x=this.byteLength(),E=y||Math.max(1,x);r(x<=E,"byte array longer than desired length"),r(E>0,"Requested array length <= 0");var v=T(h,E),f=b==="le"?"LE":"BE";return this["_toArrayLike"+f](v,x),v},a.prototype._toArrayLikeLE=function(h,b){for(var y=0,x=0,E=0,v=0;E<this.length;E++){var f=this.words[E]<<v|x;h[y++]=f&255,y<h.length&&(h[y++]=f>>8&255),y<h.length&&(h[y++]=f>>16&255),v===6?(y<h.length&&(h[y++]=f>>24&255),x=0,v=0):(x=f>>>24,v+=2)}if(y<h.length)for(h[y++]=x;y<h.length;)h[y++]=0},a.prototype._toArrayLikeBE=function(h,b){for(var y=h.length-1,x=0,E=0,v=0;E<this.length;E++){var f=this.words[E]<<v|x;h[y--]=f&255,y>=0&&(h[y--]=f>>8&255),y>=0&&(h[y--]=f>>16&255),v===6?(y>=0&&(h[y--]=f>>24&255),x=0,v=0):(x=f>>>24,v+=2)}if(y>=0)for(h[y--]=x;y>=0;)h[y--]=0},Math.clz32?a.prototype._countBits=function(h){return 32-Math.clz32(h)}:a.prototype._countBits=function(h){var b=h,y=0;return b>=4096&&(y+=13,b>>>=13),b>=64&&(y+=7,b>>>=7),b>=8&&(y+=4,b>>>=4),b>=2&&(y+=2,b>>>=2),y+b},a.prototype._zeroBits=function(h){if(h===0)return 26;var b=h,y=0;return b&8191||(y+=13,b>>>=13),b&127||(y+=7,b>>>=7),b&15||(y+=4,b>>>=4),b&3||(y+=2,b>>>=2),b&1||y++,y},a.prototype.bitLength=function(){var h=this.words[this.length-1],b=this._countBits(h);return(this.length-1)*26+b};function D(u){for(var h=new Array(u.bitLength()),b=0;b<h.length;b++){var y=b/26|0,x=b%26;h[b]=u.words[y]>>>x&1}return h}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var h=0,b=0;b<this.length;b++){var y=this._zeroBits(this.words[b]);if(h+=y,y!==26)break}return h},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(h){return this.negative!==0?this.abs().inotn(h).iaddn(1):this.clone()},a.prototype.fromTwos=function(h){return this.testn(h-1)?this.notn(h).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(h){for(;this.length<h.length;)this.words[this.length++]=0;for(var b=0;b<h.length;b++)this.words[b]=this.words[b]|h.words[b];return this._strip()},a.prototype.ior=function(h){return r((this.negative|h.negative)===0),this.iuor(h)},a.prototype.or=function(h){return this.length>h.length?this.clone().ior(h):h.clone().ior(this)},a.prototype.uor=function(h){return this.length>h.length?this.clone().iuor(h):h.clone().iuor(this)},a.prototype.iuand=function(h){var b;this.length>h.length?b=h:b=this;for(var y=0;y<b.length;y++)this.words[y]=this.words[y]&h.words[y];return this.length=b.length,this._strip()},a.prototype.iand=function(h){return r((this.negative|h.negative)===0),this.iuand(h)},a.prototype.and=function(h){return this.length>h.length?this.clone().iand(h):h.clone().iand(this)},a.prototype.uand=function(h){return this.length>h.length?this.clone().iuand(h):h.clone().iuand(this)},a.prototype.iuxor=function(h){var b,y;this.length>h.length?(b=this,y=h):(b=h,y=this);for(var x=0;x<y.length;x++)this.words[x]=b.words[x]^y.words[x];if(this!==b)for(;x<b.length;x++)this.words[x]=b.words[x];return this.length=b.length,this._strip()},a.prototype.ixor=function(h){return r((this.negative|h.negative)===0),this.iuxor(h)},a.prototype.xor=function(h){return this.length>h.length?this.clone().ixor(h):h.clone().ixor(this)},a.prototype.uxor=function(h){return this.length>h.length?this.clone().iuxor(h):h.clone().iuxor(this)},a.prototype.inotn=function(h){r(typeof h=="number"&&h>=0);var b=Math.ceil(h/26)|0,y=h%26;this._expand(b),y>0&&b--;for(var x=0;x<b;x++)this.words[x]=~this.words[x]&67108863;return y>0&&(this.words[x]=~this.words[x]&67108863>>26-y),this._strip()},a.prototype.notn=function(h){return this.clone().inotn(h)},a.prototype.setn=function(h,b){r(typeof h=="number"&&h>=0);var y=h/26|0,x=h%26;return this._expand(y+1),b?this.words[y]=this.words[y]|1<<x:this.words[y]=this.words[y]&~(1<<x),this._strip()},a.prototype.iadd=function(h){var b;if(this.negative!==0&&h.negative===0)return this.negative=0,b=this.isub(h),this.negative^=1,this._normSign();if(this.negative===0&&h.negative!==0)return h.negative=0,b=this.isub(h),h.negative=1,b._normSign();var y,x;this.length>h.length?(y=this,x=h):(y=h,x=this);for(var E=0,v=0;v<x.length;v++)b=(y.words[v]|0)+(x.words[v]|0)+E,this.words[v]=b&67108863,E=b>>>26;for(;E!==0&&v<y.length;v++)b=(y.words[v]|0)+E,this.words[v]=b&67108863,E=b>>>26;if(this.length=y.length,E!==0)this.words[this.length]=E,this.length++;else if(y!==this)for(;v<y.length;v++)this.words[v]=y.words[v];return this},a.prototype.add=function(h){var b;return h.negative!==0&&this.negative===0?(h.negative=0,b=this.sub(h),h.negative^=1,b):h.negative===0&&this.negative!==0?(this.negative=0,b=h.sub(this),this.negative=1,b):this.length>h.length?this.clone().iadd(h):h.clone().iadd(this)},a.prototype.isub=function(h){if(h.negative!==0){h.negative=0;var b=this.iadd(h);return h.negative=1,b._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(h),this.negative=1,this._normSign();var y=this.cmp(h);if(y===0)return this.negative=0,this.length=1,this.words[0]=0,this;var x,E;y>0?(x=this,E=h):(x=h,E=this);for(var v=0,f=0;f<E.length;f++)b=(x.words[f]|0)-(E.words[f]|0)+v,v=b>>26,this.words[f]=b&67108863;for(;v!==0&&f<x.length;f++)b=(x.words[f]|0)+v,v=b>>26,this.words[f]=b&67108863;if(v===0&&f<x.length&&x!==this)for(;f<x.length;f++)this.words[f]=x.words[f];return this.length=Math.max(this.length,f),x!==this&&(this.negative=1),this._strip()},a.prototype.sub=function(h){return this.clone().isub(h)};function S(u,h,b){b.negative=h.negative^u.negative;var y=u.length+h.length|0;b.length=y,y=y-1|0;var x=u.words[0]|0,E=h.words[0]|0,v=x*E,f=v&67108863,A=v/67108864|0;b.words[0]=f;for(var j=1;j<y;j++){for(var P=A>>>26,$=A&67108863,K=Math.min(j,h.length-1),Q=Math.max(0,j-u.length+1);Q<=K;Q++){var H=j-Q|0;x=u.words[H]|0,E=h.words[Q]|0,v=x*E+$,P+=v/67108864|0,$=v&67108863}b.words[j]=$|0,A=P|0}return A!==0?b.words[j]=A|0:b.length--,b._strip()}var I=function(h,b,y){var x=h.words,E=b.words,v=y.words,f=0,A,j,P,$=x[0]|0,K=$&8191,Q=$>>>13,H=x[1]|0,V=H&8191,J=H>>>13,ae=x[2]|0,te=ae&8191,Z=ae>>>13,ce=x[3]|0,De=ce&8191,pe=ce>>>13,Se=x[4]|0,st=Se&8191,ve=Se>>>13,Ne=x[5]|0,lt=Ne&8191,Me=Ne>>>13,ye=x[6]|0,_e=ye&8191,be=ye>>>13,we=x[7]|0,yt=we&8191,q=we>>>13,U=x[8]|0,Y=U&8191,ie=U>>>13,ue=x[9]|0,Ce=ue&8191,fe=ue>>>13,Ae=E[0]|0,at=Ae&8191,Ee=Ae>>>13,Be=E[1]|0,Mt=Be&8191,Oe=Be>>>13,Ge=E[2]|0,Qt=Ge&8191,ze=Ge>>>13,$e=E[3]|0,rn=$e&8191,We=$e>>>13,qe=E[4]|0,bn=qe&8191,Ye=qe>>>13,Ze=E[5]|0,vn=Ze&8191,Pe=Ze>>>13,Ke=E[6]|0,X=Ke&8191,ee=Ke>>>13,ne=E[7]|0,W=ne&8191,re=ne>>>13,de=E[8]|0,Ie=de&8191,he=de>>>13,xe=E[9]|0,it=xe&8191,Xe=xe>>>13;y.negative=h.negative^b.negative,y.length=19,A=Math.imul(K,at),j=Math.imul(K,Ee),j=j+Math.imul(Q,at)|0,P=Math.imul(Q,Ee);var $t=(f+A|0)+((j&8191)<<13)|0;f=(P+(j>>>13)|0)+($t>>>26)|0,$t&=67108863,A=Math.imul(V,at),j=Math.imul(V,Ee),j=j+Math.imul(J,at)|0,P=Math.imul(J,Ee),A=A+Math.imul(K,Mt)|0,j=j+Math.imul(K,Oe)|0,j=j+Math.imul(Q,Mt)|0,P=P+Math.imul(Q,Oe)|0;var pt=(f+A|0)+((j&8191)<<13)|0;f=(P+(j>>>13)|0)+(pt>>>26)|0,pt&=67108863,A=Math.imul(te,at),j=Math.imul(te,Ee),j=j+Math.imul(Z,at)|0,P=Math.imul(Z,Ee),A=A+Math.imul(V,Mt)|0,j=j+Math.imul(V,Oe)|0,j=j+Math.imul(J,Mt)|0,P=P+Math.imul(J,Oe)|0,A=A+Math.imul(K,Qt)|0,j=j+Math.imul(K,ze)|0,j=j+Math.imul(Q,Qt)|0,P=P+Math.imul(Q,ze)|0;var tt=(f+A|0)+((j&8191)<<13)|0;f=(P+(j>>>13)|0)+(tt>>>26)|0,tt&=67108863,A=Math.imul(De,at),j=Math.imul(De,Ee),j=j+Math.imul(pe,at)|0,P=Math.imul(pe,Ee),A=A+Math.imul(te,Mt)|0,j=j+Math.imul(te,Oe)|0,j=j+Math.imul(Z,Mt)|0,P=P+Math.imul(Z,Oe)|0,A=A+Math.imul(V,Qt)|0,j=j+Math.imul(V,ze)|0,j=j+Math.imul(J,Qt)|0,P=P+Math.imul(J,ze)|0,A=A+Math.imul(K,rn)|0,j=j+Math.imul(K,We)|0,j=j+Math.imul(Q,rn)|0,P=P+Math.imul(Q,We)|0;var At=(f+A|0)+((j&8191)<<13)|0;f=(P+(j>>>13)|0)+(At>>>26)|0,At&=67108863,A=Math.imul(st,at),j=Math.imul(st,Ee),j=j+Math.imul(ve,at)|0,P=Math.imul(ve,Ee),A=A+Math.imul(De,Mt)|0,j=j+Math.imul(De,Oe)|0,j=j+Math.imul(pe,Mt)|0,P=P+Math.imul(pe,Oe)|0,A=A+Math.imul(te,Qt)|0,j=j+Math.imul(te,ze)|0,j=j+Math.imul(Z,Qt)|0,P=P+Math.imul(Z,ze)|0,A=A+Math.imul(V,rn)|0,j=j+Math.imul(V,We)|0,j=j+Math.imul(J,rn)|0,P=P+Math.imul(J,We)|0,A=A+Math.imul(K,bn)|0,j=j+Math.imul(K,Ye)|0,j=j+Math.imul(Q,bn)|0,P=P+Math.imul(Q,Ye)|0;var Rt=(f+A|0)+((j&8191)<<13)|0;f=(P+(j>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,A=Math.imul(lt,at),j=Math.imul(lt,Ee),j=j+Math.imul(Me,at)|0,P=Math.imul(Me,Ee),A=A+Math.imul(st,Mt)|0,j=j+Math.imul(st,Oe)|0,j=j+Math.imul(ve,Mt)|0,P=P+Math.imul(ve,Oe)|0,A=A+Math.imul(De,Qt)|0,j=j+Math.imul(De,ze)|0,j=j+Math.imul(pe,Qt)|0,P=P+Math.imul(pe,ze)|0,A=A+Math.imul(te,rn)|0,j=j+Math.imul(te,We)|0,j=j+Math.imul(Z,rn)|0,P=P+Math.imul(Z,We)|0,A=A+Math.imul(V,bn)|0,j=j+Math.imul(V,Ye)|0,j=j+Math.imul(J,bn)|0,P=P+Math.imul(J,Ye)|0,A=A+Math.imul(K,vn)|0,j=j+Math.imul(K,Pe)|0,j=j+Math.imul(Q,vn)|0,P=P+Math.imul(Q,Pe)|0;var Ft=(f+A|0)+((j&8191)<<13)|0;f=(P+(j>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,A=Math.imul(_e,at),j=Math.imul(_e,Ee),j=j+Math.imul(be,at)|0,P=Math.imul(be,Ee),A=A+Math.imul(lt,Mt)|0,j=j+Math.imul(lt,Oe)|0,j=j+Math.imul(Me,Mt)|0,P=P+Math.imul(Me,Oe)|0,A=A+Math.imul(st,Qt)|0,j=j+Math.imul(st,ze)|0,j=j+Math.imul(ve,Qt)|0,P=P+Math.imul(ve,ze)|0,A=A+Math.imul(De,rn)|0,j=j+Math.imul(De,We)|0,j=j+Math.imul(pe,rn)|0,P=P+Math.imul(pe,We)|0,A=A+Math.imul(te,bn)|0,j=j+Math.imul(te,Ye)|0,j=j+Math.imul(Z,bn)|0,P=P+Math.imul(Z,Ye)|0,A=A+Math.imul(V,vn)|0,j=j+Math.imul(V,Pe)|0,j=j+Math.imul(J,vn)|0,P=P+Math.imul(J,Pe)|0,A=A+Math.imul(K,X)|0,j=j+Math.imul(K,ee)|0,j=j+Math.imul(Q,X)|0,P=P+Math.imul(Q,ee)|0;var Bt=(f+A|0)+((j&8191)<<13)|0;f=(P+(j>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,A=Math.imul(yt,at),j=Math.imul(yt,Ee),j=j+Math.imul(q,at)|0,P=Math.imul(q,Ee),A=A+Math.imul(_e,Mt)|0,j=j+Math.imul(_e,Oe)|0,j=j+Math.imul(be,Mt)|0,P=P+Math.imul(be,Oe)|0,A=A+Math.imul(lt,Qt)|0,j=j+Math.imul(lt,ze)|0,j=j+Math.imul(Me,Qt)|0,P=P+Math.imul(Me,ze)|0,A=A+Math.imul(st,rn)|0,j=j+Math.imul(st,We)|0,j=j+Math.imul(ve,rn)|0,P=P+Math.imul(ve,We)|0,A=A+Math.imul(De,bn)|0,j=j+Math.imul(De,Ye)|0,j=j+Math.imul(pe,bn)|0,P=P+Math.imul(pe,Ye)|0,A=A+Math.imul(te,vn)|0,j=j+Math.imul(te,Pe)|0,j=j+Math.imul(Z,vn)|0,P=P+Math.imul(Z,Pe)|0,A=A+Math.imul(V,X)|0,j=j+Math.imul(V,ee)|0,j=j+Math.imul(J,X)|0,P=P+Math.imul(J,ee)|0,A=A+Math.imul(K,W)|0,j=j+Math.imul(K,re)|0,j=j+Math.imul(Q,W)|0,P=P+Math.imul(Q,re)|0;var Ot=(f+A|0)+((j&8191)<<13)|0;f=(P+(j>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,A=Math.imul(Y,at),j=Math.imul(Y,Ee),j=j+Math.imul(ie,at)|0,P=Math.imul(ie,Ee),A=A+Math.imul(yt,Mt)|0,j=j+Math.imul(yt,Oe)|0,j=j+Math.imul(q,Mt)|0,P=P+Math.imul(q,Oe)|0,A=A+Math.imul(_e,Qt)|0,j=j+Math.imul(_e,ze)|0,j=j+Math.imul(be,Qt)|0,P=P+Math.imul(be,ze)|0,A=A+Math.imul(lt,rn)|0,j=j+Math.imul(lt,We)|0,j=j+Math.imul(Me,rn)|0,P=P+Math.imul(Me,We)|0,A=A+Math.imul(st,bn)|0,j=j+Math.imul(st,Ye)|0,j=j+Math.imul(ve,bn)|0,P=P+Math.imul(ve,Ye)|0,A=A+Math.imul(De,vn)|0,j=j+Math.imul(De,Pe)|0,j=j+Math.imul(pe,vn)|0,P=P+Math.imul(pe,Pe)|0,A=A+Math.imul(te,X)|0,j=j+Math.imul(te,ee)|0,j=j+Math.imul(Z,X)|0,P=P+Math.imul(Z,ee)|0,A=A+Math.imul(V,W)|0,j=j+Math.imul(V,re)|0,j=j+Math.imul(J,W)|0,P=P+Math.imul(J,re)|0,A=A+Math.imul(K,Ie)|0,j=j+Math.imul(K,he)|0,j=j+Math.imul(Q,Ie)|0,P=P+Math.imul(Q,he)|0;var jt=(f+A|0)+((j&8191)<<13)|0;f=(P+(j>>>13)|0)+(jt>>>26)|0,jt&=67108863,A=Math.imul(Ce,at),j=Math.imul(Ce,Ee),j=j+Math.imul(fe,at)|0,P=Math.imul(fe,Ee),A=A+Math.imul(Y,Mt)|0,j=j+Math.imul(Y,Oe)|0,j=j+Math.imul(ie,Mt)|0,P=P+Math.imul(ie,Oe)|0,A=A+Math.imul(yt,Qt)|0,j=j+Math.imul(yt,ze)|0,j=j+Math.imul(q,Qt)|0,P=P+Math.imul(q,ze)|0,A=A+Math.imul(_e,rn)|0,j=j+Math.imul(_e,We)|0,j=j+Math.imul(be,rn)|0,P=P+Math.imul(be,We)|0,A=A+Math.imul(lt,bn)|0,j=j+Math.imul(lt,Ye)|0,j=j+Math.imul(Me,bn)|0,P=P+Math.imul(Me,Ye)|0,A=A+Math.imul(st,vn)|0,j=j+Math.imul(st,Pe)|0,j=j+Math.imul(ve,vn)|0,P=P+Math.imul(ve,Pe)|0,A=A+Math.imul(De,X)|0,j=j+Math.imul(De,ee)|0,j=j+Math.imul(pe,X)|0,P=P+Math.imul(pe,ee)|0,A=A+Math.imul(te,W)|0,j=j+Math.imul(te,re)|0,j=j+Math.imul(Z,W)|0,P=P+Math.imul(Z,re)|0,A=A+Math.imul(V,Ie)|0,j=j+Math.imul(V,he)|0,j=j+Math.imul(J,Ie)|0,P=P+Math.imul(J,he)|0,A=A+Math.imul(K,it)|0,j=j+Math.imul(K,Xe)|0,j=j+Math.imul(Q,it)|0,P=P+Math.imul(Q,Xe)|0;var gt=(f+A|0)+((j&8191)<<13)|0;f=(P+(j>>>13)|0)+(gt>>>26)|0,gt&=67108863,A=Math.imul(Ce,Mt),j=Math.imul(Ce,Oe),j=j+Math.imul(fe,Mt)|0,P=Math.imul(fe,Oe),A=A+Math.imul(Y,Qt)|0,j=j+Math.imul(Y,ze)|0,j=j+Math.imul(ie,Qt)|0,P=P+Math.imul(ie,ze)|0,A=A+Math.imul(yt,rn)|0,j=j+Math.imul(yt,We)|0,j=j+Math.imul(q,rn)|0,P=P+Math.imul(q,We)|0,A=A+Math.imul(_e,bn)|0,j=j+Math.imul(_e,Ye)|0,j=j+Math.imul(be,bn)|0,P=P+Math.imul(be,Ye)|0,A=A+Math.imul(lt,vn)|0,j=j+Math.imul(lt,Pe)|0,j=j+Math.imul(Me,vn)|0,P=P+Math.imul(Me,Pe)|0,A=A+Math.imul(st,X)|0,j=j+Math.imul(st,ee)|0,j=j+Math.imul(ve,X)|0,P=P+Math.imul(ve,ee)|0,A=A+Math.imul(De,W)|0,j=j+Math.imul(De,re)|0,j=j+Math.imul(pe,W)|0,P=P+Math.imul(pe,re)|0,A=A+Math.imul(te,Ie)|0,j=j+Math.imul(te,he)|0,j=j+Math.imul(Z,Ie)|0,P=P+Math.imul(Z,he)|0,A=A+Math.imul(V,it)|0,j=j+Math.imul(V,Xe)|0,j=j+Math.imul(J,it)|0,P=P+Math.imul(J,Xe)|0;var Et=(f+A|0)+((j&8191)<<13)|0;f=(P+(j>>>13)|0)+(Et>>>26)|0,Et&=67108863,A=Math.imul(Ce,Qt),j=Math.imul(Ce,ze),j=j+Math.imul(fe,Qt)|0,P=Math.imul(fe,ze),A=A+Math.imul(Y,rn)|0,j=j+Math.imul(Y,We)|0,j=j+Math.imul(ie,rn)|0,P=P+Math.imul(ie,We)|0,A=A+Math.imul(yt,bn)|0,j=j+Math.imul(yt,Ye)|0,j=j+Math.imul(q,bn)|0,P=P+Math.imul(q,Ye)|0,A=A+Math.imul(_e,vn)|0,j=j+Math.imul(_e,Pe)|0,j=j+Math.imul(be,vn)|0,P=P+Math.imul(be,Pe)|0,A=A+Math.imul(lt,X)|0,j=j+Math.imul(lt,ee)|0,j=j+Math.imul(Me,X)|0,P=P+Math.imul(Me,ee)|0,A=A+Math.imul(st,W)|0,j=j+Math.imul(st,re)|0,j=j+Math.imul(ve,W)|0,P=P+Math.imul(ve,re)|0,A=A+Math.imul(De,Ie)|0,j=j+Math.imul(De,he)|0,j=j+Math.imul(pe,Ie)|0,P=P+Math.imul(pe,he)|0,A=A+Math.imul(te,it)|0,j=j+Math.imul(te,Xe)|0,j=j+Math.imul(Z,it)|0,P=P+Math.imul(Z,Xe)|0;var ht=(f+A|0)+((j&8191)<<13)|0;f=(P+(j>>>13)|0)+(ht>>>26)|0,ht&=67108863,A=Math.imul(Ce,rn),j=Math.imul(Ce,We),j=j+Math.imul(fe,rn)|0,P=Math.imul(fe,We),A=A+Math.imul(Y,bn)|0,j=j+Math.imul(Y,Ye)|0,j=j+Math.imul(ie,bn)|0,P=P+Math.imul(ie,Ye)|0,A=A+Math.imul(yt,vn)|0,j=j+Math.imul(yt,Pe)|0,j=j+Math.imul(q,vn)|0,P=P+Math.imul(q,Pe)|0,A=A+Math.imul(_e,X)|0,j=j+Math.imul(_e,ee)|0,j=j+Math.imul(be,X)|0,P=P+Math.imul(be,ee)|0,A=A+Math.imul(lt,W)|0,j=j+Math.imul(lt,re)|0,j=j+Math.imul(Me,W)|0,P=P+Math.imul(Me,re)|0,A=A+Math.imul(st,Ie)|0,j=j+Math.imul(st,he)|0,j=j+Math.imul(ve,Ie)|0,P=P+Math.imul(ve,he)|0,A=A+Math.imul(De,it)|0,j=j+Math.imul(De,Xe)|0,j=j+Math.imul(pe,it)|0,P=P+Math.imul(pe,Xe)|0;var vt=(f+A|0)+((j&8191)<<13)|0;f=(P+(j>>>13)|0)+(vt>>>26)|0,vt&=67108863,A=Math.imul(Ce,bn),j=Math.imul(Ce,Ye),j=j+Math.imul(fe,bn)|0,P=Math.imul(fe,Ye),A=A+Math.imul(Y,vn)|0,j=j+Math.imul(Y,Pe)|0,j=j+Math.imul(ie,vn)|0,P=P+Math.imul(ie,Pe)|0,A=A+Math.imul(yt,X)|0,j=j+Math.imul(yt,ee)|0,j=j+Math.imul(q,X)|0,P=P+Math.imul(q,ee)|0,A=A+Math.imul(_e,W)|0,j=j+Math.imul(_e,re)|0,j=j+Math.imul(be,W)|0,P=P+Math.imul(be,re)|0,A=A+Math.imul(lt,Ie)|0,j=j+Math.imul(lt,he)|0,j=j+Math.imul(Me,Ie)|0,P=P+Math.imul(Me,he)|0,A=A+Math.imul(st,it)|0,j=j+Math.imul(st,Xe)|0,j=j+Math.imul(ve,it)|0,P=P+Math.imul(ve,Xe)|0;var xt=(f+A|0)+((j&8191)<<13)|0;f=(P+(j>>>13)|0)+(xt>>>26)|0,xt&=67108863,A=Math.imul(Ce,vn),j=Math.imul(Ce,Pe),j=j+Math.imul(fe,vn)|0,P=Math.imul(fe,Pe),A=A+Math.imul(Y,X)|0,j=j+Math.imul(Y,ee)|0,j=j+Math.imul(ie,X)|0,P=P+Math.imul(ie,ee)|0,A=A+Math.imul(yt,W)|0,j=j+Math.imul(yt,re)|0,j=j+Math.imul(q,W)|0,P=P+Math.imul(q,re)|0,A=A+Math.imul(_e,Ie)|0,j=j+Math.imul(_e,he)|0,j=j+Math.imul(be,Ie)|0,P=P+Math.imul(be,he)|0,A=A+Math.imul(lt,it)|0,j=j+Math.imul(lt,Xe)|0,j=j+Math.imul(Me,it)|0,P=P+Math.imul(Me,Xe)|0;var ut=(f+A|0)+((j&8191)<<13)|0;f=(P+(j>>>13)|0)+(ut>>>26)|0,ut&=67108863,A=Math.imul(Ce,X),j=Math.imul(Ce,ee),j=j+Math.imul(fe,X)|0,P=Math.imul(fe,ee),A=A+Math.imul(Y,W)|0,j=j+Math.imul(Y,re)|0,j=j+Math.imul(ie,W)|0,P=P+Math.imul(ie,re)|0,A=A+Math.imul(yt,Ie)|0,j=j+Math.imul(yt,he)|0,j=j+Math.imul(q,Ie)|0,P=P+Math.imul(q,he)|0,A=A+Math.imul(_e,it)|0,j=j+Math.imul(_e,Xe)|0,j=j+Math.imul(be,it)|0,P=P+Math.imul(be,Xe)|0;var Fe=(f+A|0)+((j&8191)<<13)|0;f=(P+(j>>>13)|0)+(Fe>>>26)|0,Fe&=67108863,A=Math.imul(Ce,W),j=Math.imul(Ce,re),j=j+Math.imul(fe,W)|0,P=Math.imul(fe,re),A=A+Math.imul(Y,Ie)|0,j=j+Math.imul(Y,he)|0,j=j+Math.imul(ie,Ie)|0,P=P+Math.imul(ie,he)|0,A=A+Math.imul(yt,it)|0,j=j+Math.imul(yt,Xe)|0,j=j+Math.imul(q,it)|0,P=P+Math.imul(q,Xe)|0;var Re=(f+A|0)+((j&8191)<<13)|0;f=(P+(j>>>13)|0)+(Re>>>26)|0,Re&=67108863,A=Math.imul(Ce,Ie),j=Math.imul(Ce,he),j=j+Math.imul(fe,Ie)|0,P=Math.imul(fe,he),A=A+Math.imul(Y,it)|0,j=j+Math.imul(Y,Xe)|0,j=j+Math.imul(ie,it)|0,P=P+Math.imul(ie,Xe)|0;var ot=(f+A|0)+((j&8191)<<13)|0;f=(P+(j>>>13)|0)+(ot>>>26)|0,ot&=67108863,A=Math.imul(Ce,it),j=Math.imul(Ce,Xe),j=j+Math.imul(fe,it)|0,P=Math.imul(fe,Xe);var Je=(f+A|0)+((j&8191)<<13)|0;return f=(P+(j>>>13)|0)+(Je>>>26)|0,Je&=67108863,v[0]=$t,v[1]=pt,v[2]=tt,v[3]=At,v[4]=Rt,v[5]=Ft,v[6]=Bt,v[7]=Ot,v[8]=jt,v[9]=gt,v[10]=Et,v[11]=ht,v[12]=vt,v[13]=xt,v[14]=ut,v[15]=Fe,v[16]=Re,v[17]=ot,v[18]=Je,f!==0&&(v[19]=f,y.length++),y};Math.imul||(I=S);function N(u,h,b){b.negative=h.negative^u.negative,b.length=u.length+h.length;for(var y=0,x=0,E=0;E<b.length-1;E++){var v=x;x=0;for(var f=y&67108863,A=Math.min(E,h.length-1),j=Math.max(0,E-u.length+1);j<=A;j++){var P=E-j,$=u.words[P]|0,K=h.words[j]|0,Q=$*K,H=Q&67108863;v=v+(Q/67108864|0)|0,H=H+f|0,f=H&67108863,v=v+(H>>>26)|0,x+=v>>>26,v&=67108863}b.words[E]=f,y=v,v=x}return y!==0?b.words[E]=y:b.length--,b._strip()}function B(u,h,b){return N(u,h,b)}a.prototype.mulTo=function(h,b){var y,x=this.length+h.length;return this.length===10&&h.length===10?y=I(this,h,b):x<63?y=S(this,h,b):x<1024?y=N(this,h,b):y=B(this,h,b),y},a.prototype.mul=function(h){var b=new a(null);return b.words=new Array(this.length+h.length),this.mulTo(h,b)},a.prototype.mulf=function(h){var b=new a(null);return b.words=new Array(this.length+h.length),B(this,h,b)},a.prototype.imul=function(h){return this.clone().mulTo(h,this)},a.prototype.imuln=function(h){var b=h<0;b&&(h=-h),r(typeof h=="number"),r(h<67108864);for(var y=0,x=0;x<this.length;x++){var E=(this.words[x]|0)*h,v=(E&67108863)+(y&67108863);y>>=26,y+=E/67108864|0,y+=v>>>26,this.words[x]=v&67108863}return y!==0&&(this.words[x]=y,this.length++),b?this.ineg():this},a.prototype.muln=function(h){return this.clone().imuln(h)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(h){var b=D(h);if(b.length===0)return new a(1);for(var y=this,x=0;x<b.length&&b[x]===0;x++,y=y.sqr());if(++x<b.length)for(var E=y.sqr();x<b.length;x++,E=E.sqr())b[x]!==0&&(y=y.mul(E));return y},a.prototype.iushln=function(h){r(typeof h=="number"&&h>=0);var b=h%26,y=(h-b)/26,x=67108863>>>26-b<<26-b,E;if(b!==0){var v=0;for(E=0;E<this.length;E++){var f=this.words[E]&x,A=(this.words[E]|0)-f<<b;this.words[E]=A|v,v=f>>>26-b}v&&(this.words[E]=v,this.length++)}if(y!==0){for(E=this.length-1;E>=0;E--)this.words[E+y]=this.words[E];for(E=0;E<y;E++)this.words[E]=0;this.length+=y}return this._strip()},a.prototype.ishln=function(h){return r(this.negative===0),this.iushln(h)},a.prototype.iushrn=function(h,b,y){r(typeof h=="number"&&h>=0);var x;b?x=(b-b%26)/26:x=0;var E=h%26,v=Math.min((h-E)/26,this.length),f=67108863^67108863>>>E<<E,A=y;if(x-=v,x=Math.max(0,x),A){for(var j=0;j<v;j++)A.words[j]=this.words[j];A.length=v}if(v!==0)if(this.length>v)for(this.length-=v,j=0;j<this.length;j++)this.words[j]=this.words[j+v];else this.words[0]=0,this.length=1;var P=0;for(j=this.length-1;j>=0&&(P!==0||j>=x);j--){var $=this.words[j]|0;this.words[j]=P<<26-E|$>>>E,P=$&f}return A&&P!==0&&(A.words[A.length++]=P),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(h,b,y){return r(this.negative===0),this.iushrn(h,b,y)},a.prototype.shln=function(h){return this.clone().ishln(h)},a.prototype.ushln=function(h){return this.clone().iushln(h)},a.prototype.shrn=function(h){return this.clone().ishrn(h)},a.prototype.ushrn=function(h){return this.clone().iushrn(h)},a.prototype.testn=function(h){r(typeof h=="number"&&h>=0);var b=h%26,y=(h-b)/26,x=1<<b;if(this.length<=y)return!1;var E=this.words[y];return!!(E&x)},a.prototype.imaskn=function(h){r(typeof h=="number"&&h>=0);var b=h%26,y=(h-b)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=y)return this;if(b!==0&&y++,this.length=Math.min(y,this.length),b!==0){var x=67108863^67108863>>>b<<b;this.words[this.length-1]&=x}return this._strip()},a.prototype.maskn=function(h){return this.clone().imaskn(h)},a.prototype.iaddn=function(h){return r(typeof h=="number"),r(h<67108864),h<0?this.isubn(-h):this.negative!==0?this.length===1&&(this.words[0]|0)<=h?(this.words[0]=h-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(h),this.negative=1,this):this._iaddn(h)},a.prototype._iaddn=function(h){this.words[0]+=h;for(var b=0;b<this.length&&this.words[b]>=67108864;b++)this.words[b]-=67108864,b===this.length-1?this.words[b+1]=1:this.words[b+1]++;return this.length=Math.max(this.length,b+1),this},a.prototype.isubn=function(h){if(r(typeof h=="number"),r(h<67108864),h<0)return this.iaddn(-h);if(this.negative!==0)return this.negative=0,this.iaddn(h),this.negative=1,this;if(this.words[0]-=h,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var b=0;b<this.length&&this.words[b]<0;b++)this.words[b]+=67108864,this.words[b+1]-=1;return this._strip()},a.prototype.addn=function(h){return this.clone().iaddn(h)},a.prototype.subn=function(h){return this.clone().isubn(h)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(h,b,y){var x=h.length+y,E;this._expand(x);var v,f=0;for(E=0;E<h.length;E++){v=(this.words[E+y]|0)+f;var A=(h.words[E]|0)*b;v-=A&67108863,f=(v>>26)-(A/67108864|0),this.words[E+y]=v&67108863}for(;E<this.length-y;E++)v=(this.words[E+y]|0)+f,f=v>>26,this.words[E+y]=v&67108863;if(f===0)return this._strip();for(r(f===-1),f=0,E=0;E<this.length;E++)v=-(this.words[E]|0)+f,f=v>>26,this.words[E]=v&67108863;return this.negative=1,this._strip()},a.prototype._wordDiv=function(h,b){var y=this.length-h.length,x=this.clone(),E=h,v=E.words[E.length-1]|0,f=this._countBits(v);y=26-f,y!==0&&(E=E.ushln(y),x.iushln(y),v=E.words[E.length-1]|0);var A=x.length-E.length,j;if(b!=="mod"){j=new a(null),j.length=A+1,j.words=new Array(j.length);for(var P=0;P<j.length;P++)j.words[P]=0}var $=x.clone()._ishlnsubmul(E,1,A);$.negative===0&&(x=$,j&&(j.words[A]=1));for(var K=A-1;K>=0;K--){var Q=(x.words[E.length+K]|0)*67108864+(x.words[E.length+K-1]|0);for(Q=Math.min(Q/v|0,67108863),x._ishlnsubmul(E,Q,K);x.negative!==0;)Q--,x.negative=0,x._ishlnsubmul(E,1,K),x.isZero()||(x.negative^=1);j&&(j.words[K]=Q)}return j&&j._strip(),x._strip(),b!=="div"&&y!==0&&x.iushrn(y),{div:j||null,mod:x}},a.prototype.divmod=function(h,b,y){if(r(!h.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var x,E,v;return this.negative!==0&&h.negative===0?(v=this.neg().divmod(h,b),b!=="mod"&&(x=v.div.neg()),b!=="div"&&(E=v.mod.neg(),y&&E.negative!==0&&E.iadd(h)),{div:x,mod:E}):this.negative===0&&h.negative!==0?(v=this.divmod(h.neg(),b),b!=="mod"&&(x=v.div.neg()),{div:x,mod:v.mod}):this.negative&h.negative?(v=this.neg().divmod(h.neg(),b),b!=="div"&&(E=v.mod.neg(),y&&E.negative!==0&&E.isub(h)),{div:v.div,mod:E}):h.length>this.length||this.cmp(h)<0?{div:new a(0),mod:this}:h.length===1?b==="div"?{div:this.divn(h.words[0]),mod:null}:b==="mod"?{div:null,mod:new a(this.modrn(h.words[0]))}:{div:this.divn(h.words[0]),mod:new a(this.modrn(h.words[0]))}:this._wordDiv(h,b)},a.prototype.div=function(h){return this.divmod(h,"div",!1).div},a.prototype.mod=function(h){return this.divmod(h,"mod",!1).mod},a.prototype.umod=function(h){return this.divmod(h,"mod",!0).mod},a.prototype.divRound=function(h){var b=this.divmod(h);if(b.mod.isZero())return b.div;var y=b.div.negative!==0?b.mod.isub(h):b.mod,x=h.ushrn(1),E=h.andln(1),v=y.cmp(x);return v<0||E===1&&v===0?b.div:b.div.negative!==0?b.div.isubn(1):b.div.iaddn(1)},a.prototype.modrn=function(h){var b=h<0;b&&(h=-h),r(h<=67108863);for(var y=(1<<26)%h,x=0,E=this.length-1;E>=0;E--)x=(y*x+(this.words[E]|0))%h;return b?-x:x},a.prototype.modn=function(h){return this.modrn(h)},a.prototype.idivn=function(h){var b=h<0;b&&(h=-h),r(h<=67108863);for(var y=0,x=this.length-1;x>=0;x--){var E=(this.words[x]|0)+y*67108864;this.words[x]=E/h|0,y=E%h}return this._strip(),b?this.ineg():this},a.prototype.divn=function(h){return this.clone().idivn(h)},a.prototype.egcd=function(h){r(h.negative===0),r(!h.isZero());var b=this,y=h.clone();b.negative!==0?b=b.umod(h):b=b.clone();for(var x=new a(1),E=new a(0),v=new a(0),f=new a(1),A=0;b.isEven()&&y.isEven();)b.iushrn(1),y.iushrn(1),++A;for(var j=y.clone(),P=b.clone();!b.isZero();){for(var $=0,K=1;!(b.words[0]&K)&&$<26;++$,K<<=1);if($>0)for(b.iushrn($);$-- >0;)(x.isOdd()||E.isOdd())&&(x.iadd(j),E.isub(P)),x.iushrn(1),E.iushrn(1);for(var Q=0,H=1;!(y.words[0]&H)&&Q<26;++Q,H<<=1);if(Q>0)for(y.iushrn(Q);Q-- >0;)(v.isOdd()||f.isOdd())&&(v.iadd(j),f.isub(P)),v.iushrn(1),f.iushrn(1);b.cmp(y)>=0?(b.isub(y),x.isub(v),E.isub(f)):(y.isub(b),v.isub(x),f.isub(E))}return{a:v,b:f,gcd:y.iushln(A)}},a.prototype._invmp=function(h){r(h.negative===0),r(!h.isZero());var b=this,y=h.clone();b.negative!==0?b=b.umod(h):b=b.clone();for(var x=new a(1),E=new a(0),v=y.clone();b.cmpn(1)>0&&y.cmpn(1)>0;){for(var f=0,A=1;!(b.words[0]&A)&&f<26;++f,A<<=1);if(f>0)for(b.iushrn(f);f-- >0;)x.isOdd()&&x.iadd(v),x.iushrn(1);for(var j=0,P=1;!(y.words[0]&P)&&j<26;++j,P<<=1);if(j>0)for(y.iushrn(j);j-- >0;)E.isOdd()&&E.iadd(v),E.iushrn(1);b.cmp(y)>=0?(b.isub(y),x.isub(E)):(y.isub(b),E.isub(x))}var $;return b.cmpn(1)===0?$=x:$=E,$.cmpn(0)<0&&$.iadd(h),$},a.prototype.gcd=function(h){if(this.isZero())return h.abs();if(h.isZero())return this.abs();var b=this.clone(),y=h.clone();b.negative=0,y.negative=0;for(var x=0;b.isEven()&&y.isEven();x++)b.iushrn(1),y.iushrn(1);do{for(;b.isEven();)b.iushrn(1);for(;y.isEven();)y.iushrn(1);var E=b.cmp(y);if(E<0){var v=b;b=y,y=v}else if(E===0||y.cmpn(1)===0)break;b.isub(y)}while(!0);return y.iushln(x)},a.prototype.invm=function(h){return this.egcd(h).a.umod(h)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(h){return this.words[0]&h},a.prototype.bincn=function(h){r(typeof h=="number");var b=h%26,y=(h-b)/26,x=1<<b;if(this.length<=y)return this._expand(y+1),this.words[y]|=x,this;for(var E=x,v=y;E!==0&&v<this.length;v++){var f=this.words[v]|0;f+=E,E=f>>>26,f&=67108863,this.words[v]=f}return E!==0&&(this.words[v]=E,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(h){var b=h<0;if(this.negative!==0&&!b)return-1;if(this.negative===0&&b)return 1;this._strip();var y;if(this.length>1)y=1;else{b&&(h=-h),r(h<=67108863,"Number is too big");var x=this.words[0]|0;y=x===h?0:x<h?-1:1}return this.negative!==0?-y|0:y},a.prototype.cmp=function(h){if(this.negative!==0&&h.negative===0)return-1;if(this.negative===0&&h.negative!==0)return 1;var b=this.ucmp(h);return this.negative!==0?-b|0:b},a.prototype.ucmp=function(h){if(this.length>h.length)return 1;if(this.length<h.length)return-1;for(var b=0,y=this.length-1;y>=0;y--){var x=this.words[y]|0,E=h.words[y]|0;if(x!==E){x<E?b=-1:x>E&&(b=1);break}}return b},a.prototype.gtn=function(h){return this.cmpn(h)===1},a.prototype.gt=function(h){return this.cmp(h)===1},a.prototype.gten=function(h){return this.cmpn(h)>=0},a.prototype.gte=function(h){return this.cmp(h)>=0},a.prototype.ltn=function(h){return this.cmpn(h)===-1},a.prototype.lt=function(h){return this.cmp(h)===-1},a.prototype.lten=function(h){return this.cmpn(h)<=0},a.prototype.lte=function(h){return this.cmp(h)<=0},a.prototype.eqn=function(h){return this.cmpn(h)===0},a.prototype.eq=function(h){return this.cmp(h)===0},a.red=function(h){return new w(h)},a.prototype.toRed=function(h){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),h.convertTo(this)._forceRed(h)},a.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(h){return this.red=h,this},a.prototype.forceRed=function(h){return r(!this.red,"Already a number in reduction context"),this._forceRed(h)},a.prototype.redAdd=function(h){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,h)},a.prototype.redIAdd=function(h){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,h)},a.prototype.redSub=function(h){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,h)},a.prototype.redISub=function(h){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,h)},a.prototype.redShl=function(h){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,h)},a.prototype.redMul=function(h){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.mul(this,h)},a.prototype.redIMul=function(h){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.imul(this,h)},a.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(h){return r(this.red&&!h.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,h)};var k={k256:null,p224:null,p192:null,p25519:null};function O(u,h){this.name=u,this.p=new a(h,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}O.prototype._tmp=function(){var h=new a(null);return h.words=new Array(Math.ceil(this.n/13)),h},O.prototype.ireduce=function(h){var b=h,y;do this.split(b,this.tmp),b=this.imulK(b),b=b.iadd(this.tmp),y=b.bitLength();while(y>this.n);var x=y<this.n?-1:b.ucmp(this.p);return x===0?(b.words[0]=0,b.length=1):x>0?b.isub(this.p):b.strip!==void 0?b.strip():b._strip(),b},O.prototype.split=function(h,b){h.iushrn(this.n,0,b)},O.prototype.imulK=function(h){return h.imul(this.k)};function z(){O.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(z,O),z.prototype.split=function(h,b){for(var y=4194303,x=Math.min(h.length,9),E=0;E<x;E++)b.words[E]=h.words[E];if(b.length=x,h.length<=9){h.words[0]=0,h.length=1;return}var v=h.words[9];for(b.words[b.length++]=v&y,E=10;E<h.length;E++){var f=h.words[E]|0;h.words[E-10]=(f&y)<<4|v>>>22,v=f}v>>>=22,h.words[E-10]=v,v===0&&h.length>10?h.length-=10:h.length-=9},z.prototype.imulK=function(h){h.words[h.length]=0,h.words[h.length+1]=0,h.length+=2;for(var b=0,y=0;y<h.length;y++){var x=h.words[y]|0;b+=x*977,h.words[y]=b&67108863,b=x*64+(b/67108864|0)}return h.words[h.length-1]===0&&(h.length--,h.words[h.length-1]===0&&h.length--),h};function _(){O.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(_,O);function F(){O.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(F,O);function R(){O.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(R,O),R.prototype.imulK=function(h){for(var b=0,y=0;y<h.length;y++){var x=(h.words[y]|0)*19+b,E=x&67108863;x>>>=26,h.words[y]=E,b=x}return b!==0&&(h.words[h.length++]=b),h},a._prime=function(h){if(k[h])return k[h];var b;if(h==="k256")b=new z;else if(h==="p224")b=new _;else if(h==="p192")b=new F;else if(h==="p25519")b=new R;else throw new Error("Unknown prime "+h);return k[h]=b,b};function w(u){if(typeof u=="string"){var h=a._prime(u);this.m=h.p,this.prime=h}else r(u.gtn(1),"modulus must be greater than 1"),this.m=u,this.prime=null}w.prototype._verify1=function(h){r(h.negative===0,"red works only with positives"),r(h.red,"red works only with red numbers")},w.prototype._verify2=function(h,b){r((h.negative|b.negative)===0,"red works only with positives"),r(h.red&&h.red===b.red,"red works only with red numbers")},w.prototype.imod=function(h){return this.prime?this.prime.ireduce(h)._forceRed(this):(p(h,h.umod(this.m)._forceRed(this)),h)},w.prototype.neg=function(h){return h.isZero()?h.clone():this.m.sub(h)._forceRed(this)},w.prototype.add=function(h,b){this._verify2(h,b);var y=h.add(b);return y.cmp(this.m)>=0&&y.isub(this.m),y._forceRed(this)},w.prototype.iadd=function(h,b){this._verify2(h,b);var y=h.iadd(b);return y.cmp(this.m)>=0&&y.isub(this.m),y},w.prototype.sub=function(h,b){this._verify2(h,b);var y=h.sub(b);return y.cmpn(0)<0&&y.iadd(this.m),y._forceRed(this)},w.prototype.isub=function(h,b){this._verify2(h,b);var y=h.isub(b);return y.cmpn(0)<0&&y.iadd(this.m),y},w.prototype.shl=function(h,b){return this._verify1(h),this.imod(h.ushln(b))},w.prototype.imul=function(h,b){return this._verify2(h,b),this.imod(h.imul(b))},w.prototype.mul=function(h,b){return this._verify2(h,b),this.imod(h.mul(b))},w.prototype.isqr=function(h){return this.imul(h,h.clone())},w.prototype.sqr=function(h){return this.mul(h,h)},w.prototype.sqrt=function(h){if(h.isZero())return h.clone();var b=this.m.andln(3);if(r(b%2===1),b===3){var y=this.m.add(new a(1)).iushrn(2);return this.pow(h,y)}for(var x=this.m.subn(1),E=0;!x.isZero()&&x.andln(1)===0;)E++,x.iushrn(1);r(!x.isZero());var v=new a(1).toRed(this),f=v.redNeg(),A=this.m.subn(1).iushrn(1),j=this.m.bitLength();for(j=new a(2*j*j).toRed(this);this.pow(j,A).cmp(f)!==0;)j.redIAdd(f);for(var P=this.pow(j,x),$=this.pow(h,x.addn(1).iushrn(1)),K=this.pow(h,x),Q=E;K.cmp(v)!==0;){for(var H=K,V=0;H.cmp(v)!==0;V++)H=H.redSqr();r(V<Q);var J=this.pow(P,new a(1).iushln(Q-V-1));$=$.redMul(J),P=J.redSqr(),K=K.redMul(P),Q=V}return $},w.prototype.invm=function(h){var b=h._invmp(this.m);return b.negative!==0?(b.negative=0,this.imod(b).redNeg()):this.imod(b)},w.prototype.pow=function(h,b){if(b.isZero())return new a(1).toRed(this);if(b.cmpn(1)===0)return h.clone();var y=4,x=new Array(1<<y);x[0]=new a(1).toRed(this),x[1]=h;for(var E=2;E<x.length;E++)x[E]=this.mul(x[E-1],h);var v=x[0],f=0,A=0,j=b.bitLength()%26;for(j===0&&(j=26),E=b.length-1;E>=0;E--){for(var P=b.words[E],$=j-1;$>=0;$--){var K=P>>$&1;if(v!==x[0]&&(v=this.sqr(v)),K===0&&f===0){A=0;continue}f<<=1,f|=K,A++,!(A!==y&&(E!==0||$!==0))&&(v=this.mul(v,x[f]),A=0,f=0)}j=26}return v},w.prototype.convertTo=function(h){var b=h.umod(this.m);return b===h?b.clone():b},w.prototype.convertFrom=function(h){var b=h.clone();return b.red=null,b},a.mont=function(h){return new o(h)};function o(u){w.call(this,u),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}i(o,w),o.prototype.convertTo=function(h){return this.imod(h.ushln(this.shift))},o.prototype.convertFrom=function(h){var b=this.imod(h.mul(this.rinv));return b.red=null,b},o.prototype.imul=function(h,b){if(h.isZero()||b.isZero())return h.words[0]=0,h.length=1,h;var y=h.imul(b),x=y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=y.isub(x).iushrn(this.shift),v=E;return E.cmp(this.m)>=0?v=E.isub(this.m):E.cmpn(0)<0&&(v=E.iadd(this.m)),v._forceRed(this)},o.prototype.mul=function(h,b){if(h.isZero()||b.isZero())return new a(0)._forceRed(this);var y=h.mul(b),x=y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=y.isub(x).iushrn(this.shift),v=E;return E.cmp(this.m)>=0?v=E.isub(this.m):E.cmpn(0)<0&&(v=E.iadd(this.m)),v._forceRed(this)},o.prototype.invm=function(h){var b=this.imod(h._invmp(this.m).mul(this.r2));return b._forceRed(this)}})(t,Kt)})(uL);var o8=uL.exports;const Na=$i(o8);var vA,Qz;function fL(){if(Qz)return vA;Qz=1;var t=o8,e=i8(),n=Tn.Buffer;function r(s){var c=s.modulus.byteLength(),l;do l=new t(e(c));while(l.cmp(s.modulus)>=0||!l.umod(s.prime1)||!l.umod(s.prime2));return l}function i(s){var c=r(s),l=c.toRed(t.mont(s.modulus)).redPow(new t(s.publicExponent)).fromRed();return{blinder:l,unblinder:c.invm(s.modulus)}}function a(s,c){var l=i(c),d=c.modulus.byteLength(),p=new t(s).mul(l.blinder).umod(c.modulus),m=p.toRed(t.mont(c.prime1)),g=p.toRed(t.mont(c.prime2)),M=c.coefficient,C=c.prime1,T=c.prime2,D=m.redPow(c.exponent1).fromRed(),S=g.redPow(c.exponent2).fromRed(),I=D.isub(S).imul(M).umod(C).imul(T);return S.iadd(I).imul(l.unblinder).umod(c.modulus).toArrayLike(n,"be",d)}return a.getr=r,vA=a,vA}var MA={};const Q4e="6.6.1",q4e={version:Q4e};var xA={},$m={exports:{}};$m.exports;var qz;function xl(){return qz||(qz=1,function(t){(function(e,n){function r(w,o){if(!w)throw new Error(o||"Assertion failed")}function i(w,o){w.super_=o;var u=function(){};u.prototype=o.prototype,w.prototype=new u,w.prototype.constructor=w}function a(w,o,u){if(a.isBN(w))return w;this.negative=0,this.words=null,this.length=0,this.red=null,w!==null&&((o==="le"||o==="be")&&(u=o,o=10),this._init(w||0,o||10,u||"be"))}typeof e=="object"?e.exports=a:n.BN=a,a.BN=a,a.wordSize=26;var s;try{typeof window<"u"&&typeof window.Buffer<"u"?s=window.Buffer:s=wt.Buffer}catch{}a.isBN=function(o){return o instanceof a?!0:o!==null&&typeof o=="object"&&o.constructor.wordSize===a.wordSize&&Array.isArray(o.words)},a.max=function(o,u){return o.cmp(u)>0?o:u},a.min=function(o,u){return o.cmp(u)<0?o:u},a.prototype._init=function(o,u,h){if(typeof o=="number")return this._initNumber(o,u,h);if(typeof o=="object")return this._initArray(o,u,h);u==="hex"&&(u=16),r(u===(u|0)&&u>=2&&u<=36),o=o.toString().replace(/\s+/g,"");var b=0;o[0]==="-"&&(b++,this.negative=1),b<o.length&&(u===16?this._parseHex(o,b,h):(this._parseBase(o,u,b),h==="le"&&this._initArray(this.toArray(),u,h)))},a.prototype._initNumber=function(o,u,h){o<0&&(this.negative=1,o=-o),o<67108864?(this.words=[o&67108863],this.length=1):o<4503599627370496?(this.words=[o&67108863,o/67108864&67108863],this.length=2):(r(o<9007199254740992),this.words=[o&67108863,o/67108864&67108863,1],this.length=3),h==="le"&&this._initArray(this.toArray(),u,h)},a.prototype._initArray=function(o,u,h){if(r(typeof o.length=="number"),o.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(o.length/3),this.words=new Array(this.length);for(var b=0;b<this.length;b++)this.words[b]=0;var y,x,E=0;if(h==="be")for(b=o.length-1,y=0;b>=0;b-=3)x=o[b]|o[b-1]<<8|o[b-2]<<16,this.words[y]|=x<<E&67108863,this.words[y+1]=x>>>26-E&67108863,E+=24,E>=26&&(E-=26,y++);else if(h==="le")for(b=0,y=0;b<o.length;b+=3)x=o[b]|o[b+1]<<8|o[b+2]<<16,this.words[y]|=x<<E&67108863,this.words[y+1]=x>>>26-E&67108863,E+=24,E>=26&&(E-=26,y++);return this.strip()};function c(w,o){var u=w.charCodeAt(o);return u>=65&&u<=70?u-55:u>=97&&u<=102?u-87:u-48&15}function l(w,o,u){var h=c(w,u);return u-1>=o&&(h|=c(w,u-1)<<4),h}a.prototype._parseHex=function(o,u,h){this.length=Math.ceil((o.length-u)/6),this.words=new Array(this.length);for(var b=0;b<this.length;b++)this.words[b]=0;var y=0,x=0,E;if(h==="be")for(b=o.length-1;b>=u;b-=2)E=l(o,u,b)<<y,this.words[x]|=E&67108863,y>=18?(y-=18,x+=1,this.words[x]|=E>>>26):y+=8;else{var v=o.length-u;for(b=v%2===0?u+1:u;b<o.length;b+=2)E=l(o,u,b)<<y,this.words[x]|=E&67108863,y>=18?(y-=18,x+=1,this.words[x]|=E>>>26):y+=8}this.strip()};function d(w,o,u,h){for(var b=0,y=Math.min(w.length,u),x=o;x<y;x++){var E=w.charCodeAt(x)-48;b*=h,E>=49?b+=E-49+10:E>=17?b+=E-17+10:b+=E}return b}a.prototype._parseBase=function(o,u,h){this.words=[0],this.length=1;for(var b=0,y=1;y<=67108863;y*=u)b++;b--,y=y/u|0;for(var x=o.length-h,E=x%b,v=Math.min(x,x-E)+h,f=0,A=h;A<v;A+=b)f=d(o,A,A+b,u),this.imuln(y),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f);if(E!==0){var j=1;for(f=d(o,A,o.length,u),A=0;A<E;A++)j*=u;this.imuln(j),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f)}this.strip()},a.prototype.copy=function(o){o.words=new Array(this.length);for(var u=0;u<this.length;u++)o.words[u]=this.words[u];o.length=this.length,o.negative=this.negative,o.red=this.red},a.prototype.clone=function(){var o=new a(null);return this.copy(o),o},a.prototype._expand=function(o){for(;this.length<o;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var p=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],m=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],g=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(o,u){o=o||10,u=u|0||1;var h;if(o===16||o==="hex"){h="";for(var b=0,y=0,x=0;x<this.length;x++){var E=this.words[x],v=((E<<b|y)&16777215).toString(16);y=E>>>24-b&16777215,b+=2,b>=26&&(b-=26,x--),y!==0||x!==this.length-1?h=p[6-v.length]+v+h:h=v+h}for(y!==0&&(h=y.toString(16)+h);h.length%u!==0;)h="0"+h;return this.negative!==0&&(h="-"+h),h}if(o===(o|0)&&o>=2&&o<=36){var f=m[o],A=g[o];h="";var j=this.clone();for(j.negative=0;!j.isZero();){var P=j.modn(A).toString(o);j=j.idivn(A),j.isZero()?h=P+h:h=p[f-P.length]+P+h}for(this.isZero()&&(h="0"+h);h.length%u!==0;)h="0"+h;return this.negative!==0&&(h="-"+h),h}r(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(o,u){return r(typeof s<"u"),this.toArrayLike(s,o,u)},a.prototype.toArray=function(o,u){return this.toArrayLike(Array,o,u)},a.prototype.toArrayLike=function(o,u,h){var b=this.byteLength(),y=h||Math.max(1,b);r(b<=y,"byte array longer than desired length"),r(y>0,"Requested array length <= 0"),this.strip();var x=u==="le",E=new o(y),v,f,A=this.clone();if(x){for(f=0;!A.isZero();f++)v=A.andln(255),A.iushrn(8),E[f]=v;for(;f<y;f++)E[f]=0}else{for(f=0;f<y-b;f++)E[f]=0;for(f=0;!A.isZero();f++)v=A.andln(255),A.iushrn(8),E[y-f-1]=v}return E},Math.clz32?a.prototype._countBits=function(o){return 32-Math.clz32(o)}:a.prototype._countBits=function(o){var u=o,h=0;return u>=4096&&(h+=13,u>>>=13),u>=64&&(h+=7,u>>>=7),u>=8&&(h+=4,u>>>=4),u>=2&&(h+=2,u>>>=2),h+u},a.prototype._zeroBits=function(o){if(o===0)return 26;var u=o,h=0;return u&8191||(h+=13,u>>>=13),u&127||(h+=7,u>>>=7),u&15||(h+=4,u>>>=4),u&3||(h+=2,u>>>=2),u&1||h++,h},a.prototype.bitLength=function(){var o=this.words[this.length-1],u=this._countBits(o);return(this.length-1)*26+u};function M(w){for(var o=new Array(w.bitLength()),u=0;u<o.length;u++){var h=u/26|0,b=u%26;o[u]=(w.words[h]&1<<b)>>>b}return o}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,u=0;u<this.length;u++){var h=this._zeroBits(this.words[u]);if(o+=h,h!==26)break}return o},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(o){return this.negative!==0?this.abs().inotn(o).iaddn(1):this.clone()},a.prototype.fromTwos=function(o){return this.testn(o-1)?this.notn(o).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(o){for(;this.length<o.length;)this.words[this.length++]=0;for(var u=0;u<o.length;u++)this.words[u]=this.words[u]|o.words[u];return this.strip()},a.prototype.ior=function(o){return r((this.negative|o.negative)===0),this.iuor(o)},a.prototype.or=function(o){return this.length>o.length?this.clone().ior(o):o.clone().ior(this)},a.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},a.prototype.iuand=function(o){var u;this.length>o.length?u=o:u=this;for(var h=0;h<u.length;h++)this.words[h]=this.words[h]&o.words[h];return this.length=u.length,this.strip()},a.prototype.iand=function(o){return r((this.negative|o.negative)===0),this.iuand(o)},a.prototype.and=function(o){return this.length>o.length?this.clone().iand(o):o.clone().iand(this)},a.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},a.prototype.iuxor=function(o){var u,h;this.length>o.length?(u=this,h=o):(u=o,h=this);for(var b=0;b<h.length;b++)this.words[b]=u.words[b]^h.words[b];if(this!==u)for(;b<u.length;b++)this.words[b]=u.words[b];return this.length=u.length,this.strip()},a.prototype.ixor=function(o){return r((this.negative|o.negative)===0),this.iuxor(o)},a.prototype.xor=function(o){return this.length>o.length?this.clone().ixor(o):o.clone().ixor(this)},a.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},a.prototype.inotn=function(o){r(typeof o=="number"&&o>=0);var u=Math.ceil(o/26)|0,h=o%26;this._expand(u),h>0&&u--;for(var b=0;b<u;b++)this.words[b]=~this.words[b]&67108863;return h>0&&(this.words[b]=~this.words[b]&67108863>>26-h),this.strip()},a.prototype.notn=function(o){return this.clone().inotn(o)},a.prototype.setn=function(o,u){r(typeof o=="number"&&o>=0);var h=o/26|0,b=o%26;return this._expand(h+1),u?this.words[h]=this.words[h]|1<<b:this.words[h]=this.words[h]&~(1<<b),this.strip()},a.prototype.iadd=function(o){var u;if(this.negative!==0&&o.negative===0)return this.negative=0,u=this.isub(o),this.negative^=1,this._normSign();if(this.negative===0&&o.negative!==0)return o.negative=0,u=this.isub(o),o.negative=1,u._normSign();var h,b;this.length>o.length?(h=this,b=o):(h=o,b=this);for(var y=0,x=0;x<b.length;x++)u=(h.words[x]|0)+(b.words[x]|0)+y,this.words[x]=u&67108863,y=u>>>26;for(;y!==0&&x<h.length;x++)u=(h.words[x]|0)+y,this.words[x]=u&67108863,y=u>>>26;if(this.length=h.length,y!==0)this.words[this.length]=y,this.length++;else if(h!==this)for(;x<h.length;x++)this.words[x]=h.words[x];return this},a.prototype.add=function(o){var u;return o.negative!==0&&this.negative===0?(o.negative=0,u=this.sub(o),o.negative^=1,u):o.negative===0&&this.negative!==0?(this.negative=0,u=o.sub(this),this.negative=1,u):this.length>o.length?this.clone().iadd(o):o.clone().iadd(this)},a.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var u=this.iadd(o);return o.negative=1,u._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var h=this.cmp(o);if(h===0)return this.negative=0,this.length=1,this.words[0]=0,this;var b,y;h>0?(b=this,y=o):(b=o,y=this);for(var x=0,E=0;E<y.length;E++)u=(b.words[E]|0)-(y.words[E]|0)+x,x=u>>26,this.words[E]=u&67108863;for(;x!==0&&E<b.length;E++)u=(b.words[E]|0)+x,x=u>>26,this.words[E]=u&67108863;if(x===0&&E<b.length&&b!==this)for(;E<b.length;E++)this.words[E]=b.words[E];return this.length=Math.max(this.length,E),b!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(o){return this.clone().isub(o)};function C(w,o,u){u.negative=o.negative^w.negative;var h=w.length+o.length|0;u.length=h,h=h-1|0;var b=w.words[0]|0,y=o.words[0]|0,x=b*y,E=x&67108863,v=x/67108864|0;u.words[0]=E;for(var f=1;f<h;f++){for(var A=v>>>26,j=v&67108863,P=Math.min(f,o.length-1),$=Math.max(0,f-w.length+1);$<=P;$++){var K=f-$|0;b=w.words[K]|0,y=o.words[$]|0,x=b*y+j,A+=x/67108864|0,j=x&67108863}u.words[f]=j|0,v=A|0}return v!==0?u.words[f]=v|0:u.length--,u.strip()}var T=function(o,u,h){var b=o.words,y=u.words,x=h.words,E=0,v,f,A,j=b[0]|0,P=j&8191,$=j>>>13,K=b[1]|0,Q=K&8191,H=K>>>13,V=b[2]|0,J=V&8191,ae=V>>>13,te=b[3]|0,Z=te&8191,ce=te>>>13,De=b[4]|0,pe=De&8191,Se=De>>>13,st=b[5]|0,ve=st&8191,Ne=st>>>13,lt=b[6]|0,Me=lt&8191,ye=lt>>>13,_e=b[7]|0,be=_e&8191,we=_e>>>13,yt=b[8]|0,q=yt&8191,U=yt>>>13,Y=b[9]|0,ie=Y&8191,ue=Y>>>13,Ce=y[0]|0,fe=Ce&8191,Ae=Ce>>>13,at=y[1]|0,Ee=at&8191,Be=at>>>13,Mt=y[2]|0,Oe=Mt&8191,Ge=Mt>>>13,Qt=y[3]|0,ze=Qt&8191,$e=Qt>>>13,rn=y[4]|0,We=rn&8191,qe=rn>>>13,bn=y[5]|0,Ye=bn&8191,Ze=bn>>>13,vn=y[6]|0,Pe=vn&8191,Ke=vn>>>13,X=y[7]|0,ee=X&8191,ne=X>>>13,W=y[8]|0,re=W&8191,de=W>>>13,Ie=y[9]|0,he=Ie&8191,xe=Ie>>>13;h.negative=o.negative^u.negative,h.length=19,v=Math.imul(P,fe),f=Math.imul(P,Ae),f=f+Math.imul($,fe)|0,A=Math.imul($,Ae);var it=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(it>>>26)|0,it&=67108863,v=Math.imul(Q,fe),f=Math.imul(Q,Ae),f=f+Math.imul(H,fe)|0,A=Math.imul(H,Ae),v=v+Math.imul(P,Ee)|0,f=f+Math.imul(P,Be)|0,f=f+Math.imul($,Ee)|0,A=A+Math.imul($,Be)|0;var Xe=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,v=Math.imul(J,fe),f=Math.imul(J,Ae),f=f+Math.imul(ae,fe)|0,A=Math.imul(ae,Ae),v=v+Math.imul(Q,Ee)|0,f=f+Math.imul(Q,Be)|0,f=f+Math.imul(H,Ee)|0,A=A+Math.imul(H,Be)|0,v=v+Math.imul(P,Oe)|0,f=f+Math.imul(P,Ge)|0,f=f+Math.imul($,Oe)|0,A=A+Math.imul($,Ge)|0;var $t=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+($t>>>26)|0,$t&=67108863,v=Math.imul(Z,fe),f=Math.imul(Z,Ae),f=f+Math.imul(ce,fe)|0,A=Math.imul(ce,Ae),v=v+Math.imul(J,Ee)|0,f=f+Math.imul(J,Be)|0,f=f+Math.imul(ae,Ee)|0,A=A+Math.imul(ae,Be)|0,v=v+Math.imul(Q,Oe)|0,f=f+Math.imul(Q,Ge)|0,f=f+Math.imul(H,Oe)|0,A=A+Math.imul(H,Ge)|0,v=v+Math.imul(P,ze)|0,f=f+Math.imul(P,$e)|0,f=f+Math.imul($,ze)|0,A=A+Math.imul($,$e)|0;var pt=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(pt>>>26)|0,pt&=67108863,v=Math.imul(pe,fe),f=Math.imul(pe,Ae),f=f+Math.imul(Se,fe)|0,A=Math.imul(Se,Ae),v=v+Math.imul(Z,Ee)|0,f=f+Math.imul(Z,Be)|0,f=f+Math.imul(ce,Ee)|0,A=A+Math.imul(ce,Be)|0,v=v+Math.imul(J,Oe)|0,f=f+Math.imul(J,Ge)|0,f=f+Math.imul(ae,Oe)|0,A=A+Math.imul(ae,Ge)|0,v=v+Math.imul(Q,ze)|0,f=f+Math.imul(Q,$e)|0,f=f+Math.imul(H,ze)|0,A=A+Math.imul(H,$e)|0,v=v+Math.imul(P,We)|0,f=f+Math.imul(P,qe)|0,f=f+Math.imul($,We)|0,A=A+Math.imul($,qe)|0;var tt=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(tt>>>26)|0,tt&=67108863,v=Math.imul(ve,fe),f=Math.imul(ve,Ae),f=f+Math.imul(Ne,fe)|0,A=Math.imul(Ne,Ae),v=v+Math.imul(pe,Ee)|0,f=f+Math.imul(pe,Be)|0,f=f+Math.imul(Se,Ee)|0,A=A+Math.imul(Se,Be)|0,v=v+Math.imul(Z,Oe)|0,f=f+Math.imul(Z,Ge)|0,f=f+Math.imul(ce,Oe)|0,A=A+Math.imul(ce,Ge)|0,v=v+Math.imul(J,ze)|0,f=f+Math.imul(J,$e)|0,f=f+Math.imul(ae,ze)|0,A=A+Math.imul(ae,$e)|0,v=v+Math.imul(Q,We)|0,f=f+Math.imul(Q,qe)|0,f=f+Math.imul(H,We)|0,A=A+Math.imul(H,qe)|0,v=v+Math.imul(P,Ye)|0,f=f+Math.imul(P,Ze)|0,f=f+Math.imul($,Ye)|0,A=A+Math.imul($,Ze)|0;var At=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(At>>>26)|0,At&=67108863,v=Math.imul(Me,fe),f=Math.imul(Me,Ae),f=f+Math.imul(ye,fe)|0,A=Math.imul(ye,Ae),v=v+Math.imul(ve,Ee)|0,f=f+Math.imul(ve,Be)|0,f=f+Math.imul(Ne,Ee)|0,A=A+Math.imul(Ne,Be)|0,v=v+Math.imul(pe,Oe)|0,f=f+Math.imul(pe,Ge)|0,f=f+Math.imul(Se,Oe)|0,A=A+Math.imul(Se,Ge)|0,v=v+Math.imul(Z,ze)|0,f=f+Math.imul(Z,$e)|0,f=f+Math.imul(ce,ze)|0,A=A+Math.imul(ce,$e)|0,v=v+Math.imul(J,We)|0,f=f+Math.imul(J,qe)|0,f=f+Math.imul(ae,We)|0,A=A+Math.imul(ae,qe)|0,v=v+Math.imul(Q,Ye)|0,f=f+Math.imul(Q,Ze)|0,f=f+Math.imul(H,Ye)|0,A=A+Math.imul(H,Ze)|0,v=v+Math.imul(P,Pe)|0,f=f+Math.imul(P,Ke)|0,f=f+Math.imul($,Pe)|0,A=A+Math.imul($,Ke)|0;var Rt=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,v=Math.imul(be,fe),f=Math.imul(be,Ae),f=f+Math.imul(we,fe)|0,A=Math.imul(we,Ae),v=v+Math.imul(Me,Ee)|0,f=f+Math.imul(Me,Be)|0,f=f+Math.imul(ye,Ee)|0,A=A+Math.imul(ye,Be)|0,v=v+Math.imul(ve,Oe)|0,f=f+Math.imul(ve,Ge)|0,f=f+Math.imul(Ne,Oe)|0,A=A+Math.imul(Ne,Ge)|0,v=v+Math.imul(pe,ze)|0,f=f+Math.imul(pe,$e)|0,f=f+Math.imul(Se,ze)|0,A=A+Math.imul(Se,$e)|0,v=v+Math.imul(Z,We)|0,f=f+Math.imul(Z,qe)|0,f=f+Math.imul(ce,We)|0,A=A+Math.imul(ce,qe)|0,v=v+Math.imul(J,Ye)|0,f=f+Math.imul(J,Ze)|0,f=f+Math.imul(ae,Ye)|0,A=A+Math.imul(ae,Ze)|0,v=v+Math.imul(Q,Pe)|0,f=f+Math.imul(Q,Ke)|0,f=f+Math.imul(H,Pe)|0,A=A+Math.imul(H,Ke)|0,v=v+Math.imul(P,ee)|0,f=f+Math.imul(P,ne)|0,f=f+Math.imul($,ee)|0,A=A+Math.imul($,ne)|0;var Ft=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,v=Math.imul(q,fe),f=Math.imul(q,Ae),f=f+Math.imul(U,fe)|0,A=Math.imul(U,Ae),v=v+Math.imul(be,Ee)|0,f=f+Math.imul(be,Be)|0,f=f+Math.imul(we,Ee)|0,A=A+Math.imul(we,Be)|0,v=v+Math.imul(Me,Oe)|0,f=f+Math.imul(Me,Ge)|0,f=f+Math.imul(ye,Oe)|0,A=A+Math.imul(ye,Ge)|0,v=v+Math.imul(ve,ze)|0,f=f+Math.imul(ve,$e)|0,f=f+Math.imul(Ne,ze)|0,A=A+Math.imul(Ne,$e)|0,v=v+Math.imul(pe,We)|0,f=f+Math.imul(pe,qe)|0,f=f+Math.imul(Se,We)|0,A=A+Math.imul(Se,qe)|0,v=v+Math.imul(Z,Ye)|0,f=f+Math.imul(Z,Ze)|0,f=f+Math.imul(ce,Ye)|0,A=A+Math.imul(ce,Ze)|0,v=v+Math.imul(J,Pe)|0,f=f+Math.imul(J,Ke)|0,f=f+Math.imul(ae,Pe)|0,A=A+Math.imul(ae,Ke)|0,v=v+Math.imul(Q,ee)|0,f=f+Math.imul(Q,ne)|0,f=f+Math.imul(H,ee)|0,A=A+Math.imul(H,ne)|0,v=v+Math.imul(P,re)|0,f=f+Math.imul(P,de)|0,f=f+Math.imul($,re)|0,A=A+Math.imul($,de)|0;var Bt=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,v=Math.imul(ie,fe),f=Math.imul(ie,Ae),f=f+Math.imul(ue,fe)|0,A=Math.imul(ue,Ae),v=v+Math.imul(q,Ee)|0,f=f+Math.imul(q,Be)|0,f=f+Math.imul(U,Ee)|0,A=A+Math.imul(U,Be)|0,v=v+Math.imul(be,Oe)|0,f=f+Math.imul(be,Ge)|0,f=f+Math.imul(we,Oe)|0,A=A+Math.imul(we,Ge)|0,v=v+Math.imul(Me,ze)|0,f=f+Math.imul(Me,$e)|0,f=f+Math.imul(ye,ze)|0,A=A+Math.imul(ye,$e)|0,v=v+Math.imul(ve,We)|0,f=f+Math.imul(ve,qe)|0,f=f+Math.imul(Ne,We)|0,A=A+Math.imul(Ne,qe)|0,v=v+Math.imul(pe,Ye)|0,f=f+Math.imul(pe,Ze)|0,f=f+Math.imul(Se,Ye)|0,A=A+Math.imul(Se,Ze)|0,v=v+Math.imul(Z,Pe)|0,f=f+Math.imul(Z,Ke)|0,f=f+Math.imul(ce,Pe)|0,A=A+Math.imul(ce,Ke)|0,v=v+Math.imul(J,ee)|0,f=f+Math.imul(J,ne)|0,f=f+Math.imul(ae,ee)|0,A=A+Math.imul(ae,ne)|0,v=v+Math.imul(Q,re)|0,f=f+Math.imul(Q,de)|0,f=f+Math.imul(H,re)|0,A=A+Math.imul(H,de)|0,v=v+Math.imul(P,he)|0,f=f+Math.imul(P,xe)|0,f=f+Math.imul($,he)|0,A=A+Math.imul($,xe)|0;var Ot=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,v=Math.imul(ie,Ee),f=Math.imul(ie,Be),f=f+Math.imul(ue,Ee)|0,A=Math.imul(ue,Be),v=v+Math.imul(q,Oe)|0,f=f+Math.imul(q,Ge)|0,f=f+Math.imul(U,Oe)|0,A=A+Math.imul(U,Ge)|0,v=v+Math.imul(be,ze)|0,f=f+Math.imul(be,$e)|0,f=f+Math.imul(we,ze)|0,A=A+Math.imul(we,$e)|0,v=v+Math.imul(Me,We)|0,f=f+Math.imul(Me,qe)|0,f=f+Math.imul(ye,We)|0,A=A+Math.imul(ye,qe)|0,v=v+Math.imul(ve,Ye)|0,f=f+Math.imul(ve,Ze)|0,f=f+Math.imul(Ne,Ye)|0,A=A+Math.imul(Ne,Ze)|0,v=v+Math.imul(pe,Pe)|0,f=f+Math.imul(pe,Ke)|0,f=f+Math.imul(Se,Pe)|0,A=A+Math.imul(Se,Ke)|0,v=v+Math.imul(Z,ee)|0,f=f+Math.imul(Z,ne)|0,f=f+Math.imul(ce,ee)|0,A=A+Math.imul(ce,ne)|0,v=v+Math.imul(J,re)|0,f=f+Math.imul(J,de)|0,f=f+Math.imul(ae,re)|0,A=A+Math.imul(ae,de)|0,v=v+Math.imul(Q,he)|0,f=f+Math.imul(Q,xe)|0,f=f+Math.imul(H,he)|0,A=A+Math.imul(H,xe)|0;var jt=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(jt>>>26)|0,jt&=67108863,v=Math.imul(ie,Oe),f=Math.imul(ie,Ge),f=f+Math.imul(ue,Oe)|0,A=Math.imul(ue,Ge),v=v+Math.imul(q,ze)|0,f=f+Math.imul(q,$e)|0,f=f+Math.imul(U,ze)|0,A=A+Math.imul(U,$e)|0,v=v+Math.imul(be,We)|0,f=f+Math.imul(be,qe)|0,f=f+Math.imul(we,We)|0,A=A+Math.imul(we,qe)|0,v=v+Math.imul(Me,Ye)|0,f=f+Math.imul(Me,Ze)|0,f=f+Math.imul(ye,Ye)|0,A=A+Math.imul(ye,Ze)|0,v=v+Math.imul(ve,Pe)|0,f=f+Math.imul(ve,Ke)|0,f=f+Math.imul(Ne,Pe)|0,A=A+Math.imul(Ne,Ke)|0,v=v+Math.imul(pe,ee)|0,f=f+Math.imul(pe,ne)|0,f=f+Math.imul(Se,ee)|0,A=A+Math.imul(Se,ne)|0,v=v+Math.imul(Z,re)|0,f=f+Math.imul(Z,de)|0,f=f+Math.imul(ce,re)|0,A=A+Math.imul(ce,de)|0,v=v+Math.imul(J,he)|0,f=f+Math.imul(J,xe)|0,f=f+Math.imul(ae,he)|0,A=A+Math.imul(ae,xe)|0;var gt=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(gt>>>26)|0,gt&=67108863,v=Math.imul(ie,ze),f=Math.imul(ie,$e),f=f+Math.imul(ue,ze)|0,A=Math.imul(ue,$e),v=v+Math.imul(q,We)|0,f=f+Math.imul(q,qe)|0,f=f+Math.imul(U,We)|0,A=A+Math.imul(U,qe)|0,v=v+Math.imul(be,Ye)|0,f=f+Math.imul(be,Ze)|0,f=f+Math.imul(we,Ye)|0,A=A+Math.imul(we,Ze)|0,v=v+Math.imul(Me,Pe)|0,f=f+Math.imul(Me,Ke)|0,f=f+Math.imul(ye,Pe)|0,A=A+Math.imul(ye,Ke)|0,v=v+Math.imul(ve,ee)|0,f=f+Math.imul(ve,ne)|0,f=f+Math.imul(Ne,ee)|0,A=A+Math.imul(Ne,ne)|0,v=v+Math.imul(pe,re)|0,f=f+Math.imul(pe,de)|0,f=f+Math.imul(Se,re)|0,A=A+Math.imul(Se,de)|0,v=v+Math.imul(Z,he)|0,f=f+Math.imul(Z,xe)|0,f=f+Math.imul(ce,he)|0,A=A+Math.imul(ce,xe)|0;var Et=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(Et>>>26)|0,Et&=67108863,v=Math.imul(ie,We),f=Math.imul(ie,qe),f=f+Math.imul(ue,We)|0,A=Math.imul(ue,qe),v=v+Math.imul(q,Ye)|0,f=f+Math.imul(q,Ze)|0,f=f+Math.imul(U,Ye)|0,A=A+Math.imul(U,Ze)|0,v=v+Math.imul(be,Pe)|0,f=f+Math.imul(be,Ke)|0,f=f+Math.imul(we,Pe)|0,A=A+Math.imul(we,Ke)|0,v=v+Math.imul(Me,ee)|0,f=f+Math.imul(Me,ne)|0,f=f+Math.imul(ye,ee)|0,A=A+Math.imul(ye,ne)|0,v=v+Math.imul(ve,re)|0,f=f+Math.imul(ve,de)|0,f=f+Math.imul(Ne,re)|0,A=A+Math.imul(Ne,de)|0,v=v+Math.imul(pe,he)|0,f=f+Math.imul(pe,xe)|0,f=f+Math.imul(Se,he)|0,A=A+Math.imul(Se,xe)|0;var ht=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(ht>>>26)|0,ht&=67108863,v=Math.imul(ie,Ye),f=Math.imul(ie,Ze),f=f+Math.imul(ue,Ye)|0,A=Math.imul(ue,Ze),v=v+Math.imul(q,Pe)|0,f=f+Math.imul(q,Ke)|0,f=f+Math.imul(U,Pe)|0,A=A+Math.imul(U,Ke)|0,v=v+Math.imul(be,ee)|0,f=f+Math.imul(be,ne)|0,f=f+Math.imul(we,ee)|0,A=A+Math.imul(we,ne)|0,v=v+Math.imul(Me,re)|0,f=f+Math.imul(Me,de)|0,f=f+Math.imul(ye,re)|0,A=A+Math.imul(ye,de)|0,v=v+Math.imul(ve,he)|0,f=f+Math.imul(ve,xe)|0,f=f+Math.imul(Ne,he)|0,A=A+Math.imul(Ne,xe)|0;var vt=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(vt>>>26)|0,vt&=67108863,v=Math.imul(ie,Pe),f=Math.imul(ie,Ke),f=f+Math.imul(ue,Pe)|0,A=Math.imul(ue,Ke),v=v+Math.imul(q,ee)|0,f=f+Math.imul(q,ne)|0,f=f+Math.imul(U,ee)|0,A=A+Math.imul(U,ne)|0,v=v+Math.imul(be,re)|0,f=f+Math.imul(be,de)|0,f=f+Math.imul(we,re)|0,A=A+Math.imul(we,de)|0,v=v+Math.imul(Me,he)|0,f=f+Math.imul(Me,xe)|0,f=f+Math.imul(ye,he)|0,A=A+Math.imul(ye,xe)|0;var xt=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(xt>>>26)|0,xt&=67108863,v=Math.imul(ie,ee),f=Math.imul(ie,ne),f=f+Math.imul(ue,ee)|0,A=Math.imul(ue,ne),v=v+Math.imul(q,re)|0,f=f+Math.imul(q,de)|0,f=f+Math.imul(U,re)|0,A=A+Math.imul(U,de)|0,v=v+Math.imul(be,he)|0,f=f+Math.imul(be,xe)|0,f=f+Math.imul(we,he)|0,A=A+Math.imul(we,xe)|0;var ut=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(ut>>>26)|0,ut&=67108863,v=Math.imul(ie,re),f=Math.imul(ie,de),f=f+Math.imul(ue,re)|0,A=Math.imul(ue,de),v=v+Math.imul(q,he)|0,f=f+Math.imul(q,xe)|0,f=f+Math.imul(U,he)|0,A=A+Math.imul(U,xe)|0;var Fe=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(Fe>>>26)|0,Fe&=67108863,v=Math.imul(ie,he),f=Math.imul(ie,xe),f=f+Math.imul(ue,he)|0,A=Math.imul(ue,xe);var Re=(E+v|0)+((f&8191)<<13)|0;return E=(A+(f>>>13)|0)+(Re>>>26)|0,Re&=67108863,x[0]=it,x[1]=Xe,x[2]=$t,x[3]=pt,x[4]=tt,x[5]=At,x[6]=Rt,x[7]=Ft,x[8]=Bt,x[9]=Ot,x[10]=jt,x[11]=gt,x[12]=Et,x[13]=ht,x[14]=vt,x[15]=xt,x[16]=ut,x[17]=Fe,x[18]=Re,E!==0&&(x[19]=E,h.length++),h};Math.imul||(T=C);function D(w,o,u){u.negative=o.negative^w.negative,u.length=w.length+o.length;for(var h=0,b=0,y=0;y<u.length-1;y++){var x=b;b=0;for(var E=h&67108863,v=Math.min(y,o.length-1),f=Math.max(0,y-w.length+1);f<=v;f++){var A=y-f,j=w.words[A]|0,P=o.words[f]|0,$=j*P,K=$&67108863;x=x+($/67108864|0)|0,K=K+E|0,E=K&67108863,x=x+(K>>>26)|0,b+=x>>>26,x&=67108863}u.words[y]=E,h=x,x=b}return h!==0?u.words[y]=h:u.length--,u.strip()}function S(w,o,u){var h=new I;return h.mulp(w,o,u)}a.prototype.mulTo=function(o,u){var h,b=this.length+o.length;return this.length===10&&o.length===10?h=T(this,o,u):b<63?h=C(this,o,u):b<1024?h=D(this,o,u):h=S(this,o,u),h};function I(w,o){this.x=w,this.y=o}I.prototype.makeRBT=function(o){for(var u=new Array(o),h=a.prototype._countBits(o)-1,b=0;b<o;b++)u[b]=this.revBin(b,h,o);return u},I.prototype.revBin=function(o,u,h){if(o===0||o===h-1)return o;for(var b=0,y=0;y<u;y++)b|=(o&1)<<u-y-1,o>>=1;return b},I.prototype.permute=function(o,u,h,b,y,x){for(var E=0;E<x;E++)b[E]=u[o[E]],y[E]=h[o[E]]},I.prototype.transform=function(o,u,h,b,y,x){this.permute(x,o,u,h,b,y);for(var E=1;E<y;E<<=1)for(var v=E<<1,f=Math.cos(2*Math.PI/v),A=Math.sin(2*Math.PI/v),j=0;j<y;j+=v)for(var P=f,$=A,K=0;K<E;K++){var Q=h[j+K],H=b[j+K],V=h[j+K+E],J=b[j+K+E],ae=P*V-$*J;J=P*J+$*V,V=ae,h[j+K]=Q+V,b[j+K]=H+J,h[j+K+E]=Q-V,b[j+K+E]=H-J,K!==v&&(ae=f*P-A*$,$=f*$+A*P,P=ae)}},I.prototype.guessLen13b=function(o,u){var h=Math.max(u,o)|1,b=h&1,y=0;for(h=h/2|0;h;h=h>>>1)y++;return 1<<y+1+b},I.prototype.conjugate=function(o,u,h){if(!(h<=1))for(var b=0;b<h/2;b++){var y=o[b];o[b]=o[h-b-1],o[h-b-1]=y,y=u[b],u[b]=-u[h-b-1],u[h-b-1]=-y}},I.prototype.normalize13b=function(o,u){for(var h=0,b=0;b<u/2;b++){var y=Math.round(o[2*b+1]/u)*8192+Math.round(o[2*b]/u)+h;o[b]=y&67108863,y<67108864?h=0:h=y/67108864|0}return o},I.prototype.convert13b=function(o,u,h,b){for(var y=0,x=0;x<u;x++)y=y+(o[x]|0),h[2*x]=y&8191,y=y>>>13,h[2*x+1]=y&8191,y=y>>>13;for(x=2*u;x<b;++x)h[x]=0;r(y===0),r((y&-8192)===0)},I.prototype.stub=function(o){for(var u=new Array(o),h=0;h<o;h++)u[h]=0;return u},I.prototype.mulp=function(o,u,h){var b=2*this.guessLen13b(o.length,u.length),y=this.makeRBT(b),x=this.stub(b),E=new Array(b),v=new Array(b),f=new Array(b),A=new Array(b),j=new Array(b),P=new Array(b),$=h.words;$.length=b,this.convert13b(o.words,o.length,E,b),this.convert13b(u.words,u.length,A,b),this.transform(E,x,v,f,b,y),this.transform(A,x,j,P,b,y);for(var K=0;K<b;K++){var Q=v[K]*j[K]-f[K]*P[K];f[K]=v[K]*P[K]+f[K]*j[K],v[K]=Q}return this.conjugate(v,f,b),this.transform(v,f,$,x,b,y),this.conjugate($,x,b),this.normalize13b($,b),h.negative=o.negative^u.negative,h.length=o.length+u.length,h.strip()},a.prototype.mul=function(o){var u=new a(null);return u.words=new Array(this.length+o.length),this.mulTo(o,u)},a.prototype.mulf=function(o){var u=new a(null);return u.words=new Array(this.length+o.length),S(this,o,u)},a.prototype.imul=function(o){return this.clone().mulTo(o,this)},a.prototype.imuln=function(o){r(typeof o=="number"),r(o<67108864);for(var u=0,h=0;h<this.length;h++){var b=(this.words[h]|0)*o,y=(b&67108863)+(u&67108863);u>>=26,u+=b/67108864|0,u+=y>>>26,this.words[h]=y&67108863}return u!==0&&(this.words[h]=u,this.length++),this},a.prototype.muln=function(o){return this.clone().imuln(o)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(o){var u=M(o);if(u.length===0)return new a(1);for(var h=this,b=0;b<u.length&&u[b]===0;b++,h=h.sqr());if(++b<u.length)for(var y=h.sqr();b<u.length;b++,y=y.sqr())u[b]!==0&&(h=h.mul(y));return h},a.prototype.iushln=function(o){r(typeof o=="number"&&o>=0);var u=o%26,h=(o-u)/26,b=67108863>>>26-u<<26-u,y;if(u!==0){var x=0;for(y=0;y<this.length;y++){var E=this.words[y]&b,v=(this.words[y]|0)-E<<u;this.words[y]=v|x,x=E>>>26-u}x&&(this.words[y]=x,this.length++)}if(h!==0){for(y=this.length-1;y>=0;y--)this.words[y+h]=this.words[y];for(y=0;y<h;y++)this.words[y]=0;this.length+=h}return this.strip()},a.prototype.ishln=function(o){return r(this.negative===0),this.iushln(o)},a.prototype.iushrn=function(o,u,h){r(typeof o=="number"&&o>=0);var b;u?b=(u-u%26)/26:b=0;var y=o%26,x=Math.min((o-y)/26,this.length),E=67108863^67108863>>>y<<y,v=h;if(b-=x,b=Math.max(0,b),v){for(var f=0;f<x;f++)v.words[f]=this.words[f];v.length=x}if(x!==0)if(this.length>x)for(this.length-=x,f=0;f<this.length;f++)this.words[f]=this.words[f+x];else this.words[0]=0,this.length=1;var A=0;for(f=this.length-1;f>=0&&(A!==0||f>=b);f--){var j=this.words[f]|0;this.words[f]=A<<26-y|j>>>y,A=j&E}return v&&A!==0&&(v.words[v.length++]=A),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(o,u,h){return r(this.negative===0),this.iushrn(o,u,h)},a.prototype.shln=function(o){return this.clone().ishln(o)},a.prototype.ushln=function(o){return this.clone().iushln(o)},a.prototype.shrn=function(o){return this.clone().ishrn(o)},a.prototype.ushrn=function(o){return this.clone().iushrn(o)},a.prototype.testn=function(o){r(typeof o=="number"&&o>=0);var u=o%26,h=(o-u)/26,b=1<<u;if(this.length<=h)return!1;var y=this.words[h];return!!(y&b)},a.prototype.imaskn=function(o){r(typeof o=="number"&&o>=0);var u=o%26,h=(o-u)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=h)return this;if(u!==0&&h++,this.length=Math.min(h,this.length),u!==0){var b=67108863^67108863>>>u<<u;this.words[this.length-1]&=b}return this.strip()},a.prototype.maskn=function(o){return this.clone().imaskn(o)},a.prototype.iaddn=function(o){return r(typeof o=="number"),r(o<67108864),o<0?this.isubn(-o):this.negative!==0?this.length===1&&(this.words[0]|0)<o?(this.words[0]=o-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(o),this.negative=1,this):this._iaddn(o)},a.prototype._iaddn=function(o){this.words[0]+=o;for(var u=0;u<this.length&&this.words[u]>=67108864;u++)this.words[u]-=67108864,u===this.length-1?this.words[u+1]=1:this.words[u+1]++;return this.length=Math.max(this.length,u+1),this},a.prototype.isubn=function(o){if(r(typeof o=="number"),r(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var u=0;u<this.length&&this.words[u]<0;u++)this.words[u]+=67108864,this.words[u+1]-=1;return this.strip()},a.prototype.addn=function(o){return this.clone().iaddn(o)},a.prototype.subn=function(o){return this.clone().isubn(o)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(o,u,h){var b=o.length+h,y;this._expand(b);var x,E=0;for(y=0;y<o.length;y++){x=(this.words[y+h]|0)+E;var v=(o.words[y]|0)*u;x-=v&67108863,E=(x>>26)-(v/67108864|0),this.words[y+h]=x&67108863}for(;y<this.length-h;y++)x=(this.words[y+h]|0)+E,E=x>>26,this.words[y+h]=x&67108863;if(E===0)return this.strip();for(r(E===-1),E=0,y=0;y<this.length;y++)x=-(this.words[y]|0)+E,E=x>>26,this.words[y]=x&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(o,u){var h=this.length-o.length,b=this.clone(),y=o,x=y.words[y.length-1]|0,E=this._countBits(x);h=26-E,h!==0&&(y=y.ushln(h),b.iushln(h),x=y.words[y.length-1]|0);var v=b.length-y.length,f;if(u!=="mod"){f=new a(null),f.length=v+1,f.words=new Array(f.length);for(var A=0;A<f.length;A++)f.words[A]=0}var j=b.clone()._ishlnsubmul(y,1,v);j.negative===0&&(b=j,f&&(f.words[v]=1));for(var P=v-1;P>=0;P--){var $=(b.words[y.length+P]|0)*67108864+(b.words[y.length+P-1]|0);for($=Math.min($/x|0,67108863),b._ishlnsubmul(y,$,P);b.negative!==0;)$--,b.negative=0,b._ishlnsubmul(y,1,P),b.isZero()||(b.negative^=1);f&&(f.words[P]=$)}return f&&f.strip(),b.strip(),u!=="div"&&h!==0&&b.iushrn(h),{div:f||null,mod:b}},a.prototype.divmod=function(o,u,h){if(r(!o.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var b,y,x;return this.negative!==0&&o.negative===0?(x=this.neg().divmod(o,u),u!=="mod"&&(b=x.div.neg()),u!=="div"&&(y=x.mod.neg(),h&&y.negative!==0&&y.iadd(o)),{div:b,mod:y}):this.negative===0&&o.negative!==0?(x=this.divmod(o.neg(),u),u!=="mod"&&(b=x.div.neg()),{div:b,mod:x.mod}):this.negative&o.negative?(x=this.neg().divmod(o.neg(),u),u!=="div"&&(y=x.mod.neg(),h&&y.negative!==0&&y.isub(o)),{div:x.div,mod:y}):o.length>this.length||this.cmp(o)<0?{div:new a(0),mod:this}:o.length===1?u==="div"?{div:this.divn(o.words[0]),mod:null}:u==="mod"?{div:null,mod:new a(this.modn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new a(this.modn(o.words[0]))}:this._wordDiv(o,u)},a.prototype.div=function(o){return this.divmod(o,"div",!1).div},a.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},a.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},a.prototype.divRound=function(o){var u=this.divmod(o);if(u.mod.isZero())return u.div;var h=u.div.negative!==0?u.mod.isub(o):u.mod,b=o.ushrn(1),y=o.andln(1),x=h.cmp(b);return x<0||y===1&&x===0?u.div:u.div.negative!==0?u.div.isubn(1):u.div.iaddn(1)},a.prototype.modn=function(o){r(o<=67108863);for(var u=(1<<26)%o,h=0,b=this.length-1;b>=0;b--)h=(u*h+(this.words[b]|0))%o;return h},a.prototype.idivn=function(o){r(o<=67108863);for(var u=0,h=this.length-1;h>=0;h--){var b=(this.words[h]|0)+u*67108864;this.words[h]=b/o|0,u=b%o}return this.strip()},a.prototype.divn=function(o){return this.clone().idivn(o)},a.prototype.egcd=function(o){r(o.negative===0),r(!o.isZero());var u=this,h=o.clone();u.negative!==0?u=u.umod(o):u=u.clone();for(var b=new a(1),y=new a(0),x=new a(0),E=new a(1),v=0;u.isEven()&&h.isEven();)u.iushrn(1),h.iushrn(1),++v;for(var f=h.clone(),A=u.clone();!u.isZero();){for(var j=0,P=1;!(u.words[0]&P)&&j<26;++j,P<<=1);if(j>0)for(u.iushrn(j);j-- >0;)(b.isOdd()||y.isOdd())&&(b.iadd(f),y.isub(A)),b.iushrn(1),y.iushrn(1);for(var $=0,K=1;!(h.words[0]&K)&&$<26;++$,K<<=1);if($>0)for(h.iushrn($);$-- >0;)(x.isOdd()||E.isOdd())&&(x.iadd(f),E.isub(A)),x.iushrn(1),E.iushrn(1);u.cmp(h)>=0?(u.isub(h),b.isub(x),y.isub(E)):(h.isub(u),x.isub(b),E.isub(y))}return{a:x,b:E,gcd:h.iushln(v)}},a.prototype._invmp=function(o){r(o.negative===0),r(!o.isZero());var u=this,h=o.clone();u.negative!==0?u=u.umod(o):u=u.clone();for(var b=new a(1),y=new a(0),x=h.clone();u.cmpn(1)>0&&h.cmpn(1)>0;){for(var E=0,v=1;!(u.words[0]&v)&&E<26;++E,v<<=1);if(E>0)for(u.iushrn(E);E-- >0;)b.isOdd()&&b.iadd(x),b.iushrn(1);for(var f=0,A=1;!(h.words[0]&A)&&f<26;++f,A<<=1);if(f>0)for(h.iushrn(f);f-- >0;)y.isOdd()&&y.iadd(x),y.iushrn(1);u.cmp(h)>=0?(u.isub(h),b.isub(y)):(h.isub(u),y.isub(b))}var j;return u.cmpn(1)===0?j=b:j=y,j.cmpn(0)<0&&j.iadd(o),j},a.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var u=this.clone(),h=o.clone();u.negative=0,h.negative=0;for(var b=0;u.isEven()&&h.isEven();b++)u.iushrn(1),h.iushrn(1);do{for(;u.isEven();)u.iushrn(1);for(;h.isEven();)h.iushrn(1);var y=u.cmp(h);if(y<0){var x=u;u=h,h=x}else if(y===0||h.cmpn(1)===0)break;u.isub(h)}while(!0);return h.iushln(b)},a.prototype.invm=function(o){return this.egcd(o).a.umod(o)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(o){return this.words[0]&o},a.prototype.bincn=function(o){r(typeof o=="number");var u=o%26,h=(o-u)/26,b=1<<u;if(this.length<=h)return this._expand(h+1),this.words[h]|=b,this;for(var y=b,x=h;y!==0&&x<this.length;x++){var E=this.words[x]|0;E+=y,y=E>>>26,E&=67108863,this.words[x]=E}return y!==0&&(this.words[x]=y,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(o){var u=o<0;if(this.negative!==0&&!u)return-1;if(this.negative===0&&u)return 1;this.strip();var h;if(this.length>1)h=1;else{u&&(o=-o),r(o<=67108863,"Number is too big");var b=this.words[0]|0;h=b===o?0:b<o?-1:1}return this.negative!==0?-h|0:h},a.prototype.cmp=function(o){if(this.negative!==0&&o.negative===0)return-1;if(this.negative===0&&o.negative!==0)return 1;var u=this.ucmp(o);return this.negative!==0?-u|0:u},a.prototype.ucmp=function(o){if(this.length>o.length)return 1;if(this.length<o.length)return-1;for(var u=0,h=this.length-1;h>=0;h--){var b=this.words[h]|0,y=o.words[h]|0;if(b!==y){b<y?u=-1:b>y&&(u=1);break}}return u},a.prototype.gtn=function(o){return this.cmpn(o)===1},a.prototype.gt=function(o){return this.cmp(o)===1},a.prototype.gten=function(o){return this.cmpn(o)>=0},a.prototype.gte=function(o){return this.cmp(o)>=0},a.prototype.ltn=function(o){return this.cmpn(o)===-1},a.prototype.lt=function(o){return this.cmp(o)===-1},a.prototype.lten=function(o){return this.cmpn(o)<=0},a.prototype.lte=function(o){return this.cmp(o)<=0},a.prototype.eqn=function(o){return this.cmpn(o)===0},a.prototype.eq=function(o){return this.cmp(o)===0},a.red=function(o){return new F(o)},a.prototype.toRed=function(o){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},a.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(o){return this.red=o,this},a.prototype.forceRed=function(o){return r(!this.red,"Already a number in reduction context"),this._forceRed(o)},a.prototype.redAdd=function(o){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},a.prototype.redIAdd=function(o){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},a.prototype.redSub=function(o){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},a.prototype.redISub=function(o){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},a.prototype.redShl=function(o){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},a.prototype.redMul=function(o){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},a.prototype.redIMul=function(o){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},a.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(o){return r(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var N={k256:null,p224:null,p192:null,p25519:null};function B(w,o){this.name=w,this.p=new a(o,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}B.prototype._tmp=function(){var o=new a(null);return o.words=new Array(Math.ceil(this.n/13)),o},B.prototype.ireduce=function(o){var u=o,h;do this.split(u,this.tmp),u=this.imulK(u),u=u.iadd(this.tmp),h=u.bitLength();while(h>this.n);var b=h<this.n?-1:u.ucmp(this.p);return b===0?(u.words[0]=0,u.length=1):b>0?u.isub(this.p):u.strip!==void 0?u.strip():u._strip(),u},B.prototype.split=function(o,u){o.iushrn(this.n,0,u)},B.prototype.imulK=function(o){return o.imul(this.k)};function k(){B.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(k,B),k.prototype.split=function(o,u){for(var h=4194303,b=Math.min(o.length,9),y=0;y<b;y++)u.words[y]=o.words[y];if(u.length=b,o.length<=9){o.words[0]=0,o.length=1;return}var x=o.words[9];for(u.words[u.length++]=x&h,y=10;y<o.length;y++){var E=o.words[y]|0;o.words[y-10]=(E&h)<<4|x>>>22,x=E}x>>>=22,o.words[y-10]=x,x===0&&o.length>10?o.length-=10:o.length-=9},k.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var u=0,h=0;h<o.length;h++){var b=o.words[h]|0;u+=b*977,o.words[h]=u&67108863,u=b*64+(u/67108864|0)}return o.words[o.length-1]===0&&(o.length--,o.words[o.length-1]===0&&o.length--),o};function O(){B.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(O,B);function z(){B.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(z,B);function _(){B.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(_,B),_.prototype.imulK=function(o){for(var u=0,h=0;h<o.length;h++){var b=(o.words[h]|0)*19+u,y=b&67108863;b>>>=26,o.words[h]=y,u=b}return u!==0&&(o.words[o.length++]=u),o},a._prime=function(o){if(N[o])return N[o];var u;if(o==="k256")u=new k;else if(o==="p224")u=new O;else if(o==="p192")u=new z;else if(o==="p25519")u=new _;else throw new Error("Unknown prime "+o);return N[o]=u,u};function F(w){if(typeof w=="string"){var o=a._prime(w);this.m=o.p,this.prime=o}else r(w.gtn(1),"modulus must be greater than 1"),this.m=w,this.prime=null}F.prototype._verify1=function(o){r(o.negative===0,"red works only with positives"),r(o.red,"red works only with red numbers")},F.prototype._verify2=function(o,u){r((o.negative|u.negative)===0,"red works only with positives"),r(o.red&&o.red===u.red,"red works only with red numbers")},F.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):o.umod(this.m)._forceRed(this)},F.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},F.prototype.add=function(o,u){this._verify2(o,u);var h=o.add(u);return h.cmp(this.m)>=0&&h.isub(this.m),h._forceRed(this)},F.prototype.iadd=function(o,u){this._verify2(o,u);var h=o.iadd(u);return h.cmp(this.m)>=0&&h.isub(this.m),h},F.prototype.sub=function(o,u){this._verify2(o,u);var h=o.sub(u);return h.cmpn(0)<0&&h.iadd(this.m),h._forceRed(this)},F.prototype.isub=function(o,u){this._verify2(o,u);var h=o.isub(u);return h.cmpn(0)<0&&h.iadd(this.m),h},F.prototype.shl=function(o,u){return this._verify1(o),this.imod(o.ushln(u))},F.prototype.imul=function(o,u){return this._verify2(o,u),this.imod(o.imul(u))},F.prototype.mul=function(o,u){return this._verify2(o,u),this.imod(o.mul(u))},F.prototype.isqr=function(o){return this.imul(o,o.clone())},F.prototype.sqr=function(o){return this.mul(o,o)},F.prototype.sqrt=function(o){if(o.isZero())return o.clone();var u=this.m.andln(3);if(r(u%2===1),u===3){var h=this.m.add(new a(1)).iushrn(2);return this.pow(o,h)}for(var b=this.m.subn(1),y=0;!b.isZero()&&b.andln(1)===0;)y++,b.iushrn(1);r(!b.isZero());var x=new a(1).toRed(this),E=x.redNeg(),v=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new a(2*f*f).toRed(this);this.pow(f,v).cmp(E)!==0;)f.redIAdd(E);for(var A=this.pow(f,b),j=this.pow(o,b.addn(1).iushrn(1)),P=this.pow(o,b),$=y;P.cmp(x)!==0;){for(var K=P,Q=0;K.cmp(x)!==0;Q++)K=K.redSqr();r(Q<$);var H=this.pow(A,new a(1).iushln($-Q-1));j=j.redMul(H),A=H.redSqr(),P=P.redMul(A),$=Q}return j},F.prototype.invm=function(o){var u=o._invmp(this.m);return u.negative!==0?(u.negative=0,this.imod(u).redNeg()):this.imod(u)},F.prototype.pow=function(o,u){if(u.isZero())return new a(1).toRed(this);if(u.cmpn(1)===0)return o.clone();var h=4,b=new Array(1<<h);b[0]=new a(1).toRed(this),b[1]=o;for(var y=2;y<b.length;y++)b[y]=this.mul(b[y-1],o);var x=b[0],E=0,v=0,f=u.bitLength()%26;for(f===0&&(f=26),y=u.length-1;y>=0;y--){for(var A=u.words[y],j=f-1;j>=0;j--){var P=A>>j&1;if(x!==b[0]&&(x=this.sqr(x)),P===0&&E===0){v=0;continue}E<<=1,E|=P,v++,!(v!==h&&(y!==0||j!==0))&&(x=this.mul(x,b[E]),v=0,E=0)}f=26}return x},F.prototype.convertTo=function(o){var u=o.umod(this.m);return u===o?u.clone():u},F.prototype.convertFrom=function(o){var u=o.clone();return u.red=null,u},a.mont=function(o){return new R(o)};function R(w){F.call(this,w),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}i(R,F),R.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},R.prototype.convertFrom=function(o){var u=this.imod(o.mul(this.rinv));return u.red=null,u},R.prototype.imul=function(o,u){if(o.isZero()||u.isZero())return o.words[0]=0,o.length=1,o;var h=o.imul(u),b=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=h.isub(b).iushrn(this.shift),x=y;return y.cmp(this.m)>=0?x=y.isub(this.m):y.cmpn(0)<0&&(x=y.iadd(this.m)),x._forceRed(this)},R.prototype.mul=function(o,u){if(o.isZero()||u.isZero())return new a(0)._forceRed(this);var h=o.mul(u),b=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=h.isub(b).iushrn(this.shift),x=y;return y.cmp(this.m)>=0?x=y.isub(this.m):y.cmpn(0)<0&&(x=y.iadd(this.m)),x._forceRed(this)},R.prototype.invm=function(o){var u=this.imod(o._invmp(this.m).mul(this.r2));return u._forceRed(this)}})(t,Kt)}($m)),$m.exports}var wA={},Zz;function NK(){return Zz||(Zz=1,function(t){var e=t;function n(a,s){if(Array.isArray(a))return a.slice();if(!a)return[];var c=[];if(typeof a!="string"){for(var l=0;l<a.length;l++)c[l]=a[l]|0;return c}if(s==="hex"){a=a.replace(/[^a-z0-9]+/ig,""),a.length%2!==0&&(a="0"+a);for(var l=0;l<a.length;l+=2)c.push(parseInt(a[l]+a[l+1],16))}else for(var l=0;l<a.length;l++){var d=a.charCodeAt(l),p=d>>8,m=d&255;p?c.push(p,m):c.push(m)}return c}e.toArray=n;function r(a){return a.length===1?"0"+a:a}e.zero2=r;function i(a){for(var s="",c=0;c<a.length;c++)s+=r(a[c].toString(16));return s}e.toHex=i,e.encode=function(s,c){return c==="hex"?i(s):s}}(wA)),wA}var Kz;function vo(){return Kz||(Kz=1,function(t){var e=t,n=xl(),r=go,i=NK();e.assert=r,e.toArray=i.toArray,e.zero2=i.zero2,e.toHex=i.toHex,e.encode=i.encode;function a(p,m,g){var M=new Array(Math.max(p.bitLength(),g)+1),C;for(C=0;C<M.length;C+=1)M[C]=0;var T=1<<m+1,D=p.clone();for(C=0;C<M.length;C++){var S,I=D.andln(T-1);D.isOdd()?(I>(T>>1)-1?S=(T>>1)-I:S=I,D.isubn(S)):S=0,M[C]=S,D.iushrn(1)}return M}e.getNAF=a;function s(p,m){var g=[[],[]];p=p.clone(),m=m.clone();for(var M=0,C=0,T;p.cmpn(-M)>0||m.cmpn(-C)>0;){var D=p.andln(3)+M&3,S=m.andln(3)+C&3;D===3&&(D=-1),S===3&&(S=-1);var I;D&1?(T=p.andln(7)+M&7,(T===3||T===5)&&S===2?I=-D:I=D):I=0,g[0].push(I);var N;S&1?(T=m.andln(7)+C&7,(T===3||T===5)&&D===2?N=-S:N=S):N=0,g[1].push(N),2*M===I+1&&(M=1-M),2*C===N+1&&(C=1-C),p.iushrn(1),m.iushrn(1)}return g}e.getJSF=s;function c(p,m,g){var M="_"+m;p.prototype[m]=function(){return this[M]!==void 0?this[M]:this[M]=g.call(this)}}e.cachedProperty=c;function l(p){return typeof p=="string"?e.toArray(p,"hex"):p}e.parseBytes=l;function d(p){return new n(p,"hex","le")}e.intFromLE=d}(xA)),xA}var AA={},CA,Xz;function Ov(){if(Xz)return CA;Xz=1;var t=xl(),e=vo(),n=e.getNAF,r=e.getJSF,i=e.assert;function a(c,l){this.type=c,this.p=new t(l.p,16),this.red=l.prime?t.red(l.prime):t.mont(this.p),this.zero=new t(0).toRed(this.red),this.one=new t(1).toRed(this.red),this.two=new t(2).toRed(this.red),this.n=l.n&&new t(l.n,16),this.g=l.g&&this.pointFromJSON(l.g,l.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var d=this.n&&this.p.div(this.n);!d||d.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}CA=a,a.prototype.point=function(){throw new Error("Not implemented")},a.prototype.validate=function(){throw new Error("Not implemented")},a.prototype._fixedNafMul=function(l,d){i(l.precomputed);var p=l._getDoubles(),m=n(d,1,this._bitLength),g=(1<<p.step+1)-(p.step%2===0?2:1);g/=3;var M=[],C,T;for(C=0;C<m.length;C+=p.step){T=0;for(var D=C+p.step-1;D>=C;D--)T=(T<<1)+m[D];M.push(T)}for(var S=this.jpoint(null,null,null),I=this.jpoint(null,null,null),N=g;N>0;N--){for(C=0;C<M.length;C++)T=M[C],T===N?I=I.mixedAdd(p.points[C]):T===-N&&(I=I.mixedAdd(p.points[C].neg()));S=S.add(I)}return S.toP()},a.prototype._wnafMul=function(l,d){var p=4,m=l._getNAFPoints(p);p=m.wnd;for(var g=m.points,M=n(d,p,this._bitLength),C=this.jpoint(null,null,null),T=M.length-1;T>=0;T--){for(var D=0;T>=0&&M[T]===0;T--)D++;if(T>=0&&D++,C=C.dblp(D),T<0)break;var S=M[T];i(S!==0),l.type==="affine"?S>0?C=C.mixedAdd(g[S-1>>1]):C=C.mixedAdd(g[-S-1>>1].neg()):S>0?C=C.add(g[S-1>>1]):C=C.add(g[-S-1>>1].neg())}return l.type==="affine"?C.toP():C},a.prototype._wnafMulAdd=function(l,d,p,m,g){var M=this._wnafT1,C=this._wnafT2,T=this._wnafT3,D=0,S,I,N;for(S=0;S<m;S++){N=d[S];var B=N._getNAFPoints(l);M[S]=B.wnd,C[S]=B.points}for(S=m-1;S>=1;S-=2){var k=S-1,O=S;if(M[k]!==1||M[O]!==1){T[k]=n(p[k],M[k],this._bitLength),T[O]=n(p[O],M[O],this._bitLength),D=Math.max(T[k].length,D),D=Math.max(T[O].length,D);continue}var z=[d[k],null,null,d[O]];d[k].y.cmp(d[O].y)===0?(z[1]=d[k].add(d[O]),z[2]=d[k].toJ().mixedAdd(d[O].neg())):d[k].y.cmp(d[O].y.redNeg())===0?(z[1]=d[k].toJ().mixedAdd(d[O]),z[2]=d[k].add(d[O].neg())):(z[1]=d[k].toJ().mixedAdd(d[O]),z[2]=d[k].toJ().mixedAdd(d[O].neg()));var _=[-3,-1,-5,-7,0,7,5,1,3],F=r(p[k],p[O]);for(D=Math.max(F[0].length,D),T[k]=new Array(D),T[O]=new Array(D),I=0;I<D;I++){var R=F[0][I]|0,w=F[1][I]|0;T[k][I]=_[(R+1)*3+(w+1)],T[O][I]=0,C[k]=z}}var o=this.jpoint(null,null,null),u=this._wnafT4;for(S=D;S>=0;S--){for(var h=0;S>=0;){var b=!0;for(I=0;I<m;I++)u[I]=T[I][S]|0,u[I]!==0&&(b=!1);if(!b)break;h++,S--}if(S>=0&&h++,o=o.dblp(h),S<0)break;for(I=0;I<m;I++){var y=u[I];y!==0&&(y>0?N=C[I][y-1>>1]:y<0&&(N=C[I][-y-1>>1].neg()),N.type==="affine"?o=o.mixedAdd(N):o=o.add(N))}}for(S=0;S<m;S++)C[S]=null;return g?o:o.toP()};function s(c,l){this.curve=c,this.type=l,this.precomputed=null}return a.BasePoint=s,s.prototype.eq=function(){throw new Error("Not implemented")},s.prototype.validate=function(){return this.curve.validate(this)},a.prototype.decodePoint=function(l,d){l=e.toArray(l,d);var p=this.p.byteLength();if((l[0]===4||l[0]===6||l[0]===7)&&l.length-1===2*p){l[0]===6?i(l[l.length-1]%2===0):l[0]===7&&i(l[l.length-1]%2===1);var m=this.point(l.slice(1,1+p),l.slice(1+p,1+2*p));return m}else if((l[0]===2||l[0]===3)&&l.length-1===p)return this.pointFromX(l.slice(1,1+p),l[0]===3);throw new Error("Unknown point format")},s.prototype.encodeCompressed=function(l){return this.encode(l,!0)},s.prototype._encode=function(l){var d=this.curve.p.byteLength(),p=this.getX().toArray("be",d);return l?[this.getY().isEven()?2:3].concat(p):[4].concat(p,this.getY().toArray("be",d))},s.prototype.encode=function(l,d){return e.encode(this._encode(d),l)},s.prototype.precompute=function(l){if(this.precomputed)return this;var d={doubles:null,naf:null,beta:null};return d.naf=this._getNAFPoints(8),d.doubles=this._getDoubles(4,l),d.beta=this._getBeta(),this.precomputed=d,this},s.prototype._hasDoubles=function(l){if(!this.precomputed)return!1;var d=this.precomputed.doubles;return d?d.points.length>=Math.ceil((l.bitLength()+1)/d.step):!1},s.prototype._getDoubles=function(l,d){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var p=[this],m=this,g=0;g<d;g+=l){for(var M=0;M<l;M++)m=m.dbl();p.push(m)}return{step:l,points:p}},s.prototype._getNAFPoints=function(l){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var d=[this],p=(1<<l)-1,m=p===1?null:this.dbl(),g=1;g<p;g++)d[g]=d[g-1].add(m);return{wnd:l,points:d}},s.prototype._getBeta=function(){return null},s.prototype.dblp=function(l){for(var d=this,p=0;p<l;p++)d=d.dbl();return d},CA}var EA,Jz;function Z4e(){if(Jz)return EA;Jz=1;var t=vo(),e=xl(),n=mn,r=Ov(),i=t.assert;function a(l){r.call(this,"short",l),this.a=new e(l.a,16).toRed(this.red),this.b=new e(l.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(l),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}n(a,r),EA=a,a.prototype._getEndomorphism=function(d){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var p,m;if(d.beta)p=new e(d.beta,16).toRed(this.red);else{var g=this._getEndoRoots(this.p);p=g[0].cmp(g[1])<0?g[0]:g[1],p=p.toRed(this.red)}if(d.lambda)m=new e(d.lambda,16);else{var M=this._getEndoRoots(this.n);this.g.mul(M[0]).x.cmp(this.g.x.redMul(p))===0?m=M[0]:(m=M[1],i(this.g.mul(m).x.cmp(this.g.x.redMul(p))===0))}var C;return d.basis?C=d.basis.map(function(T){return{a:new e(T.a,16),b:new e(T.b,16)}}):C=this._getEndoBasis(m),{beta:p,lambda:m,basis:C}}},a.prototype._getEndoRoots=function(d){var p=d===this.p?this.red:e.mont(d),m=new e(2).toRed(p).redInvm(),g=m.redNeg(),M=new e(3).toRed(p).redNeg().redSqrt().redMul(m),C=g.redAdd(M).fromRed(),T=g.redSub(M).fromRed();return[C,T]},a.prototype._getEndoBasis=function(d){for(var p=this.n.ushrn(Math.floor(this.n.bitLength()/2)),m=d,g=this.n.clone(),M=new e(1),C=new e(0),T=new e(0),D=new e(1),S,I,N,B,k,O,z,_=0,F,R;m.cmpn(0)!==0;){var w=g.div(m);F=g.sub(w.mul(m)),R=T.sub(w.mul(M));var o=D.sub(w.mul(C));if(!N&&F.cmp(p)<0)S=z.neg(),I=M,N=F.neg(),B=R;else if(N&&++_===2)break;z=F,g=m,m=F,T=M,M=R,D=C,C=o}k=F.neg(),O=R;var u=N.sqr().add(B.sqr()),h=k.sqr().add(O.sqr());return h.cmp(u)>=0&&(k=S,O=I),N.negative&&(N=N.neg(),B=B.neg()),k.negative&&(k=k.neg(),O=O.neg()),[{a:N,b:B},{a:k,b:O}]},a.prototype._endoSplit=function(d){var p=this.endo.basis,m=p[0],g=p[1],M=g.b.mul(d).divRound(this.n),C=m.b.neg().mul(d).divRound(this.n),T=M.mul(m.a),D=C.mul(g.a),S=M.mul(m.b),I=C.mul(g.b),N=d.sub(T).sub(D),B=S.add(I).neg();return{k1:N,k2:B}},a.prototype.pointFromX=function(d,p){d=new e(d,16),d.red||(d=d.toRed(this.red));var m=d.redSqr().redMul(d).redIAdd(d.redMul(this.a)).redIAdd(this.b),g=m.redSqrt();if(g.redSqr().redSub(m).cmp(this.zero)!==0)throw new Error("invalid point");var M=g.fromRed().isOdd();return(p&&!M||!p&&M)&&(g=g.redNeg()),this.point(d,g)},a.prototype.validate=function(d){if(d.inf)return!0;var p=d.x,m=d.y,g=this.a.redMul(p),M=p.redSqr().redMul(p).redIAdd(g).redIAdd(this.b);return m.redSqr().redISub(M).cmpn(0)===0},a.prototype._endoWnafMulAdd=function(d,p,m){for(var g=this._endoWnafT1,M=this._endoWnafT2,C=0;C<d.length;C++){var T=this._endoSplit(p[C]),D=d[C],S=D._getBeta();T.k1.negative&&(T.k1.ineg(),D=D.neg(!0)),T.k2.negative&&(T.k2.ineg(),S=S.neg(!0)),g[C*2]=D,g[C*2+1]=S,M[C*2]=T.k1,M[C*2+1]=T.k2}for(var I=this._wnafMulAdd(1,g,M,C*2,m),N=0;N<C*2;N++)g[N]=null,M[N]=null;return I};function s(l,d,p,m){r.BasePoint.call(this,l,"affine"),d===null&&p===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new e(d,16),this.y=new e(p,16),m&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}n(s,r.BasePoint),a.prototype.point=function(d,p,m){return new s(this,d,p,m)},a.prototype.pointFromJSON=function(d,p){return s.fromJSON(this,d,p)},s.prototype._getBeta=function(){if(this.curve.endo){var d=this.precomputed;if(d&&d.beta)return d.beta;var p=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(d){var m=this.curve,g=function(M){return m.point(M.x.redMul(m.endo.beta),M.y)};d.beta=p,p.precomputed={beta:null,naf:d.naf&&{wnd:d.naf.wnd,points:d.naf.points.map(g)},doubles:d.doubles&&{step:d.doubles.step,points:d.doubles.points.map(g)}}}return p}},s.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},s.fromJSON=function(d,p,m){typeof p=="string"&&(p=JSON.parse(p));var g=d.point(p[0],p[1],m);if(!p[2])return g;function M(T){return d.point(T[0],T[1],m)}var C=p[2];return g.precomputed={beta:null,doubles:C.doubles&&{step:C.doubles.step,points:[g].concat(C.doubles.points.map(M))},naf:C.naf&&{wnd:C.naf.wnd,points:[g].concat(C.naf.points.map(M))}},g},s.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},s.prototype.isInfinity=function(){return this.inf},s.prototype.add=function(d){if(this.inf)return d;if(d.inf)return this;if(this.eq(d))return this.dbl();if(this.neg().eq(d))return this.curve.point(null,null);if(this.x.cmp(d.x)===0)return this.curve.point(null,null);var p=this.y.redSub(d.y);p.cmpn(0)!==0&&(p=p.redMul(this.x.redSub(d.x).redInvm()));var m=p.redSqr().redISub(this.x).redISub(d.x),g=p.redMul(this.x.redSub(m)).redISub(this.y);return this.curve.point(m,g)},s.prototype.dbl=function(){if(this.inf)return this;var d=this.y.redAdd(this.y);if(d.cmpn(0)===0)return this.curve.point(null,null);var p=this.curve.a,m=this.x.redSqr(),g=d.redInvm(),M=m.redAdd(m).redIAdd(m).redIAdd(p).redMul(g),C=M.redSqr().redISub(this.x.redAdd(this.x)),T=M.redMul(this.x.redSub(C)).redISub(this.y);return this.curve.point(C,T)},s.prototype.getX=function(){return this.x.fromRed()},s.prototype.getY=function(){return this.y.fromRed()},s.prototype.mul=function(d){return d=new e(d,16),this.isInfinity()?this:this._hasDoubles(d)?this.curve._fixedNafMul(this,d):this.curve.endo?this.curve._endoWnafMulAdd([this],[d]):this.curve._wnafMul(this,d)},s.prototype.mulAdd=function(d,p,m){var g=[this,p],M=[d,m];return this.curve.endo?this.curve._endoWnafMulAdd(g,M):this.curve._wnafMulAdd(1,g,M,2)},s.prototype.jmulAdd=function(d,p,m){var g=[this,p],M=[d,m];return this.curve.endo?this.curve._endoWnafMulAdd(g,M,!0):this.curve._wnafMulAdd(1,g,M,2,!0)},s.prototype.eq=function(d){return this===d||this.inf===d.inf&&(this.inf||this.x.cmp(d.x)===0&&this.y.cmp(d.y)===0)},s.prototype.neg=function(d){if(this.inf)return this;var p=this.curve.point(this.x,this.y.redNeg());if(d&&this.precomputed){var m=this.precomputed,g=function(M){return M.neg()};p.precomputed={naf:m.naf&&{wnd:m.naf.wnd,points:m.naf.points.map(g)},doubles:m.doubles&&{step:m.doubles.step,points:m.doubles.points.map(g)}}}return p},s.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var d=this.curve.jpoint(this.x,this.y,this.curve.one);return d};function c(l,d,p,m){r.BasePoint.call(this,l,"jacobian"),d===null&&p===null&&m===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new e(0)):(this.x=new e(d,16),this.y=new e(p,16),this.z=new e(m,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}return n(c,r.BasePoint),a.prototype.jpoint=function(d,p,m){return new c(this,d,p,m)},c.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var d=this.z.redInvm(),p=d.redSqr(),m=this.x.redMul(p),g=this.y.redMul(p).redMul(d);return this.curve.point(m,g)},c.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},c.prototype.add=function(d){if(this.isInfinity())return d;if(d.isInfinity())return this;var p=d.z.redSqr(),m=this.z.redSqr(),g=this.x.redMul(p),M=d.x.redMul(m),C=this.y.redMul(p.redMul(d.z)),T=d.y.redMul(m.redMul(this.z)),D=g.redSub(M),S=C.redSub(T);if(D.cmpn(0)===0)return S.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var I=D.redSqr(),N=I.redMul(D),B=g.redMul(I),k=S.redSqr().redIAdd(N).redISub(B).redISub(B),O=S.redMul(B.redISub(k)).redISub(C.redMul(N)),z=this.z.redMul(d.z).redMul(D);return this.curve.jpoint(k,O,z)},c.prototype.mixedAdd=function(d){if(this.isInfinity())return d.toJ();if(d.isInfinity())return this;var p=this.z.redSqr(),m=this.x,g=d.x.redMul(p),M=this.y,C=d.y.redMul(p).redMul(this.z),T=m.redSub(g),D=M.redSub(C);if(T.cmpn(0)===0)return D.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var S=T.redSqr(),I=S.redMul(T),N=m.redMul(S),B=D.redSqr().redIAdd(I).redISub(N).redISub(N),k=D.redMul(N.redISub(B)).redISub(M.redMul(I)),O=this.z.redMul(T);return this.curve.jpoint(B,k,O)},c.prototype.dblp=function(d){if(d===0)return this;if(this.isInfinity())return this;if(!d)return this.dbl();var p;if(this.curve.zeroA||this.curve.threeA){var m=this;for(p=0;p<d;p++)m=m.dbl();return m}var g=this.curve.a,M=this.curve.tinv,C=this.x,T=this.y,D=this.z,S=D.redSqr().redSqr(),I=T.redAdd(T);for(p=0;p<d;p++){var N=C.redSqr(),B=I.redSqr(),k=B.redSqr(),O=N.redAdd(N).redIAdd(N).redIAdd(g.redMul(S)),z=C.redMul(B),_=O.redSqr().redISub(z.redAdd(z)),F=z.redISub(_),R=O.redMul(F);R=R.redIAdd(R).redISub(k);var w=I.redMul(D);p+1<d&&(S=S.redMul(k)),C=_,D=w,I=R}return this.curve.jpoint(C,I.redMul(M),D)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},c.prototype._zeroDbl=function(){var d,p,m;if(this.zOne){var g=this.x.redSqr(),M=this.y.redSqr(),C=M.redSqr(),T=this.x.redAdd(M).redSqr().redISub(g).redISub(C);T=T.redIAdd(T);var D=g.redAdd(g).redIAdd(g),S=D.redSqr().redISub(T).redISub(T),I=C.redIAdd(C);I=I.redIAdd(I),I=I.redIAdd(I),d=S,p=D.redMul(T.redISub(S)).redISub(I),m=this.y.redAdd(this.y)}else{var N=this.x.redSqr(),B=this.y.redSqr(),k=B.redSqr(),O=this.x.redAdd(B).redSqr().redISub(N).redISub(k);O=O.redIAdd(O);var z=N.redAdd(N).redIAdd(N),_=z.redSqr(),F=k.redIAdd(k);F=F.redIAdd(F),F=F.redIAdd(F),d=_.redISub(O).redISub(O),p=z.redMul(O.redISub(d)).redISub(F),m=this.y.redMul(this.z),m=m.redIAdd(m)}return this.curve.jpoint(d,p,m)},c.prototype._threeDbl=function(){var d,p,m;if(this.zOne){var g=this.x.redSqr(),M=this.y.redSqr(),C=M.redSqr(),T=this.x.redAdd(M).redSqr().redISub(g).redISub(C);T=T.redIAdd(T);var D=g.redAdd(g).redIAdd(g).redIAdd(this.curve.a),S=D.redSqr().redISub(T).redISub(T);d=S;var I=C.redIAdd(C);I=I.redIAdd(I),I=I.redIAdd(I),p=D.redMul(T.redISub(S)).redISub(I),m=this.y.redAdd(this.y)}else{var N=this.z.redSqr(),B=this.y.redSqr(),k=this.x.redMul(B),O=this.x.redSub(N).redMul(this.x.redAdd(N));O=O.redAdd(O).redIAdd(O);var z=k.redIAdd(k);z=z.redIAdd(z);var _=z.redAdd(z);d=O.redSqr().redISub(_),m=this.y.redAdd(this.z).redSqr().redISub(B).redISub(N);var F=B.redSqr();F=F.redIAdd(F),F=F.redIAdd(F),F=F.redIAdd(F),p=O.redMul(z.redISub(d)).redISub(F)}return this.curve.jpoint(d,p,m)},c.prototype._dbl=function(){var d=this.curve.a,p=this.x,m=this.y,g=this.z,M=g.redSqr().redSqr(),C=p.redSqr(),T=m.redSqr(),D=C.redAdd(C).redIAdd(C).redIAdd(d.redMul(M)),S=p.redAdd(p);S=S.redIAdd(S);var I=S.redMul(T),N=D.redSqr().redISub(I.redAdd(I)),B=I.redISub(N),k=T.redSqr();k=k.redIAdd(k),k=k.redIAdd(k),k=k.redIAdd(k);var O=D.redMul(B).redISub(k),z=m.redAdd(m).redMul(g);return this.curve.jpoint(N,O,z)},c.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var d=this.x.redSqr(),p=this.y.redSqr(),m=this.z.redSqr(),g=p.redSqr(),M=d.redAdd(d).redIAdd(d),C=M.redSqr(),T=this.x.redAdd(p).redSqr().redISub(d).redISub(g);T=T.redIAdd(T),T=T.redAdd(T).redIAdd(T),T=T.redISub(C);var D=T.redSqr(),S=g.redIAdd(g);S=S.redIAdd(S),S=S.redIAdd(S),S=S.redIAdd(S);var I=M.redIAdd(T).redSqr().redISub(C).redISub(D).redISub(S),N=p.redMul(I);N=N.redIAdd(N),N=N.redIAdd(N);var B=this.x.redMul(D).redISub(N);B=B.redIAdd(B),B=B.redIAdd(B);var k=this.y.redMul(I.redMul(S.redISub(I)).redISub(T.redMul(D)));k=k.redIAdd(k),k=k.redIAdd(k),k=k.redIAdd(k);var O=this.z.redAdd(T).redSqr().redISub(m).redISub(D);return this.curve.jpoint(B,k,O)},c.prototype.mul=function(d,p){return d=new e(d,p),this.curve._wnafMul(this,d)},c.prototype.eq=function(d){if(d.type==="affine")return this.eq(d.toJ());if(this===d)return!0;var p=this.z.redSqr(),m=d.z.redSqr();if(this.x.redMul(m).redISub(d.x.redMul(p)).cmpn(0)!==0)return!1;var g=p.redMul(this.z),M=m.redMul(d.z);return this.y.redMul(M).redISub(d.y.redMul(g)).cmpn(0)===0},c.prototype.eqXToP=function(d){var p=this.z.redSqr(),m=d.toRed(this.curve.red).redMul(p);if(this.x.cmp(m)===0)return!0;for(var g=d.clone(),M=this.curve.redN.redMul(p);;){if(g.iadd(this.curve.n),g.cmp(this.curve.p)>=0)return!1;if(m.redIAdd(M),this.x.cmp(m)===0)return!0}},c.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},c.prototype.isInfinity=function(){return this.z.cmpn(0)===0},EA}var SA,eR;function K4e(){if(eR)return SA;eR=1;var t=xl(),e=mn,n=Ov(),r=vo();function i(s){n.call(this,"mont",s),this.a=new t(s.a,16).toRed(this.red),this.b=new t(s.b,16).toRed(this.red),this.i4=new t(4).toRed(this.red).redInvm(),this.two=new t(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}e(i,n),SA=i,i.prototype.validate=function(c){var l=c.normalize().x,d=l.redSqr(),p=d.redMul(l).redAdd(d.redMul(this.a)).redAdd(l),m=p.redSqrt();return m.redSqr().cmp(p)===0};function a(s,c,l){n.BasePoint.call(this,s,"projective"),c===null&&l===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new t(c,16),this.z=new t(l,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}return e(a,n.BasePoint),i.prototype.decodePoint=function(c,l){return this.point(r.toArray(c,l),1)},i.prototype.point=function(c,l){return new a(this,c,l)},i.prototype.pointFromJSON=function(c){return a.fromJSON(this,c)},a.prototype.precompute=function(){},a.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},a.fromJSON=function(c,l){return new a(c,l[0],l[1]||c.one)},a.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},a.prototype.isInfinity=function(){return this.z.cmpn(0)===0},a.prototype.dbl=function(){var c=this.x.redAdd(this.z),l=c.redSqr(),d=this.x.redSub(this.z),p=d.redSqr(),m=l.redSub(p),g=l.redMul(p),M=m.redMul(p.redAdd(this.curve.a24.redMul(m)));return this.curve.point(g,M)},a.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},a.prototype.diffAdd=function(c,l){var d=this.x.redAdd(this.z),p=this.x.redSub(this.z),m=c.x.redAdd(c.z),g=c.x.redSub(c.z),M=g.redMul(d),C=m.redMul(p),T=l.z.redMul(M.redAdd(C).redSqr()),D=l.x.redMul(M.redISub(C).redSqr());return this.curve.point(T,D)},a.prototype.mul=function(c){for(var l=c.clone(),d=this,p=this.curve.point(null,null),m=this,g=[];l.cmpn(0)!==0;l.iushrn(1))g.push(l.andln(1));for(var M=g.length-1;M>=0;M--)g[M]===0?(d=d.diffAdd(p,m),p=p.dbl()):(p=d.diffAdd(p,m),d=d.dbl());return p},a.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},a.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},a.prototype.eq=function(c){return this.getX().cmp(c.getX())===0},a.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},a.prototype.getX=function(){return this.normalize(),this.x.fromRed()},SA}var TA,tR;function X4e(){if(tR)return TA;tR=1;var t=vo(),e=xl(),n=mn,r=Ov(),i=t.assert;function a(c){this.twisted=(c.a|0)!==1,this.mOneA=this.twisted&&(c.a|0)===-1,this.extended=this.mOneA,r.call(this,"edwards",c),this.a=new e(c.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new e(c.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new e(c.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),i(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(c.c|0)===1}n(a,r),TA=a,a.prototype._mulA=function(l){return this.mOneA?l.redNeg():this.a.redMul(l)},a.prototype._mulC=function(l){return this.oneC?l:this.c.redMul(l)},a.prototype.jpoint=function(l,d,p,m){return this.point(l,d,p,m)},a.prototype.pointFromX=function(l,d){l=new e(l,16),l.red||(l=l.toRed(this.red));var p=l.redSqr(),m=this.c2.redSub(this.a.redMul(p)),g=this.one.redSub(this.c2.redMul(this.d).redMul(p)),M=m.redMul(g.redInvm()),C=M.redSqrt();if(C.redSqr().redSub(M).cmp(this.zero)!==0)throw new Error("invalid point");var T=C.fromRed().isOdd();return(d&&!T||!d&&T)&&(C=C.redNeg()),this.point(l,C)},a.prototype.pointFromY=function(l,d){l=new e(l,16),l.red||(l=l.toRed(this.red));var p=l.redSqr(),m=p.redSub(this.c2),g=p.redMul(this.d).redMul(this.c2).redSub(this.a),M=m.redMul(g.redInvm());if(M.cmp(this.zero)===0){if(d)throw new Error("invalid point");return this.point(this.zero,l)}var C=M.redSqrt();if(C.redSqr().redSub(M).cmp(this.zero)!==0)throw new Error("invalid point");return C.fromRed().isOdd()!==d&&(C=C.redNeg()),this.point(C,l)},a.prototype.validate=function(l){if(l.isInfinity())return!0;l.normalize();var d=l.x.redSqr(),p=l.y.redSqr(),m=d.redMul(this.a).redAdd(p),g=this.c2.redMul(this.one.redAdd(this.d.redMul(d).redMul(p)));return m.cmp(g)===0};function s(c,l,d,p,m){r.BasePoint.call(this,c,"projective"),l===null&&d===null&&p===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new e(l,16),this.y=new e(d,16),this.z=p?new e(p,16):this.curve.one,this.t=m&&new e(m,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}return n(s,r.BasePoint),a.prototype.pointFromJSON=function(l){return s.fromJSON(this,l)},a.prototype.point=function(l,d,p,m){return new s(this,l,d,p,m)},s.fromJSON=function(l,d){return new s(l,d[0],d[1],d[2])},s.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},s.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},s.prototype._extDbl=function(){var l=this.x.redSqr(),d=this.y.redSqr(),p=this.z.redSqr();p=p.redIAdd(p);var m=this.curve._mulA(l),g=this.x.redAdd(this.y).redSqr().redISub(l).redISub(d),M=m.redAdd(d),C=M.redSub(p),T=m.redSub(d),D=g.redMul(C),S=M.redMul(T),I=g.redMul(T),N=C.redMul(M);return this.curve.point(D,S,N,I)},s.prototype._projDbl=function(){var l=this.x.redAdd(this.y).redSqr(),d=this.x.redSqr(),p=this.y.redSqr(),m,g,M,C,T,D;if(this.curve.twisted){C=this.curve._mulA(d);var S=C.redAdd(p);this.zOne?(m=l.redSub(d).redSub(p).redMul(S.redSub(this.curve.two)),g=S.redMul(C.redSub(p)),M=S.redSqr().redSub(S).redSub(S)):(T=this.z.redSqr(),D=S.redSub(T).redISub(T),m=l.redSub(d).redISub(p).redMul(D),g=S.redMul(C.redSub(p)),M=S.redMul(D))}else C=d.redAdd(p),T=this.curve._mulC(this.z).redSqr(),D=C.redSub(T).redSub(T),m=this.curve._mulC(l.redISub(C)).redMul(D),g=this.curve._mulC(C).redMul(d.redISub(p)),M=C.redMul(D);return this.curve.point(m,g,M)},s.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},s.prototype._extAdd=function(l){var d=this.y.redSub(this.x).redMul(l.y.redSub(l.x)),p=this.y.redAdd(this.x).redMul(l.y.redAdd(l.x)),m=this.t.redMul(this.curve.dd).redMul(l.t),g=this.z.redMul(l.z.redAdd(l.z)),M=p.redSub(d),C=g.redSub(m),T=g.redAdd(m),D=p.redAdd(d),S=M.redMul(C),I=T.redMul(D),N=M.redMul(D),B=C.redMul(T);return this.curve.point(S,I,B,N)},s.prototype._projAdd=function(l){var d=this.z.redMul(l.z),p=d.redSqr(),m=this.x.redMul(l.x),g=this.y.redMul(l.y),M=this.curve.d.redMul(m).redMul(g),C=p.redSub(M),T=p.redAdd(M),D=this.x.redAdd(this.y).redMul(l.x.redAdd(l.y)).redISub(m).redISub(g),S=d.redMul(C).redMul(D),I,N;return this.curve.twisted?(I=d.redMul(T).redMul(g.redSub(this.curve._mulA(m))),N=C.redMul(T)):(I=d.redMul(T).redMul(g.redSub(m)),N=this.curve._mulC(C).redMul(T)),this.curve.point(S,I,N)},s.prototype.add=function(l){return this.isInfinity()?l:l.isInfinity()?this:this.curve.extended?this._extAdd(l):this._projAdd(l)},s.prototype.mul=function(l){return this._hasDoubles(l)?this.curve._fixedNafMul(this,l):this.curve._wnafMul(this,l)},s.prototype.mulAdd=function(l,d,p){return this.curve._wnafMulAdd(1,[this,d],[l,p],2,!1)},s.prototype.jmulAdd=function(l,d,p){return this.curve._wnafMulAdd(1,[this,d],[l,p],2,!0)},s.prototype.normalize=function(){if(this.zOne)return this;var l=this.z.redInvm();return this.x=this.x.redMul(l),this.y=this.y.redMul(l),this.t&&(this.t=this.t.redMul(l)),this.z=this.curve.one,this.zOne=!0,this},s.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},s.prototype.getX=function(){return this.normalize(),this.x.fromRed()},s.prototype.getY=function(){return this.normalize(),this.y.fromRed()},s.prototype.eq=function(l){return this===l||this.getX().cmp(l.getX())===0&&this.getY().cmp(l.getY())===0},s.prototype.eqXToP=function(l){var d=l.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(d)===0)return!0;for(var p=l.clone(),m=this.curve.redN.redMul(this.z);;){if(p.iadd(this.curve.n),p.cmp(this.curve.p)>=0)return!1;if(d.redIAdd(m),this.x.cmp(d)===0)return!0}},s.prototype.toP=s.prototype.normalize,s.prototype.mixedAdd=s.prototype.add,TA}var nR;function LK(){return nR||(nR=1,function(t){var e=t;e.base=Ov(),e.short=Z4e(),e.mont=K4e(),e.edwards=X4e()}(AA)),AA}var IA={},c8={},Hn={},J4e=go,epe=mn;Hn.inherits=epe;function tpe(t,e){return(t.charCodeAt(e)&64512)!==55296||e<0||e+1>=t.length?!1:(t.charCodeAt(e+1)&64512)===56320}function npe(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if(typeof t=="string")if(e){if(e==="hex")for(t=t.replace(/[^a-z0-9]+/ig,""),t.length%2!==0&&(t="0"+t),i=0;i<t.length;i+=2)n.push(parseInt(t[i]+t[i+1],16))}else for(var r=0,i=0;i<t.length;i++){var a=t.charCodeAt(i);a<128?n[r++]=a:a<2048?(n[r++]=a>>6|192,n[r++]=a&63|128):tpe(t,i)?(a=65536+((a&1023)<<10)+(t.charCodeAt(++i)&1023),n[r++]=a>>18|240,n[r++]=a>>12&63|128,n[r++]=a>>6&63|128,n[r++]=a&63|128):(n[r++]=a>>12|224,n[r++]=a>>6&63|128,n[r++]=a&63|128)}else for(i=0;i<t.length;i++)n[i]=t[i]|0;return n}Hn.toArray=npe;function rpe(t){for(var e="",n=0;n<t.length;n++)e+=jK(t[n].toString(16));return e}Hn.toHex=rpe;function BK(t){var e=t>>>24|t>>>8&65280|t<<8&16711680|(t&255)<<24;return e>>>0}Hn.htonl=BK;function ipe(t,e){for(var n="",r=0;r<t.length;r++){var i=t[r];e==="little"&&(i=BK(i)),n+=kK(i.toString(16))}return n}Hn.toHex32=ipe;function jK(t){return t.length===1?"0"+t:t}Hn.zero2=jK;function kK(t){return t.length===7?"0"+t:t.length===6?"00"+t:t.length===5?"000"+t:t.length===4?"0000"+t:t.length===3?"00000"+t:t.length===2?"000000"+t:t.length===1?"0000000"+t:t}Hn.zero8=kK;function ape(t,e,n,r){var i=n-e;J4e(i%4===0);for(var a=new Array(i/4),s=0,c=e;s<a.length;s++,c+=4){var l;r==="big"?l=t[c]<<24|t[c+1]<<16|t[c+2]<<8|t[c+3]:l=t[c+3]<<24|t[c+2]<<16|t[c+1]<<8|t[c],a[s]=l>>>0}return a}Hn.join32=ape;function spe(t,e){for(var n=new Array(t.length*4),r=0,i=0;r<t.length;r++,i+=4){var a=t[r];e==="big"?(n[i]=a>>>24,n[i+1]=a>>>16&255,n[i+2]=a>>>8&255,n[i+3]=a&255):(n[i+3]=a>>>24,n[i+2]=a>>>16&255,n[i+1]=a>>>8&255,n[i]=a&255)}return n}Hn.split32=spe;function ope(t,e){return t>>>e|t<<32-e}Hn.rotr32=ope;function cpe(t,e){return t<<e|t>>>32-e}Hn.rotl32=cpe;function lpe(t,e){return t+e>>>0}Hn.sum32=lpe;function upe(t,e,n){return t+e+n>>>0}Hn.sum32_3=upe;function fpe(t,e,n,r){return t+e+n+r>>>0}Hn.sum32_4=fpe;function dpe(t,e,n,r,i){return t+e+n+r+i>>>0}Hn.sum32_5=dpe;function hpe(t,e,n,r){var i=t[e],a=t[e+1],s=r+a>>>0,c=(s<r?1:0)+n+i;t[e]=c>>>0,t[e+1]=s}Hn.sum64=hpe;function ppe(t,e,n,r){var i=e+r>>>0,a=(i<e?1:0)+t+n;return a>>>0}Hn.sum64_hi=ppe;function bpe(t,e,n,r){var i=e+r;return i>>>0}Hn.sum64_lo=bpe;function mpe(t,e,n,r,i,a,s,c){var l=0,d=e;d=d+r>>>0,l+=d<e?1:0,d=d+a>>>0,l+=d<a?1:0,d=d+c>>>0,l+=d<c?1:0;var p=t+n+i+s+l;return p>>>0}Hn.sum64_4_hi=mpe;function ype(t,e,n,r,i,a,s,c){var l=e+r+a+c;return l>>>0}Hn.sum64_4_lo=ype;function gpe(t,e,n,r,i,a,s,c,l,d){var p=0,m=e;m=m+r>>>0,p+=m<e?1:0,m=m+a>>>0,p+=m<a?1:0,m=m+c>>>0,p+=m<c?1:0,m=m+d>>>0,p+=m<d?1:0;var g=t+n+i+s+l+p;return g>>>0}Hn.sum64_5_hi=gpe;function vpe(t,e,n,r,i,a,s,c,l,d){var p=e+r+a+c+d;return p>>>0}Hn.sum64_5_lo=vpe;function Mpe(t,e,n){var r=e<<32-n|t>>>n;return r>>>0}Hn.rotr64_hi=Mpe;function xpe(t,e,n){var r=t<<32-n|e>>>n;return r>>>0}Hn.rotr64_lo=xpe;function wpe(t,e,n){return t>>>n}Hn.shr64_hi=wpe;function Ape(t,e,n){var r=t<<32-n|e>>>n;return r>>>0}Hn.shr64_lo=Ape;var l8={},rR=Hn,Cpe=go;function Fv(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}l8.BlockHash=Fv;Fv.prototype.update=function(e,n){if(e=rR.toArray(e,n),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var r=e.length%this._delta8;this.pending=e.slice(e.length-r,e.length),this.pending.length===0&&(this.pending=null),e=rR.join32(e,0,e.length-r,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this};Fv.prototype.digest=function(e){return this.update(this._pad()),Cpe(this.pending===null),this._digest(e)};Fv.prototype._pad=function(){var e=this.pendingTotal,n=this._delta8,r=n-(e+this.padLength)%n,i=new Array(r+this.padLength);i[0]=128;for(var a=1;a<r;a++)i[a]=0;if(e<<=3,this.endian==="big"){for(var s=8;s<this.padLength;s++)i[a++]=0;i[a++]=0,i[a++]=0,i[a++]=0,i[a++]=0,i[a++]=e>>>24&255,i[a++]=e>>>16&255,i[a++]=e>>>8&255,i[a++]=e&255}else for(i[a++]=e&255,i[a++]=e>>>8&255,i[a++]=e>>>16&255,i[a++]=e>>>24&255,i[a++]=0,i[a++]=0,i[a++]=0,i[a++]=0,s=8;s<this.padLength;s++)i[a++]=0;return i};var u8={},K1={},Epe=Hn,j1=Epe.rotr32;function Spe(t,e,n,r){if(t===0)return _K(e,n,r);if(t===1||t===3)return FK(e,n,r);if(t===2)return OK(e,n,r)}K1.ft_1=Spe;function _K(t,e,n){return t&e^~t&n}K1.ch32=_K;function OK(t,e,n){return t&e^t&n^e&n}K1.maj32=OK;function FK(t,e,n){return t^e^n}K1.p32=FK;function Tpe(t){return j1(t,2)^j1(t,13)^j1(t,22)}K1.s0_256=Tpe;function Ipe(t){return j1(t,6)^j1(t,11)^j1(t,25)}K1.s1_256=Ipe;function Dpe(t){return j1(t,7)^j1(t,18)^t>>>3}K1.g0_256=Dpe;function Npe(t){return j1(t,17)^j1(t,19)^t>>>10}K1.g1_256=Npe;var uh=Hn,Lpe=l8,Bpe=K1,DA=uh.rotl32,R8=uh.sum32,jpe=uh.sum32_5,kpe=Bpe.ft_1,zK=Lpe.BlockHash,_pe=[1518500249,1859775393,2400959708,3395469782];function W1(){if(!(this instanceof W1))return new W1;zK.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}uh.inherits(W1,zK);var Ope=W1;W1.blockSize=512;W1.outSize=160;W1.hmacStrength=80;W1.padLength=64;W1.prototype._update=function(e,n){for(var r=this.W,i=0;i<16;i++)r[i]=e[n+i];for(;i<r.length;i++)r[i]=DA(r[i-3]^r[i-8]^r[i-14]^r[i-16],1);var a=this.h[0],s=this.h[1],c=this.h[2],l=this.h[3],d=this.h[4];for(i=0;i<r.length;i++){var p=~~(i/20),m=jpe(DA(a,5),kpe(p,s,c,l),d,r[i],_pe[p]);d=l,l=c,c=DA(s,30),s=a,a=m}this.h[0]=R8(this.h[0],a),this.h[1]=R8(this.h[1],s),this.h[2]=R8(this.h[2],c),this.h[3]=R8(this.h[3],l),this.h[4]=R8(this.h[4],d)};W1.prototype._digest=function(e){return e==="hex"?uh.toHex32(this.h,"big"):uh.split32(this.h,"big")};var fh=Hn,Fpe=l8,f8=K1,zpe=go,Ao=fh.sum32,Rpe=fh.sum32_4,Ppe=fh.sum32_5,Upe=f8.ch32,Hpe=f8.maj32,Wpe=f8.s0_256,Ype=f8.s1_256,Gpe=f8.g0_256,$pe=f8.g1_256,RK=Fpe.BlockHash,Vpe=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function Y1(){if(!(this instanceof Y1))return new Y1;RK.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=Vpe,this.W=new Array(64)}fh.inherits(Y1,RK);var PK=Y1;Y1.blockSize=512;Y1.outSize=256;Y1.hmacStrength=192;Y1.padLength=64;Y1.prototype._update=function(e,n){for(var r=this.W,i=0;i<16;i++)r[i]=e[n+i];for(;i<r.length;i++)r[i]=Rpe($pe(r[i-2]),r[i-7],Gpe(r[i-15]),r[i-16]);var a=this.h[0],s=this.h[1],c=this.h[2],l=this.h[3],d=this.h[4],p=this.h[5],m=this.h[6],g=this.h[7];for(zpe(this.k.length===r.length),i=0;i<r.length;i++){var M=Ppe(g,Ype(d),Upe(d,p,m),this.k[i],r[i]),C=Ao(Wpe(a),Hpe(a,s,c));g=m,m=p,p=d,d=Ao(l,M),l=c,c=s,s=a,a=Ao(M,C)}this.h[0]=Ao(this.h[0],a),this.h[1]=Ao(this.h[1],s),this.h[2]=Ao(this.h[2],c),this.h[3]=Ao(this.h[3],l),this.h[4]=Ao(this.h[4],d),this.h[5]=Ao(this.h[5],p),this.h[6]=Ao(this.h[6],m),this.h[7]=Ao(this.h[7],g)};Y1.prototype._digest=function(e){return e==="hex"?fh.toHex32(this.h,"big"):fh.split32(this.h,"big")};var fT=Hn,UK=PK;function fl(){if(!(this instanceof fl))return new fl;UK.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}fT.inherits(fl,UK);var Qpe=fl;fl.blockSize=512;fl.outSize=224;fl.hmacStrength=192;fl.padLength=64;fl.prototype._digest=function(e){return e==="hex"?fT.toHex32(this.h.slice(0,7),"big"):fT.split32(this.h.slice(0,7),"big")};var _a=Hn,qpe=l8,Zpe=go,k1=_a.rotr64_hi,_1=_a.rotr64_lo,HK=_a.shr64_hi,WK=_a.shr64_lo,kl=_a.sum64,NA=_a.sum64_hi,LA=_a.sum64_lo,Kpe=_a.sum64_4_hi,Xpe=_a.sum64_4_lo,Jpe=_a.sum64_5_hi,ebe=_a.sum64_5_lo,YK=qpe.BlockHash,tbe=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Ho(){if(!(this instanceof Ho))return new Ho;YK.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=tbe,this.W=new Array(160)}_a.inherits(Ho,YK);var GK=Ho;Ho.blockSize=1024;Ho.outSize=512;Ho.hmacStrength=192;Ho.padLength=128;Ho.prototype._prepareBlock=function(e,n){for(var r=this.W,i=0;i<32;i++)r[i]=e[n+i];for(;i<r.length;i+=2){var a=dbe(r[i-4],r[i-3]),s=hbe(r[i-4],r[i-3]),c=r[i-14],l=r[i-13],d=ube(r[i-30],r[i-29]),p=fbe(r[i-30],r[i-29]),m=r[i-32],g=r[i-31];r[i]=Kpe(a,s,c,l,d,p,m,g),r[i+1]=Xpe(a,s,c,l,d,p,m,g)}};Ho.prototype._update=function(e,n){this._prepareBlock(e,n);var r=this.W,i=this.h[0],a=this.h[1],s=this.h[2],c=this.h[3],l=this.h[4],d=this.h[5],p=this.h[6],m=this.h[7],g=this.h[8],M=this.h[9],C=this.h[10],T=this.h[11],D=this.h[12],S=this.h[13],I=this.h[14],N=this.h[15];Zpe(this.k.length===r.length);for(var B=0;B<r.length;B+=2){var k=I,O=N,z=cbe(g,M),_=lbe(g,M),F=nbe(g,M,C,T,D),R=rbe(g,M,C,T,D,S),w=this.k[B],o=this.k[B+1],u=r[B],h=r[B+1],b=Jpe(k,O,z,_,F,R,w,o,u,h),y=ebe(k,O,z,_,F,R,w,o,u,h);k=sbe(i,a),O=obe(i,a),z=ibe(i,a,s,c,l),_=abe(i,a,s,c,l,d);var x=NA(k,O,z,_),E=LA(k,O,z,_);I=D,N=S,D=C,S=T,C=g,T=M,g=NA(p,m,b,y),M=LA(m,m,b,y),p=l,m=d,l=s,d=c,s=i,c=a,i=NA(b,y,x,E),a=LA(b,y,x,E)}kl(this.h,0,i,a),kl(this.h,2,s,c),kl(this.h,4,l,d),kl(this.h,6,p,m),kl(this.h,8,g,M),kl(this.h,10,C,T),kl(this.h,12,D,S),kl(this.h,14,I,N)};Ho.prototype._digest=function(e){return e==="hex"?_a.toHex32(this.h,"big"):_a.split32(this.h,"big")};function nbe(t,e,n,r,i){var a=t&n^~t&i;return a<0&&(a+=4294967296),a}function rbe(t,e,n,r,i,a){var s=e&r^~e&a;return s<0&&(s+=4294967296),s}function ibe(t,e,n,r,i){var a=t&n^t&i^n&i;return a<0&&(a+=4294967296),a}function abe(t,e,n,r,i,a){var s=e&r^e&a^r&a;return s<0&&(s+=4294967296),s}function sbe(t,e){var n=k1(t,e,28),r=k1(e,t,2),i=k1(e,t,7),a=n^r^i;return a<0&&(a+=4294967296),a}function obe(t,e){var n=_1(t,e,28),r=_1(e,t,2),i=_1(e,t,7),a=n^r^i;return a<0&&(a+=4294967296),a}function cbe(t,e){var n=k1(t,e,14),r=k1(t,e,18),i=k1(e,t,9),a=n^r^i;return a<0&&(a+=4294967296),a}function lbe(t,e){var n=_1(t,e,14),r=_1(t,e,18),i=_1(e,t,9),a=n^r^i;return a<0&&(a+=4294967296),a}function ube(t,e){var n=k1(t,e,1),r=k1(t,e,8),i=HK(t,e,7),a=n^r^i;return a<0&&(a+=4294967296),a}function fbe(t,e){var n=_1(t,e,1),r=_1(t,e,8),i=WK(t,e,7),a=n^r^i;return a<0&&(a+=4294967296),a}function dbe(t,e){var n=k1(t,e,19),r=k1(e,t,29),i=HK(t,e,6),a=n^r^i;return a<0&&(a+=4294967296),a}function hbe(t,e){var n=_1(t,e,19),r=_1(e,t,29),i=WK(t,e,6),a=n^r^i;return a<0&&(a+=4294967296),a}var dT=Hn,$K=GK;function dl(){if(!(this instanceof dl))return new dl;$K.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}dT.inherits(dl,$K);var pbe=dl;dl.blockSize=1024;dl.outSize=384;dl.hmacStrength=192;dl.padLength=128;dl.prototype._digest=function(e){return e==="hex"?dT.toHex32(this.h.slice(0,12),"big"):dT.split32(this.h.slice(0,12),"big")};u8.sha1=Ope;u8.sha224=Qpe;u8.sha256=PK;u8.sha384=pbe;u8.sha512=GK;var VK={},id=Hn,bbe=l8,g9=id.rotl32,iR=id.sum32,P8=id.sum32_3,aR=id.sum32_4,QK=bbe.BlockHash;function G1(){if(!(this instanceof G1))return new G1;QK.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}id.inherits(G1,QK);VK.ripemd160=G1;G1.blockSize=512;G1.outSize=160;G1.hmacStrength=192;G1.padLength=64;G1.prototype._update=function(e,n){for(var r=this.h[0],i=this.h[1],a=this.h[2],s=this.h[3],c=this.h[4],l=r,d=i,p=a,m=s,g=c,M=0;M<80;M++){var C=iR(g9(aR(r,sR(M,i,a,s),e[gbe[M]+n],mbe(M)),Mbe[M]),c);r=c,c=s,s=g9(a,10),a=i,i=C,C=iR(g9(aR(l,sR(79-M,d,p,m),e[vbe[M]+n],ybe(M)),xbe[M]),g),l=g,g=m,m=g9(p,10),p=d,d=C}C=P8(this.h[1],a,m),this.h[1]=P8(this.h[2],s,g),this.h[2]=P8(this.h[3],c,l),this.h[3]=P8(this.h[4],r,d),this.h[4]=P8(this.h[0],i,p),this.h[0]=C};G1.prototype._digest=function(e){return e==="hex"?id.toHex32(this.h,"little"):id.split32(this.h,"little")};function sR(t,e,n,r){return t<=15?e^n^r:t<=31?e&n|~e&r:t<=47?(e|~n)^r:t<=63?e&r|n&~r:e^(n|~r)}function mbe(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function ybe(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}var gbe=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],vbe=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],Mbe=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],xbe=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],wbe=Hn,Abe=go;function dh(t,e,n){if(!(this instanceof dh))return new dh(t,e,n);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(wbe.toArray(e,n))}var Cbe=dh;dh.prototype._init=function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),Abe(e.length<=this.blockSize);for(var n=e.length;n<this.blockSize;n++)e.push(0);for(n=0;n<e.length;n++)e[n]^=54;for(this.inner=new this.Hash().update(e),n=0;n<e.length;n++)e[n]^=106;this.outer=new this.Hash().update(e)};dh.prototype.update=function(e,n){return this.inner.update(e,n),this};dh.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)};(function(t){var e=t;e.utils=Hn,e.common=l8,e.sha=u8,e.ripemd=VK,e.hmac=Cbe,e.sha1=e.sha.sha1,e.sha256=e.sha.sha256,e.sha224=e.sha.sha224,e.sha384=e.sha.sha384,e.sha512=e.sha.sha512,e.ripemd160=e.ripemd.ripemd160})(c8);const Ebe=$i(c8),jWe=HY({__proto__:null,default:Ebe},[c8]);var BA,oR;function Sbe(){return oR||(oR=1,BA={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}),BA}var cR;function dL(){return cR||(cR=1,function(t){var e=t,n=c8,r=LK(),i=vo(),a=i.assert;function s(d){d.type==="short"?this.curve=new r.short(d):d.type==="edwards"?this.curve=new r.edwards(d):this.curve=new r.mont(d),this.g=this.curve.g,this.n=this.curve.n,this.hash=d.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}e.PresetCurve=s;function c(d,p){Object.defineProperty(e,d,{configurable:!0,enumerable:!0,get:function(){var m=new s(p);return Object.defineProperty(e,d,{configurable:!0,enumerable:!0,value:m}),m}})}c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:n.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:n.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:n.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:n.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:n.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:n.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:n.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var l;try{l=Sbe()}catch{l=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:n.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",l]})}(IA)),IA}var jA,lR;function Tbe(){if(lR)return jA;lR=1;var t=c8,e=NK(),n=go;function r(i){if(!(this instanceof r))return new r(i);this.hash=i.hash,this.predResist=!!i.predResist,this.outLen=this.hash.outSize,this.minEntropy=i.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var a=e.toArray(i.entropy,i.entropyEnc||"hex"),s=e.toArray(i.nonce,i.nonceEnc||"hex"),c=e.toArray(i.pers,i.persEnc||"hex");n(a.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(a,s,c)}return jA=r,r.prototype._init=function(a,s,c){var l=a.concat(s).concat(c);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var d=0;d<this.V.length;d++)this.K[d]=0,this.V[d]=1;this._update(l),this._reseed=1,this.reseedInterval=281474976710656},r.prototype._hmac=function(){return new t.hmac(this.hash,this.K)},r.prototype._update=function(a){var s=this._hmac().update(this.V).update([0]);a&&(s=s.update(a)),this.K=s.digest(),this.V=this._hmac().update(this.V).digest(),a&&(this.K=this._hmac().update(this.V).update([1]).update(a).digest(),this.V=this._hmac().update(this.V).digest())},r.prototype.reseed=function(a,s,c,l){typeof s!="string"&&(l=c,c=s,s=null),a=e.toArray(a,s),c=e.toArray(c,l),n(a.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(a.concat(c||[])),this._reseed=1},r.prototype.generate=function(a,s,c,l){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof s!="string"&&(l=c,c=s,s=null),c&&(c=e.toArray(c,l||"hex"),this._update(c));for(var d=[];d.length<a;)this.V=this._hmac().update(this.V).digest(),d=d.concat(this.V);var p=d.slice(0,a);return this._update(c),this._reseed++,e.encode(p,s)},jA}var kA,uR;function Ibe(){if(uR)return kA;uR=1;var t=xl(),e=vo(),n=e.assert;function r(i,a){this.ec=i,this.priv=null,this.pub=null,a.priv&&this._importPrivate(a.priv,a.privEnc),a.pub&&this._importPublic(a.pub,a.pubEnc)}return kA=r,r.fromPublic=function(a,s,c){return s instanceof r?s:new r(a,{pub:s,pubEnc:c})},r.fromPrivate=function(a,s,c){return s instanceof r?s:new r(a,{priv:s,privEnc:c})},r.prototype.validate=function(){var a=this.getPublic();return a.isInfinity()?{result:!1,reason:"Invalid public key"}:a.validate()?a.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},r.prototype.getPublic=function(a,s){return typeof a=="string"&&(s=a,a=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),s?this.pub.encode(s,a):this.pub},r.prototype.getPrivate=function(a){return a==="hex"?this.priv.toString(16,2):this.priv},r.prototype._importPrivate=function(a,s){this.priv=new t(a,s||16),this.priv=this.priv.umod(this.ec.curve.n)},r.prototype._importPublic=function(a,s){if(a.x||a.y){this.ec.curve.type==="mont"?n(a.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&n(a.x&&a.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(a.x,a.y);return}this.pub=this.ec.curve.decodePoint(a,s)},r.prototype.derive=function(a){return a.validate()||n(a.validate(),"public point not validated"),a.mul(this.priv).getX()},r.prototype.sign=function(a,s,c){return this.ec.sign(a,this,s,c)},r.prototype.verify=function(a,s,c){return this.ec.verify(a,s,this,void 0,c)},r.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"},kA}var _A,fR;function Dbe(){if(fR)return _A;fR=1;var t=xl(),e=vo(),n=e.assert;function r(l,d){if(l instanceof r)return l;this._importDER(l,d)||(n(l.r&&l.s,"Signature without r or s"),this.r=new t(l.r,16),this.s=new t(l.s,16),l.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=l.recoveryParam)}_A=r;function i(){this.place=0}function a(l,d){var p=l[d.place++];if(!(p&128))return p;var m=p&15;if(m===0||m>4||l[d.place]===0)return!1;for(var g=0,M=0,C=d.place;M<m;M++,C++)g<<=8,g|=l[C],g>>>=0;return g<=127?!1:(d.place=C,g)}function s(l){for(var d=0,p=l.length-1;!l[d]&&!(l[d+1]&128)&&d<p;)d++;return d===0?l:l.slice(d)}r.prototype._importDER=function(d,p){d=e.toArray(d,p);var m=new i;if(d[m.place++]!==48)return!1;var g=a(d,m);if(g===!1||g+m.place!==d.length||d[m.place++]!==2)return!1;var M=a(d,m);if(M===!1||d[m.place]&128)return!1;var C=d.slice(m.place,M+m.place);if(m.place+=M,d[m.place++]!==2)return!1;var T=a(d,m);if(T===!1||d.length!==T+m.place||d[m.place]&128)return!1;var D=d.slice(m.place,T+m.place);if(C[0]===0)if(C[1]&128)C=C.slice(1);else return!1;if(D[0]===0)if(D[1]&128)D=D.slice(1);else return!1;return this.r=new t(C),this.s=new t(D),this.recoveryParam=null,!0};function c(l,d){if(d<128){l.push(d);return}var p=1+(Math.log(d)/Math.LN2>>>3);for(l.push(p|128);--p;)l.push(d>>>(p<<3)&255);l.push(d)}return r.prototype.toDER=function(d){var p=this.r.toArray(),m=this.s.toArray();for(p[0]&128&&(p=[0].concat(p)),m[0]&128&&(m=[0].concat(m)),p=s(p),m=s(m);!m[0]&&!(m[1]&128);)m=m.slice(1);var g=[2];c(g,p.length),g=g.concat(p),g.push(2),c(g,m.length);var M=g.concat(m),C=[48];return c(C,M.length),C=C.concat(M),e.encode(C,d)},_A}var OA,dR;function Nbe(){if(dR)return OA;dR=1;var t=xl(),e=Tbe(),n=vo(),r=dL(),i=lL(),a=n.assert,s=Ibe(),c=Dbe();function l(d){if(!(this instanceof l))return new l(d);typeof d=="string"&&(a(Object.prototype.hasOwnProperty.call(r,d),"Unknown curve "+d),d=r[d]),d instanceof r.PresetCurve&&(d={curve:d}),this.curve=d.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=d.curve.g,this.g.precompute(d.curve.n.bitLength()+1),this.hash=d.hash||d.curve.hash}return OA=l,l.prototype.keyPair=function(p){return new s(this,p)},l.prototype.keyFromPrivate=function(p,m){return s.fromPrivate(this,p,m)},l.prototype.keyFromPublic=function(p,m){return s.fromPublic(this,p,m)},l.prototype.genKeyPair=function(p){p||(p={});for(var m=new e({hash:this.hash,pers:p.pers,persEnc:p.persEnc||"utf8",entropy:p.entropy||i(this.hash.hmacStrength),entropyEnc:p.entropy&&p.entropyEnc||"utf8",nonce:this.n.toArray()}),g=this.n.byteLength(),M=this.n.sub(new t(2));;){var C=new t(m.generate(g));if(!(C.cmp(M)>0))return C.iaddn(1),this.keyFromPrivate(C)}},l.prototype._truncateToN=function(p,m,g){var M;if(t.isBN(p)||typeof p=="number")p=new t(p,16),M=p.byteLength();else if(typeof p=="object")M=p.length,p=new t(p,16);else{var C=p.toString();M=C.length+1>>>1,p=new t(C,16)}typeof g!="number"&&(g=M*8);var T=g-this.n.bitLength();return T>0&&(p=p.ushrn(T)),!m&&p.cmp(this.n)>=0?p.sub(this.n):p},l.prototype.sign=function(p,m,g,M){if(typeof g=="object"&&(M=g,g=null),M||(M={}),typeof p!="string"&&typeof p!="number"&&!t.isBN(p)){a(typeof p=="object"&&p&&typeof p.length=="number","Expected message to be an array-like, a hex string, or a BN instance"),a(p.length>>>0===p.length);for(var C=0;C<p.length;C++)a((p[C]&255)===p[C])}m=this.keyFromPrivate(m,g),p=this._truncateToN(p,!1,M.msgBitLength),a(!p.isNeg(),"Can not sign a negative message");var T=this.n.byteLength(),D=m.getPrivate().toArray("be",T),S=p.toArray("be",T);a(new t(S).eq(p),"Can not sign message");for(var I=new e({hash:this.hash,entropy:D,nonce:S,pers:M.pers,persEnc:M.persEnc||"utf8"}),N=this.n.sub(new t(1)),B=0;;B++){var k=M.k?M.k(B):new t(I.generate(this.n.byteLength()));if(k=this._truncateToN(k,!0),!(k.cmpn(1)<=0||k.cmp(N)>=0)){var O=this.g.mul(k);if(!O.isInfinity()){var z=O.getX(),_=z.umod(this.n);if(_.cmpn(0)!==0){var F=k.invm(this.n).mul(_.mul(m.getPrivate()).iadd(p));if(F=F.umod(this.n),F.cmpn(0)!==0){var R=(O.getY().isOdd()?1:0)|(z.cmp(_)!==0?2:0);return M.canonical&&F.cmp(this.nh)>0&&(F=this.n.sub(F),R^=1),new c({r:_,s:F,recoveryParam:R})}}}}}},l.prototype.verify=function(p,m,g,M,C){C||(C={}),p=this._truncateToN(p,!1,C.msgBitLength),g=this.keyFromPublic(g,M),m=new c(m,"hex");var T=m.r,D=m.s;if(T.cmpn(1)<0||T.cmp(this.n)>=0||D.cmpn(1)<0||D.cmp(this.n)>=0)return!1;var S=D.invm(this.n),I=S.mul(p).umod(this.n),N=S.mul(T).umod(this.n),B;return this.curve._maxwellTrick?(B=this.g.jmulAdd(I,g.getPublic(),N),B.isInfinity()?!1:B.eqXToP(T)):(B=this.g.mulAdd(I,g.getPublic(),N),B.isInfinity()?!1:B.getX().umod(this.n).cmp(T)===0)},l.prototype.recoverPubKey=function(d,p,m,g){a((3&m)===m,"The recovery param is more than two bits"),p=new c(p,g);var M=this.n,C=new t(d),T=p.r,D=p.s,S=m&1,I=m>>1;if(T.cmp(this.curve.p.umod(this.curve.n))>=0&&I)throw new Error("Unable to find sencond key candinate");I?T=this.curve.pointFromX(T.add(this.curve.n),S):T=this.curve.pointFromX(T,S);var N=p.r.invm(M),B=M.sub(C).mul(N).umod(M),k=D.mul(N).umod(M);return this.g.mulAdd(B,T,k)},l.prototype.getKeyRecoveryParam=function(d,p,m,g){if(p=new c(p,g),p.recoveryParam!==null)return p.recoveryParam;for(var M=0;M<4;M++){var C;try{C=this.recoverPubKey(d,p,M)}catch{continue}if(C.eq(m))return M}throw new Error("Unable to find valid recovery factor")},OA}var FA,hR;function Lbe(){if(hR)return FA;hR=1;var t=vo(),e=t.assert,n=t.parseBytes,r=t.cachedProperty;function i(a,s){this.eddsa=a,this._secret=n(s.secret),a.isPoint(s.pub)?this._pub=s.pub:this._pubBytes=n(s.pub)}return i.fromPublic=function(s,c){return c instanceof i?c:new i(s,{pub:c})},i.fromSecret=function(s,c){return c instanceof i?c:new i(s,{secret:c})},i.prototype.secret=function(){return this._secret},r(i,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),r(i,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),r(i,"privBytes",function(){var s=this.eddsa,c=this.hash(),l=s.encodingLength-1,d=c.slice(0,s.encodingLength);return d[0]&=248,d[l]&=127,d[l]|=64,d}),r(i,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),r(i,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),r(i,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),i.prototype.sign=function(s){return e(this._secret,"KeyPair can only verify"),this.eddsa.sign(s,this)},i.prototype.verify=function(s,c){return this.eddsa.verify(s,c,this)},i.prototype.getSecret=function(s){return e(this._secret,"KeyPair is public only"),t.encode(this.secret(),s)},i.prototype.getPublic=function(s){return t.encode(this.pubBytes(),s)},FA=i,FA}var zA,pR;function Bbe(){if(pR)return zA;pR=1;var t=xl(),e=vo(),n=e.assert,r=e.cachedProperty,i=e.parseBytes;function a(s,c){this.eddsa=s,typeof c!="object"&&(c=i(c)),Array.isArray(c)&&(n(c.length===s.encodingLength*2,"Signature has invalid size"),c={R:c.slice(0,s.encodingLength),S:c.slice(s.encodingLength)}),n(c.R&&c.S,"Signature without R or S"),s.isPoint(c.R)&&(this._R=c.R),c.S instanceof t&&(this._S=c.S),this._Rencoded=Array.isArray(c.R)?c.R:c.Rencoded,this._Sencoded=Array.isArray(c.S)?c.S:c.Sencoded}return r(a,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),r(a,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),r(a,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),r(a,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),a.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},a.prototype.toHex=function(){return e.encode(this.toBytes(),"hex").toUpperCase()},zA=a,zA}var RA,bR;function jbe(){if(bR)return RA;bR=1;var t=c8,e=dL(),n=vo(),r=n.assert,i=n.parseBytes,a=Lbe(),s=Bbe();function c(l){if(r(l==="ed25519","only tested with ed25519 so far"),!(this instanceof c))return new c(l);l=e[l].curve,this.curve=l,this.g=l.g,this.g.precompute(l.n.bitLength()+1),this.pointClass=l.point().constructor,this.encodingLength=Math.ceil(l.n.bitLength()/8),this.hash=t.sha512}return RA=c,c.prototype.sign=function(d,p){d=i(d);var m=this.keyFromSecret(p),g=this.hashInt(m.messagePrefix(),d),M=this.g.mul(g),C=this.encodePoint(M),T=this.hashInt(C,m.pubBytes(),d).mul(m.priv()),D=g.add(T).umod(this.curve.n);return this.makeSignature({R:M,S:D,Rencoded:C})},c.prototype.verify=function(d,p,m){if(d=i(d),p=this.makeSignature(p),p.S().gte(p.eddsa.curve.n)||p.S().isNeg())return!1;var g=this.keyFromPublic(m),M=this.hashInt(p.Rencoded(),g.pubBytes(),d),C=this.g.mul(p.S()),T=p.R().add(g.pub().mul(M));return T.eq(C)},c.prototype.hashInt=function(){for(var d=this.hash(),p=0;p<arguments.length;p++)d.update(arguments[p]);return n.intFromLE(d.digest()).umod(this.curve.n)},c.prototype.keyFromPublic=function(d){return a.fromPublic(this,d)},c.prototype.keyFromSecret=function(d){return a.fromSecret(this,d)},c.prototype.makeSignature=function(d){return d instanceof s?d:new s(this,d)},c.prototype.encodePoint=function(d){var p=d.getY().toArray("le",this.encodingLength);return p[this.encodingLength-1]|=d.getX().isOdd()?128:0,p},c.prototype.decodePoint=function(d){d=n.parseBytes(d);var p=d.length-1,m=d.slice(0,p).concat(d[p]&-129),g=(d[p]&128)!==0,M=n.intFromLE(m);return this.curve.pointFromY(M,g)},c.prototype.encodeInt=function(d){return d.toArray("le",this.encodingLength)},c.prototype.decodeInt=function(d){return n.intFromLE(d)},c.prototype.isPoint=function(d){return d instanceof this.pointClass},RA}var mR;function hL(){return mR||(mR=1,function(t){var e=t;e.version=q4e.version,e.utils=vo(),e.rand=lL(),e.curve=LK(),e.curves=dL(),e.ec=Nbe(),e.eddsa=jbe()}(MA)),MA}var vs={},PA={},Vm={exports:{}};Vm.exports;var yR;function kbe(){return yR||(yR=1,function(t){(function(e,n){function r(w,o){if(!w)throw new Error(o||"Assertion failed")}function i(w,o){w.super_=o;var u=function(){};u.prototype=o.prototype,w.prototype=new u,w.prototype.constructor=w}function a(w,o,u){if(a.isBN(w))return w;this.negative=0,this.words=null,this.length=0,this.red=null,w!==null&&((o==="le"||o==="be")&&(u=o,o=10),this._init(w||0,o||10,u||"be"))}typeof e=="object"?e.exports=a:n.BN=a,a.BN=a,a.wordSize=26;var s;try{typeof window<"u"&&typeof window.Buffer<"u"?s=window.Buffer:s=wt.Buffer}catch{}a.isBN=function(o){return o instanceof a?!0:o!==null&&typeof o=="object"&&o.constructor.wordSize===a.wordSize&&Array.isArray(o.words)},a.max=function(o,u){return o.cmp(u)>0?o:u},a.min=function(o,u){return o.cmp(u)<0?o:u},a.prototype._init=function(o,u,h){if(typeof o=="number")return this._initNumber(o,u,h);if(typeof o=="object")return this._initArray(o,u,h);u==="hex"&&(u=16),r(u===(u|0)&&u>=2&&u<=36),o=o.toString().replace(/\s+/g,"");var b=0;o[0]==="-"&&(b++,this.negative=1),b<o.length&&(u===16?this._parseHex(o,b,h):(this._parseBase(o,u,b),h==="le"&&this._initArray(this.toArray(),u,h)))},a.prototype._initNumber=function(o,u,h){o<0&&(this.negative=1,o=-o),o<67108864?(this.words=[o&67108863],this.length=1):o<4503599627370496?(this.words=[o&67108863,o/67108864&67108863],this.length=2):(r(o<9007199254740992),this.words=[o&67108863,o/67108864&67108863,1],this.length=3),h==="le"&&this._initArray(this.toArray(),u,h)},a.prototype._initArray=function(o,u,h){if(r(typeof o.length=="number"),o.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(o.length/3),this.words=new Array(this.length);for(var b=0;b<this.length;b++)this.words[b]=0;var y,x,E=0;if(h==="be")for(b=o.length-1,y=0;b>=0;b-=3)x=o[b]|o[b-1]<<8|o[b-2]<<16,this.words[y]|=x<<E&67108863,this.words[y+1]=x>>>26-E&67108863,E+=24,E>=26&&(E-=26,y++);else if(h==="le")for(b=0,y=0;b<o.length;b+=3)x=o[b]|o[b+1]<<8|o[b+2]<<16,this.words[y]|=x<<E&67108863,this.words[y+1]=x>>>26-E&67108863,E+=24,E>=26&&(E-=26,y++);return this.strip()};function c(w,o){var u=w.charCodeAt(o);return u>=65&&u<=70?u-55:u>=97&&u<=102?u-87:u-48&15}function l(w,o,u){var h=c(w,u);return u-1>=o&&(h|=c(w,u-1)<<4),h}a.prototype._parseHex=function(o,u,h){this.length=Math.ceil((o.length-u)/6),this.words=new Array(this.length);for(var b=0;b<this.length;b++)this.words[b]=0;var y=0,x=0,E;if(h==="be")for(b=o.length-1;b>=u;b-=2)E=l(o,u,b)<<y,this.words[x]|=E&67108863,y>=18?(y-=18,x+=1,this.words[x]|=E>>>26):y+=8;else{var v=o.length-u;for(b=v%2===0?u+1:u;b<o.length;b+=2)E=l(o,u,b)<<y,this.words[x]|=E&67108863,y>=18?(y-=18,x+=1,this.words[x]|=E>>>26):y+=8}this.strip()};function d(w,o,u,h){for(var b=0,y=Math.min(w.length,u),x=o;x<y;x++){var E=w.charCodeAt(x)-48;b*=h,E>=49?b+=E-49+10:E>=17?b+=E-17+10:b+=E}return b}a.prototype._parseBase=function(o,u,h){this.words=[0],this.length=1;for(var b=0,y=1;y<=67108863;y*=u)b++;b--,y=y/u|0;for(var x=o.length-h,E=x%b,v=Math.min(x,x-E)+h,f=0,A=h;A<v;A+=b)f=d(o,A,A+b,u),this.imuln(y),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f);if(E!==0){var j=1;for(f=d(o,A,o.length,u),A=0;A<E;A++)j*=u;this.imuln(j),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f)}this.strip()},a.prototype.copy=function(o){o.words=new Array(this.length);for(var u=0;u<this.length;u++)o.words[u]=this.words[u];o.length=this.length,o.negative=this.negative,o.red=this.red},a.prototype.clone=function(){var o=new a(null);return this.copy(o),o},a.prototype._expand=function(o){for(;this.length<o;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var p=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],m=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],g=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(o,u){o=o||10,u=u|0||1;var h;if(o===16||o==="hex"){h="";for(var b=0,y=0,x=0;x<this.length;x++){var E=this.words[x],v=((E<<b|y)&16777215).toString(16);y=E>>>24-b&16777215,b+=2,b>=26&&(b-=26,x--),y!==0||x!==this.length-1?h=p[6-v.length]+v+h:h=v+h}for(y!==0&&(h=y.toString(16)+h);h.length%u!==0;)h="0"+h;return this.negative!==0&&(h="-"+h),h}if(o===(o|0)&&o>=2&&o<=36){var f=m[o],A=g[o];h="";var j=this.clone();for(j.negative=0;!j.isZero();){var P=j.modn(A).toString(o);j=j.idivn(A),j.isZero()?h=P+h:h=p[f-P.length]+P+h}for(this.isZero()&&(h="0"+h);h.length%u!==0;)h="0"+h;return this.negative!==0&&(h="-"+h),h}r(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(o,u){return r(typeof s<"u"),this.toArrayLike(s,o,u)},a.prototype.toArray=function(o,u){return this.toArrayLike(Array,o,u)},a.prototype.toArrayLike=function(o,u,h){var b=this.byteLength(),y=h||Math.max(1,b);r(b<=y,"byte array longer than desired length"),r(y>0,"Requested array length <= 0"),this.strip();var x=u==="le",E=new o(y),v,f,A=this.clone();if(x){for(f=0;!A.isZero();f++)v=A.andln(255),A.iushrn(8),E[f]=v;for(;f<y;f++)E[f]=0}else{for(f=0;f<y-b;f++)E[f]=0;for(f=0;!A.isZero();f++)v=A.andln(255),A.iushrn(8),E[y-f-1]=v}return E},Math.clz32?a.prototype._countBits=function(o){return 32-Math.clz32(o)}:a.prototype._countBits=function(o){var u=o,h=0;return u>=4096&&(h+=13,u>>>=13),u>=64&&(h+=7,u>>>=7),u>=8&&(h+=4,u>>>=4),u>=2&&(h+=2,u>>>=2),h+u},a.prototype._zeroBits=function(o){if(o===0)return 26;var u=o,h=0;return u&8191||(h+=13,u>>>=13),u&127||(h+=7,u>>>=7),u&15||(h+=4,u>>>=4),u&3||(h+=2,u>>>=2),u&1||h++,h},a.prototype.bitLength=function(){var o=this.words[this.length-1],u=this._countBits(o);return(this.length-1)*26+u};function M(w){for(var o=new Array(w.bitLength()),u=0;u<o.length;u++){var h=u/26|0,b=u%26;o[u]=(w.words[h]&1<<b)>>>b}return o}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,u=0;u<this.length;u++){var h=this._zeroBits(this.words[u]);if(o+=h,h!==26)break}return o},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(o){return this.negative!==0?this.abs().inotn(o).iaddn(1):this.clone()},a.prototype.fromTwos=function(o){return this.testn(o-1)?this.notn(o).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(o){for(;this.length<o.length;)this.words[this.length++]=0;for(var u=0;u<o.length;u++)this.words[u]=this.words[u]|o.words[u];return this.strip()},a.prototype.ior=function(o){return r((this.negative|o.negative)===0),this.iuor(o)},a.prototype.or=function(o){return this.length>o.length?this.clone().ior(o):o.clone().ior(this)},a.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},a.prototype.iuand=function(o){var u;this.length>o.length?u=o:u=this;for(var h=0;h<u.length;h++)this.words[h]=this.words[h]&o.words[h];return this.length=u.length,this.strip()},a.prototype.iand=function(o){return r((this.negative|o.negative)===0),this.iuand(o)},a.prototype.and=function(o){return this.length>o.length?this.clone().iand(o):o.clone().iand(this)},a.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},a.prototype.iuxor=function(o){var u,h;this.length>o.length?(u=this,h=o):(u=o,h=this);for(var b=0;b<h.length;b++)this.words[b]=u.words[b]^h.words[b];if(this!==u)for(;b<u.length;b++)this.words[b]=u.words[b];return this.length=u.length,this.strip()},a.prototype.ixor=function(o){return r((this.negative|o.negative)===0),this.iuxor(o)},a.prototype.xor=function(o){return this.length>o.length?this.clone().ixor(o):o.clone().ixor(this)},a.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},a.prototype.inotn=function(o){r(typeof o=="number"&&o>=0);var u=Math.ceil(o/26)|0,h=o%26;this._expand(u),h>0&&u--;for(var b=0;b<u;b++)this.words[b]=~this.words[b]&67108863;return h>0&&(this.words[b]=~this.words[b]&67108863>>26-h),this.strip()},a.prototype.notn=function(o){return this.clone().inotn(o)},a.prototype.setn=function(o,u){r(typeof o=="number"&&o>=0);var h=o/26|0,b=o%26;return this._expand(h+1),u?this.words[h]=this.words[h]|1<<b:this.words[h]=this.words[h]&~(1<<b),this.strip()},a.prototype.iadd=function(o){var u;if(this.negative!==0&&o.negative===0)return this.negative=0,u=this.isub(o),this.negative^=1,this._normSign();if(this.negative===0&&o.negative!==0)return o.negative=0,u=this.isub(o),o.negative=1,u._normSign();var h,b;this.length>o.length?(h=this,b=o):(h=o,b=this);for(var y=0,x=0;x<b.length;x++)u=(h.words[x]|0)+(b.words[x]|0)+y,this.words[x]=u&67108863,y=u>>>26;for(;y!==0&&x<h.length;x++)u=(h.words[x]|0)+y,this.words[x]=u&67108863,y=u>>>26;if(this.length=h.length,y!==0)this.words[this.length]=y,this.length++;else if(h!==this)for(;x<h.length;x++)this.words[x]=h.words[x];return this},a.prototype.add=function(o){var u;return o.negative!==0&&this.negative===0?(o.negative=0,u=this.sub(o),o.negative^=1,u):o.negative===0&&this.negative!==0?(this.negative=0,u=o.sub(this),this.negative=1,u):this.length>o.length?this.clone().iadd(o):o.clone().iadd(this)},a.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var u=this.iadd(o);return o.negative=1,u._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var h=this.cmp(o);if(h===0)return this.negative=0,this.length=1,this.words[0]=0,this;var b,y;h>0?(b=this,y=o):(b=o,y=this);for(var x=0,E=0;E<y.length;E++)u=(b.words[E]|0)-(y.words[E]|0)+x,x=u>>26,this.words[E]=u&67108863;for(;x!==0&&E<b.length;E++)u=(b.words[E]|0)+x,x=u>>26,this.words[E]=u&67108863;if(x===0&&E<b.length&&b!==this)for(;E<b.length;E++)this.words[E]=b.words[E];return this.length=Math.max(this.length,E),b!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(o){return this.clone().isub(o)};function C(w,o,u){u.negative=o.negative^w.negative;var h=w.length+o.length|0;u.length=h,h=h-1|0;var b=w.words[0]|0,y=o.words[0]|0,x=b*y,E=x&67108863,v=x/67108864|0;u.words[0]=E;for(var f=1;f<h;f++){for(var A=v>>>26,j=v&67108863,P=Math.min(f,o.length-1),$=Math.max(0,f-w.length+1);$<=P;$++){var K=f-$|0;b=w.words[K]|0,y=o.words[$]|0,x=b*y+j,A+=x/67108864|0,j=x&67108863}u.words[f]=j|0,v=A|0}return v!==0?u.words[f]=v|0:u.length--,u.strip()}var T=function(o,u,h){var b=o.words,y=u.words,x=h.words,E=0,v,f,A,j=b[0]|0,P=j&8191,$=j>>>13,K=b[1]|0,Q=K&8191,H=K>>>13,V=b[2]|0,J=V&8191,ae=V>>>13,te=b[3]|0,Z=te&8191,ce=te>>>13,De=b[4]|0,pe=De&8191,Se=De>>>13,st=b[5]|0,ve=st&8191,Ne=st>>>13,lt=b[6]|0,Me=lt&8191,ye=lt>>>13,_e=b[7]|0,be=_e&8191,we=_e>>>13,yt=b[8]|0,q=yt&8191,U=yt>>>13,Y=b[9]|0,ie=Y&8191,ue=Y>>>13,Ce=y[0]|0,fe=Ce&8191,Ae=Ce>>>13,at=y[1]|0,Ee=at&8191,Be=at>>>13,Mt=y[2]|0,Oe=Mt&8191,Ge=Mt>>>13,Qt=y[3]|0,ze=Qt&8191,$e=Qt>>>13,rn=y[4]|0,We=rn&8191,qe=rn>>>13,bn=y[5]|0,Ye=bn&8191,Ze=bn>>>13,vn=y[6]|0,Pe=vn&8191,Ke=vn>>>13,X=y[7]|0,ee=X&8191,ne=X>>>13,W=y[8]|0,re=W&8191,de=W>>>13,Ie=y[9]|0,he=Ie&8191,xe=Ie>>>13;h.negative=o.negative^u.negative,h.length=19,v=Math.imul(P,fe),f=Math.imul(P,Ae),f=f+Math.imul($,fe)|0,A=Math.imul($,Ae);var it=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(it>>>26)|0,it&=67108863,v=Math.imul(Q,fe),f=Math.imul(Q,Ae),f=f+Math.imul(H,fe)|0,A=Math.imul(H,Ae),v=v+Math.imul(P,Ee)|0,f=f+Math.imul(P,Be)|0,f=f+Math.imul($,Ee)|0,A=A+Math.imul($,Be)|0;var Xe=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,v=Math.imul(J,fe),f=Math.imul(J,Ae),f=f+Math.imul(ae,fe)|0,A=Math.imul(ae,Ae),v=v+Math.imul(Q,Ee)|0,f=f+Math.imul(Q,Be)|0,f=f+Math.imul(H,Ee)|0,A=A+Math.imul(H,Be)|0,v=v+Math.imul(P,Oe)|0,f=f+Math.imul(P,Ge)|0,f=f+Math.imul($,Oe)|0,A=A+Math.imul($,Ge)|0;var $t=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+($t>>>26)|0,$t&=67108863,v=Math.imul(Z,fe),f=Math.imul(Z,Ae),f=f+Math.imul(ce,fe)|0,A=Math.imul(ce,Ae),v=v+Math.imul(J,Ee)|0,f=f+Math.imul(J,Be)|0,f=f+Math.imul(ae,Ee)|0,A=A+Math.imul(ae,Be)|0,v=v+Math.imul(Q,Oe)|0,f=f+Math.imul(Q,Ge)|0,f=f+Math.imul(H,Oe)|0,A=A+Math.imul(H,Ge)|0,v=v+Math.imul(P,ze)|0,f=f+Math.imul(P,$e)|0,f=f+Math.imul($,ze)|0,A=A+Math.imul($,$e)|0;var pt=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(pt>>>26)|0,pt&=67108863,v=Math.imul(pe,fe),f=Math.imul(pe,Ae),f=f+Math.imul(Se,fe)|0,A=Math.imul(Se,Ae),v=v+Math.imul(Z,Ee)|0,f=f+Math.imul(Z,Be)|0,f=f+Math.imul(ce,Ee)|0,A=A+Math.imul(ce,Be)|0,v=v+Math.imul(J,Oe)|0,f=f+Math.imul(J,Ge)|0,f=f+Math.imul(ae,Oe)|0,A=A+Math.imul(ae,Ge)|0,v=v+Math.imul(Q,ze)|0,f=f+Math.imul(Q,$e)|0,f=f+Math.imul(H,ze)|0,A=A+Math.imul(H,$e)|0,v=v+Math.imul(P,We)|0,f=f+Math.imul(P,qe)|0,f=f+Math.imul($,We)|0,A=A+Math.imul($,qe)|0;var tt=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(tt>>>26)|0,tt&=67108863,v=Math.imul(ve,fe),f=Math.imul(ve,Ae),f=f+Math.imul(Ne,fe)|0,A=Math.imul(Ne,Ae),v=v+Math.imul(pe,Ee)|0,f=f+Math.imul(pe,Be)|0,f=f+Math.imul(Se,Ee)|0,A=A+Math.imul(Se,Be)|0,v=v+Math.imul(Z,Oe)|0,f=f+Math.imul(Z,Ge)|0,f=f+Math.imul(ce,Oe)|0,A=A+Math.imul(ce,Ge)|0,v=v+Math.imul(J,ze)|0,f=f+Math.imul(J,$e)|0,f=f+Math.imul(ae,ze)|0,A=A+Math.imul(ae,$e)|0,v=v+Math.imul(Q,We)|0,f=f+Math.imul(Q,qe)|0,f=f+Math.imul(H,We)|0,A=A+Math.imul(H,qe)|0,v=v+Math.imul(P,Ye)|0,f=f+Math.imul(P,Ze)|0,f=f+Math.imul($,Ye)|0,A=A+Math.imul($,Ze)|0;var At=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(At>>>26)|0,At&=67108863,v=Math.imul(Me,fe),f=Math.imul(Me,Ae),f=f+Math.imul(ye,fe)|0,A=Math.imul(ye,Ae),v=v+Math.imul(ve,Ee)|0,f=f+Math.imul(ve,Be)|0,f=f+Math.imul(Ne,Ee)|0,A=A+Math.imul(Ne,Be)|0,v=v+Math.imul(pe,Oe)|0,f=f+Math.imul(pe,Ge)|0,f=f+Math.imul(Se,Oe)|0,A=A+Math.imul(Se,Ge)|0,v=v+Math.imul(Z,ze)|0,f=f+Math.imul(Z,$e)|0,f=f+Math.imul(ce,ze)|0,A=A+Math.imul(ce,$e)|0,v=v+Math.imul(J,We)|0,f=f+Math.imul(J,qe)|0,f=f+Math.imul(ae,We)|0,A=A+Math.imul(ae,qe)|0,v=v+Math.imul(Q,Ye)|0,f=f+Math.imul(Q,Ze)|0,f=f+Math.imul(H,Ye)|0,A=A+Math.imul(H,Ze)|0,v=v+Math.imul(P,Pe)|0,f=f+Math.imul(P,Ke)|0,f=f+Math.imul($,Pe)|0,A=A+Math.imul($,Ke)|0;var Rt=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,v=Math.imul(be,fe),f=Math.imul(be,Ae),f=f+Math.imul(we,fe)|0,A=Math.imul(we,Ae),v=v+Math.imul(Me,Ee)|0,f=f+Math.imul(Me,Be)|0,f=f+Math.imul(ye,Ee)|0,A=A+Math.imul(ye,Be)|0,v=v+Math.imul(ve,Oe)|0,f=f+Math.imul(ve,Ge)|0,f=f+Math.imul(Ne,Oe)|0,A=A+Math.imul(Ne,Ge)|0,v=v+Math.imul(pe,ze)|0,f=f+Math.imul(pe,$e)|0,f=f+Math.imul(Se,ze)|0,A=A+Math.imul(Se,$e)|0,v=v+Math.imul(Z,We)|0,f=f+Math.imul(Z,qe)|0,f=f+Math.imul(ce,We)|0,A=A+Math.imul(ce,qe)|0,v=v+Math.imul(J,Ye)|0,f=f+Math.imul(J,Ze)|0,f=f+Math.imul(ae,Ye)|0,A=A+Math.imul(ae,Ze)|0,v=v+Math.imul(Q,Pe)|0,f=f+Math.imul(Q,Ke)|0,f=f+Math.imul(H,Pe)|0,A=A+Math.imul(H,Ke)|0,v=v+Math.imul(P,ee)|0,f=f+Math.imul(P,ne)|0,f=f+Math.imul($,ee)|0,A=A+Math.imul($,ne)|0;var Ft=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,v=Math.imul(q,fe),f=Math.imul(q,Ae),f=f+Math.imul(U,fe)|0,A=Math.imul(U,Ae),v=v+Math.imul(be,Ee)|0,f=f+Math.imul(be,Be)|0,f=f+Math.imul(we,Ee)|0,A=A+Math.imul(we,Be)|0,v=v+Math.imul(Me,Oe)|0,f=f+Math.imul(Me,Ge)|0,f=f+Math.imul(ye,Oe)|0,A=A+Math.imul(ye,Ge)|0,v=v+Math.imul(ve,ze)|0,f=f+Math.imul(ve,$e)|0,f=f+Math.imul(Ne,ze)|0,A=A+Math.imul(Ne,$e)|0,v=v+Math.imul(pe,We)|0,f=f+Math.imul(pe,qe)|0,f=f+Math.imul(Se,We)|0,A=A+Math.imul(Se,qe)|0,v=v+Math.imul(Z,Ye)|0,f=f+Math.imul(Z,Ze)|0,f=f+Math.imul(ce,Ye)|0,A=A+Math.imul(ce,Ze)|0,v=v+Math.imul(J,Pe)|0,f=f+Math.imul(J,Ke)|0,f=f+Math.imul(ae,Pe)|0,A=A+Math.imul(ae,Ke)|0,v=v+Math.imul(Q,ee)|0,f=f+Math.imul(Q,ne)|0,f=f+Math.imul(H,ee)|0,A=A+Math.imul(H,ne)|0,v=v+Math.imul(P,re)|0,f=f+Math.imul(P,de)|0,f=f+Math.imul($,re)|0,A=A+Math.imul($,de)|0;var Bt=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,v=Math.imul(ie,fe),f=Math.imul(ie,Ae),f=f+Math.imul(ue,fe)|0,A=Math.imul(ue,Ae),v=v+Math.imul(q,Ee)|0,f=f+Math.imul(q,Be)|0,f=f+Math.imul(U,Ee)|0,A=A+Math.imul(U,Be)|0,v=v+Math.imul(be,Oe)|0,f=f+Math.imul(be,Ge)|0,f=f+Math.imul(we,Oe)|0,A=A+Math.imul(we,Ge)|0,v=v+Math.imul(Me,ze)|0,f=f+Math.imul(Me,$e)|0,f=f+Math.imul(ye,ze)|0,A=A+Math.imul(ye,$e)|0,v=v+Math.imul(ve,We)|0,f=f+Math.imul(ve,qe)|0,f=f+Math.imul(Ne,We)|0,A=A+Math.imul(Ne,qe)|0,v=v+Math.imul(pe,Ye)|0,f=f+Math.imul(pe,Ze)|0,f=f+Math.imul(Se,Ye)|0,A=A+Math.imul(Se,Ze)|0,v=v+Math.imul(Z,Pe)|0,f=f+Math.imul(Z,Ke)|0,f=f+Math.imul(ce,Pe)|0,A=A+Math.imul(ce,Ke)|0,v=v+Math.imul(J,ee)|0,f=f+Math.imul(J,ne)|0,f=f+Math.imul(ae,ee)|0,A=A+Math.imul(ae,ne)|0,v=v+Math.imul(Q,re)|0,f=f+Math.imul(Q,de)|0,f=f+Math.imul(H,re)|0,A=A+Math.imul(H,de)|0,v=v+Math.imul(P,he)|0,f=f+Math.imul(P,xe)|0,f=f+Math.imul($,he)|0,A=A+Math.imul($,xe)|0;var Ot=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,v=Math.imul(ie,Ee),f=Math.imul(ie,Be),f=f+Math.imul(ue,Ee)|0,A=Math.imul(ue,Be),v=v+Math.imul(q,Oe)|0,f=f+Math.imul(q,Ge)|0,f=f+Math.imul(U,Oe)|0,A=A+Math.imul(U,Ge)|0,v=v+Math.imul(be,ze)|0,f=f+Math.imul(be,$e)|0,f=f+Math.imul(we,ze)|0,A=A+Math.imul(we,$e)|0,v=v+Math.imul(Me,We)|0,f=f+Math.imul(Me,qe)|0,f=f+Math.imul(ye,We)|0,A=A+Math.imul(ye,qe)|0,v=v+Math.imul(ve,Ye)|0,f=f+Math.imul(ve,Ze)|0,f=f+Math.imul(Ne,Ye)|0,A=A+Math.imul(Ne,Ze)|0,v=v+Math.imul(pe,Pe)|0,f=f+Math.imul(pe,Ke)|0,f=f+Math.imul(Se,Pe)|0,A=A+Math.imul(Se,Ke)|0,v=v+Math.imul(Z,ee)|0,f=f+Math.imul(Z,ne)|0,f=f+Math.imul(ce,ee)|0,A=A+Math.imul(ce,ne)|0,v=v+Math.imul(J,re)|0,f=f+Math.imul(J,de)|0,f=f+Math.imul(ae,re)|0,A=A+Math.imul(ae,de)|0,v=v+Math.imul(Q,he)|0,f=f+Math.imul(Q,xe)|0,f=f+Math.imul(H,he)|0,A=A+Math.imul(H,xe)|0;var jt=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(jt>>>26)|0,jt&=67108863,v=Math.imul(ie,Oe),f=Math.imul(ie,Ge),f=f+Math.imul(ue,Oe)|0,A=Math.imul(ue,Ge),v=v+Math.imul(q,ze)|0,f=f+Math.imul(q,$e)|0,f=f+Math.imul(U,ze)|0,A=A+Math.imul(U,$e)|0,v=v+Math.imul(be,We)|0,f=f+Math.imul(be,qe)|0,f=f+Math.imul(we,We)|0,A=A+Math.imul(we,qe)|0,v=v+Math.imul(Me,Ye)|0,f=f+Math.imul(Me,Ze)|0,f=f+Math.imul(ye,Ye)|0,A=A+Math.imul(ye,Ze)|0,v=v+Math.imul(ve,Pe)|0,f=f+Math.imul(ve,Ke)|0,f=f+Math.imul(Ne,Pe)|0,A=A+Math.imul(Ne,Ke)|0,v=v+Math.imul(pe,ee)|0,f=f+Math.imul(pe,ne)|0,f=f+Math.imul(Se,ee)|0,A=A+Math.imul(Se,ne)|0,v=v+Math.imul(Z,re)|0,f=f+Math.imul(Z,de)|0,f=f+Math.imul(ce,re)|0,A=A+Math.imul(ce,de)|0,v=v+Math.imul(J,he)|0,f=f+Math.imul(J,xe)|0,f=f+Math.imul(ae,he)|0,A=A+Math.imul(ae,xe)|0;var gt=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(gt>>>26)|0,gt&=67108863,v=Math.imul(ie,ze),f=Math.imul(ie,$e),f=f+Math.imul(ue,ze)|0,A=Math.imul(ue,$e),v=v+Math.imul(q,We)|0,f=f+Math.imul(q,qe)|0,f=f+Math.imul(U,We)|0,A=A+Math.imul(U,qe)|0,v=v+Math.imul(be,Ye)|0,f=f+Math.imul(be,Ze)|0,f=f+Math.imul(we,Ye)|0,A=A+Math.imul(we,Ze)|0,v=v+Math.imul(Me,Pe)|0,f=f+Math.imul(Me,Ke)|0,f=f+Math.imul(ye,Pe)|0,A=A+Math.imul(ye,Ke)|0,v=v+Math.imul(ve,ee)|0,f=f+Math.imul(ve,ne)|0,f=f+Math.imul(Ne,ee)|0,A=A+Math.imul(Ne,ne)|0,v=v+Math.imul(pe,re)|0,f=f+Math.imul(pe,de)|0,f=f+Math.imul(Se,re)|0,A=A+Math.imul(Se,de)|0,v=v+Math.imul(Z,he)|0,f=f+Math.imul(Z,xe)|0,f=f+Math.imul(ce,he)|0,A=A+Math.imul(ce,xe)|0;var Et=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(Et>>>26)|0,Et&=67108863,v=Math.imul(ie,We),f=Math.imul(ie,qe),f=f+Math.imul(ue,We)|0,A=Math.imul(ue,qe),v=v+Math.imul(q,Ye)|0,f=f+Math.imul(q,Ze)|0,f=f+Math.imul(U,Ye)|0,A=A+Math.imul(U,Ze)|0,v=v+Math.imul(be,Pe)|0,f=f+Math.imul(be,Ke)|0,f=f+Math.imul(we,Pe)|0,A=A+Math.imul(we,Ke)|0,v=v+Math.imul(Me,ee)|0,f=f+Math.imul(Me,ne)|0,f=f+Math.imul(ye,ee)|0,A=A+Math.imul(ye,ne)|0,v=v+Math.imul(ve,re)|0,f=f+Math.imul(ve,de)|0,f=f+Math.imul(Ne,re)|0,A=A+Math.imul(Ne,de)|0,v=v+Math.imul(pe,he)|0,f=f+Math.imul(pe,xe)|0,f=f+Math.imul(Se,he)|0,A=A+Math.imul(Se,xe)|0;var ht=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(ht>>>26)|0,ht&=67108863,v=Math.imul(ie,Ye),f=Math.imul(ie,Ze),f=f+Math.imul(ue,Ye)|0,A=Math.imul(ue,Ze),v=v+Math.imul(q,Pe)|0,f=f+Math.imul(q,Ke)|0,f=f+Math.imul(U,Pe)|0,A=A+Math.imul(U,Ke)|0,v=v+Math.imul(be,ee)|0,f=f+Math.imul(be,ne)|0,f=f+Math.imul(we,ee)|0,A=A+Math.imul(we,ne)|0,v=v+Math.imul(Me,re)|0,f=f+Math.imul(Me,de)|0,f=f+Math.imul(ye,re)|0,A=A+Math.imul(ye,de)|0,v=v+Math.imul(ve,he)|0,f=f+Math.imul(ve,xe)|0,f=f+Math.imul(Ne,he)|0,A=A+Math.imul(Ne,xe)|0;var vt=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(vt>>>26)|0,vt&=67108863,v=Math.imul(ie,Pe),f=Math.imul(ie,Ke),f=f+Math.imul(ue,Pe)|0,A=Math.imul(ue,Ke),v=v+Math.imul(q,ee)|0,f=f+Math.imul(q,ne)|0,f=f+Math.imul(U,ee)|0,A=A+Math.imul(U,ne)|0,v=v+Math.imul(be,re)|0,f=f+Math.imul(be,de)|0,f=f+Math.imul(we,re)|0,A=A+Math.imul(we,de)|0,v=v+Math.imul(Me,he)|0,f=f+Math.imul(Me,xe)|0,f=f+Math.imul(ye,he)|0,A=A+Math.imul(ye,xe)|0;var xt=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(xt>>>26)|0,xt&=67108863,v=Math.imul(ie,ee),f=Math.imul(ie,ne),f=f+Math.imul(ue,ee)|0,A=Math.imul(ue,ne),v=v+Math.imul(q,re)|0,f=f+Math.imul(q,de)|0,f=f+Math.imul(U,re)|0,A=A+Math.imul(U,de)|0,v=v+Math.imul(be,he)|0,f=f+Math.imul(be,xe)|0,f=f+Math.imul(we,he)|0,A=A+Math.imul(we,xe)|0;var ut=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(ut>>>26)|0,ut&=67108863,v=Math.imul(ie,re),f=Math.imul(ie,de),f=f+Math.imul(ue,re)|0,A=Math.imul(ue,de),v=v+Math.imul(q,he)|0,f=f+Math.imul(q,xe)|0,f=f+Math.imul(U,he)|0,A=A+Math.imul(U,xe)|0;var Fe=(E+v|0)+((f&8191)<<13)|0;E=(A+(f>>>13)|0)+(Fe>>>26)|0,Fe&=67108863,v=Math.imul(ie,he),f=Math.imul(ie,xe),f=f+Math.imul(ue,he)|0,A=Math.imul(ue,xe);var Re=(E+v|0)+((f&8191)<<13)|0;return E=(A+(f>>>13)|0)+(Re>>>26)|0,Re&=67108863,x[0]=it,x[1]=Xe,x[2]=$t,x[3]=pt,x[4]=tt,x[5]=At,x[6]=Rt,x[7]=Ft,x[8]=Bt,x[9]=Ot,x[10]=jt,x[11]=gt,x[12]=Et,x[13]=ht,x[14]=vt,x[15]=xt,x[16]=ut,x[17]=Fe,x[18]=Re,E!==0&&(x[19]=E,h.length++),h};Math.imul||(T=C);function D(w,o,u){u.negative=o.negative^w.negative,u.length=w.length+o.length;for(var h=0,b=0,y=0;y<u.length-1;y++){var x=b;b=0;for(var E=h&67108863,v=Math.min(y,o.length-1),f=Math.max(0,y-w.length+1);f<=v;f++){var A=y-f,j=w.words[A]|0,P=o.words[f]|0,$=j*P,K=$&67108863;x=x+($/67108864|0)|0,K=K+E|0,E=K&67108863,x=x+(K>>>26)|0,b+=x>>>26,x&=67108863}u.words[y]=E,h=x,x=b}return h!==0?u.words[y]=h:u.length--,u.strip()}function S(w,o,u){var h=new I;return h.mulp(w,o,u)}a.prototype.mulTo=function(o,u){var h,b=this.length+o.length;return this.length===10&&o.length===10?h=T(this,o,u):b<63?h=C(this,o,u):b<1024?h=D(this,o,u):h=S(this,o,u),h};function I(w,o){this.x=w,this.y=o}I.prototype.makeRBT=function(o){for(var u=new Array(o),h=a.prototype._countBits(o)-1,b=0;b<o;b++)u[b]=this.revBin(b,h,o);return u},I.prototype.revBin=function(o,u,h){if(o===0||o===h-1)return o;for(var b=0,y=0;y<u;y++)b|=(o&1)<<u-y-1,o>>=1;return b},I.prototype.permute=function(o,u,h,b,y,x){for(var E=0;E<x;E++)b[E]=u[o[E]],y[E]=h[o[E]]},I.prototype.transform=function(o,u,h,b,y,x){this.permute(x,o,u,h,b,y);for(var E=1;E<y;E<<=1)for(var v=E<<1,f=Math.cos(2*Math.PI/v),A=Math.sin(2*Math.PI/v),j=0;j<y;j+=v)for(var P=f,$=A,K=0;K<E;K++){var Q=h[j+K],H=b[j+K],V=h[j+K+E],J=b[j+K+E],ae=P*V-$*J;J=P*J+$*V,V=ae,h[j+K]=Q+V,b[j+K]=H+J,h[j+K+E]=Q-V,b[j+K+E]=H-J,K!==v&&(ae=f*P-A*$,$=f*$+A*P,P=ae)}},I.prototype.guessLen13b=function(o,u){var h=Math.max(u,o)|1,b=h&1,y=0;for(h=h/2|0;h;h=h>>>1)y++;return 1<<y+1+b},I.prototype.conjugate=function(o,u,h){if(!(h<=1))for(var b=0;b<h/2;b++){var y=o[b];o[b]=o[h-b-1],o[h-b-1]=y,y=u[b],u[b]=-u[h-b-1],u[h-b-1]=-y}},I.prototype.normalize13b=function(o,u){for(var h=0,b=0;b<u/2;b++){var y=Math.round(o[2*b+1]/u)*8192+Math.round(o[2*b]/u)+h;o[b]=y&67108863,y<67108864?h=0:h=y/67108864|0}return o},I.prototype.convert13b=function(o,u,h,b){for(var y=0,x=0;x<u;x++)y=y+(o[x]|0),h[2*x]=y&8191,y=y>>>13,h[2*x+1]=y&8191,y=y>>>13;for(x=2*u;x<b;++x)h[x]=0;r(y===0),r((y&-8192)===0)},I.prototype.stub=function(o){for(var u=new Array(o),h=0;h<o;h++)u[h]=0;return u},I.prototype.mulp=function(o,u,h){var b=2*this.guessLen13b(o.length,u.length),y=this.makeRBT(b),x=this.stub(b),E=new Array(b),v=new Array(b),f=new Array(b),A=new Array(b),j=new Array(b),P=new Array(b),$=h.words;$.length=b,this.convert13b(o.words,o.length,E,b),this.convert13b(u.words,u.length,A,b),this.transform(E,x,v,f,b,y),this.transform(A,x,j,P,b,y);for(var K=0;K<b;K++){var Q=v[K]*j[K]-f[K]*P[K];f[K]=v[K]*P[K]+f[K]*j[K],v[K]=Q}return this.conjugate(v,f,b),this.transform(v,f,$,x,b,y),this.conjugate($,x,b),this.normalize13b($,b),h.negative=o.negative^u.negative,h.length=o.length+u.length,h.strip()},a.prototype.mul=function(o){var u=new a(null);return u.words=new Array(this.length+o.length),this.mulTo(o,u)},a.prototype.mulf=function(o){var u=new a(null);return u.words=new Array(this.length+o.length),S(this,o,u)},a.prototype.imul=function(o){return this.clone().mulTo(o,this)},a.prototype.imuln=function(o){r(typeof o=="number"),r(o<67108864);for(var u=0,h=0;h<this.length;h++){var b=(this.words[h]|0)*o,y=(b&67108863)+(u&67108863);u>>=26,u+=b/67108864|0,u+=y>>>26,this.words[h]=y&67108863}return u!==0&&(this.words[h]=u,this.length++),this},a.prototype.muln=function(o){return this.clone().imuln(o)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(o){var u=M(o);if(u.length===0)return new a(1);for(var h=this,b=0;b<u.length&&u[b]===0;b++,h=h.sqr());if(++b<u.length)for(var y=h.sqr();b<u.length;b++,y=y.sqr())u[b]!==0&&(h=h.mul(y));return h},a.prototype.iushln=function(o){r(typeof o=="number"&&o>=0);var u=o%26,h=(o-u)/26,b=67108863>>>26-u<<26-u,y;if(u!==0){var x=0;for(y=0;y<this.length;y++){var E=this.words[y]&b,v=(this.words[y]|0)-E<<u;this.words[y]=v|x,x=E>>>26-u}x&&(this.words[y]=x,this.length++)}if(h!==0){for(y=this.length-1;y>=0;y--)this.words[y+h]=this.words[y];for(y=0;y<h;y++)this.words[y]=0;this.length+=h}return this.strip()},a.prototype.ishln=function(o){return r(this.negative===0),this.iushln(o)},a.prototype.iushrn=function(o,u,h){r(typeof o=="number"&&o>=0);var b;u?b=(u-u%26)/26:b=0;var y=o%26,x=Math.min((o-y)/26,this.length),E=67108863^67108863>>>y<<y,v=h;if(b-=x,b=Math.max(0,b),v){for(var f=0;f<x;f++)v.words[f]=this.words[f];v.length=x}if(x!==0)if(this.length>x)for(this.length-=x,f=0;f<this.length;f++)this.words[f]=this.words[f+x];else this.words[0]=0,this.length=1;var A=0;for(f=this.length-1;f>=0&&(A!==0||f>=b);f--){var j=this.words[f]|0;this.words[f]=A<<26-y|j>>>y,A=j&E}return v&&A!==0&&(v.words[v.length++]=A),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(o,u,h){return r(this.negative===0),this.iushrn(o,u,h)},a.prototype.shln=function(o){return this.clone().ishln(o)},a.prototype.ushln=function(o){return this.clone().iushln(o)},a.prototype.shrn=function(o){return this.clone().ishrn(o)},a.prototype.ushrn=function(o){return this.clone().iushrn(o)},a.prototype.testn=function(o){r(typeof o=="number"&&o>=0);var u=o%26,h=(o-u)/26,b=1<<u;if(this.length<=h)return!1;var y=this.words[h];return!!(y&b)},a.prototype.imaskn=function(o){r(typeof o=="number"&&o>=0);var u=o%26,h=(o-u)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=h)return this;if(u!==0&&h++,this.length=Math.min(h,this.length),u!==0){var b=67108863^67108863>>>u<<u;this.words[this.length-1]&=b}return this.strip()},a.prototype.maskn=function(o){return this.clone().imaskn(o)},a.prototype.iaddn=function(o){return r(typeof o=="number"),r(o<67108864),o<0?this.isubn(-o):this.negative!==0?this.length===1&&(this.words[0]|0)<o?(this.words[0]=o-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(o),this.negative=1,this):this._iaddn(o)},a.prototype._iaddn=function(o){this.words[0]+=o;for(var u=0;u<this.length&&this.words[u]>=67108864;u++)this.words[u]-=67108864,u===this.length-1?this.words[u+1]=1:this.words[u+1]++;return this.length=Math.max(this.length,u+1),this},a.prototype.isubn=function(o){if(r(typeof o=="number"),r(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var u=0;u<this.length&&this.words[u]<0;u++)this.words[u]+=67108864,this.words[u+1]-=1;return this.strip()},a.prototype.addn=function(o){return this.clone().iaddn(o)},a.prototype.subn=function(o){return this.clone().isubn(o)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(o,u,h){var b=o.length+h,y;this._expand(b);var x,E=0;for(y=0;y<o.length;y++){x=(this.words[y+h]|0)+E;var v=(o.words[y]|0)*u;x-=v&67108863,E=(x>>26)-(v/67108864|0),this.words[y+h]=x&67108863}for(;y<this.length-h;y++)x=(this.words[y+h]|0)+E,E=x>>26,this.words[y+h]=x&67108863;if(E===0)return this.strip();for(r(E===-1),E=0,y=0;y<this.length;y++)x=-(this.words[y]|0)+E,E=x>>26,this.words[y]=x&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(o,u){var h=this.length-o.length,b=this.clone(),y=o,x=y.words[y.length-1]|0,E=this._countBits(x);h=26-E,h!==0&&(y=y.ushln(h),b.iushln(h),x=y.words[y.length-1]|0);var v=b.length-y.length,f;if(u!=="mod"){f=new a(null),f.length=v+1,f.words=new Array(f.length);for(var A=0;A<f.length;A++)f.words[A]=0}var j=b.clone()._ishlnsubmul(y,1,v);j.negative===0&&(b=j,f&&(f.words[v]=1));for(var P=v-1;P>=0;P--){var $=(b.words[y.length+P]|0)*67108864+(b.words[y.length+P-1]|0);for($=Math.min($/x|0,67108863),b._ishlnsubmul(y,$,P);b.negative!==0;)$--,b.negative=0,b._ishlnsubmul(y,1,P),b.isZero()||(b.negative^=1);f&&(f.words[P]=$)}return f&&f.strip(),b.strip(),u!=="div"&&h!==0&&b.iushrn(h),{div:f||null,mod:b}},a.prototype.divmod=function(o,u,h){if(r(!o.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var b,y,x;return this.negative!==0&&o.negative===0?(x=this.neg().divmod(o,u),u!=="mod"&&(b=x.div.neg()),u!=="div"&&(y=x.mod.neg(),h&&y.negative!==0&&y.iadd(o)),{div:b,mod:y}):this.negative===0&&o.negative!==0?(x=this.divmod(o.neg(),u),u!=="mod"&&(b=x.div.neg()),{div:b,mod:x.mod}):this.negative&o.negative?(x=this.neg().divmod(o.neg(),u),u!=="div"&&(y=x.mod.neg(),h&&y.negative!==0&&y.isub(o)),{div:x.div,mod:y}):o.length>this.length||this.cmp(o)<0?{div:new a(0),mod:this}:o.length===1?u==="div"?{div:this.divn(o.words[0]),mod:null}:u==="mod"?{div:null,mod:new a(this.modn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new a(this.modn(o.words[0]))}:this._wordDiv(o,u)},a.prototype.div=function(o){return this.divmod(o,"div",!1).div},a.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},a.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},a.prototype.divRound=function(o){var u=this.divmod(o);if(u.mod.isZero())return u.div;var h=u.div.negative!==0?u.mod.isub(o):u.mod,b=o.ushrn(1),y=o.andln(1),x=h.cmp(b);return x<0||y===1&&x===0?u.div:u.div.negative!==0?u.div.isubn(1):u.div.iaddn(1)},a.prototype.modn=function(o){r(o<=67108863);for(var u=(1<<26)%o,h=0,b=this.length-1;b>=0;b--)h=(u*h+(this.words[b]|0))%o;return h},a.prototype.idivn=function(o){r(o<=67108863);for(var u=0,h=this.length-1;h>=0;h--){var b=(this.words[h]|0)+u*67108864;this.words[h]=b/o|0,u=b%o}return this.strip()},a.prototype.divn=function(o){return this.clone().idivn(o)},a.prototype.egcd=function(o){r(o.negative===0),r(!o.isZero());var u=this,h=o.clone();u.negative!==0?u=u.umod(o):u=u.clone();for(var b=new a(1),y=new a(0),x=new a(0),E=new a(1),v=0;u.isEven()&&h.isEven();)u.iushrn(1),h.iushrn(1),++v;for(var f=h.clone(),A=u.clone();!u.isZero();){for(var j=0,P=1;!(u.words[0]&P)&&j<26;++j,P<<=1);if(j>0)for(u.iushrn(j);j-- >0;)(b.isOdd()||y.isOdd())&&(b.iadd(f),y.isub(A)),b.iushrn(1),y.iushrn(1);for(var $=0,K=1;!(h.words[0]&K)&&$<26;++$,K<<=1);if($>0)for(h.iushrn($);$-- >0;)(x.isOdd()||E.isOdd())&&(x.iadd(f),E.isub(A)),x.iushrn(1),E.iushrn(1);u.cmp(h)>=0?(u.isub(h),b.isub(x),y.isub(E)):(h.isub(u),x.isub(b),E.isub(y))}return{a:x,b:E,gcd:h.iushln(v)}},a.prototype._invmp=function(o){r(o.negative===0),r(!o.isZero());var u=this,h=o.clone();u.negative!==0?u=u.umod(o):u=u.clone();for(var b=new a(1),y=new a(0),x=h.clone();u.cmpn(1)>0&&h.cmpn(1)>0;){for(var E=0,v=1;!(u.words[0]&v)&&E<26;++E,v<<=1);if(E>0)for(u.iushrn(E);E-- >0;)b.isOdd()&&b.iadd(x),b.iushrn(1);for(var f=0,A=1;!(h.words[0]&A)&&f<26;++f,A<<=1);if(f>0)for(h.iushrn(f);f-- >0;)y.isOdd()&&y.iadd(x),y.iushrn(1);u.cmp(h)>=0?(u.isub(h),b.isub(y)):(h.isub(u),y.isub(b))}var j;return u.cmpn(1)===0?j=b:j=y,j.cmpn(0)<0&&j.iadd(o),j},a.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var u=this.clone(),h=o.clone();u.negative=0,h.negative=0;for(var b=0;u.isEven()&&h.isEven();b++)u.iushrn(1),h.iushrn(1);do{for(;u.isEven();)u.iushrn(1);for(;h.isEven();)h.iushrn(1);var y=u.cmp(h);if(y<0){var x=u;u=h,h=x}else if(y===0||h.cmpn(1)===0)break;u.isub(h)}while(!0);return h.iushln(b)},a.prototype.invm=function(o){return this.egcd(o).a.umod(o)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(o){return this.words[0]&o},a.prototype.bincn=function(o){r(typeof o=="number");var u=o%26,h=(o-u)/26,b=1<<u;if(this.length<=h)return this._expand(h+1),this.words[h]|=b,this;for(var y=b,x=h;y!==0&&x<this.length;x++){var E=this.words[x]|0;E+=y,y=E>>>26,E&=67108863,this.words[x]=E}return y!==0&&(this.words[x]=y,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(o){var u=o<0;if(this.negative!==0&&!u)return-1;if(this.negative===0&&u)return 1;this.strip();var h;if(this.length>1)h=1;else{u&&(o=-o),r(o<=67108863,"Number is too big");var b=this.words[0]|0;h=b===o?0:b<o?-1:1}return this.negative!==0?-h|0:h},a.prototype.cmp=function(o){if(this.negative!==0&&o.negative===0)return-1;if(this.negative===0&&o.negative!==0)return 1;var u=this.ucmp(o);return this.negative!==0?-u|0:u},a.prototype.ucmp=function(o){if(this.length>o.length)return 1;if(this.length<o.length)return-1;for(var u=0,h=this.length-1;h>=0;h--){var b=this.words[h]|0,y=o.words[h]|0;if(b!==y){b<y?u=-1:b>y&&(u=1);break}}return u},a.prototype.gtn=function(o){return this.cmpn(o)===1},a.prototype.gt=function(o){return this.cmp(o)===1},a.prototype.gten=function(o){return this.cmpn(o)>=0},a.prototype.gte=function(o){return this.cmp(o)>=0},a.prototype.ltn=function(o){return this.cmpn(o)===-1},a.prototype.lt=function(o){return this.cmp(o)===-1},a.prototype.lten=function(o){return this.cmpn(o)<=0},a.prototype.lte=function(o){return this.cmp(o)<=0},a.prototype.eqn=function(o){return this.cmpn(o)===0},a.prototype.eq=function(o){return this.cmp(o)===0},a.red=function(o){return new F(o)},a.prototype.toRed=function(o){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},a.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(o){return this.red=o,this},a.prototype.forceRed=function(o){return r(!this.red,"Already a number in reduction context"),this._forceRed(o)},a.prototype.redAdd=function(o){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},a.prototype.redIAdd=function(o){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},a.prototype.redSub=function(o){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},a.prototype.redISub=function(o){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},a.prototype.redShl=function(o){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},a.prototype.redMul=function(o){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},a.prototype.redIMul=function(o){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},a.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(o){return r(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var N={k256:null,p224:null,p192:null,p25519:null};function B(w,o){this.name=w,this.p=new a(o,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}B.prototype._tmp=function(){var o=new a(null);return o.words=new Array(Math.ceil(this.n/13)),o},B.prototype.ireduce=function(o){var u=o,h;do this.split(u,this.tmp),u=this.imulK(u),u=u.iadd(this.tmp),h=u.bitLength();while(h>this.n);var b=h<this.n?-1:u.ucmp(this.p);return b===0?(u.words[0]=0,u.length=1):b>0?u.isub(this.p):u.strip!==void 0?u.strip():u._strip(),u},B.prototype.split=function(o,u){o.iushrn(this.n,0,u)},B.prototype.imulK=function(o){return o.imul(this.k)};function k(){B.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(k,B),k.prototype.split=function(o,u){for(var h=4194303,b=Math.min(o.length,9),y=0;y<b;y++)u.words[y]=o.words[y];if(u.length=b,o.length<=9){o.words[0]=0,o.length=1;return}var x=o.words[9];for(u.words[u.length++]=x&h,y=10;y<o.length;y++){var E=o.words[y]|0;o.words[y-10]=(E&h)<<4|x>>>22,x=E}x>>>=22,o.words[y-10]=x,x===0&&o.length>10?o.length-=10:o.length-=9},k.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var u=0,h=0;h<o.length;h++){var b=o.words[h]|0;u+=b*977,o.words[h]=u&67108863,u=b*64+(u/67108864|0)}return o.words[o.length-1]===0&&(o.length--,o.words[o.length-1]===0&&o.length--),o};function O(){B.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(O,B);function z(){B.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(z,B);function _(){B.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(_,B),_.prototype.imulK=function(o){for(var u=0,h=0;h<o.length;h++){var b=(o.words[h]|0)*19+u,y=b&67108863;b>>>=26,o.words[h]=y,u=b}return u!==0&&(o.words[o.length++]=u),o},a._prime=function(o){if(N[o])return N[o];var u;if(o==="k256")u=new k;else if(o==="p224")u=new O;else if(o==="p192")u=new z;else if(o==="p25519")u=new _;else throw new Error("Unknown prime "+o);return N[o]=u,u};function F(w){if(typeof w=="string"){var o=a._prime(w);this.m=o.p,this.prime=o}else r(w.gtn(1),"modulus must be greater than 1"),this.m=w,this.prime=null}F.prototype._verify1=function(o){r(o.negative===0,"red works only with positives"),r(o.red,"red works only with red numbers")},F.prototype._verify2=function(o,u){r((o.negative|u.negative)===0,"red works only with positives"),r(o.red&&o.red===u.red,"red works only with red numbers")},F.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):o.umod(this.m)._forceRed(this)},F.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},F.prototype.add=function(o,u){this._verify2(o,u);var h=o.add(u);return h.cmp(this.m)>=0&&h.isub(this.m),h._forceRed(this)},F.prototype.iadd=function(o,u){this._verify2(o,u);var h=o.iadd(u);return h.cmp(this.m)>=0&&h.isub(this.m),h},F.prototype.sub=function(o,u){this._verify2(o,u);var h=o.sub(u);return h.cmpn(0)<0&&h.iadd(this.m),h._forceRed(this)},F.prototype.isub=function(o,u){this._verify2(o,u);var h=o.isub(u);return h.cmpn(0)<0&&h.iadd(this.m),h},F.prototype.shl=function(o,u){return this._verify1(o),this.imod(o.ushln(u))},F.prototype.imul=function(o,u){return this._verify2(o,u),this.imod(o.imul(u))},F.prototype.mul=function(o,u){return this._verify2(o,u),this.imod(o.mul(u))},F.prototype.isqr=function(o){return this.imul(o,o.clone())},F.prototype.sqr=function(o){return this.mul(o,o)},F.prototype.sqrt=function(o){if(o.isZero())return o.clone();var u=this.m.andln(3);if(r(u%2===1),u===3){var h=this.m.add(new a(1)).iushrn(2);return this.pow(o,h)}for(var b=this.m.subn(1),y=0;!b.isZero()&&b.andln(1)===0;)y++,b.iushrn(1);r(!b.isZero());var x=new a(1).toRed(this),E=x.redNeg(),v=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new a(2*f*f).toRed(this);this.pow(f,v).cmp(E)!==0;)f.redIAdd(E);for(var A=this.pow(f,b),j=this.pow(o,b.addn(1).iushrn(1)),P=this.pow(o,b),$=y;P.cmp(x)!==0;){for(var K=P,Q=0;K.cmp(x)!==0;Q++)K=K.redSqr();r(Q<$);var H=this.pow(A,new a(1).iushln($-Q-1));j=j.redMul(H),A=H.redSqr(),P=P.redMul(A),$=Q}return j},F.prototype.invm=function(o){var u=o._invmp(this.m);return u.negative!==0?(u.negative=0,this.imod(u).redNeg()):this.imod(u)},F.prototype.pow=function(o,u){if(u.isZero())return new a(1).toRed(this);if(u.cmpn(1)===0)return o.clone();var h=4,b=new Array(1<<h);b[0]=new a(1).toRed(this),b[1]=o;for(var y=2;y<b.length;y++)b[y]=this.mul(b[y-1],o);var x=b[0],E=0,v=0,f=u.bitLength()%26;for(f===0&&(f=26),y=u.length-1;y>=0;y--){for(var A=u.words[y],j=f-1;j>=0;j--){var P=A>>j&1;if(x!==b[0]&&(x=this.sqr(x)),P===0&&E===0){v=0;continue}E<<=1,E|=P,v++,!(v!==h&&(y!==0||j!==0))&&(x=this.mul(x,b[E]),v=0,E=0)}f=26}return x},F.prototype.convertTo=function(o){var u=o.umod(this.m);return u===o?u.clone():u},F.prototype.convertFrom=function(o){var u=o.clone();return u.red=null,u},a.mont=function(o){return new R(o)};function R(w){F.call(this,w),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}i(R,F),R.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},R.prototype.convertFrom=function(o){var u=this.imod(o.mul(this.rinv));return u.red=null,u},R.prototype.imul=function(o,u){if(o.isZero()||u.isZero())return o.words[0]=0,o.length=1,o;var h=o.imul(u),b=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=h.isub(b).iushrn(this.shift),x=y;return y.cmp(this.m)>=0?x=y.isub(this.m):y.cmpn(0)<0&&(x=y.iadd(this.m)),x._forceRed(this)},R.prototype.mul=function(o,u){if(o.isZero()||u.isZero())return new a(0)._forceRed(this);var h=o.mul(u),b=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=h.isub(b).iushrn(this.shift),x=y;return y.cmp(this.m)>=0?x=y.isub(this.m):y.cmpn(0)<0&&(x=y.iadd(this.m)),x._forceRed(this)},R.prototype.invm=function(o){var u=this.imod(o._invmp(this.m).mul(this.r2));return u._forceRed(this)}})(t,Kt)}(Vm)),Vm.exports}var UA={},gR;function _be(){return gR||(gR=1,function(t){var e=ib(),n=mn,r=t;r.define=function(s,c){return new i(s,c)};function i(a,s){this.name=a,this.body=s,this.decoders={},this.encoders={}}i.prototype._createNamed=function(s){var c;try{c=eb.runInThisContext("(function "+this.name+`(entity) {
|
|
@@ -317,6 +317,6 @@ Message: ${r}.
|
|
|
317
317
|
350.784C333.887 394.401 386.876 441.618 425.888 388.905C446.28 361.434
|
|
318
318
|
481.956 283.697 469.558 226.035C462.309 193.336 452.647 169.501 414.337
|
|
319
319
|
136.759C421.441 140.951 428.34 145.706 435.032 151.026C524.043 233.94
|
|
320
|
-
513.716 362.141 451.503 430.865Z`,fill:"url(#icons_tokens_inj_linearGradient_1)"})]})}function sUe(){return L.jsxs("svg",{viewBox:"316.829 225.555 66.146 48.89",xmlns:"http://www.w3.org/2000/svg",children:[L.jsx("g",{filter:"url(#icons_tokens_ntt_filter_0)",transform:"matrix(1, 0, 0, 1, 307.15521240234375, 224.00100708007812)",children:L.jsx("path",{d:"M42.3874 29.5938C40.2035 29.5938 38.433 27.8234 38.433 25.6394C38.433 23.4555 40.2035 21.6851 42.3874 21.6851C44.5714 21.6851 46.3418 23.4555 46.3418 25.6394C46.3418 27.8234 44.5714 29.5938 42.3874 29.5938Z",fill:"white"})}),L.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M 316.829 249.281 L 382.975 249.281 L 382.975 250.719 L 316.829 250.719 L 316.829 249.281 Z",fill:"url(#icons_tokens_ntt_linearGradient_0)"}),L.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M 349.903 273.007 C 362.609 273.007 372.91 262.707 372.91 250 C 372.91 237.293 362.609 226.993 349.903 226.993 C 337.196 226.993 326.896 237.293 326.896 250 C 326.896 262.707 337.196 273.007 349.903 273.007 Z M 349.903 274.445 C 363.404 274.445 374.348 263.501 374.348 250 C 374.348 236.499 363.404 225.555 349.903 225.555 C 336.402 225.555 325.458 236.499 325.458 250 C 325.458 263.501 336.402 274.445 349.903 274.445 Z",fill:"url(#icons_tokens_ntt_linearGradient_1)"})]})}function oUe(){return L.jsxs("svg",{style:{maxHeight:"100%",maxWidth:"100%"},width:"444",height:"444",viewBox:"0 0 444 444",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[L.jsx("style",{children:".st0{fill:#ffeeda}.st2{fill:#101010}"}),L.jsx("path",{d:"M0 0h444v444H0z",className:"st0"}),L.jsx("path",{d:"M333.4 262V110.6c-.2-12.7-10.3-22.9-23-22.9h-158c-34.1.5-61.5 28.4-61.5 62.6 0 11.5 3.1 21.4 7.8 30.1 4 7.2 10.3 14 16.5 19.1 1.8 1.4.9.8 6.3 4.1 7.4 4.5 15.9 6.8 15.9 6.8l-.1 90.6c.2 4.3.6 8.4 1.8 12.3 3.5 12.8 12.4 22.6 24.4 27.3 5 2 10.7 3.3 16.8 3.4l126.2.4c25.1 0 45.5-20.4 45.5-45.6.1-15-7.4-28.4-18.6-36.8z",className:"st0"}),L.jsx("path",{d:"M336.5 299.9C336 316 322.7 329 306.4 329l-86.8-.3c6.9-8 11.1-18.4 11.1-29.8 0-17.8-10.6-30.1-10.6-30.1h86.4c16.6 0 30.1 13.5 30.1 30.1l-.1 1z",style:{fill:"#ebc28e"}}),L.jsx("path",{d:"M123.5 186.7c-10-9.5-17-21.7-17-36.3v-1.5c.8-24.8 21.2-44.8 46-45.5h158c4.1.2 7.4 3.1 7.4 7.3v133.7c3.6.6 5.4 1.1 8.9 2.4 2.8 1 6.6 3.2 6.6 3.2V110.7c-.2-12.7-10.3-22.9-23-22.9h-158c-34.1.5-61.5 28.4-61.5 62.6 0 19.9 9.1 36.9 23.9 48.8 1 .8 2 1.9 4.6 1.9 4.6 0 7.9-3.7 7.7-7.7 0-3.4-1.5-4.6-3.6-6.7z",className:"st2"}),L.jsx("path",{d:"M306.4 253.2H182.5c-8.3.1-15 6.8-15 15.1v17.8c.2 8.2 7.2 15.2 15.6 15.2h9.2v-15.2H183v-17.4h5c15.7 0 27.2 14.5 27.2 30.1 0 13.8-12.6 31.4-33.6 30-18.6-1.2-28.7-17.8-28.7-30v-151c0-6.8-5.6-12.4-12.4-12.4h-12.4v15.5h9.2v148c-.5 30.1 21.4 45.2 44.3 45.2l124.9.4c25.1 0 45.5-20.4 45.5-45.6.1-25.2-20.4-45.7-45.6-45.7zm30.1 46.7C336 316 322.7 329 306.4 329l-86.8-.3c6.9-8 11.1-18.4 11.1-29.8 0-17.8-10.6-30.1-10.6-30.1h86.4c16.6 0 30.1 13.5 30.1 30.1l-.1 1zM273 153.7h-93.4v-15.5H273c4.2 0 7.7 3.4 7.7 7.7.1 4.3-3.3 7.8-7.7 7.8z",className:"st2"}),L.jsx("path",{d:"M273 226.4h-93.4V211H273c4.2 0 7.7 3.4 7.7 7.7.1 4.2-3.3 7.7-7.7 7.7zm16.5-36.4H179.6v-15.5h109.8c4.2 0 7.7 3.4 7.7 7.7.2 4.3-3.3 7.8-7.6 7.8z",className:"st2"})]})}function cUe(){return L.jsxs("svg",{style:{maxHeight:"100%",maxWidth:"100%"},xmlns:"http://www.w3.org/2000/svg",width:"252",height:"166",viewBox:"0 0 252 166",fill:"none",children:[L.jsx("path",{fill:"#FCFC03",d:"m197.902 81.513 39.608-19.736 13.653-41.906L223.857 0H42.041L0 31.226h213.718l-11.355 35.147H116.66l-8.246 25.684h85.703L170.055 166l40.149-19.871 14.329-44.339-26.901-19.736.27-.541Z"}),L.jsx("path",{fill:"#FCFC03",d:"m60.422 134.233 24.737-77.052-27.441-20.548L16.488 166h153.564l10.273-31.767H60.422Z"})]})}function lUe(){return L.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[L.jsx("circle",{cx:"18",cy:"18",r:"18",fill:"black"}),L.jsx("path",{d:"M28.3266 11.8302L17.9483 11.8466C14.5118 11.8466 11.7258 14.6326 11.7258 18.069C11.7258 21.5055 14.5118 24.2915 17.9483 24.2915H27.9424",stroke:"white",strokeWidth:"2.18153",strokeMiterlimit:"10",strokeLinecap:"round"}),L.jsx("path",{d:"M6.16479 18.069H30.138",stroke:"white",strokeWidth:"2.18153",strokeMiterlimit:"10",strokeLinecap:"round"}),L.jsx("path",{d:"M18.069 6C24.7345 6 30.1379 11.4035 30.1379 18.069C30.1379 24.7345 24.7345 30.1379 18.069 30.1379C11.4035 30.1379 6 24.7345 6 18.069C6 11.4035 11.4035 6 18.069 6Z",stroke:"white",strokeWidth:"2.18153",strokeMiterlimit:"10",strokeLinecap:"round"})]})}function uUe(){return L.jsxs("svg",{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[L.jsx("circle",{cx:"32",cy:"32",r:"32",fill:"#814625"}),L.jsx("path",{d:"M30.8066 30.3796C30.7714 30.2733 30.7468 30.1643 30.7278 30.0542C30.7191 30.0032 30.7089 29.9524 30.6974 29.902C30.6723 29.7925 30.6444 29.6836 30.6143 29.5753V29.575C31.1133 28.8474 33.4988 25.0525 30.7842 22.6167C27.7714 19.9133 24.2512 23.4567 24.2512 23.4567L24.2621 23.4724C22.6799 23.0093 20.9643 22.955 19.2952 23.4565C19.295 23.4565 19.2949 23.4565 19.2949 23.4565C19.2743 23.4358 15.7659 19.9212 12.762 22.6167C9.75706 25.313 13.0019 29.6752 13.0188 29.698C13.0188 29.698 13.0188 29.6981 13.0188 29.6983C12.9843 29.8008 12.9564 29.9054 12.938 30.0117C12.6129 31.8784 10.3999 32.4545 10.3999 35.7061C10.3999 38.9576 12.715 41.6321 17.4404 41.6321H19.3794C19.3794 41.6321 19.3796 41.6321 19.3797 41.6321C19.3884 41.644 20.1867 42.7339 21.826 42.7327C23.3478 42.7316 24.3528 41.6414 24.3615 41.6321C24.3615 41.6321 24.3615 41.6321 24.3618 41.6321H26.2117C30.9371 41.6321 33.2522 39.0204 33.2522 35.7061C33.2522 32.6781 31.3331 31.9702 30.8068 30.3796H30.8066Z",fill:"white"}),L.jsx("path",{d:"M53.3886 26.6644C53.3886 26.6644 53.74 23.5305 51.0687 22.8571V21.6002H48.9999V22.8257C46.182 23.4261 46.5451 26.6644 46.5451 26.6644V27.2017C46.5451 27.2017 46.1818 30.4407 49.0009 31.0405H49.0006V33.7308C46.0304 34.252 46.4057 37.5966 46.4057 37.5966V38.1339C46.4057 38.1339 46.0424 41.3722 48.8604 41.9725V43.1981H50.9292V41.9412C53.6007 41.2678 53.2491 38.1339 53.2491 38.1339C53.3659 38.1339 53.4606 38.0427 53.4606 37.9303V37.8003C53.4606 37.6878 53.3659 37.5966 53.2491 37.5966C53.2491 37.5966 53.5977 34.4899 50.9638 33.7984V31.0405H50.9327C53.7518 30.4407 53.3885 27.2017 53.3885 27.2017C53.5052 27.2017 53.5999 27.1105 53.5999 26.998V26.868C53.5999 26.7556 53.5052 26.6644 53.3885 26.6644H53.3886ZM51.7027 37.5966H51.5134C51.3967 37.5966 51.302 37.6878 51.302 37.8003V37.9303C51.302 38.0427 51.3967 38.1339 51.5134 38.1339H51.7027C51.7027 40.0779 51.0324 40.405 50.8069 40.4601C50.7698 40.4691 50.7338 40.4426 50.7338 40.4058V39.7862C50.7338 39.4436 50.5072 39.256 50.2806 39.1539C49.9941 39.0249 49.6605 39.0249 49.3741 39.1539C49.1475 39.256 48.9208 39.4436 48.9208 39.7862V40.4058C48.9208 40.4421 48.8855 40.4692 48.849 40.4603C48.6248 40.4062 47.952 40.0817 47.952 38.1339V37.5966C47.952 35.6526 48.6222 35.3255 48.8478 35.2705C48.8848 35.2615 48.9208 35.2879 48.9208 35.3247V35.9444C48.9208 36.2869 49.1475 36.4746 49.3741 36.5767C49.6605 36.7056 49.9941 36.7056 50.2806 36.5767C50.5072 36.4746 50.7338 36.2869 50.7338 35.9444V35.3247C50.7338 35.2885 50.7691 35.2613 50.8056 35.2702C51.0299 35.3243 51.7027 35.6489 51.7027 37.5966ZM51.6529 27.2017H51.8421C51.8421 29.1494 51.1694 29.4741 50.9451 29.5281C50.9086 29.537 50.8733 29.5098 50.8733 29.4736V28.8539C50.8733 28.5114 50.6467 28.3237 50.42 28.2216C50.1336 28.0927 49.8 28.0927 49.5135 28.2216C49.2869 28.3237 49.0603 28.5114 49.0603 28.8539V29.4736C49.0603 29.5104 49.0243 29.5368 48.9872 29.5278C48.7617 29.4728 48.0915 29.1457 48.0915 27.2017V26.6644C48.0915 24.7166 48.7642 24.3919 48.9885 24.3379C49.025 24.3291 49.0603 24.3564 49.0603 24.3925V25.0121C49.0603 25.3547 49.2869 25.5423 49.5135 25.6444C49.8 25.7734 50.1336 25.7734 50.42 25.6444C50.6467 25.5423 50.8733 25.3547 50.8733 25.0121V24.3925C50.8733 24.3557 50.9093 24.3292 50.9464 24.3382C51.1719 24.3933 51.8421 24.7204 51.8421 26.6644H51.6529C51.5361 26.6644 51.4414 26.7556 51.4414 26.868V26.998C51.4414 27.1105 51.5361 27.2017 51.6529 27.2017Z",fill:"white"}),L.jsx("path",{d:"M43.036 32.1987C43.036 32.1987 43.4013 28.9416 40.5566 28.355V25.4288C43.3256 24.8038 42.9663 21.6002 42.9663 21.6002C42.9663 21.6002 41.4134 21.6002 41.4198 21.6002C41.4198 23.548 40.7471 23.8726 40.5228 23.9266C40.4863 23.9355 40.451 23.9082 40.451 23.8721V23.2524C40.451 22.9099 40.2244 22.7223 39.9977 22.6202C39.7113 22.4912 39.3777 22.4912 39.0912 22.6202C38.8646 22.7223 38.638 22.9099 38.638 23.2524V23.8721C38.638 23.9089 38.602 23.9354 38.5649 23.9264C38.3394 23.8713 37.6692 23.5442 37.6692 21.6002C37.6757 21.6002 36.1227 21.6002 36.1227 21.6002C36.1227 21.6002 35.7499 24.9246 38.6908 25.4611V28.351C35.8255 28.927 36.1924 32.1985 36.1924 32.1985V32.7358C36.1924 32.7358 35.8255 36.0074 38.6908 36.5834V39.339C35.7499 39.8756 36.1227 43.1998 36.1227 43.1998C36.1227 43.1998 37.6756 43.1998 37.6692 43.1998C37.6692 41.2521 38.3419 40.9274 38.5662 40.8734C38.6027 40.8645 38.638 40.8917 38.638 40.9279V41.5476C38.638 41.8901 38.8646 42.0778 39.0912 42.1799C39.3777 42.3088 39.7113 42.3088 39.9977 42.1799C40.2244 42.0778 40.451 41.8901 40.451 41.5476V40.9279C40.451 40.8911 40.487 40.8647 40.5241 40.8737C40.7496 40.9287 41.4198 41.2558 41.4198 43.1998C41.4133 43.1998 42.9663 43.1998 42.9663 43.1998C42.9663 43.1998 43.3256 39.9962 40.5566 39.3712V36.5794C43.4013 35.9927 43.036 32.7357 43.036 32.7357C43.1528 32.7357 43.2475 32.6445 43.2475 32.5321V32.402C43.2475 32.2896 43.1528 32.1984 43.036 32.1984V32.1987ZM41.3003 32.736H41.4895C41.4895 34.6837 40.8168 35.0084 40.5925 35.0624C40.556 35.0713 40.5207 35.0441 40.5207 35.0079V34.3882C40.5207 34.0457 40.2941 33.858 40.0675 33.7559C39.781 33.627 39.4474 33.627 39.161 33.7559C38.9343 33.858 38.7077 34.0457 38.7077 34.3882V35.0079C38.7077 35.0447 38.6717 35.0711 38.6346 35.0621C38.4091 35.007 37.7389 34.68 37.7389 32.736V32.1987C37.7389 30.2509 38.4116 29.9262 38.6359 29.8722C38.6724 29.8634 38.7077 29.8906 38.7077 29.9268V30.5464C38.7077 30.889 38.9343 31.0766 39.161 31.1787C39.4474 31.3077 39.781 31.3077 40.0675 31.1787C40.2941 31.0766 40.5207 30.889 40.5207 30.5464V29.9268C40.5207 29.89 40.5567 29.8635 40.5938 29.8725C40.8193 29.9276 41.4895 30.2547 41.4895 32.1987H41.3003C41.1836 32.1987 41.0889 32.2899 41.0889 32.4023V32.5323C41.0889 32.6448 41.1836 32.736 41.3003 32.736Z",fill:"white"})]})}function fUe(){return L.jsx("svg",{style:{maxHeight:"100%",maxWidth:"100%"},xmlns:"http://www.w3.org/2000/svg",height:"64",width:"64",viewBox:"0 0 64 64",children:L.jsxs("g",{transform:"translate(0.00630876,-0.00301984)",children:[L.jsx("path",{fill:"#f7931a",d:"m63.033,39.744c-4.274,17.143-21.637,27.576-38.782,23.301-17.138-4.274-27.571-21.638-23.295-38.78,4.272-17.145,21.635-27.579,38.775-23.305,17.144,4.274,27.576,21.64,23.302,38.784z"}),L.jsx("path",{fill:"#FFF",d:"m46.103,27.444c0.637-4.258-2.605-6.547-7.038-8.074l1.438-5.768-3.511-0.875-1.4,5.616c-0.923-0.23-1.871-0.447-2.813-0.662l1.41-5.653-3.509-0.875-1.439,5.766c-0.764-0.174-1.514-0.346-2.242-0.527l0.004-0.018-4.842-1.209-0.934,3.75s2.605,0.597,2.55,0.634c1.422,0.355,1.679,1.296,1.636,2.042l-1.638,6.571c0.098,0.025,0.225,0.061,0.365,0.117-0.117-0.029-0.242-0.061-0.371-0.092l-2.296,9.205c-0.174,0.432-0.615,1.08-1.609,0.834,0.035,0.051-2.552-0.637-2.552-0.637l-1.743,4.019,4.569,1.139c0.85,0.213,1.683,0.436,2.503,0.646l-1.453,5.834,3.507,0.875,1.439-5.772c0.958,0.26,1.888,0.5,2.798,0.726l-1.434,5.745,3.511,0.875,1.453-5.823c5.987,1.133,10.489,0.676,12.384-4.739,1.527-4.36-0.076-6.875-3.226-8.515,2.294-0.529,4.022-2.038,4.483-5.155zm-8.022,11.249c-1.085,4.36-8.426,2.003-10.806,1.412l1.928-7.729c2.38,0.594,10.012,1.77,8.878,6.317zm1.086-11.312c-0.99,3.966-7.1,1.951-9.082,1.457l1.748-7.01c1.982,0.494,8.365,1.416,7.334,5.553z"})]})})}const W0e=Rn()((t,{size:e})=>({container:{height:e,width:e,...UM},iconImage:{width:e,height:e,borderRadius:"50px"},icon:{maxHeight:"100%",maxWidth:"100%"},emptyIcon:{width:e,height:e,borderRadius:"50px",background:`color-mix(in hsl, ${t.palette.text.secondary}, ${t.palette.input.background} 80%)`}})),kY={[Ue.WBTC]:LPe(),[Ue.BUSD]:BPe(),[Ue.USDT]:jPe(),[Ue.DAI]:kPe(),[Ue.GLMR]:_Pe(),[Ue.AVAX]:OPe(),[Ue.BNB]:FPe(),[Ue.BSC]:VPe(),[Ue.CELO]:zPe(),[Ue.ETH]:RPe(),[Ue.FANTOM]:PPe(),[Ue.POLYGON]:$Pe(),[Ue.SOLANA]:UPe(),[Ue.USDC]:QPe(),[Ue.SUI]:WPe(),[Ue.APT]:HPe(),[Ue.ARBITRUM]:qPe(),[Ue.OPTIMISM]:ZPe(),[Ue.SEI]:YPe(),[Ue.BASE]:GPe(),[Ue.OSMO]:KPe(),[Ue.TBTC]:XPe(),[Ue.WSTETH]:JPe(),[Ue.ATOM]:tUe(),[Ue.EVMOS]:eUe(),[Ue.KUJI]:nUe(),[Ue.PYTH]:iUe(),[Ue.KLAY]:rUe(),[Ue.INJ]:aUe(),[Ue.NTT]:sUe(),[Ue.SCROLL]:oUe(),[Ue.BLAST]:cUe(),[Ue.XLAYER]:L.jsx("img",{style:{maxHeight:"100%",maxWidth:"100%"},src:jY("Xlayer")}),[Ue.MANTLE]:L.jsx("img",{style:{maxHeight:"100%",maxWidth:"100%"},src:jY("Mantle")}),[Ue.WORLDCHAIN]:lUe(),[Ue.BERA]:uUe(),[Ue.BTC]:fUe()};function dUe(t){return Object.values(Ue).includes(t)}function hUe(t){const{classes:e}=W0e(t);return L.jsx("div",{className:e.emptyIcon})}function Lj(t){const e=t.height||36,{classes:n}=W0e({size:e});let r=L.jsx(hUe,{size:e});return dUe(t.icon)&&kY[t.icon]?r=kY[t.icon]:typeof t.icon=="string"&&(r=L.jsx("img",{className:n.iconImage,src:t.icon})),L.jsx("div",{className:n.container,children:r})}const e4={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Y0e=Object.create(null);for(const t in e4)Object.hasOwn(e4,t)&&(Y0e[e4[t]]=t);const W0={to:{},get:{}};W0.get=function(t){const e=t.slice(0,3).toLowerCase();let n,r;switch(e){case"hsl":{n=W0.get.hsl(t),r="hsl";break}case"hwb":{n=W0.get.hwb(t),r="hwb";break}default:{n=W0.get.rgb(t),r="rgb";break}}return n?{model:r,value:n}:null};W0.get.rgb=function(t){if(!t)return null;const e=/^#([a-f\d]{3,4})$/i,n=/^#([a-f\d]{6})([a-f\d]{2})?$/i,r=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,i=/^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,a=/^(\w+)$/;let s=[0,0,0,1],c,l,d;if(c=t.match(n)){for(d=c[2],c=c[1],l=0;l<3;l++){const p=l*2;s[l]=Number.parseInt(c.slice(p,p+2),16)}d&&(s[3]=Number.parseInt(d,16)/255)}else if(c=t.match(e)){for(c=c[1],d=c[3],l=0;l<3;l++)s[l]=Number.parseInt(c[l]+c[l],16);d&&(s[3]=Number.parseInt(d+d,16)/255)}else if(c=t.match(r)){for(l=0;l<3;l++)s[l]=Number.parseInt(c[l+1],10);c[4]&&(s[3]=c[5]?Number.parseFloat(c[4])*.01:Number.parseFloat(c[4]))}else if(c=t.match(i)){for(l=0;l<3;l++)s[l]=Math.round(Number.parseFloat(c[l+1])*2.55);c[4]&&(s[3]=c[5]?Number.parseFloat(c[4])*.01:Number.parseFloat(c[4]))}else return(c=t.match(a))?c[1]==="transparent"?[0,0,0,0]:Object.hasOwn(e4,c[1])?(s=e4[c[1]],s[3]=1,s):null:null;for(l=0;l<3;l++)s[l]=Hu(s[l],0,255);return s[3]=Hu(s[3],0,1),s};W0.get.hsl=function(t){if(!t)return null;const e=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=t.match(e);if(n){const r=Number.parseFloat(n[4]),i=(Number.parseFloat(n[1])%360+360)%360,a=Hu(Number.parseFloat(n[2]),0,100),s=Hu(Number.parseFloat(n[3]),0,100),c=Hu(Number.isNaN(r)?1:r,0,1);return[i,a,s,c]}return null};W0.get.hwb=function(t){if(!t)return null;const e=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d.]+)%\s*,\s*([+-]?[\d.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=t.match(e);if(n){const r=Number.parseFloat(n[4]),i=(Number.parseFloat(n[1])%360+360)%360,a=Hu(Number.parseFloat(n[2]),0,100),s=Hu(Number.parseFloat(n[3]),0,100),c=Hu(Number.isNaN(r)?1:r,0,1);return[i,a,s,c]}return null};W0.to.hex=function(...t){return"#"+dm(t[0])+dm(t[1])+dm(t[2])+(t[3]<1?dm(Math.round(t[3]*255)):"")};W0.to.rgb=function(...t){return t.length<4||t[3]===1?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"};W0.to.rgb.percent=function(...t){const e=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),r=Math.round(t[2]/255*100);return t.length<4||t[3]===1?"rgb("+e+"%, "+n+"%, "+r+"%)":"rgba("+e+"%, "+n+"%, "+r+"%, "+t[3]+")"};W0.to.hsl=function(...t){return t.length<4||t[3]===1?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"};W0.to.hwb=function(...t){let e="";return t.length>=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};W0.to.keyword=function(...t){return Y0e[t.slice(0,3)]};function Hu(t,e,n){return Math.min(Math.max(e,t),n)}function dm(t){const e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}const dp={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},G0e={};for(const t of Object.keys(dp))G0e[dp[t]]=t;const Ht={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},nl=(6/29)**3;for(const t of Object.keys(Ht)){if(!("channels"in Ht[t]))throw new Error("missing channels property: "+t);if(!("labels"in Ht[t]))throw new Error("missing channel labels property: "+t);if(Ht[t].labels.length!==Ht[t].channels)throw new Error("channel and label counts mismatch: "+t);const{channels:e,labels:n}=Ht[t];delete Ht[t].channels,delete Ht[t].labels,Object.defineProperty(Ht[t],"channels",{value:e}),Object.defineProperty(Ht[t],"labels",{value:n})}Ht.rgb.hsl=function(t){const e=t[0]/255,n=t[1]/255,r=t[2]/255,i=Math.min(e,n,r),a=Math.max(e,n,r),s=a-i;let c,l;switch(a){case i:{c=0;break}case e:{c=(n-r)/s;break}case n:{c=2+(r-e)/s;break}case r:{c=4+(e-n)/s;break}}c=Math.min(c*60,360),c<0&&(c+=360);const d=(i+a)/2;return a===i?l=0:d<=.5?l=s/(a+i):l=s/(2-a-i),[c,l*100,d*100]};Ht.rgb.hsv=function(t){let e,n,r,i,a;const s=t[0]/255,c=t[1]/255,l=t[2]/255,d=Math.max(s,c,l),p=d-Math.min(s,c,l),m=function(g){return(d-g)/6/p+1/2};if(p===0)i=0,a=0;else{switch(a=p/d,e=m(s),n=m(c),r=m(l),d){case s:{i=r-n;break}case c:{i=1/3+e-r;break}case l:{i=2/3+n-e;break}}i<0?i+=1:i>1&&(i-=1)}return[i*360,a*100,d*100]};Ht.rgb.hwb=function(t){const e=t[0],n=t[1];let r=t[2];const i=Ht.rgb.hsl(t)[0],a=1/255*Math.min(e,Math.min(n,r));return r=1-1/255*Math.max(e,Math.max(n,r)),[i,a*100,r*100]};Ht.rgb.cmyk=function(t){const e=t[0]/255,n=t[1]/255,r=t[2]/255,i=Math.min(1-e,1-n,1-r),a=(1-e-i)/(1-i)||0,s=(1-n-i)/(1-i)||0,c=(1-r-i)/(1-i)||0;return[a*100,s*100,c*100,i*100]};function pUe(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}Ht.rgb.keyword=function(t){const e=G0e[t];if(e)return e;let n=Number.POSITIVE_INFINITY,r;for(const i of Object.keys(dp)){const a=dp[i],s=pUe(t,a);s<n&&(n=s,r=i)}return r};Ht.keyword.rgb=function(t){return dp[t]};Ht.rgb.xyz=function(t){let e=t[0]/255,n=t[1]/255,r=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const i=e*.4124564+n*.3575761+r*.1804375,a=e*.2126729+n*.7151522+r*.072175,s=e*.0193339+n*.119192+r*.9503041;return[i*100,a*100,s*100]};Ht.rgb.lab=function(t){const e=Ht.rgb.xyz(t);let n=e[0],r=e[1],i=e[2];n/=95.047,r/=100,i/=108.883,n=n>nl?n**(1/3):7.787*n+16/116,r=r>nl?r**(1/3):7.787*r+16/116,i=i>nl?i**(1/3):7.787*i+16/116;const a=116*r-16,s=500*(n-r),c=200*(r-i);return[a,s,c]};Ht.hsl.rgb=function(t){const e=t[0]/360,n=t[1]/100,r=t[2]/100;let i,a;if(n===0)return a=r*255,[a,a,a];const s=r<.5?r*(1+n):r+n-r*n,c=2*r-s,l=[0,0,0];for(let d=0;d<3;d++)i=e+1/3*-(d-1),i<0&&i++,i>1&&i--,6*i<1?a=c+(s-c)*6*i:2*i<1?a=s:3*i<2?a=c+(s-c)*(2/3-i)*6:a=c,l[d]=a*255;return l};Ht.hsl.hsv=function(t){const e=t[0];let n=t[1]/100,r=t[2]/100,i=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=a<=1?a:2-a;const s=(r+n)/2,c=r===0?2*i/(a+i):2*n/(r+n);return[e,c*100,s*100]};Ht.hsv.rgb=function(t){const e=t[0]/60,n=t[1]/100;let r=t[2]/100;const i=Math.floor(e)%6,a=e-Math.floor(e),s=255*r*(1-n),c=255*r*(1-n*a),l=255*r*(1-n*(1-a));switch(r*=255,i){case 0:return[r,l,s];case 1:return[c,r,s];case 2:return[s,r,l];case 3:return[s,c,r];case 4:return[l,s,r];case 5:return[r,s,c]}};Ht.hsv.hsl=function(t){const e=t[0],n=t[1]/100,r=t[2]/100,i=Math.max(r,.01);let a,s;s=(2-n)*r;const c=(2-n)*i;return a=n*i,a/=c<=1?c:2-c,a=a||0,s/=2,[e,a*100,s*100]};Ht.hwb.rgb=function(t){const e=t[0]/360;let n=t[1]/100,r=t[2]/100;const i=n+r;let a;i>1&&(n/=i,r/=i);const s=Math.floor(6*e),c=1-r;a=6*e-s,s&1&&(a=1-a);const l=n+a*(c-n);let d,p,m;switch(s){default:case 6:case 0:{d=c,p=l,m=n;break}case 1:{d=l,p=c,m=n;break}case 2:{d=n,p=c,m=l;break}case 3:{d=n,p=l,m=c;break}case 4:{d=l,p=n,m=c;break}case 5:{d=c,p=n,m=l;break}}return[d*255,p*255,m*255]};Ht.cmyk.rgb=function(t){const e=t[0]/100,n=t[1]/100,r=t[2]/100,i=t[3]/100,a=1-Math.min(1,e*(1-i)+i),s=1-Math.min(1,n*(1-i)+i),c=1-Math.min(1,r*(1-i)+i);return[a*255,s*255,c*255]};Ht.xyz.rgb=function(t){const e=t[0]/100,n=t[1]/100,r=t[2]/100;let i,a,s;return i=e*3.2404542+n*-1.5371385+r*-.4985314,a=e*-.969266+n*1.8760108+r*.041556,s=e*.0556434+n*-.2040259+r*1.0572252,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[i*255,a*255,s*255]};Ht.xyz.lab=function(t){let e=t[0],n=t[1],r=t[2];e/=95.047,n/=100,r/=108.883,e=e>nl?e**(1/3):7.787*e+16/116,n=n>nl?n**(1/3):7.787*n+16/116,r=r>nl?r**(1/3):7.787*r+16/116;const i=116*n-16,a=500*(e-n),s=200*(n-r);return[i,a,s]};Ht.lab.xyz=function(t){const e=t[0],n=t[1],r=t[2];let i,a,s;a=(e+16)/116,i=n/500+a,s=a-r/200;const c=a**3,l=i**3,d=s**3;return a=c>nl?c:(a-16/116)/7.787,i=l>nl?l:(i-16/116)/7.787,s=d>nl?d:(s-16/116)/7.787,i*=95.047,a*=100,s*=108.883,[i,a,s]};Ht.lab.lch=function(t){const e=t[0],n=t[1],r=t[2];let i;i=Math.atan2(r,n)*360/2/Math.PI,i<0&&(i+=360);const s=Math.sqrt(n*n+r*r);return[e,s,i]};Ht.lch.lab=function(t){const e=t[0],n=t[1],i=t[2]/360*2*Math.PI,a=n*Math.cos(i),s=n*Math.sin(i);return[e,a,s]};Ht.rgb.ansi16=function(t,e=null){const[n,r,i]=t;let a=e===null?Ht.rgb.hsv(t)[2]:e;if(a=Math.round(a/50),a===0)return 30;let s=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(s+=60),s};Ht.hsv.ansi16=function(t){return Ht.rgb.ansi16(Ht.hsv.rgb(t),t[2])};Ht.rgb.ansi256=function(t){const e=t[0],n=t[1],r=t[2];return e>>4===n>>4&&n>>4===r>>4?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};Ht.ansi16.rgb=function(t){t=t[0];let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];const n=(Math.trunc(t>50)+1)*.5,r=(e&1)*n*255,i=(e>>1&1)*n*255,a=(e>>2&1)*n*255;return[r,i,a]};Ht.ansi256.rgb=function(t){if(t=t[0],t>=232){const a=(t-232)*10+8;return[a,a,a]}t-=16;let e;const n=Math.floor(t/36)/5*255,r=Math.floor((e=t%36)/6)/5*255,i=e%6/5*255;return[n,r,i]};Ht.rgb.hex=function(t){const n=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".slice(n.length)+n};Ht.hex.rgb=function(t){const e=t.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!e)return[0,0,0];let n=e[0];e[0].length===3&&(n=[...n].map(c=>c+c).join(""));const r=Number.parseInt(n,16),i=r>>16&255,a=r>>8&255,s=r&255;return[i,a,s]};Ht.rgb.hcg=function(t){const e=t[0]/255,n=t[1]/255,r=t[2]/255,i=Math.max(Math.max(e,n),r),a=Math.min(Math.min(e,n),r),s=i-a;let c;const l=s<1?a/(1-s):0;return s<=0?c=0:i===e?c=(n-r)/s%6:i===n?c=2+(r-e)/s:c=4+(e-n)/s,c/=6,c%=1,[c*360,s*100,l*100]};Ht.hsl.hcg=function(t){const e=t[1]/100,n=t[2]/100,r=n<.5?2*e*n:2*e*(1-n);let i=0;return r<1&&(i=(n-.5*r)/(1-r)),[t[0],r*100,i*100]};Ht.hsv.hcg=function(t){const e=t[1]/100,n=t[2]/100,r=e*n;let i=0;return r<1&&(i=(n-r)/(1-r)),[t[0],r*100,i*100]};Ht.hcg.rgb=function(t){const e=t[0]/360,n=t[1]/100,r=t[2]/100;if(n===0)return[r*255,r*255,r*255];const i=[0,0,0],a=e%1*6,s=a%1,c=1-s;let l=0;switch(Math.floor(a)){case 0:{i[0]=1,i[1]=s,i[2]=0;break}case 1:{i[0]=c,i[1]=1,i[2]=0;break}case 2:{i[0]=0,i[1]=1,i[2]=s;break}case 3:{i[0]=0,i[1]=c,i[2]=1;break}case 4:{i[0]=s,i[1]=0,i[2]=1;break}default:i[0]=1,i[1]=0,i[2]=c}return l=(1-n)*r,[(n*i[0]+l)*255,(n*i[1]+l)*255,(n*i[2]+l)*255]};Ht.hcg.hsv=function(t){const e=t[1]/100,n=t[2]/100,r=e+n*(1-e);let i=0;return r>0&&(i=e/r),[t[0],i*100,r*100]};Ht.hcg.hsl=function(t){const e=t[1]/100,r=t[2]/100*(1-e)+.5*e;let i=0;return r>0&&r<.5?i=e/(2*r):r>=.5&&r<1&&(i=e/(2*(1-r))),[t[0],i*100,r*100]};Ht.hcg.hwb=function(t){const e=t[1]/100,n=t[2]/100,r=e+n*(1-e);return[t[0],(r-e)*100,(1-r)*100]};Ht.hwb.hcg=function(t){const e=t[1]/100,r=1-t[2]/100,i=r-e;let a=0;return i<1&&(a=(r-i)/(1-i)),[t[0],i*100,a*100]};Ht.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};Ht.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};Ht.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};Ht.gray.hsl=function(t){return[0,0,t[0]]};Ht.gray.hsv=Ht.gray.hsl;Ht.gray.hwb=function(t){return[0,100,t[0]]};Ht.gray.cmyk=function(t){return[0,0,0,t[0]]};Ht.gray.lab=function(t){return[t[0],0,0]};Ht.gray.hex=function(t){const e=Math.round(t[0]/100*255)&255,r=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".slice(r.length)+r};Ht.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]};function bUe(){const t={},e=Object.keys(Ht);for(let{length:n}=e,r=0;r<n;r++)t[e[r]]={distance:-1,parent:null};return t}function mUe(t){const e=bUe(),n=[t];for(e[t].distance=0;n.length>0;){const r=n.pop(),i=Object.keys(Ht[r]);for(let{length:a}=i,s=0;s<a;s++){const c=i[s],l=e[c];l.distance===-1&&(l.distance=e[r].distance+1,l.parent=r,n.unshift(c))}}return e}function yUe(t,e){return function(n){return e(t(n))}}function gUe(t,e){const n=[e[t].parent,t];let r=Ht[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)n.unshift(e[i].parent),r=yUe(Ht[e[i].parent][i],r),i=e[i].parent;return r.conversion=n,r}function vUe(t){const e=mUe(t),n={},r=Object.keys(e);for(let{length:i}=r,a=0;a<i;a++){const s=r[a];e[s].parent!==null&&(n[s]=gUe(s,e))}return n}const ti={},MUe=Object.keys(Ht);function xUe(t){const e=function(...n){const r=n[0];return r==null?r:(r.length>1&&(n=r),t(n))};return"conversion"in t&&(e.conversion=t.conversion),e}function wUe(t){const e=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const i=t(n);if(typeof i=="object")for(let{length:a}=i,s=0;s<a;s++)i[s]=Math.round(i[s]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}for(const t of MUe){ti[t]={},Object.defineProperty(ti[t],"channels",{value:Ht[t].channels}),Object.defineProperty(ti[t],"labels",{value:Ht[t].labels});const e=vUe(t),n=Object.keys(e);for(const r of n){const i=e[r];ti[t][r]=wUe(i),ti[t][r].raw=xUe(i)}}const $0e=["keyword","gray","hex"],VI={};for(const t of Object.keys(ti))VI[[...ti[t].labels].sort().join("")]=t;const t4={};function b0(t,e){if(!(this instanceof b0))return new b0(t,e);if(e&&e in $0e&&(e=null),e&&!(e in ti))throw new Error("Unknown model: "+e);let n,r;if(t==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof b0)this.model=t.model,this.color=[...t.color],this.valpha=t.valpha;else if(typeof t=="string"){const i=W0.get(t);if(i===null)throw new Error("Unable to parse color from string: "+t);this.model=i.model,r=ti[this.model].channels,this.color=i.value.slice(0,r),this.valpha=typeof i.value[r]=="number"?i.value[r]:1}else if(t.length>0){this.model=e||"rgb",r=ti[this.model].channels;const i=Array.prototype.slice.call(t,0,r);this.color=QI(i,r),this.valpha=typeof t[r]=="number"?t[r]:1}else if(typeof t=="number")this.model="rgb",this.color=[t>>16&255,t>>8&255,t&255],this.valpha=1;else{this.valpha=1;const i=Object.keys(t);"alpha"in t&&(i.splice(i.indexOf("alpha"),1),this.valpha=typeof t.alpha=="number"?t.alpha:0);const a=i.sort().join("");if(!(a in VI))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=VI[a];const{labels:s}=ti[this.model],c=[];for(n=0;n<s.length;n++)c.push(t[s[n]]);this.color=QI(c)}if(t4[this.model])for(r=ti[this.model].channels,n=0;n<r;n++){const i=t4[this.model][n];i&&(this.color[n]=i(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}b0.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(t){let e=this.model in W0.to?this:this.rgb();e=e.round(typeof t=="number"?t:1);const n=e.valpha===1?e.color:[...e.color,this.valpha];return W0.to[e.model](...n)},percentString(t){const e=this.rgb().round(typeof t=="number"?t:1),n=e.valpha===1?e.color:[...e.color,this.valpha];return W0.to.rgb.percent(...n)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const t={},{channels:e}=ti[this.model],{labels:n}=ti[this.model];for(let r=0;r<e;r++)t[n[r]]=this.color[r];return this.valpha!==1&&(t.alpha=this.valpha),t},unitArray(){const t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,this.valpha!==1&&t.push(this.valpha),t},unitObject(){const t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,this.valpha!==1&&(t.alpha=this.valpha),t},round(t){return t=Math.max(t||0,0),new b0([...this.color.map(CUe(t)),this.valpha],this.model)},alpha(t){return t!==void 0?new b0([...this.color,Math.max(0,Math.min(1,t))],this.model):this.valpha},red:o0("rgb",0,P0(255)),green:o0("rgb",1,P0(255)),blue:o0("rgb",2,P0(255)),hue:o0(["hsl","hsv","hsl","hwb","hcg"],0,t=>(t%360+360)%360),saturationl:o0("hsl",1,P0(100)),lightness:o0("hsl",2,P0(100)),saturationv:o0("hsv",1,P0(100)),value:o0("hsv",2,P0(100)),chroma:o0("hcg",1,P0(100)),gray:o0("hcg",2,P0(100)),white:o0("hwb",1,P0(100)),wblack:o0("hwb",2,P0(100)),cyan:o0("cmyk",0,P0(100)),magenta:o0("cmyk",1,P0(100)),yellow:o0("cmyk",2,P0(100)),black:o0("cmyk",3,P0(100)),x:o0("xyz",0,P0(95.047)),y:o0("xyz",1,P0(100)),z:o0("xyz",2,P0(108.833)),l:o0("lab",0,P0(100)),a:o0("lab",1),b:o0("lab",2),keyword(t){return t!==void 0?new b0(t):ti[this.model].keyword(this.color)},hex(t){return t!==void 0?new b0(t):W0.to.hex(...this.rgb().round().color)},hexa(t){if(t!==void 0)return new b0(t);const e=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),W0.to.hex(...e)+n},rgbNumber(){const t=this.rgb().color;return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255},luminosity(){const t=this.rgb().color,e=[];for(const[n,r]of t.entries()){const i=r/255;e[n]=i<=.04045?i/12.92:((i+.055)/1.055)**2.4}return .2126*e[0]+.7152*e[1]+.0722*e[2]},contrast(t){const e=this.luminosity(),n=t.luminosity();return e>n?(e+.05)/(n+.05):(n+.05)/(e+.05)},level(t){const e=this.contrast(t);return e>=7?"AAA":e>=4.5?"AA":""},isDark(){const t=this.rgb().color;return(t[0]*2126+t[1]*7152+t[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const t=this.rgb();for(let e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten(t){const e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken(t){const e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate(t){const e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate(t){const e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten(t){const e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken(t){const e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale(){const t=this.rgb().color,e=t[0]*.3+t[1]*.59+t[2]*.11;return b0.rgb(e,e,e)},fade(t){return this.alpha(this.valpha-this.valpha*t)},opaquer(t){return this.alpha(this.valpha+this.valpha*t)},rotate(t){const e=this.hsl();let n=e.color[0];return n=(n+t)%360,n=n<0?360+n:n,e.color[0]=n,e},mix(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);const n=t.rgb(),r=this.rgb(),i=e===void 0?.5:e,a=2*i-1,s=n.alpha()-r.alpha(),c=((a*s===-1?a:(a+s)/(1+a*s))+1)/2,l=1-c;return b0.rgb(c*n.red()+l*r.red(),c*n.green()+l*r.green(),c*n.blue()+l*r.blue(),n.alpha()*i+r.alpha()*(1-i))}};for(const t of Object.keys(ti)){if($0e.includes(t))continue;const{channels:e}=ti[t];b0.prototype[t]=function(...n){return this.model===t?new b0(this):n.length>0?new b0(n,t):new b0([...EUe(ti[this.model][t].raw(this.color)),this.valpha],t)},b0[t]=function(...n){let r=n[0];return typeof r=="number"&&(r=QI(n,e)),new b0(r,t)}}function AUe(t,e){return Number(t.toFixed(e))}function CUe(t){return function(e){return AUe(e,t)}}function o0(t,e,n){t=Array.isArray(t)?t:[t];for(const r of t)(t4[r]||(t4[r]=[]))[e]=n;return t=t[0],function(r){let i;return r!==void 0?(n&&(r=n(r)),i=this[t](),i.color[e]=r,i):(i=this[t]().color[e],n&&(i=n(i)),i)}}function P0(t){return function(e){return Math.max(0,Math.min(t,e))}}function EUe(t){return Array.isArray(t)?t:[t]}function QI(t,e){for(let n=0;n<e;n++)typeof t[n]!="number"&&(t[n]=0);return t}const SUe=Rn()(t=>({tokenListItem:{display:"flex",justifyContent:"space-between",padding:"8px 16px",borderRadius:0,":hover":{backgroundColor:b0(t.palette.primary.main).alpha(.07).hexa()}},tokenListItemSelected:{backgroundColor:b0(t.palette.primary.main).alpha(.07).hexa()},tokenDetails:{display:"flex",flexDirection:"row",alignItems:"center"},addressLink:{display:"inline-flex",alignItems:"center",height:"10px",overflow:"hidden",color:t.palette.text.primary,opacity:.6},wormholeWrappedDisclaimer:{display:"inline",marginRight:4}}));function TUe(t){var l;const{classes:e}=SUe(),n=_r(),{chain:r,token:i}=t,a=(l=i.tokenId)==null?void 0:l.address.toString(),s=a?Y3(r,a,"token"):void 0,c=`${i.shortAddress}`;return L.jsxs(P1,{className:`${e.tokenListItem} ${t.isSelected?e.tokenListItemSelected:""}`,dense:!0,disabled:t.disabled,"data-testid":`token-button-${i.chain.toLowerCase()}-${i.address.toString()}`,onMouseDown:t.onClick,children:[L.jsxs("div",{className:e.tokenDetails,children:[L.jsx(cj,{children:L.jsx(Lj,{icon:t.token.icon})}),L.jsxs("div",{children:[L.jsx(dt,{children:i.display}),L.jsxs(ci,{display:"flex",children:[i.tokenBridgeOriginalTokenId?L.jsx(md,{title:`Wormhole-wrapped from ${CCe(i.tokenBridgeOriginalTokenId.chain)}`,children:L.jsx(ci,{margin:"2px",marginRight:"5px",children:L.jsx(yd,{height:10,icon:i.tokenBridgeOriginalTokenId.chain})})}):null,i.symbol?L.jsx(dt,{fontSize:10,color:n.palette.text.secondary,children:i.symbol}):null,i.symbol&&!i.isNativeGasToken?L.jsx(dt,{fontSize:10,color:n.palette.text.secondary,marginLeft:1,marginRight:1,children:"•"}):null,i.isNativeGasToken?null:L.jsx(dt,{fontSize:10,color:n.palette.text.secondary,children:!Fn(a)&&L.jsxs(Nb,{onMouseDown:d=>d.stopPropagation(),onClick:d=>d.stopPropagation(),className:e.addressLink,href:s,rel:"noreferrer noopener",target:"_blank",children:[c,L.jsx(Nj,{sx:{height:"10px",width:"10px",marginLeft:"2px"}})]})})]})]})]}),L.jsxs(Sn,{alignItems:"flex-end",children:[L.jsx(dt,{fontSize:14,children:t.isFetchingBalance?L.jsx(_0,{size:24}):t.balance?y0(ca(t.balance,6)):""}),t.price&&L.jsx(dt,{color:n.palette.text.secondary,fontSize:"10px",children:t.price})]})]})}const IUe=G.memo(TUe);function DUe(t){const e=la.get(Te.network,t);if(e)return fn.tokenId(t,e)}const NUe=Rn()(t=>({card:{background:t.palette.input.background,maxWidth:"420px"},tokenListContainer:{padding:"16px 0 0 0 !important"},title:{fontSize:14,marginBottom:"8px"},tokenLoader:{display:"flex",justifyContent:"space-between"},tokenList:{maxHeight:"360px",[t.breakpoints.down("sm")]:{maxHeight:"480px"}}})),_Y=t=>{var S;const{classes:e}=NUe(),n=_r(),r=Te.ui.disableUserInputtedTokens!==!0,{getOrFetchToken:i,isFetchingToken:a,getTokenPrice:s}=Zo(),[c,l]=G.useState(""),{isFetching:d,balances:p}=j0e(t.wallet,t.selectedChainConfig.key,t.tokenList||[]);G.useEffect(()=>{if(r)try{if(c!==""){const I=t.selectedChainConfig.sdkName,N=Gi(I,c);N&&(Te.tokens.get(I,c)||i({chain:I,address:N}))}}catch{}},[c,t.selectedChainConfig.sdkName]);const m=I=>{if(t.selectedToken&&Xi(t.selectedToken,I))return 4;if(Fn(I.address))return 3;const N=DUe(t.selectedChainConfig.sdkName);return N&&Xi(N,I)?2:I.isTokenBridgeWrappedToken?0:1},g=G.useMemo(()=>{if(!t.tokenList)return[];const I=t.tokenList.filter(k=>!uI(k,t.selectedChainConfig.sdkName));if(c){let k=[];const O=Te.tokens.get(t.selectedChainConfig.sdkName,c);O&&k.push(O);const z=Te.tokens.queryBySymbol(t.selectedChainConfig.sdkName,c).filter(_=>!uI(_,t.selectedChainConfig.sdkName));z.length>0&&(k=k.concat(z));for(const _ of k)t.tokenList.find(F=>Xi(_,F))||I.push(_)}const N=k=>{const O=p[P6(k)];return!O||!O.balance?0:e6(s,O.balance,k)??0};let B=I.sort((k,O)=>{const z=m(k),_=m(O);if(z>_)return-1;if(_>z)return 1;const F=N(k),R=N(O);return F!==R?R-F:k.symbol.localeCompare(O.symbol)});if(Te.tokenWhitelist&&Te.tokenWhitelist.length>0){const k=new Set,O=[];for(const z of Te.tokenWhitelist)if(typeof z=="string")O.push(z);else if(hB(z)){const _=bM(z);_.chain===t.selectedChainConfig.sdkName&&k.add(_.address.toString())}for(const z of O){let _=!1;const F=[];for(const R of B)R.symbol===z&&(R.isTokenBridgeWrappedToken?F.push(R):(k.add(R.address.toString()),_=!0));if(!_&&F.length>0){for(const{address:R}of F)k.add(R.toString());F.length>1&&console.warn(`Ambigous token whitelist item "${z}"; found ${F.length} matching wrapped tokens.`)}}B=B.filter(z=>k.has(z.address.toString()))}return Te.isTokenSupportedHandler&&(B=B.filter(Te.isTokenSupportedHandler)),t.isSource&&(B=B.filter(k=>{var z;const O=(z=p[P6(k)])==null?void 0:z.balance;return O&&gn(O)>0})),B},[t.selectedChainConfig.sdkName,t.selectedChainConfig.key,t.selectedToken,t.tokenList,t.sourceToken,t.isSource,(S=t.wallet)==null?void 0:S.address,p,c]),M=G.useMemo(()=>L.jsx(dt,{variant:"body2",color:n.palette.grey.A400,children:"No supported tokens found in wallet"}),[n.palette.grey.A400]),C=g.length===0&&!d&&!t.isFetching,T=`Search for a token${r?" or paste an address":""}`,D=L.jsx(H0e,{searchPlaceholder:T,className:e.tokenList,dataTestId:"token-search-list",listTitle:C?M:L.jsxs(dt,{fontSize:14,color:n.palette.text.secondary,children:["Tokens on ",t.selectedChainConfig.displayName]}),loading:t.isFetching&&L.jsx(P1,{className:e.tokenLoader,dense:!0,children:L.jsx(_0,{})}),items:g,onQueryChange:I=>{l(I)},filterFn:(I,N)=>{if(N.length===0)return!0;const B=N.toLowerCase();return!!([I.symbol,I.name].some(O=>{var z,_;return(_=(z=O==null?void 0:O.toLowerCase())==null?void 0:z.includes)==null?void 0:_.call(z,B)})||I.address.toString().toLowerCase().includes(B)||I.tokenBridgeOriginalTokenId&&I.tokenBridgeOriginalTokenId.address.toString().toLowerCase().includes(B))},renderFn:I=>{var O,z,_;const N=(O=p==null?void 0:p[I.key])==null?void 0:O.balance,B=N?S1(s,N,I):null,k=t.isSource&&!!((z=t.wallet)!=null&&z.address)&&!!p&&(!N||gn(N)===0n);return L.jsx(IUe,{token:I,chain:t.selectedChainConfig.key,disabled:k,onClick:()=>{t.onSelectToken(I)},balance:N,price:B,isSelected:I.key===((_=t.selectedToken)==null?void 0:_.key),isFetchingBalance:d},I.key)}});return L.jsx(Sl,{className:e.card,variant:"elevation",children:L.jsxs(hf,{className:e.tokenListContainer,children:[L.jsxs(ci,{sx:{display:"flex",width:"100%",padding:"0 16px"},children:[L.jsx(dt,{width:"100%",className:e.title,children:"Select a token"}),a?L.jsx(_0,{sx:{alignSelf:"flex-end",marginBottom:"12px"},size:14}):null]}),D]})})},LUe=Rn()(t=>({badgeContent:{border:`1.5px solid ${t.palette.input.background}`,borderRadius:"4px"}}));function hp(t){const{classes:e}=LUe(),{chainConfig:n,token:r}=t;return L.jsx(dje,{badgeContent:L.jsx(ci,{className:e.badgeContent,children:L.jsx(yd,{icon:n==null?void 0:n.icon,height:13})}),sx:{zIndex:0,height:"38px",marginRight:"8px","& .MuiBadge-badge":{right:2,top:32}},children:L.jsx(Lj,{icon:r==null?void 0:r.icon,height:36})})}const BUe=Rn()(t=>({inputArea:{width:"100%",cursor:"pointer",maxWidth:"420px",borderRadius:"8px",background:t.palette.input.fillTreatment?"transparent":t.palette.input.background,border:t.palette.input.fillTreatment?`1px solid ${t.palette.input.border}`:"none"},inputAreaEmpty:{borderColor:t.palette.input.background,background:t.palette.input.background},cardContent:{display:"flex",alignItems:"center",justifyContent:"space-between",height:"72px",padding:"16px 20px",":last-child":{padding:"16px 20px"}},chainSelector:{display:"flex",alignItems:"center",justifyContent:"space-between"},disabled:{opacity:"0.6",cursor:"default",pointerEvents:"none"},popover:{marginLeft:"-1px",marginTop:"-1px",width:"422px"},popoverSlot:{width:"100%",maxWidth:"422px",borderRadius:"8px",background:t.palette.input.background},backdrop:{backgroundColor:"rgba(0,0,0,0.2)"},drawer:{background:t.palette.input.background,borderRadius:"8px",height:"calc(100vh - 40px)",maxWidth:"100vw"}})),OY=t=>{const e=_r(),n=ev(e.breakpoints.down("sm")),[r,i]=G.useState(!1),[a,s]=G.useState(!1),{classes:c}=BUe(),l=F0e({variant:"popover",popupId:"asset-picker"});G.useEffect(()=>{(n&&!a||!n&&!l.isOpen)&&setTimeout(()=>{i(!1)},300)},[a,n,l.isOpen]),G.useEffect(()=>{if(n&&a&&!t.chain||!n&&l.isOpen&&!t.chain){const g=t.chainList.find(M=>!Ire(M.key,t.wallet));g&&t.setChain(g.key)}},[n,a,l.isOpen]);const d=G.useMemo(()=>t.chain?Te.chains[t.chain]:void 0,[t.chain]),p=G.useMemo(()=>{if(!d&&!t.token)return L.jsx(dt,{component:"div",fontSize:16,children:"Select chain and token"});const g=t.token?L.jsx(L.Fragment,{children:t.token.display}):L.jsx(L.Fragment,{children:"Select token"});return L.jsxs("div",{children:[L.jsx(dt,{component:"div",maxWidth:300,fontSize:16,fontWeight:700,sx:{display:"flex",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:g}),L.jsx(dt,{component:"div",fontSize:12,sx:{opacity:.6},children:d==null?void 0:d.displayName})]})},[d,t.token]),m=t.isTransactionInProgress||n?{}:z0e(l);return L.jsxs(L.Fragment,{children:[L.jsx(i0e,{open:l.isOpen,className:c.backdrop}),L.jsx(Sl,{className:ro([c.inputArea,!d&&c.inputAreaEmpty,t.isTransactionInProgress&&c.disabled]),"data-testid":t.dataTestId,variant:"elevation",onMouseDown:g=>{n?s(!0):l.open(g)},onTouchEnd:g=>{g.stopPropagation(),g.preventDefault(),n?s(!0):l.open(g)},...m,children:L.jsxs(hf,{className:c.cardContent,children:[L.jsxs(dt,{className:c.chainSelector,component:"div",gap:1,children:[L.jsx(hp,{chainConfig:d,token:t.token}),p]}),l.isOpen||a?L.jsx(U0e,{}):L.jsx(P0e,{})]})}),n?L.jsxs(NFe,{anchor:"bottom",open:a,PaperProps:{className:c.drawer},transitionDuration:200,onOpen:()=>s(!0),onClose:()=>s(!1),children:[L.jsx(Sn,{alignItems:"center",paddingBottom:"4px",paddingTop:"8px",children:L.jsx(ci,{sx:{width:"40px",height:"5px",backgroundColor:e.palette.text.secondary,borderRadius:"8px"}})}),L.jsx(BY,{chainList:t.chainList,selectedChainConfig:d,showSearch:r,setShowSearch:i,wallet:t.wallet,onChainSelect:g=>{t.setChain(g)}}),!r&&d&&L.jsx(_Y,{tokenList:t.tokenList,isFetching:t.isFetching,selectedChainConfig:d,selectedToken:t.token,sourceToken:t.sourceToken,wallet:t.wallet,onSelectToken:g=>{t.setToken(g),s(!1)},isSource:t.isSource})]}):L.jsxs(lj,{...R0e(l),transitionDuration:200,anchorOrigin:{vertical:"top",horizontal:"center"},className:c.popover,transformOrigin:{vertical:"top",horizontal:"center"},marginThreshold:4,slotProps:{paper:{className:c.popoverSlot,sx:{borderRadius:"8px"}}},children:[L.jsx(BY,{chainList:t.chainList,selectedChainConfig:d,showSearch:r,setShowSearch:i,wallet:t.wallet,onChainSelect:g=>{t.setChain(g)}}),!r&&d&&L.jsx(_Y,{tokenList:t.tokenList,isFetching:t.isFetching,selectedChainConfig:d,selectedToken:t.token,sourceToken:t.sourceToken,wallet:t.wallet,onSelectToken:g=>{t.setToken(g),l.close()},isSource:t.isSource})]})]})},jUe=t=>{const{address:e,href:n,target:r="_blank",label:i="Transactions"}=t,a=G.useCallback(()=>window.open(n.replace("{:address}",e),r),[e,n,r]);return L.jsx(P1,{onClick:a,children:L.jsx(dt,{fontSize:14,children:i})})},kUe=Rn()(t=>({connectWallet:{display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"8px",cursor:"pointer",paddingTop:"2px",opacity:1},walletAddress:{color:t.palette.textSecondary,marginLeft:"8px"},disabled:{opacity:"0.6",cursor:"default",pointerEvents:"none"},dropdown:{backgroundColor:t.palette.popover.background,display:"flex",flexDirection:"column",gap:"8px",padding:"8px"},dropdownItem:{borderRadius:"8px",padding:"16px",cursor:"pointer","&:hover":{backgroundColor:t.palette.popover.secondary}}})),_Ue=1e3,FY=t=>{const e=V0(),{classes:n}=kUe(),{isTransactionInProgress:r}=ir(C=>C.transferInput),i=ir(C=>C.wallet[t.type]),[a,s]=G.useState(!1),[c,l]=G.useState(!1),d=F0e({variant:"popover",popupId:`connected-wallet-popover-${t.type}`}),p=G.useCallback(()=>{d==null||d.close(),s(!0)},[d]),m=G.useCallback(()=>{Kte(i.address),d==null||d.close(),l(!0)},[d,i.address]),g=G.useCallback(()=>{e(hCe(t.type)),d==null||d.close()},[e,d,t.type]);G.useEffect(()=>{c&&setTimeout(()=>{l(!1)},_Ue)},[c]);const M=r?{}:z0e(d);return i!=null&&i.address?L.jsxs(L.Fragment,{children:[L.jsxs("div",{className:ro([n.connectWallet,r&&n.disabled]),...M,children:[L.jsx(O0e,{name:i.name,icon:i.icon,size:20}),L.jsx(md,{title:"Copied",open:c,placement:"top",arrow:!0,children:L.jsx(dt,{className:n.walletAddress,fontSize:14,fontWeight:700,children:Zte(i.type,i.address)})})]}),L.jsx(lj,{...R0e(d),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:L.jsxs(Lb,{children:[L.jsx(P1,{onClick:m,children:L.jsx(dt,{fontSize:14,children:"Copy address"})}),Te.ui.explorer?L.jsx(jUe,{address:i.address,href:Te.ui.explorer.href,target:Te.ui.explorer.target,label:Te.ui.explorer.label}):null,L.jsx(P1,{onClick:p,children:L.jsx(dt,{fontSize:14,children:"Change wallet"})}),L.jsx(P1,{onClick:g,children:L.jsx(dt,{fontSize:14,children:"Disconnect"})})]})}),L.jsx(Sj,{open:a,type:t.type,onClose:()=>{s(!1)},showAddressInput:t.type===si.RECEIVING})]}):L.jsx(L.Fragment,{})},OUe=500,FUe=G.memo(({value:t,onChange:e,onDebouncedChange:n,...r})=>{const[i,a]=G.useState(t),[s,c]=G.useState(!1),l=vj(n,OUe),d=G.useCallback(p=>{let m=p.target.value;m==="."&&(m="0.");const g=Number(m);isNaN(g)||g<0||(a(p.target.value),e(p.target.value),l(p.target.value))},[l,e]);return G.useEffect(()=>{s||a(t)},[t]),L.jsx(Zg,{...r,"data-testid":"amount-input",value:i,focused:s,onChange:d,onFocus:()=>c(!0),onBlur:()=>c(!1)})}),zUe=Rn()(t=>({amountContainer:{width:"100%",maxWidth:"420px"},amountInput:{borderRadius:"8px",background:t.palette.input.fillTreatment?"transparent":t.palette.input.background,border:t.palette.input.fillTreatment?`1px solid ${t.palette.input.border}`:"none"},amountInputEmpty:{background:t.palette.input.background,borderColor:t.palette.input.background},amountCardContent:{display:"flex",alignItems:"center",height:"72px",padding:"12px 20px",":last-child":{padding:"12px 20px"}},amountTitle:{color:t.palette.text.secondary,display:"flex",minHeight:"40px",alignItems:"center",justifyContent:"space-between"},inputError:{marginTop:"12px"},balance:{color:t.palette.text.secondary,fontSize:"14px",lineHeight:"14px",textAlign:"right"}})),RUe=t=>{const{classes:e}=zUe(),n=V0(),r=_r(),{sending:i}=ir(B=>B.wallet),{amount:a}=ir(B=>B.transferInput),[s,c]=G.useState(a?y0(a):""),[l,d]=G.useState(a?y0(a):""),{fromChain:p,isTransactionInProgress:m}=ir(B=>B.transferInput),{sourceToken:g}=HM(),{getTokenPrice:M}=Zo();G.useEffect(()=>{!a&&(s||l)&&(D(""),I(""))},[a]);const C=G.useMemo(()=>m||!p||!g,[m,p,g]),T=G.useMemo(()=>C||!i.address?null:L.jsxs(Sn,{direction:"row",alignItems:"center",children:[L.jsx(dt,{className:e.balance,component:"span",sx:{marginRight:"4px"},children:"Balance:"}),t.isFetchingTokenBalance?L.jsx(_0,{size:14}):L.jsx(dt,{fontSize:14,textAlign:"right",className:e.balance,children:t.tokenBalance?y0(ca(t.tokenBalance,6)):"0"})]}),[C,i.address,e.balance,t.isFetchingTokenBalance,t.tokenBalance]),D=G.useCallback(B=>{c(B)},[]),S=G.useMemo(()=>{const B=S1(M,Number(s==="."?"0.":s),g);return B?L.jsx(Qg,{position:"end",sx:{position:"absolute",top:"38px",margin:0},children:L.jsx(Sn,{alignItems:"start",children:L.jsx(dt,{color:r.palette.text.secondary,component:"span",fontSize:"14px",lineHeight:"14px",children:B})})}):null},[s,M,g,r.palette.text.secondary]),I=G.useCallback(B=>{n(PB(B)),d(B)},[n]),N=G.useMemo(()=>{const B=C||!i.address||!t.tokenBalance;return L.jsx(Db,{sx:{minWidth:"32px",padding:"4px"},disabled:B,onClick:()=>{if(t.tokenBalance){const k=y0(t.tokenBalance);D(k),I(k)}},children:L.jsx(dt,{fontSize:14,fontWeight:B?400:600,textTransform:"none",children:"Max"})})},[C,i.address,t.tokenBalance,D,I]);return L.jsxs("div",{className:e.amountContainer,children:[L.jsx("div",{className:e.amountTitle,children:L.jsx(dt,{variant:"body2",children:"Amount"})}),L.jsx(Sl,{className:`${e.amountInput} ${s===""?e.amountInputEmpty:""}`,children:L.jsx(hf,{className:e.amountCardContent,children:L.jsx(FUe,{fullWidth:!0,disabled:C,inputProps:{style:{color:t.error?r.palette.error.main:r.palette.text.primary,fontSize:24,height:"28px",marginBottom:S?"16px":0,padding:0},onWheel:B=>{B.currentTarget.blur()},step:"0.1"},placeholder:"0",variant:"standard",value:l,onChange:D,onDebouncedChange:I,InputProps:{disableUnderline:!0,startAdornment:S,endAdornment:L.jsx(Qg,{position:"end",children:L.jsxs(Sn,{alignItems:"end",justifyContent:"space-between",children:[N,T]})})}})})}),L.jsx(jb,{error:!!t.error,content:t.error||t.warning,show:!!t.error||!!t.warning,color:t.error?r.palette.error.main:r.palette.grey.A400,className:e.inputError})]})},PUe=t=>{const{destChain:e,destToken:n,route:r,isTransactionInProgress:i}=t,a=i,s=e?Te.chains[e]:void 0,c=s?Te.tokens.getGasToken(s.sdkName):void 0,l=c?ACe(c):void 0,d=l&&n===l.key,p=!!r&&Te.routes.get(r).NATIVE_GAS_DROPOFF_SUPPORTED&&!d;return{disabled:a,showGasSlider:p}},UUe=ba(L.jsxs("svg",{width:"34",height:"35",viewBox:"0 0 34 35",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[L.jsx("circle",{opacity:"0.1",cx:"17",cy:"17.5",r:"17",fill:"currentColor"}),L.jsx("path",{d:"M17 11C13.1386 11 10 14.1386 10 18C10 21.8614 13.1386 25 17 25C20.8614 25 24 21.8614 24 18C24 14.1386 20.8614 11 17 11ZM17 24.0233C13.6791 24.0233 10.9767 21.3209 10.9767 18C10.9767 14.6791 13.6791 11.9767 17 11.9767C20.3209 11.9767 23.0233 14.6791 23.0233 18C23.0233 21.3209 20.3209 24.0233 17 24.0233ZM16.5116 18.6512V14.7442C16.5116 14.4772 16.733 14.2558 17 14.2558C17.267 14.2558 17.4884 14.4772 17.4884 14.7442V18.6512C17.4884 18.9181 17.267 19.1395 17 19.1395C16.733 19.1395 16.5116 18.9181 16.5116 18.6512ZM17.814 20.9302C17.814 21.3795 17.4493 21.7442 17 21.7442C16.5507 21.7442 16.186 21.3795 16.186 20.9302C16.186 20.4809 16.5507 20.1163 17 20.1163C17.4493 20.1163 17.814 20.4809 17.814 20.9302Z",fill:"currentColor"})]}),"Error"),hE=ba(L.jsxs("svg",{width:"34",height:"35",viewBox:"0 0 34 35",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[L.jsx("circle",{opacity:"0.1",cx:"17",cy:"17.5",r:"17",fill:"currentColor"}),L.jsx("path",{d:"M17 10.5C13.1386 10.5 10 13.6386 10 17.5C10 21.3614 13.1386 24.5 17 24.5C20.8614 24.5 24 21.3614 24 17.5C24 13.6386 20.8614 10.5 17 10.5ZM17 23.5233C13.6791 23.5233 10.9767 20.8209 10.9767 17.5C10.9767 14.1791 13.6791 11.4767 17 11.4767C20.3209 11.4767 23.0233 14.1791 23.0233 17.5C23.0233 20.8209 20.3209 23.5233 17 23.5233ZM16.5116 18.1512V14.2442C16.5116 13.9772 16.733 13.7558 17 13.7558C17.267 13.7558 17.4884 13.9772 17.4884 14.2442V18.1512C17.4884 18.4181 17.267 18.6395 17 18.6395C16.733 18.6395 16.5116 18.4181 16.5116 18.1512ZM17.814 20.4302C17.814 20.8795 17.4493 21.2442 17 21.2442C16.5507 21.2442 16.186 20.8795 16.186 20.4302C16.186 19.9809 16.5507 19.6163 17 19.6163C17.4493 19.6163 17.814 19.9809 17.814 20.4302Z",fill:"currentColor"})]}),"Warning"),HUe=ba(L.jsx("svg",{width:"9",height:"14",viewBox:"0 0 9 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:L.jsx("path",{d:"M8.9,5.7c0-.1-.2-.2-.4-.2h-4c-.3,0-.5-.2-.5-.4V0L0,7.9c0,.1,0,.3,0,.4,0,.1.2.2.4.2h4c.3,0,.5.2.5.4v5.1l4-7.9c0-.1,0-.3,0-.4Z"})}),"Fastest"),WUe=ba(L.jsxs("svg",{width:"14",height:"13",viewBox:"0 0 14 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[L.jsx("path",{d:"M5.2,7.5c0-1,.8-1.8,1.7-1.8s1.7.8,1.7,1.8-.8,1.8-1.7,1.8-1.7-.8-1.7-1.8Z"}),L.jsx("path",{d:"M10.1,7.5c0,1.2-.6,2.2-1.6,2.7l1.9,3.4c2.1-1.2,3.5-3.5,3.5-6.1h-3.9Z"}),L.jsx("path",{d:"M7,4.3c.6,0,1.1.2,1.6.4l1.9-3.4c-1-.6-2.2-.9-3.5-.9s-2.5.3-3.5.9l1.9,3.4c.5-.3,1-.4,1.6-.4Z"}),L.jsx("path",{d:"M3.9,7.5H0c0,2.6,1.4,4.9,3.5,6.1l1.9-3.4c-.9-.5-1.6-1.5-1.6-2.7Z"})]}),"Cheapest");var Bj={},YUe=pa;Object.defineProperty(Bj,"__esModule",{value:!0});var V0e=Bj.default=void 0,GUe=YUe(ps()),$Ue=L;V0e=Bj.default=(0,GUe.default)((0,$Ue.jsx)("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"InfoOutlined");const VUe=Rn()(t=>({content:{width:"100%",cursor:"pointer",maxWidth:"420px",overflow:"visible",padding:"16px 20px"},container:{display:"flex",flexDirection:"column",gap:"8px",width:"100%"},amounts:{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:"8px",width:"100%"},toggleButton:{backgroundColor:b0(t.palette.text.primary).alpha(.1).hexa(),border:"1px solid transparent",borderRadius:"8px","&.Mui-selected":{border:`1px solid ${t.palette.primary.main}`,borderRadius:"8px"},"&.MuiToggleButtonGroup-middleButton":{margin:"0 2px"},"&.MuiToggleButtonGroup-lastButton":{margin:"0"}}})),QUe=bt(zFe)(({theme:t})=>({padding:"9px 12px",right:"-9px","& .MuiSwitch-switchBase.Mui-checked":{color:t.palette.primary.main},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:t.palette.primary.main},"& .MuiSwitch-track":{height:"20px",borderRadius:"9px"}})),qUe=t=>{const{classes:e}=VUe(),n=V0(),r=_r(),{fromChain:i,toChain:a}=ir(S=>S.transferInput),{getTokenPrice:s,lastTokenPriceUpdate:c}=Zo(),l=Te.tokens.getGasToken(a),d=Te.tokens.getGasToken(i),[p,m]=G.useState(!1),[g,M]=G.useState(0),[C]=E0e(g,500);G.useEffect(()=>{n(rNe(C/100))},[C,n]);const T=G.useMemo(()=>{if(!a||!l)return null;const S=y0(ca(t.destinationGasDrop,6)),I=S1(s,t.destinationGasDrop,l),N=I?`(${I})`:"";return`+${S} ${l.symbol} ${N}`},[l,c,t.destinationGasDrop,a]),D=G.useMemo(()=>L.jsxs(eze,{exclusive:!0,fullWidth:!0,value:g.toString(),onChange:S=>{const I=Number(S.currentTarget.value);M(I===g?0:I)},children:[L.jsx(fE,{className:e.toggleButton,disableRipple:!0,value:"5",children:"5%"}),L.jsx(fE,{className:e.toggleButton,disableRipple:!0,value:"10",children:"10%"}),L.jsx(fE,{className:e.toggleButton,disableRipple:!0,value:"15",children:"15%"})]}),[e.toggleButton,g]);return!d||!l?L.jsx(L.Fragment,{}):L.jsxs("div",{className:e.content,children:[L.jsxs(Sn,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[L.jsx(dt,{children:`Need extra ${l.symbol} on ${a}?`}),L.jsx(QUe,{checked:p,disabled:t.disabled,onClick:S=>{const{checked:I}=S.target;m(I),I?t.isExecutorRoute&&M(100):M(0)}})]}),L.jsx(Eb,{in:p,unmountOnExit:!0,children:L.jsx("div",{className:e.container,children:L.jsxs(Sn,{children:[!t.isExecutorRoute&&D,L.jsxs("div",{className:e.amounts,children:[L.jsxs(Sn,{alignItems:"center",flexDirection:"row",children:[L.jsx(dt,{color:r.palette.text.secondary,fontSize:14,marginRight:"4px",children:"Gas amount"}),L.jsx(md,{title:t.isExecutorRoute?`Add a small amount of ${d.symbol} to your transaction to receive ${T} on ${a}.`:"This additional gas is swapped from a percentage of your transfer amount.",children:L.jsx(V0e,{sx:{color:r.palette.text.secondary,fontSize:"16px"}})})]}),L.jsx(dt,{color:r.palette.primary.main,fontSize:14,children:T})]})]})})})]})},ZUe=20,KUe=Rn()(t=>({container:{width:"100%",maxWidth:"420px",marginBottom:"8px"},card:{borderRadius:"8px",width:"100%",maxWidth:"420px"},cardSelected:{backgroundColor:t.palette.input.fillTreatment?b0(t.palette.primary.main).alpha(.05).hexa():t.palette.card.background,borderColor:t.palette.primary.main},cardHeader:{padding:"20px 20px 0px"},cardContent:{marginTop:"18px",padding:"0px 20px 20px"},errorIcon:{color:t.palette.error.main,height:"34px",width:"34px",marginRight:"24px"},fastestBadge:{width:"14px",height:"14px",position:"relative",top:"2px",marginRight:"4px",fill:t.palette.primary.main},cheapestBadge:{width:"12px",height:"12px",position:"relative",top:"1px",marginRight:"3px",fill:t.palette.primary.main},messageContainer:{padding:"12px 0px 0px"},warningIcon:{color:t.palette.warning.main,height:"34px",width:"34px",marginRight:"12px"},disabled:{opacity:"0.6",cursor:"default",pointerEvents:"none"}})),XUe=t=>{const{classes:e}=KUe(),n=_r(),r=Te.routes.get(t.route),{toChain:i,fromChain:a,isTransactionInProgress:s}=ir(x=>x.transferInput),{getTokenPrice:c,lastTokenPriceUpdate:l}=Zo(),{quote:d,isSelected:p}=t,m=d==null?void 0:d.destinationNativeGas,{sourceToken:g,destToken:M}=HM(),{disabled:C,showGasSlider:T}=PUe({destChain:i,destToken:M==null?void 0:M.key,route:t.route,isTransactionInProgress:s}),[D,S,I]=G.useMemo(()=>{if(!(d!=null&&d.relayFee))return[void 0,!1,void 0];const x=Fo(d.relayFee.amount),E=Te.tokens.get(d.relayFee.token),v=e6(c,x,E);return v===void 0?[void 0,!1,void 0]:[v,v>ZUe,E]},[c,d==null?void 0:d.relayFee]),N=G.useMemo(()=>{if(!r.AUTOMATIC_DEPOSIT)return L.jsxs(L.Fragment,{children:["You pay gas on ",i]});if(!d||!D||!I)return L.jsx(L.Fragment,{});const x=MB(D);let E=`${y0(ca(d.relayFee.amount,6))} ${I.display} (${x})`;return(t.route.startsWith("MayanSwap")||t.route.endsWith("ExecutorRoute"))&&(E=x),L.jsxs(Sn,{direction:"row",justifyContent:"space-between",children:[L.jsx(dt,{color:n.palette.text.secondary,component:"div",fontSize:"14px",lineHeight:"14px",children:"Network cost"}),L.jsx(dt,{color:n.palette.text.primary,component:"div",fontSize:"14px",lineHeight:"14px",children:E})]})},[i,D,I,t.route,d,r.AUTOMATIC_DEPOSIT,n.palette.text.primary,n.palette.text.secondary]),B=G.useMemo(()=>{if(!i||t.destinationGasDrop===void 0||gn(t.destinationGasDrop)===0n)return L.jsx(L.Fragment,{});const x=Te.chains[i],E=Te.tokens.getGasToken(i);if(!x||!E)return L.jsx(L.Fragment,{});const v=S1(c,t.destinationGasDrop,E),f=y0(ca(t.destinationGasDrop,6)),A=v?` (${v})`:"";return L.jsxs(Sn,{direction:"row",justifyContent:"space-between",children:[L.jsx(dt,{color:n.palette.text.secondary,component:"div",fontSize:"14px",lineHeight:"14px",children:"Additional gas"}),L.jsx(dt,{color:n.palette.text.primary,component:"div",fontSize:"14px",lineHeight:"14px",children:`${f} ${E.symbol}${A}`})]})},[i,l,t.destinationGasDrop,c,l,n.palette.text.secondary,n.palette.text.primary]),k=G.useMemo(()=>L.jsxs(Sn,{direction:"row",justifyContent:"space-between",children:[L.jsx(dt,{color:n.palette.text.secondary,component:"div",fontSize:"14px",lineHeight:"14px",children:`Time to ${i}`}),L.jsx(dt,{component:"div",fontSize:"14px",lineHeight:"14px",sx:{color:d!=null&&d.eta&&d.eta<60*1e3?n.palette.success.main:n.palette.text.primary},children:d!=null&&d.eta?Jte(d.eta):"N/A"})]}),[i,d==null?void 0:d.eta,n.palette.success.main,n.palette.text.primary,n.palette.text.secondary]),O=G.useMemo(()=>t.route?!r.AUTOMATIC_DEPOSIT:!1,[t.route,r.AUTOMATIC_DEPOSIT]),z=G.useMemo(()=>L.jsx($g,{flexItem:!0,sx:{marginTop:"24px"}}),[]),_=G.useMemo(()=>t.error?L.jsxs(L.Fragment,{children:[z,L.jsxs(Sn,{className:e.messageContainer,direction:"row",alignItems:"center",children:[L.jsx(UUe,{className:e.errorIcon}),L.jsx(dt,{color:n.palette.error.main,fontSize:"14px",lineHeight:"18px",children:t.error})]})]}):null,[e.errorIcon,e.messageContainer,z,t.error,n.palette.error.main]),F=G.useMemo(()=>{const x=[];O&&x.push(L.jsxs("div",{children:[z,L.jsxs(Sn,{className:e.messageContainer,direction:"row",alignItems:"center",children:[L.jsx(hE,{className:e.warningIcon}),L.jsxs(Sn,{children:[L.jsx(dt,{color:n.palette.warning.main,fontSize:14,lineHeight:"18px",children:"This transfer requires two transactions."}),L.jsx(dt,{color:n.palette.text.secondary,fontSize:14,lineHeight:"18px",children:"You will need to make two wallet approvals and have gas on the destination chain."})]})]})]},"ManualTransactionWarning"));for(const E of(d==null?void 0:d.warnings)||[])if(E.type==="DestinationCapacityWarning"&&E.delayDurationSec){const v=DCe(E.delayDurationSec);x.push(L.jsxs("div",{children:[z,L.jsxs(Sn,{className:e.messageContainer,direction:"row",alignItems:"center",children:[L.jsx(hE,{className:e.warningIcon}),L.jsx(dt,{color:n.palette.warning.main,fontSize:14,lineHeight:"18px",children:`Your transfer to ${i} may be delayed due to rate limits set by ${M.display}. If your transfer is delayed, you will need to return after ${v} to complete the transfer. Please consider this before proceeding.`})]})]},`${E.type}-${E.delayDurationSec}`))}return S&&x.push(L.jsxs("div",{children:[z,L.jsxs(Sn,{className:e.messageContainer,direction:"row",alignItems:"center",children:[L.jsx(hE,{className:e.warningIcon}),L.jsxs(Sn,{children:[L.jsx(dt,{color:n.palette.warning.main,fontSize:14,lineHeight:"18px",children:"Output amount is much lower than input amount."}),L.jsx(dt,{color:n.palette.text.secondary,fontSize:14,lineHeight:"18px",children:"Double check before proceeding."})]})]})]},"HighFee")),x},[O,S,z,e.warningIcon,e.messageContainer,n.palette.warning.main,n.palette.text.secondary,d==null?void 0:d.warnings,M,i]),R=G.useMemo(()=>g?t.route==="AutomaticNtt"&&(g==null?void 0:g.symbol)==="wstETH"&&(a==="Ethereum"&&i==="Bsc"||a==="Bsc"&&i==="Ethereum")?"via NTT: Wormhole + Axelar":r.rc.meta.provider?`via ${r.rc.meta.provider}`:"":"",[t.route,r,a,g,i]),w=G.useMemo(()=>d?Fo(d==null?void 0:d.destinationToken.amount):void 0,[d]),o=G.useMemo(()=>{if(d)return y0(ca(d.destinationToken.amount,6))},[d]),u=G.useMemo(()=>{if(t.error)return L.jsx(dt,{color:"error",children:"Route is unavailable"});if(w===void 0||!M)return null;const x=S?n.palette.warning.main:n.palette.text.primary;return L.jsxs(dt,{fontSize:"18px",lineHeight:"18px",color:x,component:"div",marginBottom:"6px",children:[o," ",M.symbol]})},[t.error,w,o,M,S,n.palette.warning.main,n.palette.text.primary]),h=G.useMemo(()=>{if(t.error||!i||!M||w===void 0)return null;const x=S1(c,w,M);return L.jsx(dt,{fontSize:"14px",lineHeight:"14px",color:n.palette.text.secondary,component:"div",children:`${x} ${R}`})},[i,M,c,l,t.error,R,w,n.palette.text.secondary]),b=G.useMemo(()=>p||typeof t.onSelect!="function"?"default":t.error?"not-allowed":"pointer",[t.error,p,t.onSelect]),y=G.useMemo(()=>t.isFastest?L.jsxs(L.Fragment,{children:[L.jsx(HUe,{className:e.fastestBadge}),t.isOnlyChoice?"Fast":"Fastest"]}):t.isCheapest&&!t.isOnlyChoice?L.jsxs(L.Fragment,{children:[L.jsx(WUe,{className:e.cheapestBadge})," Cheapest"]}):null,[t.isFastest,t.isCheapest,t.isOnlyChoice,e.fastestBadge,e.cheapestBadge]);return t.route?L.jsx("div",{className:e.container,"data-testid":`route-${t.route}${p?"-selected":""}`,children:L.jsx(Sl,{className:ro([e.card,p&&e.cardSelected,s&&e.disabled]),sx:{border:"1px solid",borderColor:p?n.palette.primary.main:"transparent",opacity:1},children:L.jsxs(ij,{disabled:s||typeof t.onSelect!="function"||t.error!==void 0,disableTouchRipple:!0,sx:{cursor:b},onClick:()=>{var x;(x=t.onSelect)==null||x.call(t,t.route)},children:[L.jsx(s0e,{avatar:L.jsx(Lj,{icon:M==null?void 0:M.icon}),className:e.cardHeader,title:u,subheader:h,action:y}),L.jsxs(hf,{className:e.cardContent,children:[L.jsxs(Sn,{gap:"14px",children:[N,B,k]}),_,F]}),T&&L.jsxs(L.Fragment,{children:[L.jsx($g,{flexItem:!0,sx:{margin:"0px 16px"}}),L.jsx(Eb,{in:T,children:L.jsx(qUe,{destinationGasDrop:m||Sr(0n,8),disabled:C,isExecutorRoute:t.route.toLowerCase().endsWith("executorroute")})})]})]})})},t.route):L.jsx(L.Fragment,{})},JUe=Rn()(t=>({otherRoutesToggle:{display:"block",width:"100%",textAlign:"center",fontSize:14,color:t.palette.text.secondary,textDecoration:"none",cursor:"pointer","&:hover":{textDecoration:"underline"}}})),eHe=({...t})=>{const{classes:e}=JUe(),[n,r]=G.useState(!1),i=G.useMemo(()=>t.routes.filter(l=>t.quotes[l]!==void 0),[t.routes,t.quotes]),a=G.useMemo(()=>{if(n)return i;const l=i.find(d=>d===t.selectedRoute);return l?[l]:i.slice(0,1)},[n,i,t.selectedRoute]),s=G.useMemo(()=>i.reduce((l,d)=>{const p=t.quotes[d];return!p||!p.success?l:p.eta!==void 0&&p.eta<l.eta&&p.eta<6e4?{name:d,eta:p.eta}:l},{name:"",eta:1/0}),[i,t.quotes]),c=G.useMemo(()=>i.reduce((l,d)=>{const p=t.quotes[d],m=Te.routes.get(d);if(!p||!p.success||!m.AUTOMATIC_DEPOSIT)return l;const g=BigInt(p.destinationToken.amount.amount);return g>l.amountOut?{name:d,amountOut:g}:l},{name:"",amountOut:0n}),[i,t.quotes]);return L.jsxs(L.Fragment,{children:[t.isLoading||a.length>0?L.jsxs(ci,{sx:{display:"flex",width:"100%"},children:[L.jsx(dt,{align:"left",fontSize:16,paddingBottom:0,marginTop:"8px",marginBottom:0,width:"100%",textAlign:"left",children:"Routes"}),t.isLoading?L.jsx(_0,{sx:{alignSelf:"flex-end"},size:20}):null]}):null,t.isLoading&&a.length===0?L.jsx(pFe,{variant:"rounded",height:153,width:"100%"}):a.map((l,d)=>{var C;const p=l===t.selectedRoute,m=t.quotes[l],g=m!=null&&m.success?m:void 0,M=(m==null?void 0:m.success)===!1?((C=m==null?void 0:m.error)==null?void 0:C.message)??`Error while getting a quote for ${l}.`:void 0;return L.jsx(XUe,{route:l,error:M,isSelected:p&&!M,isFastest:l===s.name,isCheapest:l===c.name,isOnlyChoice:i.length===1,onSelect:t.onRouteChange,quote:g},l)}),i.length>1&&L.jsx(Nb,{className:e.otherRoutesToggle,"data-testid":"other-routes-toggle",onClick:()=>r(l=>!l),children:n?"Hide other routes":"View other routes"})]})};var jj={},tHe=pa;Object.defineProperty(jj,"__esModule",{value:!0});var Q0e=jj.default=void 0,nHe=tHe(ps()),rHe=L;Q0e=jj.default=(0,nHe.default)((0,rHe.jsx)("path",{d:"M16 17.01V10h-2v7.01h-3L15 21l4-3.99zM9 3 5 6.99h3V14h2V6.99h3z"}),"SwapVert");const iHe=Rn()(()=>({swapButton:{display:"block",position:"absolute",bottom:-44,left:"calc(50% - 20px)",width:40,height:40,zIndex:1}}));function aHe(){var d,p;const t=V0(),[e,n]=G.useState(""),{isTransactionInProgress:r,fromChain:i,toChain:a}=ir(m=>m.transferInput),s=!r&&i&&!((d=Te.chains[i])!=null&&d.disabledAsDestination)&&a&&!((p=Te.chains[a])!=null&&p.disabledAsSource),c=G.useCallback(()=>{!s||r||(n(m=>m==="spinRight"?"spinLeft":"spinRight"),t(tNe()),t(pCe()),t(PB("")))},[s,r,t]),{classes:l}=iHe();return L.jsx(Sb,{className:l.swapButton,sx:{animation:`${e} 0.3s linear 1`,"@keyframes spinRight":{"0%":{transform:"rotate(-180deg)"},"100%":{transform:"rotate(0deg)"}},"@keyframes spinLeft":{"0%":{transform:"rotate(180deg)"},"100%":{transform:"rotate(0deg)"}}},onClick:c,disabled:!s,children:L.jsx(Q0e,{})})}var q0e={exports:{}};(function(t,e){(function(n,r){t.exports=r(G)})(typeof self<"u"?self:Kt,n=>(()=>{var r={155:S=>{S.exports=n}},i={};function a(S){var I=i[S];if(I!==void 0)return I.exports;var N=i[S]={exports:{}};return r[S](N,N.exports,a),N.exports}a.d=(S,I)=>{for(var N in I)a.o(I,N)&&!a.o(S,N)&&Object.defineProperty(S,N,{enumerable:!0,get:I[N]})},a.o=(S,I)=>Object.prototype.hasOwnProperty.call(S,I),a.r=S=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(S,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(S,"__esModule",{value:!0})};var s={};a.r(s),a.d(s,{default:()=>D,useStopwatch:()=>C,useTime:()=>T,useTimer:()=>M});var c=a(155);class l{static expiryTimestamp(I){const N=new Date(I).getTime()>0;return N||console.warn("react-timer-hook: { useTimer } Invalid expiryTimestamp settings",I),N}static onExpire(I){const N=I&&typeof I=="function";return I&&!N&&console.warn("react-timer-hook: { useTimer } Invalid onExpire settings function",I),N}}class d{static getTimeFromSeconds(I){const N=Math.ceil(I),B=Math.floor(N/86400),k=Math.floor(N%86400/3600),O=Math.floor(N%3600/60);return{totalSeconds:N,seconds:Math.floor(N%60),minutes:O,hours:k,days:B}}static getSecondsFromExpiry(I,N){const B=I-new Date().getTime();if(B>0){const k=B/1e3;return N?Math.round(k):k}return 0}static getSecondsFromPrevTime(I,N){const B=new Date().getTime()-I;if(B>0){const k=B/1e3;return N?Math.round(k):k}return 0}static getSecondsFromTimeNow(){const I=new Date;return I.getTime()/1e3-60*I.getTimezoneOffset()}static getFormattedTimeFromSeconds(I,N){const{seconds:B,minutes:k,hours:O}=d.getTimeFromSeconds(I);let z="",_=O;return N==="12-hour"&&(z=O>=12?"pm":"am",_=O%12),{seconds:B,minutes:k,hours:_,ampm:z}}}function p(S,I){const N=(0,c.useRef)();(0,c.useEffect)(()=>{N.current=S}),(0,c.useEffect)(()=>{if(!I)return()=>{};const B=setInterval(()=>{N.current&&N.current()},I);return()=>clearInterval(B)},[I])}const m=1e3;function g(S){if(!l.expiryTimestamp(S))return null;const I=d.getSecondsFromExpiry(S),N=Math.floor(1e3*(I-Math.floor(I)));return N>0?N:m}function M(){let{expiryTimestamp:S,onExpire:I,autoStart:N=!0}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const[B,k]=(0,c.useState)(S),[O,z]=(0,c.useState)(d.getSecondsFromExpiry(B)),[_,F]=(0,c.useState)(N),[R,w]=(0,c.useState)(N),[o,u]=(0,c.useState)(g(B)),h=(0,c.useCallback)(()=>{l.onExpire(I)&&I(),F(!1),u(null)},[I]),b=(0,c.useCallback)(()=>{F(!1)},[]),y=(0,c.useCallback)(function(v){let f=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];u(g(v)),w(f),F(f),k(v),z(d.getSecondsFromExpiry(v))},[]),x=(0,c.useCallback)(()=>{const v=new Date;v.setMilliseconds(v.getMilliseconds()+1e3*O),y(v)},[O,y]),E=(0,c.useCallback)(()=>{R?(z(d.getSecondsFromExpiry(B)),F(!0)):x()},[B,R,x]);return p(()=>{o!==m&&u(m);const v=d.getSecondsFromExpiry(B);z(v),v<=0&&h()},_?o:null),{...d.getTimeFromSeconds(O),start:E,pause:b,resume:x,restart:y,isRunning:_}}function C(){let{autoStart:S,offsetTimestamp:I}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const[N,B]=(0,c.useState)(d.getSecondsFromExpiry(I,!0)||0),[k,O]=(0,c.useState)(new Date),[z,_]=(0,c.useState)(N+d.getSecondsFromPrevTime(k||0,!0)),[F,R]=(0,c.useState)(S);p(()=>{_(N+d.getSecondsFromPrevTime(k,!0))},F?1e3:null);const w=(0,c.useCallback)(()=>{const h=new Date;O(h),R(!0),_(N+d.getSecondsFromPrevTime(h,!0))},[N]),o=(0,c.useCallback)(()=>{B(z),R(!1)},[z]),u=(0,c.useCallback)(function(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,b=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];const y=d.getSecondsFromExpiry(h,!0)||0,x=new Date;O(x),B(y),R(b),_(y+d.getSecondsFromPrevTime(x,!0))},[]);return{...d.getTimeFromSeconds(z),start:w,pause:o,reset:u,isRunning:F}}function T(){let{format:S}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const[I,N]=(0,c.useState)(d.getSecondsFromTimeNow());return p(()=>{N(d.getSecondsFromTimeNow())},1e3),{...d.getFormattedTimeFromSeconds(I,S)}}function D(S){if((0,c.useEffect)(()=>{console.warn("react-timer-hook: default export useTimer is deprecated, use named exports { useTimer, useStopwatch, useTime } instead")},[]),S.expiryTimestamp){const N=M(S);return{...N,startTimer:N.start,stopTimer:N.pause,resetTimer:()=>{}}}const I=C(S);return{...I,startTimer:I.start,stopTimer:I.pause,resetTimer:I.reset}}return s})())})(q0e);var Z0e=q0e.exports;const zY=60*1e3,sHe=120*1e3,K0e=t=>{const[e,n]=G.useState(!1),[r,i]=G.useState(!1),[a,s]=G.useState(),{eta:c,route:l}=t;return G.useEffect(()=>{t.receipt&&s(t.receipt)},[t.receipt]),G.useEffect(()=>{let d=!0;return(async()=>{if(!l||!a)return;const m=Te.routes.get(l);if(!m)return;const g=T=>T.valueOf()-new Date().valueOf(),M=await ns(),C=new m.rc(M);for(;d&&!nT(a);){if(c!==void 0){const D=g(c);D>zY&&await lI(D-zY)}try{for await(const D of C.track(a,sHe)){if(!d)break;if(D.state!==a.state){if(s(D),nT(D)){n(!0);break}!m.AUTOMATIC_DEPOSIT&&D.state>=zt.Attested&&i(!0)}}}catch(D){console.error("Error tracking transfer:",D)}let T=5e3;c!==void 0&&m.AUTOMATIC_DEPOSIT&&g(c)<1e4&&(T=1e3),await lI(T)}})(),()=>{d=!1}},[c,a,l]),{isCompleted:e,isReadyToClaim:r,receipt:a}},oHe=ba(L.jsx("path",{d:"M4 12H20M20 12L13 5M20 12L13 19",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),"ArrowRight"),X0e=ba(L.jsxs("svg",{width:"107",height:"106",viewBox:"0 0 107 106",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[L.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M53.2079 105.5C82.2486 105.5 105.791 81.9949 105.791 53C105.791 24.0051 82.2486 0.5 53.2079 0.5C24.1672 0.5 0.625 24.0051 0.625 53C0.625 81.9949 24.1672 105.5 53.2079 105.5ZM53.207 102.097C80.3654 102.097 102.382 80.1157 102.382 53.0001C102.382 25.8844 80.3654 3.90283 53.207 3.90283C26.0485 3.90283 4.03223 25.8844 4.03223 53.0001C4.03223 80.1157 26.0485 102.097 53.207 102.097Z",fill:"currentColor"}),L.jsx("path",{d:"M46.8789 68L32.628906 53.75L36.19141 50.1875L46.8789 60.875L69.8164 37.9375L73.3789 41.5L46.8789 68Z",fill:"currentColor"})]}),"Alert"),cHe=Rn()(t=>({alertBanner:{marginTop:"12px"},arrowIcon:{fontSize:"16px",margin:"0 4px"},card:{width:"100%",boxShadow:`0px 0px 3.5px 0px ${t.palette.primary.main}`},cardContent:{padding:"16px 20px",":last-child":{padding:"16px 20px"}},cardActionArea:{height:"72px"},chainIcon:{border:`2px solid ${t.palette.input.background}`,borderRadius:"6px"},completedIcon:{color:t.palette.success.main,height:"24px",width:"24px"},container:{width:"100%",maxWidth:"420px"},progressBar:{borderRadius:"4px",marginTop:"8px"}})),lHe=t=>{var v,f;const[e,n]=G.useState(""),[r,i]=G.useState(!1),{classes:a}=cHe(),s=V0(),c=G.useContext(jd),l=_r(),{data:d}=t,{receipt:p,route:m,timestamp:g,txDetails:M,txHash:C}=d,{amount:T,eta:D,fromChain:S,toChain:I,token:N}=M||{},B=Te.tokens.get(N),{seconds:k,minutes:O,totalSeconds:z,isRunning:_,restart:F}=Z0e.useTimer({expiryTimestamp:new Date,autoStart:!1,onExpire:()=>i(!0)}),R=G.useMemo(()=>{if(D&&g)return new Date(g+D)},[D,g]),{isCompleted:w,isReadyToClaim:o,receipt:u}=K0e({eta:R,receipt:p,route:m});G.useEffect(()=>{w&&C&&N0e(C)},[w,C]);const h=u||p,b=G.useMemo(()=>{if(!D||!g)return 0;const A=Date.now()-g;return D<A?0:D-A},[D,g,z]),y=G.useMemo(()=>o||d.isReadyToClaim?"Ready to claim...":r||b===0?"Wrapping up...":_?xj(O,k):L.jsx(_0,{size:16}),[r,b,o,_,O,k,d]),x=G.useMemo(()=>!D||b>D||!r&&b===0?0:r?100:(D-b)/D*100,[D,r,b]);G.useEffect(()=>{!_&&!w&&b&&F(new Date(Date.now()+b),!0)},[b,w,_,F]);const E=G.useCallback(async()=>{if(n(""),!h){n("No receipt found for this transaction");return}try{const A=await ns(),j=new(Te.routes.get(m)).rc(A);s(iq(g)),s(SN(M)),s(rq(!0)),s(TN(m)),s(RB(M.toChain)),s(to("redeem")),c.setReceipt(h),c.setRoute(j)}catch{n(`Error resuming transaction: ${M.sendTx}`)}},[s,h,m,c,g,M]);return!d||!B?L.jsx(L.Fragment,{}):L.jsxs("div",{className:a.container,children:[L.jsx(Sl,{className:a.card,children:L.jsx(ij,{disableTouchRipple:!0,disabled:t.disabled||!M,className:a.cardActionArea,onClick:E,children:L.jsxs(hf,{className:a.cardContent,children:[L.jsxs(Sn,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[L.jsx(dt,{display:"flex",justifyContent:"space-between",children:w?L.jsx(X0e,{className:a.completedIcon}):y}),L.jsxs(Sn,{direction:"row",alignItems:"center",children:[L.jsx(dt,{fontSize:14,marginRight:"8px",children:`${y0(ca(T,6))} ${B.symbol}`}),L.jsx(ci,{className:a.chainIcon,children:L.jsx(yd,{icon:(v=Te.chains[S])==null?void 0:v.icon,height:24})}),L.jsx(oHe,{className:a.arrowIcon}),L.jsx(ci,{className:a.chainIcon,children:L.jsx(yd,{icon:(f=Te.chains[I])==null?void 0:f.icon,height:24})})]})]}),!w&&L.jsx(L_e,{className:a.progressBar,variant:"determinate",value:x})]})})}),L.jsx(jb,{className:a.alertBanner,color:e?l.palette.error.light:l.palette.grey.A400,content:e,error:!!e,show:!!e})]})},uHe=Rn()(t=>({container:{width:"100%",maxWidth:"420px"},card:{width:"100%",boxShadow:`0px 0px 3.5px 0px ${t.palette.primary.main}`},cardHeader:{paddingBottom:0},spacer:{display:"flex",flexDirection:"column",gap:"16px",marginBottom:"16px",alignItems:"center",justifyContent:"center",width:"100%"},txHistoryHeader:{width:"100%",display:"flex",alignItems:"center"}})),fHe=t=>{const{classes:e}=uHe(),n=_r(),[r,i]=G.useState();return G.useEffect(()=>{const a=WM(),s=a==null?void 0:a.filter(c=>{var l,d;if(!((l=c==null?void 0:c.txDetails)!=null&&l.token))return!1;try{return!!Te.tokens.get((d=c==null?void 0:c.txDetails)==null?void 0:d.token)}catch(p){return console.log("Error while parsing token from local storage (in-progress widget):",p),!1}});i(s)},[]),!r||r.length===0?L.jsx(L.Fragment,{}):L.jsxs("div",{className:e.spacer,children:[L.jsx("div",{className:e.txHistoryHeader,children:L.jsx(dt,{color:n.palette.text.secondary,fontSize:14,children:"Transactions in progress"})}),r.map(a=>L.jsx(lHe,{data:a,disabled:t.disabled},a.txHash))]})},dHe=({sendingWallet:t,receivingWallet:e,sourceChain:n,destChain:r,routes:i})=>G.useMemo(()=>{if(i.length===1&&i[0]==="ManualCCTP"){const s=["Petra","Pontem Wallet","Nightly","Continue with Google","Continue with Apple"];if(n==="Aptos"&&!s.includes(t.name)||r==="Aptos"&&!s.includes(e.name))return{isCompatible:!1,warning:"Please use a compatible wallet for this route."}}return{isCompatible:!0}},[t,e,n,r,i]),hHe=Rn()(t=>({assetPickerContainer:{width:"100%",position:"relative"},assetPickerTitle:{color:t.palette.text.secondary,display:"flex",minHeight:"40px",alignItems:"center",justifyContent:"space-between"},bridgeContent:{margin:"auto",maxWidth:"420px"},bridgeHeader:{width:"100%",minHeight:"28px",display:"flex",alignItems:"center"},doneIcon:{fontSize:"14px",color:t.palette.success.main},confirmTransaction:{padding:"8px 16px",borderRadius:"8px",height:"48px",margin:"auto",maxWidth:"420px",width:"100%"},copyIcon:{fontSize:"14px"},ctaContainer:{marginTop:"8px",width:"100%"},spacer:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center",justifyContent:"center",width:"100%"}})),pHe=()=>{var Se,st;const{classes:t}=hHe(),e=_r(),n=V0(),{lastTokenCacheUpdate:r}=Zo(),[i,a]=G.useState(!1),s=ev(e.breakpoints.down("sm")),{sending:c,receiving:l}=ir(ve=>ve.wallet),{fromChain:d,toChain:p,route:m,preferredRouteName:g,amount:M,toNativeToken:C,isTransactionInProgress:T,validations:D}=ir(ve=>({...ve.transferInput,...ve.relay})),{sourceToken:S,destToken:I}=HM(),{allSupportedRoutes:N,sortedRoutes:B,sortedRoutesWithQuotes:k,quotes:O,isFetching:z}=IRe({amount:M,fromChain:d,toChain:p,preferredRouteName:g,sourceToken:S,destToken:I,toNativeToken:C,receivingWallet:l}),{isFetching:_,supportedDestTokens:F}=CRe({sourceChain:d,destChain:p,sourceToken:S}),{error:R,errorInternal:w,onConfirm:o}=QRe({quotes:O});G.useEffect(()=>{if(k.length===0)n(em(""));else{const ve=k.find(ye=>ye.route===g),Ne=m??(ve==null?void 0:ve.route)??k[0].route,lt=k.findIndex(ye=>ye.route===Ne)>-1;if(lt||n(em("")),!Ne||m&<)return;const Me=k==null?void 0:k.find(ye=>ye.route===Ne);Me&&n(em(Me.route))}},[g,m,k]),Qte(),$Re();const u=G.useMemo(()=>S?[S]:[],[S]),{balances:h,isFetching:b}=j0e(c,d,u),y=NRe({balance:S?(Se=h[S.key])==null?void 0:Se.balance:null,routes:N,quotes:O,tokenSymbol:(S==null?void 0:S.symbol)??"",disabled:!c.address||!d||!S}),x=G.useMemo(()=>L0e(D),[D]),E=G.useMemo(()=>Te.routes.allSupportedChains(),[Te.chains]),v=G.useMemo(()=>d?Te.tokens.getAllForChain(d):[],[d,r]),f=G.useMemo(()=>Te.chainsArr.filter(ve=>ve.key!==p&&!ve.disabledAsSource&&E.includes(ve.key)),[p,E]),A=G.useMemo(()=>Te.chainsArr.filter(ve=>ve.key!==d&&!ve.disabledAsDestination&&E.includes(ve.key)),[d,E]),j=G.useMemo(()=>{const ve={text:"",align:"left"};let Ne;return typeof Te.ui.pageHeader=="string"?Ne={...ve,text:Te.ui.pageHeader}:Ne={...ve,...Te.ui.pageHeader},L.jsx(Bb,{title:Ne.text,align:Ne.align})},[]),P=G.useMemo(()=>L.jsxs("div",{className:t.assetPickerContainer,children:[L.jsxs("div",{className:t.assetPickerTitle,children:[L.jsx(dt,{variant:"body2",children:"From"}),L.jsx(FY,{type:si.SENDING})]}),L.jsx(OY,{chain:d,chainList:f,token:S,tokenList:v,setChain:ve=>{VDe(n,ve,c),n(KDe())},setToken:ve=>{n(ZDe(ve.tuple))},wallet:c,isSource:!0,isTransactionInProgress:T,dataTestId:"source-asset-picker"}),L.jsx(aHe,{})]}),[t.assetPickerContainer,t.assetPickerTitle,d,f,S,v,r,T,c,n]),$=G.useMemo(()=>L.jsxs("div",{className:t.assetPickerContainer,children:[L.jsxs("div",{className:t.assetPickerTitle,children:[L.jsx(dt,{variant:"body2",children:"To"}),L.jsx(FY,{type:si.RECEIVING})]}),L.jsx(OY,{chain:p,chainList:A,token:I,sourceToken:S,tokenList:F,isFetching:F.length===0&&_,setChain:ve=>{QDe(n,ve,l),n(XDe())},setToken:ve=>{n(Nre(ve.tuple))},wallet:l,isSource:!1,isTransactionInProgress:T,dataTestId:"dest-asset-picker"})]}),[t.assetPickerContainer,t.assetPickerTitle,p,A,I,S,F,_,T,l,n]),K=G.useMemo(()=>{const ve=!(c!=null&&c.address)||T;return L.jsxs("div",{className:t.bridgeHeader,children:[L.jsx(YB,{align:"left",text:Te.ui.title??"Wormhole Connect",size:18,testId:"bridge-view-header"}),L.jsx(md,{title:c!=null&&c.address?"":"No connected wallets found",children:L.jsx("span",{children:L.jsx(Sb,{sx:{padding:0},disabled:ve,onClick:()=>n(to("history")),children:L.jsx(A0e,{})})})})]})},[t.bridgeHeader,n,T,c==null?void 0:c.address]),Q=G.useMemo(()=>c!=null&&c.address&&(l!=null&&l.address)?null:c!=null&&c.address&&!(l!=null&&l.address)?L.jsx(IY,{disabled:!p,side:"destination",type:si.RECEIVING}):L.jsx(IY,{disabled:!d,side:"source",type:si.SENDING}),[d,p,c,l]),{isCompatible:H,warning:V}=dHe({sendingWallet:c,receivingWallet:l,sourceChain:d,destChain:p,routes:B}),J=G.useMemo(()=>R?L.jsxs(ci,{sx:{marginBottom:2},children:[L.jsx(jb,{error:!0,content:R,show:!0,testId:"send-error-message"}),w&&w.message&&Te.ui.getHelpUrl?L.jsxs(dt,{fontSize:14,sx:{marginTop:1},children:["Having trouble?"," ",L.jsxs("a",{href:"#",onClick:()=>{Kte(w.message),a(!0),setTimeout(()=>a(!1),3e3)},children:["Copy the error logs"," ",i?L.jsx(w0e,{className:t.doneIcon}):L.jsx(x0e,{className:t.copyIcon})]})," and ",L.jsx("a",{href:Te.ui.getHelpUrl,target:"_blank",children:"ask for help"}),"."]}):null]}):null,[t.copyIcon,t.doneIcon,i,R,w]),ae=!!y.error,te=M&&Fo(M)>0,Z=c.address&&l.address,ce=!d||!S||!p||!I||!Z||!H||!m||!x||z||!te||T||ae,De=G.useMemo(()=>L.jsx(Of,{disabled:ce,"data-testid":"confirm-transaction-button",variant:"primary",className:t.confirmTransaction,onClick:()=>o(),children:T?L.jsxs(dt,{display:"flex",alignItems:"center",gap:1,textTransform:"none",children:[L.jsx(_0,{size:16,sx:{color:e.palette.primary.contrastText}}),s?"Preparing":"Preparing transaction"]}):!T&&z?L.jsxs(dt,{display:"flex",alignItems:"center",gap:1,textTransform:"none",children:[L.jsx(_0,{color:"secondary",size:16}),s?"Refreshing":"Refreshing quote"]}):L.jsx(dt,{textTransform:"none",children:s?"Confirm":"Confirm transaction"})}),[ce,t.confirmTransaction,T,e.palette.primary.contrastText,s,z,o]),pe=!d||!S?"Please select a source asset":!p||!I?"Please select a destination asset":te?z?"Loading quotes...":m?"":"Please select a quote":"Please enter an amount";return L.jsxs("div",{className:ro([t.bridgeContent,t.spacer]),"data-testid":"bridge-view",children:[j,Te.ui.showInProgressWidget&&L.jsx(fHe,{disabled:T}),K,P,$,L.jsx(RUe,{sourceChain:d,supportedSourceTokens:v,tokenBalance:S?(st=h[S.key])==null?void 0:st.balance:null,isFetchingTokenBalance:b,error:y.error,warning:y.warning||V}),te&&L.jsx(eHe,{routes:B,selectedRoute:m,onRouteChange:ve=>{n(em(ve))},quotes:O,isLoading:z||b}),J,L.jsx("span",{className:t.ctaContainer,children:Z?L.jsx(md,{title:pe,children:L.jsx("span",{children:De})}):Q}),L.jsx(Aj,{color:e.palette.text.primary}),L.jsx(pj,{})]})};var kj={},bHe=pa;Object.defineProperty(kj,"__esModule",{value:!0});var J0e=kj.default=void 0,mHe=bHe(ps()),yHe=L;J0e=kj.default=(0,mHe.default)((0,yHe.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");const gHe=Rn()(t=>({addressLink:{display:"inline-flex",alignItems:"center",overflow:"hidden",color:t.palette.text.primary,opacity:.6}})),my=({url:t,text:e})=>{const{classes:n}=gHe();return t&&e?L.jsxs(Nb,{onClick:r=>r.stopPropagation(),className:n.addressLink,href:t,rel:"noreferrer noopener",target:"_blank",children:[e,L.jsx(Nj,{sx:{height:"10px",width:"10px",marginLeft:"2px"}})]}):null},vHe=Rn()(t=>({container:{width:"100%",maxWidth:"420px",backgroundColor:t.palette.input.background},card:{width:"100%",backgroundColor:t.palette.input.background}})),MHe=()=>{const{classes:t}=vHe(),e=_r(),n=Y0.useContext(jd),{sendTx:r,sender:i,amount:a,recipient:s,toChain:c,fromChain:l,token:d,receivedToken:p,receiveAmount:m,receiveNativeAmount:g,relayerFee:M,eta:C}=ir(b=>b.redeem.txData),{route:T}=ir(b=>b.redeem),D=Te.tokens.get(d),S=Te.tokens.get(p),{getTokenPrice:I,isFetchingTokenPrices:N,lastTokenPriceUpdate:B}=Zo(),k=G.useMemo(()=>L.jsx(dt,{component:"span",padding:"0px 8px",children:"·"}),[]),O=G.useMemo(()=>{if(!D||!l)return L.jsx(L.Fragment,{});const b=Te.tokens.get(d),y=Te.chains[l],x=S1(I,a,b),E=i?U6(i):"",v=i?Y3(l,i,"wallet"):"",f=y0(ca(a,6));return L.jsxs(Sn,{alignItems:"center",direction:"row",justifyContent:"flex-start",children:[L.jsx(hp,{chainConfig:y,token:b}),L.jsxs(Sn,{direction:"column",marginLeft:"12px",children:[L.jsxs(dt,{fontSize:16,children:[f," ",D.symbol]}),L.jsx(dt,{color:e.palette.text.secondary,fontSize:14,children:N?L.jsx(_0,{size:14}):L.jsxs(L.Fragment,{children:[x,x?k:null,y.displayName,k,L.jsx(my,{url:v,text:E})]})})]})]})},[D,l,d,I,a,i,e.palette.text.secondary,N,k]),z=G.useMemo(()=>{if(!S||!c)return L.jsx(L.Fragment,{});const b=Te.chains[c],y=S1(I,m,S),x=s?U6(s):"",E=s?Y3(c,s,"wallet"):"",v=m?y0(ca(m,6)):"-";return L.jsxs(Sn,{alignItems:"center",direction:"row",justifyContent:"flex-start",children:[L.jsx(hp,{chainConfig:b,token:S}),L.jsxs(Sn,{direction:"column",marginLeft:"12px",children:[L.jsxs(dt,{fontSize:16,children:[v," ",S.symbol]}),L.jsx(dt,{color:e.palette.text.secondary,fontSize:14,children:N?L.jsx(_0,{size:14}):L.jsxs(L.Fragment,{children:[y,y?k:null,b.displayName,k,L.jsx(my,{url:E,text:x})]})})]})]})},[S,I,m,s,k,e.palette.text.secondary,c,N,B]),_=G.useMemo(()=>L.jsx(Sn,{height:"28px",borderLeft:"1px solid #8B919D",marginLeft:"16px"}),[]),F=G.useMemo(()=>{if(!M||!M.token)return L.jsx(L.Fragment,{});const b=Te.tokens.get(M.token);if(!b)return L.jsx(L.Fragment,{});const y=S1(I,M.fee,b);if(!y)return L.jsx(L.Fragment,{});let x=L.jsx(dt,{fontSize:14,children:`${D0e(M.fee.toString(),4)} ${b.symbol} (${y})`});return T!=null&&T.startsWith("MayanSwap")&&(x=L.jsx(dt,{fontSize:14,children:y})),L.jsxs(Sn,{direction:"row",justifyContent:"space-between",children:[L.jsx(dt,{color:e.palette.text.secondary,fontSize:14,children:"Network cost"}),N?L.jsx(_0,{size:14}):x]})},[M,I,T,e.palette.text.secondary,N]),R=G.useMemo(()=>{if(!p||!g||gn(g)===0n)return L.jsx(L.Fragment,{});const b=Te.chains[c];if(!b)return L.jsx(L.Fragment,{});const y=S1(I,g,Te.tokens.getGasToken(b.sdkName));return L.jsxs(Sn,{direction:"row",justifyContent:"space-between",children:[L.jsx(dt,{color:e.palette.text.secondary,fontSize:14,children:"Additional gas"}),N?L.jsx(_0,{size:14}):L.jsx(dt,{fontSize:14,children:y})]})},[g,e.palette.text.secondary,c,N,B]),w=G.useMemo(()=>{const b=n.route??T;if(!b)return null;const{name:y,url:x}=Eze(b,r);return L.jsx(Sn,{alignItems:"center",padding:"24px 12px",children:L.jsx(Nb,{display:"flex",gap:"8px",href:x,rel:"noreferrer",target:"_blank",underline:"none",children:L.jsx(dt,{color:e.palette.text.primary,fontSize:14,children:`View on ${y}`})})})},[n.route,T,r,e.palette.text.primary]),o=G.useMemo(()=>{let b=L.jsx(_0,{size:14});return C?(b=Jte(C),L.jsxs(Sn,{direction:"row",justifyContent:"space-between",children:[L.jsx(dt,{color:e.palette.text.secondary,fontSize:14,children:`Time to ${c}`}),L.jsx(dt,{fontSize:14,children:b})]})):null},[C,e.palette.text.secondary,c]),u=r?U6(r):"",h=r?Y3(l,r,"tx"):"";return L.jsx("div",{className:t.container,children:L.jsxs(Sl,{className:t.card,children:[L.jsxs(hf,{children:[L.jsxs(dt,{color:e.palette.text.secondary,marginBottom:"12px",children:["Transaction #",L.jsx(my,{url:h,text:u})]}),O,_,z,L.jsxs(Sn,{direction:"column",gap:"8px",justifyContent:"space-between",marginTop:"16px",children:[F,R,o]})]}),L.jsx($g,{flexItem:!0,sx:{margin:"0 16px",opacity:"50%"}}),w]})})},xHe=ba(L.jsx("svg",{width:"107",height:"107",viewBox:"0 0 107 107",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:L.jsx("path",{d:"M53.5 36.625V57.7188M104.125 53.5C104.125 60.1482 102.816 66.7312 100.271 72.8733C97.7273 79.0155 93.9982 84.5963 89.2973 89.2973C84.5963 93.9982 79.0155 97.7273 72.8733 100.271C66.7312 102.816 60.1482 104.125 53.5 104.125C46.8518 104.125 40.2688 102.816 34.1267 100.271C27.9845 97.7273 22.4037 93.9982 17.7027 89.2973C13.0018 84.5963 9.27274 79.0155 6.7286 72.8733C4.18445 66.7312 2.875 60.1482 2.875 53.5C2.875 40.0734 8.20869 27.1967 17.7027 17.7027C27.1967 8.20869 40.0734 2.875 53.5 2.875C66.9266 2.875 79.8032 8.20869 89.2973 17.7027C98.7913 27.1967 104.125 40.0734 104.125 53.5ZM53.5 74.5938H53.545V74.6388H53.5V74.5938Z",stroke:"currentColor",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"})}),"Alert"),wHe=ba(L.jsxs("svg",{width:"106",height:"106",viewBox:"0 0 106 106",stroke:"none",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[L.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M52.5829 105C81.6236 105 105.166 81.4949 105.166 52.5C105.166 23.5051 81.6236 0 52.5829 0C23.5422 0 0 23.5051 0 52.5C0 81.4949 23.5422 105 52.5829 105ZM52.582 101.597C79.7404 101.597 101.757 79.6157 101.757 52.5001C101.757 25.3844 79.7404 3.40283 52.582 3.40283C25.4235 3.40283 3.40723 25.3844 3.40723 52.5001C3.40723 79.6157 25.4235 101.597 52.582 101.597Z",fill:"currentColor"}),L.jsx("path",{d:"M65.7583 39.2417L39.2418 65.7582",stroke:"currentColor",strokeWidth:"4"}),L.jsx("path",{d:"M39.2417 39.2417L65.7582 65.7582",stroke:"currentColor",strokeWidth:"4"})]}),"Alert"),RY=ba(L.jsxs("svg",{width:"107",height:"106",viewBox:"0 0 107 106",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[L.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M53.2,105.5c29,0,52.6-23.5,52.6-52.5S82.2.5,53.2.5.6,24,.6,53s23.5,52.5,52.6,52.5ZM53.2,102.1c27.2,0,49.2-22,49.2-49.1S80.4,3.9,53.2,3.9,4,25.9,4,53s22,49.1,49.2,49.1Z"}),L.jsx("rect",{fill:"currentColor",x:"51",y:"28.8",width:"5",height:"42.6"}),L.jsx("rect",{fill:"currentColor",x:"48",y:"63.9",width:"25.5",height:"5",transform:"translate(-29.2 62.4) rotate(-45)"}),L.jsx("rect",{fill:"currentColor",x:"43.8",y:"53.7",width:"5",height:"25.5",transform:"translate(-33.4 52.2) rotate(-45)"})]}),"Alert"),AHe=Rn()(t=>({spacer:{display:"flex",flexDirection:"column",gap:"16px",alignItems:"center",justifyContent:"center",width:"100%"},container:{margin:"auto",maxWidth:"650px"},header:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%"},actionButton:{padding:"12px 16px",backgroundColor:t.palette.primary.main,borderRadius:"8px",margin:"auto",maxWidth:"420px",width:"100%"},backButton:{alignItems:"start",maxWidth:"420px",width:"100%"},claimButton:{backgroundColor:t.palette.warning.light,color:t.palette.warning.contrastText??t.palette.background.default,"&:hover":{backgroundColor:t.palette.warning.main}},circularProgressCircleIndeterminite:{stroke:"url(#circularGradient)",strokeDasharray:"100px, 200px",strokeLinecap:"round"},circularProgressCircleDeterminite:{strokeLinecap:"round",transitionDuration:"1s",transitionProperty:"all",transitionTimingFunction:"linear"},circularProgressRoot:{animationDuration:"1s"},errorBox:{maxWidth:"420px"},txStatusIcon:{width:"105px",height:"105px"},delayText:{maxWidth:"420px"}})),CHe=()=>{const t=V0(),e=_r(),{classes:n}=AHe(),[r,i]=G.useState(""),[a,s]=G.useState(!1),[c,l]=G.useState(!1),[d,p]=G.useState(!1),[m,g]=G.useState(!1),M=Y0.useContext(jd),{sourceToken:C,destToken:T}=LRe();Qte();const{route:D,timestamp:S,isResumeTx:I,txData:N}=ir(_e=>_e.redeem),[B,k]=G.useState(void 0),{receipt:O}=M,z=O&&Uo(O),_=O&&S3e(O),F=O&&tw(O)||!!B,R=O&&tw(O)&&O.error instanceof $Z,w=O&&ew(O),o=D==null?void 0:D.endsWith("ExecutorRoute"),{recipient:u,toChain:h,fromChain:b,token:y,receivedToken:x,amount:E,eta:v=0,sendTx:f}=N,A=I0e(),j=G.useMemo(()=>{if(v&&S)return new Date(S+v)},[v,S]),{seconds:P,minutes:$,isRunning:K,restart:Q}=Z0e.useTimer({expiryTimestamp:new Date,autoStart:!1,onExpire:()=>p(!0)});G.useEffect(()=>{!S||!v||K||Q(new Date(S+v),!0)},[v,K,Q,S]);const H=K0e({receipt:O,route:D,eta:j}),V=O&&nT(O)||H.isCompleted;G.useEffect(()=>{H.receipt&&M.setReceipt(H.receipt)},[M,H.receipt]);const J=G.useMemo(()=>{if(!D)return!1;const _e=Te.routes.get(D);return _e?_e.AUTOMATIC_DEPOSIT:!1},[D]),ae=T0e(D,C,T,b,h,E,A);G.useEffect(()=>{const{receipt:_e}=M;if(_e)if(V)c||(l(!0),Te.triggerEvent({type:"transfer.success",details:ae}),J||Te.triggerEvent({type:"transfer.redeem.success",details:ae}),s(!1),i(""),N!=null&&N.sendTx&&N0e(N==null?void 0:N.sendTx));else if(_)Te.triggerEvent({type:"transfer.refunded",details:ae});else if(tw(_e)){const[be,we]=aI(_e.error,ae);i(be),Te.triggerEvent({type:"transfer.error",details:ae,error:we}),console.error(`Transfer failed with error ${we}: ${_e.error}`),s(!1)}else if(B){const[be,we]=aI(B,ae);i(be),Te.triggerEvent({type:"transfer.redeem.error",details:ae,error:we}),console.error(`Error while manually redeeming: ${we.type} - ${B}`),s(!1)}else z&&!J&&(N!=null&&N.sendTx)&&FRe(N==null?void 0:N.sendTx,"isReadyToClaim",!0)},[O==null?void 0:O.state,V,_,z,B,c]);const te=ir(_e=>_e.wallet.receiving),Z=G.useMemo(()=>{const _e=S+v,be=Date.now();return _e>be?_e-be:0},[S,v,d,P]),ce=G.useMemo(()=>{const _e={text:"",align:"left"};let be;return typeof Te.ui.pageHeader=="string"?be={..._e,text:Te.ui.pageHeader}:be={..._e,...Te.ui.pageHeader},L.jsx(Bb,{title:be.text,align:be.align})},[]),De=G.useMemo(()=>{let _e="Transaction submitted";return V?_e="Transaction completed":_?_e="Transaction was refunded":R&&o?_e=`Ready to claim on ${h}`:F?_e="Transaction failed":w?_e="Transaction delayed":z&&!J&&(_e=`Ready to claim on ${h}`),L.jsx(Sn,{children:L.jsx(dt,{"data-testid":"redeem-view-status-header",fontSize:18,children:_e})})},[V,_,F,R,w,z,J,h]),pe=G.useMemo(()=>{if(d)return L.jsx(Sn,{children:L.jsx(dt,{color:e.palette.text.secondary,fontSize:14,children:"Wrapping up..."})});const _e=K?xj($,P):null;let be=L.jsx(_0,{size:14});return v&&(be=VRe(v)),L.jsxs(Sn,{alignItems:"center",justifyContent:"center",children:[L.jsxs(dt,{color:e.palette.text.secondary,fontSize:14,children:["ETA ",be]}),L.jsx(dt,{fontSize:28,children:_e})]})},[v,d,K,$,P,e.palette.text.secondary]),Se=G.useMemo(()=>v?(v-Z)/v*100:0,[v,Z]),st=G.useMemo(()=>L.jsxs(L.Fragment,{children:[L.jsx("svg",{width:0,height:0,children:L.jsx("defs",{children:L.jsxs("linearGradient",{id:"circularGradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[L.jsx("stop",{offset:"0%",stopColor:e.palette.primary.main,stopOpacity:"1"}),L.jsx("stop",{offset:"100%",stopColor:e.palette.background.default,stopOpacity:"0.1"})]})})}),L.jsxs(ci,{sx:{position:"relative"},children:[L.jsx(_0,{variant:"determinate",sx:_e=>({color:_e.palette.primary.main,opacity:.2,position:"absolute"}),size:140,thickness:2,value:100}),L.jsx(_0,{variant:d?"indeterminate":"determinate",classes:{root:n.circularProgressRoot,circle:d?n.circularProgressCircleIndeterminite:n.circularProgressCircleDeterminite},disableShrink:d,size:140,thickness:2,value:Se})]}),L.jsx(ci,{sx:{top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},children:pe})]}),[n.circularProgressCircleDeterminite,n.circularProgressCircleIndeterminite,n.circularProgressRoot,pe,d,Se,e.palette.background.default,e.palette.primary.main]),ve=G.useMemo(()=>V?L.jsx(X0e,{className:n.txStatusIcon,sx:{color:e.palette.primary.light}}):_||w?L.jsx(xHe,{className:n.txStatusIcon,sx:{color:e.palette.warning.main}}):R&&o?L.jsx(RY,{className:n.txStatusIcon,sx:{color:e.palette.warning.light}}):F?L.jsx(wHe,{className:n.txStatusIcon,sx:{color:e.palette.error.light}}):!J&&z?L.jsx(RY,{className:n.txStatusIcon,sx:{color:e.palette.warning.light}}):st,[n.txStatusIcon,st,J,V,_,w,F,R,z,e.palette.primary.light,e.palette.warning.main,e.palette.warning.light,e.palette.error.light]);G.useEffect(()=>{let _e;if(M.receipt&&ew(M.receipt)){s(!0);const we=M.receipt.queueReleaseTime.getTime()-Date.now();_e=setTimeout(()=>{s(!1)},we)}return()=>{_e&&clearTimeout(_e)}},[M.receipt]);const Ne=G.useMemo(()=>{if(!u)return!1;if(I&&h==="Solana"&&te.address&&te.type===Zt.SOLANA&&te.address!==u&&D&&["ManualTokenBridge","ManualCCTP"].includes(D)){const{address:yt}=bM(x);return T5(new ke(Fn(yt)?hy:yt.toString()),new ke(te.address)).equals(new ke(u))?(i(""),!0):(i("Not connected to the receiving wallet"),!1)}const _e=te.address.toLowerCase(),be=te.currentAddress.toLowerCase(),we=u.toLowerCase();return _e===be&&_e===we},[te,u,h,I,D,x]),lt=G.useCallback(async()=>{if(s(!0),i(""),k(void 0),!D)throw new Error("Unknown route, can not claim");if(!M.receipt)throw new Error("No receipt found, can not claim");const _e={route:D,fromToken:Bh(Te.tokens.mustGet(y)),toToken:Bh(Te.tokens.mustGet(x)),fromChain:b,toChain:h};if(Te.triggerEvent({type:"transfer.redeem.initiate",details:_e}),!Ne)throw i("Not connected to the receiving wallet"),new Error("Not connected to the receiving wallet");if(!Te.chains[h])throw i("Your claim has failed, please try again"),new Error("invalid destination chain");const we=M.route;try{if(!rT(we)&&!iT(we))throw new Error("Route is not manual or finalizable");const yt=await ap.fromChain(h,te.address,{},si.RECEIVING),q=w&&iT(we)?we.finalize(yt,M.receipt):!w&&rT(we)?we.complete(yt,M.receipt):void 0;q&&(Te.triggerEvent({type:"transfer.redeem.start",details:ae}),await q)}catch(yt){k(yt),s(!1)}},[ae,b,Ne,w,x,te.address,M.receipt,M.route,D,h,y]),Me=G.useMemo(()=>a?L.jsx(Of,{disabled:!0,variant:"primary",className:n.actionButton,children:L.jsxs(dt,{display:"flex",alignItems:"center",gap:1,textTransform:"none",children:[L.jsx(_0,{size:16,sx:{color:e.palette.primary.contrastText}}),"Transfer in progress"]})}):w||!J&&z?Ne?L.jsx(Of,{className:ro([n.actionButton,n.claimButton]),variant:r?"error":"primary",onClick:lt,children:L.jsx(dt,{textTransform:"none",children:"Claim tokens to complete transfer"})}):L.jsx(Of,{variant:"primary",className:n.actionButton,onClick:()=>g(!0),children:L.jsx(dt,{textTransform:"none",children:"Connect receiving wallet"})}):R&&o&&f?L.jsx(Of,{variant:"primary",className:n.actionButton,onClick:()=>{t(CS()),t(to("search")),t(kre({txHash:f,chain:b}))},children:L.jsx(dt,{textTransform:"none",children:"Claim tokens to complete transfer"})}):L.jsxs(L.Fragment,{children:[L.jsx(Of,{variant:"primary",className:n.actionButton,onClick:()=>{t(to("bridge"))},children:L.jsx(dt,{textTransform:"none",children:"Start a new transaction"})}),!V&&L.jsx(dt,{fontSize:"12px",sx:{margin:"auto",opacity:.6},children:"Your current transaction will continue to process in the background."})]}),[r,n.actionButton,n.claimButton,t,lt,J,a,Ne,R,z,V,w,e.palette.primary.contrastText,f]),ye=G.useMemo(()=>{var q;if(!M.receipt||!ew(M.receipt))return null;const{to:_e,queueReleaseTime:be}=M.receipt,we=((q=Te.tokens.get(x))==null?void 0:q.symbol)||"",yt=be.toLocaleString();return L.jsx(dt,{color:e.palette.text.secondary,fontSize:14,className:n.delayText,children:`Your transfer to ${_e} is delayed due to rate limits configured by ${we}. After
|
|
320
|
+
513.716 362.141 451.503 430.865Z`,fill:"url(#icons_tokens_inj_linearGradient_1)"})]})}function sUe(){return L.jsxs("svg",{viewBox:"316.829 225.555 66.146 48.89",xmlns:"http://www.w3.org/2000/svg",children:[L.jsx("g",{filter:"url(#icons_tokens_ntt_filter_0)",transform:"matrix(1, 0, 0, 1, 307.15521240234375, 224.00100708007812)",children:L.jsx("path",{d:"M42.3874 29.5938C40.2035 29.5938 38.433 27.8234 38.433 25.6394C38.433 23.4555 40.2035 21.6851 42.3874 21.6851C44.5714 21.6851 46.3418 23.4555 46.3418 25.6394C46.3418 27.8234 44.5714 29.5938 42.3874 29.5938Z",fill:"white"})}),L.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M 316.829 249.281 L 382.975 249.281 L 382.975 250.719 L 316.829 250.719 L 316.829 249.281 Z",fill:"url(#icons_tokens_ntt_linearGradient_0)"}),L.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M 349.903 273.007 C 362.609 273.007 372.91 262.707 372.91 250 C 372.91 237.293 362.609 226.993 349.903 226.993 C 337.196 226.993 326.896 237.293 326.896 250 C 326.896 262.707 337.196 273.007 349.903 273.007 Z M 349.903 274.445 C 363.404 274.445 374.348 263.501 374.348 250 C 374.348 236.499 363.404 225.555 349.903 225.555 C 336.402 225.555 325.458 236.499 325.458 250 C 325.458 263.501 336.402 274.445 349.903 274.445 Z",fill:"url(#icons_tokens_ntt_linearGradient_1)"})]})}function oUe(){return L.jsxs("svg",{style:{maxHeight:"100%",maxWidth:"100%"},width:"444",height:"444",viewBox:"0 0 444 444",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[L.jsx("style",{children:".st0{fill:#ffeeda}.st2{fill:#101010}"}),L.jsx("path",{d:"M0 0h444v444H0z",className:"st0"}),L.jsx("path",{d:"M333.4 262V110.6c-.2-12.7-10.3-22.9-23-22.9h-158c-34.1.5-61.5 28.4-61.5 62.6 0 11.5 3.1 21.4 7.8 30.1 4 7.2 10.3 14 16.5 19.1 1.8 1.4.9.8 6.3 4.1 7.4 4.5 15.9 6.8 15.9 6.8l-.1 90.6c.2 4.3.6 8.4 1.8 12.3 3.5 12.8 12.4 22.6 24.4 27.3 5 2 10.7 3.3 16.8 3.4l126.2.4c25.1 0 45.5-20.4 45.5-45.6.1-15-7.4-28.4-18.6-36.8z",className:"st0"}),L.jsx("path",{d:"M336.5 299.9C336 316 322.7 329 306.4 329l-86.8-.3c6.9-8 11.1-18.4 11.1-29.8 0-17.8-10.6-30.1-10.6-30.1h86.4c16.6 0 30.1 13.5 30.1 30.1l-.1 1z",style:{fill:"#ebc28e"}}),L.jsx("path",{d:"M123.5 186.7c-10-9.5-17-21.7-17-36.3v-1.5c.8-24.8 21.2-44.8 46-45.5h158c4.1.2 7.4 3.1 7.4 7.3v133.7c3.6.6 5.4 1.1 8.9 2.4 2.8 1 6.6 3.2 6.6 3.2V110.7c-.2-12.7-10.3-22.9-23-22.9h-158c-34.1.5-61.5 28.4-61.5 62.6 0 19.9 9.1 36.9 23.9 48.8 1 .8 2 1.9 4.6 1.9 4.6 0 7.9-3.7 7.7-7.7 0-3.4-1.5-4.6-3.6-6.7z",className:"st2"}),L.jsx("path",{d:"M306.4 253.2H182.5c-8.3.1-15 6.8-15 15.1v17.8c.2 8.2 7.2 15.2 15.6 15.2h9.2v-15.2H183v-17.4h5c15.7 0 27.2 14.5 27.2 30.1 0 13.8-12.6 31.4-33.6 30-18.6-1.2-28.7-17.8-28.7-30v-151c0-6.8-5.6-12.4-12.4-12.4h-12.4v15.5h9.2v148c-.5 30.1 21.4 45.2 44.3 45.2l124.9.4c25.1 0 45.5-20.4 45.5-45.6.1-25.2-20.4-45.7-45.6-45.7zm30.1 46.7C336 316 322.7 329 306.4 329l-86.8-.3c6.9-8 11.1-18.4 11.1-29.8 0-17.8-10.6-30.1-10.6-30.1h86.4c16.6 0 30.1 13.5 30.1 30.1l-.1 1zM273 153.7h-93.4v-15.5H273c4.2 0 7.7 3.4 7.7 7.7.1 4.3-3.3 7.8-7.7 7.8z",className:"st2"}),L.jsx("path",{d:"M273 226.4h-93.4V211H273c4.2 0 7.7 3.4 7.7 7.7.1 4.2-3.3 7.7-7.7 7.7zm16.5-36.4H179.6v-15.5h109.8c4.2 0 7.7 3.4 7.7 7.7.2 4.3-3.3 7.8-7.6 7.8z",className:"st2"})]})}function cUe(){return L.jsxs("svg",{style:{maxHeight:"100%",maxWidth:"100%"},xmlns:"http://www.w3.org/2000/svg",width:"252",height:"166",viewBox:"0 0 252 166",fill:"none",children:[L.jsx("path",{fill:"#FCFC03",d:"m197.902 81.513 39.608-19.736 13.653-41.906L223.857 0H42.041L0 31.226h213.718l-11.355 35.147H116.66l-8.246 25.684h85.703L170.055 166l40.149-19.871 14.329-44.339-26.901-19.736.27-.541Z"}),L.jsx("path",{fill:"#FCFC03",d:"m60.422 134.233 24.737-77.052-27.441-20.548L16.488 166h153.564l10.273-31.767H60.422Z"})]})}function lUe(){return L.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[L.jsx("circle",{cx:"18",cy:"18",r:"18",fill:"black"}),L.jsx("path",{d:"M28.3266 11.8302L17.9483 11.8466C14.5118 11.8466 11.7258 14.6326 11.7258 18.069C11.7258 21.5055 14.5118 24.2915 17.9483 24.2915H27.9424",stroke:"white",strokeWidth:"2.18153",strokeMiterlimit:"10",strokeLinecap:"round"}),L.jsx("path",{d:"M6.16479 18.069H30.138",stroke:"white",strokeWidth:"2.18153",strokeMiterlimit:"10",strokeLinecap:"round"}),L.jsx("path",{d:"M18.069 6C24.7345 6 30.1379 11.4035 30.1379 18.069C30.1379 24.7345 24.7345 30.1379 18.069 30.1379C11.4035 30.1379 6 24.7345 6 18.069C6 11.4035 11.4035 6 18.069 6Z",stroke:"white",strokeWidth:"2.18153",strokeMiterlimit:"10",strokeLinecap:"round"})]})}function uUe(){return L.jsxs("svg",{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[L.jsx("circle",{cx:"32",cy:"32",r:"32",fill:"#814625"}),L.jsx("path",{d:"M30.8066 30.3796C30.7714 30.2733 30.7468 30.1643 30.7278 30.0542C30.7191 30.0032 30.7089 29.9524 30.6974 29.902C30.6723 29.7925 30.6444 29.6836 30.6143 29.5753V29.575C31.1133 28.8474 33.4988 25.0525 30.7842 22.6167C27.7714 19.9133 24.2512 23.4567 24.2512 23.4567L24.2621 23.4724C22.6799 23.0093 20.9643 22.955 19.2952 23.4565C19.295 23.4565 19.2949 23.4565 19.2949 23.4565C19.2743 23.4358 15.7659 19.9212 12.762 22.6167C9.75706 25.313 13.0019 29.6752 13.0188 29.698C13.0188 29.698 13.0188 29.6981 13.0188 29.6983C12.9843 29.8008 12.9564 29.9054 12.938 30.0117C12.6129 31.8784 10.3999 32.4545 10.3999 35.7061C10.3999 38.9576 12.715 41.6321 17.4404 41.6321H19.3794C19.3794 41.6321 19.3796 41.6321 19.3797 41.6321C19.3884 41.644 20.1867 42.7339 21.826 42.7327C23.3478 42.7316 24.3528 41.6414 24.3615 41.6321C24.3615 41.6321 24.3615 41.6321 24.3618 41.6321H26.2117C30.9371 41.6321 33.2522 39.0204 33.2522 35.7061C33.2522 32.6781 31.3331 31.9702 30.8068 30.3796H30.8066Z",fill:"white"}),L.jsx("path",{d:"M53.3886 26.6644C53.3886 26.6644 53.74 23.5305 51.0687 22.8571V21.6002H48.9999V22.8257C46.182 23.4261 46.5451 26.6644 46.5451 26.6644V27.2017C46.5451 27.2017 46.1818 30.4407 49.0009 31.0405H49.0006V33.7308C46.0304 34.252 46.4057 37.5966 46.4057 37.5966V38.1339C46.4057 38.1339 46.0424 41.3722 48.8604 41.9725V43.1981H50.9292V41.9412C53.6007 41.2678 53.2491 38.1339 53.2491 38.1339C53.3659 38.1339 53.4606 38.0427 53.4606 37.9303V37.8003C53.4606 37.6878 53.3659 37.5966 53.2491 37.5966C53.2491 37.5966 53.5977 34.4899 50.9638 33.7984V31.0405H50.9327C53.7518 30.4407 53.3885 27.2017 53.3885 27.2017C53.5052 27.2017 53.5999 27.1105 53.5999 26.998V26.868C53.5999 26.7556 53.5052 26.6644 53.3885 26.6644H53.3886ZM51.7027 37.5966H51.5134C51.3967 37.5966 51.302 37.6878 51.302 37.8003V37.9303C51.302 38.0427 51.3967 38.1339 51.5134 38.1339H51.7027C51.7027 40.0779 51.0324 40.405 50.8069 40.4601C50.7698 40.4691 50.7338 40.4426 50.7338 40.4058V39.7862C50.7338 39.4436 50.5072 39.256 50.2806 39.1539C49.9941 39.0249 49.6605 39.0249 49.3741 39.1539C49.1475 39.256 48.9208 39.4436 48.9208 39.7862V40.4058C48.9208 40.4421 48.8855 40.4692 48.849 40.4603C48.6248 40.4062 47.952 40.0817 47.952 38.1339V37.5966C47.952 35.6526 48.6222 35.3255 48.8478 35.2705C48.8848 35.2615 48.9208 35.2879 48.9208 35.3247V35.9444C48.9208 36.2869 49.1475 36.4746 49.3741 36.5767C49.6605 36.7056 49.9941 36.7056 50.2806 36.5767C50.5072 36.4746 50.7338 36.2869 50.7338 35.9444V35.3247C50.7338 35.2885 50.7691 35.2613 50.8056 35.2702C51.0299 35.3243 51.7027 35.6489 51.7027 37.5966ZM51.6529 27.2017H51.8421C51.8421 29.1494 51.1694 29.4741 50.9451 29.5281C50.9086 29.537 50.8733 29.5098 50.8733 29.4736V28.8539C50.8733 28.5114 50.6467 28.3237 50.42 28.2216C50.1336 28.0927 49.8 28.0927 49.5135 28.2216C49.2869 28.3237 49.0603 28.5114 49.0603 28.8539V29.4736C49.0603 29.5104 49.0243 29.5368 48.9872 29.5278C48.7617 29.4728 48.0915 29.1457 48.0915 27.2017V26.6644C48.0915 24.7166 48.7642 24.3919 48.9885 24.3379C49.025 24.3291 49.0603 24.3564 49.0603 24.3925V25.0121C49.0603 25.3547 49.2869 25.5423 49.5135 25.6444C49.8 25.7734 50.1336 25.7734 50.42 25.6444C50.6467 25.5423 50.8733 25.3547 50.8733 25.0121V24.3925C50.8733 24.3557 50.9093 24.3292 50.9464 24.3382C51.1719 24.3933 51.8421 24.7204 51.8421 26.6644H51.6529C51.5361 26.6644 51.4414 26.7556 51.4414 26.868V26.998C51.4414 27.1105 51.5361 27.2017 51.6529 27.2017Z",fill:"white"}),L.jsx("path",{d:"M43.036 32.1987C43.036 32.1987 43.4013 28.9416 40.5566 28.355V25.4288C43.3256 24.8038 42.9663 21.6002 42.9663 21.6002C42.9663 21.6002 41.4134 21.6002 41.4198 21.6002C41.4198 23.548 40.7471 23.8726 40.5228 23.9266C40.4863 23.9355 40.451 23.9082 40.451 23.8721V23.2524C40.451 22.9099 40.2244 22.7223 39.9977 22.6202C39.7113 22.4912 39.3777 22.4912 39.0912 22.6202C38.8646 22.7223 38.638 22.9099 38.638 23.2524V23.8721C38.638 23.9089 38.602 23.9354 38.5649 23.9264C38.3394 23.8713 37.6692 23.5442 37.6692 21.6002C37.6757 21.6002 36.1227 21.6002 36.1227 21.6002C36.1227 21.6002 35.7499 24.9246 38.6908 25.4611V28.351C35.8255 28.927 36.1924 32.1985 36.1924 32.1985V32.7358C36.1924 32.7358 35.8255 36.0074 38.6908 36.5834V39.339C35.7499 39.8756 36.1227 43.1998 36.1227 43.1998C36.1227 43.1998 37.6756 43.1998 37.6692 43.1998C37.6692 41.2521 38.3419 40.9274 38.5662 40.8734C38.6027 40.8645 38.638 40.8917 38.638 40.9279V41.5476C38.638 41.8901 38.8646 42.0778 39.0912 42.1799C39.3777 42.3088 39.7113 42.3088 39.9977 42.1799C40.2244 42.0778 40.451 41.8901 40.451 41.5476V40.9279C40.451 40.8911 40.487 40.8647 40.5241 40.8737C40.7496 40.9287 41.4198 41.2558 41.4198 43.1998C41.4133 43.1998 42.9663 43.1998 42.9663 43.1998C42.9663 43.1998 43.3256 39.9962 40.5566 39.3712V36.5794C43.4013 35.9927 43.036 32.7357 43.036 32.7357C43.1528 32.7357 43.2475 32.6445 43.2475 32.5321V32.402C43.2475 32.2896 43.1528 32.1984 43.036 32.1984V32.1987ZM41.3003 32.736H41.4895C41.4895 34.6837 40.8168 35.0084 40.5925 35.0624C40.556 35.0713 40.5207 35.0441 40.5207 35.0079V34.3882C40.5207 34.0457 40.2941 33.858 40.0675 33.7559C39.781 33.627 39.4474 33.627 39.161 33.7559C38.9343 33.858 38.7077 34.0457 38.7077 34.3882V35.0079C38.7077 35.0447 38.6717 35.0711 38.6346 35.0621C38.4091 35.007 37.7389 34.68 37.7389 32.736V32.1987C37.7389 30.2509 38.4116 29.9262 38.6359 29.8722C38.6724 29.8634 38.7077 29.8906 38.7077 29.9268V30.5464C38.7077 30.889 38.9343 31.0766 39.161 31.1787C39.4474 31.3077 39.781 31.3077 40.0675 31.1787C40.2941 31.0766 40.5207 30.889 40.5207 30.5464V29.9268C40.5207 29.89 40.5567 29.8635 40.5938 29.8725C40.8193 29.9276 41.4895 30.2547 41.4895 32.1987H41.3003C41.1836 32.1987 41.0889 32.2899 41.0889 32.4023V32.5323C41.0889 32.6448 41.1836 32.736 41.3003 32.736Z",fill:"white"})]})}function fUe(){return L.jsx("svg",{style:{maxHeight:"100%",maxWidth:"100%"},xmlns:"http://www.w3.org/2000/svg",height:"64",width:"64",viewBox:"0 0 64 64",children:L.jsxs("g",{transform:"translate(0.00630876,-0.00301984)",children:[L.jsx("path",{fill:"#f7931a",d:"m63.033,39.744c-4.274,17.143-21.637,27.576-38.782,23.301-17.138-4.274-27.571-21.638-23.295-38.78,4.272-17.145,21.635-27.579,38.775-23.305,17.144,4.274,27.576,21.64,23.302,38.784z"}),L.jsx("path",{fill:"#FFF",d:"m46.103,27.444c0.637-4.258-2.605-6.547-7.038-8.074l1.438-5.768-3.511-0.875-1.4,5.616c-0.923-0.23-1.871-0.447-2.813-0.662l1.41-5.653-3.509-0.875-1.439,5.766c-0.764-0.174-1.514-0.346-2.242-0.527l0.004-0.018-4.842-1.209-0.934,3.75s2.605,0.597,2.55,0.634c1.422,0.355,1.679,1.296,1.636,2.042l-1.638,6.571c0.098,0.025,0.225,0.061,0.365,0.117-0.117-0.029-0.242-0.061-0.371-0.092l-2.296,9.205c-0.174,0.432-0.615,1.08-1.609,0.834,0.035,0.051-2.552-0.637-2.552-0.637l-1.743,4.019,4.569,1.139c0.85,0.213,1.683,0.436,2.503,0.646l-1.453,5.834,3.507,0.875,1.439-5.772c0.958,0.26,1.888,0.5,2.798,0.726l-1.434,5.745,3.511,0.875,1.453-5.823c5.987,1.133,10.489,0.676,12.384-4.739,1.527-4.36-0.076-6.875-3.226-8.515,2.294-0.529,4.022-2.038,4.483-5.155zm-8.022,11.249c-1.085,4.36-8.426,2.003-10.806,1.412l1.928-7.729c2.38,0.594,10.012,1.77,8.878,6.317zm1.086-11.312c-0.99,3.966-7.1,1.951-9.082,1.457l1.748-7.01c1.982,0.494,8.365,1.416,7.334,5.553z"})]})})}const W0e=Rn()((t,{size:e})=>({container:{height:e,width:e,...UM},iconImage:{width:e,height:e,borderRadius:"50px"},icon:{maxHeight:"100%",maxWidth:"100%"},emptyIcon:{width:e,height:e,borderRadius:"50px",background:`color-mix(in hsl, ${t.palette.text.secondary}, ${t.palette.input.background} 80%)`}})),kY={[Ue.WBTC]:LPe(),[Ue.BUSD]:BPe(),[Ue.USDT]:jPe(),[Ue.DAI]:kPe(),[Ue.GLMR]:_Pe(),[Ue.AVAX]:OPe(),[Ue.BNB]:FPe(),[Ue.BSC]:VPe(),[Ue.CELO]:zPe(),[Ue.ETH]:RPe(),[Ue.FANTOM]:PPe(),[Ue.POLYGON]:$Pe(),[Ue.SOLANA]:UPe(),[Ue.USDC]:QPe(),[Ue.SUI]:WPe(),[Ue.APT]:HPe(),[Ue.ARBITRUM]:qPe(),[Ue.OPTIMISM]:ZPe(),[Ue.SEI]:YPe(),[Ue.BASE]:GPe(),[Ue.OSMO]:KPe(),[Ue.TBTC]:XPe(),[Ue.WSTETH]:JPe(),[Ue.ATOM]:tUe(),[Ue.EVMOS]:eUe(),[Ue.KUJI]:nUe(),[Ue.PYTH]:iUe(),[Ue.KLAY]:rUe(),[Ue.INJ]:aUe(),[Ue.NTT]:sUe(),[Ue.SCROLL]:oUe(),[Ue.BLAST]:cUe(),[Ue.XLAYER]:L.jsx("img",{style:{maxHeight:"100%",maxWidth:"100%"},src:jY("Xlayer")}),[Ue.MANTLE]:L.jsx("img",{style:{maxHeight:"100%",maxWidth:"100%"},src:jY("Mantle")}),[Ue.WORLDCHAIN]:lUe(),[Ue.BERA]:uUe(),[Ue.BTC]:fUe()};function dUe(t){return Object.values(Ue).includes(t)}function hUe(t){const{classes:e}=W0e(t);return L.jsx("div",{className:e.emptyIcon})}function Lj(t){const e=t.height||36,{classes:n}=W0e({size:e});let r=L.jsx(hUe,{size:e});return dUe(t.icon)&&kY[t.icon]?r=kY[t.icon]:typeof t.icon=="string"&&(r=L.jsx("img",{className:n.iconImage,src:t.icon})),L.jsx("div",{className:n.container,children:r})}const e4={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Y0e=Object.create(null);for(const t in e4)Object.hasOwn(e4,t)&&(Y0e[e4[t]]=t);const W0={to:{},get:{}};W0.get=function(t){const e=t.slice(0,3).toLowerCase();let n,r;switch(e){case"hsl":{n=W0.get.hsl(t),r="hsl";break}case"hwb":{n=W0.get.hwb(t),r="hwb";break}default:{n=W0.get.rgb(t),r="rgb";break}}return n?{model:r,value:n}:null};W0.get.rgb=function(t){if(!t)return null;const e=/^#([a-f\d]{3,4})$/i,n=/^#([a-f\d]{6})([a-f\d]{2})?$/i,r=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,i=/^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,a=/^(\w+)$/;let s=[0,0,0,1],c,l,d;if(c=t.match(n)){for(d=c[2],c=c[1],l=0;l<3;l++){const p=l*2;s[l]=Number.parseInt(c.slice(p,p+2),16)}d&&(s[3]=Number.parseInt(d,16)/255)}else if(c=t.match(e)){for(c=c[1],d=c[3],l=0;l<3;l++)s[l]=Number.parseInt(c[l]+c[l],16);d&&(s[3]=Number.parseInt(d+d,16)/255)}else if(c=t.match(r)){for(l=0;l<3;l++)s[l]=Number.parseInt(c[l+1],10);c[4]&&(s[3]=c[5]?Number.parseFloat(c[4])*.01:Number.parseFloat(c[4]))}else if(c=t.match(i)){for(l=0;l<3;l++)s[l]=Math.round(Number.parseFloat(c[l+1])*2.55);c[4]&&(s[3]=c[5]?Number.parseFloat(c[4])*.01:Number.parseFloat(c[4]))}else return(c=t.match(a))?c[1]==="transparent"?[0,0,0,0]:Object.hasOwn(e4,c[1])?(s=e4[c[1]],s[3]=1,s):null:null;for(l=0;l<3;l++)s[l]=Hu(s[l],0,255);return s[3]=Hu(s[3],0,1),s};W0.get.hsl=function(t){if(!t)return null;const e=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=t.match(e);if(n){const r=Number.parseFloat(n[4]),i=(Number.parseFloat(n[1])%360+360)%360,a=Hu(Number.parseFloat(n[2]),0,100),s=Hu(Number.parseFloat(n[3]),0,100),c=Hu(Number.isNaN(r)?1:r,0,1);return[i,a,s,c]}return null};W0.get.hwb=function(t){if(!t)return null;const e=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d.]+)%\s*,\s*([+-]?[\d.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=t.match(e);if(n){const r=Number.parseFloat(n[4]),i=(Number.parseFloat(n[1])%360+360)%360,a=Hu(Number.parseFloat(n[2]),0,100),s=Hu(Number.parseFloat(n[3]),0,100),c=Hu(Number.isNaN(r)?1:r,0,1);return[i,a,s,c]}return null};W0.to.hex=function(...t){return"#"+dm(t[0])+dm(t[1])+dm(t[2])+(t[3]<1?dm(Math.round(t[3]*255)):"")};W0.to.rgb=function(...t){return t.length<4||t[3]===1?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"};W0.to.rgb.percent=function(...t){const e=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),r=Math.round(t[2]/255*100);return t.length<4||t[3]===1?"rgb("+e+"%, "+n+"%, "+r+"%)":"rgba("+e+"%, "+n+"%, "+r+"%, "+t[3]+")"};W0.to.hsl=function(...t){return t.length<4||t[3]===1?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"};W0.to.hwb=function(...t){let e="";return t.length>=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};W0.to.keyword=function(...t){return Y0e[t.slice(0,3)]};function Hu(t,e,n){return Math.min(Math.max(e,t),n)}function dm(t){const e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}const dp={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},G0e={};for(const t of Object.keys(dp))G0e[dp[t]]=t;const Ht={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},nl=(6/29)**3;for(const t of Object.keys(Ht)){if(!("channels"in Ht[t]))throw new Error("missing channels property: "+t);if(!("labels"in Ht[t]))throw new Error("missing channel labels property: "+t);if(Ht[t].labels.length!==Ht[t].channels)throw new Error("channel and label counts mismatch: "+t);const{channels:e,labels:n}=Ht[t];delete Ht[t].channels,delete Ht[t].labels,Object.defineProperty(Ht[t],"channels",{value:e}),Object.defineProperty(Ht[t],"labels",{value:n})}Ht.rgb.hsl=function(t){const e=t[0]/255,n=t[1]/255,r=t[2]/255,i=Math.min(e,n,r),a=Math.max(e,n,r),s=a-i;let c,l;switch(a){case i:{c=0;break}case e:{c=(n-r)/s;break}case n:{c=2+(r-e)/s;break}case r:{c=4+(e-n)/s;break}}c=Math.min(c*60,360),c<0&&(c+=360);const d=(i+a)/2;return a===i?l=0:d<=.5?l=s/(a+i):l=s/(2-a-i),[c,l*100,d*100]};Ht.rgb.hsv=function(t){let e,n,r,i,a;const s=t[0]/255,c=t[1]/255,l=t[2]/255,d=Math.max(s,c,l),p=d-Math.min(s,c,l),m=function(g){return(d-g)/6/p+1/2};if(p===0)i=0,a=0;else{switch(a=p/d,e=m(s),n=m(c),r=m(l),d){case s:{i=r-n;break}case c:{i=1/3+e-r;break}case l:{i=2/3+n-e;break}}i<0?i+=1:i>1&&(i-=1)}return[i*360,a*100,d*100]};Ht.rgb.hwb=function(t){const e=t[0],n=t[1];let r=t[2];const i=Ht.rgb.hsl(t)[0],a=1/255*Math.min(e,Math.min(n,r));return r=1-1/255*Math.max(e,Math.max(n,r)),[i,a*100,r*100]};Ht.rgb.cmyk=function(t){const e=t[0]/255,n=t[1]/255,r=t[2]/255,i=Math.min(1-e,1-n,1-r),a=(1-e-i)/(1-i)||0,s=(1-n-i)/(1-i)||0,c=(1-r-i)/(1-i)||0;return[a*100,s*100,c*100,i*100]};function pUe(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}Ht.rgb.keyword=function(t){const e=G0e[t];if(e)return e;let n=Number.POSITIVE_INFINITY,r;for(const i of Object.keys(dp)){const a=dp[i],s=pUe(t,a);s<n&&(n=s,r=i)}return r};Ht.keyword.rgb=function(t){return dp[t]};Ht.rgb.xyz=function(t){let e=t[0]/255,n=t[1]/255,r=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const i=e*.4124564+n*.3575761+r*.1804375,a=e*.2126729+n*.7151522+r*.072175,s=e*.0193339+n*.119192+r*.9503041;return[i*100,a*100,s*100]};Ht.rgb.lab=function(t){const e=Ht.rgb.xyz(t);let n=e[0],r=e[1],i=e[2];n/=95.047,r/=100,i/=108.883,n=n>nl?n**(1/3):7.787*n+16/116,r=r>nl?r**(1/3):7.787*r+16/116,i=i>nl?i**(1/3):7.787*i+16/116;const a=116*r-16,s=500*(n-r),c=200*(r-i);return[a,s,c]};Ht.hsl.rgb=function(t){const e=t[0]/360,n=t[1]/100,r=t[2]/100;let i,a;if(n===0)return a=r*255,[a,a,a];const s=r<.5?r*(1+n):r+n-r*n,c=2*r-s,l=[0,0,0];for(let d=0;d<3;d++)i=e+1/3*-(d-1),i<0&&i++,i>1&&i--,6*i<1?a=c+(s-c)*6*i:2*i<1?a=s:3*i<2?a=c+(s-c)*(2/3-i)*6:a=c,l[d]=a*255;return l};Ht.hsl.hsv=function(t){const e=t[0];let n=t[1]/100,r=t[2]/100,i=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=a<=1?a:2-a;const s=(r+n)/2,c=r===0?2*i/(a+i):2*n/(r+n);return[e,c*100,s*100]};Ht.hsv.rgb=function(t){const e=t[0]/60,n=t[1]/100;let r=t[2]/100;const i=Math.floor(e)%6,a=e-Math.floor(e),s=255*r*(1-n),c=255*r*(1-n*a),l=255*r*(1-n*(1-a));switch(r*=255,i){case 0:return[r,l,s];case 1:return[c,r,s];case 2:return[s,r,l];case 3:return[s,c,r];case 4:return[l,s,r];case 5:return[r,s,c]}};Ht.hsv.hsl=function(t){const e=t[0],n=t[1]/100,r=t[2]/100,i=Math.max(r,.01);let a,s;s=(2-n)*r;const c=(2-n)*i;return a=n*i,a/=c<=1?c:2-c,a=a||0,s/=2,[e,a*100,s*100]};Ht.hwb.rgb=function(t){const e=t[0]/360;let n=t[1]/100,r=t[2]/100;const i=n+r;let a;i>1&&(n/=i,r/=i);const s=Math.floor(6*e),c=1-r;a=6*e-s,s&1&&(a=1-a);const l=n+a*(c-n);let d,p,m;switch(s){default:case 6:case 0:{d=c,p=l,m=n;break}case 1:{d=l,p=c,m=n;break}case 2:{d=n,p=c,m=l;break}case 3:{d=n,p=l,m=c;break}case 4:{d=l,p=n,m=c;break}case 5:{d=c,p=n,m=l;break}}return[d*255,p*255,m*255]};Ht.cmyk.rgb=function(t){const e=t[0]/100,n=t[1]/100,r=t[2]/100,i=t[3]/100,a=1-Math.min(1,e*(1-i)+i),s=1-Math.min(1,n*(1-i)+i),c=1-Math.min(1,r*(1-i)+i);return[a*255,s*255,c*255]};Ht.xyz.rgb=function(t){const e=t[0]/100,n=t[1]/100,r=t[2]/100;let i,a,s;return i=e*3.2404542+n*-1.5371385+r*-.4985314,a=e*-.969266+n*1.8760108+r*.041556,s=e*.0556434+n*-.2040259+r*1.0572252,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[i*255,a*255,s*255]};Ht.xyz.lab=function(t){let e=t[0],n=t[1],r=t[2];e/=95.047,n/=100,r/=108.883,e=e>nl?e**(1/3):7.787*e+16/116,n=n>nl?n**(1/3):7.787*n+16/116,r=r>nl?r**(1/3):7.787*r+16/116;const i=116*n-16,a=500*(e-n),s=200*(n-r);return[i,a,s]};Ht.lab.xyz=function(t){const e=t[0],n=t[1],r=t[2];let i,a,s;a=(e+16)/116,i=n/500+a,s=a-r/200;const c=a**3,l=i**3,d=s**3;return a=c>nl?c:(a-16/116)/7.787,i=l>nl?l:(i-16/116)/7.787,s=d>nl?d:(s-16/116)/7.787,i*=95.047,a*=100,s*=108.883,[i,a,s]};Ht.lab.lch=function(t){const e=t[0],n=t[1],r=t[2];let i;i=Math.atan2(r,n)*360/2/Math.PI,i<0&&(i+=360);const s=Math.sqrt(n*n+r*r);return[e,s,i]};Ht.lch.lab=function(t){const e=t[0],n=t[1],i=t[2]/360*2*Math.PI,a=n*Math.cos(i),s=n*Math.sin(i);return[e,a,s]};Ht.rgb.ansi16=function(t,e=null){const[n,r,i]=t;let a=e===null?Ht.rgb.hsv(t)[2]:e;if(a=Math.round(a/50),a===0)return 30;let s=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(s+=60),s};Ht.hsv.ansi16=function(t){return Ht.rgb.ansi16(Ht.hsv.rgb(t),t[2])};Ht.rgb.ansi256=function(t){const e=t[0],n=t[1],r=t[2];return e>>4===n>>4&&n>>4===r>>4?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};Ht.ansi16.rgb=function(t){t=t[0];let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];const n=(Math.trunc(t>50)+1)*.5,r=(e&1)*n*255,i=(e>>1&1)*n*255,a=(e>>2&1)*n*255;return[r,i,a]};Ht.ansi256.rgb=function(t){if(t=t[0],t>=232){const a=(t-232)*10+8;return[a,a,a]}t-=16;let e;const n=Math.floor(t/36)/5*255,r=Math.floor((e=t%36)/6)/5*255,i=e%6/5*255;return[n,r,i]};Ht.rgb.hex=function(t){const n=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".slice(n.length)+n};Ht.hex.rgb=function(t){const e=t.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!e)return[0,0,0];let n=e[0];e[0].length===3&&(n=[...n].map(c=>c+c).join(""));const r=Number.parseInt(n,16),i=r>>16&255,a=r>>8&255,s=r&255;return[i,a,s]};Ht.rgb.hcg=function(t){const e=t[0]/255,n=t[1]/255,r=t[2]/255,i=Math.max(Math.max(e,n),r),a=Math.min(Math.min(e,n),r),s=i-a;let c;const l=s<1?a/(1-s):0;return s<=0?c=0:i===e?c=(n-r)/s%6:i===n?c=2+(r-e)/s:c=4+(e-n)/s,c/=6,c%=1,[c*360,s*100,l*100]};Ht.hsl.hcg=function(t){const e=t[1]/100,n=t[2]/100,r=n<.5?2*e*n:2*e*(1-n);let i=0;return r<1&&(i=(n-.5*r)/(1-r)),[t[0],r*100,i*100]};Ht.hsv.hcg=function(t){const e=t[1]/100,n=t[2]/100,r=e*n;let i=0;return r<1&&(i=(n-r)/(1-r)),[t[0],r*100,i*100]};Ht.hcg.rgb=function(t){const e=t[0]/360,n=t[1]/100,r=t[2]/100;if(n===0)return[r*255,r*255,r*255];const i=[0,0,0],a=e%1*6,s=a%1,c=1-s;let l=0;switch(Math.floor(a)){case 0:{i[0]=1,i[1]=s,i[2]=0;break}case 1:{i[0]=c,i[1]=1,i[2]=0;break}case 2:{i[0]=0,i[1]=1,i[2]=s;break}case 3:{i[0]=0,i[1]=c,i[2]=1;break}case 4:{i[0]=s,i[1]=0,i[2]=1;break}default:i[0]=1,i[1]=0,i[2]=c}return l=(1-n)*r,[(n*i[0]+l)*255,(n*i[1]+l)*255,(n*i[2]+l)*255]};Ht.hcg.hsv=function(t){const e=t[1]/100,n=t[2]/100,r=e+n*(1-e);let i=0;return r>0&&(i=e/r),[t[0],i*100,r*100]};Ht.hcg.hsl=function(t){const e=t[1]/100,r=t[2]/100*(1-e)+.5*e;let i=0;return r>0&&r<.5?i=e/(2*r):r>=.5&&r<1&&(i=e/(2*(1-r))),[t[0],i*100,r*100]};Ht.hcg.hwb=function(t){const e=t[1]/100,n=t[2]/100,r=e+n*(1-e);return[t[0],(r-e)*100,(1-r)*100]};Ht.hwb.hcg=function(t){const e=t[1]/100,r=1-t[2]/100,i=r-e;let a=0;return i<1&&(a=(r-i)/(1-i)),[t[0],i*100,a*100]};Ht.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};Ht.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};Ht.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};Ht.gray.hsl=function(t){return[0,0,t[0]]};Ht.gray.hsv=Ht.gray.hsl;Ht.gray.hwb=function(t){return[0,100,t[0]]};Ht.gray.cmyk=function(t){return[0,0,0,t[0]]};Ht.gray.lab=function(t){return[t[0],0,0]};Ht.gray.hex=function(t){const e=Math.round(t[0]/100*255)&255,r=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".slice(r.length)+r};Ht.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]};function bUe(){const t={},e=Object.keys(Ht);for(let{length:n}=e,r=0;r<n;r++)t[e[r]]={distance:-1,parent:null};return t}function mUe(t){const e=bUe(),n=[t];for(e[t].distance=0;n.length>0;){const r=n.pop(),i=Object.keys(Ht[r]);for(let{length:a}=i,s=0;s<a;s++){const c=i[s],l=e[c];l.distance===-1&&(l.distance=e[r].distance+1,l.parent=r,n.unshift(c))}}return e}function yUe(t,e){return function(n){return e(t(n))}}function gUe(t,e){const n=[e[t].parent,t];let r=Ht[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)n.unshift(e[i].parent),r=yUe(Ht[e[i].parent][i],r),i=e[i].parent;return r.conversion=n,r}function vUe(t){const e=mUe(t),n={},r=Object.keys(e);for(let{length:i}=r,a=0;a<i;a++){const s=r[a];e[s].parent!==null&&(n[s]=gUe(s,e))}return n}const ti={},MUe=Object.keys(Ht);function xUe(t){const e=function(...n){const r=n[0];return r==null?r:(r.length>1&&(n=r),t(n))};return"conversion"in t&&(e.conversion=t.conversion),e}function wUe(t){const e=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const i=t(n);if(typeof i=="object")for(let{length:a}=i,s=0;s<a;s++)i[s]=Math.round(i[s]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}for(const t of MUe){ti[t]={},Object.defineProperty(ti[t],"channels",{value:Ht[t].channels}),Object.defineProperty(ti[t],"labels",{value:Ht[t].labels});const e=vUe(t),n=Object.keys(e);for(const r of n){const i=e[r];ti[t][r]=wUe(i),ti[t][r].raw=xUe(i)}}const $0e=["keyword","gray","hex"],VI={};for(const t of Object.keys(ti))VI[[...ti[t].labels].sort().join("")]=t;const t4={};function b0(t,e){if(!(this instanceof b0))return new b0(t,e);if(e&&e in $0e&&(e=null),e&&!(e in ti))throw new Error("Unknown model: "+e);let n,r;if(t==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof b0)this.model=t.model,this.color=[...t.color],this.valpha=t.valpha;else if(typeof t=="string"){const i=W0.get(t);if(i===null)throw new Error("Unable to parse color from string: "+t);this.model=i.model,r=ti[this.model].channels,this.color=i.value.slice(0,r),this.valpha=typeof i.value[r]=="number"?i.value[r]:1}else if(t.length>0){this.model=e||"rgb",r=ti[this.model].channels;const i=Array.prototype.slice.call(t,0,r);this.color=QI(i,r),this.valpha=typeof t[r]=="number"?t[r]:1}else if(typeof t=="number")this.model="rgb",this.color=[t>>16&255,t>>8&255,t&255],this.valpha=1;else{this.valpha=1;const i=Object.keys(t);"alpha"in t&&(i.splice(i.indexOf("alpha"),1),this.valpha=typeof t.alpha=="number"?t.alpha:0);const a=i.sort().join("");if(!(a in VI))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=VI[a];const{labels:s}=ti[this.model],c=[];for(n=0;n<s.length;n++)c.push(t[s[n]]);this.color=QI(c)}if(t4[this.model])for(r=ti[this.model].channels,n=0;n<r;n++){const i=t4[this.model][n];i&&(this.color[n]=i(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}b0.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(t){let e=this.model in W0.to?this:this.rgb();e=e.round(typeof t=="number"?t:1);const n=e.valpha===1?e.color:[...e.color,this.valpha];return W0.to[e.model](...n)},percentString(t){const e=this.rgb().round(typeof t=="number"?t:1),n=e.valpha===1?e.color:[...e.color,this.valpha];return W0.to.rgb.percent(...n)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const t={},{channels:e}=ti[this.model],{labels:n}=ti[this.model];for(let r=0;r<e;r++)t[n[r]]=this.color[r];return this.valpha!==1&&(t.alpha=this.valpha),t},unitArray(){const t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,this.valpha!==1&&t.push(this.valpha),t},unitObject(){const t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,this.valpha!==1&&(t.alpha=this.valpha),t},round(t){return t=Math.max(t||0,0),new b0([...this.color.map(CUe(t)),this.valpha],this.model)},alpha(t){return t!==void 0?new b0([...this.color,Math.max(0,Math.min(1,t))],this.model):this.valpha},red:o0("rgb",0,P0(255)),green:o0("rgb",1,P0(255)),blue:o0("rgb",2,P0(255)),hue:o0(["hsl","hsv","hsl","hwb","hcg"],0,t=>(t%360+360)%360),saturationl:o0("hsl",1,P0(100)),lightness:o0("hsl",2,P0(100)),saturationv:o0("hsv",1,P0(100)),value:o0("hsv",2,P0(100)),chroma:o0("hcg",1,P0(100)),gray:o0("hcg",2,P0(100)),white:o0("hwb",1,P0(100)),wblack:o0("hwb",2,P0(100)),cyan:o0("cmyk",0,P0(100)),magenta:o0("cmyk",1,P0(100)),yellow:o0("cmyk",2,P0(100)),black:o0("cmyk",3,P0(100)),x:o0("xyz",0,P0(95.047)),y:o0("xyz",1,P0(100)),z:o0("xyz",2,P0(108.833)),l:o0("lab",0,P0(100)),a:o0("lab",1),b:o0("lab",2),keyword(t){return t!==void 0?new b0(t):ti[this.model].keyword(this.color)},hex(t){return t!==void 0?new b0(t):W0.to.hex(...this.rgb().round().color)},hexa(t){if(t!==void 0)return new b0(t);const e=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),W0.to.hex(...e)+n},rgbNumber(){const t=this.rgb().color;return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255},luminosity(){const t=this.rgb().color,e=[];for(const[n,r]of t.entries()){const i=r/255;e[n]=i<=.04045?i/12.92:((i+.055)/1.055)**2.4}return .2126*e[0]+.7152*e[1]+.0722*e[2]},contrast(t){const e=this.luminosity(),n=t.luminosity();return e>n?(e+.05)/(n+.05):(n+.05)/(e+.05)},level(t){const e=this.contrast(t);return e>=7?"AAA":e>=4.5?"AA":""},isDark(){const t=this.rgb().color;return(t[0]*2126+t[1]*7152+t[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const t=this.rgb();for(let e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten(t){const e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken(t){const e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate(t){const e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate(t){const e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten(t){const e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken(t){const e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale(){const t=this.rgb().color,e=t[0]*.3+t[1]*.59+t[2]*.11;return b0.rgb(e,e,e)},fade(t){return this.alpha(this.valpha-this.valpha*t)},opaquer(t){return this.alpha(this.valpha+this.valpha*t)},rotate(t){const e=this.hsl();let n=e.color[0];return n=(n+t)%360,n=n<0?360+n:n,e.color[0]=n,e},mix(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);const n=t.rgb(),r=this.rgb(),i=e===void 0?.5:e,a=2*i-1,s=n.alpha()-r.alpha(),c=((a*s===-1?a:(a+s)/(1+a*s))+1)/2,l=1-c;return b0.rgb(c*n.red()+l*r.red(),c*n.green()+l*r.green(),c*n.blue()+l*r.blue(),n.alpha()*i+r.alpha()*(1-i))}};for(const t of Object.keys(ti)){if($0e.includes(t))continue;const{channels:e}=ti[t];b0.prototype[t]=function(...n){return this.model===t?new b0(this):n.length>0?new b0(n,t):new b0([...EUe(ti[this.model][t].raw(this.color)),this.valpha],t)},b0[t]=function(...n){let r=n[0];return typeof r=="number"&&(r=QI(n,e)),new b0(r,t)}}function AUe(t,e){return Number(t.toFixed(e))}function CUe(t){return function(e){return AUe(e,t)}}function o0(t,e,n){t=Array.isArray(t)?t:[t];for(const r of t)(t4[r]||(t4[r]=[]))[e]=n;return t=t[0],function(r){let i;return r!==void 0?(n&&(r=n(r)),i=this[t](),i.color[e]=r,i):(i=this[t]().color[e],n&&(i=n(i)),i)}}function P0(t){return function(e){return Math.max(0,Math.min(t,e))}}function EUe(t){return Array.isArray(t)?t:[t]}function QI(t,e){for(let n=0;n<e;n++)typeof t[n]!="number"&&(t[n]=0);return t}const SUe=Rn()(t=>({tokenListItem:{display:"flex",justifyContent:"space-between",padding:"8px 16px",borderRadius:0,":hover":{backgroundColor:b0(t.palette.primary.main).alpha(.07).hexa()}},tokenListItemSelected:{backgroundColor:b0(t.palette.primary.main).alpha(.07).hexa()},tokenDetails:{display:"flex",flexDirection:"row",alignItems:"center"},addressLink:{display:"inline-flex",alignItems:"center",height:"10px",overflow:"hidden",color:t.palette.text.primary,opacity:.6},wormholeWrappedDisclaimer:{display:"inline",marginRight:4}}));function TUe(t){var l;const{classes:e}=SUe(),n=_r(),{chain:r,token:i}=t,a=(l=i.tokenId)==null?void 0:l.address.toString(),s=a?Y3(r,a,"token"):void 0,c=`${i.shortAddress}`;return L.jsxs(P1,{className:`${e.tokenListItem} ${t.isSelected?e.tokenListItemSelected:""}`,dense:!0,disabled:t.disabled,"data-testid":`token-button-${i.chain.toLowerCase()}-${i.address.toString()}`,onMouseDown:t.onClick,children:[L.jsxs("div",{className:e.tokenDetails,children:[L.jsx(cj,{children:L.jsx(Lj,{icon:t.token.icon})}),L.jsxs("div",{children:[L.jsx(dt,{children:i.display}),L.jsxs(ci,{display:"flex",children:[i.tokenBridgeOriginalTokenId?L.jsx(md,{title:`Wormhole-wrapped from ${CCe(i.tokenBridgeOriginalTokenId.chain)}`,children:L.jsx(ci,{margin:"2px",marginRight:"5px",children:L.jsx(yd,{height:10,icon:i.tokenBridgeOriginalTokenId.chain})})}):null,i.symbol?L.jsx(dt,{fontSize:10,color:n.palette.text.secondary,children:i.symbol}):null,i.symbol&&!i.isNativeGasToken?L.jsx(dt,{fontSize:10,color:n.palette.text.secondary,marginLeft:1,marginRight:1,children:"•"}):null,i.isNativeGasToken?null:L.jsx(dt,{fontSize:10,color:n.palette.text.secondary,children:!Fn(a)&&L.jsxs(Nb,{onMouseDown:d=>d.stopPropagation(),onClick:d=>d.stopPropagation(),className:e.addressLink,href:s,rel:"noreferrer noopener",target:"_blank",children:[c,L.jsx(Nj,{sx:{height:"10px",width:"10px",marginLeft:"2px"}})]})})]})]})]}),L.jsxs(Sn,{alignItems:"flex-end",children:[L.jsx(dt,{fontSize:14,children:t.isFetchingBalance?L.jsx(_0,{size:24}):t.balance?y0(ca(t.balance,6)):""}),t.price&&L.jsx(dt,{color:n.palette.text.secondary,fontSize:"10px",children:t.price})]})]})}const IUe=G.memo(TUe);function DUe(t){const e=la.get(Te.network,t);if(e)return fn.tokenId(t,e)}const NUe=Rn()(t=>({card:{background:t.palette.input.background,maxWidth:"420px"},tokenListContainer:{padding:"16px 0 0 0 !important"},title:{fontSize:14,marginBottom:"8px"},tokenLoader:{display:"flex",justifyContent:"space-between"},tokenList:{maxHeight:"360px",[t.breakpoints.down("sm")]:{maxHeight:"480px"}}})),_Y=t=>{var S;const{classes:e}=NUe(),n=_r(),r=Te.ui.disableUserInputtedTokens!==!0,{getOrFetchToken:i,isFetchingToken:a,getTokenPrice:s}=Zo(),[c,l]=G.useState(""),{isFetching:d,balances:p}=j0e(t.wallet,t.selectedChainConfig.key,t.tokenList||[]);G.useEffect(()=>{if(r)try{if(c!==""){const I=t.selectedChainConfig.sdkName,N=Gi(I,c);N&&(Te.tokens.get(I,c)||i({chain:I,address:N}))}}catch{}},[c,t.selectedChainConfig.sdkName]);const m=I=>{if(t.selectedToken&&Xi(t.selectedToken,I))return 4;if(Fn(I.address))return 3;const N=DUe(t.selectedChainConfig.sdkName);return N&&Xi(N,I)?2:I.isTokenBridgeWrappedToken?0:1},g=G.useMemo(()=>{if(!t.tokenList)return[];const I=t.tokenList.filter(k=>!uI(k,t.selectedChainConfig.sdkName));if(c){let k=[];const O=Te.tokens.get(t.selectedChainConfig.sdkName,c);O&&k.push(O);const z=Te.tokens.queryBySymbol(t.selectedChainConfig.sdkName,c).filter(_=>!uI(_,t.selectedChainConfig.sdkName));z.length>0&&(k=k.concat(z));for(const _ of k)t.tokenList.find(F=>Xi(_,F))||I.push(_)}const N=k=>{const O=p[P6(k)];return!O||!O.balance?0:e6(s,O.balance,k)??0};let B=I.sort((k,O)=>{const z=m(k),_=m(O);if(z>_)return-1;if(_>z)return 1;const F=N(k),R=N(O);return F!==R?R-F:k.symbol.localeCompare(O.symbol)});if(Te.tokenWhitelist&&Te.tokenWhitelist.length>0){const k=new Set,O=[];for(const z of Te.tokenWhitelist)if(typeof z=="string")O.push(z);else if(hB(z)){const _=bM(z);_.chain===t.selectedChainConfig.sdkName&&k.add(_.address.toString())}for(const z of O){let _=!1;const F=[];for(const R of B)R.symbol===z&&(R.isTokenBridgeWrappedToken?F.push(R):(k.add(R.address.toString()),_=!0));if(!_&&F.length>0){for(const{address:R}of F)k.add(R.toString());F.length>1&&console.warn(`Ambigous token whitelist item "${z}"; found ${F.length} matching wrapped tokens.`)}}B=B.filter(z=>k.has(z.address.toString()))}return Te.isTokenSupportedHandler&&(B=B.filter(Te.isTokenSupportedHandler)),t.isSource&&t.wallet.address&&(B=B.filter(k=>{var z;const O=(z=p[P6(k)])==null?void 0:z.balance;return O&&gn(O)>0})),B},[t.selectedChainConfig.sdkName,t.selectedChainConfig.key,t.selectedToken,t.tokenList,t.sourceToken,t.isSource,(S=t.wallet)==null?void 0:S.address,p,c]),M=G.useMemo(()=>L.jsx(dt,{variant:"body2",color:n.palette.grey.A400,children:"No supported tokens found in wallet"}),[n.palette.grey.A400]),C=g.length===0&&!d&&!t.isFetching,T=`Search for a token${r?" or paste an address":""}`,D=L.jsx(H0e,{searchPlaceholder:T,className:e.tokenList,dataTestId:"token-search-list",listTitle:C?M:L.jsxs(dt,{fontSize:14,color:n.palette.text.secondary,children:["Tokens on ",t.selectedChainConfig.displayName]}),loading:t.isFetching&&L.jsx(P1,{className:e.tokenLoader,dense:!0,children:L.jsx(_0,{})}),items:g,onQueryChange:I=>{l(I)},filterFn:(I,N)=>{if(N.length===0)return!0;const B=N.toLowerCase();return!!([I.symbol,I.name].some(O=>{var z,_;return(_=(z=O==null?void 0:O.toLowerCase())==null?void 0:z.includes)==null?void 0:_.call(z,B)})||I.address.toString().toLowerCase().includes(B)||I.tokenBridgeOriginalTokenId&&I.tokenBridgeOriginalTokenId.address.toString().toLowerCase().includes(B))},renderFn:I=>{var O,z,_;const N=(O=p==null?void 0:p[I.key])==null?void 0:O.balance,B=N?S1(s,N,I):null,k=t.isSource&&!!((z=t.wallet)!=null&&z.address)&&!!p&&(!N||gn(N)===0n);return L.jsx(IUe,{token:I,chain:t.selectedChainConfig.key,disabled:k,onClick:()=>{t.onSelectToken(I)},balance:N,price:B,isSelected:I.key===((_=t.selectedToken)==null?void 0:_.key),isFetchingBalance:d},I.key)}});return L.jsx(Sl,{className:e.card,variant:"elevation",children:L.jsxs(hf,{className:e.tokenListContainer,children:[L.jsxs(ci,{sx:{display:"flex",width:"100%",padding:"0 16px"},children:[L.jsx(dt,{width:"100%",className:e.title,children:"Select a token"}),a?L.jsx(_0,{sx:{alignSelf:"flex-end",marginBottom:"12px"},size:14}):null]}),D]})})},LUe=Rn()(t=>({badgeContent:{border:`1.5px solid ${t.palette.input.background}`,borderRadius:"4px"}}));function hp(t){const{classes:e}=LUe(),{chainConfig:n,token:r}=t;return L.jsx(dje,{badgeContent:L.jsx(ci,{className:e.badgeContent,children:L.jsx(yd,{icon:n==null?void 0:n.icon,height:13})}),sx:{zIndex:0,height:"38px",marginRight:"8px","& .MuiBadge-badge":{right:2,top:32}},children:L.jsx(Lj,{icon:r==null?void 0:r.icon,height:36})})}const BUe=Rn()(t=>({inputArea:{width:"100%",cursor:"pointer",maxWidth:"420px",borderRadius:"8px",background:t.palette.input.fillTreatment?"transparent":t.palette.input.background,border:t.palette.input.fillTreatment?`1px solid ${t.palette.input.border}`:"none"},inputAreaEmpty:{borderColor:t.palette.input.background,background:t.palette.input.background},cardContent:{display:"flex",alignItems:"center",justifyContent:"space-between",height:"72px",padding:"16px 20px",":last-child":{padding:"16px 20px"}},chainSelector:{display:"flex",alignItems:"center",justifyContent:"space-between"},disabled:{opacity:"0.6",cursor:"default",pointerEvents:"none"},popover:{marginLeft:"-1px",marginTop:"-1px",width:"422px"},popoverSlot:{width:"100%",maxWidth:"422px",borderRadius:"8px",background:t.palette.input.background},backdrop:{backgroundColor:"rgba(0,0,0,0.2)"},drawer:{background:t.palette.input.background,borderRadius:"8px",height:"calc(100vh - 40px)",maxWidth:"100vw"}})),OY=t=>{const e=_r(),n=ev(e.breakpoints.down("sm")),[r,i]=G.useState(!1),[a,s]=G.useState(!1),{classes:c}=BUe(),l=F0e({variant:"popover",popupId:"asset-picker"});G.useEffect(()=>{(n&&!a||!n&&!l.isOpen)&&setTimeout(()=>{i(!1)},300)},[a,n,l.isOpen]),G.useEffect(()=>{if(n&&a&&!t.chain||!n&&l.isOpen&&!t.chain){const g=t.chainList.find(M=>!Ire(M.key,t.wallet));g&&t.setChain(g.key)}},[n,a,l.isOpen]);const d=G.useMemo(()=>t.chain?Te.chains[t.chain]:void 0,[t.chain]),p=G.useMemo(()=>{if(!d&&!t.token)return L.jsx(dt,{component:"div",fontSize:16,children:"Select chain and token"});const g=t.token?L.jsx(L.Fragment,{children:t.token.display}):L.jsx(L.Fragment,{children:"Select token"});return L.jsxs("div",{children:[L.jsx(dt,{component:"div",maxWidth:300,fontSize:16,fontWeight:700,sx:{display:"flex",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:g}),L.jsx(dt,{component:"div",fontSize:12,sx:{opacity:.6},children:d==null?void 0:d.displayName})]})},[d,t.token]),m=t.isTransactionInProgress||n?{}:z0e(l);return L.jsxs(L.Fragment,{children:[L.jsx(i0e,{open:l.isOpen,className:c.backdrop}),L.jsx(Sl,{className:ro([c.inputArea,!d&&c.inputAreaEmpty,t.isTransactionInProgress&&c.disabled]),"data-testid":t.dataTestId,variant:"elevation",onMouseDown:g=>{n?s(!0):l.open(g)},onTouchEnd:g=>{g.stopPropagation(),g.preventDefault(),n?s(!0):l.open(g)},...m,children:L.jsxs(hf,{className:c.cardContent,children:[L.jsxs(dt,{className:c.chainSelector,component:"div",gap:1,children:[L.jsx(hp,{chainConfig:d,token:t.token}),p]}),l.isOpen||a?L.jsx(U0e,{}):L.jsx(P0e,{})]})}),n?L.jsxs(NFe,{anchor:"bottom",open:a,PaperProps:{className:c.drawer},transitionDuration:200,onOpen:()=>s(!0),onClose:()=>s(!1),children:[L.jsx(Sn,{alignItems:"center",paddingBottom:"4px",paddingTop:"8px",children:L.jsx(ci,{sx:{width:"40px",height:"5px",backgroundColor:e.palette.text.secondary,borderRadius:"8px"}})}),L.jsx(BY,{chainList:t.chainList,selectedChainConfig:d,showSearch:r,setShowSearch:i,wallet:t.wallet,onChainSelect:g=>{t.setChain(g)}}),!r&&d&&L.jsx(_Y,{tokenList:t.tokenList,isFetching:t.isFetching,selectedChainConfig:d,selectedToken:t.token,sourceToken:t.sourceToken,wallet:t.wallet,onSelectToken:g=>{t.setToken(g),s(!1)},isSource:t.isSource})]}):L.jsxs(lj,{...R0e(l),transitionDuration:200,anchorOrigin:{vertical:"top",horizontal:"center"},className:c.popover,transformOrigin:{vertical:"top",horizontal:"center"},marginThreshold:4,slotProps:{paper:{className:c.popoverSlot,sx:{borderRadius:"8px"}}},children:[L.jsx(BY,{chainList:t.chainList,selectedChainConfig:d,showSearch:r,setShowSearch:i,wallet:t.wallet,onChainSelect:g=>{t.setChain(g)}}),!r&&d&&L.jsx(_Y,{tokenList:t.tokenList,isFetching:t.isFetching,selectedChainConfig:d,selectedToken:t.token,sourceToken:t.sourceToken,wallet:t.wallet,onSelectToken:g=>{t.setToken(g),l.close()},isSource:t.isSource})]})]})},jUe=t=>{const{address:e,href:n,target:r="_blank",label:i="Transactions"}=t,a=G.useCallback(()=>window.open(n.replace("{:address}",e),r),[e,n,r]);return L.jsx(P1,{onClick:a,children:L.jsx(dt,{fontSize:14,children:i})})},kUe=Rn()(t=>({connectWallet:{display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"8px",cursor:"pointer",paddingTop:"2px",opacity:1},walletAddress:{color:t.palette.textSecondary,marginLeft:"8px"},disabled:{opacity:"0.6",cursor:"default",pointerEvents:"none"},dropdown:{backgroundColor:t.palette.popover.background,display:"flex",flexDirection:"column",gap:"8px",padding:"8px"},dropdownItem:{borderRadius:"8px",padding:"16px",cursor:"pointer","&:hover":{backgroundColor:t.palette.popover.secondary}}})),_Ue=1e3,FY=t=>{const e=V0(),{classes:n}=kUe(),{isTransactionInProgress:r}=ir(C=>C.transferInput),i=ir(C=>C.wallet[t.type]),[a,s]=G.useState(!1),[c,l]=G.useState(!1),d=F0e({variant:"popover",popupId:`connected-wallet-popover-${t.type}`}),p=G.useCallback(()=>{d==null||d.close(),s(!0)},[d]),m=G.useCallback(()=>{Kte(i.address),d==null||d.close(),l(!0)},[d,i.address]),g=G.useCallback(()=>{e(hCe(t.type)),d==null||d.close()},[e,d,t.type]);G.useEffect(()=>{c&&setTimeout(()=>{l(!1)},_Ue)},[c]);const M=r?{}:z0e(d);return i!=null&&i.address?L.jsxs(L.Fragment,{children:[L.jsxs("div",{className:ro([n.connectWallet,r&&n.disabled]),...M,children:[L.jsx(O0e,{name:i.name,icon:i.icon,size:20}),L.jsx(md,{title:"Copied",open:c,placement:"top",arrow:!0,children:L.jsx(dt,{className:n.walletAddress,fontSize:14,fontWeight:700,children:Zte(i.type,i.address)})})]}),L.jsx(lj,{...R0e(d),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:L.jsxs(Lb,{children:[L.jsx(P1,{onClick:m,children:L.jsx(dt,{fontSize:14,children:"Copy address"})}),Te.ui.explorer?L.jsx(jUe,{address:i.address,href:Te.ui.explorer.href,target:Te.ui.explorer.target,label:Te.ui.explorer.label}):null,L.jsx(P1,{onClick:p,children:L.jsx(dt,{fontSize:14,children:"Change wallet"})}),L.jsx(P1,{onClick:g,children:L.jsx(dt,{fontSize:14,children:"Disconnect"})})]})}),L.jsx(Sj,{open:a,type:t.type,onClose:()=>{s(!1)},showAddressInput:t.type===si.RECEIVING})]}):L.jsx(L.Fragment,{})},OUe=500,FUe=G.memo(({value:t,onChange:e,onDebouncedChange:n,...r})=>{const[i,a]=G.useState(t),[s,c]=G.useState(!1),l=vj(n,OUe),d=G.useCallback(p=>{let m=p.target.value;m==="."&&(m="0.");const g=Number(m);isNaN(g)||g<0||(a(p.target.value),e(p.target.value),l(p.target.value))},[l,e]);return G.useEffect(()=>{s||a(t)},[t]),L.jsx(Zg,{...r,"data-testid":"amount-input",value:i,focused:s,onChange:d,onFocus:()=>c(!0),onBlur:()=>c(!1)})}),zUe=Rn()(t=>({amountContainer:{width:"100%",maxWidth:"420px"},amountInput:{borderRadius:"8px",background:t.palette.input.fillTreatment?"transparent":t.palette.input.background,border:t.palette.input.fillTreatment?`1px solid ${t.palette.input.border}`:"none"},amountInputEmpty:{background:t.palette.input.background,borderColor:t.palette.input.background},amountCardContent:{display:"flex",alignItems:"center",height:"72px",padding:"12px 20px",":last-child":{padding:"12px 20px"}},amountTitle:{color:t.palette.text.secondary,display:"flex",minHeight:"40px",alignItems:"center",justifyContent:"space-between"},inputError:{marginTop:"12px"},balance:{color:t.palette.text.secondary,fontSize:"14px",lineHeight:"14px",textAlign:"right"}})),RUe=t=>{const{classes:e}=zUe(),n=V0(),r=_r(),{sending:i}=ir(B=>B.wallet),{amount:a}=ir(B=>B.transferInput),[s,c]=G.useState(a?y0(a):""),[l,d]=G.useState(a?y0(a):""),{fromChain:p,isTransactionInProgress:m}=ir(B=>B.transferInput),{sourceToken:g}=HM(),{getTokenPrice:M}=Zo();G.useEffect(()=>{!a&&(s||l)&&(D(""),I(""))},[a]);const C=G.useMemo(()=>m||!p||!g,[m,p,g]),T=G.useMemo(()=>C||!i.address?null:L.jsxs(Sn,{direction:"row",alignItems:"center",children:[L.jsx(dt,{className:e.balance,component:"span",sx:{marginRight:"4px"},children:"Balance:"}),t.isFetchingTokenBalance?L.jsx(_0,{size:14}):L.jsx(dt,{fontSize:14,textAlign:"right",className:e.balance,children:t.tokenBalance?y0(ca(t.tokenBalance,6)):"0"})]}),[C,i.address,e.balance,t.isFetchingTokenBalance,t.tokenBalance]),D=G.useCallback(B=>{c(B)},[]),S=G.useMemo(()=>{const B=S1(M,Number(s==="."?"0.":s),g);return B?L.jsx(Qg,{position:"end",sx:{position:"absolute",top:"38px",margin:0},children:L.jsx(Sn,{alignItems:"start",children:L.jsx(dt,{color:r.palette.text.secondary,component:"span",fontSize:"14px",lineHeight:"14px",children:B})})}):null},[s,M,g,r.palette.text.secondary]),I=G.useCallback(B=>{n(PB(B)),d(B)},[n]),N=G.useMemo(()=>{const B=C||!i.address||!t.tokenBalance;return L.jsx(Db,{sx:{minWidth:"32px",padding:"4px"},disabled:B,onClick:()=>{if(t.tokenBalance){const k=y0(t.tokenBalance);D(k),I(k)}},children:L.jsx(dt,{fontSize:14,fontWeight:B?400:600,textTransform:"none",children:"Max"})})},[C,i.address,t.tokenBalance,D,I]);return L.jsxs("div",{className:e.amountContainer,children:[L.jsx("div",{className:e.amountTitle,children:L.jsx(dt,{variant:"body2",children:"Amount"})}),L.jsx(Sl,{className:`${e.amountInput} ${s===""?e.amountInputEmpty:""}`,children:L.jsx(hf,{className:e.amountCardContent,children:L.jsx(FUe,{fullWidth:!0,disabled:C,inputProps:{style:{color:t.error?r.palette.error.main:r.palette.text.primary,fontSize:24,height:"28px",marginBottom:S?"16px":0,padding:0},onWheel:B=>{B.currentTarget.blur()},step:"0.1"},placeholder:"0",variant:"standard",value:l,onChange:D,onDebouncedChange:I,InputProps:{disableUnderline:!0,startAdornment:S,endAdornment:L.jsx(Qg,{position:"end",children:L.jsxs(Sn,{alignItems:"end",justifyContent:"space-between",children:[N,T]})})}})})}),L.jsx(jb,{error:!!t.error,content:t.error||t.warning,show:!!t.error||!!t.warning,color:t.error?r.palette.error.main:r.palette.grey.A400,className:e.inputError})]})},PUe=t=>{const{destChain:e,destToken:n,route:r,isTransactionInProgress:i}=t,a=i,s=e?Te.chains[e]:void 0,c=s?Te.tokens.getGasToken(s.sdkName):void 0,l=c?ACe(c):void 0,d=l&&n===l.key,p=!!r&&Te.routes.get(r).NATIVE_GAS_DROPOFF_SUPPORTED&&!d;return{disabled:a,showGasSlider:p}},UUe=ba(L.jsxs("svg",{width:"34",height:"35",viewBox:"0 0 34 35",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[L.jsx("circle",{opacity:"0.1",cx:"17",cy:"17.5",r:"17",fill:"currentColor"}),L.jsx("path",{d:"M17 11C13.1386 11 10 14.1386 10 18C10 21.8614 13.1386 25 17 25C20.8614 25 24 21.8614 24 18C24 14.1386 20.8614 11 17 11ZM17 24.0233C13.6791 24.0233 10.9767 21.3209 10.9767 18C10.9767 14.6791 13.6791 11.9767 17 11.9767C20.3209 11.9767 23.0233 14.6791 23.0233 18C23.0233 21.3209 20.3209 24.0233 17 24.0233ZM16.5116 18.6512V14.7442C16.5116 14.4772 16.733 14.2558 17 14.2558C17.267 14.2558 17.4884 14.4772 17.4884 14.7442V18.6512C17.4884 18.9181 17.267 19.1395 17 19.1395C16.733 19.1395 16.5116 18.9181 16.5116 18.6512ZM17.814 20.9302C17.814 21.3795 17.4493 21.7442 17 21.7442C16.5507 21.7442 16.186 21.3795 16.186 20.9302C16.186 20.4809 16.5507 20.1163 17 20.1163C17.4493 20.1163 17.814 20.4809 17.814 20.9302Z",fill:"currentColor"})]}),"Error"),hE=ba(L.jsxs("svg",{width:"34",height:"35",viewBox:"0 0 34 35",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[L.jsx("circle",{opacity:"0.1",cx:"17",cy:"17.5",r:"17",fill:"currentColor"}),L.jsx("path",{d:"M17 10.5C13.1386 10.5 10 13.6386 10 17.5C10 21.3614 13.1386 24.5 17 24.5C20.8614 24.5 24 21.3614 24 17.5C24 13.6386 20.8614 10.5 17 10.5ZM17 23.5233C13.6791 23.5233 10.9767 20.8209 10.9767 17.5C10.9767 14.1791 13.6791 11.4767 17 11.4767C20.3209 11.4767 23.0233 14.1791 23.0233 17.5C23.0233 20.8209 20.3209 23.5233 17 23.5233ZM16.5116 18.1512V14.2442C16.5116 13.9772 16.733 13.7558 17 13.7558C17.267 13.7558 17.4884 13.9772 17.4884 14.2442V18.1512C17.4884 18.4181 17.267 18.6395 17 18.6395C16.733 18.6395 16.5116 18.4181 16.5116 18.1512ZM17.814 20.4302C17.814 20.8795 17.4493 21.2442 17 21.2442C16.5507 21.2442 16.186 20.8795 16.186 20.4302C16.186 19.9809 16.5507 19.6163 17 19.6163C17.4493 19.6163 17.814 19.9809 17.814 20.4302Z",fill:"currentColor"})]}),"Warning"),HUe=ba(L.jsx("svg",{width:"9",height:"14",viewBox:"0 0 9 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:L.jsx("path",{d:"M8.9,5.7c0-.1-.2-.2-.4-.2h-4c-.3,0-.5-.2-.5-.4V0L0,7.9c0,.1,0,.3,0,.4,0,.1.2.2.4.2h4c.3,0,.5.2.5.4v5.1l4-7.9c0-.1,0-.3,0-.4Z"})}),"Fastest"),WUe=ba(L.jsxs("svg",{width:"14",height:"13",viewBox:"0 0 14 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[L.jsx("path",{d:"M5.2,7.5c0-1,.8-1.8,1.7-1.8s1.7.8,1.7,1.8-.8,1.8-1.7,1.8-1.7-.8-1.7-1.8Z"}),L.jsx("path",{d:"M10.1,7.5c0,1.2-.6,2.2-1.6,2.7l1.9,3.4c2.1-1.2,3.5-3.5,3.5-6.1h-3.9Z"}),L.jsx("path",{d:"M7,4.3c.6,0,1.1.2,1.6.4l1.9-3.4c-1-.6-2.2-.9-3.5-.9s-2.5.3-3.5.9l1.9,3.4c.5-.3,1-.4,1.6-.4Z"}),L.jsx("path",{d:"M3.9,7.5H0c0,2.6,1.4,4.9,3.5,6.1l1.9-3.4c-.9-.5-1.6-1.5-1.6-2.7Z"})]}),"Cheapest");var Bj={},YUe=pa;Object.defineProperty(Bj,"__esModule",{value:!0});var V0e=Bj.default=void 0,GUe=YUe(ps()),$Ue=L;V0e=Bj.default=(0,GUe.default)((0,$Ue.jsx)("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"InfoOutlined");const VUe=Rn()(t=>({content:{width:"100%",cursor:"pointer",maxWidth:"420px",overflow:"visible",padding:"16px 20px"},container:{display:"flex",flexDirection:"column",gap:"8px",width:"100%"},amounts:{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:"8px",width:"100%"},toggleButton:{backgroundColor:b0(t.palette.text.primary).alpha(.1).hexa(),border:"1px solid transparent",borderRadius:"8px","&.Mui-selected":{border:`1px solid ${t.palette.primary.main}`,borderRadius:"8px"},"&.MuiToggleButtonGroup-middleButton":{margin:"0 2px"},"&.MuiToggleButtonGroup-lastButton":{margin:"0"}}})),QUe=bt(zFe)(({theme:t})=>({padding:"9px 12px",right:"-9px","& .MuiSwitch-switchBase.Mui-checked":{color:t.palette.primary.main},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:t.palette.primary.main},"& .MuiSwitch-track":{height:"20px",borderRadius:"9px"}})),qUe=t=>{const{classes:e}=VUe(),n=V0(),r=_r(),{fromChain:i,toChain:a}=ir(S=>S.transferInput),{getTokenPrice:s,lastTokenPriceUpdate:c}=Zo(),l=Te.tokens.getGasToken(a),d=Te.tokens.getGasToken(i),[p,m]=G.useState(!1),[g,M]=G.useState(0),[C]=E0e(g,500);G.useEffect(()=>{n(rNe(C/100))},[C,n]);const T=G.useMemo(()=>{if(!a||!l)return null;const S=y0(ca(t.destinationGasDrop,6)),I=S1(s,t.destinationGasDrop,l),N=I?`(${I})`:"";return`+${S} ${l.symbol} ${N}`},[l,c,t.destinationGasDrop,a]),D=G.useMemo(()=>L.jsxs(eze,{exclusive:!0,fullWidth:!0,value:g.toString(),onChange:S=>{const I=Number(S.currentTarget.value);M(I===g?0:I)},children:[L.jsx(fE,{className:e.toggleButton,disableRipple:!0,value:"5",children:"5%"}),L.jsx(fE,{className:e.toggleButton,disableRipple:!0,value:"10",children:"10%"}),L.jsx(fE,{className:e.toggleButton,disableRipple:!0,value:"15",children:"15%"})]}),[e.toggleButton,g]);return!d||!l?L.jsx(L.Fragment,{}):L.jsxs("div",{className:e.content,children:[L.jsxs(Sn,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[L.jsx(dt,{children:`Need extra ${l.symbol} on ${a}?`}),L.jsx(QUe,{checked:p,disabled:t.disabled,onClick:S=>{const{checked:I}=S.target;m(I),I?t.isExecutorRoute&&M(100):M(0)}})]}),L.jsx(Eb,{in:p,unmountOnExit:!0,children:L.jsx("div",{className:e.container,children:L.jsxs(Sn,{children:[!t.isExecutorRoute&&D,L.jsxs("div",{className:e.amounts,children:[L.jsxs(Sn,{alignItems:"center",flexDirection:"row",children:[L.jsx(dt,{color:r.palette.text.secondary,fontSize:14,marginRight:"4px",children:"Gas amount"}),L.jsx(md,{title:t.isExecutorRoute?`Add a small amount of ${d.symbol} to your transaction to receive ${T} on ${a}.`:"This additional gas is swapped from a percentage of your transfer amount.",children:L.jsx(V0e,{sx:{color:r.palette.text.secondary,fontSize:"16px"}})})]}),L.jsx(dt,{color:r.palette.primary.main,fontSize:14,children:T})]})]})})})]})},ZUe=20,KUe=Rn()(t=>({container:{width:"100%",maxWidth:"420px",marginBottom:"8px"},card:{borderRadius:"8px",width:"100%",maxWidth:"420px"},cardSelected:{backgroundColor:t.palette.input.fillTreatment?b0(t.palette.primary.main).alpha(.05).hexa():t.palette.card.background,borderColor:t.palette.primary.main},cardHeader:{padding:"20px 20px 0px"},cardContent:{marginTop:"18px",padding:"0px 20px 20px"},errorIcon:{color:t.palette.error.main,height:"34px",width:"34px",marginRight:"24px"},fastestBadge:{width:"14px",height:"14px",position:"relative",top:"2px",marginRight:"4px",fill:t.palette.primary.main},cheapestBadge:{width:"12px",height:"12px",position:"relative",top:"1px",marginRight:"3px",fill:t.palette.primary.main},messageContainer:{padding:"12px 0px 0px"},warningIcon:{color:t.palette.warning.main,height:"34px",width:"34px",marginRight:"12px"},disabled:{opacity:"0.6",cursor:"default",pointerEvents:"none"}})),XUe=t=>{const{classes:e}=KUe(),n=_r(),r=Te.routes.get(t.route),{toChain:i,fromChain:a,isTransactionInProgress:s}=ir(x=>x.transferInput),{getTokenPrice:c,lastTokenPriceUpdate:l}=Zo(),{quote:d,isSelected:p}=t,m=d==null?void 0:d.destinationNativeGas,{sourceToken:g,destToken:M}=HM(),{disabled:C,showGasSlider:T}=PUe({destChain:i,destToken:M==null?void 0:M.key,route:t.route,isTransactionInProgress:s}),[D,S,I]=G.useMemo(()=>{if(!(d!=null&&d.relayFee))return[void 0,!1,void 0];const x=Fo(d.relayFee.amount),E=Te.tokens.get(d.relayFee.token),v=e6(c,x,E);return v===void 0?[void 0,!1,void 0]:[v,v>ZUe,E]},[c,d==null?void 0:d.relayFee]),N=G.useMemo(()=>{if(!r.AUTOMATIC_DEPOSIT)return L.jsxs(L.Fragment,{children:["You pay gas on ",i]});if(!d||!D||!I)return L.jsx(L.Fragment,{});const x=MB(D);let E=`${y0(ca(d.relayFee.amount,6))} ${I.display} (${x})`;return(t.route.startsWith("MayanSwap")||t.route.endsWith("ExecutorRoute"))&&(E=x),L.jsxs(Sn,{direction:"row",justifyContent:"space-between",children:[L.jsx(dt,{color:n.palette.text.secondary,component:"div",fontSize:"14px",lineHeight:"14px",children:"Network cost"}),L.jsx(dt,{color:n.palette.text.primary,component:"div",fontSize:"14px",lineHeight:"14px",children:E})]})},[i,D,I,t.route,d,r.AUTOMATIC_DEPOSIT,n.palette.text.primary,n.palette.text.secondary]),B=G.useMemo(()=>{if(!i||t.destinationGasDrop===void 0||gn(t.destinationGasDrop)===0n)return L.jsx(L.Fragment,{});const x=Te.chains[i],E=Te.tokens.getGasToken(i);if(!x||!E)return L.jsx(L.Fragment,{});const v=S1(c,t.destinationGasDrop,E),f=y0(ca(t.destinationGasDrop,6)),A=v?` (${v})`:"";return L.jsxs(Sn,{direction:"row",justifyContent:"space-between",children:[L.jsx(dt,{color:n.palette.text.secondary,component:"div",fontSize:"14px",lineHeight:"14px",children:"Additional gas"}),L.jsx(dt,{color:n.palette.text.primary,component:"div",fontSize:"14px",lineHeight:"14px",children:`${f} ${E.symbol}${A}`})]})},[i,l,t.destinationGasDrop,c,l,n.palette.text.secondary,n.palette.text.primary]),k=G.useMemo(()=>L.jsxs(Sn,{direction:"row",justifyContent:"space-between",children:[L.jsx(dt,{color:n.palette.text.secondary,component:"div",fontSize:"14px",lineHeight:"14px",children:`Time to ${i}`}),L.jsx(dt,{component:"div",fontSize:"14px",lineHeight:"14px",sx:{color:d!=null&&d.eta&&d.eta<60*1e3?n.palette.success.main:n.palette.text.primary},children:d!=null&&d.eta?Jte(d.eta):"N/A"})]}),[i,d==null?void 0:d.eta,n.palette.success.main,n.palette.text.primary,n.palette.text.secondary]),O=G.useMemo(()=>t.route?!r.AUTOMATIC_DEPOSIT:!1,[t.route,r.AUTOMATIC_DEPOSIT]),z=G.useMemo(()=>L.jsx($g,{flexItem:!0,sx:{marginTop:"24px"}}),[]),_=G.useMemo(()=>t.error?L.jsxs(L.Fragment,{children:[z,L.jsxs(Sn,{className:e.messageContainer,direction:"row",alignItems:"center",children:[L.jsx(UUe,{className:e.errorIcon}),L.jsx(dt,{color:n.palette.error.main,fontSize:"14px",lineHeight:"18px",children:t.error})]})]}):null,[e.errorIcon,e.messageContainer,z,t.error,n.palette.error.main]),F=G.useMemo(()=>{const x=[];O&&x.push(L.jsxs("div",{children:[z,L.jsxs(Sn,{className:e.messageContainer,direction:"row",alignItems:"center",children:[L.jsx(hE,{className:e.warningIcon}),L.jsxs(Sn,{children:[L.jsx(dt,{color:n.palette.warning.main,fontSize:14,lineHeight:"18px",children:"This transfer requires two transactions."}),L.jsx(dt,{color:n.palette.text.secondary,fontSize:14,lineHeight:"18px",children:"You will need to make two wallet approvals and have gas on the destination chain."})]})]})]},"ManualTransactionWarning"));for(const E of(d==null?void 0:d.warnings)||[])if(E.type==="DestinationCapacityWarning"&&E.delayDurationSec){const v=DCe(E.delayDurationSec);x.push(L.jsxs("div",{children:[z,L.jsxs(Sn,{className:e.messageContainer,direction:"row",alignItems:"center",children:[L.jsx(hE,{className:e.warningIcon}),L.jsx(dt,{color:n.palette.warning.main,fontSize:14,lineHeight:"18px",children:`Your transfer to ${i} may be delayed due to rate limits set by ${M.display}. If your transfer is delayed, you will need to return after ${v} to complete the transfer. Please consider this before proceeding.`})]})]},`${E.type}-${E.delayDurationSec}`))}return S&&x.push(L.jsxs("div",{children:[z,L.jsxs(Sn,{className:e.messageContainer,direction:"row",alignItems:"center",children:[L.jsx(hE,{className:e.warningIcon}),L.jsxs(Sn,{children:[L.jsx(dt,{color:n.palette.warning.main,fontSize:14,lineHeight:"18px",children:"Output amount is much lower than input amount."}),L.jsx(dt,{color:n.palette.text.secondary,fontSize:14,lineHeight:"18px",children:"Double check before proceeding."})]})]})]},"HighFee")),x},[O,S,z,e.warningIcon,e.messageContainer,n.palette.warning.main,n.palette.text.secondary,d==null?void 0:d.warnings,M,i]),R=G.useMemo(()=>g?t.route==="AutomaticNtt"&&(g==null?void 0:g.symbol)==="wstETH"&&(a==="Ethereum"&&i==="Bsc"||a==="Bsc"&&i==="Ethereum")?"via NTT: Wormhole + Axelar":r.rc.meta.provider?`via ${r.rc.meta.provider}`:"":"",[t.route,r,a,g,i]),w=G.useMemo(()=>d?Fo(d==null?void 0:d.destinationToken.amount):void 0,[d]),o=G.useMemo(()=>{if(d)return y0(ca(d.destinationToken.amount,6))},[d]),u=G.useMemo(()=>{if(t.error)return L.jsx(dt,{color:"error",children:"Route is unavailable"});if(w===void 0||!M)return null;const x=S?n.palette.warning.main:n.palette.text.primary;return L.jsxs(dt,{fontSize:"18px",lineHeight:"18px",color:x,component:"div",marginBottom:"6px",children:[o," ",M.symbol]})},[t.error,w,o,M,S,n.palette.warning.main,n.palette.text.primary]),h=G.useMemo(()=>{if(t.error||!i||!M||w===void 0)return null;const x=S1(c,w,M);return L.jsx(dt,{fontSize:"14px",lineHeight:"14px",color:n.palette.text.secondary,component:"div",children:`${x} ${R}`})},[i,M,c,l,t.error,R,w,n.palette.text.secondary]),b=G.useMemo(()=>p||typeof t.onSelect!="function"?"default":t.error?"not-allowed":"pointer",[t.error,p,t.onSelect]),y=G.useMemo(()=>t.isFastest?L.jsxs(L.Fragment,{children:[L.jsx(HUe,{className:e.fastestBadge}),t.isOnlyChoice?"Fast":"Fastest"]}):t.isCheapest&&!t.isOnlyChoice?L.jsxs(L.Fragment,{children:[L.jsx(WUe,{className:e.cheapestBadge})," Cheapest"]}):null,[t.isFastest,t.isCheapest,t.isOnlyChoice,e.fastestBadge,e.cheapestBadge]);return t.route?L.jsx("div",{className:e.container,"data-testid":`route-${t.route}${p?"-selected":""}`,children:L.jsx(Sl,{className:ro([e.card,p&&e.cardSelected,s&&e.disabled]),sx:{border:"1px solid",borderColor:p?n.palette.primary.main:"transparent",opacity:1},children:L.jsxs(ij,{disabled:s||typeof t.onSelect!="function"||t.error!==void 0,disableTouchRipple:!0,sx:{cursor:b},onClick:()=>{var x;(x=t.onSelect)==null||x.call(t,t.route)},children:[L.jsx(s0e,{avatar:L.jsx(Lj,{icon:M==null?void 0:M.icon}),className:e.cardHeader,title:u,subheader:h,action:y}),L.jsxs(hf,{className:e.cardContent,children:[L.jsxs(Sn,{gap:"14px",children:[N,B,k]}),_,F]}),T&&L.jsxs(L.Fragment,{children:[L.jsx($g,{flexItem:!0,sx:{margin:"0px 16px"}}),L.jsx(Eb,{in:T,children:L.jsx(qUe,{destinationGasDrop:m||Sr(0n,8),disabled:C,isExecutorRoute:t.route.toLowerCase().endsWith("executorroute")})})]})]})})},t.route):L.jsx(L.Fragment,{})},JUe=Rn()(t=>({otherRoutesToggle:{display:"block",width:"100%",textAlign:"center",fontSize:14,color:t.palette.text.secondary,textDecoration:"none",cursor:"pointer","&:hover":{textDecoration:"underline"}}})),eHe=({...t})=>{const{classes:e}=JUe(),[n,r]=G.useState(!1),i=G.useMemo(()=>t.routes.filter(l=>t.quotes[l]!==void 0),[t.routes,t.quotes]),a=G.useMemo(()=>{if(n)return i;const l=i.find(d=>d===t.selectedRoute);return l?[l]:i.slice(0,1)},[n,i,t.selectedRoute]),s=G.useMemo(()=>i.reduce((l,d)=>{const p=t.quotes[d];return!p||!p.success?l:p.eta!==void 0&&p.eta<l.eta&&p.eta<6e4?{name:d,eta:p.eta}:l},{name:"",eta:1/0}),[i,t.quotes]),c=G.useMemo(()=>i.reduce((l,d)=>{const p=t.quotes[d],m=Te.routes.get(d);if(!p||!p.success||!m.AUTOMATIC_DEPOSIT)return l;const g=BigInt(p.destinationToken.amount.amount);return g>l.amountOut?{name:d,amountOut:g}:l},{name:"",amountOut:0n}),[i,t.quotes]);return L.jsxs(L.Fragment,{children:[t.isLoading||a.length>0?L.jsxs(ci,{sx:{display:"flex",width:"100%"},children:[L.jsx(dt,{align:"left",fontSize:16,paddingBottom:0,marginTop:"8px",marginBottom:0,width:"100%",textAlign:"left",children:"Routes"}),t.isLoading?L.jsx(_0,{sx:{alignSelf:"flex-end"},size:20}):null]}):null,t.isLoading&&a.length===0?L.jsx(pFe,{variant:"rounded",height:153,width:"100%"}):a.map((l,d)=>{var C;const p=l===t.selectedRoute,m=t.quotes[l],g=m!=null&&m.success?m:void 0,M=(m==null?void 0:m.success)===!1?((C=m==null?void 0:m.error)==null?void 0:C.message)??`Error while getting a quote for ${l}.`:void 0;return L.jsx(XUe,{route:l,error:M,isSelected:p&&!M,isFastest:l===s.name,isCheapest:l===c.name,isOnlyChoice:i.length===1,onSelect:t.onRouteChange,quote:g},l)}),i.length>1&&L.jsx(Nb,{className:e.otherRoutesToggle,"data-testid":"other-routes-toggle",onClick:()=>r(l=>!l),children:n?"Hide other routes":"View other routes"})]})};var jj={},tHe=pa;Object.defineProperty(jj,"__esModule",{value:!0});var Q0e=jj.default=void 0,nHe=tHe(ps()),rHe=L;Q0e=jj.default=(0,nHe.default)((0,rHe.jsx)("path",{d:"M16 17.01V10h-2v7.01h-3L15 21l4-3.99zM9 3 5 6.99h3V14h2V6.99h3z"}),"SwapVert");const iHe=Rn()(()=>({swapButton:{display:"block",position:"absolute",bottom:-44,left:"calc(50% - 20px)",width:40,height:40,zIndex:1}}));function aHe(){var d,p;const t=V0(),[e,n]=G.useState(""),{isTransactionInProgress:r,fromChain:i,toChain:a}=ir(m=>m.transferInput),s=!r&&i&&!((d=Te.chains[i])!=null&&d.disabledAsDestination)&&a&&!((p=Te.chains[a])!=null&&p.disabledAsSource),c=G.useCallback(()=>{!s||r||(n(m=>m==="spinRight"?"spinLeft":"spinRight"),t(tNe()),t(pCe()),t(PB("")))},[s,r,t]),{classes:l}=iHe();return L.jsx(Sb,{className:l.swapButton,sx:{animation:`${e} 0.3s linear 1`,"@keyframes spinRight":{"0%":{transform:"rotate(-180deg)"},"100%":{transform:"rotate(0deg)"}},"@keyframes spinLeft":{"0%":{transform:"rotate(180deg)"},"100%":{transform:"rotate(0deg)"}}},onClick:c,disabled:!s,children:L.jsx(Q0e,{})})}var q0e={exports:{}};(function(t,e){(function(n,r){t.exports=r(G)})(typeof self<"u"?self:Kt,n=>(()=>{var r={155:S=>{S.exports=n}},i={};function a(S){var I=i[S];if(I!==void 0)return I.exports;var N=i[S]={exports:{}};return r[S](N,N.exports,a),N.exports}a.d=(S,I)=>{for(var N in I)a.o(I,N)&&!a.o(S,N)&&Object.defineProperty(S,N,{enumerable:!0,get:I[N]})},a.o=(S,I)=>Object.prototype.hasOwnProperty.call(S,I),a.r=S=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(S,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(S,"__esModule",{value:!0})};var s={};a.r(s),a.d(s,{default:()=>D,useStopwatch:()=>C,useTime:()=>T,useTimer:()=>M});var c=a(155);class l{static expiryTimestamp(I){const N=new Date(I).getTime()>0;return N||console.warn("react-timer-hook: { useTimer } Invalid expiryTimestamp settings",I),N}static onExpire(I){const N=I&&typeof I=="function";return I&&!N&&console.warn("react-timer-hook: { useTimer } Invalid onExpire settings function",I),N}}class d{static getTimeFromSeconds(I){const N=Math.ceil(I),B=Math.floor(N/86400),k=Math.floor(N%86400/3600),O=Math.floor(N%3600/60);return{totalSeconds:N,seconds:Math.floor(N%60),minutes:O,hours:k,days:B}}static getSecondsFromExpiry(I,N){const B=I-new Date().getTime();if(B>0){const k=B/1e3;return N?Math.round(k):k}return 0}static getSecondsFromPrevTime(I,N){const B=new Date().getTime()-I;if(B>0){const k=B/1e3;return N?Math.round(k):k}return 0}static getSecondsFromTimeNow(){const I=new Date;return I.getTime()/1e3-60*I.getTimezoneOffset()}static getFormattedTimeFromSeconds(I,N){const{seconds:B,minutes:k,hours:O}=d.getTimeFromSeconds(I);let z="",_=O;return N==="12-hour"&&(z=O>=12?"pm":"am",_=O%12),{seconds:B,minutes:k,hours:_,ampm:z}}}function p(S,I){const N=(0,c.useRef)();(0,c.useEffect)(()=>{N.current=S}),(0,c.useEffect)(()=>{if(!I)return()=>{};const B=setInterval(()=>{N.current&&N.current()},I);return()=>clearInterval(B)},[I])}const m=1e3;function g(S){if(!l.expiryTimestamp(S))return null;const I=d.getSecondsFromExpiry(S),N=Math.floor(1e3*(I-Math.floor(I)));return N>0?N:m}function M(){let{expiryTimestamp:S,onExpire:I,autoStart:N=!0}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const[B,k]=(0,c.useState)(S),[O,z]=(0,c.useState)(d.getSecondsFromExpiry(B)),[_,F]=(0,c.useState)(N),[R,w]=(0,c.useState)(N),[o,u]=(0,c.useState)(g(B)),h=(0,c.useCallback)(()=>{l.onExpire(I)&&I(),F(!1),u(null)},[I]),b=(0,c.useCallback)(()=>{F(!1)},[]),y=(0,c.useCallback)(function(v){let f=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];u(g(v)),w(f),F(f),k(v),z(d.getSecondsFromExpiry(v))},[]),x=(0,c.useCallback)(()=>{const v=new Date;v.setMilliseconds(v.getMilliseconds()+1e3*O),y(v)},[O,y]),E=(0,c.useCallback)(()=>{R?(z(d.getSecondsFromExpiry(B)),F(!0)):x()},[B,R,x]);return p(()=>{o!==m&&u(m);const v=d.getSecondsFromExpiry(B);z(v),v<=0&&h()},_?o:null),{...d.getTimeFromSeconds(O),start:E,pause:b,resume:x,restart:y,isRunning:_}}function C(){let{autoStart:S,offsetTimestamp:I}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const[N,B]=(0,c.useState)(d.getSecondsFromExpiry(I,!0)||0),[k,O]=(0,c.useState)(new Date),[z,_]=(0,c.useState)(N+d.getSecondsFromPrevTime(k||0,!0)),[F,R]=(0,c.useState)(S);p(()=>{_(N+d.getSecondsFromPrevTime(k,!0))},F?1e3:null);const w=(0,c.useCallback)(()=>{const h=new Date;O(h),R(!0),_(N+d.getSecondsFromPrevTime(h,!0))},[N]),o=(0,c.useCallback)(()=>{B(z),R(!1)},[z]),u=(0,c.useCallback)(function(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,b=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];const y=d.getSecondsFromExpiry(h,!0)||0,x=new Date;O(x),B(y),R(b),_(y+d.getSecondsFromPrevTime(x,!0))},[]);return{...d.getTimeFromSeconds(z),start:w,pause:o,reset:u,isRunning:F}}function T(){let{format:S}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const[I,N]=(0,c.useState)(d.getSecondsFromTimeNow());return p(()=>{N(d.getSecondsFromTimeNow())},1e3),{...d.getFormattedTimeFromSeconds(I,S)}}function D(S){if((0,c.useEffect)(()=>{console.warn("react-timer-hook: default export useTimer is deprecated, use named exports { useTimer, useStopwatch, useTime } instead")},[]),S.expiryTimestamp){const N=M(S);return{...N,startTimer:N.start,stopTimer:N.pause,resetTimer:()=>{}}}const I=C(S);return{...I,startTimer:I.start,stopTimer:I.pause,resetTimer:I.reset}}return s})())})(q0e);var Z0e=q0e.exports;const zY=60*1e3,sHe=120*1e3,K0e=t=>{const[e,n]=G.useState(!1),[r,i]=G.useState(!1),[a,s]=G.useState(),{eta:c,route:l}=t;return G.useEffect(()=>{t.receipt&&s(t.receipt)},[t.receipt]),G.useEffect(()=>{let d=!0;return(async()=>{if(!l||!a)return;const m=Te.routes.get(l);if(!m)return;const g=T=>T.valueOf()-new Date().valueOf(),M=await ns(),C=new m.rc(M);for(;d&&!nT(a);){if(c!==void 0){const D=g(c);D>zY&&await lI(D-zY)}try{for await(const D of C.track(a,sHe)){if(!d)break;if(D.state!==a.state){if(s(D),nT(D)){n(!0);break}!m.AUTOMATIC_DEPOSIT&&D.state>=zt.Attested&&i(!0)}}}catch(D){console.error("Error tracking transfer:",D)}let T=5e3;c!==void 0&&m.AUTOMATIC_DEPOSIT&&g(c)<1e4&&(T=1e3),await lI(T)}})(),()=>{d=!1}},[c,a,l]),{isCompleted:e,isReadyToClaim:r,receipt:a}},oHe=ba(L.jsx("path",{d:"M4 12H20M20 12L13 5M20 12L13 19",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),"ArrowRight"),X0e=ba(L.jsxs("svg",{width:"107",height:"106",viewBox:"0 0 107 106",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[L.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M53.2079 105.5C82.2486 105.5 105.791 81.9949 105.791 53C105.791 24.0051 82.2486 0.5 53.2079 0.5C24.1672 0.5 0.625 24.0051 0.625 53C0.625 81.9949 24.1672 105.5 53.2079 105.5ZM53.207 102.097C80.3654 102.097 102.382 80.1157 102.382 53.0001C102.382 25.8844 80.3654 3.90283 53.207 3.90283C26.0485 3.90283 4.03223 25.8844 4.03223 53.0001C4.03223 80.1157 26.0485 102.097 53.207 102.097Z",fill:"currentColor"}),L.jsx("path",{d:"M46.8789 68L32.628906 53.75L36.19141 50.1875L46.8789 60.875L69.8164 37.9375L73.3789 41.5L46.8789 68Z",fill:"currentColor"})]}),"Alert"),cHe=Rn()(t=>({alertBanner:{marginTop:"12px"},arrowIcon:{fontSize:"16px",margin:"0 4px"},card:{width:"100%",boxShadow:`0px 0px 3.5px 0px ${t.palette.primary.main}`},cardContent:{padding:"16px 20px",":last-child":{padding:"16px 20px"}},cardActionArea:{height:"72px"},chainIcon:{border:`2px solid ${t.palette.input.background}`,borderRadius:"6px"},completedIcon:{color:t.palette.success.main,height:"24px",width:"24px"},container:{width:"100%",maxWidth:"420px"},progressBar:{borderRadius:"4px",marginTop:"8px"}})),lHe=t=>{var v,f;const[e,n]=G.useState(""),[r,i]=G.useState(!1),{classes:a}=cHe(),s=V0(),c=G.useContext(jd),l=_r(),{data:d}=t,{receipt:p,route:m,timestamp:g,txDetails:M,txHash:C}=d,{amount:T,eta:D,fromChain:S,toChain:I,token:N}=M||{},B=Te.tokens.get(N),{seconds:k,minutes:O,totalSeconds:z,isRunning:_,restart:F}=Z0e.useTimer({expiryTimestamp:new Date,autoStart:!1,onExpire:()=>i(!0)}),R=G.useMemo(()=>{if(D&&g)return new Date(g+D)},[D,g]),{isCompleted:w,isReadyToClaim:o,receipt:u}=K0e({eta:R,receipt:p,route:m});G.useEffect(()=>{w&&C&&N0e(C)},[w,C]);const h=u||p,b=G.useMemo(()=>{if(!D||!g)return 0;const A=Date.now()-g;return D<A?0:D-A},[D,g,z]),y=G.useMemo(()=>o||d.isReadyToClaim?"Ready to claim...":r||b===0?"Wrapping up...":_?xj(O,k):L.jsx(_0,{size:16}),[r,b,o,_,O,k,d]),x=G.useMemo(()=>!D||b>D||!r&&b===0?0:r?100:(D-b)/D*100,[D,r,b]);G.useEffect(()=>{!_&&!w&&b&&F(new Date(Date.now()+b),!0)},[b,w,_,F]);const E=G.useCallback(async()=>{if(n(""),!h){n("No receipt found for this transaction");return}try{const A=await ns(),j=new(Te.routes.get(m)).rc(A);s(iq(g)),s(SN(M)),s(rq(!0)),s(TN(m)),s(RB(M.toChain)),s(to("redeem")),c.setReceipt(h),c.setRoute(j)}catch{n(`Error resuming transaction: ${M.sendTx}`)}},[s,h,m,c,g,M]);return!d||!B?L.jsx(L.Fragment,{}):L.jsxs("div",{className:a.container,children:[L.jsx(Sl,{className:a.card,children:L.jsx(ij,{disableTouchRipple:!0,disabled:t.disabled||!M,className:a.cardActionArea,onClick:E,children:L.jsxs(hf,{className:a.cardContent,children:[L.jsxs(Sn,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[L.jsx(dt,{display:"flex",justifyContent:"space-between",children:w?L.jsx(X0e,{className:a.completedIcon}):y}),L.jsxs(Sn,{direction:"row",alignItems:"center",children:[L.jsx(dt,{fontSize:14,marginRight:"8px",children:`${y0(ca(T,6))} ${B.symbol}`}),L.jsx(ci,{className:a.chainIcon,children:L.jsx(yd,{icon:(v=Te.chains[S])==null?void 0:v.icon,height:24})}),L.jsx(oHe,{className:a.arrowIcon}),L.jsx(ci,{className:a.chainIcon,children:L.jsx(yd,{icon:(f=Te.chains[I])==null?void 0:f.icon,height:24})})]})]}),!w&&L.jsx(L_e,{className:a.progressBar,variant:"determinate",value:x})]})})}),L.jsx(jb,{className:a.alertBanner,color:e?l.palette.error.light:l.palette.grey.A400,content:e,error:!!e,show:!!e})]})},uHe=Rn()(t=>({container:{width:"100%",maxWidth:"420px"},card:{width:"100%",boxShadow:`0px 0px 3.5px 0px ${t.palette.primary.main}`},cardHeader:{paddingBottom:0},spacer:{display:"flex",flexDirection:"column",gap:"16px",marginBottom:"16px",alignItems:"center",justifyContent:"center",width:"100%"},txHistoryHeader:{width:"100%",display:"flex",alignItems:"center"}})),fHe=t=>{const{classes:e}=uHe(),n=_r(),[r,i]=G.useState();return G.useEffect(()=>{const a=WM(),s=a==null?void 0:a.filter(c=>{var l,d;if(!((l=c==null?void 0:c.txDetails)!=null&&l.token))return!1;try{return!!Te.tokens.get((d=c==null?void 0:c.txDetails)==null?void 0:d.token)}catch(p){return console.log("Error while parsing token from local storage (in-progress widget):",p),!1}});i(s)},[]),!r||r.length===0?L.jsx(L.Fragment,{}):L.jsxs("div",{className:e.spacer,children:[L.jsx("div",{className:e.txHistoryHeader,children:L.jsx(dt,{color:n.palette.text.secondary,fontSize:14,children:"Transactions in progress"})}),r.map(a=>L.jsx(lHe,{data:a,disabled:t.disabled},a.txHash))]})},dHe=({sendingWallet:t,receivingWallet:e,sourceChain:n,destChain:r,routes:i})=>G.useMemo(()=>{if(i.length===1&&i[0]==="ManualCCTP"){const s=["Petra","Pontem Wallet","Nightly","Continue with Google","Continue with Apple"];if(n==="Aptos"&&!s.includes(t.name)||r==="Aptos"&&!s.includes(e.name))return{isCompatible:!1,warning:"Please use a compatible wallet for this route."}}return{isCompatible:!0}},[t,e,n,r,i]),hHe=Rn()(t=>({assetPickerContainer:{width:"100%",position:"relative"},assetPickerTitle:{color:t.palette.text.secondary,display:"flex",minHeight:"40px",alignItems:"center",justifyContent:"space-between"},bridgeContent:{margin:"auto",maxWidth:"420px"},bridgeHeader:{width:"100%",minHeight:"28px",display:"flex",alignItems:"center"},doneIcon:{fontSize:"14px",color:t.palette.success.main},confirmTransaction:{padding:"8px 16px",borderRadius:"8px",height:"48px",margin:"auto",maxWidth:"420px",width:"100%"},copyIcon:{fontSize:"14px"},ctaContainer:{marginTop:"8px",width:"100%"},spacer:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center",justifyContent:"center",width:"100%"}})),pHe=()=>{var Se,st;const{classes:t}=hHe(),e=_r(),n=V0(),{lastTokenCacheUpdate:r}=Zo(),[i,a]=G.useState(!1),s=ev(e.breakpoints.down("sm")),{sending:c,receiving:l}=ir(ve=>ve.wallet),{fromChain:d,toChain:p,route:m,preferredRouteName:g,amount:M,toNativeToken:C,isTransactionInProgress:T,validations:D}=ir(ve=>({...ve.transferInput,...ve.relay})),{sourceToken:S,destToken:I}=HM(),{allSupportedRoutes:N,sortedRoutes:B,sortedRoutesWithQuotes:k,quotes:O,isFetching:z}=IRe({amount:M,fromChain:d,toChain:p,preferredRouteName:g,sourceToken:S,destToken:I,toNativeToken:C,receivingWallet:l}),{isFetching:_,supportedDestTokens:F}=CRe({sourceChain:d,destChain:p,sourceToken:S}),{error:R,errorInternal:w,onConfirm:o}=QRe({quotes:O});G.useEffect(()=>{if(k.length===0)n(em(""));else{const ve=k.find(ye=>ye.route===g),Ne=m??(ve==null?void 0:ve.route)??k[0].route,lt=k.findIndex(ye=>ye.route===Ne)>-1;if(lt||n(em("")),!Ne||m&<)return;const Me=k==null?void 0:k.find(ye=>ye.route===Ne);Me&&n(em(Me.route))}},[g,m,k]),Qte(),$Re();const u=G.useMemo(()=>S?[S]:[],[S]),{balances:h,isFetching:b}=j0e(c,d,u),y=NRe({balance:S?(Se=h[S.key])==null?void 0:Se.balance:null,routes:N,quotes:O,tokenSymbol:(S==null?void 0:S.symbol)??"",disabled:!c.address||!d||!S}),x=G.useMemo(()=>L0e(D),[D]),E=G.useMemo(()=>Te.routes.allSupportedChains(),[Te.chains]),v=G.useMemo(()=>d?Te.tokens.getAllForChain(d):[],[d,r]),f=G.useMemo(()=>Te.chainsArr.filter(ve=>ve.key!==p&&!ve.disabledAsSource&&E.includes(ve.key)),[p,E]),A=G.useMemo(()=>Te.chainsArr.filter(ve=>ve.key!==d&&!ve.disabledAsDestination&&E.includes(ve.key)),[d,E]),j=G.useMemo(()=>{const ve={text:"",align:"left"};let Ne;return typeof Te.ui.pageHeader=="string"?Ne={...ve,text:Te.ui.pageHeader}:Ne={...ve,...Te.ui.pageHeader},L.jsx(Bb,{title:Ne.text,align:Ne.align})},[]),P=G.useMemo(()=>L.jsxs("div",{className:t.assetPickerContainer,children:[L.jsxs("div",{className:t.assetPickerTitle,children:[L.jsx(dt,{variant:"body2",children:"From"}),L.jsx(FY,{type:si.SENDING})]}),L.jsx(OY,{chain:d,chainList:f,token:S,tokenList:v,setChain:ve=>{VDe(n,ve,c),n(KDe())},setToken:ve=>{n(ZDe(ve.tuple))},wallet:c,isSource:!0,isTransactionInProgress:T,dataTestId:"source-asset-picker"}),L.jsx(aHe,{})]}),[t.assetPickerContainer,t.assetPickerTitle,d,f,S,v,r,T,c,n]),$=G.useMemo(()=>L.jsxs("div",{className:t.assetPickerContainer,children:[L.jsxs("div",{className:t.assetPickerTitle,children:[L.jsx(dt,{variant:"body2",children:"To"}),L.jsx(FY,{type:si.RECEIVING})]}),L.jsx(OY,{chain:p,chainList:A,token:I,sourceToken:S,tokenList:F,isFetching:F.length===0&&_,setChain:ve=>{QDe(n,ve,l),n(XDe())},setToken:ve=>{n(Nre(ve.tuple))},wallet:l,isSource:!1,isTransactionInProgress:T,dataTestId:"dest-asset-picker"})]}),[t.assetPickerContainer,t.assetPickerTitle,p,A,I,S,F,_,T,l,n]),K=G.useMemo(()=>{const ve=!(c!=null&&c.address)||T;return L.jsxs("div",{className:t.bridgeHeader,children:[L.jsx(YB,{align:"left",text:Te.ui.title??"Wormhole Connect",size:18,testId:"bridge-view-header"}),L.jsx(md,{title:c!=null&&c.address?"":"No connected wallets found",children:L.jsx("span",{children:L.jsx(Sb,{sx:{padding:0},disabled:ve,onClick:()=>n(to("history")),children:L.jsx(A0e,{})})})})]})},[t.bridgeHeader,n,T,c==null?void 0:c.address]),Q=G.useMemo(()=>c!=null&&c.address&&(l!=null&&l.address)?null:c!=null&&c.address&&!(l!=null&&l.address)?L.jsx(IY,{disabled:!p,side:"destination",type:si.RECEIVING}):L.jsx(IY,{disabled:!d,side:"source",type:si.SENDING}),[d,p,c,l]),{isCompatible:H,warning:V}=dHe({sendingWallet:c,receivingWallet:l,sourceChain:d,destChain:p,routes:B}),J=G.useMemo(()=>R?L.jsxs(ci,{sx:{marginBottom:2},children:[L.jsx(jb,{error:!0,content:R,show:!0,testId:"send-error-message"}),w&&w.message&&Te.ui.getHelpUrl?L.jsxs(dt,{fontSize:14,sx:{marginTop:1},children:["Having trouble?"," ",L.jsxs("a",{href:"#",onClick:()=>{Kte(w.message),a(!0),setTimeout(()=>a(!1),3e3)},children:["Copy the error logs"," ",i?L.jsx(w0e,{className:t.doneIcon}):L.jsx(x0e,{className:t.copyIcon})]})," and ",L.jsx("a",{href:Te.ui.getHelpUrl,target:"_blank",children:"ask for help"}),"."]}):null]}):null,[t.copyIcon,t.doneIcon,i,R,w]),ae=!!y.error,te=M&&Fo(M)>0,Z=c.address&&l.address,ce=!d||!S||!p||!I||!Z||!H||!m||!x||z||!te||T||ae,De=G.useMemo(()=>L.jsx(Of,{disabled:ce,"data-testid":"confirm-transaction-button",variant:"primary",className:t.confirmTransaction,onClick:()=>o(),children:T?L.jsxs(dt,{display:"flex",alignItems:"center",gap:1,textTransform:"none",children:[L.jsx(_0,{size:16,sx:{color:e.palette.primary.contrastText}}),s?"Preparing":"Preparing transaction"]}):!T&&z?L.jsxs(dt,{display:"flex",alignItems:"center",gap:1,textTransform:"none",children:[L.jsx(_0,{color:"secondary",size:16}),s?"Refreshing":"Refreshing quote"]}):L.jsx(dt,{textTransform:"none",children:s?"Confirm":"Confirm transaction"})}),[ce,t.confirmTransaction,T,e.palette.primary.contrastText,s,z,o]),pe=!d||!S?"Please select a source asset":!p||!I?"Please select a destination asset":te?z?"Loading quotes...":m?"":"Please select a quote":"Please enter an amount";return L.jsxs("div",{className:ro([t.bridgeContent,t.spacer]),"data-testid":"bridge-view",children:[j,Te.ui.showInProgressWidget&&L.jsx(fHe,{disabled:T}),K,P,$,L.jsx(RUe,{sourceChain:d,supportedSourceTokens:v,tokenBalance:S?(st=h[S.key])==null?void 0:st.balance:null,isFetchingTokenBalance:b,error:y.error,warning:y.warning||V}),te&&L.jsx(eHe,{routes:B,selectedRoute:m,onRouteChange:ve=>{n(em(ve))},quotes:O,isLoading:z||b}),J,L.jsx("span",{className:t.ctaContainer,children:Z?L.jsx(md,{title:pe,children:L.jsx("span",{children:De})}):Q}),L.jsx(Aj,{color:e.palette.text.primary}),L.jsx(pj,{})]})};var kj={},bHe=pa;Object.defineProperty(kj,"__esModule",{value:!0});var J0e=kj.default=void 0,mHe=bHe(ps()),yHe=L;J0e=kj.default=(0,mHe.default)((0,yHe.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");const gHe=Rn()(t=>({addressLink:{display:"inline-flex",alignItems:"center",overflow:"hidden",color:t.palette.text.primary,opacity:.6}})),my=({url:t,text:e})=>{const{classes:n}=gHe();return t&&e?L.jsxs(Nb,{onClick:r=>r.stopPropagation(),className:n.addressLink,href:t,rel:"noreferrer noopener",target:"_blank",children:[e,L.jsx(Nj,{sx:{height:"10px",width:"10px",marginLeft:"2px"}})]}):null},vHe=Rn()(t=>({container:{width:"100%",maxWidth:"420px",backgroundColor:t.palette.input.background},card:{width:"100%",backgroundColor:t.palette.input.background}})),MHe=()=>{const{classes:t}=vHe(),e=_r(),n=Y0.useContext(jd),{sendTx:r,sender:i,amount:a,recipient:s,toChain:c,fromChain:l,token:d,receivedToken:p,receiveAmount:m,receiveNativeAmount:g,relayerFee:M,eta:C}=ir(b=>b.redeem.txData),{route:T}=ir(b=>b.redeem),D=Te.tokens.get(d),S=Te.tokens.get(p),{getTokenPrice:I,isFetchingTokenPrices:N,lastTokenPriceUpdate:B}=Zo(),k=G.useMemo(()=>L.jsx(dt,{component:"span",padding:"0px 8px",children:"·"}),[]),O=G.useMemo(()=>{if(!D||!l)return L.jsx(L.Fragment,{});const b=Te.tokens.get(d),y=Te.chains[l],x=S1(I,a,b),E=i?U6(i):"",v=i?Y3(l,i,"wallet"):"",f=y0(ca(a,6));return L.jsxs(Sn,{alignItems:"center",direction:"row",justifyContent:"flex-start",children:[L.jsx(hp,{chainConfig:y,token:b}),L.jsxs(Sn,{direction:"column",marginLeft:"12px",children:[L.jsxs(dt,{fontSize:16,children:[f," ",D.symbol]}),L.jsx(dt,{color:e.palette.text.secondary,fontSize:14,children:N?L.jsx(_0,{size:14}):L.jsxs(L.Fragment,{children:[x,x?k:null,y.displayName,k,L.jsx(my,{url:v,text:E})]})})]})]})},[D,l,d,I,a,i,e.palette.text.secondary,N,k]),z=G.useMemo(()=>{if(!S||!c)return L.jsx(L.Fragment,{});const b=Te.chains[c],y=S1(I,m,S),x=s?U6(s):"",E=s?Y3(c,s,"wallet"):"",v=m?y0(ca(m,6)):"-";return L.jsxs(Sn,{alignItems:"center",direction:"row",justifyContent:"flex-start",children:[L.jsx(hp,{chainConfig:b,token:S}),L.jsxs(Sn,{direction:"column",marginLeft:"12px",children:[L.jsxs(dt,{fontSize:16,children:[v," ",S.symbol]}),L.jsx(dt,{color:e.palette.text.secondary,fontSize:14,children:N?L.jsx(_0,{size:14}):L.jsxs(L.Fragment,{children:[y,y?k:null,b.displayName,k,L.jsx(my,{url:E,text:x})]})})]})]})},[S,I,m,s,k,e.palette.text.secondary,c,N,B]),_=G.useMemo(()=>L.jsx(Sn,{height:"28px",borderLeft:"1px solid #8B919D",marginLeft:"16px"}),[]),F=G.useMemo(()=>{if(!M||!M.token)return L.jsx(L.Fragment,{});const b=Te.tokens.get(M.token);if(!b)return L.jsx(L.Fragment,{});const y=S1(I,M.fee,b);if(!y)return L.jsx(L.Fragment,{});let x=L.jsx(dt,{fontSize:14,children:`${D0e(M.fee.toString(),4)} ${b.symbol} (${y})`});return T!=null&&T.startsWith("MayanSwap")&&(x=L.jsx(dt,{fontSize:14,children:y})),L.jsxs(Sn,{direction:"row",justifyContent:"space-between",children:[L.jsx(dt,{color:e.palette.text.secondary,fontSize:14,children:"Network cost"}),N?L.jsx(_0,{size:14}):x]})},[M,I,T,e.palette.text.secondary,N]),R=G.useMemo(()=>{if(!p||!g||gn(g)===0n)return L.jsx(L.Fragment,{});const b=Te.chains[c];if(!b)return L.jsx(L.Fragment,{});const y=S1(I,g,Te.tokens.getGasToken(b.sdkName));return L.jsxs(Sn,{direction:"row",justifyContent:"space-between",children:[L.jsx(dt,{color:e.palette.text.secondary,fontSize:14,children:"Additional gas"}),N?L.jsx(_0,{size:14}):L.jsx(dt,{fontSize:14,children:y})]})},[g,e.palette.text.secondary,c,N,B]),w=G.useMemo(()=>{const b=n.route??T;if(!b)return null;const{name:y,url:x}=Eze(b,r);return L.jsx(Sn,{alignItems:"center",padding:"24px 12px",children:L.jsx(Nb,{display:"flex",gap:"8px",href:x,rel:"noreferrer",target:"_blank",underline:"none",children:L.jsx(dt,{color:e.palette.text.primary,fontSize:14,children:`View on ${y}`})})})},[n.route,T,r,e.palette.text.primary]),o=G.useMemo(()=>{let b=L.jsx(_0,{size:14});return C?(b=Jte(C),L.jsxs(Sn,{direction:"row",justifyContent:"space-between",children:[L.jsx(dt,{color:e.palette.text.secondary,fontSize:14,children:`Time to ${c}`}),L.jsx(dt,{fontSize:14,children:b})]})):null},[C,e.palette.text.secondary,c]),u=r?U6(r):"",h=r?Y3(l,r,"tx"):"";return L.jsx("div",{className:t.container,children:L.jsxs(Sl,{className:t.card,children:[L.jsxs(hf,{children:[L.jsxs(dt,{color:e.palette.text.secondary,marginBottom:"12px",children:["Transaction #",L.jsx(my,{url:h,text:u})]}),O,_,z,L.jsxs(Sn,{direction:"column",gap:"8px",justifyContent:"space-between",marginTop:"16px",children:[F,R,o]})]}),L.jsx($g,{flexItem:!0,sx:{margin:"0 16px",opacity:"50%"}}),w]})})},xHe=ba(L.jsx("svg",{width:"107",height:"107",viewBox:"0 0 107 107",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:L.jsx("path",{d:"M53.5 36.625V57.7188M104.125 53.5C104.125 60.1482 102.816 66.7312 100.271 72.8733C97.7273 79.0155 93.9982 84.5963 89.2973 89.2973C84.5963 93.9982 79.0155 97.7273 72.8733 100.271C66.7312 102.816 60.1482 104.125 53.5 104.125C46.8518 104.125 40.2688 102.816 34.1267 100.271C27.9845 97.7273 22.4037 93.9982 17.7027 89.2973C13.0018 84.5963 9.27274 79.0155 6.7286 72.8733C4.18445 66.7312 2.875 60.1482 2.875 53.5C2.875 40.0734 8.20869 27.1967 17.7027 17.7027C27.1967 8.20869 40.0734 2.875 53.5 2.875C66.9266 2.875 79.8032 8.20869 89.2973 17.7027C98.7913 27.1967 104.125 40.0734 104.125 53.5ZM53.5 74.5938H53.545V74.6388H53.5V74.5938Z",stroke:"currentColor",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"})}),"Alert"),wHe=ba(L.jsxs("svg",{width:"106",height:"106",viewBox:"0 0 106 106",stroke:"none",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[L.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M52.5829 105C81.6236 105 105.166 81.4949 105.166 52.5C105.166 23.5051 81.6236 0 52.5829 0C23.5422 0 0 23.5051 0 52.5C0 81.4949 23.5422 105 52.5829 105ZM52.582 101.597C79.7404 101.597 101.757 79.6157 101.757 52.5001C101.757 25.3844 79.7404 3.40283 52.582 3.40283C25.4235 3.40283 3.40723 25.3844 3.40723 52.5001C3.40723 79.6157 25.4235 101.597 52.582 101.597Z",fill:"currentColor"}),L.jsx("path",{d:"M65.7583 39.2417L39.2418 65.7582",stroke:"currentColor",strokeWidth:"4"}),L.jsx("path",{d:"M39.2417 39.2417L65.7582 65.7582",stroke:"currentColor",strokeWidth:"4"})]}),"Alert"),RY=ba(L.jsxs("svg",{width:"107",height:"106",viewBox:"0 0 107 106",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[L.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M53.2,105.5c29,0,52.6-23.5,52.6-52.5S82.2.5,53.2.5.6,24,.6,53s23.5,52.5,52.6,52.5ZM53.2,102.1c27.2,0,49.2-22,49.2-49.1S80.4,3.9,53.2,3.9,4,25.9,4,53s22,49.1,49.2,49.1Z"}),L.jsx("rect",{fill:"currentColor",x:"51",y:"28.8",width:"5",height:"42.6"}),L.jsx("rect",{fill:"currentColor",x:"48",y:"63.9",width:"25.5",height:"5",transform:"translate(-29.2 62.4) rotate(-45)"}),L.jsx("rect",{fill:"currentColor",x:"43.8",y:"53.7",width:"5",height:"25.5",transform:"translate(-33.4 52.2) rotate(-45)"})]}),"Alert"),AHe=Rn()(t=>({spacer:{display:"flex",flexDirection:"column",gap:"16px",alignItems:"center",justifyContent:"center",width:"100%"},container:{margin:"auto",maxWidth:"650px"},header:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%"},actionButton:{padding:"12px 16px",backgroundColor:t.palette.primary.main,borderRadius:"8px",margin:"auto",maxWidth:"420px",width:"100%"},backButton:{alignItems:"start",maxWidth:"420px",width:"100%"},claimButton:{backgroundColor:t.palette.warning.light,color:t.palette.warning.contrastText??t.palette.background.default,"&:hover":{backgroundColor:t.palette.warning.main}},circularProgressCircleIndeterminite:{stroke:"url(#circularGradient)",strokeDasharray:"100px, 200px",strokeLinecap:"round"},circularProgressCircleDeterminite:{strokeLinecap:"round",transitionDuration:"1s",transitionProperty:"all",transitionTimingFunction:"linear"},circularProgressRoot:{animationDuration:"1s"},errorBox:{maxWidth:"420px"},txStatusIcon:{width:"105px",height:"105px"},delayText:{maxWidth:"420px"}})),CHe=()=>{const t=V0(),e=_r(),{classes:n}=AHe(),[r,i]=G.useState(""),[a,s]=G.useState(!1),[c,l]=G.useState(!1),[d,p]=G.useState(!1),[m,g]=G.useState(!1),M=Y0.useContext(jd),{sourceToken:C,destToken:T}=LRe();Qte();const{route:D,timestamp:S,isResumeTx:I,txData:N}=ir(_e=>_e.redeem),[B,k]=G.useState(void 0),{receipt:O}=M,z=O&&Uo(O),_=O&&S3e(O),F=O&&tw(O)||!!B,R=O&&tw(O)&&O.error instanceof $Z,w=O&&ew(O),o=D==null?void 0:D.endsWith("ExecutorRoute"),{recipient:u,toChain:h,fromChain:b,token:y,receivedToken:x,amount:E,eta:v=0,sendTx:f}=N,A=I0e(),j=G.useMemo(()=>{if(v&&S)return new Date(S+v)},[v,S]),{seconds:P,minutes:$,isRunning:K,restart:Q}=Z0e.useTimer({expiryTimestamp:new Date,autoStart:!1,onExpire:()=>p(!0)});G.useEffect(()=>{!S||!v||K||Q(new Date(S+v),!0)},[v,K,Q,S]);const H=K0e({receipt:O,route:D,eta:j}),V=O&&nT(O)||H.isCompleted;G.useEffect(()=>{H.receipt&&M.setReceipt(H.receipt)},[M,H.receipt]);const J=G.useMemo(()=>{if(!D)return!1;const _e=Te.routes.get(D);return _e?_e.AUTOMATIC_DEPOSIT:!1},[D]),ae=T0e(D,C,T,b,h,E,A);G.useEffect(()=>{const{receipt:_e}=M;if(_e)if(V)c||(l(!0),Te.triggerEvent({type:"transfer.success",details:ae}),J||Te.triggerEvent({type:"transfer.redeem.success",details:ae}),s(!1),i(""),N!=null&&N.sendTx&&N0e(N==null?void 0:N.sendTx));else if(_)Te.triggerEvent({type:"transfer.refunded",details:ae});else if(tw(_e)){const[be,we]=aI(_e.error,ae);i(be),Te.triggerEvent({type:"transfer.error",details:ae,error:we}),console.error(`Transfer failed with error ${we}: ${_e.error}`),s(!1)}else if(B){const[be,we]=aI(B,ae);i(be),Te.triggerEvent({type:"transfer.redeem.error",details:ae,error:we}),console.error(`Error while manually redeeming: ${we.type} - ${B}`),s(!1)}else z&&!J&&(N!=null&&N.sendTx)&&FRe(N==null?void 0:N.sendTx,"isReadyToClaim",!0)},[O==null?void 0:O.state,V,_,z,B,c]);const te=ir(_e=>_e.wallet.receiving),Z=G.useMemo(()=>{const _e=S+v,be=Date.now();return _e>be?_e-be:0},[S,v,d,P]),ce=G.useMemo(()=>{const _e={text:"",align:"left"};let be;return typeof Te.ui.pageHeader=="string"?be={..._e,text:Te.ui.pageHeader}:be={..._e,...Te.ui.pageHeader},L.jsx(Bb,{title:be.text,align:be.align})},[]),De=G.useMemo(()=>{let _e="Transaction submitted";return V?_e="Transaction completed":_?_e="Transaction was refunded":R&&o?_e=`Ready to claim on ${h}`:F?_e="Transaction failed":w?_e="Transaction delayed":z&&!J&&(_e=`Ready to claim on ${h}`),L.jsx(Sn,{children:L.jsx(dt,{"data-testid":"redeem-view-status-header",fontSize:18,children:_e})})},[V,_,F,R,w,z,J,h]),pe=G.useMemo(()=>{if(d)return L.jsx(Sn,{children:L.jsx(dt,{color:e.palette.text.secondary,fontSize:14,children:"Wrapping up..."})});const _e=K?xj($,P):null;let be=L.jsx(_0,{size:14});return v&&(be=VRe(v)),L.jsxs(Sn,{alignItems:"center",justifyContent:"center",children:[L.jsxs(dt,{color:e.palette.text.secondary,fontSize:14,children:["ETA ",be]}),L.jsx(dt,{fontSize:28,children:_e})]})},[v,d,K,$,P,e.palette.text.secondary]),Se=G.useMemo(()=>v?(v-Z)/v*100:0,[v,Z]),st=G.useMemo(()=>L.jsxs(L.Fragment,{children:[L.jsx("svg",{width:0,height:0,children:L.jsx("defs",{children:L.jsxs("linearGradient",{id:"circularGradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[L.jsx("stop",{offset:"0%",stopColor:e.palette.primary.main,stopOpacity:"1"}),L.jsx("stop",{offset:"100%",stopColor:e.palette.background.default,stopOpacity:"0.1"})]})})}),L.jsxs(ci,{sx:{position:"relative"},children:[L.jsx(_0,{variant:"determinate",sx:_e=>({color:_e.palette.primary.main,opacity:.2,position:"absolute"}),size:140,thickness:2,value:100}),L.jsx(_0,{variant:d?"indeterminate":"determinate",classes:{root:n.circularProgressRoot,circle:d?n.circularProgressCircleIndeterminite:n.circularProgressCircleDeterminite},disableShrink:d,size:140,thickness:2,value:Se})]}),L.jsx(ci,{sx:{top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},children:pe})]}),[n.circularProgressCircleDeterminite,n.circularProgressCircleIndeterminite,n.circularProgressRoot,pe,d,Se,e.palette.background.default,e.palette.primary.main]),ve=G.useMemo(()=>V?L.jsx(X0e,{className:n.txStatusIcon,sx:{color:e.palette.primary.light}}):_||w?L.jsx(xHe,{className:n.txStatusIcon,sx:{color:e.palette.warning.main}}):R&&o?L.jsx(RY,{className:n.txStatusIcon,sx:{color:e.palette.warning.light}}):F?L.jsx(wHe,{className:n.txStatusIcon,sx:{color:e.palette.error.light}}):!J&&z?L.jsx(RY,{className:n.txStatusIcon,sx:{color:e.palette.warning.light}}):st,[n.txStatusIcon,st,J,V,_,w,F,R,z,e.palette.primary.light,e.palette.warning.main,e.palette.warning.light,e.palette.error.light]);G.useEffect(()=>{let _e;if(M.receipt&&ew(M.receipt)){s(!0);const we=M.receipt.queueReleaseTime.getTime()-Date.now();_e=setTimeout(()=>{s(!1)},we)}return()=>{_e&&clearTimeout(_e)}},[M.receipt]);const Ne=G.useMemo(()=>{if(!u)return!1;if(I&&h==="Solana"&&te.address&&te.type===Zt.SOLANA&&te.address!==u&&D&&["ManualTokenBridge","ManualCCTP"].includes(D)){const{address:yt}=bM(x);return T5(new ke(Fn(yt)?hy:yt.toString()),new ke(te.address)).equals(new ke(u))?(i(""),!0):(i("Not connected to the receiving wallet"),!1)}const _e=te.address.toLowerCase(),be=te.currentAddress.toLowerCase(),we=u.toLowerCase();return _e===be&&_e===we},[te,u,h,I,D,x]),lt=G.useCallback(async()=>{if(s(!0),i(""),k(void 0),!D)throw new Error("Unknown route, can not claim");if(!M.receipt)throw new Error("No receipt found, can not claim");const _e={route:D,fromToken:Bh(Te.tokens.mustGet(y)),toToken:Bh(Te.tokens.mustGet(x)),fromChain:b,toChain:h};if(Te.triggerEvent({type:"transfer.redeem.initiate",details:_e}),!Ne)throw i("Not connected to the receiving wallet"),new Error("Not connected to the receiving wallet");if(!Te.chains[h])throw i("Your claim has failed, please try again"),new Error("invalid destination chain");const we=M.route;try{if(!rT(we)&&!iT(we))throw new Error("Route is not manual or finalizable");const yt=await ap.fromChain(h,te.address,{},si.RECEIVING),q=w&&iT(we)?we.finalize(yt,M.receipt):!w&&rT(we)?we.complete(yt,M.receipt):void 0;q&&(Te.triggerEvent({type:"transfer.redeem.start",details:ae}),await q)}catch(yt){k(yt),s(!1)}},[ae,b,Ne,w,x,te.address,M.receipt,M.route,D,h,y]),Me=G.useMemo(()=>a?L.jsx(Of,{disabled:!0,variant:"primary",className:n.actionButton,children:L.jsxs(dt,{display:"flex",alignItems:"center",gap:1,textTransform:"none",children:[L.jsx(_0,{size:16,sx:{color:e.palette.primary.contrastText}}),"Transfer in progress"]})}):w||!J&&z?Ne?L.jsx(Of,{className:ro([n.actionButton,n.claimButton]),variant:r?"error":"primary",onClick:lt,children:L.jsx(dt,{textTransform:"none",children:"Claim tokens to complete transfer"})}):L.jsx(Of,{variant:"primary",className:n.actionButton,onClick:()=>g(!0),children:L.jsx(dt,{textTransform:"none",children:"Connect receiving wallet"})}):R&&o&&f?L.jsx(Of,{variant:"primary",className:n.actionButton,onClick:()=>{t(CS()),t(to("search")),t(kre({txHash:f,chain:b}))},children:L.jsx(dt,{textTransform:"none",children:"Claim tokens to complete transfer"})}):L.jsxs(L.Fragment,{children:[L.jsx(Of,{variant:"primary",className:n.actionButton,onClick:()=>{t(to("bridge"))},children:L.jsx(dt,{textTransform:"none",children:"Start a new transaction"})}),!V&&L.jsx(dt,{fontSize:"12px",sx:{margin:"auto",opacity:.6},children:"Your current transaction will continue to process in the background."})]}),[r,n.actionButton,n.claimButton,t,lt,J,a,Ne,R,z,V,w,e.palette.primary.contrastText,f]),ye=G.useMemo(()=>{var q;if(!M.receipt||!ew(M.receipt))return null;const{to:_e,queueReleaseTime:be}=M.receipt,we=((q=Te.tokens.get(x))==null?void 0:q.symbol)||"",yt=be.toLocaleString();return L.jsx(dt,{color:e.palette.text.secondary,fontSize:14,className:n.delayText,children:`Your transfer to ${_e} is delayed due to rate limits configured by ${we}. After
|
|
321
321
|
the delay ends on ${yt}, you will need to tap "Claim" to
|
|
322
322
|
complete your transfer.`})},[n.delayText,x,M.receipt,e.palette.text.secondary]);return L.jsxs("div",{className:ro([n.container,n.spacer]),"data-testid":"redeem-view",children:[ce,L.jsx(Sn,{className:n.backButton,children:L.jsx(Sb,{sx:{padding:0},onClick:()=>t(to("bridge")),children:L.jsx(J0e,{sx:{fontSize:"32px"}})})}),De,L.jsx(ci,{sx:{position:"relative",display:"inline-flex",alignItems:"center",marginBottom:"24px",height:"140px"},children:ve}),L.jsx(MHe,{}),Me,ye,L.jsx(jb,{error:!0,content:r,show:!!r,className:n.errorBox}),L.jsx(Aj,{color:e.palette.text.primary}),L.jsx(Sj,{open:m,type:si.RECEIVING,onClose:()=>{g(!1)}})]})};class qI extends G.Component{constructor(e){super(e),this.scrollListener=this.scrollListener.bind(this),this.eventListenerOptions=this.eventListenerOptions.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this)}componentDidMount(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}componentDidUpdate(){if(this.props.isReverse&&this.loadMore){const e=this.getParentElement(this.scrollComponent);e.scrollTop=e.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}componentWillUnmount(){this.detachScrollListener(),this.detachMousewheelListener()}isPassiveSupported(){let e=!1;const n={get passive(){e=!0}};try{document.addEventListener("test",null,n),document.removeEventListener("test",null,n)}catch{}return e}eventListenerOptions(){let e=this.props.useCapture;return this.isPassiveSupported()?e={useCapture:this.props.useCapture,passive:!0}:e={passive:!1},e}setDefaultLoader(e){this.defaultLoader=e}detachMousewheelListener(){let e=window;this.props.useWindow===!1&&(e=this.scrollComponent.parentNode),e.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}detachScrollListener(){let e=window;this.props.useWindow===!1&&(e=this.getParentElement(this.scrollComponent)),e.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),e.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}getParentElement(e){const n=this.props.getScrollParent&&this.props.getScrollParent();return n??(e&&e.parentNode)}filterProps(e){return e}attachScrollListener(){const e=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!e)return;let n=window;this.props.useWindow===!1&&(n=e),n.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),n.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),n.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}mousewheelListener(e){e.deltaY===1&&!this.isPassiveSupported()&&e.preventDefault()}scrollListener(){const e=this.scrollComponent,n=window,r=this.getParentElement(e);let i;if(this.props.useWindow){const a=document.documentElement||document.body.parentNode||document.body,s=n.pageYOffset!==void 0?n.pageYOffset:a.scrollTop;this.props.isReverse?i=s:i=this.calculateOffset(e,s)}else this.props.isReverse?i=r.scrollTop:i=e.scrollHeight-r.scrollTop-r.clientHeight;i<Number(this.props.threshold)&&e&&e.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=r.scrollHeight,this.beforeScrollTop=r.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}calculateOffset(e,n){return e?this.calculateTopPosition(e)+(e.offsetHeight-n-window.innerHeight):0}calculateTopPosition(e){return e?e.offsetTop+this.calculateTopPosition(e.offsetParent):0}render(){const e=this.filterProps(this.props),{children:n,element:r,hasMore:i,initialLoad:a,isReverse:s,loader:c,loadMore:l,pageStart:d,ref:p,threshold:m,useCapture:g,useWindow:M,getScrollParent:C,...T}=e;T.ref=S=>{this.scrollComponent=S,p&&p(S)};const D=[n];return i&&(c?s?D.unshift(c):D.push(c):this.defaultLoader&&(s?D.unshift(this.defaultLoader):D.push(this.defaultLoader))),Y0.createElement(r,T,D)}}se(qI,"propTypes",{children:Pa.node.isRequired,element:Pa.node,hasMore:Pa.bool,initialLoad:Pa.bool,isReverse:Pa.bool,loader:Pa.node,loadMore:Pa.func.isRequired,pageStart:Pa.number,ref:Pa.func,getScrollParent:Pa.func,threshold:Pa.number,useCapture:Pa.bool,useWindow:Pa.bool}),se(qI,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});var _j={},EHe=pa;Object.defineProperty(_j,"__esModule",{value:!0});var eie=_j.default=void 0,SHe=EHe(ps()),THe=L;eie=_j.default=(0,SHe.default)((0,THe.jsx)("path",{d:"M6.99 11 3 15l3.99 4v-3H14v-2H6.99zM21 9l-3.99-4v3H10v2h7.01v3z"}),"SwapHoriz");const pE=8,IHe=t=>{const[e,n]=G.useState(),[r,i]=G.useState(""),[a,s]=G.useState(!1),[c,l]=G.useState(!0),{getOrFetchToken:d}=Zo(),{address:p,page:m=0,pageSize:g=30}=t,M=G.useCallback(async O=>{var Q,H,V,J,ae;const{content:z,data:_,sourceChain:F,targetChain:R}=O,{standarizedProperties:w,payload:o}=z||{},u=w.fromChain||(F==null?void 0:F.chainId),h=w.toChain||(R==null?void 0:R.chainId),b=w.tokenChain,y=g1(u);if(!y)return;const x=g1(b||h);if(!x)return;let E;try{E=await d(fn.tokenId(x,w.tokenAddress))}catch{}if(!E){const te=(_==null?void 0:_.symbol)&&Te.tokens.findBySymbol(x,_.symbol);te&&(E=te)}E||console.warn("Can't find token",O);const v=g1(h);let f,A,j;if(_&&_.tokenAmount?f=_.tokenAmount:w.amount&&(f=y0({amount:w.amount,decimals:w.normalizedDecimals??pE},0)),w.amount){const te=w.fee||o.fee||((Q=o.parsedPayload)==null?void 0:Q.feeAmount)||((H=o.parsedPayload)==null?void 0:H.relayerFee)||"0",Z=BigInt(w.amount)-BigInt(te);Z>0&&(A=y0({amount:Z.toString(),decimals:pE},0))}_&&_.usdAmount&&(j=Number(_.usdAmount));const P=(V=F.transaction)==null?void 0:V.txHash,$=((J=F==null?void 0:F.status)==null?void 0:J.toLowerCase())==="confirmed"&&((ae=R==null?void 0:R.status)==null?void 0:ae.toLowerCase())!=="completed";return{txHash:P,sender:w.fromAddress||F.from,recipient:w.toAddress,amount:f,amountUsd:j,receiveAmount:A,fromChain:y,fromToken:E,toChain:v,toToken:E,senderTimestamp:F==null?void 0:F.timestamp,receiverTimestamp:R==null?void 0:R.timestamp,explorerLink:`${aq}tx/${P}${Te.isMainnet?"":"?network=TESTNET"}`,inProgress:$}},[d]),C=G.useCallback(O=>M(O),[M]),T=G.useCallback(O=>M(O),[M]),D=G.useCallback(O=>M(O),[M]),S=G.useCallback(O=>M(O),[M]),I=G.useCallback(async O=>{var E;const z=await M(O);if(!z)return;const _=O.content.payload.parsedPayload,{finalTokenAddress:F,flagSet:R,minAmountFinish:w,recipientAddress:o,relayerFee:u}=_,h=Te.tokens.get(g1(O.content.standarizedProperties.tokenChain),O.content.standarizedProperties.tokenAddress);if(!h)return;const b=(E=R.flags)!=null&&E.shouldWrapNative?XU(z.fromChain):h,y=Te.tokens.get(fn.tokenId(z.toChain,Gi(z.toChain,F).toString()));if(!y)return;const x=BigInt(w)-BigInt(u);return z.fromToken=b,z.toToken=R.flags.shouldUnwrapNative?XU(z.toChain):y,z.receiveAmount=x>0?D0e(y0(Sr(x,y.decimals),0),pE):"",z.recipient=Gi(z.toChain,o).toString(),z},[M]),N=G.useCallback(O=>M(O),[M]),B=G.useMemo(()=>({PORTAL_TOKEN_BRIDGE:C,GENERIC_RELAYER:T,NATIVE_TOKEN_TRANSFER:D,CCTP_WORMHOLE_INTEGRATION:S,ETH_BRIDGE:I,USDT_BRIDGE:I,FAST_TRANSFERS:N,WORMHOLE_LIQUIDITY_LAYER:N}),[S,D,I,C,N,T]),k=G.useCallback(async O=>(await Promise.all(O.map(async z=>{var F,R;const _=((R=(F=z.content)==null?void 0:F.standarizedProperties)==null?void 0:R.appIds)||[];if(_.includes("ETH_BRIDGE")||_.includes("USDT_BRIDGE"))return I(z);for(const w of _){const o=B[w];if(o)return o(z)}}))).filter(z=>!!z),[B,I]);return G.useEffect(()=>{let O=!1;const z=new Headers({accept:"application/json"});return(async()=>{s(!0);try{const F=await fetch(`${Te.wormholeApi}api/v1/operations?address=${p}&page=${m}&pageSize=${g}`,{headers:z});if(F.status!==200)n([]),l(!1),s(!1);else{const R=await F.json();if(!O){const w=R==null?void 0:R.operations;if(w){const o=await k(w);n(u=>{if(u&&u.length>0){const h=new Set;return u.forEach(b=>{b!=null&&b.txHash&&h.add(b.txHash)}),u.concat(o.filter(b=>!h.has(b.txHash)))}return o})}(w==null?void 0:w.length)<g&&l(!1)}}}catch(F){O||(l(!1),i(`Error fetching transaction history from WormholeScan: ${F}`))}finally{s(!1)}})(),()=>{O=!0}},[p,m,g,k]),{transactions:e,error:r,isFetching:a,hasMore:c}},DHe=t=>{const[e,n]=G.useState(),[r,i]=G.useState(""),[a,s]=G.useState(!1),[c,l]=G.useState(!0),{address:d,page:p=0,pageSize:m=30}=t,g=C=>{const{fromAmount:T,sourceChain:D,destChain:S,fromTokenPrice:I,fromTokenAddress:N,initiatedAt:B,toAmount:k,toTokenAddress:O,sourceTxHash:z,trader:_,destAddress:F,clientStatus:R}=C,w=g1(D),o=g1(S);if(!w||!o)return;let u,h;try{u=Te.tokens.get(PY(w,N)),h=Te.tokens.get(PY(o,O))}catch(E){console.error(E);return}if(!u){const E=Te.tokens.findBySymbol(w,C.fromTokenSymbol);E&&(u=E)}if(!h){const E=Te.tokens.findBySymbol(o,C.toTokenSymbol);E&&(h=E)}if(!u||!h){console.error("Cant find tokenz");return}const b=R==null?void 0:R.toLowerCase(),y=b!=="completed"&&b!=="refunded";return{txHash:z,sender:_,amount:T,amountUsd:Number(T)*I,recipient:F,fromChain:w,fromToken:u,toChain:o,toToken:h,receiveAmount:k,senderTimestamp:B,explorerLink:`https://explorer.mayan.finance/swap/${z}`,inProgress:y}},M=G.useCallback(C=>C.map(T=>g(T)).filter(T=>!!T),[]);return G.useEffect(()=>{let C=!1;return(async()=>{s(!0);const D=m,S=D*p;try{const I=await fetch(`${Te.mayanApi}/v3/swaps?trader=${d}&offset=${S}&limit=${D}`);if(I.status!==200)n([]),l(!1),s(!1);else{const N=await I.json();if(!C){const B=N==null?void 0:N.data;B&&n(k=>{const O=M(B);if(k&&k.length>0){const z=new Set;return k.forEach(_=>{_!=null&&_.txHash&&z.add(_.txHash)}),k.concat(O.filter(_=>!z.has(_.txHash)))}return O}),(B==null?void 0:B.length)<D&&l(!1)}}}catch(I){C||(l(!1),i(`Error fetching transaction history from Mayan: ${I}`))}finally{s(!1)}})(),()=>{C=!0}},[d,p,m,M]),{transactions:e,error:r,isFetching:a,hasMore:c}};function PY(t,e){if(e==="0x0000000000000000000000000000000000000000")return{chain:t,address:"native"};const n=Gi(t,e);return{chain:t,address:n}}const NHe=t=>{const{page:e=0,pageSize:n=30}=t||{},[r,i]=G.useState(0),[a,s]=G.useState(0),[c,l]=G.useState(e),[d,p]=G.useState(e),[m,g]=G.useState(),{address:M}=ir(F=>F.wallet.sending),{transactions:C,isFetching:T,hasMore:D,error:S}=IHe({address:M,page:d,pageSize:n}),{transactions:I,isFetching:N,hasMore:B,error:k}=DHe({address:M,page:c,pageSize:n}),O=G.useCallback((F,R)=>F?F.concat(R):R,[]),z=G.useCallback(F=>{C&&F<=(C==null?void 0:C.length)&&s(F)},[C]),_=G.useCallback(F=>{I&&F<=(I==null?void 0:I.length)&&i(F)},[I]);return G.useEffect(()=>{B&&c!==e&&l(e),D&&d!==e&&p(e)},[B,D,c,e,d]),G.useEffect(()=>{if(!C||!I)return;const F=[];let R=a,w=r;for(let h=0;h<n;h++){if(R===C.length&&D||w===I.length&&B){z(R),_(w),g(x=>O(x,F));return}const b=C[R],y=I[w];if(!b&&!y){z(R),_(w),g(x=>O(x,F));return}if(!y)F.push(b),R+=1;else if(!b)F.push(y),w+=1;else{const x=new Date(b.senderTimestamp),E=new Date(y.senderTimestamp);x>E?(F.push(b),R+=1):(F.push(y),w+=1)}}z(R),_(w);const o=new Set,u=O(m,F).filter(h=>h.txHash&&o.has(h.txHash)?!1:(o.add(h.txHash),!0));g(h=>u)},[C,I]),{transactions:m,error:[S,k],isFetching:T||N,hasMore:D||B}},LHe=Rn()(t=>({container:{width:"100%",maxWidth:"420px"},card:{width:"100%",borderRadius:"8px",border:`1px solid ${t.palette.input.border}`},cardHeader:{paddingBottom:0}})),BHe=t=>{const{classes:e}=LHe(),n=_r(),{txHash:r,amount:i,amountUsd:a,fromChain:s,fromToken:c,toChain:l,toToken:d,receiveAmount:p,senderTimestamp:m,explorerLink:g}=t.data,M=G.useMemo(()=>L.jsx(dt,{component:"span",padding:"0px 8px",children:"·"}),[]),{getTokenPrice:C,lastTokenPriceUpdate:T}=Zo(),D=G.useMemo(()=>{const k=Te.chains[s];return L.jsxs(Sn,{alignItems:"center",direction:"row",justifyContent:"flex-start",children:[L.jsx(hp,{chainConfig:k,token:c}),L.jsxs(Sn,{direction:"column",marginLeft:"12px",children:[L.jsxs(dt,{fontSize:16,children:[i," ",c==null?void 0:c.symbol]}),L.jsxs(dt,{color:n.palette.text.secondary,fontSize:14,children:[a?L.jsxs(L.Fragment,{children:[MB(a),M]}):null,k==null?void 0:k.displayName]})]})]})},[i,a,s,M,n.palette.text.secondary,c]),S=G.useMemo(()=>{const k=Te.chains[l],O=d,z=p?S1(C,parseFloat(p),O):0,_=z?L.jsxs(L.Fragment,{children:[z,M]}):null;return L.jsxs(Sn,{alignItems:"center",direction:"row",justifyContent:"flex-start",children:[L.jsx(hp,{chainConfig:k,token:O}),L.jsxs(Sn,{direction:"column",marginLeft:"12px",children:[L.jsxs(dt,{fontSize:16,children:[p," ",O==null?void 0:O.symbol]}),L.jsxs(dt,{color:n.palette.text.secondary,fontSize:14,children:[_,k==null?void 0:k.displayName]})]})]})},[T,l,d,p,C,M,n.palette.text.secondary]),I=G.useMemo(()=>L.jsx(Sn,{height:"24px",borderLeft:"1px solid #8B919D",marginLeft:"16px"}),[]),N=G.useMemo(()=>{if(!m)return"Unknown time";const k=new Date(m),O=Date.now()-k.getTime();return O<1e3*60*60*24?ICe(O):`${new Intl.DateTimeFormat("en-US",{dateStyle:"short",timeStyle:"short"}).format(k)}`},[m]),B=G.useMemo(()=>L.jsx(my,{url:Y3(s,r,"tx"),text:wCe(r,4,4)}),[s,r]);return L.jsx("div",{className:e.container,children:L.jsx(Sl,{className:e.card,children:L.jsxs(ij,{disableTouchRipple:!0,onClick:()=>{window.open(g,"_blank")},children:[L.jsx(s0e,{className:e.cardHeader,title:L.jsxs(dt,{justifyContent:"space-between",color:n.palette.text.secondary,display:"flex",children:[L.jsxs("span",{children:["Transaction #",B]}),L.jsx("span",{children:N})]})}),L.jsxs(hf,{children:[D,I,S]})]})})})},jHe=Rn()(t=>({container:{margin:"auto",maxWidth:"420px"},header:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%"},infiniteScroller:{height:"640px",overflow:"auto",width:"100%"},txHistoryHeader:{width:"100%",display:"flex",alignItems:"center"},spacer:{display:"flex",flexDirection:"column",gap:"24px",alignItems:"center",justifyContent:"center",width:"100%"}})),kHe=()=>{const t=V0(),{classes:e}=jHe(),n=_r(),[r,i]=G.useState(0),{transactions:a,isFetching:s,hasMore:c}=NHe({page:r}),l=ir(g=>g.wallet.sending),d=G.useMemo(()=>{const g={text:"",align:"left"};let M;return typeof Te.ui.pageHeader=="string"?M={...g,text:Te.ui.pageHeader}:M={...g,...Te.ui.pageHeader},L.jsx(Bb,{title:M.text,align:M.align})},[]),p=G.useMemo(()=>L.jsxs("div",{className:e.txHistoryHeader,children:[L.jsx(YB,{align:"left",size:18,text:"Transaction history"}),L.jsx(Sb,{onClick:()=>t(to("bridge")),children:L.jsx(eie,{})})]}),[e.txHistoryHeader,t]),m=G.useMemo(()=>{if(a){if(a.length===0)return L.jsx(dt,{color:n.palette.text.secondary,textAlign:"center",children:`No transactions found for the wallet ${U6(l.address)}`})}else return L.jsx(L.Fragment,{});return L.jsx("div",{className:ro([e.infiniteScroller]),children:L.jsx(qI,{hasMore:c,loadMore:g=>i(g),useWindow:!1,style:{scrollbarWidth:"thin"},children:L.jsx("div",{className:ro([e.spacer]),children:a.map((g,M)=>L.jsx(BHe,{data:g},M))})})})},[e.infiniteScroller,e.spacer,c,l.address,n.palette.text.secondary,a]);return L.jsxs("div",{className:ro([e.container,e.spacer]),children:[d,p,m,(!a||s)&&L.jsx(_0,{}),L.jsx(Aj,{color:n.palette.text.primary})]})},_He=Rn()(t=>({appContent:{textAlign:"left",margin:"40px auto",maxWidth:"900px",width:"100%",display:"flex",justifyContent:"center",padding:"4px",fontFamily:t.palette.font.primary,[t.breakpoints.down("sm")]:{margin:"0 auto"}}}));function OHe(t){const{classes:e}=_He(),n=V0(),r=G.useContext(jd),i=ir(p=>p.router.route),a=G.useRef(!1),s=G.useRef(!0),c=G.useCallback(p=>{Xte(p)||UDe(p),a.current=!0,Te.triggerEvent({type:"config",config:p})},[]);a.current||(t.config&&c(t.config),i!=="bridge"&&n(to("bridge"))),G.useEffect(()=>{s.current?(s.current=!1,Te.triggerEvent({type:"load",config:t.config})):t.config&&(c(t.config),n(yW()))},[t.config]);const l=TCe(i),{hasExternalSearch:d}=aRe();return G.useEffect(()=>{const p="redeem",m="bridge";l===p&&i!==p&&(n(CS()),n(dCe()),r.clear()),i===m&&l!==m&&l!=="history"&&n(yW())},[i,l,n]),G.useEffect(()=>{d&&(n(CS()),n(to("search")))},[d,n]),L.jsxs("div",{className:e.appContent,children:[L.jsx(xNe,{}),i==="bridge"&&L.jsx(pHe,{}),i==="redeem"&&L.jsx(CHe,{}),i==="search"&&L.jsx(iRe,{}),i==="history"&&L.jsx(kHe,{}),i==="terms"&&L.jsx(fze,{})]})}const FHe={mode:"light",primary:{main:"#9892e6"},secondary:{main:"#cccccc"},divider:"#a0a2a9",background:{default:"transparent"},text:{primary:Lm[900],secondary:"#7d7d7d"},error:{main:"#f44336"},info:{main:"#A4C8F3"},success:{main:"#4caf50"},warning:{main:"#ff9800"},button:{primary:"#ffffff",primaryText:Lm[900],disabled:"#c8cad1",disabledText:Lm[800],action:"#F3A01E",actionText:"#000000",hover:"#b7b9c1"},options:{hover:"#f9f9fb",select:"#F0F0F5"},card:{background:"#ffffff",elevation:"10px 10px 30px 15px #CCD2E7",secondary:"#F0F0F5"},popover:{background:"#ffffff",elevation:"10px 10px 30px 15px #CCD2E7",secondary:"#F0F0F5"},input:{background:"#f9f9f9",border:"#DEE0E3",fillTreatment:!0},font:'"Inter", sans-serif',logo:"#000000"},zHe={mode:"dark",primary:{main:"#C1BBF6"},secondary:{main:"#667085"},divider:"#ffffff"+Ma[20],background:{default:"transparent"},text:{primary:"#ffffff",secondary:"#79859e"},info:{main:"#304C70"},error:{main:"#F04438"},success:{main:"#12B76A"},warning:{main:"#F79009"},button:{primary:"#ffffff"+Ma[10],primaryText:"#ffffff",disabled:"#ffffff"+Ma[7],disabledText:"#ffffff"+Ma[40],action:"#ffffff",actionText:"#000000",hover:"#ffffff"+Ma[7]},options:{hover:"#ffffff"+Ma[7],select:"#ffffff"+Ma[10]},card:{background:"#ffffff"+Ma[5],secondary:"#ffffff"+Ma[5],elevation:"none"},popover:{background:"#1b2033",secondary:"#ffffff"+Ma[5],elevation:"none"},input:{background:"#1a1928",border:"#1e1f35",fillTreatment:!0},font:'"Inter", sans-serif',logo:"#ffffff"},RHe=t=>{const n=t.mode==="light"?FHe:zHe,r=Object.assign({},n);if(t){t.background&&(r.background={default:t.background}),t.input&&(r.input={...r.input,background:t.input,border:t.secondary||r.secondary.main}),t.inputFillTreatment!==void 0&&(r.input.fillTreatment=t.inputFillTreatment),t.primary&&(r.primary={main:t.primary}),t.secondary&&(r.secondary={main:t.secondary}),t.text&&(r.text.primary=t.text),t.textSecondary&&(r.text.secondary=t.textSecondary),t.error&&(r.error={main:t.error}),t.success&&(r.success={main:t.success});const i=b0(t.primary||r.primary.main);let a,s,c,l,d,p;i.isDark()?(a=i.lightness(95).hex(),s=i.alpha(.4).hexa(),c=i.lightness(95).alpha(.9).hexa(),l=i.darken(.15).hex(),d=i.lightness(80).hex(),p=i.darken(.05).hex()):(a=i.lightness(5).hex(),s=i.alpha(.4).hexa(),c=i.lightness(5).alpha(.9).hexa(),l=i.lighten(.05).hex(),d=i.lightness(0).hex(),p=i.lighten(.05).hex()),r.button={primary:i.hex(),primaryText:a,disabled:s,disabledText:c,action:l,actionText:d,hover:p}}return vN({components:{MuiPaper:{styleOverrides:{root:{boxShadow:"none"}}},MuiCollapse:{styleOverrides:{root:{width:"100%"}}}},breakpoints:{values:{xs:300,sm:500,md:650,lg:900,xl:1200}},typography:{fontFamily:t.font??'"Inter", sans-serif'},palette:{...r}})};class tie extends Y0.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e,n){console.error(e,n)}render(){return this.state.hasError?L.jsx(Sl,{children:L.jsx(dt,{variant:"h5",style:{textAlign:"center",marginTop:24,marginBottom:24},children:"An unexpected error has occurred. Please refresh the page."})}):this.props.children}}function PHe({config:t,theme:e}){G.useEffect(()=>{globalThis.dispatchReduxAction||(window.dispatchReduxAction=r=>{MW.dispatch(r)})},[]);const n=G.useMemo(()=>RHe(e??{mode:"dark"}),[e]);return L.jsx(Zle,{store:MW,children:L.jsx(bfe,{theme:n,children:L.jsx(ffe,{enableColorScheme:!0,children:L.jsx(tie,{children:L.jsx(ARe,{children:L.jsx(Cze,{children:L.jsx(OHe,{config:t})})})})})})})}const nie=document.getElementById("wormhole-connect");if(!nie)throw new Error('Could not find an element with id "wormhole-connect". Please add one to use the Connect widget.');const UHe=window.__CONNECT_CONFIG,HHe=window.__CONNECT_THEME,WHe=doe.createRoot(nie);WHe.render(L.jsx(Y0.StrictMode,{children:L.jsx(tie,{children:L.jsx(PHe,{config:UHe,theme:HHe})})}));export{hMe as $,eI as A,QU as B,bb as C,tGe as D,P3e as E,nX as F,Te as G,lI as H,e0 as I,ave as J,Ro as K,XYe as L,$o as M,ZYe as N,an as O,ke as P,BYe as Q,Ru as R,BWe as S,Zn as T,cB as U,Pu as V,zAe as W,Xte as X,E5 as Y,Lwe as Z,Ia as _,fd as a,Fn as a$,JYe as a0,lr as a1,rX as a2,n9e as a3,cWe as a4,eGe as a5,Wt as a6,zWe as a7,ML as a8,FX as a9,mL as aA,ta as aB,OWe as aC,O9e as aD,vU as aE,q5 as aF,dWe as aG,AAe as aH,wi as aI,LWe as aJ,ub as aK,CAe as aL,rp as aM,nr as aN,yb as aO,$He as aP,VHe as aQ,yq as aR,nB as aS,Ku as aT,dr as aU,dZ as aV,uZ as aW,bX as aX,KN as aY,fn as aZ,kWe as a_,RWe as aa,PWe as ab,FWe as ac,ame as ad,O6 as ae,lme as af,J9e as ag,Gv as ah,el as ai,k0 as aj,g0 as ak,lee as al,Tge as am,yg as an,Zi as ao,ra as ap,Jn as aq,jJ as ar,mg as as,od as at,N9e as au,d8 as av,Ji as aw,T9e as ax,p0 as ay,U4 as az,wt as b,foe as b$,jN as b0,Cq as b1,yT as b2,nWe as b3,rWe as b4,Vq as b5,a2e as b6,yv as b7,jq as b8,eWe as b9,DYe as bA,Qwe as bB,tp as bC,FN as bD,og as bE,w5e as bF,nh as bG,Qp as bH,OS as bI,CO as bJ,Nq as bK,tWe as bL,sWe as bM,Dn as bN,x5e as bO,aWe as bP,EAe as bQ,LYe as bR,Nt as bS,Pt as bT,d0 as bU,Z5 as bV,dn as bW,np as bX,SAe as bY,Y0 as bZ,G as b_,Ux as ba,QHe as bb,E5e as bc,Kh as bd,wu as be,$r as bf,C5e as bg,qu as bh,Bq as bi,JL as bj,CYe as bk,AYe as bl,zwe as bm,wYe as bn,Pwe as bo,Rwe as bp,Fwe as bq,SYe as br,fB as bs,Uwe as bt,wte as bu,Ate as bv,EYe as bw,Wwe as bx,TYe as by,Vp as bz,Kt as c,Dve as c$,c8 as c0,jWe as c1,Jp as c2,hL as c3,Na as c4,Ebe as c5,eb as c6,mn as c7,eK as c8,uT as c9,X1 as cA,hWe as cB,jr as cC,xU as cD,J6 as cE,WWe as cF,HWe as cG,Gi as cH,Ds as cI,un as cJ,ml as cK,DAe as cL,iGe as cM,Dte as cN,x8 as cO,$Ie as cP,rc as cQ,jB as cR,DM as cS,o8 as cT,Rm as cU,da as cV,Ai as cW,Sh as cX,M8 as cY,lf as cZ,Ka as c_,yie as ca,i8 as cb,tL as cc,uo as cd,Kn as ce,vM as cf,mv as cg,Pm as ch,Xr as ci,VO as cj,R3 as ck,Qu as cl,_4 as cm,$de as cn,Ite as co,dee as cp,wv as cq,wX as cr,ad as cs,$5 as ct,L9e as cu,a5e as cv,ah as cw,la as cx,Px as cy,pv as cz,je as d,zs as d0,xr as d1,ai as d2,Ree as d3,Al as d4,L1 as d5,gb as d6,Yte as d7,jYe as d8,kYe as d9,zB as da,Nte as db,IAe as dc,sre as dd,lDe as de,q3 as df,GIe as dg,ore as dh,Tr as di,lZ as dj,oo as dk,hn as dl,Ui as dm,Zm as dn,_We as dp,x9e as dq,pn as dr,dB as ds,NYe as dt,qwe as du,IYe as dv,Gwe as dw,U3 as dx,rGe as dy,aGe as dz,Jh as e,ns as f,za as g,Yi as h,ua as i,Pv as j,nn as k,Le as l,ct as m,zn as n,Vt as o,Yn as p,B9e as q,u3 as r,$i as s,yL as t,Cr as u,RAe as v,KYe as w,Zu as x,ip as y,Ar as z};
|