PageSourceSearch

https://frametoken.vercel.app/_next/static/chunks/174.cae91f0fb4413d5d.js

js frametoken.vercel.app collected 2026-10-03 06:58:41 UTC 9,473 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[174],{11356:function(e,t,s){s.d(t,{AV:function(){return a},ConfigCtrl:function(){return m},ExplorerCtrl:function(){return D},OptionsCtrl:function(){return p},ThemeCtrl:function(){return K},ToastCtrl:function(){return z},jb:function(){return T},uA:function(){return c},zv:function(){return i}});var n=s(4776);let o=(0,n.sj)({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),a={state:o,subscribe:e=>(0,n.Ld)(o,()=>e(o)),push(e,t){e!==o.view&&(o.view=e,t&&(o.data=t),o.history.push(e))},reset(e){o.view=e,o.history=[e]},replace(e){o.history.length>1&&(o.history[o.history.length-1]=e,o.view=e)},goBack(){if(o.history.length>1){o.history.pop();let[e]=o.history.slice(-1);o.view=e}},setData(e){o.data=e}},i={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile:()=>!!(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)),isAndroid:()=>i.isMobile()&&navigator.userAgent.toLowerCase().includes("android"),isIos(){let e=navigator.userAgent.toLowerCase();return i.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isHttpUrl:e=>e.startsWith("http://")||e.startsWith("https://"),isArray:e=>Array.isArray(e)&&e.length>0,formatNativeUrl(e,t,s){if(i.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let n=e;n.includes("://")||(n=e.replaceAll("/","").replaceAll(":",""),n="".concat(n,"://")),n.endsWith("/")||(n="".concat(n,"/")),this.setWalletConnectDeepLink(n,s);let o=encodeURIComponent(t);return"".concat(n,"wc?uri=").concat(o)},formatUniversalUrl(e,t,s){if(!i.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let n=e;n.endsWith("/")||(n="".concat(n,"/")),this.setWalletConnectDeepLink(n,s);let o=encodeURIComponent(t);return"".concat(n,"wc?uri=").concat(o)},wait:async e=>new Promise(t=>{setTimeout(t,e)}),openHref(e,t){window.open(e,t,"noreferrer noopener")},setWalletConnectDeepLink(e,t){try{localStorage.setItem(i.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}))}catch(e){console.info("Unable to set WalletConnect deep link")}},setWalletConnectAndroidDeepLink(e){try{let[t]=e.split("?");localStorage.setItem(i.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}))}catch(e){console.info("Unable to set WalletConnect android deep link")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(i.WALLETCONNECT_DEEPLINK_CHOICE)}catch(e){console.info("Unable to remove WalletConnect deep link")}},setModalVersionInStorage(){try{"u">typeof localStorage&&localStorage.setItem(i.WCM_VERSION,"2.6.2")}catch(e){console.info("Unable to set Web3Modal version in storage")}},getWalletRouterData(){var e;let t=null==(e=a.state.data)?void 0:e.Wallet;if(!t)throw Error('Missing "Wallet" view data');return t}},l="u">typeof location&&(location.hostname.includes("localhost")||location.protocol.includes("https")),r=(0,n.sj)({enabled:l,userSessionId:"",events:[],connectedWalletId:void 0}),c={state:r,subscribe:e=>(0,n.Ld)(r.events,()=>e((0,n.CO)(r.events[r.events.length-1]))),initialize(){r.enabled&&"u">typeof(null==crypto?void 0:crypto.randomUUID)&&(r.userSessionId=crypto.randomUUID())},setConnectedWalletId(e){r.connectedWalletId=e},click(e){if(r.enabled){let t={type:"CLICK",name:e.name,userSessionId:r.userSessionId,timestamp:Date.now(),data:e};r.events.push(t)}},track(e){if(r.enabled){let t={type:"TRACK",name:e.name,userSessionId:r.userSessionId,timestamp:Date.now(),data:e};r.events.push(t)}},view(e){if(r.enabled){let t={type:"VIEW",name:e.name,userSessionId:r.userSessionId,timestamp:Date.now(),data:e};r.events.push(t)}}},d=(0,n.sj)({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),p={state:d,subscribe:e=>(0,n.Ld)(d,()=>e(d)),setChains(e){d.chains=e},setWalletConnectUri(e){d.walletConnectUri=e},setIsCustomDesktop(e){d.isCustomDesktop=e},setIsCustomMobile(e){d.isCustomMobile=e},setIsDataLoaded(e){d.isDataLoaded=e},setIsUiLoaded(e){d.isUiLoaded=e},setIsAuth(e){d.isAuth=e}},u=(0,n.sj)({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}),m={state:u,subscribe:e=>(0,n.Ld)(u,()=>e(u)),setConfig(e){var t,s;c.initialize(),p.setChains(e.chains),p.setIsAuth(!!e.enableAuthMode),p.setIsCustomMobile(!!(null==(t=e.mobileWallets)?void 0:t.length)),p.setIsCustomDesktop(!!(null==(s=e.desktopWallets)?void 0:s.length)),i.setModalVersionInStorage(),Object.assign(u,e)}};var g=Object.defineProperty,h=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable,I=(e,t,s)=>t in e?g(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,C=(e,t)=>{for(var s in t||(t={}))b.call(t,s)&&I(e,s,t[s]);if(h)for(var s of h(t))v.call(t,s)&&I(e,s,t[s]);return e};let f="https://explorer-api.walletconnect.com",y="js-2.6.2";async function L(e,t){let s=C({sdkType:"wcm",sdkVersion:y},t),n=new URL(e,f);return n.searchParams.append("projectId",m.state.projectId),Object.entries(s).forEac
1h(e=>{let[t,s]=e;s&&n.searchParams.append(t,String(s))}),(await fetch(n)).json()}let w={getDesktopListings:async e=>L("/w3m/v1/getDesktopListings",e),getMobileListings:async e=>L("/w3m/v1/getMobileListings",e),getInjectedListings:async e=>L("/w3m/v1/getInjectedListings",e),getAllListings:async e=>L("/w3m/v1/getAllListings",e),getWalletImageUrl:e=>"".concat(f,"/w3m/v1/getWalletImage/").concat(e,"?projectId=").concat(m.state.projectId,"&sdkType=").concat("wcm","&sdkVersion=").concat(y),getAssetImageUrl:e=>"".concat(f,"/w3m/v1/getAssetImage/").concat(e,"?projectId=").concat(m.state.projectId,"&sdkType=").concat("wcm","&sdkVersion=").concat(y)};var W=Object.defineProperty,E=Object.getOwnPropertySymbols,O=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable,A=(e,t,s)=>t in e?W(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,U=(e,t)=>{for(var s in t||(t={}))O.call(t,s)&&A(e,s,t[s]);if(E)for(var s of E(t))j.call(t,s)&&A(e,s,t[s]);return e};let M=i.isMobile(),k=(0,n.sj)({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),D={state:k,async getRecomendedWallets(){let{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=m.state;if("NONE"===e||"ALL"===t&&!e)return k.recomendedWallets;if(i.isArray(e)){let t={recommendedIds:e.join(",")},{listings:s}=await w.getAllListings(t),n=Object.values(s);n.sort((t,s)=>e.indexOf(t.id)-e.indexOf(s.id)),k.recomendedWallets=n}else{let{chains:e,isAuth:s}=p.state,n=null==e?void 0:e.join(","),o=i.isArray(t),a={page:1,sdks:s?"auth_v1":void 0,entries:i.RECOMMENDED_WALLET_AMOUNT,chains:n,version:2,excludedIds:o?t.join(","):void 0},{listings:l}=M?await w.getMobileListings(a):await w.getDesktopListings(a);k.recomendedWallets=Object.values(l)}return k.recomendedWallets},async getWallets(e){let t=U({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:n}=m.state,{recomendedWallets:o}=k;if("ALL"===n)return k.wallets;o.length?t.excludedIds=o.map(e=>e.id).join(","):i.isArray(s)&&(t.excludedIds=s.join(",")),i.isArray(n)&&(t.excludedIds=[t.excludedIds,n].filter(Boolean).join(",")),p.state.isAuth&&(t.sdks="auth_v1");let{page:a,search:l}=e,{listings:r,total:c}=M?await w.getMobileListings(t):await w.getDesktopListings(t),d=Object.values(r),u=l?"search":"wallets";return k[u]={listings:[...k[u].listings,...d],total:c,page:null!=a?a:1},{listings:d,total:c}},getWalletImageUrl:e=>w.getWalletImageUrl(e),getAssetImageUrl:e=>w.getAssetImageUrl(e),resetSearch(){k.search={listings:[],total:0,page:1}}},N=(0,n.sj)({open:!1}),T={state:N,subscribe:e=>(0,n.Ld)(N,()=>e(N)),open:async e=>new Promise(t=>{let{isUiLoaded:s,isDataLoaded:n}=p.state;if(i.removeWalletConnectDeepLink(),p.setWalletConnectUri(null==e?void 0:e.uri),p.setChains(null==e?void 0:e.chains),a.reset("ConnectWallet"),s&&n)N.open=!0,t();else{let e=setInterval(()=>{let s=p.state;s.isUiLoaded&&s.isDataLoaded&&(clearInterval(e),N.open=!0,t())},200)}}),close(){N.open=!1}};var S=Object.defineProperty,_=Object.getOwnPropertySymbols,P=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,R=(e,t,s)=>t in e?S(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,V=(e,t)=>{for(var s in t||(t={}))P.call(t,s)&&R(e,s,t[s]);if(_)for(var s of _(t))x.call(t,s)&&R(e,s,t[s]);return e};let H=(0,n.sj)({themeMode:"u">typeof matchMedia&&matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}),K={state:H,subscribe:e=>(0,n.Ld)(H,()=>e(H)),setThemeConfig(e){let{themeMode:t,themeVariables:s}=e;t&&(H.themeMode=t),s&&(H.themeVariables=V({},s))}},B=(0,n.sj)({open:!1,message:"",variant:"success"}),z={state:B,subscribe:e=>(0,n.Ld)(B,()=>e(B)),openToast(e,t){B.open=!0,B.message=e,B.variant=t},closeToast(){B.open=!1}}},11174:function(e,t,s){s.d(t,{WalletConnectModal:function(){return o}});var n=s(11356);class o{async initUi(){{await s.e(770).then(s.bind(s,36770));let e=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",e),n.OptionsCtrl.setIsUiLoaded(!0)}}constructor(e){this.openModal=n.jb.open,this.closeModal=n.jb.close,this.subscribeModal=n.jb.subscribe,this.setTheme=n.ThemeCtrl.
1setThemeConfig,n.ThemeCtrl.setThemeConfig(e),n.ConfigCtrl.setConfig(e),this.initUi()}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.