{"version":3,"sources":["node_modules/valtio/esm/vanilla/utils.mjs","node_modules/@listat/blockchain-providers/node_modules/@web3modal/core/dist/esm/src/utils/ConstantsUtil.js","node_modules/@listat/blockchain-providers/node_modules/@web3modal/core/dist/esm/src/utils/CoreHelperUtil.js","node_modules/@listat/blockchain-providers/node_modules/@web3modal/core/dist/esm/src/controllers/AccountController.js","node_modules/@listat/blockchain-providers/node_modules/@web3modal/core/dist/esm/src/utils/FetchUtil.js","node_modules/@listat/blockchain-providers/node_modules/@web3modal/core/dist/esm/src/utils/StorageUtil.js","node_modules/@listat/blockchain-providers/node_modules/@web3modal/core/dist/esm/src/controllers/AssetController.js","node_modules/@listat/blockchain-providers/node_modules/@web3modal/core/dist/esm/src/controllers/OptionsController.js","node_modules/@listat/blockchain-providers/node_modules/@web3modal/core/dist/esm/src/controllers/ConnectorController.js","node_modules/@listat/blockchain-providers/node_modules/@web3modal/core/dist/esm/src/controllers/PublicStateController.js","node_modules/@listat/blockchain-providers/node_modules/@web3modal/core/dist/esm/src/controllers/NetworkController.js","node_modules/@listat/blockchain-providers/node_modules/@web3modal/core/dist/esm/src/controllers/ApiController.js","node_modules/@listat/blockchain-providers/node_modules/@web3modal/core/dist/esm/src/controllers/EventsController.js","node_modules/@listat/blockchain-providers/node_modules/@web3modal/core/dist/esm/src/controllers/RouterController.js","node_modules/@listat/blockchain-providers/node_modules/@web3modal/core/dist/esm/src/controllers/ModalController.js","node_modules/@listat/blockchain-providers/node_modules/@web3modal/core/dist/esm/src/controllers/BlockchainApiController.js","node_modules/@listat/blockchain-providers/node_modules/@web3modal/core/dist/esm/src/controllers/SnackController.js","node_modules/@listat/blockchain-providers/node_modules/@web3modal/core/dist/esm/src/controllers/TransactionsController.js","node_modules/@listat/blockchain-providers/node_modules/@web3modal/core/dist/esm/src/controllers/ConnectionController.js","node_modules/@listat/blockchain-providers/node_modules/@web3modal/core/dist/esm/src/controllers/SIWEController.js","node_modules/@listat/blockchain-providers/node_modules/@web3modal/core/dist/esm/src/controllers/ThemeController.js","node_modules/@listat/blockchain-providers/node_modules/@web3modal/core/dist/esm/src/utils/AssetUtil.js","node_modules/@listat/blockchain-providers/node_modules/@web3modal/core/dist/esm/src/utils/RouterUtil.js","node_modules/@listat/blockchain-providers/node_modules/@web3modal/scaffold/dist/esm/src/modal/w3m-modal/styles.js","node_modules/@listat/blockchain-providers/node_modules/@web3modal/scaffold/dist/esm/src/modal/w3m-modal/index.js"],"sourcesContent":["import { subscribe, snapshot, proxy, getVersion, ref, unstable_buildProxyFunction } from 'valtio/vanilla';\nfunction subscribeKey(proxyObject, key, callback, notifyInSync) {\n let prevValue = proxyObject[key];\n return subscribe(proxyObject, () => {\n const nextValue = proxyObject[key];\n if (!Object.is(prevValue, nextValue)) {\n callback(prevValue = nextValue);\n }\n }, notifyInSync);\n}\nlet currentCleanups;\nfunction watch(callback, options) {\n let alive = true;\n const cleanups = /* @__PURE__ */new Set();\n const subscriptions = /* @__PURE__ */new Map();\n const cleanup = () => {\n if (alive) {\n alive = false;\n cleanups.forEach(clean => clean());\n cleanups.clear();\n subscriptions.forEach(unsubscribe => unsubscribe());\n subscriptions.clear();\n }\n };\n const revalidate = () => {\n if (!alive) {\n return;\n }\n cleanups.forEach(clean => clean());\n cleanups.clear();\n const proxiesToSubscribe = /* @__PURE__ */new Set();\n const parent = currentCleanups;\n currentCleanups = cleanups;\n try {\n const cleanupReturn = callback(proxyObject => {\n proxiesToSubscribe.add(proxyObject);\n return proxyObject;\n });\n if (cleanupReturn) {\n cleanups.add(cleanupReturn);\n }\n } finally {\n currentCleanups = parent;\n }\n subscriptions.forEach((unsubscribe, proxyObject) => {\n if (proxiesToSubscribe.has(proxyObject)) {\n proxiesToSubscribe.delete(proxyObject);\n } else {\n subscriptions.delete(proxyObject);\n unsubscribe();\n }\n });\n proxiesToSubscribe.forEach(proxyObject => {\n const unsubscribe = subscribe(proxyObject, revalidate, options == null ? void 0 : options.sync);\n subscriptions.set(proxyObject, unsubscribe);\n });\n };\n if (currentCleanups) {\n currentCleanups.add(cleanup);\n }\n revalidate();\n return cleanup;\n}\nconst DEVTOOLS = Symbol();\nfunction devtools(proxyObject, options) {\n if (typeof options === \"string\") {\n console.warn(\"string name option is deprecated, use { name }. https://github.com/pmndrs/valtio/pull/400\");\n options = {\n name: options\n };\n }\n const {\n enabled,\n name = \"\",\n ...rest\n } = options || {};\n let extension;\n try {\n extension = (enabled != null ? enabled : (import.meta.env ? import.meta.env.MODE : void 0) !== \"production\") && window.__REDUX_DEVTOOLS_EXTENSION__;\n } catch {}\n if (!extension) {\n if ((import.meta.env ? import.meta.env.MODE : void 0) !== \"production\" && enabled) {\n console.warn(\"[Warning] Please install/enable Redux devtools extension\");\n }\n return;\n }\n let isTimeTraveling = false;\n const devtools2 = extension.connect({\n name,\n ...rest\n });\n const unsub1 = subscribe(proxyObject, ops => {\n const action = ops.filter(([_, path]) => path[0] !== DEVTOOLS).map(([op, path]) => `${op}:${path.map(String).join(\".\")}`).join(\", \");\n if (!action) {\n return;\n }\n if (isTimeTraveling) {\n isTimeTraveling = false;\n } else {\n const snapWithoutDevtools = Object.assign({}, snapshot(proxyObject));\n delete snapWithoutDevtools[DEVTOOLS];\n devtools2.send({\n type: action,\n updatedAt: ( /* @__PURE__ */new Date()).toLocaleString()\n }, snapWithoutDevtools);\n }\n });\n const unsub2 = devtools2.subscribe(message => {\n var _a, _b, _c, _d, _e, _f;\n if (message.type === \"ACTION\" && message.payload) {\n try {\n Object.assign(proxyObject, JSON.parse(message.payload));\n } catch (e) {\n console.error(\"please dispatch a serializable value that JSON.parse() and proxy() support\\n\", e);\n }\n }\n if (message.type === \"DISPATCH\" && message.state) {\n if (((_a = message.payload) == null ? void 0 : _a.type) === \"JUMP_TO_ACTION\" || ((_b = message.payload) == null ? void 0 : _b.type) === \"JUMP_TO_STATE\") {\n isTimeTraveling = true;\n const state = JSON.parse(message.state);\n Object.assign(proxyObject, state);\n }\n proxyObject[DEVTOOLS] = message;\n } else if (message.type === \"DISPATCH\" && ((_c = message.payload) == null ? void 0 : _c.type) === \"COMMIT\") {\n devtools2.init(snapshot(proxyObject));\n } else if (message.type === \"DISPATCH\" && ((_d = message.payload) == null ? void 0 : _d.type) === \"IMPORT_STATE\") {\n const actions = (_e = message.payload.nextLiftedState) == null ? void 0 : _e.actionsById;\n const computedStates = ((_f = message.payload.nextLiftedState) == null ? void 0 : _f.computedStates) || [];\n isTimeTraveling = true;\n computedStates.forEach(({\n state\n }, index) => {\n const action = actions[index] || \"No action found\";\n Object.assign(proxyObject, state);\n if (index === 0) {\n devtools2.init(snapshot(proxyObject));\n } else {\n devtools2.send(action, snapshot(proxyObject));\n }\n });\n }\n });\n devtools2.init(snapshot(proxyObject));\n return () => {\n unsub1();\n unsub2 == null ? void 0 : unsub2();\n };\n}\nconst sourceObjectMap = /* @__PURE__ */new WeakMap();\nconst derivedObjectMap = /* @__PURE__ */new WeakMap();\nconst markPending = (sourceObject, callback) => {\n const sourceObjectEntry = sourceObjectMap.get(sourceObject);\n if (sourceObjectEntry) {\n sourceObjectEntry[0].forEach(subscription => {\n const {\n d: derivedObject\n } = subscription;\n if (sourceObject !== derivedObject) {\n markPending(derivedObject);\n }\n });\n ++sourceObjectEntry[2];\n if (callback) {\n sourceObjectEntry[3].add(callback);\n }\n }\n};\nconst checkPending = (sourceObject, callback) => {\n const sourceObjectEntry = sourceObjectMap.get(sourceObject);\n if (sourceObjectEntry == null ? void 0 : sourceObjectEntry[2]) {\n sourceObjectEntry[3].add(callback);\n return true;\n }\n return false;\n};\nconst unmarkPending = sourceObject => {\n const sourceObjectEntry = sourceObjectMap.get(sourceObject);\n if (sourceObjectEntry) {\n --sourceObjectEntry[2];\n if (!sourceObjectEntry[2]) {\n sourceObjectEntry[3].forEach(callback => callback());\n sourceObjectEntry[3].clear();\n }\n sourceObjectEntry[0].forEach(subscription => {\n const {\n d: derivedObject\n } = subscription;\n if (sourceObject !== derivedObject) {\n unmarkPending(derivedObject);\n }\n });\n }\n};\nconst addSubscription = subscription => {\n const {\n s: sourceObject,\n d: derivedObject\n } = subscription;\n let derivedObjectEntry = derivedObjectMap.get(derivedObject);\n if (!derivedObjectEntry) {\n derivedObjectEntry = [/* @__PURE__ */new Set()];\n derivedObjectMap.set(subscription.d, derivedObjectEntry);\n }\n derivedObjectEntry[0].add(subscription);\n let sourceObjectEntry = sourceObjectMap.get(sourceObject);\n if (!sourceObjectEntry) {\n const subscriptions = /* @__PURE__ */new Set();\n const unsubscribe = subscribe(sourceObject, ops => {\n subscriptions.forEach(subscription2 => {\n const {\n d: derivedObject2,\n c: callback,\n n: notifyInSync,\n i: ignoreKeys\n } = subscription2;\n if (sourceObject === derivedObject2 && ops.every(op => op[1].length === 1 && ignoreKeys.includes(op[1][0]))) {\n return;\n }\n if (subscription2.p) {\n return;\n }\n markPending(sourceObject, callback);\n if (notifyInSync) {\n unmarkPending(sourceObject);\n } else {\n subscription2.p = Promise.resolve().then(() => {\n delete subscription2.p;\n unmarkPending(sourceObject);\n });\n }\n });\n }, true);\n sourceObjectEntry = [subscriptions, unsubscribe, 0, /* @__PURE__ */new Set()];\n sourceObjectMap.set(sourceObject, sourceObjectEntry);\n }\n sourceObjectEntry[0].add(subscription);\n};\nconst removeSubscription = subscription => {\n const {\n s: sourceObject,\n d: derivedObject\n } = subscription;\n const derivedObjectEntry = derivedObjectMap.get(derivedObject);\n derivedObjectEntry == null ? void 0 : derivedObjectEntry[0].delete(subscription);\n if ((derivedObjectEntry == null ? void 0 : derivedObjectEntry[0].size) === 0) {\n derivedObjectMap.delete(derivedObject);\n }\n const sourceObjectEntry = sourceObjectMap.get(sourceObject);\n if (sourceObjectEntry) {\n const [subscriptions, unsubscribe] = sourceObjectEntry;\n subscriptions.delete(subscription);\n if (!subscriptions.size) {\n unsubscribe();\n sourceObjectMap.delete(sourceObject);\n }\n }\n};\nconst listSubscriptions = derivedObject => {\n const derivedObjectEntry = derivedObjectMap.get(derivedObject);\n if (derivedObjectEntry) {\n return Array.from(derivedObjectEntry[0]);\n }\n return [];\n};\nconst unstable_deriveSubscriptions = {\n add: addSubscription,\n remove: removeSubscription,\n list: listSubscriptions\n};\nfunction derive(derivedFns, options) {\n const proxyObject = (options == null ? void 0 : options.proxy) || proxy({});\n const notifyInSync = !!(options == null ? void 0 : options.sync);\n const derivedKeys = Object.keys(derivedFns);\n derivedKeys.forEach(key => {\n if (Object.getOwnPropertyDescriptor(proxyObject, key)) {\n throw new Error(\"object property already defined\");\n }\n const fn = derivedFns[key];\n let lastDependencies = null;\n const evaluate = () => {\n if (lastDependencies) {\n if (Array.from(lastDependencies).map(([p]) => checkPending(p, evaluate)).some(isPending => isPending)) {\n return;\n }\n if (Array.from(lastDependencies).every(([p, entry]) => getVersion(p) === entry.v)) {\n return;\n }\n }\n const dependencies = /* @__PURE__ */new Map();\n const get = p => {\n dependencies.set(p, {\n v: getVersion(p)\n });\n return p;\n };\n const value = fn(get);\n const subscribeToDependencies = () => {\n dependencies.forEach((entry, p) => {\n var _a;\n const lastSubscription = (_a = lastDependencies == null ? void 0 : lastDependencies.get(p)) == null ? void 0 : _a.s;\n if (lastSubscription) {\n entry.s = lastSubscription;\n } else {\n const subscription = {\n s: p,\n // sourceObject\n d: proxyObject,\n // derivedObject\n k: key,\n // derived key\n c: evaluate,\n // callback\n n: notifyInSync,\n i: derivedKeys\n // ignoringKeys\n };\n addSubscription(subscription);\n entry.s = subscription;\n }\n });\n lastDependencies == null ? void 0 : lastDependencies.forEach((entry, p) => {\n if (!dependencies.has(p) && entry.s) {\n removeSubscription(entry.s);\n }\n });\n lastDependencies = dependencies;\n };\n if (value instanceof Promise) {\n value.finally(subscribeToDependencies);\n } else {\n subscribeToDependencies();\n }\n proxyObject[key] = value;\n };\n evaluate();\n });\n return proxyObject;\n}\nfunction underive(proxyObject, options) {\n const keysToDelete = (options == null ? void 0 : options.delete) ? /* @__PURE__ */new Set() : null;\n listSubscriptions(proxyObject).forEach(subscription => {\n const {\n k: key\n } = subscription;\n if (!(options == null ? void 0 : options.keys) || options.keys.includes(key)) {\n removeSubscription(subscription);\n if (keysToDelete) {\n keysToDelete.add(key);\n }\n }\n });\n if (keysToDelete) {\n keysToDelete.forEach(key => {\n delete proxyObject[key];\n });\n }\n}\nfunction addComputed_DEPRECATED(proxyObject, computedFns_FAKE, targetObject = proxyObject) {\n if ((import.meta.env ? import.meta.env.MODE : void 0) !== \"production\") {\n console.warn(\"addComputed is deprecated. Please consider using `derive`. Falling back to emulation with derive. https://github.com/pmndrs/valtio/pull/201\");\n }\n const derivedFns = {};\n Object.keys(computedFns_FAKE).forEach(key => {\n derivedFns[key] = get => computedFns_FAKE[key](get(proxyObject));\n });\n return derive(derivedFns, {\n proxy: targetObject\n });\n}\nfunction proxyWithComputed_DEPRECATED(initialObject, computedFns) {\n if ((import.meta.env ? import.meta.env.MODE : void 0) !== \"production\") {\n console.warn('proxyWithComputed is deprecated. Please follow \"Computed Properties\" guide in docs.');\n }\n Object.keys(computedFns).forEach(key => {\n if (Object.getOwnPropertyDescriptor(initialObject, key)) {\n throw new Error(\"object property already defined\");\n }\n const computedFn = computedFns[key];\n const {\n get,\n set\n } = typeof computedFn === \"function\" ? {\n get: computedFn\n } : computedFn;\n const desc = {};\n desc.get = () => get(snapshot(proxyObject));\n if (set) {\n desc.set = newValue => set(proxyObject, newValue);\n }\n Object.defineProperty(initialObject, key, desc);\n });\n const proxyObject = proxy(initialObject);\n return proxyObject;\n}\nconst isObject = x => typeof x === \"object\" && x !== null;\nlet refSet;\nconst deepClone = obj => {\n if (!refSet) {\n refSet = unstable_buildProxyFunction()[2];\n }\n if (!isObject(obj) || refSet.has(obj)) {\n return obj;\n }\n const baseObject = Array.isArray(obj) ? [] : Object.create(Object.getPrototypeOf(obj));\n Reflect.ownKeys(obj).forEach(key => {\n baseObject[key] = deepClone(obj[key]);\n });\n return baseObject;\n};\nfunction proxyWithHistory(initialValue, skipSubscribe = false) {\n const proxyObject = proxy({\n value: initialValue,\n history: ref({\n wip: void 0,\n // to avoid infinite loop\n snapshots: [],\n index: -1\n }),\n clone: deepClone,\n canUndo: () => proxyObject.history.index > 0,\n undo: () => {\n if (proxyObject.canUndo()) {\n proxyObject.value = proxyObject.history.wip = proxyObject.clone(proxyObject.history.snapshots[--proxyObject.history.index]);\n }\n },\n canRedo: () => proxyObject.history.index < proxyObject.history.snapshots.length - 1,\n redo: () => {\n if (proxyObject.canRedo()) {\n proxyObject.value = proxyObject.history.wip = proxyObject.clone(proxyObject.history.snapshots[++proxyObject.history.index]);\n }\n },\n saveHistory: () => {\n proxyObject.history.snapshots.splice(proxyObject.history.index + 1);\n proxyObject.history.snapshots.push(snapshot(proxyObject).value);\n ++proxyObject.history.index;\n },\n subscribe: () => subscribe(proxyObject, ops => {\n if (ops.every(op => op[1][0] === \"value\" && (op[0] !== \"set\" || op[2] !== proxyObject.history.wip))) {\n proxyObject.saveHistory();\n }\n })\n });\n proxyObject.saveHistory();\n if (!skipSubscribe) {\n proxyObject.subscribe();\n }\n return proxyObject;\n}\nfunction proxySet(initialValues) {\n const set = proxy({\n data: Array.from(new Set(initialValues)),\n has(value) {\n return this.data.indexOf(value) !== -1;\n },\n add(value) {\n let hasProxy = false;\n if (typeof value === \"object\" && value !== null) {\n hasProxy = this.data.indexOf(proxy(value)) !== -1;\n }\n if (this.data.indexOf(value) === -1 && !hasProxy) {\n this.data.push(value);\n }\n return this;\n },\n delete(value) {\n const index = this.data.indexOf(value);\n if (index === -1) {\n return false;\n }\n this.data.splice(index, 1);\n return true;\n },\n clear() {\n this.data.splice(0);\n },\n get size() {\n return this.data.length;\n },\n forEach(cb) {\n this.data.forEach(value => {\n cb(value, value, this);\n });\n },\n get [Symbol.toStringTag]() {\n return \"Set\";\n },\n toJSON() {\n return new Set(this.data);\n },\n [Symbol.iterator]() {\n return this.data[Symbol.iterator]();\n },\n values() {\n return this.data.values();\n },\n keys() {\n return this.data.values();\n },\n entries() {\n return new Set(this.data).entries();\n }\n });\n Object.defineProperties(set, {\n data: {\n enumerable: false\n },\n size: {\n enumerable: false\n },\n toJSON: {\n enumerable: false\n }\n });\n Object.seal(set);\n return set;\n}\nfunction proxyMap(entries) {\n const map = proxy({\n data: Array.from(entries || []),\n has(key) {\n return this.data.some(p => p[0] === key);\n },\n set(key, value) {\n const record = this.data.find(p => p[0] === key);\n if (record) {\n record[1] = value;\n } else {\n this.data.push([key, value]);\n }\n return this;\n },\n get(key) {\n var _a;\n return (_a = this.data.find(p => p[0] === key)) == null ? void 0 : _a[1];\n },\n delete(key) {\n const index = this.data.findIndex(p => p[0] === key);\n if (index === -1) {\n return false;\n }\n this.data.splice(index, 1);\n return true;\n },\n clear() {\n this.data.splice(0);\n },\n get size() {\n return this.data.length;\n },\n toJSON() {\n return new Map(this.data);\n },\n forEach(cb) {\n this.data.forEach(p => {\n cb(p[1], p[0], this);\n });\n },\n keys() {\n return this.data.map(p => p[0]).values();\n },\n values() {\n return this.data.map(p => p[1]).values();\n },\n entries() {\n return new Map(this.data).entries();\n },\n get [Symbol.toStringTag]() {\n return \"Map\";\n },\n [Symbol.iterator]() {\n return this.entries();\n }\n });\n Object.defineProperties(map, {\n data: {\n enumerable: false\n },\n size: {\n enumerable: false\n },\n toJSON: {\n enumerable: false\n }\n });\n Object.seal(map);\n return map;\n}\nexport { addComputed_DEPRECATED as addComputed, derive, devtools, proxyMap, proxySet, proxyWithComputed_DEPRECATED as proxyWithComputed, proxyWithHistory, subscribeKey, underive, unstable_deriveSubscriptions, watch };","const SECURE_SITE = 'https://secure.web3modal.com';\nexport const ConstantsUtil = {\n FOUR_MINUTES_MS: 240000,\n TEN_SEC_MS: 10000,\n ONE_SEC_MS: 1000,\n SECURE_SITE,\n SECURE_SITE_DASHBOARD: `${SECURE_SITE}/dashboard`,\n SECURE_SITE_FAVICON: `${SECURE_SITE}/images/favicon.png`,\n RESTRICTED_TIMEZONES: ['ASIA/SHANGHAI', 'ASIA/URUMQI', 'ASIA/CHONGQING', 'ASIA/HARBIN', 'ASIA/KASHGAR', 'ASIA/MACAU', 'ASIA/HONG_KONG', 'ASIA/MACAO', 'ASIA/BEIJING', 'ASIA/HARBIN'],\n CONNECTOR_RDNS_MAP: {\n coinbaseWallet: 'com.coinbase.wallet'\n }\n};\n","import { ConstantsUtil } from './ConstantsUtil.js';\nexport const CoreHelperUtil = {\n isMobile() {\n if (typeof window !== 'undefined') {\n return Boolean(window.matchMedia('(pointer:coarse)').matches || /Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent));\n }\n return false;\n },\n isAndroid() {\n const ua = window.navigator.userAgent.toLowerCase();\n return CoreHelperUtil.isMobile() && ua.includes('android');\n },\n isIos() {\n const ua = window.navigator.userAgent.toLowerCase();\n return CoreHelperUtil.isMobile() && (ua.includes('iphone') || ua.includes('ipad'));\n },\n isClient() {\n return typeof window !== 'undefined';\n },\n isPairingExpired(expiry) {\n return expiry ? expiry - Date.now() <= ConstantsUtil.TEN_SEC_MS : true;\n },\n isAllowedRetry(lastRetry) {\n return Date.now() - lastRetry >= ConstantsUtil.ONE_SEC_MS;\n },\n copyToClopboard(text) {\n navigator.clipboard.writeText(text);\n },\n getPairingExpiry() {\n return Date.now() + ConstantsUtil.FOUR_MINUTES_MS;\n },\n getPlainAddress(caipAddress) {\n return caipAddress.split(':')[2];\n },\n async wait(milliseconds) {\n return new Promise(resolve => {\n setTimeout(resolve, milliseconds);\n });\n },\n debounce(func, timeout = 500) {\n let timer = undefined;\n return (...args) => {\n function next() {\n func(...args);\n }\n if (timer) {\n clearTimeout(timer);\n }\n timer = setTimeout(next, timeout);\n };\n },\n isHttpUrl(url) {\n return url.startsWith('http://') || url.startsWith('https://');\n },\n formatNativeUrl(appUrl, wcUri) {\n if (CoreHelperUtil.isHttpUrl(appUrl)) {\n return this.formatUniversalUrl(appUrl, wcUri);\n }\n let safeAppUrl = appUrl;\n if (!safeAppUrl.includes('://')) {\n safeAppUrl = appUrl.replaceAll('/', '').replaceAll(':', '');\n safeAppUrl = `${safeAppUrl}://`;\n }\n if (!safeAppUrl.endsWith('/')) {\n safeAppUrl = `${safeAppUrl}/`;\n }\n const encodedWcUrl = encodeURIComponent(wcUri);\n return {\n redirect: `${safeAppUrl}wc?uri=${encodedWcUrl}`,\n href: safeAppUrl\n };\n },\n formatUniversalUrl(appUrl, wcUri) {\n if (!CoreHelperUtil.isHttpUrl(appUrl)) {\n return this.formatNativeUrl(appUrl, wcUri);\n }\n let safeAppUrl = appUrl;\n if (!safeAppUrl.endsWith('/')) {\n safeAppUrl = `${safeAppUrl}/`;\n }\n const encodedWcUrl = encodeURIComponent(wcUri);\n return {\n redirect: `${safeAppUrl}wc?uri=${encodedWcUrl}`,\n href: safeAppUrl\n };\n },\n openHref(href, target) {\n window.open(href, target, 'noreferrer noopener');\n },\n async preloadImage(src) {\n const imagePromise = new Promise((resolve, reject) => {\n const image = new Image();\n image.onload = resolve;\n image.onerror = reject;\n image.crossOrigin = 'anonymous';\n image.src = src;\n });\n return Promise.race([imagePromise, CoreHelperUtil.wait(2000)]);\n },\n formatBalance(balance, symbol) {\n let formattedBalance = undefined;\n if (balance === '0') {\n formattedBalance = '0.000';\n } else if (typeof balance === 'string') {\n const number = Number(balance);\n if (number) {\n formattedBalance = number.toString().match(/^-?\\d+(?:\\.\\d{0,3})?/u)?.[0];\n }\n }\n return formattedBalance ? `${formattedBalance} ${symbol}` : `0.000 ${symbol}`;\n },\n isRestrictedRegion() {\n try {\n const {\n timeZone\n } = new Intl.DateTimeFormat().resolvedOptions();\n const capTimeZone = timeZone.toUpperCase();\n return ConstantsUtil.RESTRICTED_TIMEZONES.includes(capTimeZone);\n } catch {\n return false;\n }\n },\n getApiUrl() {\n return CoreHelperUtil.isRestrictedRegion() ? 'https://api.web3modal.org' : 'https://api.web3modal.com';\n },\n getBlockchainApiUrl() {\n return CoreHelperUtil.isRestrictedRegion() ? 'https://rpc.walletconnect.org' : 'https://rpc.walletconnect.com';\n },\n getAnalyticsUrl() {\n return CoreHelperUtil.isRestrictedRegion() ? 'https://pulse.walletconnect.org' : 'https://pulse.walletconnect.com';\n },\n getUUID() {\n if (crypto?.randomUUID) {\n return crypto.randomUUID();\n }\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/gu, c => {\n const r = Math.random() * 16 | 0;\n const v = c === 'x' ? r : r & 0x3 | 0x8;\n return v.toString(16);\n });\n },\n parseError(error) {\n if (typeof error === 'string') {\n return error;\n } else if (typeof error?.issues?.[0]?.message === 'string') {\n return error.issues[0].message;\n } else if (error instanceof Error) {\n return error.message;\n }\n return 'Unknown error';\n }\n};\n","import { subscribeKey as subKey } from 'valtio/utils';\nimport { proxy, subscribe as sub } from 'valtio/vanilla';\nimport { CoreHelperUtil } from '../utils/CoreHelperUtil.js';\nconst state = proxy({\n isConnected: false\n});\nexport const AccountController = {\n state,\n subscribe(callback) {\n return sub(state, () => callback(state));\n },\n subscribeKey(key, callback) {\n return subKey(state, key, callback);\n },\n setIsConnected(isConnected) {\n state.isConnected = isConnected;\n },\n setCaipAddress(caipAddress) {\n state.caipAddress = caipAddress;\n state.address = caipAddress ? CoreHelperUtil.getPlainAddress(caipAddress) : undefined;\n },\n setBalance(balance, balanceSymbol) {\n state.balance = balance;\n state.balanceSymbol = balanceSymbol;\n },\n setProfileName(profileName) {\n state.profileName = profileName;\n },\n setProfileImage(profileImage) {\n state.profileImage = profileImage;\n },\n setAddressExplorerUrl(explorerUrl) {\n state.addressExplorerUrl = explorerUrl;\n },\n resetAccount() {\n state.isConnected = false;\n state.caipAddress = undefined;\n state.address = undefined;\n state.balance = undefined;\n state.balanceSymbol = undefined;\n state.profileName = undefined;\n state.profileImage = undefined;\n state.addressExplorerUrl = undefined;\n }\n};\n","export class FetchUtil {\n constructor({\n baseUrl\n }) {\n this.baseUrl = baseUrl;\n }\n async get({\n headers,\n ...args\n }) {\n const url = this.createUrl(args);\n const response = await fetch(url, {\n method: 'GET',\n headers\n });\n return response.json();\n }\n async getBlob({\n headers,\n ...args\n }) {\n const url = this.createUrl(args);\n const response = await fetch(url, {\n method: 'GET',\n headers\n });\n return response.blob();\n }\n async post({\n body,\n headers,\n ...args\n }) {\n const url = this.createUrl(args);\n const response = await fetch(url, {\n method: 'POST',\n headers,\n body: body ? JSON.stringify(body) : undefined\n });\n return response.json();\n }\n async put({\n body,\n headers,\n ...args\n }) {\n const url = this.createUrl(args);\n const response = await fetch(url, {\n method: 'PUT',\n headers,\n body: body ? JSON.stringify(body) : undefined\n });\n return response.json();\n }\n async delete({\n body,\n headers,\n ...args\n }) {\n const url = this.createUrl(args);\n const response = await fetch(url, {\n method: 'DELETE',\n headers,\n body: body ? JSON.stringify(body) : undefined\n });\n return response.json();\n }\n createUrl({\n path,\n params\n }) {\n const url = new URL(path, this.baseUrl);\n if (params) {\n Object.entries(params).forEach(([key, value]) => {\n if (value) {\n url.searchParams.append(key, value);\n }\n });\n }\n return url;\n }\n}\n","const WC_DEEPLINK = 'WALLETCONNECT_DEEPLINK_CHOICE';\nconst W3M_RECENT = '@w3m/recent';\nconst W3M_CONNECTED_WALLET_IMAGE_URL = '@w3m/connected_wallet_image_url';\nconst W3M_CONNECTED_CONNECTOR = '@w3m/connected_connector';\nexport const StorageUtil = {\n setWalletConnectDeepLink({\n href,\n name\n }) {\n try {\n localStorage.setItem(WC_DEEPLINK, JSON.stringify({\n href,\n name\n }));\n } catch {\n console.info('Unable to set WalletConnect deep link');\n }\n },\n getWalletConnectDeepLink() {\n try {\n const deepLink = localStorage.getItem(WC_DEEPLINK);\n if (deepLink) {\n return JSON.parse(deepLink);\n }\n } catch {\n console.info('Unable to get WalletConnect deep link');\n }\n return undefined;\n },\n deleteWalletConnectDeepLink() {\n try {\n localStorage.removeItem(WC_DEEPLINK);\n } catch {\n console.info('Unable to delete WalletConnect deep link');\n }\n },\n setWeb3ModalRecent(wallet) {\n try {\n const recentWallets = StorageUtil.getRecentWallets();\n const exists = recentWallets.find(w => w.id === wallet.id);\n if (!exists) {\n recentWallets.unshift(wallet);\n if (recentWallets.length > 2) {\n recentWallets.pop();\n }\n localStorage.setItem(W3M_RECENT, JSON.stringify(recentWallets));\n }\n } catch {\n console.info('Unable to set Web3Modal recent');\n }\n },\n getRecentWallets() {\n try {\n const recent = localStorage.getItem(W3M_RECENT);\n return recent ? JSON.parse(recent) : [];\n } catch {\n console.info('Unable to get Web3Modal recent');\n }\n return [];\n },\n setConnectedWalletImageUrl(imageUrl) {\n try {\n localStorage.setItem(W3M_CONNECTED_WALLET_IMAGE_URL, imageUrl);\n } catch {\n console.info('Unable to set Connected Wallet Image Url');\n }\n },\n getConnectedWalletImageUrl() {\n try {\n return localStorage.getItem(W3M_CONNECTED_WALLET_IMAGE_URL);\n } catch {\n console.info('Unable to set Connected Wallet Image Url');\n }\n return undefined;\n },\n setConnectedConnector(connectorType) {\n try {\n localStorage.setItem(W3M_CONNECTED_CONNECTOR, connectorType);\n } catch {\n console.info('Unable to set Connected Connector');\n }\n },\n getConnectedConnector() {\n try {\n return localStorage.getItem(W3M_CONNECTED_CONNECTOR);\n } catch {\n console.info('Unable to get Connected Connector');\n }\n return undefined;\n }\n};\n","import { subscribeKey as subKey } from 'valtio/utils';\nimport { proxy, subscribe as sub } from 'valtio/vanilla';\nconst state = proxy({\n walletImages: {},\n networkImages: {},\n connectorImages: {},\n tokenImages: {}\n});\nexport const AssetController = {\n state,\n subscribeNetworkImages(callback) {\n return sub(state.networkImages, () => callback(state.networkImages));\n },\n subscribeKey(key, callback) {\n return subKey(state, key, callback);\n },\n setWalletImage(key, value) {\n state.walletImages[key] = value;\n },\n setNetworkImage(key, value) {\n state.networkImages[key] = value;\n },\n setConnectorImage(key, value) {\n state.connectorImages[key] = value;\n },\n setTokenImage(key, value) {\n state.tokenImages[key] = value;\n }\n};\n","import { subscribeKey as subKey } from 'valtio/utils';\nimport { proxy } from 'valtio/vanilla';\nconst state = proxy({\n projectId: '',\n sdkType: 'w3m',\n sdkVersion: 'html-wagmi-undefined'\n});\nexport const OptionsController = {\n state,\n subscribeKey(key, callback) {\n return subKey(state, key, callback);\n },\n setProjectId(projectId) {\n state.projectId = projectId;\n },\n setIncludeWalletIds(includeWalletIds) {\n state.includeWalletIds = includeWalletIds;\n },\n setExcludeWalletIds(excludeWalletIds) {\n state.excludeWalletIds = excludeWalletIds;\n },\n setFeaturedWalletIds(featuredWalletIds) {\n state.featuredWalletIds = featuredWalletIds;\n },\n setTokens(tokens) {\n state.tokens = tokens;\n },\n setTermsConditionsUrl(termsConditionsUrl) {\n state.termsConditionsUrl = termsConditionsUrl;\n },\n setPrivacyPolicyUrl(privacyPolicyUrl) {\n state.privacyPolicyUrl = privacyPolicyUrl;\n },\n setCustomWallets(customWallets) {\n state.customWallets = customWallets;\n },\n setEnableAnalytics(enableAnalytics) {\n state.enableAnalytics = enableAnalytics;\n },\n setSdkVersion(sdkVersion) {\n state.sdkVersion = sdkVersion;\n },\n setMetadata(metadata) {\n state.metadata = metadata;\n }\n};\n","import { subscribeKey as subKey } from 'valtio/utils';\nimport { proxy, ref, snapshot } from 'valtio/vanilla';\nimport { OptionsController } from './OptionsController.js';\nconst state = proxy({\n connectors: []\n});\nexport const ConnectorController = {\n state,\n subscribeKey(key, callback) {\n return subKey(state, key, callback);\n },\n setConnectors(connectors) {\n state.connectors = connectors.map(c => ref(c));\n },\n addConnector(connector) {\n state.connectors.push(ref(connector));\n if (connector.id === 'w3mEmail') {\n const emailConnector = connector;\n const optionsState = snapshot(OptionsController.state);\n emailConnector?.provider?.syncDappData?.({\n metadata: optionsState.metadata,\n sdkVersion: optionsState.sdkVersion,\n projectId: optionsState.projectId\n });\n }\n },\n getEmailConnector() {\n return state.connectors.find(c => c.type === 'EMAIL');\n },\n getAnnouncedConnectorRdns() {\n return state.connectors.filter(c => c.type === 'ANNOUNCED').map(c => c.info?.rdns);\n },\n getConnectors() {\n return state.connectors;\n }\n};\n","import { proxy, subscribe as sub } from 'valtio/vanilla';\nconst state = proxy({\n open: false,\n selectedNetworkId: undefined\n});\nexport const PublicStateController = {\n state,\n subscribe(callback) {\n return sub(state, () => callback(state));\n },\n set(newState) {\n Object.assign(state, {\n ...state,\n ...newState\n });\n }\n};\n","import { subscribeKey as subKey } from 'valtio/utils';\nimport { proxy, ref } from 'valtio/vanilla';\nimport { PublicStateController } from './PublicStateController.js';\nconst state = proxy({\n supportsAllNetworks: true,\n isDefaultCaipNetwork: false\n});\nexport const NetworkController = {\n state,\n subscribeKey(key, callback) {\n return subKey(state, key, callback);\n },\n _getClient() {\n if (!state._client) {\n throw new Error('NetworkController client not set');\n }\n return state._client;\n },\n setClient(client) {\n state._client = ref(client);\n },\n setCaipNetwork(caipNetwork) {\n state.caipNetwork = caipNetwork;\n PublicStateController.set({\n selectedNetworkId: caipNetwork?.id\n });\n },\n setDefaultCaipNetwork(caipNetwork) {\n state.caipNetwork = caipNetwork;\n PublicStateController.set({\n selectedNetworkId: caipNetwork?.id\n });\n state.isDefaultCaipNetwork = true;\n },\n setRequestedCaipNetworks(requestedNetworks) {\n state.requestedCaipNetworks = requestedNetworks;\n },\n async getApprovedCaipNetworksData() {\n const data = await this._getClient().getApprovedCaipNetworksData();\n state.supportsAllNetworks = data.supportsAllNetworks;\n state.approvedCaipNetworkIds = data.approvedCaipNetworkIds;\n },\n async switchActiveNetwork(network) {\n await this._getClient().switchCaipNetwork(network);\n state.caipNetwork = network;\n },\n resetNetwork() {\n if (!state.isDefaultCaipNetwork) {\n state.caipNetwork = undefined;\n }\n state.approvedCaipNetworkIds = undefined;\n state.supportsAllNetworks = true;\n }\n};\n","import { subscribeKey as subKey } from 'valtio/utils';\nimport { proxy } from 'valtio/vanilla';\nimport { CoreHelperUtil } from '../utils/CoreHelperUtil.js';\nimport { FetchUtil } from '../utils/FetchUtil.js';\nimport { StorageUtil } from '../utils/StorageUtil.js';\nimport { AssetController } from './AssetController.js';\nimport { ConnectorController } from './ConnectorController.js';\nimport { NetworkController } from './NetworkController.js';\nimport { OptionsController } from './OptionsController.js';\nconst baseUrl = CoreHelperUtil.getApiUrl();\nconst api = new FetchUtil({\n baseUrl\n});\nconst entries = '40';\nconst recommendedEntries = '4';\nconst state = proxy({\n page: 1,\n count: 0,\n featured: [],\n recommended: [],\n wallets: [],\n search: []\n});\nexport const ApiController = {\n state,\n subscribeKey(key, callback) {\n return subKey(state, key, callback);\n },\n _getApiHeaders() {\n const {\n projectId,\n sdkType,\n sdkVersion\n } = OptionsController.state;\n return {\n 'x-project-id': projectId,\n 'x-sdk-type': sdkType,\n 'x-sdk-version': sdkVersion\n };\n },\n async _fetchWalletImage(imageId) {\n const imageUrl = `${api.baseUrl}/getWalletImage/${imageId}`;\n const blob = await api.getBlob({\n path: imageUrl,\n headers: ApiController._getApiHeaders()\n });\n AssetController.setWalletImage(imageId, URL.createObjectURL(blob));\n },\n async _fetchNetworkImage(imageId) {\n const imageUrl = `${api.baseUrl}/public/getAssetImage/${imageId}`;\n const blob = await api.getBlob({\n path: imageUrl,\n headers: ApiController._getApiHeaders()\n });\n AssetController.setNetworkImage(imageId, URL.createObjectURL(blob));\n },\n async _fetchConnectorImage(imageId) {\n const imageUrl = `${api.baseUrl}/public/getAssetImage/${imageId}`;\n const blob = await api.getBlob({\n path: imageUrl,\n headers: ApiController._getApiHeaders()\n });\n AssetController.setConnectorImage(imageId, URL.createObjectURL(blob));\n },\n async fetchNetworkImages() {\n const {\n requestedCaipNetworks\n } = NetworkController.state;\n const ids = requestedCaipNetworks?.map(({\n imageId\n }) => imageId).filter(Boolean);\n if (ids) {\n await Promise.allSettled(ids.map(id => ApiController._fetchNetworkImage(id)));\n }\n },\n async fetchConnectorImages() {\n const {\n connectors\n } = ConnectorController.state;\n const ids = connectors.map(({\n imageId\n }) => imageId).filter(Boolean);\n await Promise.allSettled(ids.map(id => ApiController._fetchConnectorImage(id)));\n },\n async fetchFeaturedWallets() {\n const {\n featuredWalletIds\n } = OptionsController.state;\n if (featuredWalletIds?.length) {\n const {\n data\n } = await api.get({\n path: '/getWallets',\n headers: ApiController._getApiHeaders(),\n params: {\n page: '1',\n entries: featuredWalletIds?.length ? String(featuredWalletIds.length) : recommendedEntries,\n include: featuredWalletIds?.join(',')\n }\n });\n data.sort((a, b) => featuredWalletIds.indexOf(a.id) - featuredWalletIds.indexOf(b.id));\n const images = data.map(d => d.image_id).filter(Boolean);\n await Promise.allSettled(images.map(id => ApiController._fetchWalletImage(id)));\n state.featured = data;\n }\n },\n async fetchRecommendedWallets() {\n const {\n includeWalletIds,\n excludeWalletIds,\n featuredWalletIds\n } = OptionsController.state;\n const exclude = [...(excludeWalletIds ?? []), ...(featuredWalletIds ?? [])].filter(Boolean);\n const {\n data,\n count\n } = await api.get({\n path: '/getWallets',\n headers: ApiController._getApiHeaders(),\n params: {\n page: '1',\n entries: recommendedEntries,\n include: includeWalletIds?.join(','),\n exclude: exclude?.join(',')\n }\n });\n const recent = StorageUtil.getRecentWallets();\n const recommendedImages = data.map(d => d.image_id).filter(Boolean);\n const recentImages = recent.map(r => r.image_id).filter(Boolean);\n await Promise.allSettled([...recommendedImages, ...recentImages].map(id => ApiController._fetchWalletImage(id)));\n state.recommended = data;\n state.count = count ?? 0;\n },\n async fetchWallets({\n page\n }) {\n const {\n includeWalletIds,\n excludeWalletIds,\n featuredWalletIds\n } = OptionsController.state;\n const exclude = [...state.recommended.map(({\n id\n }) => id), ...(excludeWalletIds ?? []), ...(featuredWalletIds ?? [])].filter(Boolean);\n const {\n data,\n count\n } = await api.get({\n path: '/getWallets',\n headers: ApiController._getApiHeaders(),\n params: {\n page: String(page),\n entries,\n include: includeWalletIds?.join(','),\n exclude: exclude.join(',')\n }\n });\n const images = data.map(w => w.image_id).filter(Boolean);\n await Promise.allSettled([...images.map(id => ApiController._fetchWalletImage(id)), CoreHelperUtil.wait(300)]);\n state.wallets = [...state.wallets, ...data];\n state.count = count > state.count ? count : state.count;\n state.page = page;\n },\n async searchWallet({\n search\n }) {\n const {\n includeWalletIds,\n excludeWalletIds\n } = OptionsController.state;\n state.search = [];\n const {\n data\n } = await api.get({\n path: '/getWallets',\n headers: ApiController._getApiHeaders(),\n params: {\n page: '1',\n entries: '100',\n search,\n include: includeWalletIds?.join(','),\n exclude: excludeWalletIds?.join(',')\n }\n });\n const images = data.map(w => w.image_id).filter(Boolean);\n await Promise.allSettled([...images.map(id => ApiController._fetchWalletImage(id)), CoreHelperUtil.wait(300)]);\n state.search = data;\n },\n prefetch() {\n state.prefetchPromise = Promise.race([Promise.allSettled([ApiController.fetchFeaturedWallets(), ApiController.fetchRecommendedWallets(), ApiController.fetchNetworkImages(), ApiController.fetchConnectorImages()]), CoreHelperUtil.wait(3000)]);\n }\n};\n","import { proxy, subscribe as sub } from 'valtio/vanilla';\nimport { CoreHelperUtil } from '../utils/CoreHelperUtil.js';\nimport { FetchUtil } from '../utils/FetchUtil.js';\nimport { OptionsController } from './OptionsController.js';\nconst baseUrl = CoreHelperUtil.getAnalyticsUrl();\nconst api = new FetchUtil({\n baseUrl\n});\nconst excluded = ['MODAL_CREATED'];\nconst state = proxy({\n timestamp: Date.now(),\n data: {\n type: 'track',\n event: 'MODAL_CREATED'\n }\n});\nexport const EventsController = {\n state,\n subscribe(callback) {\n return sub(state, () => callback(state));\n },\n _getApiHeaders() {\n const {\n projectId,\n sdkType,\n sdkVersion\n } = OptionsController.state;\n return {\n 'x-project-id': projectId,\n 'x-sdk-type': sdkType,\n 'x-sdk-version': sdkVersion\n };\n },\n async _sendAnalyticsEvent(payload) {\n try {\n if (excluded.includes(payload.data.event) || typeof window === 'undefined') {\n return;\n }\n await api.post({\n path: '/e',\n headers: EventsController._getApiHeaders(),\n body: {\n eventId: CoreHelperUtil.getUUID(),\n url: window.location.href,\n domain: window.location.hostname,\n timestamp: payload.timestamp,\n props: payload.data\n }\n });\n } catch {}\n },\n sendEvent(data) {\n state.timestamp = Date.now();\n state.data = data;\n if (OptionsController.state.enableAnalytics) {\n EventsController._sendAnalyticsEvent(state);\n }\n }\n};\n","import { subscribeKey as subKey } from 'valtio/utils';\nimport { proxy } from 'valtio/vanilla';\nconst state = proxy({\n view: 'Connect',\n history: ['Connect']\n});\nexport const RouterController = {\n state,\n subscribeKey(key, callback) {\n return subKey(state, key, callback);\n },\n push(view, data) {\n if (view !== state.view) {\n state.view = view;\n state.history.push(view);\n state.data = data;\n }\n },\n reset(view) {\n state.view = view;\n state.history = [view];\n },\n replace(view, data) {\n if (state.history.length > 1 && state.history.at(-1) !== view) {\n state.view = view;\n state.history[state.history.length - 1] = view;\n state.data = data;\n }\n },\n goBack() {\n if (state.history.length > 1) {\n state.history.pop();\n const [last] = state.history.slice(-1);\n if (last) {\n state.view = last;\n }\n }\n },\n goBackToIndex(historyIndex) {\n if (state.history.length > 1) {\n state.history = state.history.slice(0, historyIndex + 1);\n const [last] = state.history.slice(-1);\n if (last) {\n state.view = last;\n }\n }\n }\n};\n","import { subscribeKey as subKey } from 'valtio/utils';\nimport { proxy, subscribe as sub } from 'valtio/vanilla';\nimport { AccountController } from './AccountController.js';\nimport { ApiController } from './ApiController.js';\nimport { EventsController } from './EventsController.js';\nimport { PublicStateController } from './PublicStateController.js';\nimport { RouterController } from './RouterController.js';\nconst state = proxy({\n loading: false,\n open: false\n});\nexport const ModalController = {\n state,\n subscribe(callback) {\n return sub(state, () => callback(state));\n },\n subscribeKey(key, callback) {\n return subKey(state, key, callback);\n },\n async open(options) {\n await ApiController.state.prefetchPromise;\n if (options?.view) {\n RouterController.reset(options.view);\n } else if (AccountController.state.isConnected) {\n RouterController.reset('Account');\n } else {\n RouterController.reset('Connect');\n }\n state.open = true;\n PublicStateController.set({\n open: true\n });\n EventsController.sendEvent({\n type: 'track',\n event: 'MODAL_OPEN'\n });\n },\n close() {\n state.open = false;\n PublicStateController.set({\n open: false\n });\n EventsController.sendEvent({\n type: 'track',\n event: 'MODAL_CLOSE'\n });\n },\n setLoading(loading) {\n state.loading = loading;\n }\n};\n","import { CoreHelperUtil } from '../utils/CoreHelperUtil.js';\nimport { FetchUtil } from '../utils/FetchUtil.js';\nimport { OptionsController } from './OptionsController.js';\nconst baseUrl = CoreHelperUtil.getBlockchainApiUrl();\nconst api = new FetchUtil({\n baseUrl\n});\nexport const BlockchainApiController = {\n fetchIdentity({\n caipChainId,\n address\n }) {\n return api.get({\n path: `/v1/identity/${address}`,\n params: {\n chainId: caipChainId,\n projectId: OptionsController.state.projectId\n }\n });\n },\n fetchTransactions({\n account,\n projectId,\n cursor\n }) {\n const queryParams = cursor ? {\n cursor\n } : {};\n return api.get({\n path: `/v1/account/${account}/history?projectId=${projectId}`,\n params: queryParams\n });\n }\n};\n","import { subscribeKey as subKey } from 'valtio/utils';\nimport { proxy } from 'valtio/vanilla';\nimport { CoreHelperUtil } from '../utils/CoreHelperUtil.js';\nconst state = proxy({\n message: '',\n variant: 'success',\n open: false\n});\nexport const SnackController = {\n state,\n subscribeKey(key, callback) {\n return subKey(state, key, callback);\n },\n showSuccess(message) {\n state.message = message;\n state.variant = 'success';\n state.open = true;\n },\n showError(message) {\n const errorMessage = CoreHelperUtil.parseError(message);\n state.message = errorMessage;\n state.variant = 'error';\n state.open = true;\n },\n hide() {\n state.open = false;\n }\n};\n","import { proxy, subscribe as sub } from 'valtio/vanilla';\nimport { BlockchainApiController } from './BlockchainApiController.js';\nimport { OptionsController } from './OptionsController.js';\nimport { EventsController } from './EventsController.js';\nimport { SnackController } from './SnackController.js';\nconst state = proxy({\n transactions: [],\n transactionsByYear: {},\n loading: false,\n empty: false,\n next: undefined\n});\nexport const TransactionsController = {\n state,\n subscribe(callback) {\n return sub(state, () => callback(state));\n },\n async fetchTransactions(accountAddress) {\n const {\n projectId\n } = OptionsController.state;\n if (!projectId || !accountAddress) {\n throw new Error(\"Transactions can't be fetched without a projectId and an accountAddress\");\n }\n state.loading = true;\n try {\n const response = await BlockchainApiController.fetchTransactions({\n account: accountAddress,\n projectId,\n cursor: state.next\n });\n const nonSpamTransactions = this.filterSpamTransactions(response.data);\n const filteredTransactions = [...state.transactions, ...nonSpamTransactions];\n state.loading = false;\n state.transactions = filteredTransactions;\n state.transactionsByYear = this.groupTransactionsByYear(state.transactionsByYear, nonSpamTransactions);\n state.empty = filteredTransactions.length === 0;\n state.next = response.next ? response.next : undefined;\n } catch (error) {\n EventsController.sendEvent({\n type: 'track',\n event: 'ERROR_FETCH_TRANSACTIONS',\n properties: {\n address: accountAddress,\n projectId,\n cursor: state.next\n }\n });\n SnackController.showError('Failed to fetch transactions');\n state.loading = false;\n state.empty = true;\n }\n },\n groupTransactionsByYear(transactionsMap = {}, transactions = []) {\n const grouped = transactionsMap;\n transactions.forEach(transaction => {\n const year = new Date(transaction.metadata.minedAt).getFullYear();\n if (!grouped[year]) {\n grouped[year] = [];\n }\n grouped[year]?.push(transaction);\n });\n return grouped;\n },\n filterSpamTransactions(transactions) {\n return transactions.filter(transaction => {\n const isAllSpam = transaction.transfers.every(transfer => transfer.nft_info?.flags.is_spam === true);\n return !isAllSpam;\n });\n },\n resetTransactions() {\n state.transactions = [];\n state.transactionsByYear = {};\n state.loading = false;\n state.empty = false;\n state.next = undefined;\n }\n};\n","import { subscribeKey as subKey } from 'valtio/utils';\nimport { proxy, ref } from 'valtio/vanilla';\nimport { CoreHelperUtil } from '../utils/CoreHelperUtil.js';\nimport { StorageUtil } from '../utils/StorageUtil.js';\nimport { TransactionsController } from './TransactionsController.js';\nconst state = proxy({\n wcError: false,\n buffering: false\n});\nexport const ConnectionController = {\n state,\n subscribeKey(key, callback) {\n return subKey(state, key, callback);\n },\n _getClient() {\n if (!state._client) {\n throw new Error('ConnectionController client not set');\n }\n return state._client;\n },\n setClient(client) {\n state._client = ref(client);\n },\n connectWalletConnect() {\n state.wcPromise = this._getClient().connectWalletConnect(uri => {\n state.wcUri = uri;\n state.wcPairingExpiry = CoreHelperUtil.getPairingExpiry();\n });\n },\n async connectExternal(options) {\n await this._getClient().connectExternal?.(options);\n StorageUtil.setConnectedConnector(options.type);\n },\n async signMessage(message) {\n return this._getClient().signMessage(message);\n },\n checkInstalled(ids) {\n return this._getClient().checkInstalled?.(ids);\n },\n resetWcConnection() {\n state.wcUri = undefined;\n state.wcPairingExpiry = undefined;\n state.wcPromise = undefined;\n state.wcLinking = undefined;\n state.recentWallet = undefined;\n TransactionsController.resetTransactions();\n StorageUtil.deleteWalletConnectDeepLink();\n },\n setWcLinking(wcLinking) {\n state.wcLinking = wcLinking;\n },\n setWcError(wcError) {\n state.wcError = wcError;\n state.buffering = false;\n },\n setRecentWallet(wallet) {\n state.recentWallet = wallet;\n },\n setBuffering(buffering) {\n state.buffering = buffering;\n },\n async disconnect() {\n await this._getClient().disconnect();\n this.resetWcConnection();\n }\n};\n","import { subscribeKey as subKey } from 'valtio/utils';\nimport { proxy, ref, subscribe as sub } from 'valtio/vanilla';\nconst state = proxy({\n status: 'uninitialized',\n isSiweEnabled: false\n});\nexport const SIWEController = {\n state,\n subscribeKey(key, callback) {\n return subKey(state, key, callback);\n },\n subscribe(callback) {\n return sub(state, () => callback(state));\n },\n _getClient() {\n if (!state._client) {\n throw new Error('SIWEController client not set');\n }\n return state._client;\n },\n async getNonce() {\n const client = this._getClient();\n const nonce = await client.getNonce();\n this.setNonce(nonce);\n return nonce;\n },\n async getSession() {\n const client = this._getClient();\n const session = await client.getSession();\n if (session) {\n this.setSession(session);\n this.setStatus('success');\n }\n return session;\n },\n createMessage(args) {\n const client = this._getClient();\n const message = client.createMessage(args);\n this.setMessage(message);\n return message;\n },\n async verifyMessage(args) {\n const client = this._getClient();\n const isValid = await client.verifyMessage(args);\n return isValid;\n },\n async signIn() {\n const client = this._getClient();\n const session = await client.signIn();\n return session;\n },\n async signOut() {\n const client = this._getClient();\n await client.signOut();\n this.setStatus('ready');\n client.onSignOut?.();\n },\n onSignIn(args) {\n const client = this._getClient();\n client.onSignIn?.(args);\n },\n onSignOut() {\n const client = this._getClient();\n client.onSignOut?.();\n },\n setSIWEClient(client) {\n state._client = ref(client);\n state.status = 'ready';\n state.isSiweEnabled = client.options.enabled;\n },\n setNonce(nonce) {\n state.nonce = nonce;\n },\n setStatus(status) {\n state.status = status;\n },\n setMessage(message) {\n state.message = message;\n },\n setSession(session) {\n state.session = session;\n }\n};\n","import { proxy, subscribe as sub, snapshot } from 'valtio/vanilla';\nconst state = proxy({\n themeMode: 'dark',\n themeVariables: {}\n});\nexport const ThemeController = {\n state,\n subscribe(callback) {\n return sub(state, () => callback(state));\n },\n setThemeMode(themeMode) {\n state.themeMode = themeMode;\n },\n setThemeVariables(themeVariables) {\n state.themeVariables = {\n ...state.themeVariables,\n ...themeVariables\n };\n },\n getSnapshot() {\n return snapshot(state);\n }\n};\n","import { AssetController } from '../controllers/AssetController.js';\nexport const AssetUtil = {\n getWalletImage(wallet) {\n if (wallet?.image_url) {\n return wallet?.image_url;\n }\n if (wallet?.image_id) {\n return AssetController.state.walletImages[wallet.image_id];\n }\n return undefined;\n },\n getNetworkImage(network) {\n if (network?.imageUrl) {\n return network?.imageUrl;\n }\n if (network?.imageId) {\n return AssetController.state.networkImages[network.imageId];\n }\n return undefined;\n },\n getConnectorImage(connector) {\n if (connector?.imageUrl) {\n return connector.imageUrl;\n }\n if (connector?.imageId) {\n return AssetController.state.connectorImages[connector.imageId];\n }\n return undefined;\n }\n};\n","import { RouterController } from '../controllers/RouterController.js';\nimport { ModalController } from '../controllers/ModalController.js';\nexport const RouterUtil = {\n goBackOrCloseModal() {\n if (RouterController.state.history.length > 1) {\n RouterController.goBack();\n } else {\n ModalController.close();\n }\n },\n navigateAfterNetworkSwitch() {\n const {\n history\n } = RouterController.state;\n const networkSelectIndex = history.findIndex(name => name === 'Networks');\n if (networkSelectIndex >= 1) {\n RouterController.goBackToIndex(networkSelectIndex - 1);\n } else {\n ModalController.close();\n }\n }\n};\n","import { css } from 'lit';\nexport default css`\n :host {\n z-index: var(--w3m-z-index);\n display: block;\n backface-visibility: hidden;\n will-change: opacity;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n pointer-events: none;\n opacity: 0;\n background-color: var(--wui-cover);\n }\n\n @keyframes zoom-in {\n 0% {\n transform: scale(0.95) translateY(0);\n }\n 100% {\n transform: scale(1) translateY(0);\n }\n }\n\n @keyframes slide-in {\n 0% {\n transform: scale(1) translateY(50px);\n }\n 100% {\n transform: scale(1) translateY(0);\n }\n }\n\n wui-card {\n max-width: 360px;\n width: 100%;\n position: relative;\n animation-delay: 0.3s;\n animation-duration: 0.2s;\n animation-name: zoom-in;\n animation-fill-mode: backwards;\n animation-timing-function: var(--wui-ease-out-power-2);\n outline: none;\n }\n\n wui-flex {\n overflow-x: hidden;\n overflow-y: auto;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n }\n\n @media (max-height: 700px) and (min-width: 431px) {\n wui-flex {\n align-items: flex-start;\n }\n\n wui-card {\n margin: var(--wui-spacing-xxl) 0px;\n }\n }\n\n @media (max-width: 430px) {\n wui-flex {\n align-items: flex-end;\n }\n\n wui-card {\n max-width: 100%;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n border-bottom: none;\n animation-name: slide-in;\n }\n }\n`;\n","var __decorate = this && this.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { AccountController, ApiController, ConnectionController, EventsController, ModalController, RouterController, SIWEController, SnackController, ThemeController } from '@web3modal/core';\nimport { UiHelperUtil, customElement, initializeTheming } from '@web3modal/ui';\nimport { LitElement, html } from 'lit';\nimport { state } from 'lit/decorators.js';\nimport styles from './styles.js';\nconst SCROLL_LOCK = 'scroll-lock';\nlet W3mModal = class W3mModal extends LitElement {\n constructor() {\n super();\n this.unsubscribe = [];\n this.abortController = undefined;\n this.open = ModalController.state.open;\n this.caipAddress = AccountController.state.address;\n this.isSiweEnabled = SIWEController.state.isSiweEnabled;\n this.initializeTheming();\n ApiController.prefetch();\n this.unsubscribe.push(ModalController.subscribeKey('open', val => val ? this.onOpen() : this.onClose()), SIWEController.subscribeKey('isSiweEnabled', isEnabled => {\n this.isSiweEnabled = isEnabled;\n }), AccountController.subscribe(newAccountState => this.onNewAccountState(newAccountState)));\n EventsController.sendEvent({\n type: 'track',\n event: 'MODAL_LOADED'\n });\n }\n disconnectedCallback() {\n this.unsubscribe.forEach(unsubscribe => unsubscribe());\n this.onRemoveKeyboardListener();\n }\n render() {\n return this.open ? html`\n \n \n \n \n \n \n \n ` : null;\n }\n async onOverlayClick(event) {\n if (event.target === event.currentTarget) {\n await this.handleClose();\n }\n }\n async handleClose() {\n if (this.isSiweEnabled && SIWEController.state.status !== 'success') {\n await ConnectionController.disconnect();\n }\n ModalController.close();\n }\n initializeTheming() {\n const {\n themeVariables,\n themeMode\n } = ThemeController.state;\n const defaultThemeMode = UiHelperUtil.getColorTheme(themeMode);\n initializeTheming(themeVariables, defaultThemeMode);\n }\n async onClose() {\n this.onScrollUnlock();\n await this.animate([{\n opacity: 1\n }, {\n opacity: 0\n }], {\n duration: 200,\n easing: 'ease',\n fill: 'forwards'\n }).finished;\n SnackController.hide();\n this.open = false;\n this.onRemoveKeyboardListener();\n }\n async onOpen() {\n this.onScrollLock();\n this.open = true;\n await this.animate([{\n opacity: 0\n }, {\n opacity: 1\n }], {\n duration: 200,\n easing: 'ease',\n fill: 'forwards',\n delay: 300\n }).finished;\n this.onAddKeyboardListener();\n }\n onScrollLock() {\n const styleTag = document.createElement('style');\n styleTag.dataset['w3m'] = SCROLL_LOCK;\n styleTag.textContent = `\n html, body {\n touch-action: none;\n overflow: hidden;\n overscroll-behavior: contain;\n }\n w3m-modal {\n pointer-events: auto;\n }\n `;\n document.head.appendChild(styleTag);\n }\n onScrollUnlock() {\n const styleTag = document.head.querySelector(`style[data-w3m=\"${SCROLL_LOCK}\"]`);\n if (styleTag) {\n styleTag.remove();\n }\n }\n onAddKeyboardListener() {\n this.abortController = new AbortController();\n const card = this.shadowRoot?.querySelector('wui-card');\n card?.focus();\n window.addEventListener('keydown', event => {\n if (event.key === 'Escape') {\n this.handleClose();\n } else if (event.key === 'Tab') {\n const {\n tagName\n } = event.target;\n if (tagName && !tagName.includes('W3M-') && !tagName.includes('WUI-')) {\n card?.focus();\n }\n }\n }, this.abortController);\n }\n onRemoveKeyboardListener() {\n this.abortController?.abort();\n this.abortController = undefined;\n }\n async onNewAccountState(newState) {\n const {\n isConnected,\n caipAddress: newCaipAddress\n } = newState;\n if (this.isSiweEnabled) {\n if (isConnected && !this.caipAddress) {\n this.caipAddress = newCaipAddress;\n }\n if (isConnected && newCaipAddress && this.caipAddress !== newCaipAddress) {\n await SIWEController.signOut();\n this.onSiweNavigation();\n this.caipAddress = newCaipAddress;\n }\n try {\n const session = await SIWEController.getSession();\n if (session && !isConnected) {\n await SIWEController.signOut();\n } else if (isConnected && !session) {\n this.onSiweNavigation();\n }\n } catch (error) {\n if (isConnected) {\n this.onSiweNavigation();\n }\n }\n }\n }\n onSiweNavigation() {\n if (this.open) {\n RouterController.push('ConnectingSiwe');\n } else {\n ModalController.open({\n view: 'ConnectingSiwe'\n });\n }\n }\n};\nW3mModal.styles = styles;\n__decorate([state()], W3mModal.prototype, \"open\", void 0);\n__decorate([state()], W3mModal.prototype, \"caipAddress\", void 0);\n__decorate([state()], W3mModal.prototype, \"isSiweEnabled\", void 0);\nW3mModal = __decorate([customElement('w3m-modal')], W3mModal);\nexport { W3mModal };\n"],"mappings":"sMACA,SAASA,EAAaC,EAAaC,EAAKC,EAAUC,EAAc,CAC9D,IAAIC,EAAYJ,EAAYC,CAAG,EAC/B,OAAOI,EAAUL,EAAa,IAAM,CAClC,IAAMM,EAAYN,EAAYC,CAAG,EAC5B,OAAO,GAAGG,EAAWE,CAAS,GACjCJ,EAASE,EAAYE,CAAS,CAElC,EAAGH,CAAY,CACjB,CAsDA,IAAMI,GAAW,OAAO,EC/DxB,IAAMC,EAAc,+BACPC,EAAgB,CAC3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yInSync","prevValue","subscribe","nextValue","DEVTOOLS","SECURE_SITE","ConstantsUtil","CoreHelperUtil","ua","expiry","ConstantsUtil","lastRetry","text","caipAddress","milliseconds","__async","resolve","func","timeout","timer","args","next","url","appUrl","wcUri","safeAppUrl","encodedWcUrl","href","target","src","imagePromise","reject","image","balance","symbol","formattedBalance","number","timeZone","capTimeZone","c","r","error","state","proxy","AccountController","callback","subscribe","key","subscribeKey","isConnected","caipAddress","CoreHelperUtil","balance","balanceSymbol","profileName","profileImage","explorerUrl","FetchUtil","baseUrl","_a","__async","_b","headers","args","__objRest","url","_c","_d","_e","_f","body","_g","_h","_i","_j","path","params","key","value","WC_DEEPLINK","W3M_RECENT","W3M_CONNECTED_WALLET_IMAGE_URL","W3M_CONNECTED_CONNECTOR","StorageUtil","href","name","deepLink","wallet","recentWallets","w","recent","imageUrl","connectorType","state","proxy","AssetController","callback","subscribe","key","subscribeKey","value","state","proxy","OptionsController","key","callback","subscribeKey","projectId","includeWalletIds","excludeWalletIds","featuredWalletIds","tokens","termsConditionsUrl","privacyPolicyUrl","customWallets","enableAnalytics","sdkVersion","metadata","state","proxy","ConnectorController","key","callback","subscribeKey","connectors","c","ref","connector","emailConnector","optionsState","snapshot","OptionsController","state","proxy","PublicStateController","callback","subscribe","newState","__spreadValues","state","proxy","NetworkController","key","callback","subscribeKey","client","ref","caipNetwork","PublicStateController","requestedNetworks","__async","data","network","baseUrl","CoreHelperUtil","api","FetchUtil","entries","recommendedEntries","state","proxy","ApiController","key","callback","subscribeKey","projectId","sdkType","sdkVersion","OptionsController","imageId","__async","imageUrl","blob","AssetController","requestedCaipNetworks","NetworkController","ids","id","connectors","ConnectorController","featuredWalletIds","data","a","b","images","d","includeWalletIds","excludeWalletIds","exclude","count","recent","StorageUtil","recommendedImages","recentImages","r","_0","page","w","search","baseUrl","CoreHelperUtil","api","FetchUtil","excluded","state","proxy","EventsController","callback","subscribe","projectId","sdkType","sdkVersion","OptionsController","payload","__async","data","state","proxy","RouterController","key","callback","subscribeKey","view","data","last","historyIndex","state","proxy","ModalController","callback","subscribe","key","subscribeKey","options","__async","ApiController","RouterController","AccountController","PublicStateController","EventsController","loading","baseUrl","CoreHelperUtil","api","FetchUtil","BlockchainApiController","caipChainId","address","OptionsController","account","projectId","cursor","queryParams","state","proxy","SnackController","key","callback","subscribeKey","message","errorMessage","CoreHelperUtil","state","proxy","TransactionsController","callback","subscribe","accountAddress","__async","projectId","OptionsController","response","BlockchainApiController","nonSpamTransactions","filteredTransactions","EventsController","SnackController","transactionsMap","transactions","grouped","transaction","year","transfer","state","proxy","ConnectionController","key","callback","subscribeKey","client","ref","uri","CoreHelperUtil","options","__async","StorageUtil","message","ids","TransactionsController","wcLinking","wcError","wallet","buffering","state","proxy","SIWEController","key","callback","subscribeKey","subscribe","__async","nonce","session","args","message","client","ref","status","state","proxy","ThemeController","callback","subscribe","themeMode","themeVariables","__spreadValues","snapshot","AssetUtil","wallet","AssetController","network","connector","RouterUtil","RouterController","ModalController","history","networkSelectIndex","name","styles_default","i","__decorate","decorators","target","key","desc","c","r","d","i","SCROLL_LOCK","W3mModal","ModalController","AccountController","SIWEController","ApiController","val","isEnabled","newAccountState","EventsController","unsubscribe","x","event","__async","ConnectionController","themeVariables","themeMode","ThemeController","defaultThemeMode","UiHelperUtil","initializeTheming","SnackController","styleTag","card","tagName","newState","isConnected","newCaipAddress","session","RouterController","styles_default","customElement"],"x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]}