@wormhole-foundation/wormhole-connect 0.3.17-beta.1-development → 0.3.17-beta.3-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/assets/{ccip-DR0sV4Gg.js → ccip-bB9JhZPG.js} +1 -1
- package/dist/assets/cosmos-CZk6ggNU.js +37 -0
- package/dist/assets/{cosmwasm-D6dc3HhR.js → cosmwasm-BRgXJAEm.js} +3 -3
- package/dist/assets/{ens-validation.es6-JeiZhPFM.js → ens-validation.es6-CEldkK56.js} +1 -1
- package/dist/assets/{evm-Dfoif9rW.js → evm-BekbdSM5.js} +4 -4
- package/dist/assets/{index-CfFB0O_w.js → index-2haya2pd.js} +1 -1
- package/dist/assets/{index-DdlsdoUO.js → index-BSZP2fsz.js} +1 -1
- package/dist/assets/{index-CYsDCGyL.js → index-BUfxN-fw.js} +1 -1
- package/dist/assets/{index-tlA_SzXI.js → index-BnroDaYb.js} +2 -2
- package/dist/assets/index-CoAwWRVw.js +3 -0
- package/dist/assets/{index-BOBMlReD.js → index-Eg3Y_yb4.js} +1 -1
- package/dist/assets/{index.es-yNDXO1Ts.js → index.es-D7q3bI9z.js} +2 -2
- package/dist/assets/{solana-DJERwdo1.js → solana-ClUmAbQX.js} +2 -2
- package/dist/assets/{solanaEmbed.esm-CYzxDEiX.js → solanaEmbed.esm-BpCHncZo.js} +1 -1
- package/dist/assets/{unsignedTransaction-Bbs3hbtB.js → unsignedTransaction-C5QlrOSq.js} +1 -1
- package/dist/main.js +11 -11
- package/dist/src/config/mainnet/tokens.d.ts.map +1 -1
- package/dist/src/routes/porticoBridge/porticoBridge.d.ts.map +1 -1
- package/dist/src/telemetry/types.d.ts +1 -0
- package/dist/src/telemetry/types.d.ts.map +1 -1
- package/dist/src/views/FAQ.d.ts.map +1 -1
- package/lib/{algorand-CT9IzowX.js → algorand-DQOUIe34.js} +1 -1
- package/lib/{algorand-BPtE9-nd.mjs → algorand-bbQc9Xdt.mjs} +4 -4
- package/lib/{aptos-C_p2pwJV.mjs → aptos-BXvla4-P.mjs} +4 -4
- package/lib/{aptos-CcKr32r1.js → aptos-BaB0KS2-.js} +1 -1
- package/lib/{aptos-DyoV4KSe.mjs → aptos-CVXUrD15.mjs} +1 -1
- package/lib/{aptos-vNnkKdrU.js → aptos-Fk_aq9Ds.js} +2 -2
- package/lib/{browser-BEgrG8Dj.js → browser-Ch1vuQyc.js} +1 -1
- package/lib/{browser-QgbjwerP.mjs → browser-J9xJtFO3.mjs} +2 -2
- package/lib/{ccip-C2nJUeTV.js → ccip-Bh_lpm1B.js} +1 -1
- package/lib/{ccip-8IvG2nQB.mjs → ccip-DJXutm3w.mjs} +1 -1
- package/lib/{chain-j1F1mBU9.js → chain-4chdb4hg.js} +1 -1
- package/lib/{chain-CC9n7dMB.mjs → chain-md6r5NL6.mjs} +1 -1
- package/lib/cosmos-Coz1pwxo.js +37 -0
- package/lib/{cosmos-CH08pCqb.mjs → cosmos-Lnfh1pfq.mjs} +6 -6
- package/lib/{cosmwasm-D5Jgmftm.js → cosmwasm-C3HU7KIo.js} +2 -2
- package/lib/{cosmwasm-DNQv_pY0.mjs → cosmwasm-Djw061YG.mjs} +6 -6
- package/lib/{create-Ba-vkqIS.mjs → create-C2UDX1nb.mjs} +1 -1
- package/lib/{create-CiLAQlGO.js → create-vAsinduh.js} +1 -1
- package/lib/{ens-validation.es6-Chl_xq9x.mjs → ens-validation.es6-CfKr2ecM.mjs} +2 -2
- package/lib/{ens-validation.es6-BKazRxKI.js → ens-validation.es6-vaEuP_I0.js} +1 -1
- package/lib/{evm-CMUUWzxN.js → evm-CSfxGnVJ.js} +2 -2
- package/lib/{evm-ImN7TwqI.mjs → evm-D5UX3Vr1.mjs} +6 -6
- package/lib/{evm-BNWJNFdL.mjs → evm-DnHOhEuG.mjs} +6 -6
- package/lib/{evm-CHLviY4T.js → evm-G5MpvfQD.js} +4 -4
- package/lib/{index-91nDC5Uy.js → index-4eIBoQai.js} +1 -1
- package/lib/{index-BJCthuOT.mjs → index-8JjdkVvK.mjs} +5 -5
- package/lib/{index-CTxrRw8G.mjs → index-8Of3ATUa.mjs} +4 -4
- package/lib/{index-6wTLnL9X.js → index-B3i8-N9M.js} +1 -1
- package/lib/{index-CigeXatZ.mjs → index-B6bW3txE.mjs} +4 -4
- package/lib/{index-D_q-W2ed.js → index-B6hetPgC.js} +1 -1
- package/lib/{index-DbBnUPGn.mjs → index-BAW3wrmT.mjs} +5 -5
- package/lib/{index-D64s1-dG.js → index-BF-Qi8T8.js} +1 -1
- package/lib/{index-DUkWrti6.mjs → index-BVnDJ1h-.mjs} +3 -3
- package/lib/{index-6ITI8l_n.js → index-BYK8YAq3.js} +1 -1
- package/lib/{index-CXD37eeM.mjs → index-BcMObKYQ.mjs} +5 -5
- package/lib/{index-B0buWmUZ.mjs → index-Bfa8lhCr.mjs} +72 -72
- package/lib/{index-XHRIAH0_.mjs → index-BfgL0YA8.mjs} +4 -4
- package/lib/{index-BrMPzzY-.js → index-Bj3gA8QE.js} +1 -1
- package/lib/{index-DtX4ZfIw.js → index-BuuHIqrq.js} +1 -1
- package/lib/{index-CT5Snq8o.js → index-C22icw8H.js} +1 -1
- package/lib/{index-B9N5DIHp.js → index-C3NAa1DG.js} +1 -1
- package/lib/{index-BhW4ej8D.mjs → index-C8mR7PQ3.mjs} +4 -4
- package/lib/{index-cJBVdcGM.mjs → index-CKCS4ab9.mjs} +2 -2
- package/lib/{index-Bx1WY-AO.mjs → index-CdxUfm3L.mjs} +4 -4
- package/lib/{index-Cd59NVnR.js → index-CicHsv0y.js} +1 -1
- package/lib/{index-AWXaMk_V.js → index-Cl-HCKyP.js} +1 -1
- package/lib/{index-BSzCyPEA.mjs → index-Cp9-lbg_.mjs} +3 -3
- package/lib/{index-CS1WBa4N.js → index-CzC1R_44.js} +1 -1
- package/lib/{index-B3nKeY7i.mjs → index-D5R5FnqR.mjs} +4 -4
- package/lib/{index-VB_yaBQV.js → index-D8oRJAQH.js} +1 -1
- package/lib/{index-CDWIVNpZ.js → index-DCq5LzsC.js} +1 -1
- package/lib/{index-CmfSYre_.js → index-DG-icWtU.js} +1 -1
- package/lib/index-DPo_nXZn.js +3 -0
- package/lib/{index-BA18_3G6.mjs → index-DZQTbX1d.mjs} +4 -4
- package/lib/{index-CdEOzLdf.mjs → index-D_cQPX5m.mjs} +2 -2
- package/lib/{index-Cbtr0vIa.js → index-DcupURi6.js} +1 -1
- package/lib/{index-CRPzHB8-.mjs → index-Dj9JsNKv.mjs} +4 -4
- package/lib/{index-C-XVUExZ.mjs → index-DjhdKPZm.mjs} +4 -4
- package/lib/{index-B734e-Zb.js → index-DofgFIbr.js} +1 -1
- package/lib/{index-eoE2y8W1.js → index-Dq__0C0M.js} +1 -1
- package/lib/{index-DS2ZHd80.js → index-DrW_Srs7.js} +10 -10
- package/lib/{index-BdRagW8t.mjs → index-Drp12F2q.mjs} +2 -2
- package/lib/{index-D6m1fO15.mjs → index-KoJmV4qJ.mjs} +3 -3
- package/lib/{index-Br0F6utM.js → index-MXb__2Ij.js} +1 -1
- package/lib/{index-BEylzlT7.js → index-YWNX4xQn.js} +1 -1
- package/lib/{index-Xwni1Chl.mjs → index-_9dxm954.mjs} +6 -6
- package/lib/{index-Dmps0tPB.js → index-f98gd3ZP.js} +1 -1
- package/lib/{index-CcaZuATX.mjs → index-gkz44c-W.mjs} +1 -1
- package/lib/{index-BvOaMsax.mjs → index-pmAfiNSK.mjs} +4 -4
- package/lib/{index-7BQZXfWl.mjs → index-rnxTGwT0.mjs} +113 -142
- package/lib/{index.es-YWUQ6X17.js → index.es-BG-tsGvJ.js} +2 -2
- package/lib/{index.es-7SJGhkwJ.mjs → index.es-ssn1XheG.mjs} +4 -4
- package/lib/index.js +1 -1
- package/lib/index.mjs +1 -1
- package/lib/{libsodium-wrappers-CfWZgzAB.mjs → libsodium-wrappers-D9i2kZ2T.mjs} +1 -1
- package/lib/{libsodium-wrappers-BCDnjtN5.js → libsodium-wrappers-knbFMTCb.js} +1 -1
- package/lib/{sei-DhZ1wI-M.mjs → sei-CC-hCvqQ.mjs} +2 -2
- package/lib/{sei-aztOsSV_.js → sei-OD_iLHNo.js} +1 -1
- package/lib/{solana-BBZFE9PS.mjs → solana-BfuRUe5B.mjs} +3 -3
- package/lib/{solana-g5LtR4oW.js → solana-CkdYdVv6.js} +1 -1
- package/lib/{solana-DyvfTNdQ.mjs → solana-DrFvn6l7.mjs} +6 -6
- package/lib/{solana-BRXjarV7.js → solana-WdevUNt0.js} +2 -2
- package/lib/{solanaEmbed.esm-H4M7qCQq.js → solanaEmbed.esm-BXKviCnG.js} +1 -1
- package/lib/{solanaEmbed.esm-DZThG-FN.mjs → solanaEmbed.esm-KWiZRxrd.mjs} +2 -2
- package/lib/src/config/mainnet/tokens.d.ts.map +1 -1
- package/lib/src/routes/porticoBridge/porticoBridge.d.ts.map +1 -1
- package/lib/src/telemetry/types.d.ts +1 -0
- package/lib/src/telemetry/types.d.ts.map +1 -1
- package/lib/src/views/FAQ.d.ts.map +1 -1
- package/lib/{sui-C56stkgt.mjs → sui-BldLCGsT.mjs} +1 -1
- package/lib/{sui-DVTcuAR1.js → sui-BoIuOu7b.js} +2 -2
- package/lib/{sui-nWHHJ2B3.mjs → sui-BwptCYR5.mjs} +4 -4
- package/lib/{sui-VFUQmBgM.js → sui-CCmmgopi.js} +1 -1
- package/lib/{unsignedTransaction-D3jWTIyu.mjs → unsignedTransaction-BtjjnVkf.mjs} +2 -2
- package/lib/{unsignedTransaction-CEpQCkFV.js → unsignedTransaction-fcsxO6iC.js} +1 -1
- package/package.json +1 -1
- package/dist/assets/cosmos-CKUC0334.js +0 -37
- package/dist/assets/index-DTubKMVE.js +0 -3
- package/lib/cosmos-B3nwGfan.js +0 -37
- package/lib/index-55Adm4pS.js +0 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { y as er, d as Y, ab as qc, n as Tu, g as Lc, bP as Uc, a1 as Ou, a5 as Bu } from "./index-
|
|
1
|
+
import { y as er, d as Y, ab as qc, n as Tu, g as Lc, bP as Uc, a1 as Ou, a5 as Bu } from "./index-rnxTGwT0.mjs";
|
|
2
2
|
import { d as ku } from "./dijkstra-BZM-8g-B.mjs";
|
|
3
|
-
import { r as Fu, h as ei, i as Dr, j as Ct, l as Nn, c as Du, a as qu, g as $o, s as Lu, d as Uu, k as $u, b as zu, I as zr, f as Tt, t as It, e as zo, C as Ku, G as ju, E as ft, y as yt, m as Zs, F as Vu, n as Ko, p as Hu, q as Wu, o as $c, u as Qu, v as eo, w as to, x as zc, z as Qt, Y as Gu, A as Qr } from "./browser-
|
|
4
|
-
import { c as K, s as ro, x as Kc, r as jc, H as Yu, a as Vc, q as dn } from "./index-
|
|
3
|
+
import { r as Fu, h as ei, i as Dr, j as Ct, l as Nn, c as Du, a as qu, g as $o, s as Lu, d as Uu, k as $u, b as zu, I as zr, f as Tt, t as It, e as zo, C as Ku, G as ju, E as ft, y as yt, m as Zs, F as Vu, n as Ko, p as Hu, q as Wu, o as $c, u as Qu, v as eo, w as to, x as zc, z as Qt, Y as Gu, A as Qr } from "./browser-J9xJtFO3.mjs";
|
|
4
|
+
import { c as K, s as ro, x as Kc, r as jc, H as Yu, a as Vc, q as dn } from "./index-gkz44c-W.mjs";
|
|
5
5
|
let Ju = class extends Fu {
|
|
6
6
|
constructor(e) {
|
|
7
7
|
super(e), this.events = new er.EventEmitter(), this.hasRegisteredEventListeners = !1, this.connection = this.setConnection(e), this.connection.connected && this.registerEventListeners();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const me=Symbol(),se=Object.getPrototypeOf,G=new WeakMap,he=e=>e&&(G.has(e)?G.get(e):se(e)===Object.prototype||se(e)===Array.prototype),ge=e=>he(e)&&e[me]||null,ne=(e,t=!0)=>{G.set(e,t)};var H={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1,REACT_APP_CONNECT_VERSION:"0.3.17-beta.1-development"};const F=e=>typeof e=="object"&&e!==null,A=new WeakMap,x=new WeakSet,be=(e=Object.is,t=(n,g)=>new Proxy(n,g),s=n=>F(n)&&!x.has(n)&&(Array.isArray(n)||!(Symbol.iterator in n))&&!(n instanceof WeakMap)&&!(n instanceof WeakSet)&&!(n instanceof Error)&&!(n instanceof Number)&&!(n instanceof Date)&&!(n instanceof String)&&!(n instanceof RegExp)&&!(n instanceof ArrayBuffer),r=n=>{switch(n.status){case"fulfilled":return n.value;case"rejected":throw n.reason;default:throw n}},l=new WeakMap,c=(n,g,I=r)=>{const v=l.get(n);if((v==null?void 0:v[0])===g)return v[1];const w=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n));return ne(w,!0),l.set(n,[g,w]),Reflect.ownKeys(n).forEach(k=>{if(Object.getOwnPropertyDescriptor(w,k))return;const L=Reflect.get(n,k),M={value:L,enumerable:!0,configurable:!0};if(x.has(L))ne(L,!1);else if(L instanceof Promise)delete M.value,M.get=()=>I(L);else if(A.has(L)){const[b,q]=A.get(L);M.value=c(b,q(),I)}Object.defineProperty(w,k,M)}),Object.preventExtensions(w)},m=new WeakMap,f=[1,1],W=n=>{if(!F(n))throw new Error("object required");const g=m.get(n);if(g)return g;let I=f[0];const v=new Set,w=(a,i=++f[0])=>{I!==i&&(I=i,v.forEach(o=>o(a,i)))};let k=f[1];const L=(a=++f[1])=>(k!==a&&!v.size&&(k=a,b.forEach(([i])=>{const o=i[1](a);o>I&&(I=o)})),I),M=a=>(i,o)=>{const h=[...i];h[1]=[a,...h[1]],w(h,o)},b=new Map,q=(a,i)=>{if((H?"production":void 0)!=="production"&&b.has(a))throw new Error("prop listener already exists");if(v.size){const o=i[3](M(a));b.set(a,[i,o])}else b.set(a,[i])},te=a=>{var i;const o=b.get(a);o&&(b.delete(a),(i=o[1])==null||i.call(o))},pe=a=>(v.add(a),v.size===1&&b.forEach(([o,h],N)=>{if((H?"production":void 0)!=="production"&&h)throw new Error("remove already exists");const R=o[3](M(N));b.set(N,[o,R])}),()=>{v.delete(a),v.size===0&&b.forEach(([o,h],N)=>{h&&(h(),b.set(N,[o]))})}),J=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n)),$=t(J,{deleteProperty(a,i){const o=Reflect.get(a,i);te(i);const h=Reflect.deleteProperty(a,i);return h&&w(["delete",[i],o]),h},set(a,i,o,h){const N=Reflect.has(a,i),R=Reflect.get(a,i,h);if(N&&(e(R,o)||m.has(o)&&e(R,m.get(o))))return!0;te(i),F(o)&&(o=ge(o)||o);let V=o;if(o instanceof Promise)o.then(C=>{o.status="fulfilled",o.value=C,w(["resolve",[i],C])}).catch(C=>{o.status="rejected",o.reason=C,w(["reject",[i],C])});else{!A.has(o)&&s(o)&&(V=W(o));const C=!x.has(V)&&A.get(V);C&&q(i,C)}return Reflect.set(a,i,V,h),w(["set",[i],o,R]),!0}});m.set(n,$);const fe=[J,L,c,pe];return A.set($,fe),Reflect.ownKeys(n).forEach(a=>{const i=Object.getOwnPropertyDescriptor(n,a);"value"in i&&($[a]=n[a],delete i.value,delete i.writable),Object.defineProperty(J,a,i)}),$})=>[W,A,x,e,t,s,r,l,c,m,f],[ye]=be();function j(e={}){return ye(e)}function D(e,t,s){const r=A.get(e);(H?"production":void 0)!=="production"&&!r&&console.warn("Please use proxy object");let l;const c=[],m=r[3];let f=!1;const n=m(g=>{c.push(g),l||(l=Promise.resolve().then(()=>{l=void 0,f&&t(c.splice(0))}))});return f=!0,()=>{f=!1,n()}}function ve(e,t){const s=A.get(e);(H?"production":void 0)!=="production"&&!s&&console.warn("Please use proxy object");const[r,l,c]=s;return c(r,l(),t)}const d=j({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),ee={state:d,subscribe(e){return D(d,()=>e(d))},push(e,t){e!==d.view&&(d.view=e,t&&(d.data=t),d.history.push(e))},reset(e){d.view=e,d.history=[e]},replace(e){d.history.length>1&&(d.history[d.history.length-1]=e,d.view=e)},goBack(){if(d.history.length>1){d.history.pop();const[e]=d.history.slice(-1);d.view=e}},setData(e){d.data=e}},u={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile(){return typeof window<"u"?!!(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){return u.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isIos(){const e=navigator.userAgent.toLowerCase();return u.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isHttpUrl(e){return e.startsWith("http://")||e.startsWith("https://")},isArray(e){return Array.isArray(e)&&e.length>0},formatNativeUrl(e,t,s){if(u.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let r=e;r.includes("://")||(r=e.replaceAll("/","").replaceAll(":",""),r=`${r}://`),r.endsWith("/")||(r=`${r}/`),this.setWalletConnectDeepLink(r,s);const l=encodeURIComponent(t);return`${r}wc?uri=${l}`},formatUniversalUrl(e,t,s){if(!u.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let r=e;r.endsWith("/")||(r=`${r}/`),this.setWalletConnectDeepLink(r,s);const l=encodeURIComponent(t);return`${r}wc?uri=${l}`},async wait(e){return new Promise(t=>{setTimeout(t,e)})},openHref(e,t){window.open(e,t,"noreferrer noopener")},setWalletConnectDeepLink(e,t){try{localStorage.setItem(u.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}))}catch{console.info("Unable to set WalletConnect deep link")}},setWalletConnectAndroidDeepLink(e){try{const[t]=e.split("?");localStorage.setItem(u.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}))}catch{console.info("Unable to set WalletConnect android deep link")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(u.WALLETCONNECT_DEEPLINK_CHOICE)}catch{console.info("Unable to remove WalletConnect deep link")}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(u.WCM_VERSION,"2.6.2")}catch{console.info("Unable to set Web3Modal version in storage")}},getWalletRouterData(){var e;const t=(e=ee.state.data)==null?void 0:e.Wallet;if(!t)throw new Error('Missing "Wallet" view data');return t}},we=typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),p=j({enabled:we,userSessionId:"",events:[],connectedWalletId:void 0}),ue={state:p,subscribe(e){return D(p.events,()=>e(ve(p.events[p.events.length-1])))},initialize(){p.enabled&&typeof(crypto==null?void 0:crypto.randomUUID)<"u"&&(p.userSessionId=crypto.randomUUID())},setConnectedWalletId(e){p.connectedWalletId=e},click(e){if(p.enabled){const t={type:"CLICK",name:e.name,userSessionId:p.userSessionId,timestamp:Date.now(),data:e};p.events.push(t)}},track(e){if(p.enabled){const t={type:"TRACK",name:e.name,userSessionId:p.userSessionId,timestamp:Date.now(),data:e};p.events.push(t)}},view(e){if(p.enabled){const t={type:"VIEW",name:e.name,userSessionId:p.userSessionId,timestamp:Date.now(),data:e};p.events.push(t)}}},O=j({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),y={state:O,subscribe(e){return D(O,()=>e(O))},setChains(e){O.chains=e},setWalletConnectUri(e){O.walletConnectUri=e},setIsCustomDesktop(e){O.isCustomDesktop=e},setIsCustomMobile(e){O.isCustomMobile=e},setIsDataLoaded(e){O.isDataLoaded=e},setIsUiLoaded(e){O.isUiLoaded=e},setIsAuth(e){O.isAuth=e}},B=j({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),P={state:B,subscribe(e){return D(B,()=>e(B))},setConfig(e){var t,s;ue.initialize(),y.setChains(e.chains),y.setIsAuth(!!e.enableAuthMode),y.setIsCustomMobile(!!((t=e.mobileWallets)!=null&&t.length)),y.setIsCustomDesktop(!!((s=e.desktopWallets)!=null&&s.length)),u.setModalVersionInStorage(),Object.assign(B,e)}};var Ie=Object.defineProperty,oe=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,re=(e,t,s)=>t in e?Ie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Le=(e,t)=>{for(var s in t||(t={}))Oe.call(t,s)&&re(e,s,t[s]);if(oe)for(var s of oe(t))Ee.call(t,s)&&re(e,s,t[s]);return e};const Q="https://explorer-api.walletconnect.com",X="wcm",Y="js-2.6.2";async function K(e,t){const s=Le({sdkType:X,sdkVersion:Y},t),r=new URL(e,Q);return r.searchParams.append("projectId",P.state.projectId),Object.entries(s).forEach(([l,c])=>{c&&r.searchParams.append(l,String(c))}),(await fetch(r)).json()}const U={async getDesktopListings(e){return K("/w3m/v1/getDesktopListings",e)},async getMobileListings(e){return K("/w3m/v1/getMobileListings",e)},async getInjectedListings(e){return K("/w3m/v1/getInjectedListings",e)},async getAllListings(e){return K("/w3m/v1/getAllListings",e)},getWalletImageUrl(e){return`${Q}/w3m/v1/getWalletImage/${e}?projectId=${P.state.projectId}&sdkType=${X}&sdkVersion=${Y}`},getAssetImageUrl(e){return`${Q}/w3m/v1/getAssetImage/${e}?projectId=${P.state.projectId}&sdkType=${X}&sdkVersion=${Y}`}};var We=Object.defineProperty,ie=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,ae=(e,t,s)=>t in e?We(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,je=(e,t)=>{for(var s in t||(t={}))Ce.call(t,s)&&ae(e,s,t[s]);if(ie)for(var s of ie(t))Ae.call(t,s)&&ae(e,s,t[s]);return e};const le=u.isMobile(),E=j({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),Me={state:E,async getRecomendedWallets(){const{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=P.state;if(e==="NONE"||t==="ALL"&&!e)return E.recomendedWallets;if(u.isArray(e)){const s={recommendedIds:e.join(",")},{listings:r}=await U.getAllListings(s),l=Object.values(r);l.sort((c,m)=>{const f=e.indexOf(c.id),W=e.indexOf(m.id);return f-W}),E.recomendedWallets=l}else{const{chains:s,isAuth:r}=y.state,l=s==null?void 0:s.join(","),c=u.isArray(t),m={page:1,sdks:r?"auth_v1":void 0,entries:u.RECOMMENDED_WALLET_AMOUNT,chains:l,version:2,excludedIds:c?t.join(","):void 0},{listings:f}=le?await U.getMobileListings(m):await U.getDesktopListings(m);E.recomendedWallets=Object.values(f)}return E.recomendedWallets},async getWallets(e){const t=je({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:r}=P.state,{recomendedWallets:l}=E;if(r==="ALL")return E.wallets;l.length?t.excludedIds=l.map(I=>I.id).join(","):u.isArray(s)&&(t.excludedIds=s.join(",")),u.isArray(r)&&(t.excludedIds=[t.excludedIds,r].filter(Boolean).join(",")),y.state.isAuth&&(t.sdks="auth_v1");const{page:c,search:m}=e,{listings:f,total:W}=le?await U.getMobileListings(t):await U.getDesktopListings(t),n=Object.values(f),g=m?"search":"wallets";return E[g]={listings:[...E[g].listings,...n],total:W,page:c??1},{listings:n,total:W}},getWalletImageUrl(e){return U.getWalletImageUrl(e)},getAssetImageUrl(e){return U.getAssetImageUrl(e)},resetSearch(){E.search={listings:[],total:0,page:1}}},_=j({open:!1}),z={state:_,subscribe(e){return D(_,()=>e(_))},async open(e){return new Promise(t=>{const{isUiLoaded:s,isDataLoaded:r}=y.state;if(u.removeWalletConnectDeepLink(),y.setWalletConnectUri(e==null?void 0:e.uri),y.setChains(e==null?void 0:e.chains),ee.reset("ConnectWallet"),s&&r)_.open=!0,t();else{const l=setInterval(()=>{const c=y.state;c.isUiLoaded&&c.isDataLoaded&&(clearInterval(l),_.open=!0,t())},200)}})},close(){_.open=!1}};var Ue=Object.defineProperty,ce=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,de=(e,t,s)=>t in e?Ue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,De=(e,t)=>{for(var s in t||(t={}))Se.call(t,s)&&de(e,s,t[s]);if(ce)for(var s of ce(t))Pe.call(t,s)&&de(e,s,t[s]);return e};function ke(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}const T=j({themeMode:ke()?"dark":"light"}),Z={state:T,subscribe(e){return D(T,()=>e(T))},setThemeConfig(e){const{themeMode:t,themeVariables:s}=e;t&&(T.themeMode=t),s&&(T.themeVariables=De({},s))}},S=j({open:!1,message:"",variant:"success"}),Ne={state:S,subscribe(e){return D(S,()=>e(S))},openToast(e,t){S.open=!0,S.message=e,S.variant=t},closeToast(){S.open=!1}};class _e{constructor(t){this.openModal=z.open,this.closeModal=z.close,this.subscribeModal=z.subscribe,this.setTheme=Z.setThemeConfig,Z.setThemeConfig(t),P.setConfig(t),this.initUi()}async initUi(){if(typeof window<"u"){await Promise.resolve().then(()=>require("./index-D_q-W2ed.js"));const t=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",t),y.setIsUiLoaded(!0)}}}const Re=Object.freeze(Object.defineProperty({__proto__:null,WalletConnectModal:_e},Symbol.toStringTag,{value:"Module"}));exports.R=ue;exports.T=ee;exports.a=u;exports.index=Re;exports.ne=Z;exports.oe=Ne;exports.p=y;exports.se=z;exports.te=Me;exports.y=P;
|
|
1
|
+
"use strict";const me=Symbol(),se=Object.getPrototypeOf,G=new WeakMap,he=e=>e&&(G.has(e)?G.get(e):se(e)===Object.prototype||se(e)===Array.prototype),ge=e=>he(e)&&e[me]||null,ne=(e,t=!0)=>{G.set(e,t)};var H={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1,REACT_APP_CONNECT_VERSION:"0.3.17-beta.3-development"};const F=e=>typeof e=="object"&&e!==null,A=new WeakMap,x=new WeakSet,be=(e=Object.is,t=(n,g)=>new Proxy(n,g),s=n=>F(n)&&!x.has(n)&&(Array.isArray(n)||!(Symbol.iterator in n))&&!(n instanceof WeakMap)&&!(n instanceof WeakSet)&&!(n instanceof Error)&&!(n instanceof Number)&&!(n instanceof Date)&&!(n instanceof String)&&!(n instanceof RegExp)&&!(n instanceof ArrayBuffer),r=n=>{switch(n.status){case"fulfilled":return n.value;case"rejected":throw n.reason;default:throw n}},l=new WeakMap,c=(n,g,I=r)=>{const v=l.get(n);if((v==null?void 0:v[0])===g)return v[1];const w=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n));return ne(w,!0),l.set(n,[g,w]),Reflect.ownKeys(n).forEach(k=>{if(Object.getOwnPropertyDescriptor(w,k))return;const L=Reflect.get(n,k),M={value:L,enumerable:!0,configurable:!0};if(x.has(L))ne(L,!1);else if(L instanceof Promise)delete M.value,M.get=()=>I(L);else if(A.has(L)){const[b,q]=A.get(L);M.value=c(b,q(),I)}Object.defineProperty(w,k,M)}),Object.preventExtensions(w)},m=new WeakMap,f=[1,1],W=n=>{if(!F(n))throw new Error("object required");const g=m.get(n);if(g)return g;let I=f[0];const v=new Set,w=(a,i=++f[0])=>{I!==i&&(I=i,v.forEach(o=>o(a,i)))};let k=f[1];const L=(a=++f[1])=>(k!==a&&!v.size&&(k=a,b.forEach(([i])=>{const o=i[1](a);o>I&&(I=o)})),I),M=a=>(i,o)=>{const h=[...i];h[1]=[a,...h[1]],w(h,o)},b=new Map,q=(a,i)=>{if((H?"production":void 0)!=="production"&&b.has(a))throw new Error("prop listener already exists");if(v.size){const o=i[3](M(a));b.set(a,[i,o])}else b.set(a,[i])},te=a=>{var i;const o=b.get(a);o&&(b.delete(a),(i=o[1])==null||i.call(o))},pe=a=>(v.add(a),v.size===1&&b.forEach(([o,h],N)=>{if((H?"production":void 0)!=="production"&&h)throw new Error("remove already exists");const R=o[3](M(N));b.set(N,[o,R])}),()=>{v.delete(a),v.size===0&&b.forEach(([o,h],N)=>{h&&(h(),b.set(N,[o]))})}),J=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n)),$=t(J,{deleteProperty(a,i){const o=Reflect.get(a,i);te(i);const h=Reflect.deleteProperty(a,i);return h&&w(["delete",[i],o]),h},set(a,i,o,h){const N=Reflect.has(a,i),R=Reflect.get(a,i,h);if(N&&(e(R,o)||m.has(o)&&e(R,m.get(o))))return!0;te(i),F(o)&&(o=ge(o)||o);let V=o;if(o instanceof Promise)o.then(C=>{o.status="fulfilled",o.value=C,w(["resolve",[i],C])}).catch(C=>{o.status="rejected",o.reason=C,w(["reject",[i],C])});else{!A.has(o)&&s(o)&&(V=W(o));const C=!x.has(V)&&A.get(V);C&&q(i,C)}return Reflect.set(a,i,V,h),w(["set",[i],o,R]),!0}});m.set(n,$);const fe=[J,L,c,pe];return A.set($,fe),Reflect.ownKeys(n).forEach(a=>{const i=Object.getOwnPropertyDescriptor(n,a);"value"in i&&($[a]=n[a],delete i.value,delete i.writable),Object.defineProperty(J,a,i)}),$})=>[W,A,x,e,t,s,r,l,c,m,f],[ye]=be();function j(e={}){return ye(e)}function D(e,t,s){const r=A.get(e);(H?"production":void 0)!=="production"&&!r&&console.warn("Please use proxy object");let l;const c=[],m=r[3];let f=!1;const n=m(g=>{c.push(g),l||(l=Promise.resolve().then(()=>{l=void 0,f&&t(c.splice(0))}))});return f=!0,()=>{f=!1,n()}}function ve(e,t){const s=A.get(e);(H?"production":void 0)!=="production"&&!s&&console.warn("Please use proxy object");const[r,l,c]=s;return c(r,l(),t)}const d=j({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),ee={state:d,subscribe(e){return D(d,()=>e(d))},push(e,t){e!==d.view&&(d.view=e,t&&(d.data=t),d.history.push(e))},reset(e){d.view=e,d.history=[e]},replace(e){d.history.length>1&&(d.history[d.history.length-1]=e,d.view=e)},goBack(){if(d.history.length>1){d.history.pop();const[e]=d.history.slice(-1);d.view=e}},setData(e){d.data=e}},u={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile(){return typeof window<"u"?!!(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){return u.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isIos(){const e=navigator.userAgent.toLowerCase();return u.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isHttpUrl(e){return e.startsWith("http://")||e.startsWith("https://")},isArray(e){return Array.isArray(e)&&e.length>0},formatNativeUrl(e,t,s){if(u.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let r=e;r.includes("://")||(r=e.replaceAll("/","").replaceAll(":",""),r=`${r}://`),r.endsWith("/")||(r=`${r}/`),this.setWalletConnectDeepLink(r,s);const l=encodeURIComponent(t);return`${r}wc?uri=${l}`},formatUniversalUrl(e,t,s){if(!u.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let r=e;r.endsWith("/")||(r=`${r}/`),this.setWalletConnectDeepLink(r,s);const l=encodeURIComponent(t);return`${r}wc?uri=${l}`},async wait(e){return new Promise(t=>{setTimeout(t,e)})},openHref(e,t){window.open(e,t,"noreferrer noopener")},setWalletConnectDeepLink(e,t){try{localStorage.setItem(u.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}))}catch{console.info("Unable to set WalletConnect deep link")}},setWalletConnectAndroidDeepLink(e){try{const[t]=e.split("?");localStorage.setItem(u.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}))}catch{console.info("Unable to set WalletConnect android deep link")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(u.WALLETCONNECT_DEEPLINK_CHOICE)}catch{console.info("Unable to remove WalletConnect deep link")}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(u.WCM_VERSION,"2.6.2")}catch{console.info("Unable to set Web3Modal version in storage")}},getWalletRouterData(){var e;const t=(e=ee.state.data)==null?void 0:e.Wallet;if(!t)throw new Error('Missing "Wallet" view data');return t}},we=typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),p=j({enabled:we,userSessionId:"",events:[],connectedWalletId:void 0}),ue={state:p,subscribe(e){return D(p.events,()=>e(ve(p.events[p.events.length-1])))},initialize(){p.enabled&&typeof(crypto==null?void 0:crypto.randomUUID)<"u"&&(p.userSessionId=crypto.randomUUID())},setConnectedWalletId(e){p.connectedWalletId=e},click(e){if(p.enabled){const t={type:"CLICK",name:e.name,userSessionId:p.userSessionId,timestamp:Date.now(),data:e};p.events.push(t)}},track(e){if(p.enabled){const t={type:"TRACK",name:e.name,userSessionId:p.userSessionId,timestamp:Date.now(),data:e};p.events.push(t)}},view(e){if(p.enabled){const t={type:"VIEW",name:e.name,userSessionId:p.userSessionId,timestamp:Date.now(),data:e};p.events.push(t)}}},O=j({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),y={state:O,subscribe(e){return D(O,()=>e(O))},setChains(e){O.chains=e},setWalletConnectUri(e){O.walletConnectUri=e},setIsCustomDesktop(e){O.isCustomDesktop=e},setIsCustomMobile(e){O.isCustomMobile=e},setIsDataLoaded(e){O.isDataLoaded=e},setIsUiLoaded(e){O.isUiLoaded=e},setIsAuth(e){O.isAuth=e}},B=j({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),P={state:B,subscribe(e){return D(B,()=>e(B))},setConfig(e){var t,s;ue.initialize(),y.setChains(e.chains),y.setIsAuth(!!e.enableAuthMode),y.setIsCustomMobile(!!((t=e.mobileWallets)!=null&&t.length)),y.setIsCustomDesktop(!!((s=e.desktopWallets)!=null&&s.length)),u.setModalVersionInStorage(),Object.assign(B,e)}};var Ie=Object.defineProperty,oe=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,re=(e,t,s)=>t in e?Ie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Le=(e,t)=>{for(var s in t||(t={}))Oe.call(t,s)&&re(e,s,t[s]);if(oe)for(var s of oe(t))Ee.call(t,s)&&re(e,s,t[s]);return e};const Q="https://explorer-api.walletconnect.com",X="wcm",Y="js-2.6.2";async function K(e,t){const s=Le({sdkType:X,sdkVersion:Y},t),r=new URL(e,Q);return r.searchParams.append("projectId",P.state.projectId),Object.entries(s).forEach(([l,c])=>{c&&r.searchParams.append(l,String(c))}),(await fetch(r)).json()}const U={async getDesktopListings(e){return K("/w3m/v1/getDesktopListings",e)},async getMobileListings(e){return K("/w3m/v1/getMobileListings",e)},async getInjectedListings(e){return K("/w3m/v1/getInjectedListings",e)},async getAllListings(e){return K("/w3m/v1/getAllListings",e)},getWalletImageUrl(e){return`${Q}/w3m/v1/getWalletImage/${e}?projectId=${P.state.projectId}&sdkType=${X}&sdkVersion=${Y}`},getAssetImageUrl(e){return`${Q}/w3m/v1/getAssetImage/${e}?projectId=${P.state.projectId}&sdkType=${X}&sdkVersion=${Y}`}};var We=Object.defineProperty,ie=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,ae=(e,t,s)=>t in e?We(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,je=(e,t)=>{for(var s in t||(t={}))Ce.call(t,s)&&ae(e,s,t[s]);if(ie)for(var s of ie(t))Ae.call(t,s)&&ae(e,s,t[s]);return e};const le=u.isMobile(),E=j({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),Me={state:E,async getRecomendedWallets(){const{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=P.state;if(e==="NONE"||t==="ALL"&&!e)return E.recomendedWallets;if(u.isArray(e)){const s={recommendedIds:e.join(",")},{listings:r}=await U.getAllListings(s),l=Object.values(r);l.sort((c,m)=>{const f=e.indexOf(c.id),W=e.indexOf(m.id);return f-W}),E.recomendedWallets=l}else{const{chains:s,isAuth:r}=y.state,l=s==null?void 0:s.join(","),c=u.isArray(t),m={page:1,sdks:r?"auth_v1":void 0,entries:u.RECOMMENDED_WALLET_AMOUNT,chains:l,version:2,excludedIds:c?t.join(","):void 0},{listings:f}=le?await U.getMobileListings(m):await U.getDesktopListings(m);E.recomendedWallets=Object.values(f)}return E.recomendedWallets},async getWallets(e){const t=je({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:r}=P.state,{recomendedWallets:l}=E;if(r==="ALL")return E.wallets;l.length?t.excludedIds=l.map(I=>I.id).join(","):u.isArray(s)&&(t.excludedIds=s.join(",")),u.isArray(r)&&(t.excludedIds=[t.excludedIds,r].filter(Boolean).join(",")),y.state.isAuth&&(t.sdks="auth_v1");const{page:c,search:m}=e,{listings:f,total:W}=le?await U.getMobileListings(t):await U.getDesktopListings(t),n=Object.values(f),g=m?"search":"wallets";return E[g]={listings:[...E[g].listings,...n],total:W,page:c??1},{listings:n,total:W}},getWalletImageUrl(e){return U.getWalletImageUrl(e)},getAssetImageUrl(e){return U.getAssetImageUrl(e)},resetSearch(){E.search={listings:[],total:0,page:1}}},_=j({open:!1}),z={state:_,subscribe(e){return D(_,()=>e(_))},async open(e){return new Promise(t=>{const{isUiLoaded:s,isDataLoaded:r}=y.state;if(u.removeWalletConnectDeepLink(),y.setWalletConnectUri(e==null?void 0:e.uri),y.setChains(e==null?void 0:e.chains),ee.reset("ConnectWallet"),s&&r)_.open=!0,t();else{const l=setInterval(()=>{const c=y.state;c.isUiLoaded&&c.isDataLoaded&&(clearInterval(l),_.open=!0,t())},200)}})},close(){_.open=!1}};var Ue=Object.defineProperty,ce=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,de=(e,t,s)=>t in e?Ue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,De=(e,t)=>{for(var s in t||(t={}))Se.call(t,s)&&de(e,s,t[s]);if(ce)for(var s of ce(t))Pe.call(t,s)&&de(e,s,t[s]);return e};function ke(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}const T=j({themeMode:ke()?"dark":"light"}),Z={state:T,subscribe(e){return D(T,()=>e(T))},setThemeConfig(e){const{themeMode:t,themeVariables:s}=e;t&&(T.themeMode=t),s&&(T.themeVariables=De({},s))}},S=j({open:!1,message:"",variant:"success"}),Ne={state:S,subscribe(e){return D(S,()=>e(S))},openToast(e,t){S.open=!0,S.message=e,S.variant=t},closeToast(){S.open=!1}};class _e{constructor(t){this.openModal=z.open,this.closeModal=z.close,this.subscribeModal=z.subscribe,this.setTheme=Z.setThemeConfig,Z.setThemeConfig(t),P.setConfig(t),this.initUi()}async initUi(){if(typeof window<"u"){await Promise.resolve().then(()=>require("./index-B6hetPgC.js"));const t=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",t),y.setIsUiLoaded(!0)}}}const Re=Object.freeze(Object.defineProperty({__proto__:null,WalletConnectModal:_e},Symbol.toStringTag,{value:"Module"}));exports.R=ue;exports.T=ee;exports.a=u;exports.index=Re;exports.ne=Z;exports.oe=Ne;exports.p=y;exports.se=z;exports.te=Me;exports.y=P;
|
|
@@ -17,11 +17,11 @@ var fn = (r, t, e, n) => ({
|
|
|
17
17
|
return h(r, t, n);
|
|
18
18
|
}
|
|
19
19
|
}), v = (r, t, e) => (Ce(r, t, "access private method"), e);
|
|
20
|
-
import { bM as rt, bW as Lt, bX as De, by as Ve, bb as ce, bY as Bt, at as Be, bZ as Hn, aB as Cr, bp as Me, az as hn, b_ as Br, ax as dn, bN as Fr, b$ as Lr } from "./index-
|
|
21
|
-
import { E as _r, a as $r } from "./index-
|
|
22
|
-
import "./index-
|
|
23
|
-
import { E as pn, a as gn, b as Fe, c as Dr, _ as Vr } from "./evm-
|
|
24
|
-
import { r as Mr } from "./chain-
|
|
20
|
+
import { bM as rt, bW as Lt, bX as De, by as Ve, bb as ce, bY as Bt, at as Be, bZ as Hn, aB as Cr, bp as Me, az as hn, b_ as Br, ax as dn, bN as Fr, b$ as Lr } from "./index-rnxTGwT0.mjs";
|
|
21
|
+
import { E as _r, a as $r } from "./index-CdxUfm3L.mjs";
|
|
22
|
+
import "./index-DZQTbX1d.mjs";
|
|
23
|
+
import { E as pn, a as gn, b as Fe, c as Dr, _ as Vr } from "./evm-D5UX3Vr1.mjs";
|
|
24
|
+
import { r as Mr } from "./chain-md6r5NL6.mjs";
|
|
25
25
|
const Gr = "6.12.1";
|
|
26
26
|
function Hr(r, t, e) {
|
|
27
27
|
const n = t.split("|").map((i) => i.trim());
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as P,
|
|
1
|
+
import { o as P, d as Z, q as Ye, bV as Ze, as as it } from "./index-rnxTGwT0.mjs";
|
|
2
2
|
var Je = {}, Qe = { exports: {} }, je = {};
|
|
3
3
|
(function(o) {
|
|
4
4
|
o.fetch = n(P.fetch) && n(P.ReadableStream), o.writableStream = n(P.WritableStream), o.abortController = n(P.AbortController);
|
|
@@ -33,13 +33,13 @@ var Je = {}, Qe = { exports: {} }, je = {};
|
|
|
33
33
|
}
|
|
34
34
|
r = null;
|
|
35
35
|
})(je);
|
|
36
|
-
var
|
|
36
|
+
var qe = {}, We = je, ft = Ye, et = Ze, Ae = qe.readyStates = {
|
|
37
37
|
UNSENT: 0,
|
|
38
38
|
OPENED: 1,
|
|
39
39
|
HEADERS_RECEIVED: 2,
|
|
40
40
|
LOADING: 3,
|
|
41
41
|
DONE: 4
|
|
42
|
-
}, $e =
|
|
42
|
+
}, $e = qe.IncomingMessage = function(o, r, h, f) {
|
|
43
43
|
var n = this;
|
|
44
44
|
if (et.Readable.call(n), n._mode = h, n.headers = {}, n.rawHeaders = [], n.trailers = {}, n.rawTrailers = [], n.on("end", function() {
|
|
45
45
|
Z.process.nextTick(function() {
|
|
@@ -147,11 +147,11 @@ $e.prototype._onXHRProgress = function(o) {
|
|
|
147
147
|
}
|
|
148
148
|
r._xhr.readyState === Ae.DONE && r._mode !== "ms-stream" && (o(!0), r.push(null));
|
|
149
149
|
};
|
|
150
|
-
var he = je, ht = Ye
|
|
150
|
+
var he = je, ht = Ye, tt = qe, ke = Ze, ut = tt.IncomingMessage, Ke = tt.readyStates;
|
|
151
151
|
function ct(o, r) {
|
|
152
152
|
return he.fetch && r ? "fetch" : he.mozchunkedarraybuffer ? "moz-chunked-arraybuffer" : he.msstream ? "ms-stream" : he.arraybuffer && o ? "arraybuffer" : "text";
|
|
153
153
|
}
|
|
154
|
-
var
|
|
154
|
+
var S = Qe.exports = function(o) {
|
|
155
155
|
var r = this;
|
|
156
156
|
ke.Writable.call(r), r._opts = o, r._body = [], r._headers = {}, o.auth && r.setHeader("Authorization", "Basic " + Z.Buffer.from(o.auth).toString("base64")), Object.keys(o.headers).forEach(function(n) {
|
|
157
157
|
r.setHeader(n, o.headers[n]);
|
|
@@ -171,23 +171,23 @@ var I = Qe.exports = function(o) {
|
|
|
171
171
|
r._onFinish();
|
|
172
172
|
});
|
|
173
173
|
};
|
|
174
|
-
ht(
|
|
175
|
-
|
|
174
|
+
ht(S, ke.Writable);
|
|
175
|
+
S.prototype.setHeader = function(o, r) {
|
|
176
176
|
var h = this, f = o.toLowerCase();
|
|
177
177
|
pt.indexOf(f) === -1 && (h._headers[f] = {
|
|
178
178
|
name: o,
|
|
179
179
|
value: r
|
|
180
180
|
});
|
|
181
181
|
};
|
|
182
|
-
|
|
182
|
+
S.prototype.getHeader = function(o) {
|
|
183
183
|
var r = this._headers[o.toLowerCase()];
|
|
184
184
|
return r ? r.value : null;
|
|
185
185
|
};
|
|
186
|
-
|
|
186
|
+
S.prototype.removeHeader = function(o) {
|
|
187
187
|
var r = this;
|
|
188
188
|
delete r._headers[o.toLowerCase()];
|
|
189
189
|
};
|
|
190
|
-
|
|
190
|
+
S.prototype._onFinish = function() {
|
|
191
191
|
var o = this;
|
|
192
192
|
if (!o._destroyed) {
|
|
193
193
|
var r = o._opts;
|
|
@@ -267,43 +267,43 @@ function lt(o) {
|
|
|
267
267
|
return !1;
|
|
268
268
|
}
|
|
269
269
|
}
|
|
270
|
-
|
|
270
|
+
S.prototype._onXHRProgress = function() {
|
|
271
271
|
var o = this;
|
|
272
272
|
o._resetTimers(!1), !(!lt(o._xhr) || o._destroyed) && (o._response || o._connect(), o._response._onXHRProgress(o._resetTimers.bind(o)));
|
|
273
273
|
};
|
|
274
|
-
|
|
274
|
+
S.prototype._connect = function() {
|
|
275
275
|
var o = this;
|
|
276
276
|
o._destroyed || (o._response = new ut(o._xhr, o._fetchResponse, o._mode, o._resetTimers.bind(o)), o._response.on("error", function(r) {
|
|
277
277
|
o.emit("error", r);
|
|
278
278
|
}), o.emit("response", o._response));
|
|
279
279
|
};
|
|
280
|
-
|
|
280
|
+
S.prototype._write = function(o, r, h) {
|
|
281
281
|
var f = this;
|
|
282
282
|
f._body.push(o), h();
|
|
283
283
|
};
|
|
284
|
-
|
|
284
|
+
S.prototype._resetTimers = function(o) {
|
|
285
285
|
var r = this;
|
|
286
286
|
P.clearTimeout(r._socketTimer), r._socketTimer = null, o ? (P.clearTimeout(r._fetchTimer), r._fetchTimer = null) : r._socketTimeout && (r._socketTimer = P.setTimeout(function() {
|
|
287
287
|
r.emit("timeout");
|
|
288
288
|
}, r._socketTimeout));
|
|
289
289
|
};
|
|
290
|
-
|
|
290
|
+
S.prototype.abort = S.prototype.destroy = function(o) {
|
|
291
291
|
var r = this;
|
|
292
292
|
r._destroyed = !0, r._resetTimers(!0), r._response && (r._response._destroyed = !0), r._xhr ? r._xhr.abort() : r._fetchAbortController && r._fetchAbortController.abort(), o && r.emit("error", o);
|
|
293
293
|
};
|
|
294
|
-
|
|
294
|
+
S.prototype.end = function(o, r, h) {
|
|
295
295
|
var f = this;
|
|
296
296
|
typeof o == "function" && (h = o, o = void 0), ke.Writable.prototype.end.call(f, o, r, h);
|
|
297
297
|
};
|
|
298
|
-
|
|
298
|
+
S.prototype.setTimeout = function(o, r) {
|
|
299
299
|
var h = this;
|
|
300
300
|
r && h.once("timeout", r), h._socketTimeout = o, h._resetTimers(!1);
|
|
301
301
|
};
|
|
302
|
-
|
|
302
|
+
S.prototype.flushHeaders = function() {
|
|
303
303
|
};
|
|
304
|
-
|
|
304
|
+
S.prototype.setNoDelay = function() {
|
|
305
305
|
};
|
|
306
|
-
|
|
306
|
+
S.prototype.setSocketKeepAlive = function() {
|
|
307
307
|
};
|
|
308
308
|
var pt = [
|
|
309
309
|
"accept-charset",
|
|
@@ -398,14 +398,14 @@ var gt = {
|
|
|
398
398
|
509: "Bandwidth Limit Exceeded",
|
|
399
399
|
510: "Not Extended",
|
|
400
400
|
511: "Network Authentication Required"
|
|
401
|
-
}, He = { exports: {} },
|
|
401
|
+
}, He = { exports: {} }, xe = { exports: {} };
|
|
402
402
|
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
403
|
-
|
|
403
|
+
xe.exports;
|
|
404
404
|
(function(o, r) {
|
|
405
405
|
(function(h) {
|
|
406
406
|
var f = r && !r.nodeType && r, n = o && !o.nodeType && o, g = typeof P == "object" && P;
|
|
407
407
|
(g.global === g || g.window === g || g.self === g) && (h = g);
|
|
408
|
-
var u, a = 2147483647, v = 36, T = 1, C = 26, m = 38, A = 700, te = 72, ae = 128,
|
|
408
|
+
var u, a = 2147483647, v = 36, T = 1, C = 26, m = 38, A = 700, te = 72, ae = 128, I = "-", Oe = /^xn--/, Ee = /[^\x20-\x7E]/, Ue = /[\x2E\u3002\uFF0E\uFF61]/g, Le = {
|
|
409
409
|
overflow: "Overflow: input needs wider integers to process",
|
|
410
410
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
411
411
|
"invalid-input": "Invalid input"
|
|
@@ -448,25 +448,25 @@ qe.exports;
|
|
|
448
448
|
return M(b + (pe + 1) * i / (i + m));
|
|
449
449
|
}
|
|
450
450
|
function we(i) {
|
|
451
|
-
var p = [], y = i.length, b, w = 0, U = ae,
|
|
452
|
-
for (R = i.lastIndexOf(
|
|
451
|
+
var p = [], y = i.length, b, w = 0, U = ae, x = te, R, N, B, G, L, H, k, V, Q;
|
|
452
|
+
for (R = i.lastIndexOf(I), R < 0 && (R = 0), N = 0; N < R; ++N)
|
|
453
453
|
i.charCodeAt(N) >= 128 && J("not-basic"), p.push(i.charCodeAt(N));
|
|
454
454
|
for (B = R > 0 ? R + 1 : 0; B < y; ) {
|
|
455
|
-
for (G = w, L = 1, H = v; B >= y && J("invalid-input"), k = oe(i.charCodeAt(B++)), (k >= v || k > M((a - w) / L)) && J("overflow"), w += k * L, V = H <=
|
|
455
|
+
for (G = w, L = 1, H = v; B >= y && J("invalid-input"), k = oe(i.charCodeAt(B++)), (k >= v || k > M((a - w) / L)) && J("overflow"), w += k * L, V = H <= x ? T : H >= x + C ? C : H - x, !(k < V); H += v)
|
|
456
456
|
Q = v - V, L > M(a / Q) && J("overflow"), L *= Q;
|
|
457
|
-
b = p.length + 1,
|
|
457
|
+
b = p.length + 1, x = ne(w - G, b, G == 0), M(w / b) > a - U && J("overflow"), U += M(w / b), w %= b, p.splice(w++, 0, U);
|
|
458
458
|
}
|
|
459
459
|
return ue(p);
|
|
460
460
|
}
|
|
461
461
|
function Re(i) {
|
|
462
|
-
var p, y, b, w, U,
|
|
463
|
-
for (i = Te(i), k = i.length, p = ae, y = 0, U = te,
|
|
464
|
-
L = i[
|
|
465
|
-
for (b = w = H.length, w && H.push(
|
|
466
|
-
for (R = a,
|
|
467
|
-
L = i[
|
|
468
|
-
for (V = b + 1, R - p > M((a - y) / V) && J("overflow"), y += (R - p) * V, p = R,
|
|
469
|
-
if (L = i[
|
|
462
|
+
var p, y, b, w, U, x, R, N, B, G, L, H = [], k, V, Q, me;
|
|
463
|
+
for (i = Te(i), k = i.length, p = ae, y = 0, U = te, x = 0; x < k; ++x)
|
|
464
|
+
L = i[x], L < 128 && H.push(re(L));
|
|
465
|
+
for (b = w = H.length, w && H.push(I); b < k; ) {
|
|
466
|
+
for (R = a, x = 0; x < k; ++x)
|
|
467
|
+
L = i[x], L >= p && L < R && (R = L);
|
|
468
|
+
for (V = b + 1, R - p > M((a - y) / V) && J("overflow"), y += (R - p) * V, p = R, x = 0; x < k; ++x)
|
|
469
|
+
if (L = i[x], L < p && ++y > a && J("overflow"), L == p) {
|
|
470
470
|
for (N = y, B = v; G = B <= U ? T : B >= U + C ? C : B - U, !(N < G); B += v)
|
|
471
471
|
me = N - G, Q = v - G, H.push(
|
|
472
472
|
re(ce(G + me % Q, 0))
|
|
@@ -482,7 +482,7 @@ qe.exports;
|
|
|
482
482
|
return Oe.test(p) ? we(p.slice(4).toLowerCase()) : p;
|
|
483
483
|
});
|
|
484
484
|
}
|
|
485
|
-
function
|
|
485
|
+
function Se(i) {
|
|
486
486
|
return be(i, function(p) {
|
|
487
487
|
return Ee.test(p) ? "xn--" + Re(p) : p;
|
|
488
488
|
});
|
|
@@ -507,7 +507,7 @@ qe.exports;
|
|
|
507
507
|
},
|
|
508
508
|
decode: we,
|
|
509
509
|
encode: Re,
|
|
510
|
-
toASCII:
|
|
510
|
+
toASCII: Se,
|
|
511
511
|
toUnicode: Pe
|
|
512
512
|
}, f && n)
|
|
513
513
|
if (o.exports == f)
|
|
@@ -518,8 +518,8 @@ qe.exports;
|
|
|
518
518
|
else
|
|
519
519
|
h.punycode = u;
|
|
520
520
|
})(P);
|
|
521
|
-
})(
|
|
522
|
-
var _t =
|
|
521
|
+
})(xe, xe.exports);
|
|
522
|
+
var _t = xe.exports;
|
|
523
523
|
(function(o, r) {
|
|
524
524
|
Object.defineProperty(r, "__esModule", { value: !0 });
|
|
525
525
|
var h = _t, f = it;
|
|
@@ -539,8 +539,8 @@ var _t = qe.exports;
|
|
|
539
539
|
isNullOrUndefined: function(e) {
|
|
540
540
|
return e == null;
|
|
541
541
|
}
|
|
542
|
-
}, v = g.default, T = a, C = ne, m = Re, A = Pe, te = we, ae =
|
|
543
|
-
function
|
|
542
|
+
}, v = g.default, T = a, C = ne, m = Re, A = Pe, te = we, ae = I;
|
|
543
|
+
function I() {
|
|
544
544
|
this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null;
|
|
545
545
|
}
|
|
546
546
|
var Oe = /^([a-z0-9.+-]+:)/i, Ee = /:[0-9]*$/, Ue = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, Le = ["<", ">", '"', "`", " ", "\r", `
|
|
@@ -563,12 +563,12 @@ var _t = qe.exports;
|
|
|
563
563
|
"file:": !0
|
|
564
564
|
}, ce = u.default;
|
|
565
565
|
function ne(e, s, t) {
|
|
566
|
-
if (e && T.isObject(e) && e instanceof
|
|
566
|
+
if (e && T.isObject(e) && e instanceof I)
|
|
567
567
|
return e;
|
|
568
|
-
var l = new
|
|
568
|
+
var l = new I();
|
|
569
569
|
return l.parse(e, s, t), l;
|
|
570
570
|
}
|
|
571
|
-
|
|
571
|
+
I.prototype.parse = function(e, s, t) {
|
|
572
572
|
if (!T.isString(e))
|
|
573
573
|
throw new TypeError("Parameter 'url' must be a string, not " + typeof e);
|
|
574
574
|
var l = e.indexOf("?"), _ = l !== -1 && l < e.indexOf("#") ? "?" : "#", D = e.split(_), j = /\\/g;
|
|
@@ -579,17 +579,17 @@ var _t = qe.exports;
|
|
|
579
579
|
if (W)
|
|
580
580
|
return this.path = c, this.href = c, this.pathname = W[1], W[2] ? (this.search = W[2], s ? this.query = ce.parse(this.search.substr(1)) : this.query = this.search.substr(1)) : s && (this.search = "", this.query = {}), this;
|
|
581
581
|
}
|
|
582
|
-
var
|
|
583
|
-
if (
|
|
584
|
-
|
|
585
|
-
var fe =
|
|
586
|
-
this.protocol = fe, c = c.substr(
|
|
582
|
+
var q = Oe.exec(c);
|
|
583
|
+
if (q) {
|
|
584
|
+
q = q[0];
|
|
585
|
+
var fe = q.toLowerCase();
|
|
586
|
+
this.protocol = fe, c = c.substr(q.length);
|
|
587
587
|
}
|
|
588
|
-
if (t ||
|
|
588
|
+
if (t || q || c.match(/^\/\/[^@\/]+@[^@\/]+/)) {
|
|
589
589
|
var ve = c.substr(0, 2) === "//";
|
|
590
|
-
ve && !(
|
|
590
|
+
ve && !(q && ue[q]) && (c = c.substr(2), this.slashes = !0);
|
|
591
591
|
}
|
|
592
|
-
if (!ue[
|
|
592
|
+
if (!ue[q] && (ve || q && !oe[q])) {
|
|
593
593
|
for (var F = -1, O = 0; O < ie.length; O++) {
|
|
594
594
|
var ee = c.indexOf(ie[O]);
|
|
595
595
|
ee !== -1 && (F === -1 || ee < F) && (F = ee);
|
|
@@ -606,7 +606,7 @@ var _t = qe.exports;
|
|
|
606
606
|
for (var d = this.hostname.split(/\./), O = 0, E = d.length; O < E; O++) {
|
|
607
607
|
var K = d[O];
|
|
608
608
|
if (K && !K.match(de)) {
|
|
609
|
-
for (var z = "", X = 0,
|
|
609
|
+
for (var z = "", X = 0, Ie = K.length; X < Ie; X++)
|
|
610
610
|
K.charCodeAt(X) > 127 ? z += "x" : z += K[X];
|
|
611
611
|
if (!z.match(de)) {
|
|
612
612
|
var se = d.slice(0, O), Y = d.slice(O + 1), le = K.match(be);
|
|
@@ -637,9 +637,9 @@ var _t = qe.exports;
|
|
|
637
637
|
return this.href = this.format(), this;
|
|
638
638
|
};
|
|
639
639
|
function we(e) {
|
|
640
|
-
return T.isString(e) && (e = ne(e)), e instanceof
|
|
640
|
+
return T.isString(e) && (e = ne(e)), e instanceof I ? e.format() : I.prototype.format.call(e);
|
|
641
641
|
}
|
|
642
|
-
|
|
642
|
+
I.prototype.format = function() {
|
|
643
643
|
var e = this.auth || "";
|
|
644
644
|
e && (e = encodeURIComponent(e), e = e.replace(/%3A/i, ":"), e += "@");
|
|
645
645
|
var s = this.protocol || "", t = this.pathname || "", l = this.hash || "", _ = !1, D = "";
|
|
@@ -652,18 +652,18 @@ var _t = qe.exports;
|
|
|
652
652
|
function Re(e, s) {
|
|
653
653
|
return ne(e, !1, !0).resolve(s);
|
|
654
654
|
}
|
|
655
|
-
|
|
655
|
+
I.prototype.resolve = function(e) {
|
|
656
656
|
return this.resolveObject(ne(e, !1, !0)).format();
|
|
657
657
|
};
|
|
658
658
|
function Pe(e, s) {
|
|
659
659
|
return e ? ne(e, !1, !0).resolveObject(s) : s;
|
|
660
660
|
}
|
|
661
|
-
|
|
661
|
+
I.prototype.resolveObject = function(e) {
|
|
662
662
|
if (T.isString(e)) {
|
|
663
|
-
var s = new
|
|
663
|
+
var s = new I();
|
|
664
664
|
s.parse(e, !1, !0), e = s;
|
|
665
665
|
}
|
|
666
|
-
for (var t = new
|
|
666
|
+
for (var t = new I(), l = Object.keys(this), _ = 0; _ < l.length; _++) {
|
|
667
667
|
var D = l[_];
|
|
668
668
|
t[D] = this[D];
|
|
669
669
|
}
|
|
@@ -678,8 +678,8 @@ var _t = qe.exports;
|
|
|
678
678
|
}
|
|
679
679
|
if (e.protocol && e.protocol !== t.protocol) {
|
|
680
680
|
if (!oe[e.protocol]) {
|
|
681
|
-
for (var
|
|
682
|
-
var ve =
|
|
681
|
+
for (var q = Object.keys(e), fe = 0; fe < q.length; fe++) {
|
|
682
|
+
var ve = q[fe];
|
|
683
683
|
t[ve] = e[ve];
|
|
684
684
|
}
|
|
685
685
|
return t.href = t.format(), t;
|
|
@@ -711,12 +711,12 @@ var _t = qe.exports;
|
|
|
711
711
|
}
|
|
712
712
|
if (!d.length)
|
|
713
713
|
return t.pathname = null, t.search ? t.path = "/" + t.search : t.path = null, t.href = t.format(), t;
|
|
714
|
-
for (var X = d.slice(-1)[0],
|
|
714
|
+
for (var X = d.slice(-1)[0], Ie = (t.host || e.host || d.length > 1) && (X === "." || X === "..") || X === "", se = 0, Y = d.length; Y >= 0; Y--)
|
|
715
715
|
X = d[Y], X === "." ? d.splice(Y, 1) : X === ".." ? (d.splice(Y, 1), se++) : se && (d.splice(Y, 1), se--);
|
|
716
716
|
if (!$ && !ge)
|
|
717
717
|
for (; se--; se)
|
|
718
718
|
d.unshift("..");
|
|
719
|
-
$ && d[0] !== "" && (!d[0] || d[0].charAt(0) !== "/") && d.unshift(""),
|
|
719
|
+
$ && d[0] !== "" && (!d[0] || d[0].charAt(0) !== "/") && d.unshift(""), Ie && d.join("/").substr(-1) !== "/" && d.push("");
|
|
720
720
|
var le = d[0] === "" || d[0] && d[0].charAt(0) === "/";
|
|
721
721
|
if (K) {
|
|
722
722
|
t.hostname = t.host = le ? "" : d.length ? d.shift() : "";
|
|
@@ -724,11 +724,11 @@ var _t = qe.exports;
|
|
|
724
724
|
z && (t.auth = z.shift(), t.host = t.hostname = z.shift());
|
|
725
725
|
}
|
|
726
726
|
return $ = $ || t.host && d.length, $ && !le && d.unshift(""), d.length ? t.pathname = d.join("/") : (t.pathname = null, t.path = null), (!T.isNull(t.pathname) || !T.isNull(t.search)) && (t.path = (t.pathname ? t.pathname : "") + (t.search ? t.search : "")), t.auth = e.auth || t.auth, t.slashes = t.slashes || e.slashes, t.href = t.format(), t;
|
|
727
|
-
},
|
|
727
|
+
}, I.prototype.parseHost = function() {
|
|
728
728
|
var e = this.host, s = Ee.exec(e);
|
|
729
729
|
s && (s = s[0], s !== ":" && (this.port = s.substr(1)), e = e.substr(0, e.length - s.length)), e && (this.hostname = e);
|
|
730
730
|
};
|
|
731
|
-
function
|
|
731
|
+
function Se(e, s) {
|
|
732
732
|
for (var t = 0, l = e.length - 1; l >= 0; l--) {
|
|
733
733
|
var _ = e[l];
|
|
734
734
|
_ === "." ? e.splice(l, 1) : _ === ".." ? (e.splice(l, 1), t++) : t && (e.splice(l, 1), t--);
|
|
@@ -747,7 +747,7 @@ var _t = qe.exports;
|
|
|
747
747
|
continue;
|
|
748
748
|
e = l + "/" + e, s = l.charAt(0) === "/";
|
|
749
749
|
}
|
|
750
|
-
return e =
|
|
750
|
+
return e = Se(p(e.split("/"), function(_) {
|
|
751
751
|
return !!_;
|
|
752
752
|
}), !s).join("/"), (s ? "/" : "") + e || ".";
|
|
753
753
|
}
|
|
@@ -782,7 +782,7 @@ var _t = qe.exports;
|
|
|
782
782
|
), U = (
|
|
783
783
|
/** @type {resolveImport}*/
|
|
784
784
|
m
|
|
785
|
-
),
|
|
785
|
+
), x = (
|
|
786
786
|
/** @type {UrlImport}*/
|
|
787
787
|
ae
|
|
788
788
|
), R = y.URL, N = y.URLSearchParams, B = /%/g, G = /\\/g, L = /\n/g, H = /\r/g, k = /\t/g, V = 47;
|
|
@@ -859,15 +859,15 @@ var _t = qe.exports;
|
|
|
859
859
|
return b(s);
|
|
860
860
|
if (typeof t != "object" || t === null)
|
|
861
861
|
throw new TypeError('The "options" argument must be of type object.');
|
|
862
|
-
var j = (l = t.auth) != null ? l : !0, c = (_ = t.fragment) != null ? _ : !0, W = (D = t.search) != null ? D : !0,
|
|
863
|
-
return j || (
|
|
862
|
+
var j = (l = t.auth) != null ? l : !0, c = (_ = t.fragment) != null ? _ : !0, W = (D = t.search) != null ? D : !0, q = new R(s.toString());
|
|
863
|
+
return j || (q.username = "", q.password = ""), c || (q.hash = ""), W || (q.search = ""), q.toString();
|
|
864
864
|
}
|
|
865
865
|
), Ve = {
|
|
866
866
|
format: Xe,
|
|
867
867
|
parse: w,
|
|
868
868
|
resolve: U,
|
|
869
869
|
resolveObject: A,
|
|
870
|
-
Url:
|
|
870
|
+
Url: x,
|
|
871
871
|
URL: R,
|
|
872
872
|
URLSearchParams: N,
|
|
873
873
|
domainToASCII: De,
|
|
@@ -875,11 +875,11 @@ var _t = qe.exports;
|
|
|
875
875
|
pathToFileURL: Ge,
|
|
876
876
|
fileURLToPath: ze
|
|
877
877
|
};
|
|
878
|
-
r.URL = R, r.URLSearchParams = N, r.Url =
|
|
878
|
+
r.URL = R, r.URLSearchParams = N, r.Url = x, r.default = Ve, r.domainToASCII = De, r.domainToUnicode = Be, r.fileURLToPath = ze, r.format = Xe, r.parse = w, r.pathToFileURL = Ge, r.resolve = U, r.resolveObject = A, r = o.exports = Ve;
|
|
879
879
|
})(He, He.exports);
|
|
880
880
|
var rt = He.exports;
|
|
881
881
|
(function(o) {
|
|
882
|
-
var r = dt, h =
|
|
882
|
+
var r = dt, h = qe, f = mt, n = gt, g = rt, u = o;
|
|
883
883
|
u.request = function(a, v) {
|
|
884
884
|
typeof a == "string" ? a = g.parse(a) : a = f(a);
|
|
885
885
|
var T = P.location.protocol.search(/^https?:$/) === -1 ? "http:" : "", C = a.protocol || T, m = a.hostname || a.host, A = a.port, te = a.path || "/";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var m = Object.defineProperty;
|
|
2
2
|
var w = (c, e, r) => e in c ? m(c, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : c[e] = r;
|
|
3
3
|
var a = (c, e, r) => (w(c, typeof e != "symbol" ? e + "" : e, r), r);
|
|
4
|
-
import { C as p, _ as u } from "./cosmwasm-
|
|
5
|
-
import { c as g } from "./create-
|
|
6
|
-
import { au as l, at as h } from "./index-
|
|
7
|
-
import { r as f } from "./chain-
|
|
4
|
+
import { C as p, _ as u } from "./cosmwasm-Djw061YG.mjs";
|
|
5
|
+
import { c as g } from "./create-C2UDX1nb.mjs";
|
|
6
|
+
import { au as l, at as h } from "./index-rnxTGwT0.mjs";
|
|
7
|
+
import { r as f } from "./chain-md6r5NL6.mjs";
|
|
8
8
|
class i {
|
|
9
9
|
constructor(e, r, s, t) {
|
|
10
10
|
a(this, "network");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./solana-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./solana-WdevUNt0.js"),e=require("./index-DrW_Srs7.js");class s extends Error{constructor(t){super(t)}}class n extends s{constructor(){super(...arguments),this.name="TokenOwnerOffCurveError"}}const u=e.struct([e.u32("mintAuthorityOption"),e.publicKey("mintAuthority"),e.u64("supply"),e.u8("decimals"),e.bool("isInitialized"),e.u32("freezeAuthorityOption"),e.publicKey("freezeAuthority")]);u.span;async function f(o,t,i=!1,O=r.TOKEN_PROGRAM_ID,c=r.ASSOCIATED_TOKEN_PROGRAM_ID){if(!i&&!r.PublicKey.isOnCurve(t.toBuffer()))throw new n;const[a]=await r.PublicKey.findProgramAddress([t.toBuffer(),O.toBuffer(),o.toBuffer()],c);return a}exports.ASSOCIATED_TOKEN_PROGRAM_ID=r.ASSOCIATED_TOKEN_PROGRAM_ID;exports.TOKEN_PROGRAM_ID=r.TOKEN_PROGRAM_ID;exports.MintLayout=u;exports.TokenError=s;exports.TokenOwnerOffCurveError=n;exports.getAssociatedTokenAddress=f;
|